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 imags.
if (br== "n3") {
	img1on = new Image();
    img1on.src = "images/home_button_on.gif";
	img2on = new Image();
    img2on.src = "images/services_button_on.gif";
	img3on = new Image();
    img3on.src = "images/turlock_button_on.gif";
   	img4on = new Image();
    img4on.src = "images/portfolio_button_on.gif";
	img5on = new Image();
    img5on.src = "images/about_us_button_on.gif";
	img6on = new Image();
    img6on.src = "images/contact_button_on.gif";
	img7on = new Image();
    img7on.src = "images/testimonials_button_on.gif";
	
	img1off = new Image();
    img1off.src = "images/home_button.gif";
	img2off = new Image();
    img2off.src = "images/services_button.gif";
	img3off = new Image();
    img3off.src = "images/turlock_button.gif";
	img4off = new Image();
    img4off.src = "images/portfolio_button.gif";
	img5off = new Image();
    img5off.src = "images/about_us_button.gif";
	img6off = new Image();
    img6off.src = "images/contact_button.gif";
	img7off = new Image();
    img7off.src = "images/testimonials_button.gif";
		
}

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");
	}
}

