var ad_float_right_src ="image/pang-bg.jpg";
var ad_float_right_url ="";
var ad_float_right_type = "";
document.ns = navigator.appName == "Microsoft Internet Explorer"

var imgheight_close
var imgright
window.screen.width>800 ? imgheight_close=550:imgheight_close=120
window.screen.width>800 ? imgright=8:imgright=122
function myload()
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close;
myright.style.left=document.body.offsetWidth-130;
rightmove();
}
function rightmove()
{ 
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close;
myright.style.left=document.body.scrollLeft+document.body.offsetWidth-130;
setTimeout("rightmove();",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';
}

document.write("<div id=myright style='position: absolute;width:80;top:300;left:5;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 width=115 height=153 border=0 cellpadding=0 cellspacing=0 align=center background=image/pang-bg.jpg><tr align=center><td  align=center>");

if(document.ns){
if(ad_float_right_type!="swf")
//document.write("<a href='" + ad_float_left_url + "' target = '_blank'><img src='" + ad_float_left_src + "' WIDTH=88 height=31 border=0></a>");
{
var urodz= new Date("4/19/2006");
var s="距西施故里旅游区<br>开园仪式<br>";
var now = new Date();
var ile = urodz.getTime() - now.getTime();
var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
if (dni > 1)
document.write(""+s+"举行还有<font color=red><b>"+dni +"</b></font>天")
else if (dni == 1)
document.write("只有2天啦！")
else if (dni == 0)
document.write("只有1天啦！")
else
document.write("好象已经过了哦！");
}
else
document.write("<EMBED src='" + ad_float_right_src + "' quality=high  WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash' id=changhongout ></EMBED>");
document.write("</td></tr><tr><td width=80 height=20 align=right><a href='javascript:close_float_right();void(0);' class=closefloat><b><font color=#ff0000>关闭</font></b></a></td></tr>"+"</table>"+"</div>");

myload()
}  
 
