
var qqList = new Array("553537800");
var online= new Array();
var g_floatDiv;
var g_Top=311;
var g_Left=880;

showQQ();
function showQQ()
{
	getOnline();
	setTimeout("createDiv()",1000);	
}
function getOnline()
{
	var url="http://webpresence.qq.com/getonline?Type=1&";
	for(var i=0;i<qqList.length;i++) url+=qqList[i]+":";
	var script=document.createElement("script");
	script.src=url;	
	document.body.appendChild(script); 		
}
function createDiv()
{	  
	g_floatDiv = document.createElement("<div id='divFloat' style='position: absolute; height: 100px; width: 110px; top: "+g_Top+"px;left: "+g_Left+"px;'></div>");
	var html="";
	html+="<table border='0' width='110' cellspacing='0' cellpadding='0'>";
 	html+="<tr><td width='110'><img border='0' src='images/_up.gif'></td></tr>";
 	html+="<tr><td valign='middle'  background='images/_middle.gif'>";
	
	for(var i=0;i<qqList.length;i++)
	{
		html+="<div  style='font-size:12px;'>&nbsp;&nbsp;";		
		if(online[i]&&online[i]==1)
		{
		html +="<img src='images/_QQonline.gif' border='0' align='middle'> <a style='color:blue;' target='blank' href='http://wpa.qq.com/msgrd?V=1&Uin="+qqList[i]+"&Site=在线咨询&Menu=no' title='在线即时交谈'>"+qqList[i] +"</a>";
		}
		else
		{
			html +="<img src='images/_QQonline.gif' border='0' align='middle'> <a style='color:blue;' target='blank' href='http://wpa.qq.com/msgrd?V=1&Uin="+qqList[i]+"&Site=在线咨询&Menu=no' title='在线即时交谈'>"+qqList[i] +"</a>";
		}
		html+="</div>";
	}
	html+="</td></tr>";
 	html+="<tr><td width='110'><img border='0' src='images/_down.gif'></td></tr>";
 	html+="</table>";  
	g_floatDiv.innerHTML = html;
	document.body.appendChild(g_floatDiv);
	onscroll = scrollDiv ;	
}
function scrollDiv()
{  	
  g_floatDiv.style.top = g_Top + document.body.scrollTop  ; 
}