// Syntaxes: *** START EDITING HERE, READ THIS SECTION CAREFULLY! ***
//
// menu[menuNumber][0] = new Menu(Vertical menu? (true/false), 'popout indicator', left, top,
// width, 'mouseover colour', 'background colour', 'border stylesheet', 'text stylesheet');
//
// Left and Top are measured on-the-fly relative to the top-left corner of its trigger, or
// for the root menu, the top-left corner of the page.
//
// menu[menuNumber][itemNumber] = new Item('Text', 'URL', 'target frame', length of menu item,
//  additional spacing to next menu item, number of target menu to popout);
//
// If no target menu (popout) is desired, set it to 0. Likewise, if your site does not use
// frames, pass an empty string as a frame target.
//
// Something that needs explaining - the Vertical Menu setup. You can see most menus below
// are 'true', that is they are vertical, except for the first root menu. The 'length' and
// 'width' of an item depends on its orientation -- length is how long the item runs for in
// the direction of the menu, and width is the lateral dimension of the menu. Just look at
// the examples and tweak the numbers, they'll make sense eventually :).

var menu = new Array();

// Default colours passed to most menu constructors (just passed to functions, not
// a global variable - makes things easier to change later in bulk).
var defOver = '#F19900', defBack = '#F19960';

// Default 'length' of menu items - item height if menu is vertical, width if horizontal.
var defHeight = 25;
var defSWidth = 120;
var defTWidth = 142
var defMWidth = 165;
var defXLWidth = 210;

// Menu 0 is the special, 'root' menu from which everything else arises.
menu[0] = new Array();
// A non-vertical menu with a few different colours and no popout indicator, as an example.
// *** MOVE ROOT MENU AROUND HERE ***  it's positioned at (10, 85) and is 25px high now.
menu[0][0] = new Menu(false, '', 10, 75, defHeight, '#0099CC', '#333366', '', 'itemText');
menu[0][1] = new Item('  Products', '#', '', defTWidth, 0, 1,'#0099CC');
menu[0][2] = new Item('  Fabrication', '#', '', defTWidth, 0, 4,'#0099CC');
menu[0][3] = new Item('  Projects', '#', '', defTWidth, 0, 11,'#0099CC');
menu[0][4] = new Item('  Services', '#', '', defTWidth, 0, 2,'#0099CC');
menu[0][5] = new Item('  Downloads', '#', '', defTWidth, 0, 3,'#0099CC');
menu[0][6] = new Item('Contact', 'http://www.flexej.co.uk/content/Contact.htm', '', defTWidth, 0, 0,'#0099CC');
menu[0][7] = new Item('  Home', '#', '', defTWidth, 0, 5,'#0099CC');



// Products menu.
menu[1] = new Array();
menu[1][0] = new Menu(true, '>', 0, defHeight+5, defXLWidth, '#333366', '#0099CC', '', 'itemText');
menu[1][1] = new Item('HVAC Air and Dirt', '#', '', defHeight, 0, 9,'');
menu[1][2] = new Item('Hose', '#', '', defHeight, 0, 8,'');
menu[1][3] = new Item('Metal Expansion Joints', '#', '', defHeight, 0, 10,'');
menu[1][4] = new Item('Rubber Expansion Joints', '#', '', defHeight, 0, 6,'');
menu[1][5] = new Item('Fabric Expansion Joints', 'http://www.flexej.co.uk/content/P6.htm', '', defHeight, 0, 0,'');
menu[1][6] = new Item('SwiftFit Piping', 'http://www.flexej.co.uk/content/P7.htm', '', defHeight, 0, 0,'');
menu[1][7] = new Item('FCC Valves', 'http://www.flexej.co.uk/content/P18.htm', '', defHeight, 0, 0,''); 

// Services menu.
menu[2] = new Array();
menu[2][0] = new Menu(true, '>', 0, defHeight+5, defMWidth, '#333366', '#0099CC', '', 'itemText');
menu[2][1] = new Item('Design & Pipe Stress', 'http://www.flexej.co.uk/content/S1.htm', '', defHeight, 0, 0,'');
menu[2][2] = new Item('Field Services', '#', '', defHeight, 0, 7,'');

