// Cascading Popup Menus v5.2 - Single Frame Menu example script.

var hBar = new ItemStyle(140, 2, '', 50, 5, '25#000000', '27#909090', 'highText', 'highText', '', '',
	 null, null, 'hand', 'default');

var subM = new ItemStyle(32, 2, 'SWAP:&gt;^&gt;', -15, 3, '25#C8C8C8', '27#484848', 'lowText', 'highText',
	'itemBorder', 'itemBorder', 80, 90, 'hand', 'default');

var subBlank = new ItemStyle(22, 2, 'SWAP:&gt;^&gt;', -15, 3, '15#C8C8C8', '27#484848', 'lowText', 'highText',
	 'itemBorder', 'itemBorder', 89, 90, 'hand', 'default');


var button = new ItemStyle(22, 1, '&gt;', -15, 2, '20#006633', '10#CC6600', 'buttonText', 'buttonHover',
	 'buttonBorder', 'buttonBorderOver', 80, 95, 'crosshair', 'default');


var pMenu = new PopupMenu('pMenu');
with (pMenu)
{
startMenu('root', false, 'window.page.elmPos("home").x', 'window.page.elmPos("home").y + 4', 22, hBar);


addItem('HOME', 'default.asp', '', null, 155);
addItem('MODELS', 'mRoot', 'sm:', null, 155);
addItem('GALLERY', 'gallery.asp', '', null, 155);
addItem('ABOUT', 'about.asp', '', null, 155);
addItem('CONTACT', 'contact.asp', '', null, 148);

startMenu('mRoot', true, 0, 22, 180, subM, '', false);
addItem('1 Series', 'm346_1_Series', 'sm:');
addItem('3 Series', 'm347_3_Series', 'sm:');
addItem('5 Series', 'm348_5_Series', 'sm:');
addItem('6 Series', 'm349_6_Series', 'sm:');
addItem('7 Series', 'm350_7_Series', 'sm:');
addItem('8 Series', 'm351_8_Series', 'sm:');
addItem('X Series', 'm352_X_Series', 'sm:');
addItem('Z Series', 'm353_Z_Series', 'sm:');
addItem('Mini', 'm354_Mini', 'sm:');

startMenu('m346_1_Series', true, 180, 0, 180, subBlank, '', false);
addItem('E87 1 Series 2003-', 'm169_E87_1_Series_2003_', 'sm:');

startMenu('m169_E87_1_Series_2003_', true, 180, 0, 180, subBlank, '', false);
addItem('Exterior Mirrors', 'page.asp?categoryID=251', '');
addItem('Cooling', 'page.asp?categoryID=250', '');
addItem('Braking', 'page.asp?categoryID=246', '');
addItem('Matsets', 'page.asp?categoryID=244', '');
addItem('AC Schnitzer', 'page.asp?categoryID=242', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=241', '');
addItem('Genuine BMW Products', 'page.asp?categoryID=239', '');
addItem('Black Grill Kit', 'page.asp?categoryID=636', '');
addItem('Engine', 'page.asp?categoryID=283', '');
addItem('Service/Maintenance', 'page.asp?categoryID=245', '');
addItem('Badges & Decals', 'page.asp?categoryID=240', '');
addItem('Alpina', 'page.asp?categoryID=243', '');
addItem('Pedal Sets/Handbrake Grip', 'page.asp?categoryID=345', '');
addItem('Air Mass Sensor', 'page.asp?categoryID=294', '');


startMenu('m347_3_Series', true, 180, 0, 180, subBlank, '', false);
addItem('E30 1983-1991', 'm1_E30_1983_1991', 'sm:');
addItem('E36 1991-1999', 'm24_E36_1991_1999', 'sm:');
addItem('E46 1998-2005', 'm32_E46_1998_2005', 'sm:');
addItem('E90 E91 E92 E93 04- ', 'm164_E90_E91_E92_E93_04_', 'sm:');

startMenu('m1_E30_1983_1991', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine BMW Products', 'page.asp?categoryID=46', '');
addItem('Badges/Decals', 'page.asp?categoryID=50', '');
addItem('Service/Maintenance', 'page.asp?categoryID=70', '');
addItem('Braking', 'page.asp?categoryID=47', '');
addItem('Steering', 'page.asp?categoryID=48', '');
addItem('Suspension', 'page.asp?categoryID=51', '');
addItem('Poly Bush Kits', 'page.asp?categoryID=74', '');
addItem('Cooling', 'page.asp?categoryID=75', '');
addItem('Engine', 'page.asp?categoryID=71', '');
addItem('Electrics', 'page.asp?categoryID=52', '');
addItem('Fuel', 'page.asp?categoryID=44', '');
addItem('Exhaust', 'page.asp?categoryID=72', '');
addItem('Transmission', 'page.asp?categoryID=73', '');
addItem('Lighting', 'page.asp?categoryID=45', '');
addItem('Carbon Fibre Products', 'page.asp?categoryID=49', '');
addItem('Eyebrows', 'page.asp?categoryID=142', '');
addItem('Used Parts', 'page.asp?categoryID=89', '');
addItem('BMW Models ', 'page.asp?categoryID=105', '');
addItem('Keyrings/Tax Holders', 'page.asp?categoryID=147', '');
addItem('Induction Kits', 'page.asp?categoryID=154', '');
addItem('Racing Harness', 'page.asp?categoryID=159', '');
addItem('Matsets', 'page.asp?categoryID=311', '');
addItem('Pedal Sets/Handbrake Grip', 'page.asp?categoryID=336', '');
addItem('Bonnet Stay', 'page.asp?categoryID=304', '');
addItem('Black Grill Kit', 'page.asp?categoryID=637', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=313', '');

startMenu('m24_E36_1991_1999', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine Body Styling', 'page.asp?categoryID=42', '');
addItem('Badges/Decals ', 'page.asp?categoryID=84', '');
addItem('AC Schnitzer', 'page.asp?categoryID=121', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=92', '');
addItem('Lighting/Upgrades', 'page.asp?categoryID=103', '');
addItem('Eyebrows', 'page.asp?categoryID=129', '');
addItem('Roof Spoiler', 'page.asp?categoryID=132', '');
addItem('Shark Fin ', 'page.asp?categoryID=151', '');
addItem('Chrome Styling', 'page.asp?categoryID=122', '');
addItem('Matsets', 'page.asp?categoryID=104', '');
addItem('Service/Maintenance', 'page.asp?categoryID=5', '');
addItem('Braking', 'page.asp?categoryID=4', '');
addItem('Steering', 'page.asp?categoryID=3', '');
addItem('Suspension', 'page.asp?categoryID=25', '');
addItem('Polybush Kits', 'page.asp?categoryID=2', '');
addItem('Heating & Cooling', 'page.asp?categoryID=33', '');
addItem('Engine', 'page.asp?categoryID=37', '');
addItem('Electrics', 'page.asp?categoryID=38', '');
addItem('Fuel', 'page.asp?categoryID=39', '');
addItem('Exhaust', 'page.asp?categoryID=40', '');
addItem('Transmission', 'page.asp?categoryID=41', '');
addItem('Exterior Mirrors   ', 'page.asp?categoryID=34', '');
addItem('Electric Window Parts', 'page.asp?categoryID=135', '');
addItem('Locking Wheel Nuts', 'page.asp?categoryID=143', '');
addItem('Keyrings/Tax Holders', 'page.asp?categoryID=148', '');
addItem('Bonnet/Boot Stay', 'page.asp?categoryID=306', '');
addItem('Bonnet Stay', 'page.asp?categoryID=305', '');
addItem('Air Mass Sensor', 'page.asp?categoryID=288', '');
addItem('Final Stage Resistor', 'page.asp?categoryID=320', '');
addItem('Racing Harness', 'page.asp?categoryID=160', '');
addItem('Induction Kits', 'page.asp?categoryID=155', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=314', '');
addItem('Pedal Sets/Handbrake Grip', 'page.asp?categoryID=337', '');
addItem('Wind deflector ', 'page.asp?categoryID=153', '');
addItem('Performance Air Filter', 'page.asp?categoryID=329', '');

startMenu('m32_E46_1998_2005', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine Body Styling', 'page.asp?categoryID=53', '');
addItem('Badges/Decals', 'page.asp?categoryID=59', '');
addItem('AC Schnitzer', 'page.asp?categoryID=94', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=56', '');
addItem('Lighting/Upgrades', 'page.asp?categoryID=57', '');
addItem('Eyebrows', 'page.asp?categoryID=130', '');
addItem('Roof Spoiler', 'page.asp?categoryID=133', '');
addItem('Shark Fin ', 'page.asp?categoryID=152', '');
addItem('Chrome Styling', 'page.asp?categoryID=124', '');
addItem('Armrest Kits', 'page.asp?categoryID=55', '');
addItem('Matsets', 'page.asp?categoryID=86', '');
addItem('Wind Deflector', 'page.asp?categoryID=87', '');
addItem('Service/Maintenance', 'page.asp?categoryID=60', '');
addItem('Braking', 'page.asp?categoryID=95', '');
addItem('Steering', 'page.asp?categoryID=96', '');
addItem('Suspension', 'page.asp?categoryID=97', '');
addItem('Poly Bush Kits', 'page.asp?categoryID=102', '');
addItem('Heating & Cooling', 'page.asp?categoryID=98', '');
addItem('Engine', 'page.asp?categoryID=138', '');
addItem('Electrics', 'page.asp?categoryID=99', '');
addItem('Fuel', 'page.asp?categoryID=125', '');
addItem('Exhaust', 'page.asp?categoryID=100', '');
addItem('Transmission', 'page.asp?categoryID=101', '');
addItem('Exterior Mirrors', 'page.asp?categoryID=127', '');
addItem('Electric Window Parts', 'page.asp?categoryID=136', '');
addItem('CD Changer', 'page.asp?categoryID=139', '');
addItem('Locking Wheel Nuts', 'page.asp?categoryID=145', '');
addItem('Keyrings/Tax Holders', 'page.asp?categoryID=149', '');
addItem('Induction Kits', 'page.asp?categoryID=156', '');
addItem('Pedal Sets/Handbrake Grip', 'page.asp?categoryID=338', '');
addItem('Performance Air Filter', 'page.asp?categoryID=330', '');
addItem('Bonnet Stay', 'page.asp?categoryID=310', '');
addItem('Final Stage Resistor', 'page.asp?categoryID=321', '');
addItem('Door Locks', 'page.asp?categoryID=163', '');
addItem('Door Aperture Rubbers', 'page.asp?categoryID=161', '');
addItem('Black Grill Kits', 'page.asp?categoryID=276', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=315', '');
addItem('Air Mass Sensor', 'page.asp?categoryID=289', '');
addItem('Turbo Charger', 'page.asp?categoryID=286', '');

startMenu('m164_E90_E91_E92_E93_04_', true, 180, 0, 180, subBlank, '', false);
addItem('Wind Deflector', 'page.asp?categoryID=179', '');
addItem('Matsets', 'page.asp?categoryID=178', '');
addItem('Shark Fin', 'page.asp?categoryID=177', '');
addItem('Lighting Upgrades', 'page.asp?categoryID=176', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=175', '');
addItem('Alpina', 'page.asp?categoryID=174', '');
addItem('AC Schnitzer', 'page.asp?categoryID=173', '');
addItem('Braking', 'page.asp?categoryID=264', '');
addItem('Genuine Body Styling', 'page.asp?categoryID=171', '');
addItem('Badges & Decals', 'page.asp?categoryID=172', '');
addItem('Pedal Sets/Handbrake Grip', 'page.asp?categoryID=339', '');
addItem('Genuine BMW Products', 'page.asp?categoryID=274', '');
addItem('Keyrings', 'page.asp?categoryID=273', '');
addItem('Suspension', 'page.asp?categoryID=272', '');
addItem('Black Grill Kits', 'page.asp?categoryID=279', '');
addItem('Service & Maintenance', 'page.asp?categoryID=265', '');
addItem('Drive Belt & Tensioners', 'page.asp?categoryID=667', '');


startMenu('m348_5_Series', true, 180, 0, 180, subBlank, '', false);
addItem('E34 1988-1995', 'm355_E34_1988_1995', 'sm:');
addItem('E39 1996-2002', 'm82_E39_1996_2002', 'sm:');
addItem('E60 5 SERIES 2002 - ', 'm165_E60_5_SERIES_2002__', 'sm:');

startMenu('m355_E34_1988_1995', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine Body Styling', 'page.asp?categoryID=391', '');
addItem('Badges/Decals', 'page.asp?categoryID=392', '');
addItem('AC Schnitzer', 'page.asp?categoryID=380', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=394', '');
addItem('Lighting/Upgrades', 'page.asp?categoryID=390', '');
addItem('Chrome Styling', 'page.asp?categoryID=379', '');
addItem('Matsets', 'page.asp?categoryID=389', '');
addItem('Service/Maintenance', 'page.asp?categoryID=393', '');
addItem('Braking', 'page.asp?categoryID=388', '');
addItem('Steering', 'page.asp?categoryID=387', '');
addItem('Suspension', 'page.asp?categoryID=386', '');
addItem('Polybush Kits', 'page.asp?categoryID=385', '');
addItem('Cooling', 'page.asp?categoryID=384', '');
addItem('Engine', 'page.asp?categoryID=373', '');
addItem('Electrics', 'page.asp?categoryID=383', '');
addItem('Fuel', 'page.asp?categoryID=378', '');
addItem('Exhaust', 'page.asp?categoryID=382', '');
addItem('Transmission', 'page.asp?categoryID=381', '');
addItem('Exterior Mirrors', 'page.asp?categoryID=377', '');
addItem('Keyrings/Tax Holders', 'page.asp?categoryID=371', '');
addItem('Locking Wheel Nuts', 'page.asp?categoryID=372', '');
addItem('Bonnet Stay', 'page.asp?categoryID=365', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=364', '');

startMenu('m82_E39_1996_2002', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine Body Styling', 'page.asp?categoryID=109', '');
addItem('Badges/Decals', 'page.asp?categoryID=108', '');
addItem('AC Schnitzer', 'page.asp?categoryID=120', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=106', '');
addItem('Lighting/Upgrades', 'page.asp?categoryID=110', '');
addItem('Eyebrows', 'page.asp?categoryID=131', '');
addItem('Roof Spoiler', 'page.asp?categoryID=134', '');
addItem('Chrome Styling', 'page.asp?categoryID=123', '');
addItem('Matsets', 'page.asp?categoryID=111', '');
addItem('Service/Maintenance', 'page.asp?categoryID=107', '');
addItem('Braking', 'page.asp?categoryID=112', '');
addItem('Steering', 'page.asp?categoryID=113', '');
addItem('Suspension', 'page.asp?categoryID=114', '');
addItem('Polybush Kits', 'page.asp?categoryID=115', '');
addItem('Heating & Cooling', 'page.asp?categoryID=116', '');
addItem('Engine', 'page.asp?categoryID=141', '');
addItem('Electrics', 'page.asp?categoryID=117', '');
addItem('Fuel', 'page.asp?categoryID=126', '');
addItem('Exhaust', 'page.asp?categoryID=118', '');
addItem('Transmission', 'page.asp?categoryID=119', '');
addItem('Exterior Mirrors', 'page.asp?categoryID=128', '');
addItem('CD Changer', 'page.asp?categoryID=140', '');
addItem('Locking Wheel Nuts', 'page.asp?categoryID=146', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=316', '');
addItem('Black Grill Kits', 'page.asp?categoryID=277', '');
addItem('Turbo Charger', 'page.asp?categoryID=287', '');
addItem('Keyrings/Tax Holders', 'page.asp?categoryID=150', '');
addItem('Air Mass Sensor', 'page.asp?categoryID=290', '');
addItem('Induction Kits', 'page.asp?categoryID=157', '');
addItem('Final Stage Resistor', 'page.asp?categoryID=322', '');
addItem('Performance Air Filter', 'page.asp?categoryID=331', '');
addItem('Bonnet Stay', 'page.asp?categoryID=307', '');
addItem('Pedal Sets/Handbrake Grip', 'page.asp?categoryID=340', '');

startMenu('m165_E60_5_SERIES_2002__', true, 180, 0, 180, subBlank, '', false);
addItem('Braking', 'page.asp?categoryID=190', '');
addItem('Genuine BMW Products', 'page.asp?categoryID=181', '');
addItem('Alpina', 'page.asp?categoryID=184', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=185', '');
addItem('Shark Fin', 'page.asp?categoryID=187', '');
addItem('Lighting Upgrades', 'page.asp?categoryID=186', '');
addItem('Genuine Body Styling', 'page.asp?categoryID=180', '');
addItem('Service/Maintenance', 'page.asp?categoryID=189', '');
addItem('Suspension', 'page.asp?categoryID=192', '');
addItem('Cooling', 'page.asp?categoryID=194', '');
addItem('Exterior Mirrors', 'page.asp?categoryID=195', '');
addItem('Black Grill Kits', 'page.asp?categoryID=278', '');
addItem('Chrome Grill Kits', 'page.asp?categoryID=328', '');
addItem('Engine', 'page.asp?categoryID=280', '');
addItem('Air Mass Sensor', 'page.asp?categoryID=291', '');
addItem('Matsets', 'page.asp?categoryID=188', '');
addItem('Pedal Sets/Handbrake Grip', 'page.asp?categoryID=341', '');
addItem('AC Schnitzer', 'page.asp?categoryID=183', '');
addItem('Badges & Decals', 'page.asp?categoryID=182', '');
addItem('Performance Air Filter', 'page.asp?categoryID=335', '');


startMenu('m349_6_Series', true, 180, 0, 180, subBlank, '', false);
addItem('E24 1977-1988', 'm356_E24_1977_1988', 'sm:');
addItem('E63 & E64 2003-', 'm357_E63___E64_2003_', 'sm:');

startMenu('m356_E24_1977_1988', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine Body Styling', 'page.asp?categoryID=423', '');
addItem('Badges/Decals', 'page.asp?categoryID=424', '');
addItem('AC Schnitzer', 'page.asp?categoryID=412', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=426', '');
addItem('Lighting/Upgrades', 'page.asp?categoryID=422', '');
addItem('Chrome Styling', 'page.asp?categoryID=411', '');
addItem('Matsets', 'page.asp?categoryID=421', '');
addItem('Service/Maintenance', 'page.asp?categoryID=425', '');
addItem('Braking', 'page.asp?categoryID=420', '');
addItem('Steering', 'page.asp?categoryID=419', '');
addItem('Suspension', 'page.asp?categoryID=418', '');
addItem('Polybush Kits', 'page.asp?categoryID=417', '');
addItem('Cooling', 'page.asp?categoryID=416', '');
addItem('Electrics', 'page.asp?categoryID=415', '');
addItem('Fuel', 'page.asp?categoryID=410', '');
addItem('Exhaust', 'page.asp?categoryID=414', '');
addItem('Transmission', 'page.asp?categoryID=413', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=396', '');
addItem('Locking Wheel Nuts', 'page.asp?categoryID=404', '');
addItem('Bonnet Stay', 'page.asp?categoryID=397', '');
addItem('Keyrings/Tax Holders', 'page.asp?categoryID=403', '');

startMenu('m357_E63___E64_2003_', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine Body Styling', 'page.asp?categoryID=455', '');
addItem('Badges/Decals', 'page.asp?categoryID=456', '');
addItem('AC Schnitzer', 'page.asp?categoryID=444', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=458', '');
addItem('Lighting/Upgrades', 'page.asp?categoryID=454', '');
addItem('Chrome Styling', 'page.asp?categoryID=443', '');
addItem('Matsets', 'page.asp?categoryID=453', '');
addItem('Service/Maintenance', 'page.asp?categoryID=457', '');
addItem('Braking', 'page.asp?categoryID=452', '');
addItem('Steering', 'page.asp?categoryID=451', '');
addItem('Suspension', 'page.asp?categoryID=450', '');
addItem('Polybush Kits', 'page.asp?categoryID=449', '');
addItem('Cooling', 'page.asp?categoryID=448', '');
addItem('Electrics', 'page.asp?categoryID=447', '');
addItem('Fuel', 'page.asp?categoryID=442', '');
addItem('Exhaust', 'page.asp?categoryID=446', '');
addItem('Transmission', 'page.asp?categoryID=445', '');
addItem('Exterior Mirrors', 'page.asp?categoryID=441', '');
addItem('Keyrings/Tax Holders', 'page.asp?categoryID=435', '');
addItem('Locking Wheel Nuts', 'page.asp?categoryID=436', '');


startMenu('m350_7_Series', true, 180, 0, 180, subBlank, '', false);
addItem('E38 1994-2002', 'm358_E38_1994_2002', 'sm:');
addItem('E65 & E66 2002-', 'm359_E65___E66_2002_', 'sm:');

startMenu('m358_E38_1994_2002', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine Body Styling', 'page.asp?categoryID=487', '');
addItem('Badges/Decals', 'page.asp?categoryID=488', '');
addItem('AC Schnitzer', 'page.asp?categoryID=476', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=490', '');
addItem('Lighting/Upgrades', 'page.asp?categoryID=486', '');
addItem('Chrome Styling', 'page.asp?categoryID=475', '');
addItem('Matsets', 'page.asp?categoryID=485', '');
addItem('Service/Maintenance', 'page.asp?categoryID=489', '');
addItem('Braking', 'page.asp?categoryID=484', '');
addItem('Steering', 'page.asp?categoryID=483', '');
addItem('Suspension', 'page.asp?categoryID=482', '');
addItem('Polybush Kits', 'page.asp?categoryID=481', '');
addItem('Cooling', 'page.asp?categoryID=480', '');
addItem('Engine', 'page.asp?categoryID=469', '');
addItem('Electrics', 'page.asp?categoryID=479', '');
addItem('Fuel', 'page.asp?categoryID=474', '');
addItem('Exhaust', 'page.asp?categoryID=478', '');
addItem('Transmission', 'page.asp?categoryID=477', '');
addItem('Exterior Mirrors', 'page.asp?categoryID=473', '');
addItem('Keyrings/Tax Holders', 'page.asp?categoryID=467', '');
addItem('Locking Wheel Nuts', 'page.asp?categoryID=468', '');
addItem('Black Grill Kits', 'page.asp?categoryID=464', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=460', '');
addItem('Induction Kits', 'page.asp?categoryID=466', '');

startMenu('m359_E65___E66_2002_', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine Body Styling', 'page.asp?categoryID=519', '');
addItem('Badges/Decals', 'page.asp?categoryID=520', '');
addItem('AC Schnitzer', 'page.asp?categoryID=508', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=522', '');
addItem('Lighting/Upgrades', 'page.asp?categoryID=518', '');
addItem('Chrome Styling', 'page.asp?categoryID=507', '');
addItem('Matsets', 'page.asp?categoryID=517', '');
addItem('Service/Maintenance', 'page.asp?categoryID=521', '');
addItem('Braking', 'page.asp?categoryID=516', '');
addItem('Steering', 'page.asp?categoryID=515', '');
addItem('Suspension', 'page.asp?categoryID=514', '');
addItem('Polybush Kits', 'page.asp?categoryID=513', '');
addItem('Cooling', 'page.asp?categoryID=512', '');
addItem('Electrics', 'page.asp?categoryID=511', '');
addItem('Fuel', 'page.asp?categoryID=506', '');
addItem('Exhaust', 'page.asp?categoryID=510', '');
addItem('Transmission', 'page.asp?categoryID=509', '');
addItem('Locking Wheel Nuts', 'page.asp?categoryID=500', '');
addItem('Keyrings/Tax Holders', 'page.asp?categoryID=499', '');


startMenu('m351_8_Series', true, 180, 0, 180, subBlank, '', false);
addItem('Polybush Kits', 'page.asp?categoryID=631', '');
addItem('Transmission', 'page.asp?categoryID=628', '');
addItem('Electrics', 'page.asp?categoryID=627', '');
addItem('Genuine BMW Products', 'page.asp?categoryID=626', '');
addItem('Engine', 'page.asp?categoryID=625', '');
addItem('Cooling', 'page.asp?categoryID=624', '');
addItem('Lighting', 'page.asp?categoryID=623', '');
addItem('Braking', 'page.asp?categoryID=629', '');
addItem('Service & Maintenance ', 'page.asp?categoryID=630', '');
addItem('Suspension', 'page.asp?categoryID=622', '');
addItem('Steering', 'page.asp?categoryID=621', '');
addItem('Badges & Decals', 'page.asp?categoryID=620', '');
addItem('Genuine Body Styling', 'page.asp?categoryID=619', '');
addItem('Matsets', 'page.asp?categoryID=632', '');

startMenu('m352_X_Series', true, 180, 0, 180, subBlank, '', false);
addItem('X3 E83 2003-', 'm360_X3_E83_2003_', 'sm:');
addItem('X5 E53 2000-2007', 'm166_X5_E53_2000_2007', 'sm:');

startMenu('m360_X3_E83_2003_', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine Body Styling', 'page.asp?categoryID=551', '');
addItem('Badges/Decals', 'page.asp?categoryID=552', '');
addItem('AC Schnitzer', 'page.asp?categoryID=540', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=554', '');
addItem('Lighting/Upgrades', 'page.asp?categoryID=550', '');
addItem('Chrome Styling', 'page.asp?categoryID=539', '');
addItem('Matsets', 'page.asp?categoryID=549', '');
addItem('Service/Maintenance', 'page.asp?categoryID=553', '');
addItem('Braking', 'page.asp?categoryID=548', '');
addItem('Steering', 'page.asp?categoryID=547', '');
addItem('Suspension', 'page.asp?categoryID=546', '');
addItem('Polybush Kits', 'page.asp?categoryID=545', '');
addItem('Heating & Cooling', 'page.asp?categoryID=544', '');
addItem('Engine', 'page.asp?categoryID=533', '');
addItem('Electrics', 'page.asp?categoryID=543', '');
addItem('Fuel', 'page.asp?categoryID=538', '');
addItem('Exhaust', 'page.asp?categoryID=542', '');
addItem('Transmission', 'page.asp?categoryID=541', '');
addItem('CD Changer', 'page.asp?categoryID=534', '');
addItem('Keyrings/Tax Holders', 'page.asp?categoryID=531', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=524', '');
addItem('Air Mass Sensor', 'page.asp?categoryID=526', '');
addItem('Induction Kits', 'page.asp?categoryID=530', '');
addItem('Final Stage Resistor', 'page.asp?categoryID=523', '');
addItem('Locking Wheel Nuts', 'page.asp?categoryID=532', '');

startMenu('m166_X5_E53_2000_2007', true, 180, 0, 180, subBlank, '', false);
addItem('Lighting Upgrades', 'page.asp?categoryID=200', '');
addItem('Alpina', 'page.asp?categoryID=199', '');
addItem('Electrics', 'page.asp?categoryID=633', '');
addItem('AC Schnitzer', 'page.asp?categoryID=198', '');
addItem('Badges & Decals', 'page.asp?categoryID=197', '');
addItem('Genuine BMW Products', 'page.asp?categoryID=196', '');
addItem('Final Stage Resistor', 'page.asp?categoryID=323', '');
addItem('Performance Air Filter', 'page.asp?categoryID=332', '');
addItem('Pedal Sets/Handbrake Grip', 'page.asp?categoryID=342', '');
addItem('Service/Maintenance', 'page.asp?categoryID=203', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=318', '');
addItem('Engine', 'page.asp?categoryID=281', '');
addItem('Shark Fin', 'page.asp?categoryID=201', '');
addItem('Matsets', 'page.asp?categoryID=202', '');
addItem('Exterior Mirrors', 'page.asp?categoryID=209', '');
addItem('Cooling', 'page.asp?categoryID=208', '');
addItem('Fuel', 'page.asp?categoryID=296', '');
addItem('Suspension', 'page.asp?categoryID=206', '');
addItem('Air Mass Sensor', 'page.asp?categoryID=292', '');
addItem('Braking', 'page.asp?categoryID=204', '');
addItem('Steering', 'page.asp?categoryID=205', '');


startMenu('m353_Z_Series', true, 180, 0, 180, subBlank, '', false);
addItem('Z3         1996-2002', 'm167_Z3_________1996_2002', 'sm:');
addItem('Z4         2002-2007', 'm168_Z4_________2002_2007', 'sm:');

startMenu('m167_Z3_________1996_2002', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine BMW Products', 'page.asp?categoryID=210', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=212', '');
addItem('AC Schnitzer', 'page.asp?categoryID=213', '');
addItem('Alpina', 'page.asp?categoryID=214', '');
addItem('Braking', 'page.asp?categoryID=218', '');
addItem('Service/Maintenance', 'page.asp?categoryID=217', '');
addItem('Steering', 'page.asp?categoryID=219', '');
addItem('Suspension', 'page.asp?categoryID=220', '');
addItem('Polybush Kits', 'page.asp?categoryID=221', '');
addItem('Cooling', 'page.asp?categoryID=222', '');
addItem('Chrome Styling', 'page.asp?categoryID=223', '');
addItem('Exterior Mirrors', 'page.asp?categoryID=224', '');
addItem('Wind Deflector', 'page.asp?categoryID=216', '');
addItem('Air Mass Sensor', 'page.asp?categoryID=293', '');
addItem('Transmission', 'page.asp?categoryID=275', '');
addItem('Badges & Decals', 'page.asp?categoryID=211', '');
addItem('CD Changer', 'page.asp?categoryID=303', '');
addItem('Bonnet Stay', 'page.asp?categoryID=308', '');
addItem('Electrics', 'page.asp?categoryID=284', '');
addItem('Engine', 'page.asp?categoryID=285', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=317', '');
addItem('Matsets', 'page.asp?categoryID=215', '');
addItem('Exhaust', 'page.asp?categoryID=298', '');
addItem('Fuel', 'page.asp?categoryID=297', '');
addItem('Hardtop', 'page.asp?categoryID=324', '');
addItem('Performance Air Filter', 'page.asp?categoryID=333', '');
addItem('Pedal Sets/Handbrake Grip', 'page.asp?categoryID=343', '');

startMenu('m168_Z4_________2002_2007', true, 180, 0, 180, subBlank, '', false);
addItem('Service/Maintenance', 'page.asp?categoryID=232', '');
addItem('Engine', 'page.asp?categoryID=282', '');
addItem('Cooling', 'page.asp?categoryID=237', '');
addItem('Polybush Kits', 'page.asp?categoryID=236', '');
addItem('Suspension', 'page.asp?categoryID=235', '');
addItem('Braking', 'page.asp?categoryID=233', '');
addItem('Wind Deflector', 'page.asp?categoryID=231', '');
addItem('Matsets', 'page.asp?categoryID=230', '');
addItem('Pedal Sets/Handbrake Grip', 'page.asp?categoryID=344', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=227', '');
addItem('Badges & Decals', 'page.asp?categoryID=226', '');
addItem('Performance Air Filter', 'page.asp?categoryID=334', '');
addItem('Genuine BMW Products', 'page.asp?categoryID=225', '');
addItem('Windscreen Washer Pump', 'page.asp?categoryID=319', '');
addItem('AC Schnitzer', 'page.asp?categoryID=228', '');
addItem('Steering', 'page.asp?categoryID=234', '');


startMenu('m354_Mini', true, 180, 0, 180, subBlank, '', false);
addItem(' Mini R50  2001-2007', 'm170_Mini_R50__2001_2007', 'sm:');
addItem('Mini R56 2007-', 'm362_Mini_R56_2007_', 'sm:');

startMenu('m170_Mini_R50__2001_2007', true, 180, 0, 180, subBlank, '', false);
addItem('AC Schnitzer', 'page.asp?categoryID=271', '');
addItem('Alpina', 'page.asp?categoryID=270', '');
addItem('Exterior Mirrors', 'page.asp?categoryID=263', '');
addItem('Polybush Kits', 'page.asp?categoryID=261', '');
addItem('Power Steering Pump', 'page.asp?categoryID=300', '');
addItem('Braking', 'page.asp?categoryID=258', '');
addItem('Service/Maintenance', 'page.asp?categoryID=257', '');
addItem('Wind Deflector', 'page.asp?categoryID=256', '');
addItem('Matsets', 'page.asp?categoryID=255', '');
addItem('Lighting Upgrades', 'page.asp?categoryID=254', '');
addItem('Chrome Stylings', 'page.asp?categoryID=301', '');
addItem('Bonnet Stay', 'page.asp?categoryID=309', '');
addItem('Chrome Styling', 'page.asp?categoryID=312', '');

startMenu('m362_Mini_R56_2007_', true, 180, 0, 180, subBlank, '', false);
addItem('Genuine Body Styling', 'page.asp?categoryID=615', '');
addItem('Badges/Decals', 'page.asp?categoryID=616', '');
addItem('AC Schnitzer', 'page.asp?categoryID=604', '');
addItem('Gear Knobs/Gaiters', 'page.asp?categoryID=618', '');
addItem('Lighting/Upgrades', 'page.asp?categoryID=614', '');
addItem('Chrome Styling', 'page.asp?categoryID=603', '');
addItem('Matsets', 'page.asp?categoryID=613', '');
addItem('Service/Maintenance', 'page.asp?categoryID=617', '');
addItem('Braking', 'page.asp?categoryID=612', '');
addItem('Steering', 'page.asp?categoryID=611', '');
addItem('Suspension', 'page.asp?categoryID=610', '');
addItem('Polybush Kits', 'page.asp?categoryID=609', '');
addItem('Cooling', 'page.asp?categoryID=608', '');
addItem('Electrics', 'page.asp?categoryID=607', '');
addItem('Fuel', 'page.asp?categoryID=602', '');
addItem('Exhaust', 'page.asp?categoryID=606', '');
addItem('Transmission', 'page.asp?categoryID=605', '');



}


addMenuBorder(pMenu, window.subBlank, 50, '#666666', 0, '#888888', 0);
addDropShadow(pMenu, window.subM,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);
addDropShadow(pMenu, window.subBlank,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);

if ((navigator.userAgent.indexOf('rv:0.')==-1) &&
    !(isOp&&!document.documentElement) && !(isIE4&&!window.external))
{
 pMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
 pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -15)');

}

page.elmPos=function(e,p)
{
 var x=0,y=0,w=p?p:this.win;
 e=e?(e.substr?(isNS4?w.document.anchors[e]:getRef(e,w)):e):p;
 if(isNS4){if(e&&(e!=p)){x=e.x;y=e.y};if(p){x+=p.pageX;y+=p.pageY}}
 if (e && this.MS && navigator.platform.indexOf('Mac')>-1 && e.tagName=='A')
 {
  e.onfocus = new Function('with(event){self.tmpX=clientX-offsetX;' +
   'self.tmpY=clientY-offsetY}');
  e.focus();x=tmpX;y=tmpY;e.blur()
 }
 else while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}
 return{x:x,y:y};
};

function menuAnim(menuObj, menuName, dir)
{
 var mD = menuObj.menu[menuName][0];
 if (!mD.timer) mD.timer = 0;
 if (!mD.counter) mD.counter = 0;

 with (mD)
 {
  clearTimeout(timer);

  if (!lyr || !lyr.ref) return;
  if (!visNow && dir>0) dir = 0-dir;
  if (dir>0) lyr.vis('visible');
  lyr.sty.zIndex = dir>0 ? mD.zIndex + 1 : 1001;

  lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );
  counter += dir;
  if (counter>100) { counter = 100; lyr.sty.zIndex = mD.zIndex }
  else if (counter<0) { counter = 0; lyr.vis('hidden') }
  else timer = setTimeout('menuAnim('+menuObj.myName+',"'+menuName+'",'+dir+')', 40);
 }
};


function addMenuBorder(mObj, iS, alpha, bordCol, bordW, backCol, backW)
{
 // Loop through the menu array of that object, finding matching ItemStyles.
 for (var mN in mObj.menu)
 {
  var mR=mObj.menu[mN], dS='<div style="position:absolute; background:';
  if (mR[0].itemSty != iS) continue;
  // Loop through the items in that menu, move them down and to the right a bit.
  for (var mI=1; mI<mR.length; mI++)
  {
   mR[mI].iX += bordW+backW;
   mR[mI].iY += bordW+backW;
  }
  // Extend the total dimensions of menu accordingly.
  mW = mR[0].menuW += 2*(bordW+backW);
  mH = mR[0].menuH += 2*(bordW+backW);

  // Set the menu's extra content string with divs/layers underneath the items.
  if (isNS4) mR[0].extraHTML += '<layer bgcolor="'+bordCol+'" left="0" top="0" width="'+mW+
   '" height="'+mH+'" z-index="980"><layer bgcolor="'+backCol+'" left="'+bordW+'" top="'+
   bordW+'" width="'+(mW-2*bordW)+'" height="'+(mH-2*bordW)+'" z-index="990"></layer></layer>';
  else mR[0].extraHTML += dS+bordCol+'; left:0px; top:0px; width:'+mW+'px; height:'+mH+
   'px; z-index:980; '+
   (alpha!=null?'filter:alpha(opacity='+alpha+'); -moz-opacity:'+alpha+'%; opacity:'+(alpha/100):'')+
   '">'+dS+backCol+'; left:'+bordW+'px; top:'+bordW+'px; width:'+(mW-2*bordW)+'px; height:'+
   (mH-2*bordW)+'px; z-index:990"></div></div>';
 }
};

function addDropShadow(mObj, iS)
{
 // Pretty similar to the one above, just loops through list of extra parameters making
 // dropshadow layers (from arrays) and extending the menu dimensions to suit.
 for (var mN in mObj.menu)
 {
  var a=arguments, mD=mObj.menu[mN][0], addW=addH=0;
  if (mD.itemSty != iS) continue;
  for (var shad=2; shad<a.length; shad++)
  {
   var s = a[shad];
   // Safari 1.2 bug: it inherits alpha values SIDEWAYS!?!? What were they thinking?
   var alpha = (s[0]!=null && navigator.userAgent.indexOf('AppleWebKit') == -1);
   if (isNS4) mD.extraHTML += '<layer bgcolor="'+s[1]+'" left="'+s[2]+'" top="'+s[3]+'" width="'+
    (mD.menuW+s[4])+'" height="'+(mD.menuH+s[5])+'" z-index="'+(arguments.length-shad)+'"></layer>';
   else mD.extraHTML += '<div style="position:absolute; background:'+s[1]+'; left:'+s[2]+
    'px; top:'+s[3]+'px; width:'+(mD.menuW+s[4])+'px; height:'+(mD.menuH+s[5])+'px; -z-index:'+
    (a.length-shad)+'; '+
    (alpha?'filter:alpha(opacity='+s[0]+'); -moz-opacity:'+s[0]+'%; opacity:'+(s[0]/100):'')+
    '"></div>';
   addW=Math.max(addW, s[2]+s[4]);
   addH=Math.max(addH, s[3]+s[5]);
  }
  mD.menuW+=addW; mD.menuH+=addH;
 }
};

