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";

lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);

}//from jzxue.com

         function openchat() 
{ window.open("chat/chat.aspx","","width=698,height=500,left=160,top=100,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
} 

function getmsn(msn)
{
suspendcode12="<DIV id=\"lovexin12\" style='left:2px;POSITION:absolute;TOP:120px;'></div>"
suspendcode14="<DIV id=\"lovexin14\" style='right:2px;POSITION:absolute;TOP:120px;'>"
suspendcode14+="<table cellspacing=\"0\" cellpadding=\"0\" width=\"109\" border=\"0\"><tr><td colspan=\"3\"><a shape=\"circle\" coords=\"91,16,12\"><img height=\"34\" src=\"img\/qq_top.gif\" width=\"109\" border=\"0\"><\/a><\/td><\/tr><tr><td width=\"6\"><img height=\"130\" src=\"img\/qq_life.gif\" width=\"6\"><\/td><td valign=\"top\" width=\"96\" background=\"img\/qq_bg.gif\"><table cellspacing=\"0\" cellpadding=\"0\" width=\"90\" align=\"center\" border=\"0\"><tr><td><a href=\"javascript:openchat()\"><img src=\"img\/chat.gif\" width=\"96\" height=\"126\" border=\"0\"><\/a><\/td><\/tr><tr><td><\/td><\/tr><tr><td><\/td><\/tr><\/table><\/td><td width=\"7\"><img height=\"126\" src=\"img\/qq_right.gif\" width=\"7\"><\/td><\/tr><tr><td colspan=\"3\"><img height=\"30\" src=\"img\/qq_bottom1.gif\" width=\"109\"><\/td><\/tr><tr><td colspan=\"3\"><img height=\"33\" src=\"img\/qq_logo.gif\" width=\"109\"><\/td><\/tr><\/table>";
suspendcode14+="</div>"
document.write(suspendcode12); 
document.write(suspendcode14); 
}