// Downloads menu
menu[3] = new Array();
menu[3][0] = new Menu(true, '>', 0, defHeight+5, defXLWidth, '#333366', '#0099CC', '', 'itemText');
menu[3][1] = new Item('FlexEJ Complete Catalogue', 'http://www.flexej.co.uk/content/D12.htm', '', defHeight, 0, 0,'');
menu[3][2] = new Item('HVAC FlexEJet', 'http://www.flexej.co.uk/content/D9.htm', '', defHeight, 0, 0,'');
menu[3][3] = new Item('HVAC Spirovent Air+Dirt', 'http://www.flexej.co.uk/content/D10.htm', '', defHeight, 0, 0,'');
menu[3][4] = new Item('Hose', 'http://www.flexej.co.uk/content/D8.htm', '', defHeight, 0, 0,'');
menu[3][5] = new Item('Rubber EJ Elaflex', 'http://www.flexej.co.uk/content/D1.htm', '', defHeight, 0, 0,'');
menu[3][6] = new Item('Rubber EJ SafeTech', 'http://www.flexej.co.uk/content/D2.htm', '', defHeight, 0, 0,'');
menu[3][7] = new Item('Rubber EJ SeniorFlex', 'http://www.flexej.co.uk/content/D3.htm', '', defHeight, 0, 0,'');
menu[3][8] = new Item('SwiftFit Piping', 'http://www.flexej.co.uk/content/D4.htm', '', defHeight, 0, 0,'');
menu[3][9] = new Item('Metal EJ FlexEJ Standard', 'http://www.flexej.co.uk/content/D11.htm', '', defHeight, 0, 0,'');
menu[3][10] = new Item('Metal EJ SF Pathway', 'http://www.flexej.co.uk/content/D5.htm', '', defHeight, 0, 0,'');
menu[3][11] = new Item('Fabric EJ SF Pathway', 'http://www.flexej.co.uk/content/D5.htm', '', defHeight, 0, 0,'');
menu[3][12] = new Item('Technical Resources', 'http://www.flexej.co.uk/content/D6.htm', '', defHeight, 0, 0,'');
menu[3][13] = new Item('FlexEJ Commercial', 'http://www.flexej.co.uk/content/D7.htm', '', defHeight, 0, 0,'');
 
// Links menu
menu[4] = new Array();
menu[4][0] = new Menu(true, '>', 0, defHeight+5, defXLWidth, '#333366', '#0099CC', '', 'itemText');
menu[4][1] = new Item('Manifolds & Piping Sets', 'http://www.flexej.co.uk/content/L1.htm', '', defHeight, 0, 0,'');
menu[4][2] = new Item('Pressure Vessels', 'http://www.flexej.co.uk/content/L2.htm', '', defHeight, 0, 0,'');
menu[4][3] = new Item('Strainers', 'http://www.flexej.co.uk/content/L3.htm', '', defHeight, 0, 0,'');

// Home menu
menu[5] = new Array();
menu[5][0] = new Menu(true, '>', 0, defHeight+5, defTWidth, '#333366', '#0099CC', '', 'itemText');
menu[5][1] = new Item('Home', 'http://www.flexej.co.uk/index.htm', '', defHeight, 0, 0,'');
menu[5][2] = new Item('HVAC', 'http://www.flexej.co.uk/content/H1.htm', '', defHeight, 0, 0,'');
menu[5][3] = new Item('Refinery', 'http://www.flexej.co.uk/content/H2.htm', '', defHeight, 0, 0,'');
menu[5][4] = new Item('Flexibles', 'http://www.flexej.co.uk/content/H3.htm', '', defHeight, 0, 0,'');


// Rubber EJs popout
menu[6] = new Array();
menu[6][0] = new Menu(true, '>', defXLWidth+5, 0, defMWidth, '#333366', '#0099CC', '', 'itemText');
menu[6][1] = new Item('Overview', 'http://www.flexej.co.uk/content/P2.htm', '', defHeight, 0, 0,'');
menu[6][2] = new Item('Elaflex', 'http://www.flexej.co.uk/content/P3.htm', '', defHeight, 0, 0,'');
menu[6][3] = new Item('SafeTech', 'http://www.flexej.co.uk/content/P4.htm', '', defHeight, 0, 0,'');
menu[6][4] = new Item('SeniorFlex', 'http://www.flexej.co.uk/content/P5.htm', '', defHeight, 0, 0,'');

