browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);
if (browser_name == "Netscape" && browser_version >= 3.0)
{
version = "ok";
}
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0)
{
version = "ok";
}
else
{
version = "bad";
}
if (version == "ok") {

 buttonon = new Image();
 buttonon.src="images/index/button_wiecej1.gif";
 buttonoff = new Image();
 buttonoff.src="images/index/button_wiecej.gif";

 glownaon = new Image();
 glownaon.src="images/index/button_glowna1.gif";
 glownaoff = new Image();
 glownaoff.src="images/index/button_glowna.gif";

 firmaon = new Image();
 firmaon.src="images/index/button_firma1.gif";
 firmaoff = new Image();
 firmaoff.src="images/index/button_firma.gif";

 ofertaon = new Image();
 ofertaon.src="images/index/button_oferta1.gif";
 ofertaoff = new Image();
 ofertaoff.src="images/index/button_oferta.gif";

 kontakton = new Image();
 kontakton.src="images/index/button_kontakt1.gif";
 kontaktoff = new Image();
 kontaktoff.src="images/index/button_kontakt.gif";

 formularzon = new Image();
 formularzon.src="images/index/button_formularz1.gif";
 formularzoff = new Image();
 formularzoff.src="images/index/button_formularz.gif";
 
 galeriaon = new Image();
 galeriaon.src="images/index/button_galeria1.gif";
 galeriaoff = new Image();
 galeriaoff.src="images/index/button_galeria.gif";
 
 flaga_plon = new Image();
 flaga_plon.src="images/index/flaga_pl1.gif";
 flaga_ploff = new Image();
 flaga_ploff.src="images/index/flaga_pl.gif";
 
 flaga_deon = new Image();
 flaga_deon.src="images/index/flaga_de1.gif";
 flaga_deoff = new Image();
 flaga_deoff.src="images/index/flaga_de.gif";
 
 flaga_enon = new Image();
 flaga_enon.src="images/index/flaga_en1.gif";
 flaga_enoff = new Image();
 flaga_enoff.src="images/index/flaga_en.gif";

 flaga_aton = new Image();
 flaga_aton.src="images/index/flaga_at1.gif";
 flaga_atoff = new Image();
 flaga_atoff.src="images/index/flaga_at.gif";


 

 function imgact(imgName) {
   if (version == "ok")
   {
     imgOn = eval(imgName + "on.src");
     document [imgName].src = imgOn;
   }
 }


 function imgnoact(imgName) {
   if (version == "ok")
   {
     imgOff = eval(imgName + "off.src");
     document [imgName].src = imgOff;
   }
 }

}

