//符合标准的带关闭功能左右漂浮对联广告
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); 
document.getElementById("LeftAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";
document.getElementById("RightAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";
lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}
suspendcode12="<DIV id=\"LeftAd\" style='left:5px;POSITION:absolute;TOP:12px;'><a href=\"/LingHang.aspx\" target='_blank'><img src=\"/ads/linghang01.jpg\" width='100' height='320' border='0'></a><a href='javascript:void(0)' onclick='javascript:ClosedivLeft()' hidefocus='true'><img src=\"/ads/close.gif\" border='0'></a></div>"
suspendcode14="<DIV id=\"RightAd\" style='right:5px;POSITION:absolute;TOP:12px;'><a href=\"/LingHang.aspx\" target='_blank'><img src=\"/ads/linghang02.jpg\" width='100' height='320' border='0'></a><a href='javascript:void(0)' onclick='javascript:ClosedivRight()' hidefocus='true'><img src=\"/ads/close.gif\" border='0'></a></div>"
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);
function ClosedivLeft()
{
   LeftAd.style.visibility="hidden";
}
function ClosedivRight()
{
   RightAd.style.visibility="hidden";
}
document.writeln("<style type=\"text\/css\"><!--#LeftAd,#RightAd{width:100px;height:295px}--><\/style>");
