YAHOO.util.Event.onContentReady("navMenu", function () {
  var oMenu = new YAHOO.widget.Menu("navMenu", { position: "static", hidedelay: 750, lazyload: true });
  var aSubmenuData = [
  { id: "cp4", itemdata: [
    { text: "Drum Sets", url: "/index.php?cPath=4_50" },
    { text: "Snares", url: "/index.php?cPath=4_40" }
    ]
  },
  { id: "cp43", itemdata: [
    { text: "Soundslabs", url: "/index.php?cPath=43_38" }
    ]
  },
  {  },
  { id: "cp9", itemdata: [
    { text: "Discontinued", url: "/index.php?cPath=9_41" },
    { text: "Shirts", url: "/index.php?cPath=9_30" },
    { text: "Hats", url: "/index.php?cPath=9_31" }
    ]
  },
  {  },
  {  },
  {  },
  { id: "cp10", itemdata: [
    { text: "Bass Drum Riser", url: "/index.php?cPath=10_37" },
    { text: "GS007 Parts", url: "/index.php?cPath=10_23" },
    { text: "Logos - Stickers", url: "/index.php?cPath=10_25" },
    { text: "Lugs", url: "/index.php?cPath=10_27" },
    { text: "Pedal Parts", url: "/index.php?cPath=10_24" },
    { text: "Tension Knobs", url: "/index.php?cPath=10_28" }
    ]
  },
  { id: "cp11", itemdata: [
    { text: "Pedals", url: "/index.php?cPath=11_39" },
    { text: "Throwoffs", url: "/index.php?cPath=11_34",
      submenu: { id: "cp11_34", itemdata: [
      { text: "GS007 B Stock", url: "/index.php?cPath=11_34_36" }
      ]}
    }
    ]
  },
  { id: "cp44", itemdata: [
    { text: "Evans", url: "/index.php?cPath=44_45" },
    { text: "Remo", url: "/index.php?cPath=44_46",
      submenu: { id: "cp44_46", itemdata: [
      { text: "Bass Drums", url: "/index.php?cPath=44_46_49" },
      { text: "Trick by Remo", url: "/index.php?cPath=44_46_47" }
      ]}
    }
    ]
  }
  ];

  oMenu.subscribe("beforeRender", function () {
    if (this.getRoot() == this) {
      this.getItem(0).cfg.setProperty("submenu", aSubmenuData[0]);
      this.getItem(1).cfg.setProperty("submenu", aSubmenuData[1]);
      this.getItem(3).cfg.setProperty("submenu", aSubmenuData[3]);
      this.getItem(7).cfg.setProperty("submenu", aSubmenuData[7]);
      this.getItem(8).cfg.setProperty("submenu", aSubmenuData[8]);
      this.getItem(9).cfg.setProperty("submenu", aSubmenuData[9]);
    }
  });

  oMenu.render();
});