var mainNav_on = '';
var tier1Nav_on = '';
var tier2Nav_on = '';
var subPageNav_on = '';
var page = '';

// change the sectional text nav //
function hiliteNavMain(chgling, state) {
	if (browser == 'ns4')  {	return; }
	else  {
		// (state) ? Attribute On : Attribute Off;
		state ? myDOM(chgling).style.color = '#FFFFFF' : myDOM(chgling).style.color = '#FFCC66';
	}
}

// change the sectional text nav //
function changeNavMain(chgling, state) {
	if (browser == 'ns4')  {	return; }
	else  {
		// if it's not hilited
		if (chgling != mainNav_on) {
		// (state) ? Attribute On : Attribute Off;
			state ? myDOM(chgling).style.color = '#FFFFFF' : myDOM(chgling).style.color = '#FFCC66';
		}
	}
}

/* hiliteNavLeft(name of area/link, does it have an arrow assoc with it, what tier of anv is it (1-3), turn it on or off)*/
function hiliteNavLeft(chgling, arro, tier, state) {
	//build vars
	myArrow = 'menu_Arrow';
	myLnk = chgling + 'Link';
	myLnk2 = chgling + 'Link2';
	myLnk3 = chgling + 'Link3';
	myTD1 = chgling + 'TD1';
	myTD2 = chgling + 'TD2';
	myTD3 = chgling + 'TD3';
	
	// set color values
	if(tier == 1) {
	// (state) ? Attribute On : Attribute Off;
		(state) ? textColor = '#FFFFFF' : textColor = '#FFCC66';		
		(state) ? bgColor = '#CC6600' : bgColor = '#660000';
	
	}
	else if (tier == 2) {
	// (state) ? Attribute On : Attribute Off;
		(state) ? textColor = '#000000' : textColor = '#CC6600';		
		(state) ? bgColor = '#FFFFFF' : bgColor = '#FFCC66';
	}
	// change stuff
	if (browser == 'ns4')  {		
		if (arro && document.images[myArrow]) {			
			hilite(myArrow, 1);
			//(state) ? imgRoll(myArrow, state) : imgRoll(myArrow, state);
		}	
	}
	else  {	
		if (arro && myDOM(myArrow)) {
			hilite(myArrow, 1);
			//(state) ? imgRoll(myArrow, state) : imgRoll(myArrow, state);
		}	
		if (myDOM(myLnk) && myDOM(myLnk2)) {
			myDOM(myLnk).style.color = textColor
			myDOM(myLnk).style.background = bgColor
			myDOM(myLnk2).style.background = bgColor
			if (myDOM(myLnk3)){
				myDOM(myLnk3).style.background = bgColor
			}
		}
		if (myDOM(myTD1) && myDOM(myTD2)) {
			myDOM(myTD1).style.background = bgColor
			myDOM(myTD2).style.background = bgColor
			if (myDOM(myTD3)) {
				myDOM(myTD3).style.background = bgColor
			}
		}
	}
}

/* changeNavLeft(name of area/link, does it have an arrow assoc with it, what tier of anv is it (1-3), turn it on or off)*/
function changeNavLeft(chgling, arro, tier, state) {
	//build vars
	myArrow = chgling + 'Arrow';
	myLnk = chgling + 'Link';
	myLnk2 = chgling + 'Link2';
	myLnk3 = chgling + 'Link3';
	myTD1 = chgling + 'TD1';
	myTD2 = chgling + 'TD2';
	myTD3 = chgling + 'TD3';
	flip = 1;
	
	// set color values
	if(tier == 1) {
	// (state) ? Attribute On : Attribute Off;
		(state) ? textColor = '#FFFFFF' : textColor = '#FFCC66';		
		(state) ? bgColor = '#CC6600' : bgColor = '#660000';
		if (chgling == tier1Nav_on) { flip = 0; }
	}
	else if (tier == 2) {
	// (state) ? Attribute On : Attribute Off;
		(state) ? textColor = '#000000' : textColor = '#CC6600';		
		(state) ? bgColor = '#FFFFFF' : bgColor = '#FFCC66';
		if (chgling == tier2Nav_on) { flip = 0; }
	}
	
if (flip) {		
	// change stuff
	if (browser == 'ns4')  {		
		/*if (arro && document.images[myArrow]) {
			(state) ? imgRoll(myArrow, state) : imgRoll(myArrow, state);
		}	*/
	}
	else  {
		if (myDOM(myLnk) && myDOM(myLnk2)) {
			myDOM(myLnk).style.color = textColor
			myDOM(myLnk).style.background = bgColor
			myDOM(myLnk2).style.background = bgColor
			if (myDOM(myLnk3)) {
				myDOM(myLnk3).style.background = bgColor;
			}
		}
		if (myDOM(myTD1) && myDOM(myTD2)) {
			myDOM(myTD1).style.background = bgColor
			myDOM(myTD2).style.background = bgColor
			if (myDOM(myTD3)) {
				myDOM(myTD3).style.background = bgColor;
			}
		}
	}
} // flip
}

