document.ns = navigator.appName == "Netscape";
var imgheight=100;
function myload()
{
	if (navigator.appName == "Netscape")
	{
		document.RightMove.pageY=pageYOffset+window.innerHeight-imgheight;
		document.RightMove.pageX=+window.innerWidth-120
	}
	else
	{
		RightMove.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
		RightMove.style.left=document.body.offsetWidth-120
			mymove();
	}
}
function mymove()
{
	if(document.ns)
	{
		document.RightMove.top=pageYOffset+document.body.offsetHeight-imgheight;
		document.RightMove.left=pageXOffset+window.innerWidth-120
			setTimeout("mymove();",5)
	}
	else
	{
		RightMove.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
		RightMove.style.left=document.body.scrollLeft+document.body.offsetWidth-120
			setTimeout("mymove();",5)
	}
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function RightImage(FileName,ALT){
	Height=80;
	Width=80;
	if(FileName.length>4){
		subName=FileName.substring(FileName.length-4,FileName.length);
		if(subName==".swf")
			document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" height=",Height," width=",Width,">\n<param name=movie value=\'",FileName,"\'>\n<param name=quality value=high>\n\n</object>");
		else document.write("<img src=\'",FileName,"\' border=0 height=\'",Height,"\' width=\'",Width,"\'alt=\'",ALT,"\'>");
	}
	else document.write("<img src=\'",FileName,"\' border=0 height=\'",Height,"\' width=\'",Width,"\'alt=\'",ALT,"\'>");}


sRightUrl="http://chat.qq.com/images/ad/chat80_0604.gif";
sRightClick="http://chat.qq.com/hd/040525.shtml";

if (sRightUrl!="Tencent QQ")
{
	if (navigator.appName == "Netscape")
	{
		document.write("<layer id=RightMove top=180 width=52 height=150><a href='",sRightClick,"' target=_blank>");
		RightImage(sRightUrl);
		document.write("</a></layer>");
		myload();
	}
	else
	{
		document.write("<div id=RightMove style='position: absolute;top:180;left:578;visibility: visible;z-index: 1'><a href='",sRightClick,"' target=_blank>");
		RightImage(sRightUrl);
		document.write("</a></div>");
		myload();
	}
}