lastScrollY_ly = 0;
function heartBeat_ly(){
var diffY_ly;
if (document.documentElement && 

document.documentElement.scrollTop)
diffY_ly = document.documentElement.scrollTop;
else if (document.body)
diffY_ly = document.body.scrollTop
else
{/*Netscape stuff*/}
percent_ly=.1*(diffY_ly-lastScrollY_ly);
if(percent_ly>0)percent_ly=Math.ceil(percent_ly);
else percent_ly=Math.floor(percent_ly);
document.getElementById("leftDiv_pp").style.top = parseInt

(document.getElementById("leftDiv_pp").style.top)+percent_ly+"px";
document.getElementById("rightDiv_lp").style.top = parseInt

(document.getElementById("rightDiv_lp").style.top)+percent_ly+"px";
lastScrollY_ly=lastScrollY_ly+percent_ly;
//alert(lastScrollY_ly);
}
//下面这段删除后，对联将不跟随屏幕而移动。
window.setInterval("heartBeat_ly()",2);
//-->
//关闭按钮
function close_left_me(){
    left1.style.visibility='hidden';
}
function close_right_meo(){
    right1.style.visibility='hidden';
}
//显示样式
document.writeln("<style type=\"text\/css\">");
document.writeln("#leftDiv_pp,#rightDiv_lp{width:93px;height:59px;background:transparent;position:absolute;}");
document.writeln(".itemFloat{width:93px;height:auto;line-height:5px}");
document.writeln("<\/style>");
//以下为主要内容
document.writeln("<div id=\"leftDiv_pp\" style=\"top:260px;left:120px\">");
//------左侧各块开始
//---L1
document.writeln("<div id=\"left11\" class=\"itemFloat\">");
document.writeln("<\/div>");
//------左侧各块结束
document.writeln("<\/div>");
document.writeln("<div id=\"rightDiv_lp\" style=\"top:260px;right:120px\">");
//------右侧各块结束
//---R2
document.writeln("<div id=\"right11\" class=\"itemFloat\">");
document.writeln("<a href=#lybg><img src=/mimages/images/ly.gif border=0 />");
document.writeln("<\/div>");
//------右侧各块结束
document.writeln("<\/div>");

