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

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

// 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, '', 20, 102, 17, '#FF3333', '#999999', '', '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', '/', '', 45, 10, '');
menu[0][2] = new Item('  Chi Siamo', '/chisiamo.php', '', 70, 10, '');
menu[0][3] = new Item('  Servizi', '/Servizi/', '', 45, 10, 3);
menu[0][4] = new Item('  Mutuo', '/Mutuo/', '', 40, 10, 4);
menu[0][5] = new Item('  Leasing', '/Leasing/', '', 50, 10, 5);
menu[0][6] = new Item('  Risparmio Gestito', '/RispGest/', '', 110, 10, 6);
menu[0][7] = new Item('  Partners', '/Partners/', '', 55, 10, '');
menu[0][8] = new Item('  Contatti', '/Contatti/', '', 55, 10, '');
menu[0][9] = new Item('  Vetrina Immobiliare', '/Vetrina/', '', 120, 10, '');
menu[0][10] = new Item('  News', '/News/', '', 55, 10, '');

// Home 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, 80, defOver, defBack, 'itemBorder', 'itemText');
//menu[1][1] = new Item('Nuova', '/Scadenze/registra.php', '', defLength, 0, 0);
//menu[1][2] = new Item('Lista', '/Scadenze/lista.php', '', 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, 4);
//menu[1][4] = new Item('Exit', '#', '', defLength, 0, 0);

// Chi Siamo menu.
menu[2] = new Array();
menu[2][0] = new Menu(true, '>', 0, 20, 80, defOver, defBack, 'itemBorder', 'itemText');
//menu[2][1] = new Item('Nuovo', '/Domini/registra.php', '', defLength, 0, 0);
//menu[2][2] = new Item('Lista', '/Domini/lista.php', '', defLength, 0, 0);
//menu[2][3] = new Item('Listino', '/Domini/listino.php', '', defLength, 0, 0);

// Servizi menu
menu[3] = new Array();
menu[3][0] = new Menu(true, '>', 0, 20, 90, defOver, defBack, 'itemBorder', 'itemText');
menu[3][1] = new Item('Al Cliente', '/Servizi/cliente.php', '', defLength, 0, 0);
menu[3][2] = new Item('Alle Agenzie', '/Servizi/agenzie.php', '', defLength, 0, 0);

// Mutuo menu
menu[4] = new Array();
menu[4][0] = new Menu(true, '>', 0, 20, 130, defOver, defBack, 'itemBorder', 'itemText');
menu[4][1] = new Item('F.A.Q.', '/Mutuo/faq_mutuo.php', '', defLength, 0, 0);
menu[4][2] = new Item('L\'Esperto Risponde', '/Mutuo/esperto_mutuo.php', '', defLength, 0, 0);
menu[4][3] = new Item('Calcola il Mutuo', '/Mutuo/calcola_mutuo.php', '', defLength, 0, 0);
menu[4][4] = new Item('Richiedi Preventivo', '/Mutuo/preventivo_mutuo.php', '', defLength, 0, 0);
menu[4][5] = new Item('Documentazione', '/Mutuo/documentazione_mutuo.php', '', defLength, 0, 0);

// Leasing menu
menu[5] = new Array();
menu[5][0] = new Menu(true, '>', 0, 20, 140, defOver, defBack, 'itemBorder', 'itemText');
menu[5][1] = new Item('F.A.Q.', '/Leasing/faq_leasing.php', '', defLength, 0, 0);
menu[5][2] = new Item('L\'Esperto Risponde', '/Leasing/esperto_leasing.php', '', defLength, 0, 0);
menu[5][3] = new Item('Richiedi un Preventivo', '/Leasing/preventivo_leasing.php', '', defLength, 0, 0);
menu[5][4] = new Item('Documentazione', '/Leasing/documentazione_leasing.php', '', defLength, 0, 0);

// Risparmio Gestito menu
menu[6] = new Array();
// Leftwards popout with a negative x and y relative to its trigger.
menu[6][0] = new Menu(true, '>', 0, 20, 180, defOver, defBack, 'itemBorder', 'itemText');
//menu[6][1] = new Item('F.A.Q.', '/RispGest/faq.php', '', defLength, 0, 0);
//menu[6][2] = new Item('L\'Esperto Risponde', '/RispGest/esperto.php', '', defLength, 0, 0);
//menu[6][3] = new Item('Richiedi un Incontro', '/RispGest/preventivo.php', '', defLength, 0, 0);
//menu[6][4] = new Item('Esempi di Risparmio Gestito', '/RispGest/esempi.php', '', defLength, 0, 0);


// Partners menu
//menu[7] = new Array();
// Leftwards popout with a negative x and y relative to its trigger.
//menu[7][0] = new Menu(true, '>', 0, 20, 110, defOver, defBack, 'itemBorder', 'itemText');
//menu[7][1] = new Item('Da fare', '/Myeterna', '', defLength, 0, 0);
//menu[7][2] = new Item('Ins. da fare', '/Myeterna/registra.php', '', defLength, 0, 0);


