///MAIN MENU
function clearMenu() {
	el = document.getElementById("mainMenuCont");
	//var menuNum = el.childNodes;
	var menuNum = document.getElementById("mainMenuCont").getElementsByTagName("A");

	for (i=1; i <= menuNum.length; i++) {
		swapClass('menu' + i,'');
	}
}


function showMenu(id) {
	clearMenu();
	swapClass('menu' + [id],'tabon');
}



///PAGE TABS

function clearTab() {
	el = document.getElementById("subNav").getElementsByTagName("A");

	for (i=0; i <= el.length-1; i++) {
		swapClass('tab' + i,'taboff');
		showBlock('tabtxt' + i, 'none')
	}
}



function showTab(id) {
	clearTab();
	swapClass('tab' + [id],'tabon');
	showBlock('tabtxt' + [id], 'block')
}



//psuedoclass hover
menuHover = function() {     
var el = document.getElementById("menuCont").getElementsByTagName("LI");


	for (var i=0; i<el.length; i++) {
		el[i].onmouseover=function() {
				this.className+=" sfhover";
		}
		el[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
} 

if (window.attachEvent) window.attachEvent("onload", menuHover); 


//INPUT FOCUS
inputFocus = function() {
	var el = document.getElementsByTagName("INPUT");
	for (var i=0; i<el.length; i++) {
		if (el[i].className != "noFormat" || el[i].className != "noInput") {
		el[i].onfocus=function() {
			this.className+=" sffocus";
			}
		el[i].onblur=function() {
			this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
		}
		}
	} 
} 
if (window.attachEvent) window.attachEvent("onload", inputFocus); 








