// JavaScript Document

var browser     = '';
var version     = '';
var entrance    = '';
var cond        = '';
// BROWSER?
if (browser == ''){
	if (navigator.appName.indexOf('Microsoft') != -1) {
		browser = 'IE'
	} else if (navigator.appName.indexOf('Netscape') != -1) {
		browser = 'Netscape'
	} else {
		browser = 'IE';
	}
}
if (version == ''){
	version= navigator.appVersion;
	paren = version.indexOf('(');
	whole_version = navigator.appVersion.substring(0,paren-1);
	version         = parseInt(whole_version);
}

// eliminate ie style sheet hacks joe w
//if (browser == 'IE' && version >= 4) {
//	document.write('<'+'link rel="stylesheet" href="ie.css" />');
//}

// this was a duplicate include of the same CSS file - 2/2 joe w
//if (browser == 'Netscape' && version >= 2.02) document.write('<'+'link rel="stylesheet" href="global.css" />');

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) {
	window.attachEvent("onload", sfHover);
}
