
// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynduo/

//Detect if browser is Netscape 3 + or IE 4
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 headers.
if (br=="n3") {
img1on = new Image();			//Create four image objects for the
img1on.src = "../navigation/history-on.gif";		//active headers; the headers displayed
img2on = new Image();			//when the mouse moves over the rollovers.
img2on.src = "../navigation/about-on.gif";
img3on = new Image();
img3on.src = "../navigation/companies-on.gif";
img4on = new Image();
img4on.src = "../navigation/newsletter-on.gif";
img5on = new Image();
img5on.src = "../navigation/links-on.gif";
img6on = new Image();
img6on.src = "../navigation/contact-on.gif";
img7on = new Image();
img7on.src = "../navigation/ask-on.gif";
img8on = new Image();
img8on.src = "../navigation/auto-on.gif";
img9on = new Image();
img9on.src = "../navigation/homeowners-on.gif";
img10on = new Image();
img10on.src = "../navigation/business-on.gif";
img11on = new Image();
img11on.src = "../navigation/life-on.gif";
img12on = new Image();
img12on.src = "../navigation/health-on.gif";

img1off = new Image();			//Create four image objects for the
img1off.src = "../navigation/history-off.gif";	//inactive headers; the headers displayed
img2off = new Image();			//when the mouse moves off the rollovers.
img2off.src = "../navigation/about-off.gif";
img3off = new Image();
img3off.src = "../navigation/companies-off.gif";
img4off = new Image();
img4off.src = "../navigation/newsletter-off.gif";
img5off = new Image();
img5off.src = "../navigation/links-off.gif";
img6off = new Image();
img6off.src = "../navigation/contact-off.gif";
img7off = new Image();
img7off.src = "../navigation/ask-off.gif";
img8off = new Image();
img8off.src = "../navigation/auto-off.gif";
img9off = new Image();
img9off.src = "../navigation/homeowners-off.gif";
img10off = new Image();
img10off.src = "../navigation/business-off.gif";
img11off = new Image();
img11off.src = "../navigation/life-off.gif";
img12off = new Image();
img12off.src = "../navigation/health-off.gif";
}


//Function to " "activate" headers.
function imgAct(imgName) {		
	if (br == "n3") {	
		document[imgName].src = eval(imgName + "on.src");
		}
}
//Function to "deactivate" headers.
function imgInact(imgName) {		
	if (br == "n3") {
		document[imgName].src = eval(imgName + "off.src");
		}
}				
