codice:
// 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 = '#0099FF', defBack = '#0D08A8';
// Default 'length' of menu items - item height if menu is vertical, width if horizontal.
// DIMENSIONE ALTEZZA CELLA SOTTOMENU
//var defLength = 22;
var defLength = 17;
// 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.
w= ((document.body.clientWidth) / 2) - 376
menu[0][0] = new Menu(false, '', w, 72, 0, '#0099FF', '#009EEF', '', '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(' Amministrazione', '../../../../giunta.htm', '', 109, 0, 1);
menu[0][2] = new Item(' Uffici Comunali', '../../../../uffici.htm', '', 100, 0, 2);
menu[0][3] = new Item(' Istruzione', '../../../../istruzione.htm', '', 68, 0, 3);
menu[0][4] = new Item(' Territorio', '../../../../territorio.htm', '', 65, 0,0);
menu[0][5] = new Item(' Turismo', '../../../../Turismo/infotur.htm', '', 53, 5, 5);
menu[0][6] = new Item(' Eventi', '../../../../eventi.htm', '', 43, 5, 0);
menu[0][7] = new Item(' Storia', '../../../../storia.htm', '',49,0,0);
menu[0][8] = new Item(' Cultura', '../../../../cultura.htm', '', 54, 0, 0);
menu[0][9] = new Item(' Chiese', '../../../../culto.htm', '', 52, 0, 0);
menu[0][10] = new Item(' Associazioni', '../../../../associazioni.htm', '', 78, 5, 0);
menu[0][11] = new Item(' Gemellaggi', '../../../../gemellaggi.htm', '', 70, 5, 0);
// 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 '>' as a popout indicator. Try an image...?
// MENU AMMINISTRAZIONE
menu[1] = new Array();
menu[1][0] = new Menu(true, '>', 0, 22, 115, defOver, defBack, 'itemBorder', 'itemText');
menu[1][1] = new Item('Saluto del Sindaco', '../../../../saluto.htm', '', defLength, 0, 0);
//menu[1][2] = new Item('Paste', '#', '', defLength, 0, 0);
//menu[1][3] = new Item('Paste', '#', '', defLength, 0, 0);
// MENU UFFICI COMUNALI
menu[2] = new Array();
menu[2][0] = new Menu(true, '>', 0, 22, 165, defOver, defBack, 'itemBorder', 'itemText');
menu[2][1] = new Item('Centralino', '../../../../uffici.htm#centralino', '', defLength, 0, 0);
menu[2][2] = new Item('Sindaco', '../../../../uffici.htm#sindaco', '', defLength, 0, 0);
menu[2][3] = new Item('Segretario Generale', '../../../../uffici.htm#segretario', '', defLength, 0, 0);
menu[2][4] = new Item('Vice Segretario', '../../../../uffici.htm#vicesegret', '', defLength, 0, 0);
menu[2][5] = new Item('Seg. Generale e protolocco', '../../../../uffici.htm#sgenerale', '', defLength, 0, 0);
menu[2][6] = new Item('Messo Comunale', '../../../../uffici.htm#messo', '', defLength, 0, 0);
menu[2][7] = new Item('Appalti', '../../../../uffici.htm#appalti', '', defLength, 0, 0);
menu[2][8] = new Item('Ragioneria', '../../../../uffici/ragioneria.htm', '', defLength, 0, 0);
menu[2][9] = new Item('Tributi', '../../../../uffici/ragioneria.htm', '', defLength, 0, 0);
menu[2][10] = new Item('Socio Scolastico', '../../../../uffici/scolastico.htm', '', defLength, 0, 0);
menu[2][11] = new Item('Tecnico', '#', '', defLength, 0, 8);
menu[2][12] = new Item('Demografici', '../../../../uffici.htm#demografico', '', defLength, 0, 0);
menu[2][13] = new Item('Sport e Turismo', '../../../../uffici/turismo_sport.htm', '', defLength, 0, 0);
menu[2][14] = new Item('Ecologia Ambiente e Casa', '../../../../uffici/ecologia.htm', '', defLength, 0, 0);
menu[2][15] = new Item('Commercio-Attività produttive-Polizie Amm.va', '../../../../uffici/poliz_amm.htm', '', defLength, 0, 0);
menu[2][16] = new Item('Polizia Amministrativa', '../../../../uffici/poliz_amm.htm', '', defLength, 0, 0);
menu[2][17] = new Item('Polizia Municipale', '../../../../uffici.htm#pmunicipale', '', defLength, 0, 0);
menu[2][18] = new Item('Sala Consigliare', '../../../../uffici.htm#sala', '', defLength, 0, 0);
menu[2][19] = new Item('Centro Sociale', '../../../../uffici.htm#centro', '', defLength, 0, 0);
menu[2][20] = new Item('Magazzino Comunale', '../../../../uffici.htm#magazzino', '', defLength, 0, 0);
menu[2][21] = new Item('Emergenza acquedotto', '../../../../uffici.htm#acquedotto', '', defLength, 0, 0);
//menu[2][3] = new Item('Paste', '#', '', defLength, 0, 0);
// ISTRUZIONE
menu[3] = new Array();
menu[3][0] = new Menu(true, '>', 0, 22, 145, defOver, defBack, 'itemBorder', 'itemText');
menu[3][1] = new Item('SCUOLE MATERNE', '../../../../istruzione.htm#materne', '', defLength, 0, 9);
menu[3][2] = new Item('SCUOLE ELEMENTARI', '../../../../istruzione.htm#elementari', '', defLength, 0, 0);
menu[3][3] = new Item('SCUOLE MEDIE', '../../../../istruzione.htm#medie', '', defLength, 0, 0);
menu[3][4] = new Item('SCUOLE PROFESSIONALI', '../../../../istruzione.htm#professionali', '', defLength, 0, 0);
menu[3][5] = new Item('ISTITUTI TECNICI', '../../../../istruzione.htm#tecnici', '', defLength, 0, 0);
menu[3][6] = new Item('NEWS...', '../../../../istruzione01.htm', '', defLength, 0, 0);
// EVENTI E MANIFESTAZIONI
menu[4] = new Array();
menu[4][0] = new Menu(true, '>', 0, 22, 110, defOver, defBack, 'itemBorder', 'itemText');
menu[4][1] = new Item('MANIFESTAZIONI', '../../../../eventi.htm', '', defLength, 0, 0);
// TURISMO
menu[5] = new Array();
menu[5][0] = new Menu(true, '>', 0, 22, 110, defOver, defBack, 'itemBorder', 'itemText');
menu[5][1] = new Item('MANIFESTAZIONI', '../../../../manifestazioni01.htm', '', defLength, 0, 0);
menu[5][2] = new Item('COSA VEDERE...', '../../../../Turismo/luoghi.htm', '', defLength, 0, 0);
menu[5][3] = new Item('ITINERARI', '#', '', defLength, 0, 6);
menu[5][4] = new Item('PARCHI', '../../../../parchi.htm', '', defLength, 0, 0);
menu[5][5] = new Item('AGRITURISMO', '#', '', defLength, 0, 0);
menu[5][6] = new Item('ARTIGIANATO', '#', '', defLength, 0, 0);
menu[5][7] = new Item('CUCINA TIPICA', '../../../../cucina.htm', '', defLength, 0, 0);
menu[5][8] = new Item('LAGHI A GIAVENO', '../../../../laghi.htm', '', defLength, 0, 0);
// SOTTOMENU TURISMO
menu[6] = new Array();
menu[6][0] = new Menu(true, '>', 110, 0, 100, defOver, defBack, 'itemBorder', 'itemText');
menu[6][1] = new Item('- IN AUTO', '#', '', defLength, 0, 0);
menu[6][2] = new Item('- IN BICICLETTA', '../../../../itin_bici.htm', '', defLength, 0, 0);
menu[6][3] = new Item('- A PIEDI', '../../../../itin_piedi.htm', '', defLength, 0, 0);
menu[6][4] = new Item('- A CAVALLO', '../../../../itin_cavallo.htm', '', defLength, 0, 0);
// MENU CULTURA
menu[7] = new Array();
menu[7][0] = new Menu(true, '>', 0, 22, 65, defOver, defBack, 'itemBorder', 'itemText');
// UFFFICI TECNICI
menu[8] = new Array();
menu[8][0] = new Menu(true, '>', 166, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[8][1] = new Item('- Urbanistica ed Edilizia privata', '../../../../uffici/Urbanistica.htm', '', defLength, 0, 0);
menu[8][2] = new Item('- Lavori Pubblici', '../../../../uffici/lav_pubblici.htm', '', defLength, 0, 0);
// SOTTOMENU Istruzione
menu[9] = new Array();
menu[9][0] = new Menu(true, '>', 145, 0, 102, defOver, defBack, 'itemBorder', 'itemText');
menu[9][1] = new Item('- AVVISI', '../../../../avvisiscuole.htm', '', defLength, 0, 0);