Menu = new Array();
subMenu = new Array();
subSubMenu = new Array();

//== Menu Items ============================================================================================
// Enter a new line below for each Menu and 1st & 2nd level sub Menu items. The format is:
// addMenu("background colour", "background colour on mouseover", "font colour", "font-colour on mouseover", "displaying text", "URL", "target")
// For main menu items use addMenu(), for level 1 sub menu items use addSubMenu() and for level 2 sub menu items use addSubSubMenu()

  addMenu("#990000", "#FFCC00", "#FFCC00", "#333333", "Chi siamo", "http://www.corohispanoamericano.it/ChiSiamo.htm", "_self")   
      addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "La storia del coro", "http://www.corohispanoamericano.it/StoriaCoro.htm", "_self")
      addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Lo statuto", "http://www.corohispanoamericano.it/Statuto.htm", "_self")
      addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "I maestri", "http://www.corohispanoamericano.it/Maestri.htm", "_self")
          addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Raul Iaiza", "http://www.corohispanoamericano.it/RaulIaiza.htm", "_self")
          addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Pilar Bravo", "http://www.corohispanoamericano.it/PilarBravo.htm", "_self")
          addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Marco Dusi", "http://www.corohispanoamericano.it/MarcoDusi.htm", "_self")
		  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Antonio Neglia", "http://www.corohispanoamericano.it/AntonioNeglia.htm", "_self")		  
		  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "I coristi", "http://www.corohispanoamericano.it/Coristi.htm", "_self")
		  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "I musicisti", "http://www.corohispanoamericano.it/Musicisti.htm", "_self")
		addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Le proposte musicali", "http://www.corohispanoamericano.it/Proposte.htm", "_self")
	  		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "A este sol que nace", "http://www.corohispanoamericano.it/AEsteSol.htm", "_self")
	  		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Cantata argentina", "http://www.corohispanoamericano.it/CantataArgentina.htm", "_self")
	  		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Camino de lo sacro", "http://www.corohispanoamericano.it/CaminoSacro.htm", "_self")
	  		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Caminos", "http://www.corohispanoamericano.it/Caminos.htm", "_self")
	  		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "En el cielo y en la tierra", "http://www.corohispanoamericano.it/CieloTerra.htm", "_self")
			addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Le due Spagne", "http://www.corohispanoamericano.it/DueSpagne.htm", "_self")
	  		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Le tiengo rabia al silencio", "http://www.corohispanoamericano.it/LeTengoRabia.htm", "_self")
	  		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Misa Criolla", "http://www.corohispanoamericano.it/MisaCriolla.htm", "_self")
	  		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Mujeres", "http://www.corohispanoamericano.it/Mujeres.htm", "_self")
	  		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Navidad Nuestra", "http://www.corohispanoamericano.it/NavidadNuestra.htm", "_self") 
			addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "AprenderCantando", "http://www.corohispanoamericano.it/AprenderCantando.htm", "_self") 	      
      addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333",  "I referenti istituzionali", "http://www.corohispanoamericano.it/Referenti.htm", "_self")
      addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Canta con noi", "http://www.corohispanoamericano.it/Iscriviti.htm", "_self")      
      addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333",  "Contatti", "http://www.corohispanoamericano.it/ComeContattarci.htm", "_self")
	addMenu("#990000", "#FFCC00", "#FFCC00", "#333333", "L'attività", "#", "_self") 
	  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "I prossimi concerti", "http://www.corohispanoamericano.it/ProssimiConcerti.htm", "_self")
	  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "I concerti eseguiti", "http://www.corohispanoamericano.it/ConcertiEseguiti.htm", "_self")
	  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "La discografia", "http://www.corohispanoamericano.it/Discografia.htm", "_self")
		 	addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Dal vivo", "http://www.corohispanoamericano.it/DalVivo.htm", "_self")
		  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Naranjitay", "http://www.corohispanoamericano.it/Cassetta.htm", "_self")
	  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Le recensioni", "http://www.corohispanoamericano.it/Recensioni.htm", "_self") 
     
  addMenu("#990000", "#FFCC00", "#FFCC00", "#333333", "La musica", "http://www.corohispanoamericano.it/Discografia.htm", "_self") 
  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Il repertorio", "http://www.corohispanoamericano.it/Repertorio.htm", "_self")
  	 addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Argentina", "http://www.corohispanoamericano.it/Argentina.htm", "_self")
	 addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Bolivia", "http://www.corohispanoamericano.it/Bolivia.htm", "_self")
	 addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Brasile", "http://www.corohispanoamericano.it/Brasile.htm", "_self")
	 addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Cile", "http://www.corohispanoamericano.it/Cile.htm", "_self")
	 addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Colombia", "http://www.corohispanoamericano.it/Colombia.htm", "_self")
	 addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Costarica", "http://www.corohispanoamericano.it/Costarica.htm", "_self")
	 addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Cuba", "http://www.corohispanoamericano.it/Cuba.htm", "_self")
	 addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Ecuador", "http://www.corohispanoamericano.it/Ecuador.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Messico", "http://www.corohispanoamericano.it/Messico.htm", "_self") 
	   addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Italia", "http://www.corohispanoamericano.it/Italia.htm", "_self")
	    addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Perù", "http://www.corohispanoamericano.it/Peru.htm", "_self")
		 addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Spagna", "http://www.corohispanoamericano.it/Spagna.htm", "_self")
		  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Puerto Rico", "http://www.corohispanoamericano.it/PuertoRico.htm", "_self")
		   addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "USA", "http://www.corohispanoamericano.it/Usa.htm", "_self")
		    addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Venezuela", "http://www.corohispanoamericano.it/Venezuela.htm", "_self")	
  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333",  "Generi e ritmi", "http://www.corohispanoamericano.it/GeneriRitmi.htm", "_self") 
  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Strumenti", "http://www.corohispanoamericano.it/StrumentiMusicali.htm", "_self")   
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Aerofoni", "http://www.corohispanoamericano.it/SMAerofoni.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Cordofoni", "http://www.corohispanoamericano.it/SMCordofoni.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Idiofoni", "http://www.corohispanoamericano.it/SMIdiofoni.htm", "_self")
          addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Membranofoni", "http://www.corohispanoamericano.it/SMMembranofoni.htm", "_self")
          addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Adatti alla cultura europea", "http://www.corohispanoamericano.it/SMEuropei.htm", "_self")
	  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333",  "Archivio musicale", "http://www.corohispanoamericano.it/ArchivioMusicale.htm", "_self")
	  	addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Argentina", "http://www.corohispanoamericano.it/ArchivioArgentina.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Brasile", "http://www.corohispanoamericano.it/ArchivioBrasile.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Cile", "http://www.corohispanoamericano.it/ArchivioCile.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Colombia", "http://www.corohispanoamericano.it/ArchivioColombia.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Cuba", "http://www.corohispanoamericano.it/ArchivioCuba.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Italia", "http://www.corohispanoamericano.it/ArchivioItalia.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Messico", "http://www.corohispanoamericano.it/ArchivioMessico.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Puerto Rico", "http://www.corohispanoamericano.it/ArchivioPuertoRico.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Santo Domingo", "http://www.corohispanoamericano.it/ArchivioSDomingo.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Spagna", "http://www.corohispanoamericano.it/ArchivioSpagna.htm", "_self")
		
  addMenu("#990000", "#FFCC00", "#FFCC00", "#333333", "I riferimenti culturali", "#", "_self")     	        
  	addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Autori", "http://www.corohispanoamericano.it/Autori.htm", "_self") 
	 addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Rosa Alarco", "http://www.corohispanoamericano.it/AlarcoRosa.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Mario Castelnuovo Tedesco", "http://www.corohispanoamericano.it/Castelnuovo.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Alejandro Garcia Caturla", "http://www.corohispanoamericano.it/Caturlagarcia.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Tomas Luis Da Victoria", "http://www.corohispanoamericano.it/DaVictoriaLuis.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Juan De L'Encina", "http://www.corohispanoamericano.it/DeLencinaJuan.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Lobo De Mesquita", "http://www.corohispanoamericano.it/DeMesqitaLobo.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Mateo Flecha El Viejo", "http://www.corohispanoamericano.it/FlechaMateo.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Julio Fonseca", "http://www.corohispanoamericano.it/FonsecaJulio.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Don Hernando Franco", "http://www.corohispanoamericano.it/DonHernandoFranco.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Alberto Ginastera", "http://www.corohispanoamericano.it/GinasteraAlberto.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Eliseo Grenet", "http://www.corohispanoamericano.it/GrenetEliseo.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Carlos Guastavino", "http://www.corohispanoamericano.it/GuastavinoCarlos.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Rodolfo Hallfter", "http://www.corohispanoamericano.it/HalffterRodolfo.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Xavier Montsalvage", "http://www.corohispanoamericano.it/MontsalvageXavier.htm", "_self") 
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Joaquín Nin Castellanos", "http://www.corohispanoamericano.it/CastellanosJoaquin.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Alejandro N&uacute;&ntilde;ez Allauca", "http://www.corohispanoamericano.it/NunezAllaucaAlejandro.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "C.A. Pinto Fonseca", "http://www.corohispanoamericano.it/PintoFonseca.htm", "_self")
	   addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "F. Pulgar Vidal", "http://www.corohispanoamericano.it/PulgarVidal.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Ariel Ramirez", "http://www.corohispanoamericano.it/RamirezAriel.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Orrego Salas", "http://www.corohispanoamericano.it/SalasOrrego.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Tomás Torrejón y Velasco", "http://www.corohispanoamericano.it/Velasco.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Jorge Urrutia-Blondel", "http://www.corohispanoamericano.it/Urrutia.htm", "_self")  
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Heitor Villa Lobos", "http://www.corohispanoamericano.it/VillaLobosHeitor.htm", "_self")
  	  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Poeti", "http://www.corohispanoamericano.it/Poeti.htm", "_self")      
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Rafael Alberti", "http://www.corohispanoamericano.it/AlbertiRafael.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Miguel De Cervantes", "http://www.corohispanoamericano.it/DeCervantes.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Juan De L'Encina", "http://www.corohispanoamericano.it/DeLencinaJuan.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Luis De Góngora", "http://www.corohispanoamericano.it/DeGongoraLuis.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Nicolas Guillen", "http://www.corohispanoamericano.it/GuillenNicolas.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Federico Garcia Lorca", "http://www.corohispanoamericano.it/LorcaFedericoGarcia.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Felix Luna", "http://www.corohispanoamericano.it/LunaFelix.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Gabriela Mistral", "http://www.corohispanoamericano.it/MistralGabriela.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Pablo Neruda", "http://www.corohispanoamericano.it/NerudaPablo.htm", "_self")  
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Alfonsina Storni", "http://www.corohispanoamericano.it/StorniAlfonsina.htm", "_self")   
	  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Cantautori e trovadori", "http://www.corohispanoamericano.it/Cantautori.htm", "_self")
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Rolando Alarcon", "http://www.corohispanoamericano.it/AlarconRolando.htm", "_self")
	   addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "César Isella", "http://www.corohispanoamericano.it/IsellaCesar.htm", "_self")
      addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Victor Jara", "http://www.corohispanoamericano.it/JaraVictor.htm", "_self")
	   addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Patricio Manns", "http://www.corohispanoamericano.it/MannsPatricio.htm", "_self")
	   addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Miguel Matamoros", "http://www.corohispanoamericano.it/MatamorosMiguel.htm", "_self")   
	  addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Violeta Parra", "http://www.corohispanoamericano.it/ParraVioleta.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Silvio Rodriguez", "http://www.corohispanoamericano.it/RodriguezSilvio.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Daniel Viglietti", "http://www.corohispanoamericano.it/VigliettiDaniel.htm", "_self")
		addSubSubMenu("#FFCC00", "#99CC66", "#990000", "#333333", "Atahualpa Yupanqui", "http://www.corohispanoamericano.it/Atahualpa.htm", "_self") 
	  
  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333",  "Cenni storici", "http://www.corohispanoamericano.it/Storia.htm", "_self") 
  addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333",  "Bibliografia", "http://www.corohispanoamericano.it/Bibliografia.htm", "_self")    
 addSubMenu("#FFCC00", "#99CC66", "#990000", "#333333",  "Altri link", "http://www.corohispanoamericano.it/LinkSet.htm", "_top")  
  addMenu("#990000", "#FFCC00", "#FFCC00", "#333333", "I prossimi concerti", "http://www.corohispanoamericano.it/ProssimiConcerti.htm", "_self") 
