navHover = function() {
    if(document.getElementById("navmenu")){
	    var lis = document.getElementById("navmenu").getElementsByTagName("li");
	    for (var i=0; i<lis.length; i++) {
		    lis[i].onmouseover=function() {
			    this.className+=" iehover";
		    }
		    lis[i].onmouseout=function() {
			    this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		    }
	    }
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);




//add class from DOM element
function addClass(o, c1) {
    var check = new RegExp('\\b' + c1 + '\\b').test(o.className)
    if (!check) { o.className += o.className ? ' ' + c1 : c1; }
}
//remove class from DOM element
function removeClass(o, c1) {
    var rep = o.className.match(' ' + c1) ? ' ' + c1 : c1;
    o.className = o.className.replace(rep, '');
}
