
/* =======  bug fix for Netscape 4: reloads styles if Nav4 resized===== */
function DC_reloadPage(init) {
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.DC_pgW=innerWidth; document.DC_pgH=innerHeight; onresize=DC_reloadPage; }}
else if (innerWidth!=document.DC_pgW || innerHeight!=document.DC_pgH) location.reload();
}
DC_reloadPage(true);


/* BROWSER CHECKS */
var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ie6 = (document.all && document.getElementById && navigator.userAgent.indexOf("6") > 0);
var ns6 = (!document.all && document.getElementById);


/* ====================================================== */
/* MENU HIGHLIGHTER Changes appearance of selected menu   */
/* item to indicate which page is being viewed */

function chgNavLinks (mainLink,subLink) {
	chgNavBar(mainLink);
	chgSubNavLink(subLink);
}

function chgNavBar(id){
	// Netscape 4
	if(ns4){
		document.layers[id].color ="#FF9900";
	}
	// Explorer 4
	else if(ie4){
		document.all[id].style.color ="#FF9900";
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		document.getElementById(id).style.color ="#FFCC00";
	}
}

function chgSubNavLink(subid){
	// Netscape 4
	if(ns4){
		document.layers[subid].fontWeight = "bold";
	}
	// Explorer 4
	else if(ie4){
		document.all[subid].style.fontWeight = "bold";
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5){
		document.getElementById(subid).style.fontWeight = "bold"; //color ="#FF3300";
	}
}


/* ====================================================== */
/* COUNTER ROLLOVER (hide or show) */
function showStats(state)
{
	if (ie5) {
		document.all.stats.style.visibility = state;
	}
}
