function startList() {	if (document.all&&document.getElementById) {		if (document.getElementById("menu")) {			navRoot = document.getElementById("menu");			for (i=0; i<navRoot.childNodes.length; i++) {				node = navRoot.childNodes[i];				if (node.nodeName=="LI") {					node.onmouseover=function() {						this.className+=" over";					}					node.onmouseout=function() {						this.className=this.className.replace(" over", "");					}				}			}		}	}}function hideAll(menu) {	if (document.getElementById('mn_hider1')) document.getElementById('mn_hider1').style.display='none';	if (document.getElementById('mn_hider2')) document.getElementById('mn_hider2').style.display='none';	for(i=0;i<document.getElementById('menu').getElementsByTagName('div').length;i++) {		if (document.getElementById('menu').getElementsByTagName('div')[i].className=='dropdown')			document.getElementById('menu').getElementsByTagName('div')[i].style.display='none';	}	for(i=0;i<document.getElementById('menu').getElementsByTagName('table').length;i++) {		if (document.getElementById('menu').getElementsByTagName('table')[i].className=='dropdown')			document.getElementById('menu').getElementsByTagName('table')[i].style.display='none';	}	var menubar = document.getElementById('nav-top').getElementsByTagName('img');	// loop through each image in the menu bar. replace with it's rollover image onmouseover and vice versa.	for(i=0;i<menubar.length;i++) {		if (menubar[i].src.indexOf('_b.') != -1) {			// use next line if menu section highlighting *not* required:			menubar[i].src = menubar[i].src.replace('_b.','_a.');			// use next line if menu section highlighting required:			// menubar[i].src = (menubar[i].name.replace('img_','')!=pageId)? menubar[i].src.replace('_b.','_a.'): menubar[i].src.replace('_a.','_b.');		}	}	window.status='';}function show(menu) {	hideAll(menu);	if (document.getElementById('mn_hider1')) document.getElementById('mn_hider1').style.display='block';	if (document.getElementById('mn_hider2')) document.getElementById('mn_hider2').style.display='block';	if (document.getElementById(menu)) document.getElementById(menu).style.display='block';	var menubar = document.getElementById('nav-top').getElementsByTagName('img');	for(i=0;i<menubar.length;i++) {		if(menubar[i].src.indexOf(menu)==-1) {			if (menubar[i].src.indexOf('_b.') != -1) {				// use next line if menu section highlighting *not* required:				menubar[i].src = menubar[i].src.replace('_b.','_a.');				// use next line if menu section highlighting required:				// menubar[i].src = (menubar[i].name.replace('img_','')!=pageId)? menubar[i].src.replace('_b.','_a.'): menubar[i].src.replace('_a.','_b.');			}		}	}}function enableMenu() {	window.status='';	txtName=this.name.replace('img_','mn_');	show(txtName);	if (this.src.indexOf('_a.') != -1) {		this.src=this.src.replace('_a.','_b.');	}}function enableAllMenus() {	var menubar = document.getElementById('menubar').getElementsByTagName('img');	for(i=0;i<menubar.length;i++) {		if(menubar[i].alt) {			if ( menubar[i].src.substring(menubar[i].src.lastIndexOf('mn_'), menubar[i].src.length).indexOf('_.',3)==-1 ) {				menubar[i].onmouseover=enableMenu;				/* // menu section highlighting (disabled, not required for STA site)				if(menubar[i].name=='img_'+pageId && menubar[i].src.indexOf('_a.') != -1) {					menubar[i].src = menubar[i].src.replace('_a.','_b.');				}				*/			}		}	}	if (document.getElementById('xcontent')) {		document.getElementById('content').onmouseover = hideAll;	}}// toTitleCasefunction toTitleCase(strString) {	// strString = fnTrim(strString);	var firstSpace = strString.indexOf(' ');	var currentWord;	strString = strString.charAt(0).toUpperCase()+strString.substring(1,strString.length);	if (firstSpace > -1) strString=strString.substring(0,firstSpace+1) + toTitleCase(strString.substring(firstSpace+1,strString.length));	return strString;}//function popup(url, nm, width, height, x, y) {	window.open(url, nm, 'menubar=no,scrollbars=no,resizable=no,screenX=' + x + ',screenY=' + y + ',top='+ x + ',left=' + 20 + ',height='+ height + ',width=' + width);}//