<!--
<!-- Original:  Angus Turnbull -->
<!-- Web Site:  http://gusnz.cjb.net -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

// 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 = '#000033', defBack = '#000033';

// Default 'length' of menu items - item height if menu is vertical, width if horizontal.
var defLength = 22;

// 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 (5, 0) and is 17px high now.
menu[0][0] = new Menu(false, '', 100, 5, 30, '#000033', '#000033', '', 'itemText');
// Notice how the targets are all set to nonzero values...
// The 'length' of each of these items is 40, and there is spacing of 10 to the next item.
// Most of the links are set to '#' hashes, make sure you change them to actual files.
menu[0][1] = new Item('  Home', '/index.htm', '', 40, 10, 0);
menu[0][2] = new Item('  About us', '/company.htm', '', 58, 10, 0);
// An example of a link with a target frame/window as well...
menu[0][3] = new Item('  Products', '#', '', 58, 10, 4);
menu[0][4] = new Item('  Product by code', '#', '', 100, 10, 5);
//--menu[0][6] = new Item('  Email your order', '#', '', 100, 10, 6);
menu[0][5] = new Item('  Contact us', '/contact.htm', '', 70, 10, 0);
menu[0][6] = new Item('  Brochure download', '/cat', '', 130, 10, 0);


menu[1] = new Array();
// The File menu is positioned 0px across and 22 down from its trigger, and is 80 wide.
// All text in this menu has the stylesheet class 'item' -- see the <style> section above.
// We've passed a 'greater-than' sign '>' as a popout indicator. Try an image...?
menu[1][0] = new Menu(true, '>', 0, 17, 80, defOver, defBack, 'itemBorder', 'itemText');
menu[1][1] = new Item('Open', '#', '', defLength, 0, 0);
//--menu[1][2] = new Item('Save', '#', '', defLength, 0, 0);
// Non-zero target means this will trigger a popout -- menu[4] which is the 'Reopen' menu.
//--menu[1][3] = new Item('Reopen', '#', '', defLength, 0, 2);
//--menu[1][4] = new Item('Exit', '#', '', defLength, 0, 0);

// "About Us" menu.
menu[2] = new Array();
menu[2][0] = new Menu(true, '>', 0, 22, 120, defOver, defBack, 'itemBorder', 'itemText');
menu[2][1] = new Item('Introduction', '/company.htm', '', defLength, 0, 0);
menu[2][2] = new Item('The Office', '/office.htm', '', defLength, 0, 0);
menu[2][3] = new Item('The Factory', '/factory.htm', '', defLength, 0, 0);

// "Our Service" menu
menu[3] = new Array();
menu[3][0] = new Menu(true, '>', 0, 22, 130, defOver, defBack, 'itemBorder', 'itemText');
menu[3][1] = new Item('Overview', '/service.htm', '', defLength, 0, 0);
menu[3][2] = new Item('Point of Sale', '/pos.htm', '', defLength, 0, 0);
//--menu[3][3] = new Item('Sales', '/sales.htm', '', defLength, 0, 0);
//--menu[3][4] = new Item('Service', '', '', defLength, 0, 0);