// hilite the Sub text nav //
function hiliteNavSub(chgling, state) {
	if (browser == 'ns4')  {	return; }
	else  {
		// (state) ? Attribute On : Attribute Off;
		state ? myDOM(chgling).style.color = '#FFFFFF' : myDOM(chgling).style.color = '#66CCFF';
	}
}

//*-- Browser Detection --*/
function browserDetect()  {
ns4 =  (document.layers) && (navigator.appName=="Netscape") && 	
		(parseInt(navigator.appVersion)==4) ? 'ns4' : false;
ns6 = (document.getElementById) && (navigator.appName=="Netscape") && 
		(parseInt(navigator.appVersion)>5) ? 'ns6' : false;
ns7 = (document.getElementById) && (navigator.appName=="Netscape") && 
		(parseInt(navigator.appVersion)>4)&& 
		(parseInt(navigator.appVersion)<5) ? 'ns7' : false;
ie4 = (document.all) && (navigator.appName.indexOf("Microsoft") > -1) && 
		(parseInt(navigator.appVersion)==4) && 
		(navigator.appVersion.indexOf('MSIE 6') <0) ? 'ie4' : false;
ie5 = (document.getElementById) && 
		(navigator.appName.indexOf("Microsoft") > -1) && 
		(navigator.appVersion.indexOf('MSIE 6') <0) ? 'ie5' : false;
ie6 = (document.getElementById) && 
		(navigator.appName.indexOf("Microsoft") > -1) && 
		(navigator.appVersion.indexOf('MSIE 6') >=0) ? 'ie6' : false;
//alert(ns4 || ns6 || ns7 || ie5 || ie4 || ie6);        
return (ns4 || ns6 || ns7 || ie5 || ie4 || ie6);
}
var browser = browserDetect();

//*-- Plaform Detection --*/
function platformDetect()  {
pc = (navigator.appVersion.indexOf('Windows') > -1) ? 'pc' : false
mac = (navigator.appVersion.indexOf('Mac') > -1) ? 'mac' : false
        
return (mac || pc);
}
var platform = platformDetect();

document.open();

if (platform == 'mac') {
	if (browser == 'ns4') {
		document.write('<link rel="STYLESHEET" type="text\/css" href="../test/index_files///js_css//educators_small.css">');
	} // end if
	else if (browser == 'ie5') {		
		document.write('<link rel="STYLESHEET" type="text\/css" href="../test/index_files///js_css//educators_xxsmall.css">');
	} // end if
	else {
		document.write('<link rel="STYLESHEET" type="text\/css" href="../test/index_files///js_css//educators_xxsmall.css">');
	} // end else
} // end if

else if (platform == 'pc') {
	if (browser == 'ns4') {
		document.write('<link rel="STYLESHEET" type="text\/css" href="../test/index_files///js_css//educators_xsmall.css">');
	} // end if
	else if (browser == 'ie5') {
		document.write('<link rel="STYLESHEET" type="text\/css" href="../test/index_files///js_css//educators_xxsmall_IE5PC.css">');
	} // end if
	else if (browser == 'ns7') {
		document.write('<link rel="STYLESHEET" type="text\/css" href="../test/index_files///js_css//educators_xsmall.css">');
	} // end if
	else {
		document.write('<link rel="STYLESHEET" type="text\/css" href="../test/index_files///js_css//educators_xxsmall.css">');
	} // end else
} // end if

document.close();
