function MoveSubmenu(ElementName, BaseElementName, Direction,the_document)
/*****************************************************************
`description`
06.11.2005 18:41
*****************************************************************/
{
    var the_element = the_document.getElementById(ElementName);
    var element = the_document.getElementById(BaseElementName);
    if (Direction == "down") {
        the_top = element.offsetTop + element.offsetHeight;
    }
    else {
        the_top = element.offsetTop;
    }
    /*        the_parent = element.offsetParent;
    while (the_parent) {
    the_top += the_parent.offsetTop;
    the_parent = the_parent.offsetParent;
    }*/
    the_element.style.top = the_top + 'px';
    if (Direction == "right") {
        the_left = element.offsetLeft + element.offsetWidth;
    }
    else {
        the_left = element.offsetLeft;
    }
    /*        the_parent = element.offsetParent;
    while (the_parent) {
    the_left += the_parent.offsetLeft;
    the_parent = the_parent.offsetParent;
    }*/
    the_element.style.left = the_left + 'px';
}  // MoveElement

function ShowHideSubmenu() {
    var Submenu_element = document.getElementById("Submenu");
    if (!Submenu_element) {
        Submenu_element = window.frames.topFrame.document.getElementById("Submenu");
    }
    if (Submenu_element) {
        MoveSubmenu("Submenu", "menu_more", "down", Submenu_element.ownerDocument);
        if (Submenu_element.className == "subnav_close") {
            Submenu_element.className = "subnav_open";
        }
        else {
            Submenu_element.className = "subnav_close";
        }
    }
}

function HideMenu() {
    if (document.activeElement)
        if (document.activeElement.id == "menu_more_link")
        return;
    var Submenu_element = document.getElementById("Submenu");
    if (Submenu_element) {
        Submenu_element.className = "subnav_close";
    }
}

