// Cascading Popup Menus v5.2 - Single Frame Menu example script.


// If you're upgrading from v5.1, you can paste your existing menu data in, and if you're
// upgrading from v5.0 you need to add 'cursor' settings to your ItemStyles.
//
// And before going ANY further, you must have READ and AGREE TO the script license!
// It can be found on my site, in the syntax helpfile, or in the demo script document.


// '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(40, 10, '', 0, 0, '15#336699', '10#6699CC', 'highText', 'highText', '', '',
 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(22, 0, '&#9679;', -15, 3, '#CCCCDD', '#0000FF', 'lowText', 'highText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');

// 'subBlank' is similar, but has an 'off' border the same colour as its background so it
// appears borderless when dim, and 1px spacing between items to show the hover border.
var subBlank = new ItemStyle(22, 1, '&#9679;', -15, 3, '#CCCCDD', '#6699CC', 'lowText', 'highText',
 'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');

// The purplish 'button' style also has 1px spacing to show up the fancy border, and it has
// different colours/text and less padding. They also have translucency set -- these items
// are 80% opaque when dim and 95% when highlighted. It uses the 'crosshair' cursor for items.
var button = new ItemStyle(22, 1, '&#9679;', -15, 2, '10#006633', '10#CC6600', 'buttonText', 'buttonHover',
 'buttonBorder', 'buttonBorderOver', 80, 95, 'crosshair', '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', false, 'page.winW()/2 - pMenu.menu.root[0].menuW/2 - (isIE&&!isOp?0:11)', 85, 20, subM);
addItem('Company', 'mcompany', 'sm:', null, 135);
addItem('Products', 'mproducts', 'sm:', null, 170);
addItem('Technical', 'mtechnical', 'sm:', null, 170);
addItem('LED Products', 'mnews', 'sm:', null, 179);
addItem('Interactive Area', '', '', null, 130);


startMenu('mnews', true, 0, 20, 179, subM);
//addItem('New Products 2004', '../news/news.htm', '');
//addItem('News Bulletin 2005', '../news/news_bulletin.pdf', '');
//addItem('XY3 LED conversion kits','../Function/ViewProduct.aspx?productId=4a939a78-e593-41dd-998d-cbb046a072cc', '');
//addItem('XY4/A LED conversion kits','../Function/ViewProduct.aspx?productId=dd661dfc-1eab-4fcf-b848-eaac5c1776c3', '');
//addItem('XYLUX XYK3 LED conversion kits','../Function/ViewProduct.aspx?productId=4a939a78-e593-41dd-998d-cbb046a072cc', '');
//addItem('XYLUX XYK4 LED conversion kits','../Function/ViewProduct.aspx?productId=65f40583-4a20-4321-956e-4b3f9595a1a1', '');
//addItem('XY4/550/A LED conversion kits','../Function/ViewProduct.aspx?productId=56081ef9-8b2c-4748-85f3-7910f12dd536', '');
addItem('LED conversion kits','../PDF/WP0135.PDF', '');




addItem('XYLUX LC Unit CBS', '../Function/ViewProduct.aspx?productId=04e46f77-9c6f-4fea-9d63-ae7ea79bbebb', '');
//addItem('XYLUX LD Unit', '../Function/ViewProduct.aspx?productId=d16e4a84-8e8c-4d5c-9126-2780660acffe', '');
addItem('XYLUX LD3 Unit', '../Function/ViewProduct.aspx?productId=2ea50fb7-74be-4b6f-815c-dae7fef81132', '');

addItem('XYLUX LR Luminaire', '../Function/ViewProduct.aspx?productId=66a39834-c9c6-4441-a276-4ec9666c31a5', '');
//addItem('XYLUX LRC Luminaire CBS', '../Function/ViewProduct.aspx?productId=57dccf3f-3ef0-428b-a7a9-0efab1b5c962', '');

//addItem('Advanze-1 Low Profile T-Five Modules', '../Function/ViewProduct.aspx?productId=05945f6a-b779-4845-9604-a4f9c54417b0', '');
//addItem('Advanze-2 Ultra Low Profile T-Five Modules', '../Function/ViewProduct.aspx?productId=307a7c00-51f2-4210-8cce-bc760e8693ac', '');

//addItem('Cerian Modules', '../Function/ViewProduct.aspx?productId=d147a823-2180-4070-8f5e-0a130806da80', '');
//addItem('Primian-1 Modules', '../Function/ViewProduct.aspx?productId=3939297b-43ef-4c59-8cbe-30cc9daa4108', '');
//addItem('Primian-2 Modules', '../Function/ViewProduct.aspx?productId=41386eca-b203-4ef8-b181-e659be1c61b4', '');
//addItem('Relion Modules', '../Function/ViewProduct.aspx?productId=26505a79-8533-49e8-b47b-37d976277596', '');
//addItem('Remote Multibox', '../Function/ViewProduct.aspx?productId=a914a4dd-8435-46dc-afd8-f83cf0d42959', '');



