// JavaScript Document
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("lovexin12").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";
document.getElementById("lovexin14").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";
document.getElementById("lovexin15").style.top=parseInt(document.getElementById("lovexin15").style.top)+percent+"px";
document.getElementById("lovexin16").style.top=parseInt(document.getElementById("lovexin16").style.top)+percent+"px";

//document.getElementById("lovexin16").style.top = parseInt(document.getElementById("lovexin12").style.top )+ 330 + percent + "px";
//document.getElementById("lovexin18").style.top = parseInt(document.getElementById("lovexin12").style.top) + 330 + percent + "px";

lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}
suspendcode12="<DIV id=\"lovexin12\" style='left:20px;POSITION:absolute;TOP:395px;z-index:1000'><a href='../LW/html/cyds.html' target='_blank'><img border=0 src=inc/1.gif><br><a href=JavaScript:; onclick=\"lovexin12.style.visibility='hidden'\"><img border=0 src=inc/close.gif></a></div>"

suspendcode14="<DIV id=\"lovexin14\" style='right:20px;POSITION:absolute;TOP:395px;z-index:1000'><a href='../LW/html/cyds.html' target='_blank'><img border=0 src=inc/1.gif><br><a href=JavaScript:; onclick=\"lovexin14.style.display = 'none'\"><img border=0 src=inc/close.gif></div>"

document.write(suspendcode12);
document.write(suspendcode14);

suspendcode15="<DIV id=\"lovexin15\" style='right:5px;POSITION:absolute;TOP:200px;z-index:1000'><a href='helpWjfw/index.html' target='_blank'><img border=0 src=helpWjfw/wjfw.jpg><br><a href=JavaScript:; onclick=\"lovexin15.style.visibility='hidden'\"><img border=0 src=inc/close.gif></a></div>";
suspendcode16="<DIV id=\"lovexin16\" style='left:5px;POSITION:absolute;TOP:200px;z-index:1000'><a href='helpWjfw/index.html' target='_blank'><img border=0 src=helpWjfw/wjfw.jpg><br><a href=JavaScript:; onclick=\"lovexin16.style.visibility='hidden'\"><img border=0 src=inc/close.gif></a></div>";

document.write(suspendcode15);
document.write(suspendcode16);
//suspendcode16 = "<DIV id=\"lovexin16\" style='left:12px;POSITION:absolute;TOP:410px;z-index:1000'><a href='yinxiaotian/index.html' target='_blank'><img border=0 src=szzs/yxt.jpg><br><a href=JavaScript:; onclick=\"lovexin16.style.visibility='hidden'\"><img border=0 src=inc/close.gif></a></div>"

//suspendcode18 = "<DIV id=\"lovexin18\" style='right:12px;POSITION:absolute;TOP:410px;z-index:1000'><a href='yinxiaotian/index.html' target='_blank'><img border=0 src=szzs/yxt.jpg><br><a href=JavaScript:; onclick=\"lovexin18.style.display = 'none'\"><img border=0 src=inc/close.gif></div>"

//document.write(suspendcode16);
//document.write(suspendcode18); 

window.setInterval("heartBeat()",1); 

var Pf ="<div id=\"Layer1\" style=\"left: 150px; top: 255px; z-index:1001\">";
Pf += "<a href='Sjds/index.html' target=_blank><img src=\"Sjds/TenEvents.jpg\" alt=\"\" width=\"269\" height=\"159\" border=\"0\" >";
Pf += " <%--<map name=\"Map2\">usemap=\"#Map2\"";
Pf += "<%--<map name=\"Map2\">usemap=\"#Map2\"";
Pf += "   <area shape=\"rect\" coords=\"225,113,259,131\" href=\"Sjds/index.html\">";
Pf += " </map>--%></a></div>";

document.write(Pf); 


var x=6,y=232
var xin=true,yin=true
var step=0.5
var delay=10
var obj=document.getElementById("Layer1");
function floatLayer()
{
	var L=0
	var T=200
	var R=document.body.clientWidth-obj.offsetWidth
	var B=document.body.clientHeight-obj.offsetHeight
	obj.style.left=x+document.body.scrollLeft
	obj.style.top=y+document.body.scrollTop
	
	x=x+step*(xin?1:-1)
	if(x<L) { xin=true; x=L}
	if(x>R) { xin=false; x=R}
	y=y+step*(yin?1:-1)
	if(y<T) { yin=true; y=T}
	if(y>B) { yin=false; y=B}
}
var itl=setInterval('floatLayer()',delay)
obj.onmouseover=function() {clearInterval(itl)}
obj.onmouseout=function() {itl=setInterval('floatLayer()',delay)}

