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);
function resizeImageRel() {
  if (navigator.appName.indexOf("Internet Explorer")) {
    document.styleSheets[0].rules[document.styleSheets[0].rules.length-1].style.width = (screen.availWidth/16)+"%"
  }
}
var popUpWin=0;
function loadImage(num) {
  var URLStr = 'image.html?'+num
  var left = screen.width*0.025
  var top = screen.height*0.025
  var width = screen.width*0.95
  var height = screen.height*0.9
  if(popUpWin) {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}