startMenu('mcompany', true, 0, 20, 300, subM);
addItem('Home', '../Default.aspx', '');
addItem('About Mackwell', '../Function/ViewPage.aspx?pageId=96d9e0f4-31d8-4c75-903b-d8b90ea6afa0', '');

addItem('Battery Statement', '../Function/ViewPage.aspx?pageId=46176d6b-36a0-4fde-9bec-12d1f5fccdb1', '');
addItem('Contacts', '../Function/ViewPage.aspx?pageId=6390f00c-5ad6-4702-bf09-45da7586c94b', '');

//ViewPage.aspx?pageId=064d6d88-093c-48ad-b42d-84daab14464b

addItem('DALI Statement', '../Function/ViewPage.aspx?pageId=064d6d88-093c-48ad-b42d-84daab14464b', '');

addItem('Directions', '../Function/ViewPage.aspx?pageId=97c9df40-3524-4ed8-88ba-03be8a3d5b71', '');

//addItem('Directions (PDF)', '../company/directions.pdf', '');
//addItem('Feedback', '../feedback/feedback.htm', '');

addItem('Links', '../Function/ViewPage.aspx?pageId=ac7a3c41-1fdb-4d78-ab27-e2e7d0a61ff0', '');

addItem('Privacy Statement', '../Function/ViewPage.aspx?pageId=772032ea-22b1-4329-a60e-d3e296153661', '');

addItem('Quality Statement', '../Function/ViewPage.aspx?pageId=71c3453c-9ede-467d-9b61-376a790167f3', '');

addItem('Returns Policy', '../pdf/WP0400_Returns_Policy.pdf', '');

addItem('RoHS Statement', '../Function/ViewPage.aspx?pageId=0ae4b7b2-bf32-4bfa-8c6b-82cf4761f0de', '');




//addItem('Vacancy - Test/Development Engineer', '../pdf/test_development_engineer_19-9-11.pdf', '');
//addItem('Vacancy - Quality Engineer', '../pdf/quality_engineer_10-09-07.pdf', '');
//addItem('Vacancy - Area Manager', '../pdf/area_manager_26-11-07.pdf', '');

//addItem('Vacancy - Technical Support Engineer', '../pdf/technical_support_engineer_25-09-07.pdf', '');
//addItem('Job Description - Technical Support Engineer', '../pdf/technical_support_engineer_JD_25-09-07.pdf', '');

//addItem('Vacancy - Design Technician', '../pdf/designtechnicianwebadvertjune2008.pdf', '');

//addItem('Vacancy - Design Engineer', '../pdf/Design_Engineer_09-2011.pdf', '');
//addItem('Vacancy - Development Technician', '../pdf/Development_Technician_09-2011.pdf', '');
//addItem('Vacancy - Production Engineer', '../pdf/Production_engineer_11-8-11.pdf', '');
//addItem('Vacancy - Internal Export Sales Co-ordinator', '../pdf/exportsalesco-ordinator.pdf', '');

addItem('WEEE Statement', '../Function/ViewPage.aspx?pageId=96529ea3-b6e6-4123-b623-611af4fa40ad ', '');



startMenu('mproducts', true, 0, 20, 170, subM);
addItem('Modules', 'mmodules', 'sm:');
addItem('Integrated Modules', 'mintegrated', 'sm:');
addItem('Emergipacks', 'memergipacks', 'sm:');
addItem('Batteries', 'mbatteries', 'sm:');
addItem('Inverters', '../Function/ViewProduct.aspx?productId=c79e08e4-a827-4f89-9f35-d38ac1d0fefc', '');
addItem('More...', 'mmore', 'sm:');

startMenu('memergipacks', true, 170, 0, 170, subM);
//addItem('Which Emergipack ?', '../Function/ViewProduct.aspx?productId=8ddb639b-f0a9-4690-a349-b44978cf0c3d', '');
//addItem('Compact Emergipack', '../Function/ViewProduct.aspx?productId=ae2890e2-ea96-4124-b54d-324735eca9b1', '');
addItem('Mini Emergipack', '../Function/ViewProduct.aspx?productId=0fb07111-889d-475f-b111-9b94f819cbd0', '');
//addItem('Maxi Emergipack', '../Function/ViewProduct.aspx?productId=d004e0dc-7671-4998-a5ec-51eee723078b', '');

startMenu('mtechnical', true, 0, 20, 170, subM);
addItem('Ballast Lumen Factors', 'mblf', 'sm:');

addItem('Customer Return Form - pdf', '../pdf/tech099.pdf', '');
addItem('Customer Return Form - doc', '../pdf/tech099.doc', '');

addItem('Declaration of Conformity', '../Function/ViewPage.aspx?pageId=41c1dd13-aaf3-4e00-b9a7-5dc8c6b66d2e', '');
addItem('FAQs', '../Function/ViewPage.aspx?pageId=9631fcdd-c323-46b9-ab8f-2f127cc45d71', '');