// Field Services popout
menu[7] = new Array();
menu[7][0] = new Menu(true, '>', defMWidth+5, 0, defMWidth, '#333366', '#0099CC', '', 'itemText');
menu[7][1] = new Item('Overview', 'http://www.flexej.co.uk/content/S2.htm', '', defHeight, 0, 0,'');
menu[7][2] = new Item('Engineering', 'http://www.flexej.co.uk/content/S3.htm', '', defHeight, 0, 0,'');
menu[7][3] = new Item('In Situ Revamp', 'http://www.flexej.co.uk/content/S4.htm', '', defHeight, 0, 0,''); 
menu[7][4] = new Item('Emergency Repair', 'http://www.flexej.co.uk/content/S5.htm', '', defHeight, 0, 0,'');

// Hose popout
menu[8] = new Array();
menu[8][0] = new Menu(true, '>', defXLWidth+5, 0, defXLWidth, '#333366', '#0099CC', '', 'itemText');
menu[8][1] = new Item('Overview', 'http://www.flexej.co.uk/content/P10.htm', '', defHeight, 0, 0,'');
menu[8][2] = new Item('Rubber Core HVAC', 'http://www.flexej.co.uk/content/P11.htm', '', defHeight, 0, 0,'');
menu[8][3] = new Item('Metallic Core', 'http://www.flexej.co.uk/content/P12.htm', '', defHeight, 0, 0,'');
menu[8][4] = new Item('Metallic Core Bulk', 'http://www.flexej.co.uk/content/P20.htm', '', defHeight, 0, 0,'');
menu[8][5] = new Item('Composite', 'http://www.flexej.co.uk/content/P13.htm', '', defHeight, 0, 0,'');

// HVAC Air and Dirt popout
menu[9] = new Array();
menu[9][0] = new Menu(true, '>', defXLWidth+5, 0, defXLWidth, '#333366', '#0099CC', '', 'itemText');
menu[9][1] = new Item('Overview', 'http://www.flexej.co.uk/content/P14.htm', '', defHeight, 0, 0,'');
menu[9][2] = new Item('Spirovent Air+Dirt Separator', 'http://www.flexej.co.uk/content/P19.htm', '', defHeight, 0, 0,'');
menu[9][3] = new Item('Sample Cooling Pot', 'http://www.flexej.co.uk/content/P15.htm', '', defHeight, 0, 0,'');
menu[9][4] = new Item('Dosing Pot', 'http://www.flexej.co.uk/content/P16.htm', '', defHeight, 0, 0,'');

// Metal popout
menu[10] = new Array();
menu[10][0] = new Menu(true, '>', defXLWidth+5, 0, defXLWidth, '#333366', '#0099CC', '', 'itemText');
menu[10][1] = new Item('Overview', 'http://www.flexej.co.uk/content/P1.htm', '', defHeight, 0, 0,'');
menu[10][2] = new Item('Senior Flexonics Pathway ', 'http://www.flexej.co.uk/content/P21.htm', '', defHeight, 0, 0,'');
menu[10][3] = new Item('FlexEJ Standard', 'http://www.flexej.co.uk/content/P22.htm', '', defHeight, 0, 0,'');

// Projects menu
menu[11] = new Array();
menu[11][0] = new Menu(true,'>', 0, defHeight+5, defMWidth, '#333366', '#0099CC', '', 'itemText');
menu[11][1] = new Item('Overview', 'http://www.flexej.co.uk/content/P8.htm', '', defHeight, 0, 0,'');
menu[11][2] = new Item('Adriatic LNG ', 'http://www.flexej.co.uk/content/P23.htm', '', defHeight, 0, 0,'');
menu[11][3] = new Item('Reliance FCC', 'http://www.flexej.co.uk/content/P24.htm', '', defHeight, 0, 0,'');