nn4 = (document.layers)? true : false;
ie4 = (document.all)? true : false;
nn6 = (document.getElementById && !ie4)? true : false;

function ReloadPage(init) {
 if (init == true) with (navigator) {
  if (nn4 || nn6) {
   document.MM_pgW=innerWidth;
   document.MM_pgH=innerHeight;
   onresize=MM_reloadPage;
  }
 } else if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) location.reload();
}
function MsOv(chn) {
var y,imgOn,imgOff;
if (nn4 || ie4 || nn6) {
  imgOn=eval('bt'+chn+"on.src");
  imgOff=eval('bt'+chn+"off.src");
  if (document[chn].src==imgOn) document[chn].src=imgOff;
    else document[chn].src=imgOn;
}}
function NW(Img, Wi, He, Re, Sc, Desc) {
 Wi+=0;
 He+=49;
 if (Desc == "") {Desc = Img;}
 if (Sc == 1) {
  if (Re == 1) {
   window.open("/foto.php?img="+Img+"&sc="+Sc+"&dsc="+Desc, "_blank", "toolbar=0, height="+He+", width="+Wi+", resizable, scrollbars=yes");
  } else { window.open("/foto.php?img="+Img+"&sc="+Sc+"&dsc="+Desc, "_blank", "toolbar=0, height="+He+", width="+Wi+", scrollbars=yes");}
 } else {
  if (Re == 1) {
   window.open("/foto.php?img="+Img+"&sc="+Sc+"&dsc="+Desc, "_blank", "toolbar=0, height="+He+", width="+Wi+", resizable");
  } else { window.open("/foto.php?img="+Img+"&sc="+Sc+"&dsc="+Desc, "_blank", "toolbar=0, height="+He+", width="+Wi);}
 }
}
ReloadPage(true);