addItem('Glossary', '../Function/ViewPage.aspx?pageId=1ae28ac9-c467-4409-ba74-b912304daced', '');
addItem('Installation Instructions', '../Function/ViewPage.aspx?pageId=603d0408-9ada-4014-80f1-5046343d6c3b', '');
addItem('Product Data Sheets', '../Function/ViewPage.aspx?pageId=066827f5-c250-42f6-94ef-0ce7ebe561b9', '');

addItem('Technical Bulletins', '../Function/ViewPage.aspx?pageId=2b73bcd3-d1e8-4333-bd5a-98950f3f4e5f', '');

//addItem('Wiring Diagrams', '../Function/ViewPage.aspx?pageId=583ca126-f0e0-47ab-8e48-ad2a1963f38f', '');

startMenu('mpresentations', true, 0, 20, 114, subM);
//addItem('AutoTest Graphical', '../presentations/autotest/autotest.exe ', '');
addItem('AutoTest PPT', '../presentations/autotest.ppt ', '');
addItem('Conversions PPT', '../presentations/conversions.ppt ', '');
addItem('General PPT', '../presentations/general.ppt ', '');
//addItem('LonWorks PPT', '../presentations/Lonworks.ppt ', '');
addItem('SD208+ PPT', '../presentations/sd208+.ppt ', '');
addItem('Standards PPT', '../presentations/standards.ppt ', '');
addItem('TwinStart PPT', '../presentations/twinstart.ppt ', '');
addItem('Mackwell PPT1', '../presentations/mackwell_slides_1-13.pps ', '');
addItem('Mackwell PPT2', '../presentations/mackwell_slides_13-48.pps ', '');


startMenu('mblf', true, 170, 0, 230, subM);
//addItem('2 & 3 Cell Data', '../Function/ViewBLF.aspx?blfId=6c4e102e-c7ff-4eee-952e-d2bda2ee4ba0', '');
//addItem('2 & 3 Cell SmartStart Data', '../Function/ViewBLF.aspx?blfId=66cad060-3799-4321-929b-723381a19750', '');
//addItem('4 & 5 Cell SmartStart Data', '../Function/ViewBLF.aspx?blfId=1c9eae52-3412-483d-b423-cd1df9a60145', '');
//addItem('3, 4 & 5 Cell HE SmartStart Data', '../Function/ViewBLF.aspx?blfId=645614cf-3742-41c2-b220-169183324ece', '');

//addItem('4 & 5 Cell Data', '../Function/ViewBLF.aspx?blfId=f7d23803-db57-403b-a096-9443aa3350dc', '');
//addItem('4 & 5 Cell Data AutoTest', '../Function/ViewBLF.aspx?blfId=5cdea6c7-5842-446b-9705-29c860521e77', '');
//addItem('FastStart Modules Data', '../Function/ViewBLF.aspx?blfId=e9b5154b-a82b-433d-8d70-90475f364e0e', '');
//addItem('High Efficiency Data', '../Function/ViewBLF.aspx?blfId=5004403d-7211-4490-b8dc-bed543749d14', '');
//addItem('High Efficiency T8 Data', '../Function/ViewBLF.aspx?blfId=244a4ba6-f8a0-4673-9316-233f15da6579', '');
//addItem('T-Five Module Data', '../Function/ViewBLF.aspx?blfId=a4e58049-673d-42f0-a88b-1253afdf0a74', '');
addItem('Advanze-1 Low Profile T-Five modules Data', '../Function/ViewBLF.aspx?blfId=07b3a966-5c7d-49dc-895e-c7445fba4c6c', '');
addItem('Advanze-2 Ultra Low Profile T-Five modules Data', '../Function/ViewBLF.aspx?blfId=b4fb77d0-f478-44b3-ad98-851eb4cbe9a9', '');
addItem('Cerian T8 modules Data', '../Function/ViewBLF.aspx?blfId=082a1a2f-5034-4de0-87e2-b0525f9e9f40','');
addItem('Primian-1 modules Data', '../Function/ViewBLF.aspx?blfId=18071986-a30a-4a9f-a47f-86fbed1589ee', '');
addItem('Primian-2 modules Data', '../Function/ViewBLF.aspx?blfId=751204a3-5053-4a81-b1b1-107f5bd1d2ec', '');

addItem('Primian-3 modules Data for T5', '../Function/ViewBLF.aspx?blfId=83ad1021-c604-4249-8b52-45e0c02847a4', '');

addItem('Relion FastStart modules Data', '../Function/ViewBLF.aspx?blfId=e9b5154b-a82b-433d-8d70-90475f364e0e', '');
addItem('High Output Module Data SR 702/3/4', '../Function/ViewBLF.aspx?blfId=6c4f271b-ec23-45ca-bcdf-132917efb6d1', '');
addItem('High Output Module Data SR763 etc', '../Function/ViewBLF.aspx?blfId=029779c1-8ffa-4246-9ff1-3fd589520896', '');



startMenu('mmodules', true, 170, 0, 260, subM);
addItem('Choose by lamp type', 'mlamptype', 'sm:');
addItem('AutoTest Modules', 'mautotest', 'sm:');

