// JavaScript Document
// 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:5px;POSITION:absolute;TOP:160px;'><table width='111' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td height='24'><img src='images/qq/01.gif' width='111' height='24'></td></tr><tr><td height='27'><img src='images/qq/03.gif' width='111' height='27'></td></tr><tr><td valign='top' background='images/qq/04.gif'><table width='100%' height='100%'  border='0' cellpadding='0' cellspacing='0'><tr><td height='30' valign='middle'>&nbsp;&nbsp;<img src='images/qq/qq_icon.gif' width='19' height='15' align='absmiddle' /><b>业务咨询</b></td></tr><tr valign='top'><td colspan='2'><table width='100%'  border='0'><tr><td height='25' align='left'>&nbsp;<img border='0' SRC=http://wpa.qq.com/pa?p=1:2433690109:4  align='absmiddle' /><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=2433690109&Site=&Menu=yes style='font-szie:12px; color:#000000; text-decoration:none;'>2433690109</a></td></tr><tr><td height='25' align='left' >&nbsp;<img border='0' SRC=http://wpa.qq.com/pa?p=1:2418679675:4  align='absmiddle' /><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=2418679675&Site=&Menu=yes style='font-szie:12px; color:#000000; text-decoration:none;'>2418679675</a></td></tr><tr><td style='height:20px;'>&nbsp;</td></tr></table></td></tr></table></td></tr><tr>		<td height='19'><img src='images/qq/05.gif' width='111' height='19'></td></tr></table></div>"
document.write(suspendcode);
window.setInterval("heartBeat()",1);
function ClosedivRight()
{
RightAd.style.visibility="hidden";
}
