// JavaScript Document
var ClosebuttonHtml = '<div align="right" style="position: absolute;top:0px;right:0px;margin:2px;padding:2px;z-index:2000;"><a href="javascript:;" onclick="hidead()" style="color:red;text-decoration:none;font-size:12px;">关闭</a></div>'

lastScrollY=0;
var left = (document.body.clientWidth - 900) / 2;
left = left - 92;
var right = (document.body.clientWidth - 900) / 2;
right = right - 80;
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*/}
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("lovexin12").style.top=parseInt(document.getElementById
("lovexin12").style.top)+percent+"px";
document.getElementById("lovexin14").style.top=parseInt(document.getElementById
("lovexin12").style.top)+percent+"px";
lastScrollY=lastScrollY+percent; 
}
suspendcode12="<DIV id=\"lovexin12\" style='left:"+left+"px;POSITION:absolute;TOP:117px;width:70px;background-color:#ededed;border:1px solid #ddd;'>"+ClosebuttonHtml+"<img src=\"/statics/images/right.jpg\" width='80px' /></div>"
suspendcode14="<DIV id=\"lovexin14\" style='right:"+right+"px;POSITION:absolute;TOP:117px;width:70px;background-color:#ededed;border:1px solid #ddd;'>"+ClosebuttonHtml+"<img src=\"/statics/images/left.jpg\" width='80px'/></div>"
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);

function hidead()
{
	document.getElementById("lovexin12").style.display="none";
	document.getElementById("lovexin14").style.display="none";
}
