var imgheight
var imgleft
//document.ns = navigator.appName == "Netscape"
isNS 	= (document.layers)?true:false;  //NS4:true ie\ns6กข7:false
isFly=window.screen.width>800?true:false;
window.screen.width>800 ? imgheight=300:imgheight=300
window.screen.width>800 ? imgleft=0:imgleft=108
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-450;
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-450;
 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(isFly)
    {
if (isNS)
{
document.write("<layer id=myright style='position: absolute;width:80;top:30;left:0;visibility: visible;z-index: 1'>");
document.write("<a href=/problem/  target=_blank style='cursor:hand'>");
document.write("<img src=images/fu_right.gif width=128 height=122 border=0></a>");
document.write("</layer>");
myLeftload()}
else
{
document.write("<div id=myleft style='position: absolute;width:80;top:30;left:0;visibility: visible;z-index: 1'>");
document.write("<a href=/problem/ target=_blank style='cursor:hand'>");
document.write("<img src=images/fu_right.gif width=128 height=122 border=0></a>");
document.write("</div>");
myLeftload()
}
  }




var imgheight
var imgright
document.ns = navigator.appName == "Netscape"
isFlyr=window.screen.width>800?true:false;
window.screen.width>800 ? imgheight=300:imgheight=300
window.screen.width>800 ? imgright=window.screen.width-15-118:imgright=window.screen.width-300-270
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-450;
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-450;
 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(isFlyr)
{
if (navigator.appName == "Netscape")
{
document.write("<layer id=myright style='position: absolute;width:80;top:60;left:5;visibility: visible;z-index: 1'>");
document.write("<a href=/lianxi.htm  target=_blank style='cursor:hand'>");
document.write("<img src='images/fudongleft.gif' border=0 WIDTH=110 HEIGHT=300></a>");
document.write("</layer>");
myRightload()}
else
{
document.write("<div id=myright style='position: absolute;width:60;top:60;left:5;visibility: visible;z-index: 1'>");
document.write("<a href=/lianxi.htm  target=_blank style='cursor:hand'>");
document.write("<img src='images/fudongleft.gif' border=0 WIDTH=110 HEIGHT=300></a>");
document.write("</div>");
myRightload()}
}
