/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 * Sez personalizzabile.
 * Pisolo ringrazia R. Riccardi per questo menu  (C)2004 webmaster@jsdir.com - http://www.jsdir.com - 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

var left=10; // --- Distanza dal margine sinistro della pagina
var top=25; // --- Distanza dal margine superiore della pagina
var alto=15; // --- Altezza dei livelli (righe)
var largoprinc=150; // --- Larghezza livelli delle voci principali
var largosec=150; // --- Larghezza livelli delle voci secondarie
var deltaleft=15; // --- Margine sx aggiunto all valore di "left" per indentare le voci secondarie
/* -----------
COLORI MENU
I colori di sfondo, caratteri, on mouseover sono dati dal STYLE.CSS: /* INIZIO Menu sinistro-versione giugno 2005
.princ e .sec
font-color : #FFFFFF 
background-color : #009900 
.princ a {color : #ffffcc
---------- */
var ronpri="#000000"; // Colore al MouseOver
var roffpri="#333399"; // Colore di default // USARE lo stesso Colore dello sfondo del STYLE.CSS background-color : 
var ronsec="#000000"; // Colore al MouseOver
var roffsec="#0099FF"; // Colore di default // USARE lo stesso Colore dello sfondo del STYLE.CSS background-color :  

/* nome del menu. */

var voci=new Array();
	voci[0]=new Array("Introduzione","Introduzione")
	voci[1]=new Array(" &#8226; 1939-40","1939-40","La X Brigata Marte")
	voci[2]=new Array("La REGIA Aeronaut","La Regia Aeronaut")
	voci[3]=new Array(" &#8226; 1941","1941");
	voci[4]=new Array(" &#8226; 1942","1942","9&deg; STORMO BT","Operazione Canarino");
	voci[5]=new Array("Operazione Canarino","Operazione Canarino");
	voci[6]=new Array("La LUFTWAFFE","L'arrivo d tedeschi","La partenza");
	voci[7]=new Array(" &#8226; 1943 - gen-sett","gennaio-febbraio","marzo-aprile","maggio-settembre");
	voci[8]=new Array("Bombardam. Gonnos","1943-Bomb. Gonnos","Testimonianze 1","Testimonianze 2","Testimonianze 3","Testimonianze 4","Le vittime");
	voci[9]=new Array("Bombardam. Villacidro","11 mag 1943","21 mag 1943","Question Mark");
	voci[10]=new Array("GLI AMERICANI","L'aerodromo di V.","Little america","USAAF")	
	voci[11]=new Array(" &#8226; 1943 - sett","1943 - sett")
	voci[12]=new Array(" &#8226; 1943 - ott-nov","1943 - ott-nov")
	voci[13]=new Array(" &#8226; 1943 - dic","1943 - dic")
	voci[14]=new Array(" &#8226; 1944 - gen","1944 1-15 gen","1944 16-30 gen")
	voci[15]=new Array(" &#8226; 1944 - feb","1944 - feb")
	voci[16]=new Array(" &#8226; 1944 - mar-ago")
	voci[17]=new Array("I FRANCESI","I francesi")

/* links contenuti nel singolo menu. */

var links=new Array();
	links[0]=new Array("/","1939intr.htm")
	links[1]=new Array("/","1939-40.htm","1939-40.htm#brigatamarte")
	links[2]=new Array("/","1939ra.htm")
	links[3]=new Array("/","1941.htm")
	links[4]=new Array("/","1942.htm","1942.htm#9stormo","1942.htm#canarino")
	links[5]=new Array("/","1942can.htm")
	links[6]=new Array("/","1941-43t.htm","1943t2.htm")
	links[7]=new Array("/","1943.htm","1943-2.htm","1943-3.htm")
	links[8]=new Array("/","1943gon.htm","1943gon2.htm","1943gon3.htm","1943gon3b.htm","1943gon3c.htm","1943gon4.htm")
	links[9]=new Array("/","1943e.htm","1943b.htm","1943c.htm")
	links[10]=new Array("/","1943-5.htm","1943-6.htm","1943-7b26.htm")
	links[11]=new Array("/","1943-4.htm")
	links[12]=new Array("/","1943-8ot.htm")
	links[13]=new Array("/","1943-8dic.htm")
	links[14]=new Array("/","1944-1gen-a.htm","1944-1gen-b.htm")
	links[15]=new Array("/","1944-2feb.htm")
	links[16]=new Array("/")
	links[17]=new Array("/","1944-3mar-franc.htm")

