/* ============================================================================
	Company: Zorgly Software Foundation
	Site: http://www.zorgly.com
	Author: Vassyly Lygeros
	Version: 1.0.0
============================================================================ */
var registeredMethods = new Array();
function registerMethod(method)
{
	registeredMethods[registeredMethods.length] = method;		
}
function fireMethods()
{
	lockBody()
	window.setTimeout(dispatchMethods,500);
	setTimeout("unlockBody();",5000);
}
function dispatchMethods()
{
	for( var index = 0; index < registeredMethods.length; index++ )
		try{eval(window.setTimeout(registeredMethods[index]),0);}catch(e){}

	setTimeout("unlockBody();",0);
}

function lockBody()
{
	var obj = document.getElementById["disablebodydiv"];
	if ( obj == null )
		return;
	obj.style.width="100%"
	obj.style.height="100%"
	obj.style.filter="alpha(opacity=10)";
	obj.style.backgroundColor="#000000"; 
}
 
function unlockBody()
{
	var obj = document.getElementById["disablebodydiv"];
	if ( obj == null )
		return;

	obj.style.width="0%"
	obj.style.height="0%"
	obj.style.backgroundColor="transparent"; 	
	obj.style.filter="";
}

