focusCheck = function(idMenu) {
	// Check if DOM is supported
	if (document.getElementById) {
		var root = document.getElementById(idMenu);
		for (var i = 0; i < root.childNodes.length; i++) {
			
			var node = root.childNodes[i];
			if (node.nodeName == "LI") {
				
					// IE dropdown menu (IE don't support hover)
					node.onmouseover = function() {
						if(this.childNodes[2]) {
							this.childNodes[2].style.left = "auto";
						}
					}
					node.onmouseout = function() {
						if(this.childNodes[2]) {
							this.childNodes[2].style.left = "-10000px";
						}
					}
				
				// IE Submenu dropdown
				if(node.childNodes[2]) {
					if(node.childNodes[2].childNodes[1]){
						if(node.childNodes[2].childNodes[1].childNodes[2] ){
							node.childNodes[2].childNodes[1].onmouseover = function() {
								this.childNodes[2].style.left = "100%";
								this.childNodes[2].style.margin = "-2.5em, auto, auto, auto";
							}
							node.childNodes[2].childNodes[1].onmouseout = function() {
								this.childNodes[2].style.left = "-100000";
							}
						}
					}
				}
			} 
		}
	} 
}

function AccNav_ie_addLoadEvent(func)
{
    var oldonload = window.onload;
    
    if (typeof window.onload != 'function')
        { window.onload = func; }
    else
        { window.onload = function()
            { oldonload(); func(); }
        }    
}

AccNav_ie_addLoadEvent(function(){focusCheck("topnavigationmenu");});