// JavaScript Document

// 右边菜单

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("RightAd").style.top=parseInt(document.getElementById("RightAd").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
suspendcode="<div id='RightAd' style='right:15px;POSITION:absolute;TOP:100px;'><table width=125 border=0 cellspacing=0 cellpadding=0 style='background:url(images/img/online.gif) no-repeat top center;'><tr><td width=55 height=90></td><td align=left valign=middle style='font-size:12px; padding-top:25px; line-height:21px;'><a target=blank href=tencent://message/?uin=503635474&Site=神驰气动——客服QQ①&Menu=yes class=qq><img SRC=http://wpa.qq.com/pa?p=1:503635474:4 alt='客服①' border='0' align='absmiddle' style='margin-bottom:2px; margin-right:3px;'>客服①</a><br><a target=blank href=tencent://message/?uin=1193076549&Site=神驰气动——客服QQ②&Menu=yes class=qq><img SRC=http://wpa.qq.com/pa?p=1:1193076549:4 alt='客服②' border='0' align='absmiddle' style='margin-bottom:2px; margin-right:3px;'>客服②</a></td></tr></table></div>"
document.write(suspendcode);
window.setInterval("heartBeat()",1);
function ClosedivRight()
{
RightAd.style.visibility="hidden";
}