//addItem('Which Module?', '../Function/ViewProduct.aspx?productId=58bbd70b-121b-409e-bc49-3933141f9b2a', '');
addItem('Which LED?', '../Function/ViewProduct.aspx?productId=0b950e7a-0547-4368-aef3-ec36ea1d46cd', '');
//addItem('Non-maintained Modules', '../Function/ViewProduct.aspx?productId=026f41e2-cb40-4c70-8479-370d85076811', '');
//addItem('2 pole Modules', '../Function/ViewProduct.aspx?productId=d3e9f2ba-857d-45bc-9752-50c365ea35fa', '');
//addItem('4 pole Modules', '../Function/ViewProduct.aspx?productId=23dc43d9-d187-417a-82c9-7710baad1e49', '');
//addItem('5 pole Modules', '../Function/ViewProduct.aspx?productId=b639f73d-bd98-4e57-ae32-8a9013a6a97f', '');
//addItem('Standard Modules', '../Function/ViewProduct.aspx?productId=358d9338-db65-4f6a-b0f4-cf8c96b24647', '');

//addItem('T-Five Modules', '../Function/ViewProduct.aspx?productId=92240392-06a9-4628-a8d2-3b40f9288f0c', '');

addItem('Advanze-1 Low Profile T-Five Modules', '../Function/ViewProduct.aspx?productId=05945f6a-b779-4845-9604-a4f9c54417b0', '');
addItem('Advanze-2 Ultra Low Profile T-Five Modules', '../Function/ViewProduct.aspx?productId=307a7c00-51f2-4210-8cce-bc760e8693ac', '');

addItem('Cerian Modules', '../Function/ViewProduct.aspx?productId=d147a823-2180-4070-8f5e-0a130806da80', '');
addItem('Primian-1 Modules', '../Function/ViewProduct.aspx?productId=3939297b-43ef-4c59-8cbe-30cc9daa4108', '');
addItem('Primian-2 Modules', '../Function/ViewProduct.aspx?productId=41386eca-b203-4ef8-b181-e659be1c61b4', '');
addItem('Primian-3 Modules', '../Function/ViewProduct.aspx?productId=9a8a392c-8dcc-4e98-a959-dbed4c98db26', '');
addItem('Relion Modules', '../Function/ViewProduct.aspx?productId=26505a79-8533-49e8-b47b-37d976277596', '');


//addItem('FastStart Amalgam Lamp Modules', '../Function/ViewProduct.aspx?productId=26505a79-8533-49e8-b47b-37d976277596', '');
//addItem('High Efficiency Modules', '../Function/ViewProduct.aspx?productId=b12abdde-b89d-4d29-9f15-7e4018fccaf4', '');
addItem('High Output Modules 2 hour', '../Function/ViewProduct.aspx?productId=f4d6ab8f-a841-403c-966a-b32c59ebb645', '');
addItem('High Output Modules 3 hour', '../Function/ViewProduct.aspx?productId=5f101cd1-fc29-4688-88be-4d976b5df91b', '');
//addItem('XY3 LED Modules', '../Function/ViewProduct.aspx?productId=4a939a78-e593-41dd-998d-cbb046a072cc', '');
//addItem('XYLUX LD Downlight', '../Function/ViewProduct.aspx?productId=d16e4a84-8e8c-4d5c-9126-2780660acffe', '');
//addItem('Specialist Modules', '../Function/ViewProduct.aspx?productId=4c5310ef-8c20-4e30-a12a-3ff96fef767c', '');


startMenu('mautotest', true, 169, 0, 169, subM);
addItem('Which AutoTest Module?', '../Function/ViewProduct.aspx?productId=ae1689fd-b962-4199-a2da-bfe8fedab7b6', '');

//ViewPage.aspx?pageId=3740c52d-5427-47c6-95c7-269bc2daf30f

//ViewProduct.aspx?productId=ae1689fd-b962-4199-a2da-bfe8fedab7b6


//addItem('ADVANZE-2 T-Five Module', '../Function/ViewProduct.aspx?productId=307a7c00-51f2-4210-8cce-bc760e8693ac', '');
//addItem('Amalgam Lamps', '../Function/ViewProduct.aspx?productId=3dd29b73-0fb8-41f8-9383-335eb1ae7198', '');
//addItem('Small Lamps', '../Function/ViewProduct.aspx?productId=64e21b2a-9f41-4f5f-9ac0-cdf70f83dc62', '');

//addItem('AutoTest AT4 SmartStart', '../products/autotest/autotest_smartstart.htm', '');

//addItem('TwinStart Integrated', '../Function/ViewProduct.aspx?productId=7c7c0ecc-f9f8-40dd-bf5a-ca050417b683', '');


//addItem('UniStart Integrated', '../Function/ViewProduct.aspx?productId=9df2a8ac-362a-4e0a-acd1-97c4d9cb6f57', '');
//addItem('Mini Integrated', '../Function/ViewProduct.aspx?productId=8e56a95c-195c-4da6-8572-094db3261c2e', '');
//addItem('12 Volt', '../Function/ViewProduct.aspx?productId=8dd5a6c2-17f8-4a37-ac8a-2ad178b28b78', '');