// "Products" menu
menu[4] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[4][0] = new Menu(true, '>', 0, 22, 270, defOver, defBack, 'itemBorder', 'itemText');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[4][1] = new Item('National Contract', '/NationalContract/natcont.htm', '', defLength,0, 0);
menu[4][2] = new Item('Ambulance equipment', '/Ambulance/Ambulance.htm', '', defLength,0, 0);
menu[4][3] = new Item('Bedside lockers', '/BedsideLockers/bedsidelockers.htm', '', defLength, 0, 0);
menu[4][4] = new Item('Clothes/Staff lockers', '/stafflockers/lockers.htm', '', defLength, 0, 0);
menu[4][5] = new Item('Cylinder storage', '/CylinderStorage/cylinderstorage.htm', '', defLength, 0, 0);
menu[4][6] = new Item('Dispensers', '/Dispencers/dispencers.htm', '', defLength, 0, 0);
menu[4][7] = new Item('Dressing trolleys', '/Dressing/dressing.htm', '', defLength, 0, 0);
menu[4][8] = new Item('Drip stands', '/DripStands/dripstands.htm', '', defLength, 0, 0);
menu[4][9] = new Item('Drug cabinets', '/DripStands/dripstands.htm', '', defLength, 0, 6);
menu[4][10] = new Item('Drug storage/transportation', '/drugstor/drugstor.htm', '', defLength, 0, 0);
menu[4][11] = new Item('Examination couches', '/couch/couch.htm', '', defLength, 0, 0);
menu[4][12] = new Item('Key storage', '/keystor/keystor.htm', '', defLength, 0, 0);
menu[4][13] = new Item('Linen trolleys', '/linen/linen.htm', '', defLength, 0, 0);
menu[4][14] = new Item('Medical records', '/medrec/medrec.htm', '', defLength, 0, 0);
menu[4][15] = new Item('Mental Health', '/mentalhealth/mentalhealth.htm', '', defLength,0, 0);
menu[4][16] = new Item('Miscellaneous', '/misc/misc.htm', '', defLength,0, 0);
menu[4][17] = new Item('Overbed tables', '/OverbedTables/overbed.htm', '', defLength, 0, 0);
menu[4][18] = new Item('Patients own drug cabinets/self administration', '/pods/pods.htm', '', defLength, 0, 0);
menu[4][19] = new Item('Pharmacy', '/pharmacy/pharmacy.htm', '', defLength, 0, 0);
menu[4][20] = new Item('Resuscitation trolleys', '/resuscitation/resus.htm', '', defLength, 0, 0);
menu[4][21] = new Item('Storage trolleys', '/stortrol/stor.htm', '', defLength, 0, 0);
menu[4][22] = new Item('Theatre equipment', '/theatre/theatre.htm', '', defLength, 0, 0);
menu[4][23] = new Item('Waste equipment', '/waste/waste.htm', '', defLength, 0, 0);


// Order Forms popout
menu[5] = new Array();
// Leftwards popout with a negative x and y relative to its trigger.
menu[5][0] = new Menu(true, '>', 0, 22, 130, defOver, defBack, 'itemBorder', 'itemText');
menu[5][1] = new Item('Coming soon', '#', '', defLength,0, 0);
//--menu[5][2] = new Item('Show order form', '#', '', defLength,0, 0);
//--menu[5][3] = new Item('Print order form', '#', '', defLength, 0, 0);

menu[6] = new Array();
menu[6][0] = new Menu(true, '>', 270, 0, 200, defOver, defBack, 'itemBorder', 'itemText');
menu[6][1] = new Item('Controlled drug cabinets', '/drugcabs/contdrug.htm', '', defLength,0, 0);
menu[6][2] = new Item('Drug strorage cabinets', '/drugcabs/drugstor.htm', '', defLength,0, 0);


menu[7] = new Array();
menu[7][0] = new Menu(true, '>', 0, 22, 135, defOver, defBack, 'itemBorder', 'itemText');
menu[7][1] = new Item('Sales', '#', '', defLength,0, 0);
//--menu[7][2] = new Item('Technical enquiries', '#', '', defLength,0, 0);
//--menu[7][3] = new Item('Customer service', '#', '', defLength, 0, 0);
//--menu[7][4] = new Item('Accounts', '#', '', defLength, 0, 0);

// "Roller Blinds" menu
menu[8] = new Array();
menu[8][0] = new Menu(true, '>', 120, 0, 150, defOver, defBack, 'itemBorder', 'itemText');
menu[8][1] = new Item('Standard Roller Blinds', '/blinds/roller.htm', '', defLength,0, 0);
menu[8][2] = new Item('Laminated Roller Blinds', '/blinds/lamroller.htm', '', defLength,0, 0);
menu[8][3] = new Item('Vienna Roller Blinds', '/blinds/viennaroller.htm', '', defLength,0, 0);

// "Venetian Blinds" menu
menu[9] = new Array();
menu[9][0] = new Menu(true, '>', 120, 0, 150, defOver, defBack, 'itemBorder', 'itemText');
menu[9][1] = new Item('Fabric Venitian Blinds', '/blinds/fabricvenetians.htm', '', defLength,0, 0);
menu[9][2] = new Item('Metal Venetian Blinds', '/blinds/metalvenetian.htm', '', defLength,0, 0);
menu[9][3] = new Item('Wood Venetian Blinds', '/blinds/woodvenetian.htm', '', defLength,0, 0);

// "Vertical Blinds" menu
menu[10] = new Array();
menu[10][0] = new Menu(true, '>', 120, 0, 200, defOver, defBack, 'itemBorder', 'itemText');
menu[10][1] = new Item('Vertical Louvre Blinds', '/blinds/vertical-louvre.htm', '', defLength,0, 0);
menu[10][2] = new Item('Curved Headrail Vertical Blinds', '/blinds/vertical-curved-head.htm', '', defLength,0, 0);

//-->
