﻿function menuAccountSetFocus(menuIndex, submenuToSelect)
{
    for(i=1;i<=3;i++) menuAccountConfigTab(i, i == menuIndex);
    if(submenuToSelect!=null)
        document.getElementById("sub"+ submenuToSelect).className = "librarytopSubmenuSelected";
}

function menuAccountConfigTab(menuIndex, ShowMenu)
{
    var tabLeft = document.getElementById("td"+ menuIndex + "l");
    var tabMiddle = document.getElementById("td"+ menuIndex + "m");
    var tabRight = document.getElementById("td"+ menuIndex + "r");
    var tabSelected = ShowMenu ? "_selected" : "";
    var tabSubmenu = document.getElementById("sm" + menuIndex);
    
    tabLeft.className = "menu_tab_cl" + tabSelected;
    tabMiddle.className = "menu_tab_m" + tabSelected;
    tabRight.className = "menu_tab_cr" + tabSelected;
    tabSubmenu.style.display = ShowMenu ? "" : "none";
}
