
// Cascading Popup Menus v5.2 - Single Frame Menu example script.

// 'horizontal Bar' style: menu items that use this ItemStyle are 40px wide, have 10px gaps
// between them, no popout indicator (the '>' in some menus) or popout indicator position,
// 0px padding of the text within items, #336699 background colour, a hover colour of #6699CC,
// 'highText' is the stylesheet class used for the menu text both normally and when highlighted,
// no border styles, 'null' means fully opaque items (set them to numbers between 0 and 100 to
// enable semitranslucency), and the 'hand'/'default' cursors are used for linked/submenu items.
var hBar = new ItemStyle(20, 0, '&gt;', -15, 2, '30#f45411', '30#7fd2f4', 'highText', 'highText',
'itemBorder', 'itemBorder', null, null, 'hand', 'default');

// The 'sub Menu' items: these have popout indicators of 'Greater Than'' signs '>' 15px from their
// right edge, and CSS borders. Text class also changes on mouseover.
var subM = new ItemStyle(20, 0, '&gt;', -15, 2, '30#f45411', '30#7fd2f4', 'highText', 'highText',
 'itemBorder', 'itemBorder', 100, 100, 'hand', 'default');

var subMenuStyle = new ItemStyle(20, 0, '&gt;', -15, 2, '30#e71a18', '30#f47d11', 'highText', 'highText',
 'itemBorder', 'itemBorder', 100, 100, 'hand', 'default');

var menuHeader = new ItemStyle(22, 0, '&gt;', -15, 0, '#ffffff', '#ffffff', 'menuHeader', 'menuHeader',
 'menuHeaderText', 'menuHeaderText', null, null, 'hand', 'default');

// Create a PopupMenu() object, and pass its own name so it can reference itself later on.
// We also use a 'with' block to work with its properties and functions below.