//== Configuration =================================================================================
var border = "003366";   
var menuWidth = 0;           // Width of entire menu. Use 0 for default
var cellPadding = 3;         // Cell Padding  
var borderWidth = 1;         // Border width (for no border, enter 0)  THIS VALUE APPLIES TO ALL MENUS  
var subMenuDelay = 1;        // Time sub menu stays visible for (in seconds). THIS VALUE APPLIES TO ALL MENUS
var fontDecoration = "none"  // Font decoration of all menu items (none, underline, overline)
var statusBar = "0" ;        // Message shown in status bar. 
                             //   Type "0" to show the URL. (normal behaviour of browser)
                             //   Type "1" to show the menu title
                             //   Type anything else to show a custom message.


// Main menu 
var mainIndicate = "<img src='arrow-down.gif' alt='' border='0'>";  // Symbol to show if a sub menu is present.  For no symbol, enter "none" 
var fontFace = "Bookman Old Style";      // Font of main menu items
var fontSize = "9pt";       // Font size of main menu items
var fontWeight = "normal"    // Font Weight of main menu items

// Level 1 sub menu
var sVerticalOffset = 0;     // Vertical offset of Sub Menu. (negative values move sub menu up) 
var sHorizontalOffset = 0;   // Horizontal offset of Sub Menu. (negative values move sub menu to the left) 
var subIndicate = "<img src='arrow-right.gif' alt='' border='0'>";   // Symbol to show if a sub menu is present.  For no symbol, enter "none" 
var sfontFace = "Bookman Old Style";     // Font of main menu items
var sfontSize = "9pt";      // Font size of main menu items
var sfontWeight = "normal";    // Font Weight of main menu items
var sTransparency = "100"    // Opacity of sub menus. 0 - 100.  (IE Only.)

