//==============================================
//sfhover for CSS Slider Menu
//This allows for a lack of CSS support by Internet Explorer
//==============================================
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

// check window width of homepage and set padding if needed
function checkWindow() {
	var width = window.document.body.clientWidth;
	if(width < 960) {
		document.getElementById("main_col").style.paddingTop="75px";
	}
	else {
		document.getElementById("main_col").style.paddingTop="10px";
	}
}

function KD_showmain(id) { //Show Main Hover while sub is shown
	document.getElementById(id).className = 'stay_lit';
}
function KD_showmainTwo(id, id2) { //Show Main Hover while sub is shown
	document.getElementById(id).className = 'stay_lit';
	document.getElementById(id2).className = 'stay_lit';
}
function KD_showmainThree(id, id2, id3) { //Show Main Hover while sub is shown
	document.getElementById(id).className = 'stay_lit';
	document.getElementById(id2).className = 'stay_lit';
	document.getElementById(id3).className = 'stay_lit';
}


function KD_hidemain(id) { //Hide Main Hover while sub is shown
	document.getElementById(id).className = '';
}
function KD_hidemainTwo(id, id2) { //Hide Main Hover while sub is shown
	document.getElementById(id).className = '';
	document.getElementById(id2).className = '';
}
function KD_hidemainThree(id, id2, id3) { //Hide Main Hover while sub is shown
	document.getElementById(id).className = '';
	document.getElementById(id2).className = '';
	document.getElementById(id3).className = '';
}