var timer = null;
function ShowSubMenu(menuId) {
    HideSubMenu();
    if (timer != null)
    {
        window.clearTimeout(timer);
    }

    document.getElementById("submenu"+menuId).style.display = "block";
    
    timer = window.setTimeout("HideSubMenu()","3000");
}

function HideSubMenu() {
    document.getElementById("submenutopics").style.display = "none";
    document.getElementById("submenuregistration").style.display = "none";
}