// Level 2 sub menu 
var ssVerticalOffset = 10      // Vertical offset of Sub Menu. (negative values move sub menu up) 
var ssHorizontalOffset = -10    // Horizontal offset of Sub Menu. (negative values move sub menu to the left)
var ssfontFace = "Bookman Old Style";     // Font of main menu items
var ssfontSize = "9pt";      // Font size of main menu items
var ssfontWeight = "normal";    // Font Weight of main menu items
var ssTransparency = "100"    // Opacity of sub menus. 0 - 100.  (IE Only.)

//== End Configuration - Do not edit below this line =======================================================

function addMenu(back,backH,font,fontH,title,url,target){
i = Menu.length;
  Menu[i] = new Array(back,backH,font,fontH,title,url,target); 
  subMenu[i] = new Array();
  subSubMenu[i] = new Array();
}

function addSubMenu(back,backH,font,fontH,title,url,target){
j = subMenu[i].length;
  subMenu[i][j] = new Array(back,backH,font,fontH,title,url,target)
  subSubMenu[i][j] = new Array();    
}

function addSubSubMenu(back,backH,font,fontH,title,url,target){
k = subSubMenu[i][j].length;
  subSubMenu[i][j][k] = new Array(back,backH,font,fontH,title,url,target)  
}

var timer; 

