mmt_lastScrollY=-100;
mmt_lastScrollY2=0;
function mmt_heartBeat(){ 
	var mmt_diffY;
	if (document.documentElement && document.documentElement.scrollTop){
		mmt_diffY = document.documentElement.scrollTop;
	}
	else if (document.body){
		mmt_diffY = document.body.scrollTop
	}
	
	mmt_percent=.1*(mmt_diffY-mmt_lastScrollY); 
	
	if(mmt_percent>0){
		mmt_percent=Math.ceil(mmt_percent); 
	}
	else{
		mmt_percent=Math.floor(mmt_percent); 
	}

	mmt_percent2=.1*(mmt_diffY-mmt_lastScrollY2); 
	if(mmt_percent2>0){
		mmt_percent2=Math.ceil(mmt_percent2); 
	}	
	else{
		mmt_percent2=Math.floor(mmt_percent2); 
	}
	
	document.getElementById("mmt_lovexin12").style.top=parseInt(document.getElementById("mmt_lovexin12").style.top)+mmt_percent+"px";
	mmt_lastScrollY=mmt_lastScrollY+mmt_percent; 
	mmt_lastScrollY2 = mmt_lastScrollY2+mmt_percent2;
}

function gommt(mmt_url,mmt_img,mmt_opentype){
	mmt_div="<DIV id=\'mmt_lovexin12\' style='right:0px;POSITION:absolute;TOP:2px;'><table width='100' border='0' cellspacing='0' cellpadding='0'><tr><td><a href='http://call.mmt.cc/"+mmt_url+"' "+mmt_opentype+"><img src='http://call.mmt.cc/images/MMT_icon_0"+mmt_img+".gif' border='0' /></a></td></tr></table></div>";
	document.write(mmt_div); 
	window.setInterval("mmt_heartBeat()",1);
}
