 /*-----------------------------------------------------------------------
    Script per la gestione dei menu pop-up orizzontali di secondo livello
  ------------------------------------------------------------------------*/
  
function MostraMenu (IDMenu) {
  for (i = 1; i <= StatoMenu.length; i++) {
    nome= 'sub0' + i;
    menLev1 = document.getElementById('col' + i);
    if (i == IDMenu) {
      Stato = document.getElementById(nome).style.display;
      switch (Stato) {
        case '': document.getElementById(nome).style.display='block'; StatoMenu [i - 1] = 1;
          break;
        case 'block':
          document.getElementById(nome).style.display='none'; StatoMenu [i - 1] = 0;
          break;
        case 'none':
          document.getElementById(nome).style.display='block'; StatoMenu [i - 1] = 1;
          break;
      };
    }
    else {
      document.getElementById(nome).style.display = 'none';
      StatoMenu [i - 1] = 0;
      // Deve ripristinare l'eventuale menu attivato
      nomeLv1 = 'col' + i;
      IEPatchOff(document.getElementById(nomeLv1));
    }
  }
}


// Patch per IE Explorer:
// IE non riconosce la pseudo-classe :hover per identificatori diversi da <a>, rendendo necessaria la gestione degli eventi onmouse
function IEPatchOn (Obj) {
/*
  Obj.style.textDecoration = 'none';
  Obj.style.color='#215134'; //c8c8c8';
  Obj.style.backgroundColor='#ddd';  //306948';
*/
  document.getElementById(Obj.id).className = 'attivo';
}
function IEPatchOff(Obj) {
/*
  Obj.style.textDecoration = 'none';
  NrCol = Obj.id.charAt(3) - 1;  // Estrae dall'ID dell'oggetto il nr. identificativo (es. 1 da "col1")
  if (StatoMenu[NrCol] == 0) {
    // Esegue il ripristino colore base solo se il submenu e' disabilitato
    Obj.style.color=''; 
    Obj.style.backgroundColor=''; };
*/
  NrCol = Obj.id.charAt(3) - 1;  // Estrae dall'ID dell'oggetto il nr. identificativo (es. 1 da "col1")
  if (StatoMenu[NrCol] == 0) {
    // Esegue il ripristino colore base solo se il submenu e' disabilitato
    document.getElementById(Obj.id).className = '';
		}
 }


