// JavaScript Document

// Rollover buts

browserName = navigator.appName; browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3){
	version = "n3";
}
else{
	version = "n2";
}
if (browserName == "Microsoft Internet Explorer" && browserVer >= 3){
	version = "n3";
}
if (version == "n3"){

//ROLLOVER SCRIPTS VOOR KNOPPEN MIDDEN

	// MAIN ///////////////////////////////////////
	zorgon = new Image();
	zorgon.src = "gfx/space.gif";    
	zorgoff = new Image();
	zorgoff.src = "gfx/b-zorginstellingen.gif";
	
	kantorenon = new Image();
	kantorenon.src = "gfx/space.gif";    
	kantorenoff = new Image();
	kantorenoff.src = "gfx/b-kantoren.gif";
	
	comon = new Image();
	comon.src = "gfx/space.gif";    
	comoff = new Image();
	comoff.src = "gfx/b-communicatie.gif";
	
	hotelon = new Image();
	hotelon.src = "gfx/space.gif";    
	hoteloff = new Image();
	hoteloff.src = "gfx/b-hotelwezen.gif";
	
	retailon = new Image();
	retailon.src = "gfx/space.gif";    
	retailoff = new Image();
	retailoff.src = "gfx/b-retail.gif";
   
   // Onder //////////////////////////////////////////

   verlichtingon = new Image();
   verlichtingon.src = "gfx/sb-verlichting.gif";    
   verlichtingoff = new Image();
   verlichtingoff.src = "gfx/sb-verlichting-o.gif";
   
   ontwerpon = new Image();
   ontwerpon.src = "gfx/sb-ontwerp.gif";    
   ontwerpoff = new Image();
   ontwerpoff.src = "gfx/sb-ontwerp-o.gif";
   
   ibouwon = new Image();
   ibouwon.src = "gfx/sb-ibouw.gif";    
   ibouwoff = new Image();
   ibouwoff.src = "gfx/sb-ibouw-o.gif";
   
   stylingon = new Image();
   stylingon.src = "gfx/sb-styling.gif";    
   stylingoff = new Image();
   stylingoff.src = "gfx/sb-styling-o.gif";

}

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

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