
// 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 navigation.
if (br=="n3") {
img1on = new Image();			//Create four image objects for the
img1on.src = "navigation/team-on.gif";		//active headers; the headers displayed
img2on = new Image();			//when the mouse moves over the rollovers.
img2on.src = "navigation/workshops-on.gif";
img3on = new Image();
img3on.src = "navigation/psychotherapy-on.gif";
img4on = new Image();
img4on.src = "navigation/about-on.gif";
img5on = new Image();
img5on.src = "navigation/contact-on.gif";
img6on = new Image();
img6on.src = "navigation/news-on.gif";
img7on = new Image();
img7on.src = "navigation/letter-on.gif";

img1off = new Image();			//Create four image objects for the
img1off.src = "navigation/team-off.gif";	//inactive headers; the headers displayed
img2off = new Image();			//when the mouse moves off the rollovers.
img2off.src = "navigation/workshops-off.gif";
img3off = new Image();
img3off.src = "navigation/psychotherapy-off.gif";
img4off = new Image();
img4off.src = "navigation/about-off.gif";
img5off = new Image();
img5off.src = "navigation/contact-off.gif";
img6off = new Image();
img6off.src = "navigation/news-off.gif";
img7off = new Image();
img7off.src = "navigation/letter-off.gif";
}


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