lastScrollY = 200;
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("rightDiv").style.top = parseInt(document.getElementById("rightDiv").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
//下面这段删除后，对联将不跟随屏幕而移动。

//下面这段删除后，对联将不跟随屏幕而移动。
function menuChange_up1()
{
		document.getElementById("rightDiv").style.display = "none"; 

}


window.setInterval("heartBeat()",1);

document.writeln("<style type=\"text\/css\">");
document.writeln("#leftDiv,#rightDiv{width:100px;height:100px;position:absolute;}");
document.writeln(".itemFloat{width:100px;height:auto;line-height:5px}");
document.writeln("<\/style>");

document.writeln("<div id=\"rightDiv\" style=\"top:440px;right:5px;z-index:999;\">");
//------右侧各块结束
//---R1
document.writeln("<div id=\"right1\" class=\"itemFloat\">");
document.writeln("<table width=\"150\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=\"top\"><div align=\"right\"><a onclick=\"menuChange_up1()\"><img src=\"/imagesnewyear2012/close.gif\" style=\"CURSOR: hand\" alt=\"关闭\" border=\"0\" width=\"15\" height=\"16\" align=\"top\"></a></div></td></tr><tr><td><img src=\"/images/2009_service.jpg\"></td></tr></table>");
document.writeln("<\/div>");
document.writeln("<\/div>");



