YAHOO.util.Event.onContentReady("navMenu", function () {
  var oMenu = new YAHOO.widget.Menu("navMenu", { position: "static", hidedelay: 750, lazyload: true });
  var aSubmenuData = [
  { id: "cp7", itemdata: [
    { text: "Electric", url: "/categories/Electric-7_248.html",
      submenu: { id: "cp7_248", itemdata: [
      { text: "Packages", url: "/categories/Packages-7_248_312.html" }
      ]}
    },
    { text: "Acoustic", url: "/categories/Acoustic-7_129.html",
      submenu: { id: "cp7_129", itemdata: [
      { text: "Six String", url: "/categories/Six-String-7_129_174.html" },
      { text: "Student", url: "/categories/Student-7_129_318.html" },
      { text: "Classical", url: "/categories/Classical-7_129_330.html" }
      ]}
    },
    { text: "Acoustic-Electric", url: "/categories/Acoustic-Electric-7_302.html",
      submenu: { id: "cp7_302", itemdata: [
      { text: "Six String", url: "/categories/Six-String-7_302_303.html" }
      ]}
    }
    ]
  },
  { id: "cp36", itemdata: [
    { text: "Drumsets", url: "/categories/Drumsets-36_110.html",
      submenu: { id: "cp36_110", itemdata: [
      { text: "Sets", url: "/categories/Sets-36_110_187.html" }
      ]}
    },
    { text: "World Percussion", url: "/categories/World-Percussion-36_37.html",
      submenu: { id: "cp36_37", itemdata: [
      { text: "Cajon", url: "/categories/Cajon-36_37_422.html" },
      { text: "Congas", url: "/categories/Congas-36_37_269.html" },
      { text: "Djembe", url: "/categories/Djembe-36_37_420.html" },
      { text: "Bongos", url: "/categories/Bongos-36_37_81.html" },
      { text: "Kids / Educational", url: "/categories/Kids-Educational-36_37_38.html" }
      ]}
    }
    ]
  },
  { id: "cp1", itemdata: [
    { text: "Brass", url: "/categories/Brass-1_409.html",
      submenu: { id: "cp1_409", itemdata: [
      { text: "Trumpet", url: "/categories/Trumpet-1_409_415.html" },
      { text: "Trombone", url: "/categories/Trombone-1_409_410.html" }
      ]}
    },
    { text: "Woodwind", url: "/categories/Woodwind-1_411.html",
      submenu: { id: "cp1_411", itemdata: [
      { text: "Flute", url: "/categories/Flute-1_411_414.html" }
      ]}
    },
    { text: "Accessories", url: "/categories/Accessories-1_2.html",
      submenu: { id: "cp1_2", itemdata: [
      { text: "Cleaning & Care", url: "/categories/Cleaning-Care-1_2_6.html" },
      { text: "Reeds", url: "/categories/Reeds-1_2_183.html" },
      { text: "Mouthpieces", url: "/categories/Mouthpieces-1_2_5.html" },
      { text: "Music Stands", url: "/categories/Music-Stands-1_2_39.html" }
      ]}
    }
    ]
  },
  { id: "cp65", itemdata: [
    { text: "Portable & Arrangers", url: "/categories/Portable-Arrangers-65_158.html",
      submenu: { id: "cp65_158", itemdata: [
      { text: "Portable Keyboards", url: "/categories/Portable-Keyboards-65_158_159.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(2).cfg.setProperty("submenu", aSubmenuData[2]);
      this.getItem(3).cfg.setProperty("submenu", aSubmenuData[3]);
    }
  });

  oMenu.render();
});
