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);
}
now = new Date()
hour = now.getHours()
if (hour > 18)
{
   dianhua="<img src='http://www.ielts999.com/images/yejian.gif' />";
}
else
{
	dianhua="";
}
suspendcode12="<DIV id=\"LeftAd\" style='left:5px;POSITION:absolute;TOP:450px;width:64px;height:180px;'>"+dianhua+"</div>"
suspendcode14="<DIV id=\"RightAd\" style='right:5px;POSITION:absolute;TOP:450px;width:64px;height:180px;' align='center'><a href=# target=_blank onclick=\"window.external.addFavorite('http://www.ielts999.com/xinhangdao','新航道雅思学校')\"><img src=http://www.ielts999.com/hdad/sc.gif border=0 width=120 height=65></a><br><br><a href=tencent://message/?uin=744969393&amp;Site=www.newchannel.org&amp;Menu=yes target=blank><img src='http://xhd.ielts999.com/images/qq.gif' ></a></div>"


document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);
function ClosedivLeft()
{
   LeftAd.style.visibility="hidden";
}
function ClosedivRight()
{
   RightAd.style.visibility="hidden";
}





