//---------------------------------------------------------------------------------
//  (c) 2007 Guardian Networks, Inc
//---------------------------------------------------------------------------------

GNgui.PleaseWait = Class.create();
GNgui.PleaseWait.prototype = 
{
	initialize : function ( parentElement, left, top, id )
	{
		if ( parentElement == null ){	alert('PleaseWait: parentElement not specified' );}	
		if ( left == null )	{ alert('PleaseWait: left not specified' );	}
		if ( top == null ) { alert('PleaseWait: top not specified' ); }
		if ( id == null ) {	alert('PleaseWait: id not specified' ); }	

		this.newelement = $ce('img');
		
		$ac($e(parentElement),this.newelement);
		this.newelement.setAttribute('id',id);
		this.newelement.setAttribute('border',0);
		this.newelement.style.position = 'absolute';
		this.newelement.style.zindex = 50;
	//	this.newelement.style.visibility = 'hidden';
		if ( left != null )
			$el(id,left);
		
		if ( top != null )
			$et(id,top);
		
		this.newelement.src =".\\images\\ruby.gif";
	
	},
	
	ID : function()
	{
		return this.newelement.id;
	},
	
	Show : function()
	{
		this.newelement.style.visibility = 'inherit';
	},
	
	Hide : function()
	{
		this.newelement.style.visibility = 'hidden';
	
	}
}