var pMenu = new PopupMenu('pMenu');
with (pMenu)
	{
	startMenu('root', true, '0', '260', 158, hBar);
	addItem('wheel sets', '/?category=1', '', menuHeader);
	addItem('Instock Wheels', 'm_44', 'sm:', subMenuStyle);
	addItem('repairs', 'm_46', 'sm:', subMenuStyle);
	addItem('custom wheelbuild', '/shop.php?product=200');
	addItem('wheel components', '/?category=9', '', menuHeader);
	addItem('rims', 'm_10', 'sm:', subMenuStyle);
	addItem('hubs', 'm_26', 'sm:', subMenuStyle);
	addItem('spokes', 'm_18', 'sm:', subMenuStyle);
	addItem('quick releases', 'm_21', 'sm:', subMenuStyle);
	addItem('hub spares', 'm_27', 'sm:', subMenuStyle);
	addItem('wheel accessories', '/?category=30', '', menuHeader);
	addItem('centre lock adapters', 'm_22', 'sm:', subMenuStyle);
	addItem('Hub gear parts', 'm_32', 'sm:', subMenuStyle);
	addItem('Velox rim tape', '/shop.php?product=79');
	addItem('NoTubes yellow rim tape', '/shop.php?product=47');
	addItem('DT Swiss triple wheelbags', '/shop.php?product=4516');
	addItem('NoTubes rim strips', '/shop.php?product=56');
	addItem('Surly Singlespeed cogs', '/shop.php?product=6375');
	addItem('JRA Double-sided tape', '/shop.php?product=61');
	addItem('tyre sealants', '/?category=2', '', menuHeader);
	addItem('JRA Wheel Milk', '/shop.php?product=43');
	addItem('NoTubes The Solution', '/shop.php?product=44');
	addItem('Valves', '/?category=29', '', menuHeader);
	addItem('NoTubes Valves', '/shop.php?product=58');
	addItem('Weldtite valve cores', '/shop.php?product=63');
	addItem('NoTubes presta valve core', '/shop.php?product=3638');
	addItem('Mavic rim reducer', '/shop.php?product=169');
	addItem('alu rim reducer', '/shop.php?product=212');
	addItem('valve extension', '/shop.php?product=213');
	addItem('tools & repair', '/?category=11', '', menuHeader);
	addItem('puncture repair', 'm_40', 'sm:', subMenuStyle);
	addItem('wheel building tools', 'm_39', 'sm:', subMenuStyle);
	addItem('SKS Airchecker', '/shop.php?product=1340');
	addItem('Park Tyre levers', '/shop.php?product=804');
	addItem('NoTubes core remover', '/shop.php?product=48');
	addItem('Presta Schraeder adaptor', '/shop.php?product=805');
	addItem('NoTubes Injector', '/shop.php?product=49');
	addItem('Park Pro floor pump', '/shop.php?product=1031');
	addItem('Schraeder remover cap', '/shop.php?product=80');
	addItem('frame tape', '/?category=6', '', menuHeader);
	addItem('JRA Copter tape', '/shop.php?product=73');
	addItem('tyres', '/?category=14', '', menuHeader);
	addItem('Hutchinson', 'm_42', 'sm:', subMenuStyle);
	addItem('Maxxis', 'm_36', 'sm:', subMenuStyle);
	addItem('No Tubes', 'm_38', 'sm:', subMenuStyle);
	addItem('Schwalbe', 'm_37', 'sm:', subMenuStyle);
	addItem('brake parts', '/?category=15', '', menuHeader);
	addItem('Hope Pro disk rotor', '/shop.php?product=183');
	addItem('Hope Floating disk rotor', '/shop.php?product=209');
	addItem('Kool Stop brake pads', '/shop.php?product=51');
	addItem('basics', '/?category=20', '', menuHeader);
	addItem('Schwalbe Inner tubes', '/shop.php?product=110');
	addItem('media', '/?category=12', '', menuHeader);
	addItem('The Outcast', '/shop.php?product=137');
	addItem('The Ride journal', '/shop.php?product=2468');
	addItem('discounted stuff', '/?category=16', '', menuHeader);
	addItem('Nexus coaster brake hub on NoTubes Flow 29er', '/shop.php?product=6985');
	addItem('JRA &nbsp;', '/shop.php?product=179');
	addItem('Surly Singlespeed Fixed hub + Arch rim + Supercomp spokes and black alloy nipples', '/shop.php?product=7098');
	addItem('Industry Nine hub spares', '/shop.php?product=2198');
	addItem('Eclipse / DT Tubeless rimstrips', '/shop.php?product=7099');
	addItem('Industry Nine 29er rear wheel - silver hub, red spokes, Arch 29er black rim', '/shop.php?product=6923');	
	startMenu('m_44', true, 159, 0, 165, subM, '', false);
	addItem('NoTubes ZTR hubs', '/shop.php?product=4213');
	addItem('Shimano Alfine', '/shop.php?product=140');
	addItem('American Classic', '/shop.php?product=3210');
	addItem('Shimano XT hubs', '/shop.php?product=6956');
	addItem('Alpha road wheels', '/shop.php?product=6374');
	addItem('Hope Pro II', '/shop.php?product=3211');
	startMenu('m_46', true, 159, 0, 165, subM, '', false);
	addItem('Rim replacement', '/shop.php?product=6960');
	addItem('Hub servicing', '/shop.php?product=6961');
	startMenu('m_10', true, 159, 0, 165, subM, '', false);
	addItem('NoTubes ZTR Podium MMX', '/shop.php?product=4295');
	addItem('NoTubes ZTR Alpine', '/shop.php?product=4487');
	addItem('NoTubes Alpha 340 road', '/shop.php?product=6370');
	addItem('NoTubes ZTR Crest', '/shop.php?product=4484');
	addItem('NoTubes ZTR Olympic', '/shop.php?product=41');
	addItem('NoTubes ZTR 355', '/shop.php?product=42');
	addItem('NoTubes ZTR Arch', '/shop.php?product=83');
	addItem('NoTubes ZTR Flow', '/shop.php?product=84');
	startMenu('m_26', true, 159, 0, 165, subM, '', false);
	addItem('American Classic 225 / 130', '/shop.php?product=113');
	addItem('American Classic Road hubs', '/shop.php?product=6707');
	addItem('Shimano XT hubs', '/shop.php?product=159');
	addItem('Cannondale Lefty Si hub', '/shop.php?product=661');
	addItem('Chris King ISO disc hubs', '/shop.php?product=2348');
	addItem('DT Swiss 190 Ceramic', '/shop.php?product=162');
	addItem('DT Swiss 240s hubs', '/shop.php?product=161');
	addItem('Hope Pro II disk hubs', '/shop.php?product=156');
	addItem('Maverick 24/7 front hub', '/shop.php?product=3383');
	addItem('NoTubes ZTR hubs', '/shop.php?product=3711');
	addItem('Rohloff Speedhub', '/shop.php?product=170');
	addItem('Surly mtn hubs', '/shop.php?product=3724');
	addItem('Shimano Alfine rear', '/shop.php?product=171');
	addItem('Shimano XTR hubs', '/shop.php?product=160');
	startMenu('m_18', true, 159, 0, 165, subM, '', false);
	addItem('DT Swiss Competition', '/shop.php?product=104');
	addItem('DT Swiss alloy nipples', '/shop.php?product=516');
	addItem('DT Swiss brass nipples', '/shop.php?product=517');
	addItem('DT Swiss Super Comp', '/shop.php?product=141');
	addItem('DT Swiss Revolution', '/shop.php?product=100');
	addItem('DT Swiss Aerolite', '/shop.php?product=177');
	addItem('Sapim CX-RAY', '/shop.php?product=2991');
	startMenu('m_21', true, 159, 0, 165, subM, '', false);
	addItem('American Classic quick releases', '/shop.php?product=112');
	addItem('DT Swiss RWS', '/shop.php?product=128');
	addItem('Hope Steel rod QR', '/shop.php?product=155');
	addItem('Shimano Deore LX', '/shop.php?product=218');
	startMenu('m_27', true, 159, 0, 165, subM, '', false);
	addItem('American Classic spares', '/shop.php?product=115');
	addItem('DT Swiss hub spares', '/shop.php?product=4479');
	addItem('Shimano XTR hub spares', '/shop.php?product=6092');
	addItem('NoTubes ZTR hub spares', '/shop.php?product=3712');
	addItem('Hope Hub spares', '/shop.php?product=1115');
	startMenu('m_22', true, 159, 0, 165, subM, '', false);
	addItem('Shimano Center lock adapter', '/shop.php?product=120');
	addItem('DT Swiss Center lock adaptor', '/shop.php?product=121');
	startMenu('m_32', true, 159, 0, 165, subM, '', false);
	addItem('Shimano Alfine shifter', '/shop.php?product=176');
	addItem('Hope disk for Rohloff', '/shop.php?product=173');
	addItem('Alfine tensioner', '/shop.php?product=1865');
	addItem('Shimano Alfine fitting kit', '/shop.php?product=174');
	addItem('Shimano Alfine sprockets', '/shop.php?product=175');
	startMenu('m_40', true, 159, 0, 165, subM, '', false);
	addItem('Tip Top Tubeless repair set', '/shop.php?product=145');
	addItem('Weldtite Rapid tubeless repair kit', '/shop.php?product=81');
	addItem('Tip Top Puncture Repair Kit', '/shop.php?product=2834');
	addItem('Velox tubeless patch kit', '/shop.php?product=82');
	addItem('Tip Top Tubeless patches', '/shop.php?product=138');
	startMenu('m_39', true, 159, 0, 165, subM, '', false);
	addItem('Mastering The Wheel', '/shop.php?product=2624');
	addItem('Sapim bladed spoke holder', '/shop.php?product=1245');
	addItem('Sapim nipple driver', '/shop.php?product=215');
	addItem('Park spoke wrench', '/shop.php?product=4439');
	addItem('Spoke freeze', '/shop.php?product=1343');
	addItem('Park Tension meter', '/shop.php?product=217');
	addItem('Art of Wheel building - book', '/shop.php?product=1621');
	addItem('Sapim Spoke key', '/shop.php?product=1244');
	startMenu('m_42', true, 159, 0, 165, subM, '', false);
	addItem('Fusion 3', '/shop.php?product=164');
	addItem('Atom', '/shop.php?product=2982');
	addItem('Hutchinson Intensive', '/shop.php?product=3301');
	startMenu('m_36', true, 159, 0, 165, subM, '', false);
	addItem('Maxxis ADvantage', '/shop.php?product=87');
	addItem('Maxxis Ardent', '/shop.php?product=199');
	addItem('Maxxis Aspen', '/shop.php?product=2233');
	addItem('Maxxis CrossMark', '/shop.php?product=103');
	addItem('Maxxis High Roller XC', '/shop.php?product=86');
	addItem('Maxxis High Roller DH/FR', '/shop.php?product=89');
	addItem('Maxxis Ignitor', '/shop.php?product=96');
	addItem('Maxxis Larsen MiMo MTB', '/shop.php?product=99');
	addItem('Maxxis Larsen TT', '/shop.php?product=95');
	addItem('Maxxis Medusa', '/shop.php?product=144');
	addItem('Maxxis Minion Front', '/shop.php?product=88');
	addItem('Maxxis Minion Rear', '/shop.php?product=119');
	addItem('Maxxis Monorail', '/shop.php?product=198');
	addItem('Maxxis Rendez', '/shop.php?product=196');
	addItem('Maxxis Swampthing', '/shop.php?product=181');
	startMenu('m_38', true, 159, 0, 165, subM, '', false);
	addItem('NoTubes The Crow', '/shop.php?product=118');
	addItem('NoTubes The Raven', '/shop.php?product=963');
	startMenu('m_37', true, 159, 0, 165, subM, '', false);
	addItem('Schwalbe Furious Fred', '/shop.php?product=203');
	addItem('Schwalbe Nobby Nic', '/shop.php?product=201');
	addItem('Schwalbe Racing Ralph', '/shop.php?product=202');
	addItem('Schwalbe Rocket Ron', '/shop.php?product=3598');
}






