// ½½¶óÀ̵å self.onError=null; currentX = currentY = 0; whichIt = null; lastScrollX = 0; lastScrollY = 0; NS = (document.layers) ? 1 : 0; IE = (document.all) ? 1: 0; var tmp1= tmp2= tmp3 =0; tmp1 = document.body.clientHeight; var has2ndScraper = false; if (typeof(skyswf1) == "object") has2ndScraper = true; function heartBeat() { obj=document.getElementById("skyswf"); obj.style.left = ((document.body.scrollWidth - 900) / 2)+877; obj.style.display='block'; tmp2 = document.body.clientHeight; if(tmp1 != tmp2){ tmp3 = tmp2 - tmp1; tmp1 = tmp2; if(tmp3<0){} } if(IE) { diffY = document.body.scrollTop; diffX = 0; } else if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; } if(diffY != lastScrollY) { percent = .1 * (diffY - lastScrollY-100); if(percent > 0) percent = Math.ceil(percent)+10; else percent = Math.floor(percent)+10; if(IE) { document.all.skyswf.style.pixelTop += percent; if (has2ndScraper) document.all.skyswf1.style.pixelTop += percent; } else if(NS) { document.skyswf.top += percent; if (has2ndScraper) document.skyswf.top += percent; } lastScrollY = lastScrollY + percent; } if(diffX != lastScrollX) { percent = .1 * (diffX - lastScrollX); if(percent > 0) percent = Math.ceil(percent); else percent = Math.floor(percent); if(IE) { document.all.skyswf.style.pixelLeft += percent; if (has2ndScraper) document.all.skyswf1.style.pixelLeft += percent; } else if(NS) { document.skyswf.top += percent; if (has2ndScraper) document.skyswf1.top += percent; } lastScrollY = lastScrollY + percent; } } if(NS || IE) action = window.setInterval("heartBeat()",1);