if(typeof(Browser)!="object") Browser =
{
	innerWidth:function()
	{
		return (self.innerWidth?self.innerWidth:(document.documentElement && document.documentElement.clientWidth?document.documentElement.clientWidth:(document.body?document.body.clientWidth:0)));
	},
	innerHeight:function()
	{
		return (self.innerHeight?self.innerHeight:(document.documentElement && document.documentElement.clientHeight?document.documentElement.clientHeight:(document.body?document.body.clientHeight:0)));
	}
	,
	enableInteraction:function()
	{
		document.onmousedown = function(){};
		document.oncontextmenu = function(){};
		document.onkeydown = function(){};
	},
	disableInteraction:function()
	{
		document.onmousedown = function(){return false;};
		document.oncontextmenu = function(){return false;};
		document.onkeydown = function(){return false;};
	}
};
		
function doIt()
{
	Browser.disableInteraction();

	var dv = document.getElementById("dvO");

	if ( dv == null )
	{
		dv = document.createElement("div");
		dv.style.display = "none";
		dv.id = "dvO";
		document.body.appendChild( dv );
	}
	dv.style.position="absolute";
	dv.style.top="0";
	dv.style.left="0";
	dv.style.width = Browser.innerWidth();
	dv.style.height = Browser.innerHeight();
	dv.style.backgroundColor = 'gray';
	dv.style.filter = 'alpha(opacity=50)';
	dv.style.opacity = '0.5';
	dv.style.display = "block";

	dv = document.getElementById("dvI");

	if ( dv == null )
	{
		dv = document.createElement("div");
		dv.id = "dvI";
		document.body.appendChild( dv );
		dv.style.width = "650";
		dv.style.height = "345";
		dv.style.display = "none";
		dv.innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" " + 
		               "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" " + 
					   "width=\"650\" height=\"345\"><param name=\"movie\" value=\"/publicidade/swf/FLOATER_.swf\" />" +
                       "<param name=\"quality\" value=\"high\" /><embed src=\"/publicidade/swf/FLOATER_.swf\" quality=\"high\" " + 
					   "pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" " + 
					   "width=\"650\" height=\"320\" wmode=\"transparent\"></embed></object>";
	}

	dv.style.position="absolute";
	//alert( (Browser.innerHeight()) );
	dv.style.top="180";
	if (Browser.innerHeight()<=440) dv.style.top=(Browser.innerHeight()-320)/2 
	dv.style.left=(Browser.innerWidth()-650)/2;
	//alert( dv.style.left );
	//dv.style.backgroundColor = 'white';
	//dv.style.filter = 'alpha(opacity=1)';
	//dv.style.opacity = '1';
	dv.style.display="block";
}
			
function undoIt()
{
	var dv = document.getElementById("dvO");
	dv.style.display="none";
	dv = document.getElementById("dvI");
	dv.style.display="none";			
	Browser.enableInteraction();
}
