
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("leftDiv").style.top = parseInt(document.getElementById("leftDiv").style.top)+percent+"px";
document.getElementById("rightDiv").style.top = parseInt(document.getElementById("rightDiv").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
//-->
//关闭按钮
function close_left1(){
    left1.style.visibility='hidden';
}
function close_left2(){
    left2.style.visibility='hidden';
}
function close_left3(){
    left3.style.visibility='hidden';
}
function close_left4(){
    left4.style.visibility='hidden';
}
function close_left5(){
    left5.style.visibility='hidden';
}
function close_left6(){
    left6.style.visibility='hidden';
}
function close_left7(){
    left7.style.visibility='hidden';
}
function close_right1(){
    right1.style.visibility='hidden';
}
function close_right2(){
    right2.style.visibility='hidden';
}
function close_right3(){
    right3.style.visibility='hidden';
}
function close_right4(){
    right4.style.visibility='hidden';
}
function close_right5(){
    right5.style.visibility='hidden';
}
function close_right6(){
    right6.style.visibility='hidden';
}
function close_right7(){
    right7.style.visibility='hidden';
}
//显示样式
document.writeln("<style type=\"text\/css\">");
document.writeln("#leftDiv,#rightDiv{width:100px;height:100px;background-color:#fff;position:absolute;}");
document.writeln(".itemFloat{width:100px;height:auto;line-height:5px}");
document.writeln("<\/style>");
//以下为主要内容
document.writeln("<div id=\"leftDiv\" style=\"top:40px;left:5px\">");
//------左侧各块开始
//---L1
document.writeln("<div id=\"left1\" class=\"itemFloat\">");
document.writeln("	<a target=_blank href='hbzs.html'/><img src='images/g001.jpg' width='170' height='124' height='124'/></a>");
document.writeln("<br><a href=\"javascript:close_left1();\" title=\"关闭上面的广告\">×<\/a><br><br><br><br>");
document.writeln("<\/div>");
//---L2
document.writeln("<div id=\"left2\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g002.jpg  width='170' height='124'></a>");
document.writeln("<br><a href=\"javascript:close_left2();\" title=\"关闭上面的广告\">×<\/a><br><br><br><br>");
document.writeln("<\/div>");
//---l3
document.writeln("<div id=\"left3\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g003.jpg  width='170' height='124'></a>");
document.writeln("<br><a href=\"javascript:close_left3();\" title=\"关闭上面的广告\">×<\/a><br><br><br><br>");
document.writeln("<\/div>");
//----L4
document.writeln("<div id=\"left4\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g004.jpg  width='170' height='124'></a>");
document.writeln("<br><a href=\"javascript:close_left4();\" title=\"关闭上面的广告\">×<\/a><br><br><br><br>");
document.writeln("<\/div>");
//----L5
document.writeln("<div id=\"left5\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g005.jpg  width='170' height='124'></a>");
document.writeln("<br><a href=\"javascript:close_left5();\" title=\"关闭上面的广告\">×<\/a><br><br><br><br>");
document.writeln("<\/div>");
//----L6
document.writeln("<div id=\"left6\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g006.jpg  width='170' height='124'></a>");
document.writeln("<br><a href=\"javascript:close_left6();\" title=\"关闭上面的广告\">×<\/a><br><br><br><br>");
document.writeln("<\/div>");
//----L7
document.writeln("<div id=\"left7\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g0013.jpg  width='170'></a>");
document.writeln("<br><a href=\"javascript:close_left7();\" title=\"关闭上面的广告\">×<\/a><br><br><br><br>");
document.writeln("<\/div>");

//------左侧各块结束
document.writeln("<\/div>");
document.writeln("<div id=\"rightDiv\" style=\"top:40px;right:5px\">");
//------右侧各块结束
//---R1
document.writeln("<div id=\"right1\" class=\"itemFloat\">");
document.writeln("	<a target=_blank href='hbzs.html'/><img src='images/g007.jpg' width='170' id='ad' height='124'/>");
document.writeln("<br><a href=\"javascript:close_right1();\" title=\"关闭上面的广告\">×<\/a><br><br><br><br>");
document.writeln("<\/div>");
//---R2
document.writeln("<div id=\"right2\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g008.jpg  width='170' height='124'></a>");
document.writeln("<br><a href=\"javascript:close_right2();\" title=\"关闭上面的广告\">×<\/a><br><br><br>");
document.writeln("<\/div>");
//---r3
document.writeln("<div id=\"right3\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g009.jpg  width='170' height='124'></a>");
document.writeln("<br><a href=\"javascript:close_right3();\" title=\"关闭上面的广告\">×<\/a><br><br><br>");
document.writeln("<\/div>");
//---r4
document.writeln("<div id=\"right4\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g010.jpg  width='170' height='124'></a>");
document.writeln("<br><a href=\"javascript:close_right4();\" title=\"关闭上面的广告\">×<\/a><br><br><br>");
document.writeln("<\/div>");
//---r5
document.writeln("<div id=\"right5\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g011.jpg  width='170' height='124'></a>");
document.writeln("<br><a href=\"javascript:close_right5();\" title=\"关闭上面的广告\">×<\/a><br><br><br>");
document.writeln("<\/div>");
//---r6
document.writeln("<div id=\"right6\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g012.jpg  width='170' height='124'></a>");
document.writeln("<br><a href=\"javascript:close_right6();\" title=\"关闭上面的广告\">×<\/a><br><br><br>");
document.writeln("<\/div>");
//---r7
document.writeln("<div id=\"right7\" class=\"itemFloat\">");
document.writeln("<a target=_blank href='hbzs.html'/><img border=0 src=images/g0013.jpg width='170' ></a>");
document.writeln("<br><a href=\"javascript:close_right7();\" title=\"关闭上面的广告\">×<\/a><br><br><br>");
document.writeln("<\/div>");
//------右侧各块结束
document.writeln("<\/div>");
