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: "/categories/Drum-Sets-4_50.html" },
    { text: "Snares", url: "/categories/Snares-4_40.html" }
    ]
  },
  { id: "cp43", itemdata: [
    { text: "Soundslabs", url: "/categories/Soundslabs-43_38.html" }
    ]
  },
  {  },
  { id: "cp9", itemdata: [
    { text: "Discontinued", url: "/categories/Discontinued-9_41.html" },
    { text: "General", url: "/categories/General-9_42.html" },
    { text: "Shirts", url: "/categories/Shirts-9_30.html" },
    { text: "Hats", url: "/categories/Hats-9_31.html" }
    ]
  },
  {  },
  {  },
  {  },
  { id: "cp10", itemdata: [
    { text: "Bass Drum Riser", url: "/categories/Bass-Drum-Riser-10_37.html" },
    { text: "GS007 Parts", url: "/categories/GS007-Parts-10_23.html" },
    { text: "Logos - Stickers", url: "/categories/Logos-Stickers-10_25.html" },
    { text: "Lugs", url: "/categories/Lugs-10_27.html" },
    { text: "Pedal Parts", url: "/categories/Pedal-Parts-10_24.html" },
    { text: "Tension Knobs", url: "/categories/Tension-Knobs-10_28.html" }
    ]
  },
  { id: "cp11", itemdata: [
    { text: "Pedals", url: "/categories/Pedals-11_39.html" },
    { text: "Throwoffs", url: "/categories/Throwoffs-11_34.html",
      submenu: { id: "cp11_34", itemdata: [
      { text: "GS007 B Stock", url: "/categories/GS007-B-Stock-11_34_36.html" }
      ]}
    }
    ]
  },
  { id: "cp44", itemdata: [
    { text: "Evans", url: "/categories/Evans-44_45.html" },
    { text: "Remo", url: "/categories/Remo-44_46.html",
      submenu: { id: "cp44_46", itemdata: [
      { text: "Bass Drums", url: "/categories/Bass-Drums-44_46_49.html" },
      { text: "Trick by Remo", url: "/categories/Trick-by-Remo-44_46_47.html" }
      ]}
    }
    ]
  }
  ];

  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();
});