<!--//<![CDATA[
startList=function() {
	if(document.all&&document.getElementById) {
		var ul_array=document.getElementsByTagName("ul");
		for(i=0;i<ul_array.length;i++) {
			if(hasClass(ul_array[i],"nav_top")) {
				setList(ul_array[i]);
			}
			if(hasClass(ul_array[i],"nav_head")) {
				setList(ul_array[i]);
			}
		}
	}
	
}
window.onload=startList;

function setList(list) {
	var items = list.getElementsByTagName("li");
	for(k=0;k<items.length;k++) {
		items[k].onmouseover=function() {
			addClass(this,"over");
		}
		items[k].onmouseout=function() {
			removeClass(this,"over");
		}
	}
}

//function library
function id(id) {return document.getElementById(id);}
function addClass(t,c){var p=new RegExp("(^| )"+c+"( |$)");if(!p.test(t.className)){if(t.className =="")t.className=c;else t.className+=" "+c;}return true;}
function removeClass(t,c){var r=t.className;var p=new RegExp("(^| )"+c+"( |$)");r=r.replace(p,"$1");r=r.replace(/ $/,"");t.className=r;return true;}
function hasClass(t,c){var p=new RegExp("(^| )"+c+"( |$)");return p.test(t.className);}
function ieVersion(){ieVersion=-1;if(navigator.appVersion.indexOf("MSIE")!=-1){var tempNavigatorString=navigator.appVersion.split("MSIE");ieVersion=parseFloat(tempNavigatorString[1]);}	return ieVersion;}


// Netscrape 4
if (document.layers) {var NN4 = true;}
// var NN4 = (document.layers) ? true : false

// IE
if (document.all) {var IE = true;}
// var IE = (document.all) ? true : false

// DOM
if (document.getElementById && !document.all) {var DOM = true;}
// var DOM = (document.getElementById && !document.all) ? true : false

function getElement(id){
	
		if(NN4) {
			path = document.layers[id]
		} else if(IE) {
			path = document.all[id]
		} else {
			path = document.getElementById(id)
		} 
		//return the path to the css layer depending upon the browser type
		return path; 
}



function toggle(obj) {
	var mydiv = "a" + obj;
	var el = getElement(mydiv);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}

// these functions are used on the front page to cycle through atty data
// change all instances of number '8' to appropriate number of attys to cycle through
function goforward(){
if (currentindex<8) 
{
toggle(currentindex+1);
toggle(currentindex);
currentindex = currentindex+1;
}
else{
toggle(8);
toggle(1);
currentindex = 1;
}
}

function goback(){
if (currentindex==1) 
{
toggle(1);
toggle(8);
currentindex = 8;
}
else{
toggle(currentindex);
toggle(currentindex-1);
currentindex = currentindex-1;
}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//]]>-->