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 if (browser_name == "Opera" && browser_version >= 6.0) {
  version = "ok";
}
else {
  version = "bad";
}


if (version == "ok") {

 firmaon = new Image();
 firmaon.src="images/shared/firma1.gif";
 firmaoff = new Image();
 firmaoff.src="images/shared/firma.gif";

 ofertaon = new Image();
 ofertaon.src="images/shared/oferta1.gif";
 ofertaoff = new Image();
 ofertaoff.src="images/shared/oferta.gif";
 
 cennikon = new Image();
 cennikon.src="images/shared/cennik1.gif";
 cennikoff = new Image();
 cennikoff.src="images/shared/cennik.gif";

 kontakton = new Image();
 kontakton.src="images/shared/kontakt1.gif";
 kontaktoff = new Image();
 kontaktoff.src="images/shared/kontakt.gif";

 alkoon = new Image();
 alkoon.src="images/shared/alko1.gif";
 alkooff = new Image();
 alkooff.src="images/shared/alko.gif";

 dealerzyon = new Image();
 dealerzyon.src="images/shared/dealerzy1.gif";
 dealerzyoff = new Image();
 dealerzyoff.src="images/shared/dealerzy.gif";

 serwison = new Image();
 serwison.src="images/shared/serwis1.gif";
 serwisoff = new Image();
 serwisoff.src="images/shared/serwis.gif";

 przyczepyaon = new Image();
 przyczepyaon.src="images/index/przyczepy_a1.jpg";
 przyczepyaoff = new Image();
 przyczepyaoff.src="images/index/przyczepy_a.jpg"; 

 przyczepybon = new Image();
 przyczepybon.src="images/index/przyczepy_b1.jpg";
 przyczepyboff = new Image();
 przyczepyboff.src="images/index/przyczepy_b.jpg"; 

 przyczepycon = new Image();
 przyczepycon.src="images/index/przyczepy_c1.jpg";
 przyczepycoff = new Image();
 przyczepycoff.src="images/index/przyczepy_c.jpg";

 przyczepydon = new Image();
 przyczepydon.src="images/index/przyczepy_d1.jpg";
 przyczepydoff = new Image();
 przyczepydoff.src="images/index/przyczepy_d.jpg"; 
 
 firma_czon = new Image();
 firma_czon.src="images/shared/cz/firma1.gif";
 firma_czoff = new Image();
 firma_czoff.src="images/shared/cz/firma.gif";

 oferta_czon = new Image();
 oferta_czon.src="images/shared/cz/oferta1.gif";
 oferta_czoff = new Image();
 oferta_czoff.src="images/shared/cz/oferta.gif";
 
 cennik_czon = new Image();
 cennik_czon.src="images/shared/cz/cennik1.gif";
 cennik_czoff = new Image();
 cennik_czoff.src="images/shared/cz/cennik.gif";

 k_czontakt_czon = new Image();
 k_czontakt_czon.src="images/shared/cz/k_czontakt1.gif";
 k_czontakt_czoff = new Image();
 k_czontakt_czoff.src="images/shared/cz/k_czontakt.gif";

 alko_czon = new Image();
 alko_czon.src="images/shared/cz/alko1.gif";
 alko_czoff = new Image();
 alko_czoff.src="images/shared/cz/alko.gif";

 dealerzy_czon = new Image();
 dealerzy_czon.src="images/shared/cz/dealerzy1.gif";
 dealerzy_czoff = new Image();
 dealerzy_czoff.src="images/shared/cz/dealerzy.gif";

 serwis_czon = new Image();
 serwis_czon.src="images/shared/cz/serwis1.gif";
 serwis_czoff = new Image();
 serwis_czoff.src="images/shared/cz/serwis.gif";

 przyczepya_czon = new Image();
 przyczepya_czon.src="images/index/cz/przyczepy_a1.jpg";
 przyczepya_czoff = new Image();
 przyczepya_czoff.src="images/index/cz/przyczepy_a.jpg"; 

 przyczepyb_czon = new Image();
 przyczepyb_czon.src="images/index/cz/przyczepy_b1.jpg";
 przyczepyb_czoff = new Image();
 przyczepyb_czoff.src="images/index/cz/przyczepy_b.jpg"; 

 przyczepyc_czon = new Image();
 przyczepyc_czon.src="images/index/cz/przyczepy_c1.jpg";
 przyczepyc_czoff = new Image();
 przyczepyc_czoff.src="images/index/cz/przyczepy_c.jpg";

 przyczepyd_czon = new Image();
 przyczepyd_czon.src="images/index/cz/przyczepy_d1.jpg";
 przyczepyd_czoff = new Image();
 przyczepyd_czoff.src="images/index/cz/przyczepy_d.jpg"; 
 

 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;
   }
 }

}

