YAHOO.util.Event.onContentReady("navMenu", function () {
  var oMenu = new YAHOO.widget.Menu("navMenu", { position: "static", hidedelay: 750, lazyload: true });
  var aSubmenuData = [
  { id: "cp1", itemdata: [
    { text: "Electric", url: "/index.php?cPath=1_93",
      submenu: { id: "cp1_93", itemdata: [
      { text: "Six String", url: "/index.php?cPath=1_93_179" },
      { text: "Packages", url: "/index.php?cPath=1_93_94" },
      { text: "Other", url: "/index.php?cPath=1_93_99999429" }
      ]}
    },
    { text: "Acoustic", url: "/index.php?cPath=1_88",
      submenu: { id: "cp1_88", itemdata: [
      { text: "Packages", url: "/index.php?cPath=1_88_99999408" },
      { text: "Six String", url: "/index.php?cPath=1_88_90" },
      { text: "Twelve String", url: "/index.php?cPath=1_88_99999410" },
      { text: "Student", url: "/index.php?cPath=1_88_89" },
      { text: "Classical", url: "/index.php?cPath=1_88_156" },
      { text: "Travel Guitars", url: "/index.php?cPath=1_88_99999334" }
      ]}
    },
    { text: "Acoustic-Electric", url: "/index.php?cPath=1_208",
      submenu: { id: "cp1_208", itemdata: [
      { text: "Six String", url: "/index.php?cPath=1_208_209" },
      { text: "Twelve String", url: "/index.php?cPath=1_208_99999430" }
      ]}
    },
    { text: "Bass", url: "/index.php?cPath=1_211",
      submenu: { id: "cp1_211", itemdata: [
      { text: "Four String", url: "/index.php?cPath=1_211_214" },
      { text: "Five String", url: "/index.php?cPath=1_211_212" },
      { text: "Six String", url: "/index.php?cPath=1_211_100000803" },
      { text: "Packages", url: "/index.php?cPath=1_211_99999428" },
      { text: "Acoustic", url: "/index.php?cPath=1_211_99999382" }
      ]}
    },
    { text: "Left Handed", url: "/index.php?cPath=1_100000768" },
    { text: "Amps", url: "/index.php?cPath=1_61",
      submenu: { id: "cp1_61", itemdata: [
      { text: "Guitar Amps", url: "/index.php?cPath=1_61_207" },
      { text: "Bass Amps", url: "/index.php?cPath=1_61_99999468" }
      ]}
    }
    ]
  },
  { id: "cp59", itemdata: [
    { text: "Single", url: "/index.php?cPath=59_63" },
    { text: "Multi", url: "/index.php?cPath=59_187" }
    ]
  },
  { id: "cp13", itemdata: [
    { text: "Mandolin", url: "/index.php?cPath=13_174" },
    { text: "Ukulele", url: "/index.php?cPath=13_91",
      submenu: { id: "cp13_91", itemdata: [
      { text: "Uke Packages", url: "/index.php?cPath=13_91_100000784" }
      ]}
    },
    { text: "Accordions", url: "/index.php?cPath=13_99999362" },
    { text: "Banjo", url: "/index.php?cPath=13_32" },
    { text: "Harmonicas", url: "/index.php?cPath=13_100000797" }
    ]
  },
  { id: "cp39", itemdata: [
    { text: "Acoustic Drums", url: "/index.php?cPath=39_80",
      submenu: { id: "cp39_80", itemdata: [
      { text: "Sets", url: "/index.php?cPath=39_80_168" },
      { text: "Snare Drums", url: "/index.php?cPath=39_80_99999333" }
      ]}
    },
    { text: "Electronic Drums", url: "/index.php?cPath=39_99999470" },
    { text: "World Percussion", url: "/index.php?cPath=39_40" },
    { text: "Cymbals", url: "/index.php?cPath=39_218",
      submenu: { id: "cp39_218", itemdata: [
      { text: "Ride", url: "/index.php?cPath=39_218_99999328" },
      { text: "Splash", url: "/index.php?cPath=39_218_99999325" },
      { text: "Hi-Hat", url: "/index.php?cPath=39_218_99999326" },
      { text: "Crash", url: "/index.php?cPath=39_218_99999327" },
      { text: "Package", url: "/index.php?cPath=39_218_99999447" },
      { text: "China", url: "/index.php?cPath=39_218_99999446" }
      ]}
    },
    { text: "Hardware", url: "/index.php?cPath=39_82" }
    ]
  },
  { id: "cp17", itemdata: [
    { text: "Packaged Systems", url: "/index.php?cPath=17_222" },
    { text: "Mixers", url: "/index.php?cPath=17_99999383",
      submenu: { id: "cp17_99999383", itemdata: [
      { text: "Non-Powered", url: "/index.php?cPath=17_99999383_99999472" },
      { text: "Powered", url: "/index.php?cPath=17_99999383_99999384" }
      ]}
    },
    { text: "PA Speakers", url: "/index.php?cPath=17_201",
      submenu: { id: "cp17_201", itemdata: [
      { text: "Passive Cabs/Mons", url: "/index.php?cPath=17_201_202" },
      { text: "Active Cabs/Monitors", url: "/index.php?cPath=17_201_221" }
      ]}
    },
    { text: "Power Amps", url: "/index.php?cPath=17_176" },
    { text: "Signal Processors", url: "/index.php?cPath=17_111" },
    { text: "Headphones/Monitors", url: "/index.php?cPath=17_129" }
    ]
  },
  { id: "cp106", itemdata: [
    { text: "Wired", url: "/index.php?cPath=106_166",
      submenu: { id: "cp106_166", itemdata: [
      { text: "Condenser", url: "/index.php?cPath=106_166_100000717" },
      { text: "Dynamic", url: "/index.php?cPath=106_166_100000718" }
      ]}
    },
    { text: "Wireless", url: "/index.php?cPath=106_170" }
    ]
  },
  { id: "cp99999398", itemdata: [
    { text: "Multi-Track Recorders", url: "/index.php?cPath=99999398_99999469" },
    { text: "Portable Recorders", url: "/index.php?cPath=99999398_100000892" },
    { text: "Computer Recording", url: "/index.php?cPath=99999398_99999474" },
    { text: "Headphones/Monitors", url: "/index.php?cPath=99999398_99999399" },
    { text: "Media Recorders & Players", url: "/index.php?cPath=99999398_100000894" },
    { text: "Signal Processors", url: "/index.php?cPath=99999398_100000776" },
    { text: "Room Treatments", url: "/index.php?cPath=99999398_100000773" }
    ]
  },
  { id: "cp56", itemdata: [
    { text: "Pianos & Portables", url: "/index.php?cPath=56_203" },
    { text: "Synthesizers", url: "/index.php?cPath=56_205" },
    { text: "Controllers", url: "/index.php?cPath=56_100000687" },
    { text: "Amplifiers", url: "/index.php?cPath=56_99999403" }
    ]
  },
  {  },
  { id: "cp100000700", itemdata: [
    { text: "Cables", url: "/index.php?cPath=100000700_100000885",
      submenu: { id: "cp100000700_100000885", itemdata: [
      { text: "Instrument Cables", url: "/index.php?cPath=100000700_100000885_100000886" },
      { text: "Microphone Cables", url: "/index.php?cPath=100000700_100000885_100000887" },
      { text: "Other Cables", url: "/index.php?cPath=100000700_100000885_100000889" }
      ]}
    },
    { text: "Guitar & Bass Accessories", url: "/index.php?cPath=100000700_100000701",
      submenu: { id: "cp100000700_100000701", itemdata: [
      { text: "Cables", url: "/index.php?cPath=100000700_100000701_100000710" },
      { text: "Cases", url: "/index.php?cPath=100000700_100000701_100000711" },
      { text: "Strings", url: "/index.php?cPath=100000700_100000701_100000712",
        submenu: { id: "cp100000700_100000701_100000712", itemdata: [
        { text: "Acoustic Sets", url: "/index.php?cPath=100000700_100000701_100000712_100000877" },
        { text: "Electric Sets", url: "/index.php?cPath=100000700_100000701_100000712_100000878" },
        { text: "Classical Sets", url: "/index.php?cPath=100000700_100000701_100000712_100000879" },
        { text: "Bass Sets", url: "/index.php?cPath=100000700_100000701_100000712_100000880" }
        ]}
      },
      { text: "Tuners", url: "/index.php?cPath=100000700_100000701_100000873" },
      { text: "Picks", url: "/index.php?cPath=100000700_100000701_100000871" },
      { text: "Stands & Hangers", url: "/index.php?cPath=100000700_100000701_100000876" },
      { text: "Straps", url: "/index.php?cPath=100000700_100000701_100000872" },
      { text: "Pickups", url: "/index.php?cPath=100000700_100000701_100000782" },
      { text: "Slides & Capos", url: "/index.php?cPath=100000700_100000701_100000875" },
      { text: "Other", url: "/index.php?cPath=100000700_100000701_100000713" }
      ]}
    },
    { text: "Effects Accessories", url: "/index.php?cPath=100000700_100000702",
      submenu: { id: "cp100000700_100000702", itemdata: [
      { text: "Cases & Bags", url: "/index.php?cPath=100000700_100000702_100000882" },
      { text: "Foot Switches", url: "/index.php?cPath=100000700_100000702_100000883" },
      { text: "Power Adapters", url: "/index.php?cPath=100000700_100000702_100000881" }
      ]}
    },
    { text: "World & Folk Accessories", url: "/index.php?cPath=100000700_100000703" },
    { text: "Drums & Percussion Accessories", url: "/index.php?cPath=100000700_100000704" },
    { text: "Sound Accessories", url: "/index.php?cPath=100000700_100000705" },
    { text: "Microphone Accessories", url: "/index.php?cPath=100000700_100000706" },
    { text: "Recording Accessories", url: "/index.php?cPath=100000700_100000893" },
    { text: "Keyboard Accessories", url: "/index.php?cPath=100000700_100000708" },
    { text: "Band & Orchestra Accessories", url: "/index.php?cPath=100000700_100000709" },
    { text: "Metronomes", url: "/index.php?cPath=100000700_100000874" }
    ]
  },
  {  },
  {  },
  { id: "cp100000777", itemdata: [
    { text: "Guitar/Bass Clearance", url: "/index.php?cPath=100000777_100000790" },
    { text: "Effects Clearance", url: "/index.php?cPath=100000777_100000789" },
    { text: "Drums & Percussion Clearance", url: "/index.php?cPath=100000777_100000794" },
    { text: "Microphone Clearance", url: "/index.php?cPath=100000777_100000795" },
    { text: "Sound Clearance", url: "/index.php?cPath=100000777_100000793" },
    { text: "Recording Clearance", url: "/index.php?cPath=100000777_100000791" },
    { text: "Keyboard Clearance", url: "/index.php?cPath=100000777_100000792" },
    { text: "Band & Orchestra Clearance", url: "/index.php?cPath=100000777_100000796" }
    ]
  },
  {  }
  ];

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

  oMenu.render();
});