startMenu('mlamptype', true, 169, 0, 230, subM);

//addItem('T5 4, 6, 8 & 13 watts', '../Function/ViewBLF.aspx?blfId=6e897514-1a45-4cd5-95f6-2422e8ce5ef6', '');
addItem('T5 4, 6, 8 & 13 watts', '../Function/ViewBLF.aspx?blfId=f4cfa501-8aaf-4d77-ace6-e707d98db6c1', '');

//addItem('T5 HE 14, 21, 28, 35 ', '../Function/ViewBLF.aspx?blfId=780357a0-8c59-4024-8ec0-cd390ebbdb4a', '');
addItem('T5 HE 14, 21, 28, 35 watts', '../Function/ViewBLF.aspx?blfId=3bf72699-fdf4-40d3-90bd-787d092485d3', '');

//addItem('T5 HO 24, 39, 49, 54, 80 watts', '../Function/ViewBLF.aspx?blfId=60d78f67-5893-47a6-94c6-8f237eae2fbb', '');//
addItem('T5 HO 24, 39, 49, 54, 80 watts ', '../Function/ViewBLF.aspx?blfId=5ae1e3db-61c1-48be-8094-2e1aa7b822f3', '');

//addItem('T5 Circular 22, 40, 55, 60 watts', '../Function/ViewBLF.aspx?blfId=c1ee807a-e318-4b42-85f8-4e157d143c7e', '');
addItem('T5 Circular 22, 40, 55 watts ', '../Function/ViewBLF.aspx?blfId=799fb57b-a625-4620-aa66-9f5efead0ad7', '');

//addItem('Low Profile Modules for T5 lamps', '../Function/ViewBLF.aspx?blfId=d08fb968-68ad-4fd5-b145-c643b94bd620', '');

//addItem('T8 18, 36, 58 & 70 watts', '../Function/ViewBLF.aspx?blfId=a9d62f68-7a6e-410b-83df-0116b847f588', '');
addItem('T8 18, 36, 58 & 70 watts ','../Function/ViewBLF.aspx?blfId=cb6b094e-52f0-43a5-935a-130792e37110', '');

//addItem('High Output Lamps', '../Function/ViewBLF.aspx?blfId=6c4f271b-ec23-45ca-bcdf-132917efb6d1', '');

//Function/ViewBLF.aspx?blfId=5ae1e3db-61c1-48be-8094-2e1aa7b822f3


addItem('Compact Lamps', 'mcompact', 'sm:');

startMenu('mcompact', true, 0,22, 230, subM);
//addItem('SEL 5, 7, 9 & 11 watts', '../Function/ViewBLF.aspx?blfId=b0a15088-9a98-4616-baeb-edb66dac7065', '');
addItem('SEL 5, 7, 9 & 11 watts', '../Function/ViewBLF.aspx?blfId=de92f4ad-06ee-4225-9ae6-b4d16fa91ee2', '');

//addItem('DEL 13, 18 & 26 watts', '../Function/ViewBLF.aspx?blfId=a36a255e-fccb-4ec0-b261-e8cd0f84a3bb', '');
addItem('DEL 13, 18 & 26 watts', '../Function/ViewBLF.aspx?blfId=265cba70-118c-47d4-baed-2780e235c148', '');

//addItem('TEL 13, 18, 26, 32, & 42 watts', '../Function/ViewBLF.aspx?blfId=fbd4e321-14f2-40c0-91e4-b986ae9c796c', '');
addItem('TEL 13, 18, 26, 32, & 42 watts', '../Function/ViewBLF.aspx?blfId=defbb557-3710-4728-b1da-bf4075ad7516', '');

//addItem('TC-L 18 - 80 watts', '../Function/ViewBLF.aspx?blfId=9e0ca947-671c-46e1-abd6-afbcc67fc21f','');
addItem('TC-L 18 - 80 watts', '../Function/ViewBLF.aspx?blfId=7f8a8665-43bc-4156-b3a5-fad1f54cbaa7','');

//addItem('TC-L 18-80 watts with AutoTest', '../Function/ViewBLF.aspx?blfId=ca1ba831-017d-42fb-a611-5a1d57f7741b','');

//addItem('2D 10 - 55 watts', '../Function/ViewBLF.aspx?blfId=a6740241-92a9-46bc-886c-fa314331fecc', '');
addItem('2D 10 - 55 watts', '../Function/ViewBLF.aspx?blfId=efb60600-2a66-49d6-9b7f-0a110d31755d', '');

//addItem('F 18, 24 & 36 watts', '../Function/ViewBLF.aspx?blfId=31cf7047-2efb-4a7d-8b22-b8702fca225a', '');
addItem('F 18, 24 & 36 watts', '../Function/ViewBLF.aspx?blfId=4c48259a-9052-4ab4-a1f0-358c333b9cdb', '');






