﻿var imgheight_close
var imgright
document.ns = navigator.appName 
//== "Microsoft Internet Explorer"

window.screen.width>800 ? imgheight_close=600:imgheight_close=600
window.screen.width>800 ? imgright=10:imgright=122
 function rmyload()
{
	document.getElementById('myright').style.top=document.documentElement.scrollTop+document.documentElement.offsetHeight-imgheight_close+50+"px";
	document.getElementById('myright').style.right=imgright+"px";
	mymove();
}
 function mymove()
 {
	 //document.getElementById('myright').style.top=document.documentElement.scrollTop+document.documentElement.offsetHeight-imgheight_close+50+"px";
	 document.getElementById('myright').style.top=document.documentElement.scrollTop+50+"px";
	 document.getElementById('myright').style.right=imgright+"px";
	 setTimeout("mymove();",50)
 }

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 close_float_right(){
	document.getElementById('myright').style.display='none';
}

document.write("<div id='myright' style='position: absolute;width:101;hight:80;top:150;left:570;visibility: visible;z-index: 0'>"
+"<style>"
+"A.closefloat:link,A.refloat:visited {text-decoration:none;color:#000000;font-size:12px}"
+"A.closefloat:active,A.refloat:hover {text-decoration:underline;color:#0000FF;font-size:12px}"
+"</style>"
+"<table border=0 cellpadding=0 cellspacing=0><tr><td>");

if(document.ns){
if(ad_float_right_type!="swf")
	document.write("<a href='" + ad_float_right_url + "' target = '_blank'><img src='" + ad_float_right_src + "' WIDTH="+ad_float_right_width+" HEIGHT="+ad_float_right_height+"  border = 0></a>");
else
	document.write("<EMBED src='" + ad_float_right_src + "' quality=high WIDTH="+ad_float_right_width+" HEIGHT="+ad_float_right_height+" TYPE='application/x-shockwave-flash'></EMBED>");

document.write("</td></tr><tr><td width=80 height=20 align=right onclick='close_float_right();' style='cursor: pointer'><b><font color=#ff0000>关闭</font></b></td></tr>"
+"</table>"
+"</div>");

rmyload();
}