document.write ('<!--[if IE]> <style type="text/css"> body{ /*overflow:hidden*/ !important} #fade { /*background:transparent;*/ filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70); /* for IE 6-8 */  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=70)"; /* for IE8 */ /*filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#333333,endColorstr=#333333); */ zoom: 1; } </style> <![endif]-->		<!--[if lt IE 7]><![if gte IE 5.5]><style type="text/css">#fade { display: none; }</style><![endif]><![endif]-->		<style type="text/css"> <!--#fade { position: absolute; width: 100%; height: 100%; top:0; left:0; background: #000; z-index: 98; opacity: 0.7; /*overflow:hidden;*/ /* for all browsers */} #sponsorAdDiv { position: absolute; height: 1; width: 1px; top: 0; left: 0; z-index: 99; } .close { float: right; padding: 5px 10px; font-size: 11px; color: #fff; font-weight: bold; text-align: center; text-decoration: none; outline: none; }  .linkExterno { text-decoration: none; outline: none; }--></style><body >');

/*
 document.getElementsByName(body).style.overflow = "hidden";
 document.getElementsByName("body").style.overflowY = "hidden";
*/


// AutoDhtml
adTime=88440;  // seconds ad reminder is shown hidden
chanceAd=1;   // ad will be shown 1 in X times (put 1 for everytime)



var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
var calunit=ns? "" : "px"
adCount=0;
function initAd(){
	
	if(!ns && !ie && !w3) return;
	if(ie)		adDiv=eval('document.all.sponsorAdDiv.style');
	else if(ns)	adDiv=eval('document.layers["sponsorAdDiv"]');
	else if(w3)	adDiv=eval('document.getElementById("sponsorAdDiv").style');
	randAd=Math.ceil(Math.random()*chanceAd);
        if (ie||w3)
        adDiv.visibility="visible";
        else
        adDiv.visibility ="show";
		
	if(randAd==1) showAd();
}
function showAd(){
if(adCount<adTime*1){adCount+=1;
	if (ie){documentWidth  =truebody().offsetWidth/2+truebody().scrollLeft-20;
	documentHeight =truebody().offsetHeight/2+truebody().scrollTop-20;
	}	
	else if (ns){documentWidth=window.innerWidth/2+window.pageXOffset-20;
	documentHeight=window.innerHeight/2+window.pageYOffset-20;} 
	else if (w3){documentWidth=self.innerWidth/2+window.pageXOffset-20;
	documentHeight=self.innerHeight/2+window.pageYOffset-20;} 
	//adDiv.left=documentWidth-200+calunit;adDiv.top =documentHeight-200+calunit;
	adDiv.left=documentWidth-300+calunit;adDiv.top =documentHeight-180+calunit;
	setTimeout("showAd()",150);}else closeAd();
 /* comment [else closeAd();] for eliminate sitTimeout */		
}


function closeAd(){
if (ie||w3)
adDiv.display="none";
else
adDiv.visibility ="hide";

}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
//close dhtml
function closeDHTML(){
	document.getElementById("sponsorAdDiv").style.display="none";
	document.getElementById("fade").style.display="none";
	document.body.style.overflow="auto"
}
onload=initAd;
//End-->
