
/* =======  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 (mainLinkID,subLinkID,prodLinkID) {
	linkID = "nav"+mainLinkID;
	spanID = "span"+mainLinkID;

	if (subLinkID) { chgSubNavLink(subLinkID); }
	if (prodLinkID) { chgProdNavLink(prodLinkID); }

	// Netscape 4
	if(ns4){
		document.layers[linkID].color ="#757AB1";
		document.layers[spanID].backgroundColor = "#006";
	}
	// Explorer 4
	else if(ie4){
		document.all[linkID].style.color ="#757AB1";
		document.all[spanID].style.backgroundColor = "#006"
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		document.getElementById(linkID).style.color ="#757AB1";
		document.getElementById(spanID).style.backgroundColor = "#006";
	}
}

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

function chgProdNavLink(prodid){
	// Netscape 4
	if(ns4){
		document.layers[prodid].fontWeight = "bold";
	}
	// Explorer 4
	else if(ie4){
		document.all[prodid].style.fontWeight = "bold";
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		document.getElementById(prodid).style.fontWeight = "bold";
	}
}


/* ====================================================== */



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