﻿//var ad_float_right_src = "/temp/20060912/fd_qyb.gif";
//var ad_float_right_url = "/temp/20060912/qyb.html";
//var ad_float_right_type = "";

var imgheight_close
document.ns = navigator.appName == "Microsoft Internet Explorer"
var bdy = (document.documentElement && document.documentElement.clientWidth)?document.documentElement:document.body;

window.screen.width>800 ? imgheight_close=ad_float_right_height+40:imgheight_close=ad_float_right_width+40
 function myload()
{
	myright.style.top=bdy.scrollTop+bdy.offsetHeight-imgheight_close;
	myright.style.left=bdy.offsetWidth-ad_float_right_width-20;
	mymove();
}
 function mymove()
 {
	myright.style.top=bdy.scrollTop+bdy.offsetHeight-imgheight_close;
	myright.style.left=bdy.scrollLeft+bdy.offsetWidth-ad_float_right_width-20;
	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(){
	myright.style.visibility='hidden';
}

if(document.ns){
document.write("<div id=myright style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'>\
<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>");

document.write("<tr><td>");
document.write("<div style='position:absolute;top:3px;right:3px;z-index:0'><a href='javascript:close_float_right();void(0);' style='text-decoration:none'><font color=#dddddd style='font-size:12px'>关闭</font></a></div>");

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("<div id='ad_float_right_div'></div>");
	var objFlash = new sinaFlash(ad_float_right_src, "ad_float_right", ad_float_right_width, ad_float_right_height, "7", "#ffffff");
	objFlash.addParam("quality", "high");
	objFlash.addParam("wmode", "opaque");
	objFlash.write("ad_float_right_div");
}
document.write("</td></tr></table></div>");

myload()
}
