var imgheightic
var imgleftic
document.ns = navigator.appName == "Netscape"
if (window.screen.width<=800)
{
	imgheightic=350;
	imgleftic=760;
}
if (window.screen.width>800 && window.screen.width<=1024)
{
	imgheightic=480;
	imgleftic=894;
}
if (window.screen.width>1024)
{
	imgheightic=450;
	imgleftic=1020;
}

function icpdasload()
{
if (navigator.appName == "Netscape")
{document.icpdas.pageY=pageYOffset+window.innerHeight-imgheightic;
document.icpdas.pageX=imgleftic;
icpdasmove();
}
else
{
icpdas.style.top=document.body.scrollTop+document.body.offsetHeight-imgheightic;
icpdas.style.left=imgleftic;
icpdasmove();
}
}
function icpdasmove()
 {
 if(document.ns)
 {
 document.icpdas.top=pageYOffset+window.innerHeight-imgheightic
 document.icpdas.left=imgleftic;
 setTimeout("icpdasmove();",50)
 }
 else
 {
 icpdas.style.top=document.body.scrollTop+document.body.offsetHeight-imgheightic;
 icpdas.style.left=imgleftic;
 setTimeout("icpdasmove();",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)
if (navigator.appName == "Netscape")
{document.write("<layer id=icpdas top=100 width=100 height=280><a href='http://www.renri.com.cn'  title='联系我们！'   border=0 target=_blank><img src=/image/ad/renri-th-2.gif border=1  width=100 height=280></a><span  style='cursor:hand' onclick='javascript:close_float_right();'><b><font color=#ff0000>关闭</font></b></span></layer>");
icpdasload()}
else
{
document.write("<div id=icpdas style='position: absolute;width:100;top:280;visibility: visible;z-index: 1'><a href='http://www.renri.com.cn'  title='联系我们！'   border=0 target=_blank><img src=/image/ad/renri-th-2.gif border=1  width=100 height=280></a><span  style='cursor:hand' onclick='javascript:close_float_right();'><font color=#ff0000 size=1>关闭</font></span></div>");
icpdasload()
}

function close_float_right(){
	icpdas.style.visibility='hidden';
}