  fotos = null;

  nazwaPrzegl = navigator.appName;
  werPrzegl = parseInt(navigator.appVersion);
  if (nazwaPrzegl == "Netscape" && werPrzegl >= 3) version = "n3"; 
  else if (nazwaPrzegl == "Microsoft Internet Explorer" && werPrzegl >= 4) version = "n3";
       else version = "n2";
  if (version == "n3")
  { 
   pic10 = new Image();    pic10.src = "img/10.gif";
   pic10_on = new Image(); pic10_on.src = "img/10a.gif";
   pic20 = new Image();    pic20.src = "img/20.gif";
   pic20_on = new Image(); pic20_on.src = "img/20a.gif";
   pic21 = new Image();    pic21.src = "img/21.gif";
   pic21_on = new Image(); pic21_on.src = "img/21a.gif";
   pic22 = new Image();    pic22.src = "img/22.gif";
   pic22_on = new Image(); pic22_on.src = "img/22a.gif";
   pic23 = new Image();    pic23.src = "img/23.gif";
   pic23_on = new Image(); pic23_on.src = "img/23a.gif";
   pic24 = new Image();    pic24.src = "img/24.gif";
   pic24_on = new Image(); pic24_on.src = "img/24a.gif";
   pic30 = new Image();    pic30.src = "img/30.gif";
   pic30_on = new Image(); pic30_on.src = "img/30a.gif";
   pic40 = new Image();    pic40.src = "img/40.gif";
   pic40_on = new Image(); pic40_on.src = "img/40a.gif";
   pic50 = new Image();    pic50.src = "img/50.gif";
   pic50_on = new Image(); pic50_on.src = "img/50a.gif";
   pic60 = new Image();    pic60.src = "img/60.gif";
   pic60_on = new Image(); pic60_on.src = "img/60a.gif";
   pic70 = new Image();    pic70.src = "img/70.gif";
   pic70_on = new Image(); pic70_on.src = "img/70a.gif";
   pic80 = new Image();    pic80.src = "img/80.gif";
   pic80_on = new Image(); pic80_on.src = "img/80a.gif";
   pic90 = new Image();    pic90.src = "img/90.gif";
   pic90_on = new Image(); pic90_on.src = "img/90a.gif";
  }

  function img_on(imgName)
  {
   if (version == "n3")
   {
    imgOn = eval(imgName + "_on.src");
    document [imgName].src = imgOn;
   }
  }

  function img_out(imgName)
  {
   if (version == "n3")
   {
    imgOut = eval(imgName + ".src");
    document [imgName].src = imgOut;
   }
  }

function Okno(url,w,h)
{
 //this.window.blur();
 if(fotos) {
  fotos.close();
  fotos=null;
 }
 if(w=='' || h=='') {
  w,h=450;
 }
 dx=(screen.availwidth-w)/2;
 dy=(screen.availheight-h)/2;
 fotos=window.open(url,'Okno','width=' + w + ',height=' + h + ',resizable=0,scrollbars=no,menubar=no,left=' + dx + ',fullscreen=no,top=' + dy);
 fotos.focus();
}

