/* author: gilbert colobanea */
/* Creation date: 21-Nov-07 */
    function init() {
      //==========================================================================================
      // if supported, initialize TransMenus
      //==========================================================================================
      // Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
      // This is better than server-side checking because it will also catch browsers which would
      // normally support the menus but have javascript disabled.
      //
      // If supported, call initialize() and then hook whatever image rollover code you need to do
      // to the .onactivate and .ondeactivate events for each menu.
      //==========================================================================================
      if (TransMenu.isSupported()) {
        TransMenu.initialize();

        // hook all the highlight swapping of the main toolbar to menu activation/deactivation
        // instead of simple rollover to get the effect where the button stays hightlit until
        // the menu is closed.
        menu1.onactivate = function() { document.getElementById("prezentare").className = "hover"; };
        menu1.ondeactivate = function() { document.getElementById("prezentare").className = ""; };

        menu2.onactivate = function() { document.getElementById("comunitate").className = "hover"; };
        menu2.ondeactivate = function() { document.getElementById("comunitate").className = ""; };

        menu3.onactivate = function() { document.getElementById("presa").className = "hover"; };
        menu3.ondeactivate = function() { document.getElementById("presa").className = ""; };

        menu4.onactivate = function() { document.getElementById("infopublice").className = "hover"; };
        menu4.ondeactivate = function() { document.getElementById("infopublice").className = ""; };

        menu5.onactivate = function() { document.getElementById("infoutile").className = "hover"; };
        menu5.ondeactivate = function() { document.getElementById("infoutile").className = ""; };

//		menu6.onactivate = function() { document.getElementById("download").className = "hover"; };
//		menu6.ondeactivate = function() { document.getElementById("download").className = ""; };

        document.getElementById("download").onmouseover = function() {
          ms.hideCurrent();
          this.className = "hover";
        }
        document.getElementById("download").onmouseout = function() { this.className = ""; }

        document.getElementById("petitii").onmouseover = function() {
          ms.hideCurrent();
          this.className = "hover";
        }
        document.getElementById("petitii").onmouseout = function() { this.className = ""; }

        document.getElementById("legaturi").onmouseover = function() {
          ms.hideCurrent();
          this.className = "hover";
        }
        document.getElementById("legaturi").onmouseout = function() { this.className = ""; }

        document.getElementById("contact").onmouseover = function() {
          ms.hideCurrent();
          this.className = "hover";
        }
        document.getElementById("contact").onmouseout = function() { this.className = ""; }
      }
    }