//----------------------------------------------------------------------

function menu( o )
{
  var re1 = new RegExp( "menu/n", "i" );
  var re2 = new RegExp( "menu/o", "i" );
  
  if ( o.src.search(re1) > -1 )
    o.src = o.src.replace( re1, "menu/o" );
  else
    o.src = o.src.replace( re2, "menu/n" );
}

//----------------------------------------------------------------------

function Menu()
{
  var menus = new Array();
  
  var obj = document.getElementById("Menu");

  var menuContainerWidth = 660;  // ignored...
  var menuBorderWidth = 0;
  var i=0;
  
  if ( obj ) {
    var arrayLI = obj.getElementsByTagName("li");

    for ( i=0; i<arrayLI.length; i++ ) {
      if ( arrayLI[i].className.match(/Tab/i) ) {

        arrayLI[i].onmouseover = function() {
          this.className = "HiLite " + this.className;
          
          if ( this.getElementsByTagName("a")[0].parentNode.className.match(/Tab/i) )
            this.getElementsByTagName("a")[0].className = "HiLite";

          var menuDropDown = this.getElementsByTagName("ul")[0];

          if ( menuDropDown ) {
            menuDropDown.style.top = 30;
            menuDropDown.style.display = "block";
            
            // Patch for IE6/5.x-Select-Ignore-zIndex-Problem
            if ( window.ActiveXObject )
              insertIE6iFrame( menuDropDown );
          }
        };

        arrayLI[i].onmouseout = function() {
          this.className = this.className.replace(/HiLite\s/, "");
          this.getElementsByTagName("a")[0].className = "";
          var menuDropDown = this.getElementsByTagName("ul")[0];

          if ( menuDropDown ) {
            menuDropDown.style.display = "none";

            // Patch for IE6/5.x-Select-Ignore-zIndex-Problem
            if ( window.ActiveXObject )
              removeIE6iFrame( menuDropDown );
          }
        };

      }
    }
    
  }
}

