﻿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';
}
function close_left2(){
    left2.style.visibility='hidden';
}
function close_right1(){
    right1.style.visibility='hidden';
}
function close_right2(){
    right2.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:5px}");
document.writeln("<\/style>");
//以下为主要内容
document.writeln("<div id=\"leftDiv\" style=\"top:40px;left:5px\">");
//------左侧各块开始
//---L1
document.writeln("<div id=\"left1\" class=\"itemFloat\">");
document.writeln('<DIV><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="../images/gg1.png" border="0" style="border:0;" usemap="#qqMap"></td></tr></table></DIV><map name="qqMap" id="qqMap"><area shape="rect" coords="189,2,209,23" href="javascript:close_left1();" /><area shape="rect" coords="5,83,202,363" href="http://www.orager.com/cn/index.php?channel=3&catalog=8" target="_blank"></map>');
document.writeln("<\/div>");
//---L2
//------左侧各块结束
document.writeln("<\/div>");
document.writeln("<div id=\"rightDiv\" style=\"top:40px;right:5px\">");
//------右侧各块结束
//---R1
document.writeln("<div id=\"right1\" class=\"itemFloat\">");
document.writeln('<TABLE cellSpacing=0 cellPadding=0 width=0 border=0><TR><TD colSpan=3><A  href="javascript:close_right1();" shape=circle coords=91,16,12><IMG height=34 src="../images/qq_top.gif" width=109 useMap=#Map border=0></A></TD></TR><TR><TD width=6 background=../images/qq_life.gif></TD><TD vAlign=top width=96 background=../images/zhrzpg.htm bgColor=#ffffff><TABLE cellSpacing=0 cellPadding=0 width=90 align=center border=0><TR><TD height=30><TABLE cellSpacing=0 cellPadding=0 width=90 border=0<TR><TD><IMG height=13 src="../images/qq_ico1.gif" width=16><SPAN class=font_12> <SPAN style="FONT-SIZE: 9pt">在线客服</SPAN></SPAN></TD></TR></TABLE></TD></TR><TR><TD><TABLE id=table47 cellPadding=2 width="100%" border=0><TR><TD vAlign=top width=15 height=23><IMG height=16 src="../images/qq_v01.gif" width=16  border=0></TD><TD vAlign=bottom><SCRIPT>document.write("<a target=_blank href=http://wpa.qq.com/msgrd?v=3&uin=395587090&site=qq&menu=yes><img border=0 src=http://wpa.qq.com/pa?p=2:395587090:10 alt=点击这里给我发消息 title=点击这里给我发消息></a>");</SCRIPT></TD></TR></TABLE><TABLE id=table47 cellPadding=2 width="100%" border=0><TR><TD vAlign=top width=15 height=23><IMG height=16 src="../images/qq_v01.gif" width=16 border=0></TD><TD vAlign=bottom><SCRIPT>document.write("<a target=_blank href=http://wpa.qq.com/msgrd?v=3&uin=1106285707&site=qq&menu=yes><img border=0 src=http://wpa.qq.com/pa?p=2:1106285707:10 alt=点击这里给我发消息 title=点击这里给我发消息></a>");</SCRIPT></TD></TR></TABLE></TD></TR><TR><TD></TD></TR><TR><TD></TD></TR><TR><TD></TD></TR></TABLE></TD><TD align=left width=7 background=../images/qq_right.gif></TD></TR><TR><TD colSpan=3><IMG height=30 src="../images/qq_bottom1.gif" width=109></TD></TR><TR><TD colSpan=3><IMG height=33 src="../images/qq_logo.gif" width=109></TD></TR></TABLE>');
document.writeln("<\/div>");
//---R2
//------右侧各块结束
document.writeln("<\/div>");



