YAHOO.util.Event.onContentReady("navMenu", function () {
  var oMenu = new YAHOO.widget.Menu("navMenu", { position: "static", hidedelay: 750, lazyload: true });
  var aSubmenuData = [
  { id: "cp6", itemdata: [
    { text: "Electric", url: "/index.php?cPath=6_147",
      submenu: { id: "cp6_147", itemdata: [
      { text: "Six String", url: "/index.php?cPath=6_147_279" }
      ]}
    },
    { text: "Acoustic", url: "/index.php?cPath=6_139",
      submenu: { id: "cp6_139", itemdata: [
      { text: "Six String", url: "/index.php?cPath=6_139_140" },
      { text: "Twelve String", url: "/index.php?cPath=6_139_345" },
      { text: "Classical", url: "/index.php?cPath=6_139_209" },
      { text: "Travel Guitars", url: "/index.php?cPath=6_139_159" },
      { text: "Student", url: "/index.php?cPath=6_139_208" }
      ]}
    }
    ]
  },
  { id: "cp149", itemdata: [
    { text: "Combos (Acoustic)", url: "/index.php?cPath=149_373" },
    { text: "Combos (Electric)", url: "/index.php?cPath=149_150" },
    { text: "Heads", url: "/index.php?cPath=149_286" },
    { text: "Cabinets", url: "/index.php?cPath=149_316" },
    { text: "Practice Amps", url: "/index.php?cPath=149_386" },
    { text: "Headphone Amps", url: "/index.php?cPath=149_387" }
    ]
  },
  { id: "cp220", itemdata: [
    { text: "4 String", url: "/index.php?cPath=220_221" },
    { text: "5 String", url: "/index.php?cPath=220_310" },
    { text: "Acoustic / Electric", url: "/index.php?cPath=220_311" },
    { text: "Packages", url: "/index.php?cPath=220_308" }
    ]
  },
  { id: "cp143", itemdata: [
    { text: "Combos", url: "/index.php?cPath=143_144" },
    { text: "Heads", url: "/index.php?cPath=143_283" },
    { text: "Cabinets", url: "/index.php?cPath=143_322" },
    { text: "Practice Amps", url: "/index.php?cPath=143_358" },
    { text: "Headphones Amps", url: "/index.php?cPath=143_385" }
    ]
  },
  {  },
  { id: "cp74", itemdata: [
    { text: "Single", url: "/index.php?cPath=74_113" },
    { text: "Multi", url: "/index.php?cPath=74_367" },
    { text: "Rack", url: "/index.php?cPath=74_251" },
    { text: "Pedalboards", url: "/index.php?cPath=74_269" },
    { text: "Power Supplies", url: "/index.php?cPath=74_75" },
    { text: "Switch Boxes", url: "/index.php?cPath=74_171" }
    ]
  },
  { id: "cp9", itemdata: [
    { text: "Ukuleles", url: "/index.php?cPath=9_141" },
    { text: "Mandolins", url: "/index.php?cPath=9_210" },
    { text: "Banjos", url: "/index.php?cPath=9_28" },
    { text: "Autoharps", url: "/index.php?cPath=9_73" },
    { text: "Harps", url: "/index.php?cPath=9_360" },
    { text: "Dulcimers", url: "/index.php?cPath=9_248",
      submenu: { id: "cp9_248", itemdata: [
      { text: "Piano Style", url: "/index.php?cPath=9_248_362" },
      { text: "Diatonic", url: "/index.php?cPath=9_248_363" },
      { text: "Concentina", url: "/index.php?cPath=9_248_361" }
      ]}
    },
    { text: "Harmonicas", url: "/index.php?cPath=9_166" },
    { text: "Parts", url: "/index.php?cPath=9_410",
      submenu: { id: "cp9_410", itemdata: [
      { text: "Arm Rests", url: "/index.php?cPath=9_410_411" }
      ]}
    },
    { text: "Resonators", url: "/index.php?cPath=9_180" }
    ]
  },
  { id: "cp381", itemdata: [
    { text: "World & Folk", url: "/index.php?cPath=381_382",
      submenu: { id: "cp381_382", itemdata: [
      { text: "Harmonica", url: "/index.php?cPath=381_382_383" }
      ]}
    }
    ]
  },
  {  },
  { id: "cp123", itemdata: [
    { text: "Guitar, Bass & Fretted", url: "/index.php?cPath=123_124",
      submenu: { id: "cp123_124", itemdata: [
      { text: "Bass Instruction", url: "/index.php?cPath=123_124_212" },
      { text: "Bass Songbooks", url: "/index.php?cPath=123_124_211" },
      { text: "Guitar Instruction", url: "/index.php?cPath=123_124_125" },
      { text: "Guitar Songbooks", url: "/index.php?cPath=123_124_162" },
      { text: "Misc Fretted", url: "/index.php?cPath=123_124_163" }
      ]}
    },
    { text: "Band/Orchestra/Ensemble", url: "/index.php?cPath=123_276",
      submenu: { id: "cp123_276", itemdata: [
      { text: "Jazz Ensemble and Related", url: "/index.php?cPath=123_276_277" },
      { text: "Orchestra", url: "/index.php?cPath=123_276_303" }
      ]}
    },
    { text: "Reference", url: "/index.php?cPath=123_215",
      submenu: { id: "cp123_215", itemdata: [
      { text: "Reference/Bios/History", url: "/index.php?cPath=123_215_216" }
      ]}
    },
    { text: "Solo Instrumental", url: "/index.php?cPath=123_252",
      submenu: { id: "cp123_252", itemdata: [
      { text: "Piano/Guitar/Strings", url: "/index.php?cPath=123_252_253" },
      { text: "Artists/Ensembles/Play-Along", url: "/index.php?cPath=123_252_256" }
      ]}
    },
    { text: "Software, Video & DVD", url: "/index.php?cPath=123_194",
      submenu: { id: "cp123_194", itemdata: [
      { text: "Instruments", url: "/index.php?cPath=123_194_195" }
      ]}
    },
    { text: "Music Related Products", url: "/index.php?cPath=123_290",
      submenu: { id: "cp123_290", itemdata: [
      { text: "Manuscript Paper", url: "/index.php?cPath=123_290_291" }
      ]}
    },
    { text: "Drum & Percussion", url: "/index.php?cPath=123_274",
      submenu: { id: "cp123_274", itemdata: [
      { text: "Instructional & Technique", url: "/index.php?cPath=123_274_275" }
      ]}
    },
    { text: "Church Music", url: "/index.php?cPath=123_164",
      submenu: { id: "cp123_164", itemdata: [
      { text: "Piano/Vocal/Guitar Songbook", url: "/index.php?cPath=123_164_165" }
      ]}
    },
    { text: "Educational Keyboard", url: "/index.php?cPath=123_261",
      submenu: { id: "cp123_261", itemdata: [
      { text: "Methods", url: "/index.php?cPath=123_261_262" }
      ]}
    }
    ]
  },
  { id: "cp370", itemdata: [
    { text: "Accessories", url: "/index.php?cPath=370_7",
      submenu: { id: "cp370_7", itemdata: [
      { text: "Cables", url: "/index.php?cPath=370_7_69" },
      { text: "Cases", url: "/index.php?cPath=370_7_160" },
      { text: "Gig Bags", url: "/index.php?cPath=370_7_325" },
      { text: "Practice Tools", url: "/index.php?cPath=370_7_161" },
      { text: "Tools", url: "/index.php?cPath=370_7_183" },
      { text: "Picks", url: "/index.php?cPath=370_7_22" },
      { text: "Straps & Accessories", url: "/index.php?cPath=370_7_8" },
      { text: "Cleaning & Care", url: "/index.php?cPath=370_7_31" },
      { text: "Metronomes", url: "/index.php?cPath=370_7_117" },
      { text: "Slides & Capos", url: "/index.php?cPath=370_7_26" },
      { text: "Stands & Benches", url: "/index.php?cPath=370_7_158" },
      { text: "Tuners", url: "/index.php?cPath=370_7_46" },
      { text: "Batteries", url: "/index.php?cPath=370_7_21" },
      { text: "String Winders", url: "/index.php?cPath=370_7_30" }
      ]}
    },
    { text: "Strings", url: "/index.php?cPath=370_65",
      submenu: { id: "cp370_65", itemdata: [
      { text: "Acoustic Guitar String Sets", url: "/index.php?cPath=370_65_112" },
      { text: "Acoustic 12 String Sets", url: "/index.php?cPath=370_65_114" },
      { text: "Acoustic Single Strings", url: "/index.php?cPath=370_65_98" },
      { text: "Classical Guitar String Sets", url: "/index.php?cPath=370_65_66" },
      { text: "Classical Single Strings", url: "/index.php?cPath=370_65_91" },
      { text: "Electric Bass String Sets", url: "/index.php?cPath=370_65_116" },
      { text: "Electric Bass Single Strings", url: "/index.php?cPath=370_65_213" },
      { text: "Electric Guitar String Sets", url: "/index.php?cPath=370_65_115" },
      { text: "Electric Single Strings", url: "/index.php?cPath=370_65_176" },
      { text: "Acoustic Bass String Sets", url: "/index.php?cPath=370_65_138" }
      ]}
    },
    { text: "Concert Tickets", url: "/index.php?cPath=370_375" }
    ]
  }
  ];

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

  oMenu.render();
});