// JavaScript Document

function showFlash(_flashPath_,_flashWidth_,_flashHeight_) {
        var _object_ = "";
        _object_ = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + _flashWidth_ + '" height="' + _flashHeight_ + '">';
        _object_ += '<param name="movie" value="' + _flashPath_ + '">';
        _object_ += '<param name="quality" value="high">';
        _object_ += '<param name="wmode" value="transparent">';
        _object_ += '<embed src="' + _flashPath_ + '" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + _flashWidth_ + '" height="' + _flashHeight_ + '" wmode="opaque"></embed>';
        _object_ += '</object>';
        
        document.write(_object_);
}

lastScrollY=0;
function heartBeatleft(){ 
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";

lastScrollY=lastScrollY+percent; 
}

function heartBeatright(){ 
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("lovexin14").style.top)+percent+"px";

lastScrollY=lastScrollY+percent; 
}
suspendcode12="<DIV id=\"lovexin12\" style='left:22px;POSITION:absolute;TOP:100px;z-index:2000; '><SCRIPT>showFlash('/event/swf/banner.swf','120','290');</SCRIPT><br><a href=JavaScript:; onclick=\"lovexin12.style.visibility='hidden'\"><img border=0 src='/hantaCommon/image/event/close.gif'></a></div>"

suspendcode14="<DIV id=\"lovexin14\" style='right:182px;POSITION:absolute;TOP:100px;z-index:2000 ;'><SCRIPT>showFlash('/event/swf/banner.swf','120','290');</SCRIPT><br><a href=JavaScript:; onclick=\"lovexin14.style.visibility='hidden'\"><img border=0 src='/hantaCommon/image/event/close.gif'></a></div>"

function showLeft(){ 

document.write(suspendcode12); 
//document.write(suspendcode14); 
window.setInterval("heartBeatleft()",1);
}

function showright(){ 

//document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeatright()",1);
}
