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") {

 autosalonon = new Image();
 autosalonon.src="images/index/autosalon1.gif";
 autosalonoff = new Image();
 autosalonoff.src="images/index/autosalon.gif";

 leasingon = new Image();
 leasingon.src="images/index/leasing1.gif";
 leasingoff = new Image();
 leasingoff.src="images/index/leasing.gif";

 zpimseon = new Image();
 zpimseon.src="images/index/systemy1.gif";
 zpimseoff = new Image();
 zpimseoff.src="images/index/systemy.gif";
 
 autosalonwon = new Image();
 autosalonwon.src="images/index/wiecej_11.gif";
 autosalonwoff = new Image();
 autosalonwoff.src="images/index/wiecej_1.gif";

 zpimsewon = new Image();
 zpimsewon.src="images/index/wiecej_21.gif";
 zpimsewoff = new Image();
 zpimsewoff.src="images/index/wiecej_2.gif";

 leasingwon = new Image();
 leasingwon.src="images/index/wiecej_31.gif";
 leasingwoff = new Image();
 leasingwoff.src="images/index/wiecej_3.gif";
 
 
 autosalonenon = new Image();
 autosalonenon.src="images/index/autosalon1_en.gif";
 autosalonenoff = new Image();
 autosalonenoff.src="images/index/autosalon_en.gif";

 zpimseenon = new Image();
 zpimseenon.src="images/index/systemy1_en.gif";
 zpimseenoff = new Image();
 zpimseenoff.src="images/index/systemy_en.gif";
 
 autosalonwenon = new Image();
 autosalonwenon.src="images/index/wiecej_11en.gif";
 autosalonwenoff = new Image();
 autosalonwenoff.src="images/index/wiecej_1en.gif";

 zpimsewenon = new Image();
 zpimsewenon.src="images/index/wiecej_21en.gif";
 zpimsewenoff = new Image();
 zpimsewenoff.src="images/index/wiecej_2en.gif";

 leasingwenon = new Image();
 leasingwenon.src="images/index/wiecej_31en.gif";
 leasingwenoff = new Image();
 leasingwenoff.src="images/index/wiecej_3en.gif";
 
 
 autosalondeon = new Image();
 autosalondeon.src="images/index/autosalon1_de.gif";
 autosalondeoff = new Image();
 autosalondeoff.src="images/index/autosalon_de.gif";

 leasingdeon = new Image();
 leasingdeon.src="images/index/leasing1.gif";
 leasingdeoff = new Image();
 leasingdeoff.src="images/index/leasing.gif";

 zpimsedeon = new Image();
 zpimsedeon.src="images/index/systemy1_de.gif";
 zpimsedeoff = new Image();
 zpimsedeoff.src="images/index/systemy_de.gif";
 
 autosalonwdeon = new Image();
 autosalonwdeon.src="images/index/wiecej_11de.gif";
 autosalonwdeoff = new Image();
 autosalonwdeoff.src="images/index/wiecej_1de.gif";

 zpimsewdeon = new Image();
 zpimsewdeon.src="images/index/wiecej_21de.gif";
 zpimsewdeoff = new Image();
 zpimsewdeoff.src="images/index/wiecej_2de.gif";

 leasingwdeon = new Image();
 leasingwdeon.src="images/index/wiecej_31de.gif";
 leasingwdeoff = new Image();
 leasingwdeoff.src="images/index/wiecej_3de.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;
   }
 }

}