// 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("duilianl").style.top=parseInt(document.getElementById("duilianl").style.top)+percent+"px";
document.getElementById("duilianr").style.top=parseInt(document.getElementById("duilianr").style.top)+percent+"px";

lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}
suspendcode12='<div id="duilianl" style="left:12px;POSITION:absolute;TOP:115px;"><img src="http://www.ngkc.org/images/duilianl.jpg" width="140" height="268" border="0" usemap="#Map1" /></div>'
//suspendcode12='<div id="duilianl" style="left:12px;POSITION:absolute;TOP:115px;"><a href="http://www.ngkc.org/amplyofcircs.do?infoid=280&style=zhubanfang" target="_blank"><img border="0" src="http://www.ngkc.org/images/duilianl.gif" width="140" height="268" border="0" usemap=""/></a></div>'
//suspendcode12='<div id="duilianl" style="left:12px;POSITION:absolute;TOP:115px;"></div>'
suspendcode14='<div id="duilianr" style="right:12px;POSITION:absolute;TOP:115px;"><img border="0" src="http://www.ngkc.org/images/right.jpg" width="140" height="268" usemap="#Map2" border="0"/></div>'
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);
function closeleft() {
	document.getElementById("duilianr").style.display="none";
}
function closeright() {
	document.getElementById("duilianl").style.display="none";
}