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);
}
//下面这段删除后，对联将不跟随屏幕而移动。
window.setInterval("heartBeat()",1);
//-->
//关闭按钮
function close_left1(){
    left1.style.visibility='hidden';
	right1.style.visibility='hidden';
	left1_1.style.visibility='hidden';
	right1_1.style.visibility='hidden';

}
function close_left2(){
    right2.style.visibility='hidden';
	left2.style.visibility='hidden';
	right2_1.style.visibility='hidden';
	left2_1.style.visibility='hidden';
}
function close_right1(){
    left1.style.visibility='hidden';
	right1.style.visibility='hidden';
	left1_1.style.visibility='hidden';
	right1_1.style.visibility='hidden';
}
function close_right2(){
    right2.style.visibility='hidden';
	left2.style.visibility='hidden';
	right2_1.style.visibility='hidden';
	left2_1.style.visibility='hidden';

}
//显示样式
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:14px;}");
document.writeln("#left1_1,#right1_1{position:absolute;width:100px;height:270px;z-index:9999;}");
document.writeln("#left2_1,#right2_1{position:absolute;width:100px;height:270px;z-index:9999;}");

document.writeln("<\/style>");
//以下为主要内容
document.writeln("<div id=\"leftDiv\" style=\"top:0px;left:0px\">");
//------左侧各块开始
//---L1
//document.writeln("<div id=\"left1_1\"><a href=\"http\:\/\/www.0735.com\/vip\/readnews.asp\?id=7479\" target=\"_blank\"><img src=\"Styles\/webskin\/Transparent.gif\" width=\"100\" height=\"270\"><\/a><\/div>")
//document.writeln("<div id=\"left1\" class=\"itemFloat\">")
//document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0\" width=\"100\" height=\"270\">")
//document.writeln("<param name=\"movie\" value=\"files\/adsFile\/2010-7\/yd_100X270_3.swf\" \/>")
//document.writeln("<param name=\"quality\" value=\"high\" \/>")
//document.writeln("<param name=\"WMode\" value=\"Opaque\">")
//document.writeln("<embed src=\"files\/adsFile\/2010-7\/yd_100X270_3.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" width=\"100\" height=\"270\"><\/embed>")
//document.writeln("<\/object>")
//document.writeln("<a style=\"text-align:left; cursor: hand; display:block; background:#eee; width:100px;\" hidefocus=\"true\" href=\"javascript:close_left1();\" title=\"关闭上面的广告\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关闭×<\/a>")
//document.writeln("<\/div>")



//---L2
//document.writeln("<div id=\"left2_1\"><a href=\"http\:\/\/www.0735.com\/ad06\/sanzq_10\/index.htm\" target=\"_blank\"><img src=\"Styles\/webskin\/Transparent.gif\" width=\"100\" height=\"270\"><\/a><\/div>")
//document.writeln("<div id=\"left2\" class=\"itemFloat\">")
//document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0\" width=\"100\" height=\"270\">")
//document.writeln("<param name=\"movie\" value=\"files\/adsFile\/2010-9\/zqtg_100X270.swf\" \/>")
//document.writeln("<param name=\"quality\" value=\"high\" \/>")
//document.writeln("<param name=\"WMode\" value=\"Opaque\">")
//document.writeln("<embed src=\"files\/adsFile\/2010-9\/zqtg_100X270.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" width=\"100\" height=\"270\"><\/embed>")
//document.writeln("<\/object>")
//document.writeln("<a style=\"text-align:left; cursor: hand; display:block; background:#eee; width:100px;\" hidefocus=\"true\" href=\"javascript:close_left2();\" title=\"关闭上面的广告\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关闭×<\/a>")
//document.writeln("<\/div>")

//------左侧各块结束
document.writeln("<\/div>");




document.writeln("<div id=\"rightDiv\" style=\"top:0px;right:0px\">");
//---R1
document.writeln("<div id=\"right1_1\"><a href=\"#" target=\"_blank\"><img src=\"files\/adsfile\/2010-9\/yh_100x270.gif\" width=\"100\" height=\"270\"><\/a><\/div>")
document.writeln("<div id=\"right1\" class=\"itemFloat\" >");
//document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0\" width=\"100\" height=\"270\">")
//document.writeln("<param name=\"movie\" value=\"files\/adsFile\/2010-7\/yd_100X270_2.swf\" \/>")
//document.writeln("<param name=\"quality\" value=\"high\" \/>")
//document.writeln("<param name=\"WMode\" value=\"Opaque\">")
//document.writeln("<embed src=\"files\/adsFile\/2010-7\/yd_100X270_2.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" width=\"100\" height=\"270\"><\/embed>")
//document.writeln("<\/object>")
document.writeln("<a style=\"text-align:left; cursor: hand; display:block; background:#eee; width:100px;\" hidefocus=\"true\" href=\"javascript:close_left1();\" title=\"关闭上面的广告\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关闭×<\/a>");
document.writeln("<\/div>");


//---R2
//document.writeln("<div id=\"right2_1\"><a href=\"http\:\/\/www.0735.com\/ad06\/sanzq_10\/index.htm\" target=\"_blank\"><img src=\"Styles\/webskin\/Transparent.gif\" width=\"100\" height=\"270\"><\/a><\/div>")
//document.writeln("<div id=\"right2\" class=\"itemFloat\" >");
//document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0\" width=\"100\" height=\"270\">")
//document.writeln("<param name=\"movie\" value=\"files\/adsFile\/2010-9\/zqtg_100X270.swf\" \/>")
//document.writeln("<param name=\"quality\" value=\"high\" \/>")
//document.writeln("<param name=\"WMode\" value=\"Opaque\">")
//document.writeln("<embed src=\"files\/adsFile\/2010-9\/zqtg_100X270.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" width=\"100\" height=\"270\"><\/embed>")
//document.writeln("<\/object>")
//document.writeln("<a style=\"text-align:left; cursor: hand; display:block; background:#eee; width:100px;\" hidefocus=\"true\" href=\"javascript:close_left2();\" title=\"关闭上面的广告\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关闭×<\/a>");
//document.writeln("<\/div>");
//------右侧各块结束
document.writeln("<\/div>");
