// Floating Layer

var hX = 0;
var vY = -125;

var nn=(navigator.appName.indexOf("Netscape")!=-1);
var dD=document,dH=dD.html,dB=dD.documentElement,px=dD.layers?'':'px';

function floatMail(iX,iY,id){
	var L=dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id];		
	this[id+'O']=L;
	if(dD.layers)L.style=L;
	L.nX=L.iX=iX;
	L.nY=L.iY=iY;
	L.P=function(x,y){
		this.style.left=x+px;
		this.style.top=y+px;
		};
	L.Fm=function(){
		var pX, pY;	
		pX=(this.iX >=0)?0:nn?innerWidth:nn&&dH.clientWidth?dH.clientWidth:dB.clientWidth;	
		pY=nn?pageYOffset:nn&&dH.scrollTop?dH.scrollTop:dB.scrollTop;	
		if(this.iY<0)pY+=nn?innerHeight:nn&&dH.clientHeight?dH.clientHeight:dB.clientHeight;	
		this.nX+=0.5*(pX+this.iX-this.nX);
		this.nY+=0.5*(pY+this.iY-this.nY);
		this.P(this.nX,this.nY);
		setTimeout(this.id+'O.Fm()',1);
		};
	return L;
}
