﻿var imgheight_close
var imgleft

var ss = window.screen.availWidth;
if (ss>1000)
{
	window.screen.width>800 ? imgheight_close=120:imgheight_close=120
	window.screen.width>800 ? imgleft=8:imgleft=10
	function myload()
	{
	myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close;
	myleft.style.left=imgleft;
	leftmove();
	}
	function leftmove()
	 { 
	 myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close-220;
	 myleft.style.left=imgleft;
	 setTimeout("leftmove();",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_left(){
		myleft.style.visibility='hidden';
	}
	
	document.write("<div id=myleft style='top:0;position:absolute;width:100;height:450;left:5;visibility: visible;z-index: 1; border: 1px solid #dddddd;'>")
	document.write("<table border=0 cellpadding=0 cellspacing=0 bgcolor=#FFFFFF><tr><td>");
	
	if(ad_float_left_type!="swf")
		document.write("<a href='" + ad_float_left_url + "' target = '_blank'><img src='" + ad_float_left_src + "'   border = 0></a>");
	else
		document.write("<EMBED src='" + ad_float_left_src + "' quality=high  WIDTH=100 HEIGHT=450 TYPE='application/x-shockwave-flash' id=changhongout ></EMBED>");
	document.write("</td></tr><tr><td height=15 align=center>")
	document.write("<span OnClick='close_float_left();' style='cursor:hand'>[关闭]</span></td></tr>"+"</table>"+"</div>");
	
	myload()
}
else
{
	window.screen.width>800 ? imgheight_close=120:imgheight_close=120
	window.screen.width>800 ? imgleft=8:imgleft=10
	function myload()
	{
	myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close;
	myleft.style.left=imgleft;
	leftmove();
	}
	function leftmove()
	 { 
	 myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close-350;
	 myleft.style.left=imgleft;
	 setTimeout("leftmove();",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_left(){
		myleft.style.visibility='hidden';
	}
	
	document.write("<div id=myleft style='top:360;position:absolute;width:80;left:5;visibility: visible;z-index: 1; border: 1px solid #dddddd;'>")
	document.write("<table border=0 cellpadding=0 cellspacing=0 bgcolor=#FFFFFF><tr><td>");
	
	if(ad_float_left_type!="swf")
		document.write("<a href='Script/" + ad_float_left_url + "' target = '_blank'><img src='Script/" + ad_float_left_src + "' WIDTH=80 HEIGHT=300  border = 0></a>");
	else
		document.write("<EMBED src='" + ad_float_left_src + "' quality=high  WIDTH=80 HEIGHT=300 TYPE='application/x-shockwave-flash' id=changhongout ></EMBED>");
	document.write("</td></tr><tr><td height=15 align=center>")
	document.write("<span OnClick='close_float_left();' style='cursor:hand'>[关闭]</span></td></tr>"+"</table>"+"</div>");
	
	myload()
}