var targets=new Array();
	targets[0]=new Array("self","self")
	targets[1]=new Array("self","self","self")
	targets[2]=new Array("self","self")
	targets[3]=new Array("self","self")
	targets[4]=new Array("self","self","self","self")
	targets[5]=new Array("self","self")
	targets[6]=new Array("self","self","self")
	targets[7]=new Array("self","self","self","self")
	targets[8]=new Array("self","self","self","self","self","self","self")
	targets[9]=new Array("self","self","self","self","self")
	targets[10]=new Array("self","self","self","self")
	targets[11]=new Array("self","self")
	targets[12]=new Array("self","self")
	targets[13]=new Array("self","self")
	targets[14]=new Array("self","self","self")
	targets[15]=new Array("self","self")
	targets[16]=new Array("self")
	targets[17]=new Array("self","self")

/* testi che saranno visualizzati nella barra di stato del browser quando il mouse e' sopra una voce del menu  */
var wst=new Array();
	wst[0]=new Array("L'aeroporto di Trunconi - S'acqua cotta a Villacidro - I parte","L'aeroporto di Trunconi - S'acqua cotta a Villacidro - I parte");
	wst[1]=new Array("Gli anni 1939 - 1940","Gli anni 1939 - 1940","La X Brigata Marte");
	wst[2]=new Array("La REGIA AERONAUTICA A VILLACIDRO","La REGIA AERONAUTICA A VILLACIDRO");
	wst[3]=new Array("Il 1941","Il 1941","La LUFTWAFFE a Villacidro");
	wst[4]=new Array("Il 1942","Il 1942","Il 9' stormo B T","L'operazione Canarino");
	wst[5]=new Array("L'operazione Canarino","L'operazione Canarino");
	wst[6]=new Array("La LUFTWAFFE a Villacidro","I tedeschi a Villacidro","La partenza dei tedeschi-Aerei abbandonati dai tedeschi sul campo di Villacidro");
	wst[7]=new Array("il 1943 - dal gennaio al settembre","gennaio-febbraio","marzo-aprile","maggio-settembre");
	wst[8]=new Array("I bombardamenti del 1943 - Gonnosfanadiga","I bombardamenti del 1943 - Gonnosfanadiga","La testimonianza di mons. Tomasi","La testimonianza delle vittime","La testimonianza dei sopravvissuti","La testimonianza dei sopravvissuti","Le vittime");
	wst[9]=new Array("I bombardamenti del 1943","La missione dell'11 maggio 1943 del 320th B.G. su Trunconi andata a vuoto di L. T","Il bombardamento del 21 maggio 1943, Rapporto della missione n. 94 del 310° B.G. ","Il bombardamento del 21 maggio 1943, Noi perdemmo il QUESTION MARK");
	wst[10]=new Array("L'aeroporto di Trunconi - S'acqua cotta a Villacidro - II parte: GLI AMERICANI","L'aerodromo di Villacidro","Little america a Gutturu de Forru","USAAF - Gli aerei americani");
	wst[11]=new Array("1943 settembre","1943 settembre")
	wst[12]=new Array("1943 da ottobre a novembre","1943 da ottobre a novembre")
	wst[13]=new Array("1943 dicembre","1943 dicembre")
	wst[14]=new Array("1944 gennaio","1944 dal I al 15 gennaio","1944 dal 16 al 30 gennaio")
	wst[15]=new Array("1944 febbraio","1944 febbraio")
	wst[16]=new Array("1944 dal marzo ad agosto")
	wst[17]=new Array("1944 L'arrivo dei FRANCESI - La petite Versailles de S’Acqua Cotta","1944 L'arrivo dei FRANCESI - La petite Versailles de S'Acqua Cotta")


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 * Fine sezione personalizzabile.
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
var nn=document.layers?true:false
var w3c=document.getElementById?true:false
var last=-1;

