﻿//lastScrollY=0; 
//function heartBeat(){ 
//var diffY;
//var thetop;

//if (document.documentElement && document.documentElement.scrollTop){
//  diffY = document.documentElement.scrollTop;
//  thetop = document.documentElement.clientHeight;
//}else if (document.body){ 
//  diffY = document.body.scrollTop;
//  thetop = document.body.clientHeight;
//}else{/*Netscape stuff*/} 
//  
////alert(diffY);
//percent=.1*(diffY-lastScrollY+thetop-200); 
//if(percent>0){
//	percent=Math.ceil(percent); 
//}else{
//	percent=Math.floor(percent);
//}
//document.getElementById("contact12").style.top=parseInt(document.getElementById("contact12").style.top)+percent+"px"; 
////document.getElementById("contact14").style.top=parseInt(document.getElementById("contact14").style.top)+percent+"px"; 
//lastScrollY=lastScrollY+percent; 
////alert(lastScrollY);
//}
function closeQQ(){
	var obj;
	myPlayer.style.display="none";
}
lastScrollY2=0;
function heartBeat2(){ 
var diffY2;
var thetop2;
if (document.documentElement && document.documentElement.clientHeight){
	diffY2 = document.documentElement.scrollTop;
    thetop2 = document.documentElement.clientHeight;
}
else if (document.body){
	diffY2 = document.body.scrollTop
    thetop2 = document.body.clientHeight;
}
else{
    {/*Netscape stuff*/}
}
//alert(thetop);
percent2=.1*(diffY2-lastScrollY2+thetop2-170); 
if(percent2>0)percent2=Math.ceil(percent2); 
else percent2=Math.floor(percent2); 
document.getElementById("myPlayer").style.top=parseInt(document.getElementById("myPlayer").style.top)+percent2+"px";
lastScrollY2=lastScrollY2+percent2;
//alert(percent);
}

suspendcode14="<DIV id='myPlayer' style='left:5px;POSITION:absolute;top:0px;height:168px;'><img src='../images/qq_close.gif' onclick='closeQQ()' onMouseOver=this.style.cursor='hand' /><table width='100' cellspacing='0' cellpadding='0'><tr><td><img src='../images/qq_01.gif' width='102' height='36'></td></tr><tr><td height='70' background='../images/qq_02.gif'><table width='100' border='0' cellspacing='0' cellpadding='0'><tr><td height='25' colspan='2'><div align='center'>在线客服</div></td></tr><tr><td width='33'><div align='right'>客服</div></td><td width='67' height='25'><a target=blank href=tencent://message/?uin=1360912153&Site=西部在线&Menu=yes><img border='0' SRC=http://wpa.qq.com/pa?p=1:1360912153:10 alt='点击这里给我发消息'></a></td></tr><tr><td><div align='right'>客服</div></td><td height='25'><a target=blank href=tencent://message/?uin=578998526&Site=西部在线&Menu=yes><img border='0' SRC=http://wpa.qq.com/pa?p=1:578998526:10 alt='点击这里给我发消息'></a></td></tr></table></td></tr><tr><td height='43' valign='bottom' background='../images/qq_03.gif'><table width='99%' cellspacing='0' cellpadding='0'><tr><td height='30'><div style='font-size:12px; text-align:center; line-height:43px; color:#FFFFFF;'>west029.com</div></td></tr></table></td></tr></table></div>" 
suspendcode12="<DIV id='myPlayer' style='right:5px;POSITION:absolute;top:0px;height:168px;'><img src='../images/qq_close.gif' onclick='closeQQ()' onMouseOver=this.style.cursor='hand' /><table width='100' cellspacing='0' cellpadding='0'><tr><td><img src='../images/qq_01.gif' width='102' height='36'></td></tr><tr><td height='70' background='../images/qq_02.gif'><table width='100' border='0' cellspacing='0' cellpadding='0'><tr><td height='25' colspan='2'><div align='center'>在线客服</div></td></tr><tr><td width='33'><div align='right'>客服</div></td><td width='67' height='25'><a target=blank href=tencent://message/?uin=476693553&Site=西部在线&Menu=yes><img border='0' SRC=http://wpa.qq.com/pa?p=1:476693553:10 alt='点击这里给我发消息'></a></td></tr><tr><td><div align='right'>客服</div></td><td height='25'><a target=blank href=tencent://message/?uin=578998526&Site=西部在线&Menu=yes><img border='0' SRC=http://wpa.qq.com/pa?p=1:578998526:10 alt='点击这里给我发消息'></a></td></tr></table></td></tr><tr><td height='43' valign='bottom' background='../images/qq_03.gif'><table width='99%' cellspacing='0' cellpadding='0'><tr><td height='30'><div style='font-size:12px; text-align:center; line-height:43px; color:#FFFFFF;'>west029.com</div></td></tr></table></td></tr></table></div>" 
document.write(suspendcode12); 
//document.write(suspendcode14); 
//window.setInterval("heartBeat()",1);
window.setInterval("heartBeat2()",1);