startMenu('mintegrated', true, 170, 0, 170, subM);
addItem('Choose by lamp type', 'mlamptype2', 'sm:');
addItem('Which Integrated Module?', '../Function/ViewProduct.aspx?productId=4c87a4b8-4bd2-4cdd-a418-1d08e019a50b', '');
addItem('Micro Integrated Module', '../Function/ViewProduct.aspx?productId=6d264ae6-8767-4d9f-8d85-489ceeb4637c', '');
//addItem('Mini Integrated Module', '../Function/ViewProduct.aspx?productId=c803da09-caa2-43b5-b8f0-939abafef341', '');
//addItem('open PCB Mini Integrated Module', '../Function/ViewProduct.aspx?productId=3ac8ce38-c4d1-410a-8fa8-36be5a203325', '');
addItem('UniStart Integrated Mod T5C', '../Function/ViewProduct.aspx?productId=9901305a-2e06-4ab1-8a96-11488cb21b34', '');
addItem('UniStart Integrated Mod SEL', '../Function/ViewProduct.aspx?productId=5358e36c-3e4d-4007-bd75-322abce23b74', '');
addItem('UniStart Integrated Mod TEL', '../Function/ViewProduct.aspx?productId=9df2a8ac-362a-4e0a-acd1-97c4d9cb6f57', '');

//addItem('UniStart Integrated Mod TEL', '../Function/ViewProduct.aspx?productId=5358e36c-3e4d-4007-bd75-322abce23b74, '');

//ViewProduct.aspx?productId=5358e36c-3e4d-4007-bd75-322abce23b74

addItem('TwinStart Integrated Module', '../Function/ViewProduct.aspx?productId=d0a52c0b-7771-4dac-b612-92dfd8c66515', '');
//addItem('Q-Start Integrated Module', '../Function/ViewProduct.aspx?productId=c1eef4da-5aad-4c51-a55b-5e9be7c75d48', '');
addItem('8 watt Integrated Module', '../Function/ViewProduct.aspx?productId=18e714bf-e172-4439-9532-520a70fdc667', '');
//addItem('LED Driver-Charger', '../Function/ViewProduct.aspx?productId=92a77239-b9a0-43e4-885e-051ead882cda', '');


startMenu('mlamptype2', true, 169, 0, 169, subM);
addItem('T5, SEL, 2D 6-10 watts', '../Function/ViewBLF.aspx?blfId=2da991dc-2466-4425-a483-15d5e3e3c631', '');
//addItem('T5 HE & HO 14-54 watts, 55watt TC-L', '../Function/ViewBLF.aspx?blfId=ae79e552-999b-4e46-b853-c10ae2592de6', '');
addItem('T5 Circular 22, 40, 55 watts', '../Function/ViewBLF.aspx?blfId=4e2cb636-a0ba-4c54-856c-609c2f6a7d54', '');
addItem('DEL 10, 13, 18 & 26 watts', '../Function/ViewBLF.aspx?blfId=79560a14-274a-48da-a53b-433a05fbf7ef', '');


addItem('TEL 13, 18, 26, 32 & 42 watts', '../Function/ViewBLF.aspx?blfId=2acc7b63-64aa-4a27-97ac-0cc6a9af6edd', '');

addItem('TC-L 18 watts', '../Function/ViewBLF.aspx?blfId=efe5690d-5aca-4834-b81f-9a4515fe99d5', '');

//addItem('2D 10, 16, 21, 28 & 38 watts', '../Function/ViewBLF.aspx?blfId=44680c52-0a12-4a03-85f7-df0ed30a949d', '');

startMenu('mbatteries', true, 170, 0, 170, subM);
addItem('NiCd and NiMH Batteries', '../Function/ViewProduct.aspx?productId=e71ddcf4-dc0a-427f-b6e3-d881cda7b69c', '');
//addItem('Which Battery?', '../Function/ViewProduct.aspx?productId=e71ddcf4-dc0a-427f-b6e3-d881cda7b69c', '');
addItem('Battery Box', '../Function/ViewProduct.aspx?productId=de495702-c871-4399-8962-7c8ff2ce2ea6', '');
addItem('NiCd Batteries', '../Function/ViewProduct.aspx?productId=7740d615-6951-4407-88e6-e82e24a0b1fb', '');
//addItem('NiCd C Cells', '../Function/ViewProduct.aspx?productId=79aaa176-3785-421c-9229-021679fb910b', '');
addItem('NiCd Sub C Cells', '../Function/ViewProduct.aspx?productId=f250ebdc-d787-442b-a843-82776dc7a59d', '');
addItem('NiMH Batteries', '../Function/ViewProduct.aspx?productId=72576500-0537-4920-ae4b-33baa365d88f', '');

//addItem('NiCd and NiMH Batteries', '../Function/ViewProduct.aspx?productId=2b488fe1-f132-4f31-a479-7ca15275434a', '');

//Function/ViewProduct.aspx?productId=e71ddcf4-dc0a-427f-b6e3-d881cda7b69c



//Function/ViewProduct.aspx?productId=e71ddcf4-dc0a-427f-b6e3-d881cda7b69c



