﻿fnHover = function() {
	var cssRule;
	var Selector;
	for (var i = 0; i < document.styleSheets.length; i++)
		for (var f = 0; f < document.styleSheets[i].rules.length; f++) {
			cssRule = document.styleSheets[i].rules[f];
			if (cssRule.selectorText.indexOf("LI:hover") >= 0)
			{
				Selector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
				document.styleSheets[i].addRule(Selector, cssRule.style.cssText);
			}
		}
		
	var element = document.getElementById("menuBar").getElementsByTagName("LI");
	for (var i = 0; i < element.length; i++) {
		element[i].onmouseover = function() {			
			this.className += " iehover";
		}
		element[i].onmouseout = function() {			
			this.className = this.className.replace(" iehover", "");
		}
	}
}

if (window.attachEvent) {
	window.attachEvent("onload", fnHover);
}
