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