function noticeHandler ()
{
	this.coverOBJ = null;
	this.noticeOBJ = null;
	this.confirm = function () {};
	
	this.createNotice = function ()
	{
		if ( this.coverOBJ ) return ( false );
		docHeight = document.getElementsByTagName('BODY')[0].offsetHeight;
		this.coverOBJ = document.createElement('DIV');
		this.coverOBJ.style.position = 'absolute';
		this.coverOBJ.style.top = '0';
		this.coverOBJ.style.opacity = '0';
		this.coverOBJ.style.filter = 'alpha(opacity: 0)';
		this.coverOBJ.style.height = docHeight + 'px';
		this.coverOBJ.style.width = '100%';
		this.coverOBJ.style.background = '#000';
		document.getElementsByTagName('BODY')[0].appendChild(this.coverOBJ);
		new Rico.Effect.FadeTo(this.coverOBJ, .5, 500, 10);
	}

	
	this.destroyNotice = function ( confirmed )
	{
		if ( confirmed ) this.confirm ();
		this.confirm = function () {};
		var thisOBJ = this;
		if ( this.coverOBJ )
		{
			new Rico.Effect.FadeTo(this.coverOBJ, 0, 500, 10, { complete: function () { if ( thisOBJ.coverOBJ ) { thisOBJ.coverOBJ.parentNode.removeChild(thisOBJ.coverOBJ); thisOBJ.coverOBJ = null; } if ( thisOBJ.noticeOBJ ) { thisOBJ.noticeOBJ.parentNode.removeChild(thisOBJ.noticeOBJ); thisOBJ.noticeOBJ = null; }}});
		}
	}
	
	this.show = function ( noticeText )
	{
		this.createNotice();
		var thisOBJ = this;
		popupManager.show ( { popupName: 'notice', query: 'notice=' + noticeText } );
	}
}

var notice = new noticeHandler ();