//右浮动，风险投资商页面专用
//浮动图片JS代码。支持gif,jpg
var imgheight  //数值越小，离顶部越大
var imgleft
var imgurl  //gif,jpg路径　
//imgurl="<a href=http://www.huataisimu.com target=_blank  onclick=\"window.open('http://www.rztong.com.cn/adnum/popwin.htm?ad=adRzt1','','width=1,height=1')\"><img src=/ad/images/huataisimu.gif border=0 width=120 height=600></a>"

imgurl="<a href=http://www.huataisimu.com target=\"_blank\"  onclick=\"setTimeout(CloseAd,3000);\" ><img src=/ad/images/huataisimu.gif border=0 width=120 height=600></a>"
//document.ns = navigator.appName == "Netscape"
isNS 	= (document.layers)?true:false;  //NS4:true ie\ns6、7:false
window.screen.width>800 ? imgheight=90:imgheight=90

window.screen.width>800 ? imgleft=8:imgleft=130
function myLeftload()
{
if (isNS)
{
	document.myleft.pageY=pageYOffset+window.innerHeight-imgheight;
	document.myleft.pageX=imgleft;
	leftmove();
}
else
{
	myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
	myleft.style.left=imgleft;
	leftmove();
}
}
function leftmove()
 {
 if(isNS)

	 {
		 document.myleft.top=pageYOffset+window.innerHeight-imgheight
		  
		 document.myleft.left=imgleft;
		 setTimeout("leftmove();",80)
	 }
 else
	 {
		 myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
		 
		 myleft.style.left=imgleft;
		 setTimeout("leftmove();",80)
	 }
 }
function MM_reloadPage(init) 
{  //reloads the window if Nav4 resized
  if (init==true) with (navigator) 
  {
	  if ((isNS)&&(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);
if (isNS)
{
	if (window.screen.width>800)
	{
		document.write("<layer id=myright style='position: absolute;width:80;top:300;left:5;visibility: visible;z-index: 1'>");
		document.write(); 
		document.write("</layer>");
		myLeftload();
	}

}
else
{
	if (window.screen.width>800)
	{
		document.write("<div id=myleft style='position: absolute;width:80;top:300;left:5;visibility: visible;z-index: 1'>");
		document.write(); 
		document.write("</div>");
		myLeftload();
	}
}

//var imgheight
var imgright
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=600:imgheight=600
window.screen.width>800 ? imgright=window.screen.width-320:imgright=window.screen.width-320
function myRightload()
	{
	if (navigator.appName == "Netscape")
	{
		document.myright.pageY=pageYOffset+window.innerHeight-imgheight;
		document.myright.pageX=imgright;
		rightmove();
	}
else
	{
		myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
		myright.style.left=imgright;
		rightmove();
	}
}
function rightmove()
 {
 if(document.ns)
	 {
		 document.myright.top=pageYOffset+window.innerHeight-imgheight;
		 document.myright.left=imgright;
		 setTimeout("rightmove();",80);
	 }
 else
	 {
		 myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
		 myright.style.left=imgright;
		 setTimeout("rightmove();",80);
	 }
 }
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);
if (navigator.appName == "Netscape")
{
	if (window.screen.width>800)
	{
		document.write("<layer id=myright style='position: absolute;width:80;top:300;left:5;visibility: visible;z-index: 1'>");
		document.write(imgurl); 
		document.write("</layer>");
		myRightload();
	}
}
else
{
	if (window.screen.width>800)
	{
		document.write("<div id=myright style='position: absolute;width:80;top:300;left:5;visibility: visible;z-index: 1'>");
		document.write(imgurl); 
		document.write("</div>");
		myRightload();
	}
}


function CloseAd()
{
	document.all.myright.style.visibility = "hidden"; 

}

  