
// 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 images.
if (br=="n3") {
img1on = new Image();			//Create four image objects for the
img1on.src = "navigation/home-on.gif";		//active images; the images displayed
img2on = new Image();			//when the mouse moves over the rollovers.
img2on.src = "navigation/welcome-on.gif";
img3on = new Image();
img3on.src = "navigation/research-on.gif";
img4on = new Image();
img4on.src = "navigation/recognitions-on.gif";
img5on = new Image();
img5on.src = "navigation/sponsors-on.gif";
img6on = new Image();
img6on.src = "navigation/personnel-on.gif";
img7on = new Image();
img7on.src = "navigation/organization-on.gif";
img8on = new Image();
img8on.src = "navigation/area-on.gif";
img9on = new Image();
img9on.src = "navigation/site-on.gif";

img1off = new Image();			//Create four image objects for the
img1off.src = "navigation/home-off.gif";	//inactive images; the images displayed
img2off = new Image();			//when the mouse moves off the rollovers.
img2off.src = "navigation/welcome-off.gif";
img3off = new Image();
img3off.src = "navigation/research-off.gif";
img4off = new Image();
img4off.src = "navigation/recognitions-off.gif";
img5off = new Image();
img5off.src = "navigation/sponsors-off.gif";
img6off = new Image();
img6off.src = "navigation/personnel-off.gif";
img7off = new Image();
img7off.src = "navigation/organization-off.gif";
img8off = new Image();
img8off.src = "navigation/area-off.gif";
img9off = new Image();
img9off.src = "navigation/site-off.gif";
}


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