//	Browser sniffer. Script will only be enabled in compliant browsers. Also used for sizing form fields.													

var isMac = (navigator.userAgent.indexOf("Macintosh") != -1);
var isWin = (navigator.userAgent.indexOf("Windows 95") != -1 || navigator.userAgent.indexOf("Windows NT") != -1);
var isNS =  (navigator.appName == "Netscape");
var isIE =  (navigator.userAgent.indexOf("MSIE") != -1);
var ieWin = (navigator.userAgent.indexOf("MSIE") != -1 && (navigator.userAgent.indexOf("Windows 95") != -1 || navigator.userAgent.indexOf("Windows NT") != -1));
var toolBarLoc = "";

browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))
			
//	Event handling functions									

function mouseOver (buttonName) {
	if ( (browser) && (buttonName!=active) ) {
		document[buttonName].src=eval(buttonName+"_on.src");
	}       
}

function mouseOut (buttonName) {
	if ( (browser) && (buttonName!=active) ) {
		document[buttonName].src=eval(buttonName+"_off.src");
	} 
}

function mouseClick (buttonName) {
	active=buttonName;
	if (browser) {
		document[buttonName].src=eval(buttonName+"_active.src");
	}
}

function mouseOverSub (buttonName) {
	if ( (browser) && (buttonName!=active_sub) ) {
		document[buttonName].src=eval(buttonName+"_on.src");
	}       
}

function mouseOutSub (buttonName) {
	if ( (browser) && (buttonName!=active_sub) ) {
		document[buttonName].src=eval(buttonName+"_off.src");
	} 
}

function mouseClickSub (buttonName) {
	active_sub=buttonName;
	if (browser) {
		document[buttonName].src=eval(buttonName+"_on.src");
	}
}

// this goes in the body tag for onLoad
function pageLoad ( ) {
	if (browser) {
		if (active!= "" && active != "non") {
			document[active].src=eval(active+"_active.src");
		}
		if (active_sub != "" && active_sub != "non") {
			document[active_sub].src=eval(active_sub+"_on.src");
		}
	}
}

// preload the rollover images

	one_on = new Image; one_on.src="images/topnav_home_on.gif";
	one_off = new Image; one_off.src="images/topnav_home_off.gif";
	one_active = new Image; one_active.src="images/topnav_home_act.gif";
	
	two_on = new Image; two_on.src="images/topnav_about_on.gif";
	two_off = new Image; two_off.src="images/topnav_about_off.gif";
	two_active = new Image; two_active.src="images/topnav_about_act.gif";

	three_on = new Image; three_on.src="images/topnav_companies_on.gif";
	three_off = new Image; three_off.src="images/topnav_companies_off.gif";
	three_active = new Image; three_active.src="images/topnav_companies_act.gif";

	four_on = new Image; four_on.src="images/topnav_jobs_on.gif";
	four_off = new Image; four_off.src="images/topnav_jobs_off.gif";
	four_active = new Image; four_active.src="images/topnav_jobs_act.gif";

	five_on = new Image; five_on.src="images/topnav_contact_on.gif";
	five_off = new Image; five_off.src="images/topnav_contact_off.gif";
	five_active = new Image; five_active.src="images/topnav_contact_act.gif";