function showMenu(orientation){
  if(orientation==""){orientation=="horizontal"}
  buildMenu(orientation);
  buildSubMenu();
  buildSubSubMenu();
}
  
function buildMenu(orientation){
  build = '<table width="'+menuWidth+'" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="'+border+'"><tr><td><table border="0" cellpadding="0" cellspacing="'+borderWidth+'" width="100%""><tr>';
  for (x=0;x<Menu.length; x++){
    build += '<td nowrap="nowrap" style="cursor:hand; background-color:'+Menu[x][0]+'" onclick="tdMouseClick(\'MenuLink'+x+'\')" title="'+Menu[x][4]+'">';
    build += '<div align="center" id="Menu'+x+'" style="padding:'+cellPadding+'px; background-color:'+Menu[x][0]+'" onMouseOver="clearTimer(); hideAll(\'main\'); showSubMenu(\'Menu\','+x+',\''+orientation+'\'); showStatus(\'over\',\'Main\','+x+'); return true;" onMouseOut="timerHide(); ">';
    build += '<a id="MenuLink'+x+'" href="'+Menu[x][5]+'" target="'+Menu[x][6]+'" style="font-family:'+fontFace+';font-size:'+fontSize+';font-weight:'+fontWeight+';color:'+Menu[x][2]+';text-decoration:'+fontDecoration+'">'+Menu[x][4]
    if(mainIndicate.toLowerCase()!="none" && subMenu[x].length>0){build += '<span style="padding-left:3px">'+mainIndicate+'<\/span>';}    
    build += '<\/a><\/div><\/td>';
    if(orientation.toLowerCase()=="vertical" && x<(Menu.length-1)){build += "<\/tr><tr>"}
  }
  build += '<\/tr><\/table><\/td><\/tr><\/table>';  
  document.writeln(build);
}

