/**
 *	对联广告之左(FLASH)——热烈祝贺河北旅游虚拟体验平台开通
*/
var ad_float_left_src ="http://www.hebeitour.com.cn/flash/ad-couplet.swf";
var ad_float_left_url ="";
var ad_float_left_type = "swf";
var ad_float_left_width ="90";
var ad_float_left_height ="400";
document.ns = navigator.appName == "Microsoft Internet Explorer"

var imgleft;
var tempscreenwidth;
tempscreenwidth=window.screen.width;

if(tempscreenwidth<=800){
	imgleft=905;
	
}else if(tempscreenwidth>800 && tempscreenwidth<=1024){
	imgleft=905;
}else if(tempscreenwidth>1024 && tempscreenwidth<=1280){
	imgleft=1033;
	
}

function myload_ad_couplet()
{
	adcouplet.style.top=document.documentElement.scrollTop+5;
	adcouplet.style.left=imgleft;
	leftmove_ad_couplet();
}
function leftmove_ad_couplet()
{ 
	adcouplet.style.top=document.documentElement.scrollTop+5;
	adcouplet.style.left=imgleft;
	setTimeout("leftmove_ad_couplet();",50);
}

function MM_reloadPage_ad_couplet(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_ad_couplet;
	   }
	}else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) 
		location.reload();
 }
MM_reloadPage_ad_couplet(true);

document.write("<div id=adcouplet style='position:absolute;width:"
+ad_float_left_width
+";top:20;left:-400;visibility: visible;z-index:100'>"
+"<style>"
+"A.closefloat:link,A.closefloat:visited {text-decoration:none;color:#000000;font-size:12px}"
+"A.closefloat:active,A.closefloat:hover {text-decoration:none;color:#0000FF;font-size:12px}"
+"</style>"
+"<table border=0 cellpadding=0 cellspacing=0><tr><td>");
if(document.ns){
	if(ad_float_left_type!="swf")
		document.write("<a href='" + ad_float_left_url + "' target= '_blank'><img src='" + ad_float_left_src + 
		"' WIDTH='"+ad_float_left_width+"' height='"+ ad_float_left_height+"' border=0></a>");
	else
		document.write("<EMBED src='" + ad_float_left_src + "'quality=high  WIDTH="+ad_float_left_width+" HEIGHT="+ad_float_left_height+" TYPE='application/x-shockwave-flash' wmode='transparent'></EMBED>");
		document.write("</td></tr>"
		+"</table>"
		+"</div>");
	myload_ad_couplet();
} 

