﻿var qqtop,qqbg,qqbot,topx,rightx;
if(qqtop==null){
	qqtop="http://www.020jt.com/qq/qqtop.jpg";
}
if(qqbg==null){
	qqbg="http://www.020jt.com/qq/qqbg.jpg";
}
if(qqbot==null){
	qqbot="http://www.020jt.com/qq/qqbot.jpg";
}
if(topx==null){
	topx=340;
}
if(rightx==null){
	rightx=2;
}

//alert(online.length);
function start(){
	var starti="";
	for(i=0;i<online.length;i++){
starti=starti+"<a target=blank href=tencent://message/?uin="+online[i]+"&Site=在线咨询&Menu=yes><img border=0 SRC=http://wpa.qq.com/pa?p=1:"+online[i]+":7 alt=点击这里给我发消息></a><Br>";
	}
return starti;
}

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);
}
//suspendcode12="<DIV id=\"lovexin12\" style='left:2px;POSITION:absolute;TOP:120px;'><EMBED src='menu.swf' quality=high  WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=ad wmode=transparent></EMBED></div>"
suspendcode12="<DIV id=\"lovexin12\" style='left:2px;POSITION:absolute;TOP:340px;'></div>"
suspendcode14="<DIV id=\"lovexin14\" style='text-align:left;border: 1px solid #000000;background-color: #eeeeee;right:"+rightx+"px;POSITION:absolute;TOP:"+topx+"px;'><table width=111 border=0 cellspacing=0 cellpadding=0><tr><td><img src="+qqtop+"></td></tr><tr><td align=center height=25 style=background:url("+qqbg+") center center repeat-y>"+start()+"</td></tr><tr><td><img src="+qqbot+"></td></tr></table></div>"
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);