
// JavaScript Document
// 右边菜单
var lastScrollY1;
lastScrollY1=0;

function heartBeat1(){
var diffY1;
if (document.documentElement && document.documentElement.scrollTop)
diffY1 = document.documentElement.scrollTop;
else if (document.body)
diffY1 = document.body.scrollTop
else
{/*Netscape stuff*/}
//alert(diffY1);
//percent=0.1*(diffY-lastScrollY);
//if(percent>0)percent=Math.ceil(percent);
//else percent=Math.floor(percent);
//document.getElementById("RightBottomAd").style.top=parseInt(diffY1 + 150)+"px";
//lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
var percent1;
percent1=.1*(diffY1-lastScrollY1);
if(percent1>0)percent1=Math.ceil(percent1);
else percent1=Math.floor(percent1);
document.getElementById("RightBottomAd").style.top=parseInt(document.getElementById("RightBottomAd").style.top)+percent1+"px";
lastScrollY1=lastScrollY1+percent1;
}
suspendcode1="<div id='RightBottomAd' style='left:2px;POSITION:absolute;TOP:150px;z-index:190;'><table width='200' border='0' cellspacing='0' cellpadding='0'><tr><td width='200' valign='top' ><a href='active/'><img id='qqpic' src='image/active.jpg' width='200' height='243' border='0' ></a></td></tr><tr><td width='200' height='150' valign='bottom' ><a href='map/'><img id='mappic' src='image/lmap.jpg' width='200' border='0' ></a></td></tr></table></div></div>"
document.write(suspendcode1);
window.setInterval("heartBeat1()",1);

