//****************************************************************************************
//										EVENTS
//****************************************************************************************


//****************************************************************************************
//										METHODS
//****************************************************************************************

/*
	GetHourGlass()										object
		.Show(astrText)									void
		.Hide()											void
	
*/

//****************************************************************************************
//									INTERNAL FUNCTIONS
//****************************************************************************************
function GetHourGlass(){	
	
	//Get hourglass by ref, no id is used since there can only be one hourglass per page:
	var lobjHourGlass = document.getElementById("imgHourGlass");
	
	//Make sure the object exists:
	if (!lobjHourGlass){
		return null;
	}	
	
	//Add the methods to the object:
	lobjHourGlass.Show = HourGlass_Show;
	lobjHourGlass.Hide = HourGlass_Hide;	
	
	//Return the object ref:
	return lobjHourGlass;
	
}
//----------------------------------------------------------------------------------------
function HourGlass_Show(astrText){	

	//Set the method's function:	
	
	if (astrText == null) astrText = this.title;
		
	this.title = astrText;	
	this.style.height = document.body.scrollHeight;
	this.style.width = document.body.scrollWidth;	
	this.style.display = "block";		
	
	//------------------------------------------------------------------------------------
	
	//Return the method:
	var Show = null;
	return Show;
	
}
//----------------------------------------------------------------------------------------
function HourGlass_Hide(){

	//Set the method's function:		
	
	this.style.height = 1;
	this.style.width = 1;	
	this.style.display = "none";		
	
	//------------------------------------------------------------------------------------
	
	//Return the method:
	var Hide = null;
	return Hide;
	
}
//----------------------------------------------------------------------------------------  