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();
}
if (nn4 || ie4 || nn6) {
 btPanoramon= new Image(); btPanoramon.src="images/foto/pan_but_on.gif"; btPanoramoff= new Image(); btPanoramoff.src="images/foto/pan_but_off.gif";
 btX2on= new Image(); btX2on.src="images/foto/x2_but_on.gif"; btX2off= new Image(); btX2off.src="images/foto/x2_but_off.gif";
 btX6on= new Image(); btX6on.src="images/foto/x6_but_on.gif"; btX6off= new Image(); btX6off.src="images/foto/x6_but_off.gif";
 btNewoff= new Image(); btNewoff.src="images/sh_new_off.gif";
 btHisoff= new Image(); btHisoff.src="images/sh_his_off.gif";
 btPrzoff= new Image(); btPrzoff.src="images/sh_prz_off.gif";
 btProoff= new Image(); btProoff.src="images/sh_pro_off.gif";
 btConoff= new Image(); btConoff.src="images/sh_con_off.gif";
 btSuboff= new Image(); btSuboff.src="images/sh_sub_off.gif";
 btNewon= new Image(); btNewon.src="images/sh_new_on.gif";
 btHison= new Image(); btHison.src="images/sh_his_on.gif";
 btPrzon= new Image(); btPrzon.src="images/sh_prz_on.gif";
 btProon= new Image(); btProon.src="images/sh_pro_on.gif";
 btConon= new Image(); btConon.src="images/sh_con_on.gif";
 btSubon= new Image(); btSubon.src="images/sh_sub_on.gif";
}
function Mouse_Over(chn) {
var y,imgOn,imgOff;
if (nn4 || ie4 || nn6) {
  imgOn=eval('bt'+chn+"on.src"); //.substring(0,chn.length-3)
  imgOff=eval('bt'+chn+"off.src");
  if (document[chn].src==imgOn) document[chn].src=imgOff;
    else document[chn].src=imgOn;
}}
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+=25;
 He+=25;
 if (Desc == "") {Desc = Img;}
 if (Sc == 1) {
  if (Re == 1) {
   window.open(Img, "_blank", "toolbar=0, height="+He+", width="+Wi+", resizable, scrollbars=yes");
  } else { window.open(Img, "_blank", "toolbar=0, height="+He+", width="+Wi+", scrollbars=yes");}
 } else {
  if (Re == 1) {
   window.open(Img, "_blank", "toolbar=0, height="+He+", width="+Wi+", resizable");
  } else { window.open(Img, "_blank", "toolbar=0, height="+He+", width="+Wi);}
 }
}
ReloadPage(true);