YAHOO.util.Event.onContentReady("navMenu", function () {
  var oMenu = new YAHOO.widget.Menu("navMenu", { position: "static", hidedelay: 750, lazyload: true });
  var aSubmenuData = [
  { id: "cp8", itemdata: [
    { text: "Clarinet Accessories", url: "/index.php?cPath=8_9",
      submenu: { id: "cp8_9", itemdata: [
      { text: "All other", url: "/index.php?cPath=8_9_16" },
      { text: "Mouthpieces", url: "/index.php?cPath=8_9_17" },
      { text: "Reeds", url: "/index.php?cPath=8_9_15" }
      ]}
    },
    { text: "Keyboard Accessories", url: "/index.php?cPath=8_38" }
    ]
  },
  { id: "cp10", itemdata: [
    { text: "Clarinet Cases", url: "/index.php?cPath=10_11" }
    ]
  },
  { id: "cp4", itemdata: [
    { text: "Intermediate & Semi-Professional Wood Body", url: "/index.php?cPath=4_6" },
    { text: "Professional Wood Body", url: "/index.php?cPath=4_7" },
    { text: "Student Plastic Body", url: "/index.php?cPath=4_5" }
    ]
  },
  {  },
  { id: "cp18", itemdata: [
    { text: "Closed Hole Flutes", url: "/index.php?cPath=18_19",
      submenu: { id: "cp18_19", itemdata: [
      { text: "Intermediate", url: "/index.php?cPath=18_19_22" },
      { text: "Professional", url: "/index.php?cPath=18_19_23" },
      { text: "Student", url: "/index.php?cPath=18_19_21" }
      ]}
    },
    { text: "Open Hole Flutes", url: "/index.php?cPath=18_20",
      submenu: { id: "cp18_20", itemdata: [
      { text: "Intermediate", url: "/index.php?cPath=18_20_25" },
      { text: "Professional", url: "/index.php?cPath=18_20_26" },
      { text: "Student", url: "/index.php?cPath=18_20_24" }
      ]}
    }
    ]
  },
  { id: "cp41", itemdata: [
    { text: "12 String Guitars", url: "/index.php?cPath=41_48" },
    { text: "Acoustic", url: "/index.php?cPath=41_43" },
    { text: "Acoustic / Electric", url: "/index.php?cPath=41_44" },
    { text: "Acoustic Bass", url: "/index.php?cPath=41_46" },
    { text: "Acoustic/Electric Bass", url: "/index.php?cPath=41_51" },
    { text: "Classical", url: "/index.php?cPath=41_49" },
    { text: "Classical / Electric", url: "/index.php?cPath=41_50" },
    { text: "Electric", url: "/index.php?cPath=41_45" },
    { text: "Electric Bass", url: "/index.php?cPath=41_47" }
    ]
  },
  { id: "cp37", itemdata: [
    { text: "Yamaha", url: "/index.php?cPath=37_39" }
    ]
  },
  {  },
  { id: "cp27", itemdata: [
    { text: "Alto", url: "/index.php?cPath=27_28",
      submenu: { id: "cp27_28", itemdata: [
      { text: "Intermediate", url: "/index.php?cPath=27_28_30" },
      { text: "Professional", url: "/index.php?cPath=27_28_31" },
      { text: "Student", url: "/index.php?cPath=27_28_29" }
      ]}
    }
    ]
  },
  { id: "cp12", itemdata: [
    { text: "Clarinet Stands", url: "/index.php?cPath=12_13" }
    ]
  },
  { id: "cp32", itemdata: [
    { text: "Bb", url: "/index.php?cPath=32_33",
      submenu: { id: "cp32_33", itemdata: [
      { text: "Intermediate", url: "/index.php?cPath=32_33_36" },
      { text: "Professional", url: "/index.php?cPath=32_33_35" },
      { text: "Student", url: "/index.php?cPath=32_33_34" }
      ]}
    }
    ]
  }
  ];

  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(4).cfg.setProperty("submenu", aSubmenuData[4]);
      this.getItem(5).cfg.setProperty("submenu", aSubmenuData[5]);
      this.getItem(6).cfg.setProperty("submenu", aSubmenuData[6]);
      this.getItem(8).cfg.setProperty("submenu", aSubmenuData[8]);
      this.getItem(9).cfg.setProperty("submenu", aSubmenuData[9]);
      this.getItem(10).cfg.setProperty("submenu", aSubmenuData[10]);
    }
  });

  oMenu.render();
});