// JavaScript Document


if (!document.layers)
document.write('<div id=divStayTopLeft style=position:absolute;z-index:999>');
document.write('<table width="" border="0" cellpadding="0" cellspacing="0"  >');
document.write('  <tr>');
document.write('    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('        <tr>');
document.write('          <td width="104"><img src="/images/qq/top.gif" width="104" height="50" /></td>');
document.write('          <td background="/images/qq/top1.gif"  ></td>');
document.write('        </tr>');
document.write('      </table></td>');
document.write('  </tr>');
document.write('  <tr>');
/**
内容循环
*/

for(var onlineLeng=0;onlineLeng<online.length;onlineLeng++){
	if (online[onlineLeng]!=0)
	  {
document.write('    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('      <tr  bgcolor="#FFFFFF">');
document.write('        <td width="1" bgcolor="#31B4EA" >&nbsp;</td>');
document.write('        <td><a href="http://wpa.qq.com/msgrd?V=1&amp;Uin='+onQQ[onlineLeng]+'&amp;Site='+onText1[onlineLeng]+'&amp;Menu=yes" target="blank"><img src="/images/qq/qq.gif" border="0" hspace="3"><font style="font-size:12px;TEXT-DECORATION:none;color:#000000;">'+onText1[onlineLeng]+'</font></a></td>');
document.write('        <td width="1" bgcolor="#31B4EA" >&nbsp;</td>');
document.write('      </tr>');
document.write('    </table></td>');
	  }
	else
	  {
document.write('    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('      <tr  bgcolor="#FFFFFF">');
document.write('        <td width="1" bgcolor="#31B4EA" >&nbsp;</td>');
document.write('        <td><a href="http://wpa.qq.com/msgrd?V=1&amp;Uin='+onQQ[onlineLeng]+'&amp;Site='+onText1[onlineLeng]+'&amp;Menu=yes" target="blank"><img src="/images/qq/qq1.gif" border="0" hspace="3"><font style="font-size:12px;TEXT-DECORATION:none;color:#000000;">'+onText1[onlineLeng]+'</font></a></td>');
document.write('        <td width="1" bgcolor="#31B4EA" >&nbsp;</td>');
document.write('      </tr>');
document.write('    </table></td>');
	  }
	if(onlineLeng!=(online.length-1)){
		document.write('  </tr>');
	}
	if(onlineLeng!=0){
		document.write('  <tr>');
	}

}
/*****
结束表格
***/
document.write('</tr>');
document.write('  <tr>');
document.write('    <td align="left" valign="top"><table width=""  border="0" cellspacing="0" cellpadding="0">');
document.write('      <tr>');
document.write('        <td  height="8" align="left" valign="top" ><img src="/images/qq/bottom.gif" width="98"  /></td>');
document.write('        <td  align="left" valign="top" background="/images/qq/bottom2.gif" height="8" ></td>');
document.write('        <td width="6" height="8"  align="left" valign="top"><img src="/images/qq/bottom1.gif" width="6" height="8" /></td>');
document.write('      </tr>');
document.write('    </table></td>');
document.write('  </tr>');
document.write('</table>');


var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function scrollqq()
{
	var posXqq,posYqq;
	if (window.innerHeight)
	{
		posXqq=window.pageXOffset;
		posYqq=window.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop)
	  {
		posXqq=document.documentElement.scrollLeft;
		posYqq=document.documentElement.scrollTop;
	}
	else if (document.body)
	  {
		posXqq=document.body.scrollLeft;
		posYqq=document.body.scrollTop;
	  }
	 var divStayTopLeft=document.getElementById("divStayTopLeft");
	
//	divStayTopLeft.style.top=(posYqq+400-380)+"px";
//	divStayTopLeft.style.left=(posXqq+screen.width-170)+"px";
	divStayTopLeft.style.top=(posYqq+360-50)+"px";
	divStayTopLeft.style.right=(posXqq+15)+"px";
	setTimeout("scrollqq()",500);
    }
      scrollqq();
