// 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();

// full width of page...
var fullWidth = getWindowWidth() - (isNS4 && getWindowHeight() < getPageHeight() ? 16 : 0); 

// 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 = '#EABB00', defBack = '#C0C0C0';

// 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();
menu[0][0] = new Menu(false, '', 0, 205, 17, '#FFE479', '#C0C0C0', 'itemBorder', 'headText');
menu[0][1] = new Item('Café Main', 'http://www.CentroidCafe.com/index.htm', '', 88, 0, 1);
menu[0][2] = new Item('Futures Research Center', 'http://www.CentroidCafe.com/Center_Home-N.htm', '', 179, 0, 2);
menu[0][3] = new Item('Centroid Network', 'http://www.CentroidCafe.com/Network_Home-N.htm', '', 132, 0, 3);
menu[0][4] = new Item('Centroid Communications', 'http://www.CentroidCafe.com/Services-N.htm', '', 187, 0, 4);
menu[0][5] = new Item('Contact Centroid', 'http://www.CentroidCafe.com/Contact-N.htm', '', 135, 0, 0);

// Café Main 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 '>' as a popout indicator. Try an image...?
menu[1][0] = new Menu(true, '', 0, 20, 110, defOver, defBack, 'itemBorder', 'itemText');
menu[1][1] = new Item('Front Door', 'http://www.CentroidCafe.com/index.htm', '', defLength, 0, 0);
menu[1][2] = new Item("Writers' Corner", 'http://www.CentroidCafe.com/Write-N.htm', '', defLength, 0, 0);
menu[1][3] = new Item('Art Gallery', 'http://www.CentroidCafe.com/ArtGallery-N.htm', '', defLength, 0, 0);
menu[1][4] = new Item('Philosophy Loft', 'http://www.CentroidCafe.com/Phil-N.htm', '', defLength, 0, 0);
menu[1][5] = new Item('Music Room', 'http://www.CentroidCafe.com/Music-N.htm', '', defLength, 0, 0);
menu[1][6] = new Item('Sci-Fi Den', 'http://www.CentroidCafe.com/Sci-Fi-N.htm', '', defLength, 0, 0);
menu[1][7] = new Item('The Lab', 'http://www.CentroidCafe.com/Games-N.htm', '', defLength, 0, 0);

// Futures Research Center menu.
menu[2] = new Array();
menu[2][0] = new Menu(true, '', 0, 20, 150, defOver, defBack, 'itemBorder', 'itemText');
menu[2][1] = new Item('Timelines Overview', 'http://www.CentroidCafe.com/FRC-Timeline_Overview.htm', '', defLength, 0, 0);
menu[2][2] = new Item('Environment Track', 'http://www.CentroidCafe.com/FRC-Track_E.htm', '', defLength, 0, 0);
menu[2][3] = new Item('Medicine Track', 'http://www.CentroidCafe.com/FRC-Track_M.htm', '', defLength, 0, 0);
menu[2][4] = new Item('Politics/Society Track', 'http://www.CentroidCafe.com/FRC-Track_P.htm', '', defLength, 0, 0);
menu[2][5] = new Item('Science Track', 'http://www.CentroidCafe.com/FRC-Track_S.htm', '', defLength, 0, 0);
menu[2][6] = new Item('Technology Track', 'http://www.CentroidCafe.com/FRC-Track_T.htm', '', defLength, 0, 0);

// Centroid Network menu
menu[3] = new Array();
menu[3][0] = new Menu(true, '', 0, 20, 100, defOver, defBack, 'itemBorder', 'itemText');
menu[3][1] = new Item('Network Hub', 'http://www.CentroidCafe.com/Network_Home-N.htm', '', defLength, 0, 0);
menu[3][2] = new Item('Channel 1', 'http://www.CentroidCafe.com/Network_Channel-1.htm', '', defLength, 0, 0);
menu[3][3] = new Item('Channel 2', 'http://www.CentroidCafe.com/Network_Channel-2.htm', '', defLength, 0, 0);
menu[3][4] = new Item('Channel 3', 'http://www.CentroidCafe.com/Network_Channel-3.htm', '', defLength, 0, 0);
menu[3][5] = new Item('Channel 4', 'http://www.CentroidCafe.com/Network_Channel-4.htm', '', defLength, 0, 0);

// Centroid Communications menu
menu[4] = new Array();
menu[4][0] = new Menu(true, '', 0, 20, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[4][1] = new Item('Information Design/Training', 'http://www.CentroidCafe.com/CC-Services-IA.htm', '', defLength, 0, 0);
menu[4][2] = new Item('Marketing Communications', 'http://www.CentroidCafe.com/CC-Services-Marcom.htm', '', defLength, 0, 0);
menu[4][3] = new Item('Technical Communications', 'http://www.CentroidCafe.com/CC-Services-Techcom.htm', '', defLength, 0, 0);
menu[4][4] = new Item('Online Publishing', 'http://www.CentroidCafe.com/CC-Services-Online.htm', '', defLength, 0, 0);
menu[4][5] = new Item('VIP Services', 'http://www.CentroidCafe.com/VIPFace-Key.htm', '', defLength, 0, 0);

function init() {
	writeMenus();
}