// This function fires if your browser if less than IE7
// Due to the limited support of the hover pseudo class

myNavHover = function() {
	var nav = document.getElementById("main-nav");
	if (null!=nav) {
		var oVars = nav.getElementsByTagName("li");
		for (var i=0; i<oVars.length; i++){
			oVars[i].onmouseover=function(){
				this.className+=" main-nav-hover";
			}
			oVars[i].onmouseout=function(){
				this.className=this.className.replace(new RegExp(" main-nav-hover\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", myNavHover);
