// JavaScript Document
// 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 = '#9DA2D7', defBack = '#FBF5C0';

// 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, '', 277, 160, 16, '#0006A3', '#0006A3', 'mainBorder', 'mainText');

// 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('&nbsp; Contact Us', 'contact.htm', '', 93, 0, 1);
menu[0][2] = new Item('&nbsp; MinitMan', 'minitman.htm', '', 85, 0, 2);
menu[0][3] = new Item('&nbsp; CFN', 'cfn.htm', '', 55, 0, 3);
menu[0][4] = new Item('&nbsp; Bulk Plant', 'bulk.htm', '', 90, 0, 4);
menu[0][5] = new Item('&nbsp; Wholesale/Dealer Sites', 'wholesale.htm', '', 160, 0, 5);

// File menu.
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 '&gt;' as a popout indicator. Try an image...?
menu[1][0] = new Menu(true, '&gt;', 5, 20, 120, defOver, defBack, 'itemBorder', 'itemText', 'itemHover');
menu[1][1] = new Item('About Us', 'about.htm', '', defLength, 0, 0);

// Edit menu.
menu[2] = new Array();
menu[2][0] = new Menu(true, '&gt;', 5, 20, 120, defOver, defBack, 'itemBorder', 'itemText');
menu[2][1] = new Item('Locations', 'minitman_locations.htm', '', defLength, 0, 0);
menu[2][2] = new Item('Store Specials', 'minitman_specials.htm', '', defLength, 0, 0);
menu[2][3] = new Item('Specials Flyer', 'minitman_flyer.htm', '', defLength, 0, 0);

// Help menu
menu[3] = new Array();
menu[3][0] = new Menu(true, '&gt;', 5, 20, 120, defOver, defBack, 'itemBorder', 'itemText');
menu[3][1] = new Item('Billing Statement', 'cfn_billing.htm', '', defLength, 0, 0);
menu[3][2] = new Item('CFN Application', 'pdfs/credit_application2.pdf', '_blank', defLength, 0, 0);
menu[3][3] = new Item('Spenco/CFN Sites', 'cfn_locations.htm', '', defLength, 0, 0);
menu[3][4] = new Item('Find CFN Near You', 'http://www.cfnnet.com/directions.html', '_blank', defLength, 0, 0);
menu[3][5] = new Item('CFN National Map', 'http://www.cfnnet.com/locations_01.html', '_blank', defLength, 0, 0);

// Reopen menu
menu[4] = new Array();
menu[4][0] = new Menu(true, '&gt;', 5, 20, 120, defOver, defBack, 'itemBorder', 'itemText');

// Help About popout
menu[5] = new Array();
menu[5][0] = new Menu(true, '&gt;', 5, 20, 120, defOver, defBack, 'itemBorder', 'itemText');
menu[5][1] = new Item('Locations', 'wholesale_locations.htm', '', defLength, 0, 0);




