/* Browser sensing */
var isNew = 0;
var isNS4 = 0;
var isIE4 = 0;
var brow = ((navigator.appName) + (parseInt(navigator.appVersion)));
if (parseInt(navigator.appVersion) >= 5) {
isNew = 1}
else if (brow == "Netscape4") {
isNS4 = 1;}
else if (brow == "Microsoft Internet Explorer4") {
isIE4 = 1;}
/* cross-browser DOM */
if (isNS4) {
docObj = 'document.layers' + '[';
styleObj = ']'; }
else if (isIE4) {
docObj = 'document.all' + '[';
styleObj = ']' + '.style';
closeVar = ']';  }
else if (isNew) {
docObj = 'document.getElementById' + '(';
styleObj = ')' + '.style';
closeVar = ')';  }
function show() {
clearTimeout(Fuse);
for (var i=0; i<(show.arguments.length); i++) {
dom = eval(docObj + 'show.arguments[i]' + styleObj);
dom.display = 'inline';
}
}
function hide() {
for (var i=0; i<(hide.arguments.length); i++) {
dom = eval(docObj + 'hide.arguments[i]' + styleObj);
dom.display = 'none';
}
}
var Fuse;
function off(x) {
var str = "hide('"+x+"')";
Fuse = setTimeout(str,400);
}
function offAll() {
hide('hD','hF','hG');
rollOff('hD','hF','hG');
}
function chgColor(divID,theClass) {
	dom = eval(docObj + 'divID' + closeVar);
	dom.className = theClass;
}
function goTo(newLoc) {
window.location = newLoc;
}


/* adjusts subnav styles for IE5+ Mac and match IE5+ PC */
MacUser = (navigator.appVersion.indexOf("Mac")!=-1)?1:0;		
if (document.all&&document.getElementById) {/*IE5+*/
	if (MacUser) {/*Mac*/
	document.writeln('<style type="text/css">.nav1, .nav1b, .nav0, nav0b {height:auto}</style>');
	}
	else if (!MacUser) {/*Mac*/
	document.writeln('<style type="text/css">.nav1, .nav1b, .nav0, .nav0b {height:24px}</style>');
	}
}
