
  /*
       Initialize and render the MenuBar when its elements are ready
       to be scripted.
  */

  YAHOO.util.Event.onContentReady("yuiMainMenu", function () {

      /*
Instantiate a MenuBar:  The first argument passed to the constructor
is the id for the Menu element to be created, the second is an
object literal of configuration properties.
      */
      
      $('yuiMainMenu').style.display = 'block';

      var oMenuBar = new YAHOO.widget.MenuBar("yuiMainMenu", {
                                                  autosubmenudisplay: true,
                                                  hidedelay: 750,
                                                  showdelay: 0,
                                                  lazyload: true });

      /*
           Call the "render" method with no arguments since the
           markup for this MenuBar instance is already exists in
           the page.
      */

      oMenuBar.render();

  });
  
  
  YAHOO.util.Event.onContentReady("yuiProjectsMenu", function () {

      /*
Instantiate a MenuBar:  The first argument passed to the constructor
is the id for the Menu element to be created, the second is an
object literal of configuration properties.
      */

      $('yuiProjectsMenu').style.display = 'block';
      
      var oMenuBar = new YAHOO.widget.MenuBar("yuiProjectsMenu", {
                                                  autosubmenudisplay: true,
                                                  hidedelay: 0,
                                                  showdelay: 0,
                                                  lazyload: true });

      /*
           Call the "render" method with no arguments since the
           markup for this MenuBar instance is already exists in
           the page.
      */

      oMenuBar.render();

  });

