// this code is useful for IE
// will include other javascript functions

if (window.attachEvent) window.attachEvent("onload", IEhover);

function IEhover() {
		if (document.getElementById('nav')) {
			cssHover('nav','LI');	
		}
}

function cssHover(tagid,tagname) {
	var sfEls = document.getElementById(tagid).getElementsByTagName(tagname);
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" cssHover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" cssHover\\b"), "");
		}
	}
}