browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
version = browserName.substring(0,1) + browserVer;

if (version == "N3" || version == "N4" || version == "M3" || version == "M4") {

	homeon = new Image(); homeon.src = "bilder/buttons/home_on.gif";
	picoon = new Image(); picoon.src = "bilder/buttons/pico_on.gif";
	objeon = new Image(); objeon.src = "bilder/buttons/objects_on.gif";
	ordeon = new Image(); ordeon.src = "bilder/buttons/order_on.gif";
	conton = new Image(); conton.src = "bilder/buttons/contact_on.gif";

	arroon = new Image(); arroon.src = "bilder/buttons/arrow_on.gif";
	arro1on = new Image(); arro1on.src = "bilder/buttons/arrow_on.gif";
	arro2on = new Image(); arro2on.src = "bilder/buttons/arrow_on.gif";

	homeoff = new Image(); homeoff.src = "bilder/buttons/home_off.gif";
	picooff = new Image(); picooff.src = "bilder/buttons/pico_off.gif";
	objeoff = new Image(); objeoff.src = "bilder/buttons/objects_off.gif";
	ordeoff = new Image(); ordeoff.src = "bilder/buttons/order_off.gif";
	contoff = new Image(); contoff.src = "bilder/buttons/contact_off.gif";

	arrooff = new Image(); arrooff.src = "bilder/buttons/arrow_off.gif";
	arro1off = new Image(); arro1off.src = "bilder/buttons/arrow_off.gif";
	arro2off = new Image(); arro2off.src = "bilder/buttons/arrow_off.gif";

}
 
function img_act(imgName) {
   if (version == "N3" || version == "N4" || version == "M3"  || version == "M4") {
         imgOn = eval(imgName + "on.src");
         document [imgName].src = imgOn;
   }
}

function img_inact(imgName) {
   if (version == "N3" || version == "N4" || version == "M3"  || version == "M4") {
         imgOff = eval(imgName + "off.src");
         document [imgName].src = imgOff;
   }
}

