﻿//Javascript rollover created by Gregg Moore for Wilmington Design Company, http://www.wilmingtondesignco.com

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);

if ((bName == "Netscape" && bVer >= 3) ||
	(bName == "Microsoft Internet Explorer"  &&bVer >= 4)) br = "n3";
	 else br = "n2";

//Create image objects, preload all active and inactive images.

//Top buttons
if (br =="n3") {

	img1on = new Image();
	img1on.src = "images/buttons/community_over.jpg";
	img1off = new Image();
	img1off.src = "images/buttons/community.jpg";
	
	img2on = new Image();
	img2on.src = "images/buttons/homes_over.jpg";
	img2off = new Image();
	img2off.src = "images/buttons/homes.jpg";

	img3on = new Image();
	img3on.src = "images/buttons/recreation_over.jpg";
	img3off = new Image();
	img3off.src = "images/buttons/recreation.jpg";

	img4on = new Image();
	img4on.src = "images/buttons/location_over.jpg";
	img4off = new Image();
	img4off.src = "images/buttons/location.jpg";
	
	img5on = new Image();
	img5on.src = "images/buttons/contact_over.jpg";
	img5off = new Image();
	img5off.src = "images/buttons/contact.jpg";
		
	img6on = new Image();
	img6on.src = "images/buttons/directions_over.jpg";
	img6off = new Image();
	img6off.src = "images/buttons/directions.jpg";
	
	
  }

function imgAct(imgName) {
	if (br == "n3") {
		document[imgName].src = eval(imgName + "on.src");
	}
}

function imgInact(imgName) {
	if (br == "n3") {
		document[imgName].src = eval(imgName + "off.src");
	}
}