startMenu('mmore', true, 170, 0, 170, subM);
addItem('Conversions', 'mconversions', 'sm:');
addItem('12 Volt Systems', 'mvolt', 'sm:');
addItem('Relays', '../Function/ViewProduct.aspx?productId=5d6d3ae2-9a58-406c-b8c5-58a239213b1b', '');
addItem('Discharge Sensor', '../Function/ViewProduct.aspx?productId=094dcc1a-2916-4b94-ab42-0313f3705c67', '');

startMenu('mconversions', true, 169, 0, 169, subM);

addItem('Multi Box Conversions', '../Function/ViewProduct.aspx?productId=a914a4dd-8435-46dc-afd8-f83cf0d42959', '');

//addItem('Conversions', '../Function/ViewProduct.aspx?productId=a51633b0-50c9-4b95-80dd-05859b3073aa', '');
addItem('Conversion Kits', '../Function/ViewProduct.aspx?productId=81379ec5-6fff-4664-a9dc-426abe7549f6', '');
//addItem('Conversion Boxes', '../Function/ViewProduct.aspx?productId=f8921726-75fe-48be-84e1-703fa33bff25', '');

//addItem('Boxes with Emergency Gear', '../Function/ViewProduct.aspx?productId=36ca1be7-2748-4f81-8c37-eb0192a69ab7', '');
//addItem('Boxes with Mains and Emergency Gear', '../Function/ViewProduct.aspx?productId=4f72e6ad-ce45-4788-99a7-3fc0996d54a4', '');
//addItem('FastStart Remote conversion boxes', '../Function/ViewProduct.aspx?productId=3bf73aca-1b86-435e-bd61-9cd66504bf32', '');
//addItem('Lift Boxes', '../Function/ViewProduct.aspx?productId=c7e2f98c-ef08-435a-a667-5f4b07da0b4a', '');
//addItem('Slim Remote Conversion Boxes', '../Function/ViewProduct.aspx?productId=4fa995fc-3cdd-4334-989f-3d4dcf304c1e', '');

startMenu('mvolt', true, 169, 0, 169, subM);
//addItem('Which 12 Volt Unit?', '../Function/ViewProduct.aspx?productId=9958dcb5-e81b-4519-b8d7-f2701de0a0e0', '');
//addItem('Module for NiCd Batteries', '../Function/ViewProduct.aspx?productId=19095fb8-95a3-45a9-acef-b300bed4bd8f', '');
addItem('Module for Lead Acid Batteries', '../Function/ViewProduct.aspx?productId=4995af4b-d0e3-4b8d-8abb-a7a8446b83a2', '');
addItem('Full Output Unit', '../Function/ViewProduct.aspx?productId=35ce5a3d-4d7a-4b82-a0da-d909eca87cc7', '');
//addItem('Low Output Unit', '../Function/ViewProduct.aspx?productId=51007279-13a1-4777-846e-db8ce588fec3', '');
//addItem('Slim Low Output Unit', '../Function/ViewProduct.aspx?productId=f30fad64-c6aa-43f0-8dd2-9d0145c32128', '');
//addItem('Slim NiCd Unit', '../Function/ViewProduct.aspx?productId=21768fc5-3f6c-4f83-96d0-8230bad323d3', '');
addItem('TwinSpot Unit', '../Function/ViewProduct.aspx?productId=19d61b69-53dd-4f15-9781-e4780854ac77', '');

}





// CREATE ANOTHER MENU OBJECT here if you want multiple menus on a page, or you can just
// duplicate this entire file and rename 'pMenu' to something else.
// Every menu object MUST have a menu named 'root' in it, as that's always visible.

//var anotherMenu = new PopupMenu('anotherMenu');
//with (anotherMenu)
//{
// startMenu('root', .....);
// ... make menus here ...
//}




// ******************** MENU EFFECTS ********************
//
// Now you've created a basic menu object, you can add optional effects like borders and
// shadows to specific menus. You can remove this section entirely if you want, the
// functions called are found at the bottom of this file.



// BORDER: Added to all menus in a named object using a specified ItemStyle. The syntax is:
//  addMenuBorder(menuObject, ItemStyle,
//   opacity of border, 'border colour', border width, 'padding colour', padding width);
// Opacity is a number from 0 to 100, or null for solid colour (just like the ItemStyles).

addMenuBorder(pMenu, window.subBlank,
 null, '#666666', 1, '#CCCCDD', 2);



// DROPSHADOW: added to specific ItemStyles again. The syntax is similar, but later on you
// pass arrays [...] for each layer of the shadow you want. I've used two grey layers
// here, but you can use as many or as few as you want. The syntax for the layers is:
//  [opacity, 'layer colour', X offset, Y offset, Width Difference, Height difference]
// Opacity is from 0 to 100 (or null to make it solid), and the X/Y offsets are the
// distance in pixels from the menu's top left corner to that shadow layer's corner.
// The width/height differences are added or subtracted to the current menu size, for
// instance the first layer of this shadow is 4px narrower and shorter than the menu
// it is shadowing.

