var activeMenuId = ''
var activeSubMenuId = ''
var activeMainMenuId = ''

    function expandOrClose(buttonImage, submenuId){
        /*var submenu = document.getElementById(submenuId);
        
        if(submenu.className == 'submenu'){
            //it's closed so close all other menus and open it up
            //first loop through all the submenus and close them
            var uls = document.getElementsByTagName("UL");
            for(var x = 0; x < uls.length; x++){
                if(uls[x].className == 'expandedsubmenu' & uls[x].id != activeMenuId){
                    uls[x].className = 'submenu';
                    if(activeMainMenuId != "main" + uls[x].id){
                        if(document.getElementById("main" + uls[x].id)){
                            document.getElementById("main" + uls[x].id).className = '';
                            document.getElementById("main" + uls[x].id).onmouseout = menumouseout;
                        }
                    }
                }
            }
            var buttons = document.getElementsByName("menubutton");
            for(var y = 0; y < buttons.length; y++){
                if(buttons[y].id != 'btn_' + activeMenuId){
                    buttons[y].src = '/images/buttons/plus.jpg';
                }
            }
            //now expand the one they clicked on
            if(document.getElementById("main" + submenuId)){
                document.getElementById("main" + submenuId).className = 'hover';
                document.getElementById("main" + submenuId).onmouseout = document.getElementById("main" + submenuId).className = 'hover';
            }
            submenu.className = 'expandedsubmenu';
            buttonImage.src = '/images/buttons/minus.jpg'
        }else{
            //it's open, so let's close it down
            submenu.className = 'submenu';
            buttonImage.src = '/images/buttons/plus.jpg'
            if(activeMainMenuId != "main" + submenuId){
                if(document.getElementById("main" + submenuId)){
                    document.getElementById("main" + submenuId).className = '';
                    document.getElementById("main" + submenuId).onmouseout = menumouseout;
                }
            }
        }
        */
    }
    
    