function buildSubMenu(){
  for(y=0; y<subMenu.length; y++){   
    buildSub = '<div id="Sub'+y+'" style="position:absolute; left:0; top:0; visibility:hidden">';
    if(subMenu[y].length>0){ 
      buildSub += '<table border="0" cellpadding="0" cellspacing="0" bgcolor="'+border+'" style="padding-right:1px;filter: alpha(Opacity='+sTransparency+')"><tr><td><table border="0" cellpadding="0" cellspacing="'+borderWidth+'" width="100%" align="center">';
      for(z=0; z<subMenu[y].length; z++){  
        buildSub += '<tr><td nowrap="nowrap" onclick="tdMouseClick(\'SubLink'+y+z+'\')" onMouseOver="showStatus(); clearTimer(); hideAll(\'sub\'); showSubSubMenu(\'Sub\','+y+','+z+'); showStatus(\'over\',\'Sub\','+y+','+z+'); return true;" title="'+subMenu[y][z][4]+'" style="cursor:hand"><div nowrap="nowrap" id="Sub'+y+z+'" style="cursor:hand;padding:'+cellPadding+'px; background-color:'+subMenu[y][z][0]+'" onMouseOut="timerHide()">';        
        buildSub += '<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"><tr><td nowrap="nowrap"><a id="SubLink'+y+z+'" href="'+subMenu[y][z][5]+'" target="'+subMenu[y][z][6]+'" style="font-family:'+sfontFace+';font-size:'+sfontSize+';font-weight:'+sfontWeight+';color:'+subMenu[y][z][2]+';text-decoration:'+fontDecoration+'">'+subMenu[y][z][4]+'<\/a><\/div><\/td>';
        buildSub += '<td align="center" nowrap="nowrap" onclick="tdMouseClick(\'SubLink'+y+z+'\')" onMouseOver="showStatus(); clearTimer(); hideAll(\'sub\'); showSubSubMenu(\'Sub\','+y+','+z+'); showStatus(\'over\',\'Sub\','+y+','+z+'); return true;" title="'+subMenu[y][z][4]+'" style="cursor:hand; padding-right:'+cellPadding+'px">';
        if(subIndicate.toLowerCase()!="none" && subSubMenu[y][z].length>0){
          buildSub += subIndicate;
        }else{
          buildSub += "&nbsp;";
        }
        buildSub += '<\/td><\/tr><\/table><\/td><\/tr>';
      }
      buildSub += '<\/table><\/td><\/tr><\/table>';
    }
    buildSub += '<\/div>';
    document.write (buildSub)
  }
}

