if (document.images) { // Test to see if browser can handle image objects.

	// preload active images
	home_on = new Image(140,24);
	home_on.src ="nav_butns/home_on.gif";
	about_on = new Image(140,24);
	about_on.src ="nav_butns/about_on.gif";
	about_li_on = new Image(140,24);
	about_li_on.src ="nav_butns/about_li_on.gif";
	events_on = new Image(140,24);
	events_on.src ="nav_butns/events_on.gif";	
	photo_on = new Image(140,24);
	photo_on.src ="nav_butns/photo_on.gif";
	health_on = new Image(140,24);
	health_on.src ="nav_butns/health_on.gif";
	join_on = new Image(140,24);
	join_on.src = "nav_butns/join_on.gif";
	join_li_on = new Image(140,24);
	join_li_on.src = "nav_butns/join_li_on.gif";
	contact_on = new Image(140,24);
	contact_on.src ="nav_butns/contact_on.gif";
	links_on = new Image(140,24);
	links_on.src ="nav_butns/links_on.gif";
	li_links_on = new Image(140,24);
	li_links_on.src ="nav_butns/li_links_on.gif";
	liparks_on = new Image(140,24);
	liparks_on.src ="nav_butns/liparks_on.gif";	
	
	// preload default images
	home_off = new Image(140,24);
	home_off.src ="nav_butns/home_off.gif";	
	about_off = new Image(140,24);
	about_off.src = "nav_butns/about_off.gif";
	about_li_off = new Image(140,24);
	about_li_off.src = "nav_butns/about_li_off.gif";
	events_off = new Image(140,24);
	events_off.src = "nav_butns/events_off.gif";	
	photo_off = new Image(140,24);
	photo_off.src ="nav_butns/photo_off.gif";	
	health_off = new Image(140,24);
	health_off.src = "nav_butns/health_off.gif";
	join_off = new Image(140,24);
	join_off.src = "nav_butns/join_off.gif";
	join_li_off = new Image(140,24);
	join_li_off.src = "nav_butns/join_li_off.gif";
	contact_off = new Image(140,24);
	contact_off.src ="nav_butns/contact_off.gif";
	links_off = new Image(140,24);
	links_off.src = "nav_butns/links_off.gif";
	li_links_off = new Image(140,24);
	li_links_off.src = "nav_butns/li_links_off.gif";
	liparks_off = new Image(140,24);
	liparks_off.src ="nav_butns/liparks_off.gif";
			
	}
	
	//function to swap images on mouseover

	function imgOn(imgName) {
	if (document.images) {
	imageOn = eval(imgName + "_on.src");
	document [imgName].src = imageOn;
		}
	}

	//Function to swap images back to default on mouseout

	function imgOff(imgName) {
	if (document.images) {
	imageOff = eval(imgName + "_off.src");
	document [imgName].src = imageOff;
		}
	}