if (nn)
	{
	for (var i = 0 ; i<voci.length; i++)
		{
		document.write("<layer onmouseover='rollonpri(this);show("+i+",0);' onmouseout='rolloutpri(this);unshow()' name='pr"+i+"' left="+left+" top="+(top+alto*i)+" width="+largoprinc+" height="+alto+" clip='0,0,"+largoprinc+" ,"+(alto)+"'  bgColor='"+roffpri+"' class='princ' ><a href='javascript:DDMenuApri("+i+");' onmouseover='rollonpri(this);show("+i+",0);return true;' onmouseout='rolloutpri(this);unshow();return true;' >"+voci[i][0]+"</a></layer>");
		for (var ii = 1 ; ii < voci[i].length ; ii++ )
			document.write("<layer onmouseover='rollonsec(this);show("+i+","+ii+")' onmouseout='rolloutsec(this);unshow();' name='sc"+i+"_"+ii+"' left="+(left+deltaleft)+" visibility='hidden' top="+(top+alto*i+alto*ii)+" width="+largosec+" height="+alto+" clip='0,0,"+largosec+" ,"+(alto)+"' bgColor='"+roffsec+"' class='sec' > - <a href='javascript:vai("+i+","+ii+")' onmouseover='rollonsec(this);show("+i+","+ii+");return true;' onmouseout='rolloutsec(this);unshow();return true;' >"+voci[i][ii]+"</a></layer>");
		}
	}
else
	{
	for (var i = 0 ; i<voci.length; i++)
		{
		document.write("<div id='pr"+i+"' onmouseover='rollonpri(this);show("+i+",0)' onmouseout='rolloutpri(this)' style='position : absolute ; left:"+left+"px ; top:"+(top+alto*i)+"px ; width:"+largoprinc+"px ;height:"+alto+"px ; cursor:pointer ; cursor:hand ' class='princ' onclick='DDMenuApri("+i+")'>"+voci[i][0]+"</div>");
		for (var ii = 1 ; ii < voci[i].length ; ii++ )
			document.write("<div id='sc"+i+"_"+ii+"' onmouseover='rollonsec(this);show("+i+","+ii+")' onmouseout='rolloutsec(this);unshow()' onclick='vai("+i+","+ii+")' style='position : absolute ; left : "+(left+deltaleft)+"px  ;visibility : hidden  ; top : "+(top+alto*i+alto*ii)+"px ; width : "+largosec+"px ; height : "+alto+"px ; cursor:pointer ; cursor:hand ; ' class='sec' >"+voci[i][ii]+"</div>");
		}
	}

var beg=nn?"document.layers":w3c?"document.getElementById(":"document.all";
var mid=nn?"":w3c?").style":".style";

function DDMenuApri(quale)
	{
	for (var i=0 ; i<voci.length ; i++ )
		{
		eval(beg+"['pr'+"+i+"]"+mid+".top=eval(top+alto*"+i+"); ")
		for (var ii = 1 ; ii < voci[i].length ; ii++)
			eval(beg+"['sc'+"+i+"+'_'+"+ii+"]"+mid+".visibility='hidden'; ")
		}
	if (last != quale)
		{
		if ( quale++ < voci.length)
			for (var i=quale ; i<voci.length ; i++ )
				eval(beg+"['pr'+i]"+mid+".top=eval(top+alto*(voci[quale-1].length+i))");
		quale--;
		for (var i = 1 ; i < voci[quale].length ; i++)
			eval(beg+"['sc'+"+quale+"+'_'+"+i+"]"+mid+".visibility='visible'    ");
		last=quale;
		}
	else
		last=-1
	}

function rollonpri(lev){nn?lev.bgColor=ronpri:(document.all)?lev.style.background=ronpri:lev.style.background=ronpri;}
function rolloutpri(lev){nn?lev.bgColor=roffpri:(document.all)?lev.style.background=roffpri:lev.style.background=roffpri;}
function rollonsec(lev){nn?lev.bgColor=ronsec:(document.all)?lev.style.background=ronsec:lev.style.background=ronsec;}
function rolloutsec(lev){nn?lev.bgColor=roffsec:(document.all)?lev.style.background=roffsec:lev.style.background=roffsec;}
function show(idx,idy){window.status=wst[idx][idy];}
function unshow(){window.status=window.defaultStatus;}

// --- Vedi il file "drop_down_menu.txt" allegato per aprire la voce in uno specifico frame
function vai(idx,idy){targets[idx][idy]=="self"?self.location.href=links[idx][idy]:window.open(links[idx][idy]);}
