﻿

// JavaScript Document
var imgheight
var imgleft

function close_left(){  //关闭左边
	myleft.style.visibility='hidden';
}

function close_right(){  //关闭右边
	myright.style.visibility='hidden';
}


document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=510:imgheight=200
window.screen.width>800 ? imgleft=8:imgleft=12

//左侧加载 开始
function myleftload()
{
if (navigator.appName == "Netscape")
{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(document.ns)
 {
 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)
 }
 }
//左侧加载 结束


//右侧加载 开始
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=510:imgheight=300
window.screen.width>800 ? imgright=8:imgright=12
function rightload()
{
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.right=imgright;
rightmove();
}
}
function rightmove()
{
if(document.ns)
{
document.myright.top=pageYOffset+window.innerHeight-imgheight
document.myright.right=imgright;
setTimeout("rightmove();",80)
}
else
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myright.style.right=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")
{
document.write("<div id=myleft style='position: absolute;width:100;top:100;left:5;visibility: visible;z-index: 1'>");
//******************************************************************************* 左侧内容开始

document.write("<p><a id='aLeft' title='' href=''><img style=display='none' id='imgLeft' width='100' height='100' border=0></a><br><br></p>");

//******************************************************************************* 左侧内容结束
document.write("<p align=center><a id='aLeftClose' style=display='none' href='javascript:close_left();void(0);'><b><font color='#ff0000'>关闭</font></b></a></p></div>");
myleftload()
}


if (navigator.appName !== "Netscape")
{
document.write("<div id=myright style='position: absolute;width:80;top:4000;;right:2;visibility: visible;z-index:1'>");
//******************************************************************************* 右侧内容开始


document.write("<p><a id='aRight' title='' href=''><img style=display='none' id='imgRight' width='100' height='100' border=0></a><br><br></p>");


//******************************************************************************* 右侧内容结束
document.write("<p align=center><a id='aRightClose' style=display='none' href='javascript:close_right();void(0);'><b><font color='#ff0000'>关闭</font></b></a></p></div>");
rightload()
}