function buildSubSubMenu(){
  for(x=0; x<Menu.length; x++){
    if(subMenu[x].length>0){
      for(y=0; y<subMenu[x].length; y++){
        buildSubSub = '<div id="SubSub'+x+y+'" style="position:absolute; left:0; top:0; visibility:hidden">'
        if(subSubMenu[x][y].length>0){
          buildSubSub += '<table border="0" cellpadding="0" cellspacing="0" bgcolor="'+border+'" style="filter: alpha(Opacity='+ssTransparency+')"><tr><td><table border="0" cellpadding="0" cellspacing="'+borderWidth+'" width="100%" align="center">';
          for(z=0; z<subSubMenu[x][y].length; z++){
            buildSubSub += '<tr><td style="cursor:hand" nowrap="nowrap" title="'+subSubMenu[x][y][z][4]+'" onMouseOver="clearTimer(); hideAll(\'subsub\'); highlightSubSubMenu('+x+','+y+','+z+'); showStatus(\'over\',\'SubSub\','+x+', '+y+','+z+'); return true;" onMouseOut="timerHide()" onclick="tdMouseClick(\'SubSubLink'+x+y+z+'\')"><div id="SubSub'+x+y+z+'" style="font-family:'+fontFace+';font-size:'+fontSize+';font-weight:'+ssfontWeight+';cursor:hand;padding:'+cellPadding+'px; background-color:'+subSubMenu[x][y][z][0]+'">';
            buildSubSub += '<a id="SubSubLink'+x+y+z+'" href="'+subSubMenu[x][y][z][5]+'" target="'+subSubMenu[x][y][z][6]+'" style="font-family:'+ssfontFace+';font-size:'+ssfontSize+';font-weight:'+ssfontWeight+';color:'+subSubMenu[x][y][z][2]+';text-decoration:'+fontDecoration+'">'+subSubMenu[x][y][z][4]+'<\/a>';
            buildSubSub += '<\/div><\/td><\/tr>';
          }
          buildSubSub += '<\/table><\/td><\/tr><\/table>';         
        }
        buildSubSub += '<\/div>';         
        document.writeln(buildSubSub)   
      }     
    }
  }
}

