        /*
          =======================
          Handles Status Bar Text
          =======================
      */
        function describe(text)
        {
                window.status=text;
                return true;
        }
        function clearstatus()
        {
                window.status="";
        }

        /*
          ========================
          Handles Main Menu System
          ========================
          Displays the section menus for the selected game.
      */
        lastSub=""
        function showGame(which, sub)
        {
                if (document.all||document.getElementById)
                {
                        if (document.getElementById)
                                document.getElementById(which).style.visibility="visible";
                        if (document.all)
                                document.all(which).style.visibility="visible";
                        if (lastSub&&lastSub!=which)
                        {
                                if (document.getElementById)
                                        document.getElementById(lastSub).style.visibility="hidden"
                                if (document.all)
                                        document.all(lastSub).style.visibility="hidden";
                        }
                }
                if (document.layers)
                {
                        document.layers["sectionLayer"].document.layers[which].visibility="visible"
                        if (lastSub&&lastSub!=which)
                                document.layers["sectionLayer"].document.layers[lastSub].visibility="hidden"
                }
                lastSub=which

                // Load the first menu by default when we select a new game.
                // ~ Basically prevents game layers from another game appearing under the wrong game when the user clicks a new game.
                switch(which)
                {
                case "game-arcanum" :
                        showSection('arcanum-council');
                        break;
                case "game-toee" :
                        showSection('toee-temple');
                        break;
                case "game-vtmb" :
                        showSection('vtmb-family');
                        break;
                case "game-mystary" :
                        showSection('mystary-1');
                        break;
                }
        }

        /*
          =======================
          Handles Sub Menu System
          =======================
          Displays the selected game section when hovered over "the Council", "the Library" etc...
      */

        lastMenu=""
        function showSection(which, Menu)
        {
                if (document.all||document.getElementById)
                {
                        if (document.getElementById)
                                document.getElementById(which).style.visibility="visible";
                        if (document.all)
                                document.all(which).style.visibility="visible";
                        if (lastMenu&&lastMenu!=which)
                        {
                                if (document.getElementById)
                                        document.getElementById(lastMenu).style.visibility="hidden"
                                if (document.all)
                                        document.all(lastMenu).style.visibility="hidden";
                        }
                }
                if (document.layers)
                {
                        document.layers["linkLayer"].document.layers[which].visibility="visible"
                        if (lastSub&&lastSub!=which)
                                document.layers["linkLayer"].document.layers[lastMenu].visibility="hidden"
                }
                lastMenu=which
        }
