
var testi=new Array( )
testi[0]=new Array( )
testi[1]=new Array( )
testi[2]=new Array( )


testi[0][0]="<a id='a0' href='#'>La Fondazione</A>"
testi[0][1]="<a href='cron1_fr.htm' target='_top'>Storia</A>"
testi[0][2]="<a href='stat_fr.htm' target='_top'>Statuto</A>"
testi[0][3]="<a href='organ_fr.htm' target='_top'>Comitati</A>"
testi[0][4]="<a href='atti_fr.htm' target='_top'>Attivitą</A>"


testi[1][0]="<a id='a1' href='#'>Filippo Burzio</A>"
testi[1][1]="<a href='cron2_fr.htm' target='_top'>Cronologia</A>"
testi[1][2]="<a href='biog_fr.htm' target='_top'>Biografia</A>"



testi[2][0]="<a id='a2' href='#'>L'opera di Filippo Burzio</A>"
testi[2][1]="<a href='oper_fr.htm' target='_top'>Le Opere</A>"
testi[2][2]="<a href='biblio_f.htm' target='_top'>Bibliografia</A>"
testi[2][3]="<a href='arc_fr.htm' target='_top'>Archivio</A>"
testi[2][4]="<a href='galler_f.htm' target='_top'>Galleria di immagini</A>"


var ord=323
var asc=256

var coloreSfondoTitoli=""
var coloreTestoTitoli="darkred"      //solo per NS 4; per NS >5 od IE modifica il css div
var coloreSfondoTendina=""
var coloreBordoTitoli=""
var coloreBordoTendina=""
var larghezza=150
var coloreSfondoTitoliSopra="#FDF9EE" //solo per NS >5 od IE
var coloreSfondoTestiSopra=""  //solo per NS >5 od IE

if (document.layers) {

  function vediN4(par1,par2){
    document.layers[par1].visibility="show"

  }

  function togliN4(par1,par2){
    document.layers[par1].visibility="hide"
  }


  document.write('<layer name="div" top="'+ord+'" left="'+asc+'" width="700" height="300" zindex="1" ><table border="0" width="700" height="90" cellspacing="0" cellpadding="0"><tr><td>&nbsp;</td></tr></table></layer>')
  for (x=0;x<testi.length;x++) {
    document.write('<layer name="diva'+x+'" top="'+ord+'" left="'+(x*larghezza+asc)+'" width="'+larghezza+'" height="15" bgcolor="'+coloreSfondoTitoli+'" zindex="2" onmouseover=vediN4("divb'+x+'","diva'+x+'") onmouseout=togliN4("divb'+x+'","diva'+x+'")><table border="0" bordercolor="'+coloreBordoTitoli+'" cellspacing="0" cellpadding="0"><tr><td width="'+larghezza+'" ><b><FONT face="verdana" size="1" color="'+coloreTestoTitoli+'"><center>'+testi[x][0]+'</center></font></b></table></layer>')
    document.write('<layer name="divb'+x+'" top="'+(ord+15)+'" left="'+(x*larghezza+asc)+'" width="'+larghezza+'" bgcolor="" zindex="2" visibility="hide" onmouseover=vediN4("divb'+x+'","diva'+x+'") onmouseout=togliN4("divb'+x+'","diva'+x+'")>')
    document.write('<table border="0" bordercolor="'+coloreBordoTendina+'" cellspacing="0" cellpadding="0" >')
    for (z=1;z<testi[x].length;z++) {

             document.write('<tr><td width="'+larghezza+'"><b><FONT face="verdana" size="1"><center>'+testi[x][z]+'</center></font></b>')

    }
    document.write('</table></layer>')
  }


}

else {

//parte per NS >5 od IE

   elencoSezioni=new Array();
    for (i=0;i<testi.length;i++){
      elencoSezioni[i]="diva"+i+"";
    }
    elencoSottoSezioni=new Array();
    for (m=0;m<testi.length;m++){
      elencoSottoSezioni[m]="divb"+m+"";
    }


b=-50;
c=16//spazio per il titolo nella ordinata

 function muovi(par1){
    if (b<16){
      b+=5
      document.getElementById(par1).style.top = b
      setTimeout("muovi('"+par1+"')",70)

    }
}

  function vedi(par1,par2){

     for (n=0;n<elencoSezioni.length;n++){
      document.getElementById(elencoSottoSezioni[n]).style.visibility = "hidden"
      document.getElementById(elencoSezioni[n]).style.backgroundColor = coloreSfondoTitoli
    }
    document.getElementById(par1).style.visibility = "visible"
    document.getElementById(par2).style.backgroundColor = coloreSfondoTitoliSopra
    b=-50

 }

  function coloreSu(par){
    document.getElementById(par).style.backgroundColor = coloreSfondoTestiSopra
  }

  function coloreGiu(par){
    document.getElementById(par).style.backgroundColor = coloreSfondoTendina
  }


  document.write('<div style="position:absolute;top:'+ord+'px;left:'+asc+'px;width:500;height:200;overflow:hidden">')
  for (x=0;x<testi.length;x++){
    document.write('<div class="sopra" id="diva'+x+'" style="position:absolute;top:0px;left:'+(x*larghezza)+'px;width:'+larghezza+'px;height:16;background-color:'+coloreSfondoTitoli+';border:0px solid '+coloreBordoTitoli+'" onclick=vedi("divb'+x+'","diva'+x+'");muovi("divb'+x+'") >'+testi[x][0]+'</div>')
    document.write('<div class="sotto" id="divb'+x+'" style="position:absolute;top:'+c+ord+'px;left:'+(x*larghezza)+';width:'+(larghezza-5)+'px;visibility:hidden;">')
    for (z=1;z<testi[x].length;z++){
        document.write('<div id='+(x)+'_'+(z)+' style="position:relative;top:0;left:0px;background-color:'+coloreSfondoTendina+';width:'+(larghezza-5)+'px;border:0px solid '+coloreBordoTendina+'" onmouseover=coloreSu("'+(x)+'_'+(z)+'") onmouseout=coloreGiu("'+(x)+'_'+(z)+'")>'+testi[x][z]+'')
        document.write('</div>')
    }
    document.write('</div>')

  }
  document.write('</div>')

}


