// JavaScript Document
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
var px = document.layers ? "" : "px";
var starty=188;
function JSFX_FloatDiv(id, sx, sy)
{
	 if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth-18;
		myHeight = window.innerHeight;
		starty=195;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	  }

	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)/8;
		if(myWidth>1090)
			this.cx=((myWidth-1090)/2) +11;
		else
			this.cx=0;
		if(pY<starty)
			this.cy=starty;
		else
			this.cy +=((pY + this.sy - this.cy)/8);		
		this.sP(this.cx, this.cy);			
		setTimeout(this.id + "_obj.flt()", 30);
	}
	return el;
}
function onresizeMe(){
	JSFX_FloatDiv("divTopLeft",       4,   0).flt();
}
window.onresize=onresizeMe;
onresizeMe();
//JSFX_FloatDiv("divTopRight", 	  -340,  240).flt();
//JSFX_FloatDiv("divBottomLeft",    10, -100).flt();
//JSFX_FloatDiv("divBottomRight", -100, -100).flt();
