
bName = navigator.appName;

bVer = parseInt(navigator.appVersion);

if ((bName == "Netscape" && bVer>=3) ||

        (bName == "Microsoft Internet Explorer" && bVer>=4)) browser= "n3";

else browser="n2";

// Create image objects, preload all active and inactive images.

if (browser=="n3") {	homeon = new Image();
                        homeon.src = "graphics/but_home_on.gif";
						
                        eventson = new Image();
                        eventson.src = "graphics/but_events_on.gif";
						
                        minuteson = new Image();
                        minuteson.src = "graphics/but_minutes_on.gif";
						
										
                        safetyon = new Image();
                        safetyon.src = "graphics/but_safety_on.gif";
						
                        calendaron = new Image();
                        calendaron.src = "graphics/but_calendar_on.gif";
						
						abouton = new Image();
                        abouton.src = "graphics/but_about_on.gif";
                         
						wccon = new Image();
                        wccon.src = "graphics/but_wcc_on.gif";
						
                        forumon = new Image();
                        forumon.src = "graphics/but_forum_on.gif";
						
						nghbrhdon = new Image();
                        nghbrhdon.src = "graphics/but_nghbrhd_on.gif"; 
						 
						directoryon = new Image();
                        directoryon.src = "graphics/but_directory_on.gif";  
						
						resourceon = new Image();
                        resourceon.src = "graphics/but_resources_on.gif"; 
						 
						actionon = new Image();
                        actionon.src = "graphics/but_action_on.gif"; 
						
						landuseon = new Image();
                        landuseon.src = "graphics/but_landuse_on.gif";  
						 
					homeoff = new Image();
                        homeoff.src = "graphics/but_home_off.gif";
						
				
						
                        eventsoff = new Image();
                        eventsoff.src = "graphics/but_events_off.gif";
						
                        minutesoff = new Image();
                        minutesoff.src = "graphics/but_minutes_off.gif";
						
						
                        safetyoff = new Image();
                        safetyoff.src = "graphics/but_safety_off.gif";
						
                        calendaroff = new Image();
                        calendaroff.src = "graphics/but_calendar_off.gif";
						
						aboutoff = new Image();
                        aboutoff.src = "graphics/but_about_off.gif";
                         
						wccoff = new Image();
                        wccoff.src = "graphics/but_wcc_off.gif";
						
                        forumoff = new Image();
                        forumoff.src = "graphics/but_forum_off.gif";
						
						nghbrhdoff = new Image();
                        nghbrhdoff.src = "graphics/but_nghbrhd_off.gif"; 
       					
						directoryoff = new Image();
                        directoryoff.src = "graphics/but_directory_off.gif"; 
						
						resourceoff = new Image();
                        resourceoff.src = "graphics/but_resources_off.gif";
						
						
						actionoff = new Image();
                        actionoff.src = "graphics/but_action_off.gif";
						
						landuseoff = new Image();
                        landuseoff.src = "graphics/but_landuse_off.gif"; 
}
function swapOn(imgName){
        if(browser=="n3"){
        document[imgName].src = eval(imgName + "on.src");
        }
}
function swapOff(imgName){
        if(browser=="n3"){
        document[imgName].src = eval(imgName + "off.src");
        }
} 