function alternate(id){
 if(document.getElementsByTagName){
   var table = document.getElementById(id);
	if (table != null) {
		var rows = table.getElementsByTagName("tr");
		   for(i = 0; i < rows.length; i++){
			 if(i % 2 == 0){
				if (rows[i].className != "header") {rows[i].className = "alt";}
			 }
			 else{ rows[i].className = "";}
		   }
	}
 }
}
function showandhidecourses(obj1, obj2) {
	var all = document.getElementsByTagName(obj1);
	if (document.getElementById(obj2).innerHTML == "Show All"){
		document.getElementById(obj2).innerHTML = "Hide All";
		for (var e = 0; e < all.length; e++){
			if (all[e].style.display =="none") {
				all[e].style.display = "";
			}
		}
		BREAK;
	}
	if (document.getElementById(obj2).innerHTML == "Hide All"){
		document.getElementById(obj2).innerHTML = "Show All";
		for (var e = 0; e < all.length; e++){
			if (all[e].style.display =="") {
				all[e].style.display = "none";
			}
		}
	}

}
function switchMenu(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != "none" ) { el.style.display = 'none';}
	else { el.style.display = ''; }
}
function closeItem (obj) {
	var el=document.getElementById(obj);
	el.style.display = 'none';
}
/* DOM check v1.0 */
if (SI_dom()) { document.write('<style type="text/css">.non-dom { position: absolute !important; top: 0 !important; left: -3000px !important; }<'+'/style>\n'); }
/* SI_dom() v1.0 */
function SI_dom() { return new Boolean(document.getElementById && document.getElementsByTagName); };
/* SI_submitForm() v1.1 */
//function SI_submitForm(f) {
//	if (!SI_dom()) return true;
//	f.submit();
//	}
function SI_submitForm(f) {
	var x = document.getElementById(f);
	if (f = 'fall_sports') {
//		vselectedindex = x.selectedIndex;
		url = x.options[x.selectedIndex].value;
	}
	document.location.href = url;
	}
/* DOM check v1.0 */
if (SI_dom()) { document.write('<style type="text/css">.non-dom { position: absolute !important; top: 0 !important; left: -3000px !important; }<'+'/style>\n'); }
/* SI_dom() v1.0*/
function SI_dom() { return new Boolean(document.getElementById && document.getElementsByTagName); };
/* SI_menu() v2.0*/
function SI_menu() {
	var d = document;
	var isSafari 	= (navigator.userAgent.indexOf('Safari') != -1);
	var isIE 		= (navigator.appName == "Microsoft Internet Explorer");
	var isWinIE		= (isIE && window.print);
	if (!SI_dom() || window.opera || isSafari || !d.getElementById) return;
	var m=SI_menu.arguments;
	for(i=0; i<m.length; i++) {
		if (!d.getElementById(m[i])) continue; 
		for (var l=0; (lnk=d.getElementById(m[i]).getElementsByTagName("a")[l]); l++) {
			if (lnk.parentNode.childNodes.length > 1) {
				li = lnk.parentNode;
				for (var n=0; n < li.childNodes.length; n++) {
					node = li.childNodes[n];
					if (node.nodeName=="UL") {
						li.ul = node;
						delete node;
						li.classDefault		= li.className;
						li.classHover		= li.className+((li.className=='')?'hover':' hover');
						li.isIE				= isIE;
						li.isWinIE			= isWinIE;
						li.onmouseover		= SI_showMenu;
						li.onmouseout		= SI_hideMenu;
						}
					}
				}
			}
		}
	}
function SI_showMenu() {
	this.className = this.classHover;
	if (this.isIE) {
		this.style.zIndex = 100;
		if (this.isWinIE) SI_toggleSelects('hidden'); 
		}
	}
function SI_hideMenu() {
	this.className = this.classDefault;
	if (this.isIE) {
		this.style.zIndex = 1;
		if (this.isWinIE) SI_toggleSelects('visible'); 
		}
	}
function SI_toggleSelects(state) {
	var d = document;
	for (var i=0; (sel=d.getElementsByTagName('select')[i]); i++) {
		sel.style.visibility = state;
		}
	}
function SI_deHTTPSLinks() {
	if (!document.getElementsByTagName || !(window.location.href.indexOf('https')!=-1)) { return; }
	var allow = (typeof SI_skipHTTPS != "undefined");
	var r = '';
	if (allow) {
		r = '(secure\.|^[^?]+(';
		for (var j=0; j<SI_skipHTTPS.length; j++) { r += SI_skipHTTPS[j] + '|'; }
		r = r.replace(/\|$/,'') + '))';
		}
	re = new RegExp(r,'gi');
	var a = document.getElementsByTagName('a');
	for (var i=0;i<a.length;i++) {
		var b = (a[i].href.search(re)!=-1);
		if (b && allow) { continue; }
		a[i].href = a[i].href.replace(/https/,'http');
		}
	}