function showSubMenu(obj,id,orientation){
  document.getElementById(obj+id).style.backgroundColor=Menu[id][1];
  document.getElementById(obj+"Link"+id).style.color=Menu[id][3];
  getOffset(eval('document.getElementById("'+obj+id+'")'),"left")
  getOffset(eval('document.getElementById("'+obj+id+'")'),"top")
  getOffset(eval('document.getElementById("'+obj+id+'")'),"height")
  getOffset(eval('document.getElementById("'+obj+id+'")'),"width")

  vOff=(orientation.toLowerCase()=="vertical")?oWidth+borderWidth:0
  hOff=(orientation.toLowerCase()=="vertical")?oHeight+borderWidth:0
  
  document.getElementById("Sub"+id).style.left=oLeft-borderWidth+sHorizontalOffset+vOff;
  document.getElementById("Sub"+id).style.top=oTop+oHeight+sVerticalOffset-hOff;
  document.getElementById("Sub"+id).style.visibility="visible";
}
function showSubSubMenu(obj,id, subid){
  document.getElementById(obj+id+subid).style.backgroundColor=subMenu[id][subid][1];
  document.getElementById(obj+"Link"+id+subid).style.color=subMenu[id][subid][3];
  
  getOffset(eval('document.getElementById("'+obj+id+subid+'")'),"left")
  getOffset(eval('document.getElementById("'+obj+id+subid+'")'),"top")
  getOffset(eval('document.getElementById("'+obj+id+subid+'")'),"height")
  getOffset(eval('document.getElementById("'+obj+id+subid+'")'),"width")
  
  document.getElementById("SubSub"+id+subid).style.left=oLeft+oWidth+ssHorizontalOffset;
  document.getElementById("SubSub"+id+subid).style.top=oTop-borderWidth+ssVerticalOffset;
  document.getElementById("SubSub"+id+subid).style.visibility="visible";
}
function highlightSubSubMenu(id, subid, subsubid){
  document.getElementById("SubSub"+id+subid+subsubid).style.backgroundColor=subSubMenu[id][subid][subsubid][1];
  document.getElementById("SubSubLink"+id+subid+subsubid).style.color=subSubMenu[id][subid][subsubid][3];
}
function timerHide(level,id,subid){
  timer = setTimeout("hideAll()",(subMenuDelay*1000))
}
function clearTimer(){
  if(timer){clearTimeout(timer)}
}
// Hide all sub menu items, and recolour as required.
function hideAll(level){
  showStatus('out')  
  for(x=0;x<Menu.length; x++){
    if(level!="sub"&&level!="subsub"){
      document.getElementById("Menu"+x).style.backgroundColor=Menu[x][0]
      document.getElementById("MenuLink"+x).style.color=Menu[x][2];
    }
    for(y=0;y<subMenu[x].length; y++){
      if(subSubMenu[x][y].length>0){
        if(level!="subsub"){document.getElementById("SubSub"+x+y).style.visibility="hidden";}
        for(z=0; z<subSubMenu[x][y].length; z++){
          document.getElementById("SubSub"+x+y+z).style.backgroundColor=subSubMenu[x][y][z][0]
          document.getElementById("SubSubLink"+x+y+z).style.color=subSubMenu[x][y][z][2]
        }
      }
      if(level!="subsub"){
        document.getElementById("Sub"+x+y).style.backgroundColor=subMenu[x][y][0]
        document.getElementById("SubLink"+x+y).style.color=subMenu[x][y][2]}
    }
    if(level!="sub"&&level!="subsub"){document.getElementById("Sub"+x).style.visibility="hidden";}
  }
}
// Find positioning for sub menus
function getOffset(obj, dim) {
  if(dim=="left") 
  {     
    oLeft = obj.offsetLeft;  
    while(obj.offsetParent!=null) 
    {    
      oParent = obj.offsetParent     
      oLeft += oParent.offsetLeft 
      obj = oParent 	
    }
    return oLeft
  }
  else if(dim=="top")
  {
    oTop = obj.offsetTop;
    while(obj.offsetParent!=null) 
    {
      oParent = obj.offsetParent
      oTop += oParent.offsetTop
      obj = oParent 	
    }
    return oTop
  }
  else if(dim=="width")
  {
    oWidth = obj.offsetWidth
    return oWidth
  }  
  else if(dim=="height")
  {
    oHeight = obj.offsetHeight
    return oHeight
  }    
  else
  {
    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")
    return false;
  }
}

// Display correct text in status bar
function showStatus(state,level,id,subid,subsubid){
  if(statusBar==0){msg=5}
  else if(statusBar==1){msg=4}
  else {msg=0}
    
  if(state=="over"){
    if(level=="Main" && msg>0){displayStatus=Menu[id][msg]}
    else if(level=="Sub" && msg>0){displayStatus=subMenu[id][subid][msg]}
    else if(level=="SubSub" && msg>0){displayStatus=subSubMenu[id][subid][subsubid][msg]}
    else{displayStatus=statusBar;}
  }
  else{displayStatus="";}
  window.status=displayStatus
}

// when you click the box, perform the same function as if the user had clicked the hyperlink
function tdMouseClick(theElement)
{
  if(document.getElementById && document.all){document.getElementById(theElement).click();}
}
