function MainMenuMouseOver(sender,subMenu) {

        //alert(getY(sender));
        submenuDiv = document.getElementById(subMenu);

        submenuDiv.style.left = getElementPosition(sender).left-1;
        //alert(sender.style.height);
        submenuDiv.style.top = getElementPosition(sender).top+18;
        

        submenuDiv.style.visibility = 'visible';

    }
    function getY(oElement) {
        var iReturnValue = 0;
        while (oElement != null) {
            iReturnValue += oElement.offsetTop;
            oElement = oElement.offsetParent;
        }
        return iReturnValue;
    }
    function getElementPosition(offsetTrail) {
        var offsetLeft = 0;
        var offsetTop = 0;
        while (offsetTrail) {
            offsetLeft += offsetTrail.offsetLeft;
            offsetTop += offsetTrail.offsetTop;
            offsetTrail = offsetTrail.offsetParent;
        }
        if (navigator.userAgent.indexOf('Mac') != -1 && typeof document.body.leftMargin != 'undefined') {
            offsetLeft += document.body.leftMargin;
            offsetTop += document.body.topMargin;
        }
        //alert(offsetLeft + "|" + offsetTop);
        return { left: offsetLeft, top: offsetTop };
    }
    function MainMenuMouseOut(sender, subMenu) {
        submenuDiv = document.getElementById(subMenu);
        submenuDiv.style.visibility = 'hidden';
    }
    
    function subMenuMouseOut(sender) {
        
        sender.style.visibility = 'hidden';
    }
    function subMenuMouseOver(sender) {

        sender.style.visibility = 'visible';
    }
    
    function OnMenuItemClick(sender, action)
    {
        document.location = action;
    }
