lastScrollY=0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
//alert(parseInt(document.getElementById("LeftAd").style.top)+percent+"px");
document.getElementById("LeftAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
var ad=document.getElementById("Layer2");
	if (screen.width == 1024){
		ad.style.left=(percent+700)+"px"; 
	}
	else if(screen.width == 1152)
	{ 
		ad.style.left=(percent+760)+"px"; 
	}
	else
	{
		ad.style.left=(percent+820)+"px"; 
	}

}

suspendcode12="<div id=LeftAd style='width:252px;height:300px;left:10px;position:relative;top:3px;'><img border='0' SRC=images/mail.gif alt='online' onClick='dis()' style='cursor:pointer;' class='s'></div>"
document.write(suspendcode12);
window.setInterval("heartBeat()",1);
function ClosedivLeft()
{
LeftAd.style.visibility="hidden";
}
function dis()
{
	var la = document.getElementById("Layer2");
	la.style.display = "none";
}