//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]);



// ANIMATION SETTING: We add this to the 'pMenu' menu object for supported browsers.
// IE4/Mac and Opera 5/6 don't support clipping, and Mozilla versions prior to 1.x (such as
// Netscape 6) are too slow to support it, so I'm doing some browser sniffing.
// If you don't want animation, delete this entirely, and the menus will act normally.
// Change the speed if you want... it's the last number, between -100 and 100, and is
// defined as the percentage the animation moves each frame (defaults are 10 and 15).

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)');

 // Add animation to other menu objects like this...
 //anotherMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
 //anotherMenu.hideMenu = new Function('mN','menuAnim(this, mN, -15)');
}







// ******************** FUNCTIONS CALLED BY THE EFFECTS SECTION ********************

// These can be deleted if you're not using them. Alternatively, if you're using several menu
// data files, you may want to move them to the "core" script file instead.



// This is the "positioning from page anchors" code used by the advanced positioning expressions.
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}}
 else if (e && e.focus && e.href && this.MS && /Mac/.test(navigator.platform))
 {
  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};
};




// Animation:
//
// Each menu object you create by default shows and hides its menus instantaneously.
// However you can override this behaviour with custom show/hide animation routines,
// as we have done in the "Menu Effects" section. Feel free to edit this, or delete
// this entire function if you're not using it. Basically, make functions to handle
// menuObj.showAnim() and .hideAnim(), both of which are passed menu names.
//
// Customisers: My lyr.clip() command gets passed the parameters (x1, y1, x2, y2)
// so you might want to adjust the direction etc. Oh, and I'm adding 2 to the dimensions
// to be safe due to different box models in some browsers.
// Another idea: add some if/thens to test for specific menu names...?

function menuAnim(menuObj, menuName, dir)
{
 // The array index of the named menu (e.g. 'mFile') in the menu object (e.g. 'pMenu').
 var mD = menuObj.menu[menuName][0];
 // Add timer and counter variables to the menu data structure, we'll need them.
 if (!mD.timer) mD.timer = 0;
 if (!mD.counter) mD.counter = 0;

 with (mD)
 {
  // Stop any existing animation.
  clearTimeout(timer);

  // If the litNow() array doesn't show this menu as lit, and we're still showing it,
  // force a quick hide (this stops miscellaneous timer errors).
  //if (dir>0 && !menuObj.litNow[menuObj.menu[menuName][0].parentMenu]) dir = -100;

  // If the layer doesn't exist (cross-frame navigation) quit.
  if (!lyr || !lyr.ref) return;
  // This next line is not strictly necessary, but it stops the one-in-a-hundred menu that
  // shows and doesn't hide on very quick mouseovers.
  if (!visNow && dir>0) dir = 0-dir;
  // Show the menu if that's what we're doing.
  if (dir>0) lyr.vis('visible');
  // Also raise showing layers above hiding ones.
  lyr.sty.zIndex = dir>0 ? mD.zIndex + 1 : 1001;

  // Alpha fade in IE5.5+. Mozilla's opacity (pre-v1.7) isn't well suited as it's an inheritable
  // property rather than a block-level filter, and it's slow, but uncomment and try it perhaps.
  // WARNING: This looks funny if you're mixing opaque and translucent items e.g. solid menus
  // with dropshadows. If you're going to use it, either disable dropshadows or set the opacity
  // values for your items to numbers instead of null.
  //if (isIE && window.createPopup) lyr.alpha(counter&&(counter<100) ? counter : null);

  // Clip the visible area. The syntax is:   lyr.clip(left, top, right, bottom);
  // As you can see in these examples, three are static at either zero or the edge of a menu item,
  // and either the top or bottom is a complicated formula based on the 'counter' variable which
  // counts from 0 to 100 and back again; this give a nice accelerating-sliding animation.
  // Feel free to experiment with your own animations, here are some samples (use one only):

  // Straightforward downwards clipping animation (default setting):
  lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );
  // If you want, comment out the above line and enable this one to animate bottom-upwards:
  //lyr.clip(0, (menuH+2)-(menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75), menuW+2, menuH+2);
  // Another alternative: Move+clip sliding animation. Looks really cool :).
  //if (!counter) mD.origY = lyr.y();
  //var newY = (menuH+2)-(menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75);
  //lyr.clip(0, newY, menuW+2, menuH+2);
  //lyr.y(mD.origY - newY);

  // Increment the counter and if it hasn't reached the end (counter is 0% or 100%),
  // set the timer to call the animation function again in 40ms to contine the animation.
  // Note that we hide the menu div on animation end in that direction.
  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);
 }
};




// Borders and Dropshadows:
//
// Here's the menu border and dropshadow functions we call above. Edit ot delete if you're
// not using them. Basically, they assign a string to pMenu.menu.menuName[0].extraHTML, which
// is written to the document with the menus as they are created -- the string can contain
// anything you want, really. They also adjust the menu dimensions and item positions
// to suit. Dig out the Object Browser script and open up "pMenu" for more info.

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;
 }
};
