var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
var px = document.layers ? "" : "px";
function JSFX_FloatDiv(id, sx, sy)
{
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	window[id + "_obj"] = el;
	if(d.layers)el.style=el;
	el.cx = el.sx = sx;el.cy = el.sy = sy;
	el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
	el.flt=function()
	{
		var pX, pY;
		pX = (this.sx >= 0) ? 0 : ns ? innerWidth : 
		document.documentElement && document.documentElement.clientWidth ? 
		document.documentElement.clientWidth : document.body.clientWidth;
		pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
		document.documentElement.scrollTop : document.body.scrollTop;
		if(this.sy<0) 
		pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
		document.documentElement.clientHeight : document.body.clientHeight;
		this.cx += (pX + this.sx - this.cx)/2;this.cy += (pY + this.sy - this.cy)/2;
		this.sP(this.cx, this.cy);
		setTimeout(this.id + "_obj.flt()", 100);
	}
	return el;
}




function init()
{

if(ns4){ld.visibility="hidden";}
else if (ns6||ie4) ld.display="none";
}


function f_clientWidth() {
	return document.body.clientWidth;
}



function ShowAdDiv()
{
    var objAdDivLeft  = document.getElementById("divAdLeft");
	var objAdDivRight = document.getElementById("divAdRight");

	if (f_clientWidth() < 1200)
	{
		objAdDivLeft.style.display="none";
		objAdDivRight.style.display="none";
	}
	
	else
	{
		var pageW=990;
		var margin=5;
		var w=f_clientWidth()-pageW;
		objAdDivLeft.style.display="block";
		objAdDivRight.style.display="block";
		JSFX_FloatDiv("divAdLeft",  w/2-(100+margin),   75).flt();
		JSFX_FloatDiv("divAdRight", w/2+pageW+margin,75).flt();
	}

}

if (typeof document.attachEvent!='undefined') {
   window.attachEvent('onload',ShowAdDiv);
   window.attachEvent('onresize',ShowAdDiv);
    
}
else {
   window.addEventListener('load',ShowAdDiv,false);
   window.addEventListener('resize',ShowAdDiv,false);
}

