/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  * Questo menu e' (C)2001 webmasterATjsdir.com - Lo script e' reperibile al sito http://www.jsdir.com - JavaScript Directory
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
var ron="#61A8FE"; // Colore al MouseOver
var roff="#000000"; // Colore di default
var leftmargin=-7; // Distanza dal margine sinistro della pagina
var topmargin=55; // Distanza dal margine superiore della pagina
var largo=160; // Larghezza dei layers, quindi dei bottoni del menu1
var alto=20 // Altezza dei layers, quindi distanza (verticale) fra le voci del menu

var Home = false; // Settare a "false" se non si desidera il link all'homepage
var HomeLink = "index.htm"; // URL della homepage
var HomeText = "Home"; // Testo del link alla homepage
// -- La variabile HomeWidth in questo caso non e' necessaria (v. scheda del Menu a Tendine - http://www.jsdir.com/staffscripts/script043.asp)

/* L'array seguente contiene i testi che verranno visualizzati dal menu.
 * Nell'esempio (il menu di JsDir) trovate quattro elementi dell'array "voci" corrispondenti alle quattro voci del menu principale
 * Il primo elemento degli array e' il nome del menu, gli elementi successivi sono i links contenuti nel singolo menu.
 * Il tasto "Home" non compare in questo array perche' viene inserito di default come primo elemento */
var voci=new Array();
	voci[0]=new Array("Queen", "Biografia", "Discografia", "Videografia", "Concertografia");
	voci[1]=new Array("John Deacon", "Biografia", "Discografia");
	voci[2]=new Array("Brian May", "Biografia", "Discografia", "Videografia", "Concertografia");
	voci[3]=new Array("Freddie Mercury", "Biografia", "Discografia", "Videografia", "Concertografia");
	voci[4]=new Array("Roger Taylor", "Biografia", "Discografia", "Videografia", "Concertografia");
	voci[5]=new Array("<b>Queen + Paul Rodgers</b>", "News", "European Tour 2005", "World Tour 2005", "American Tour 2006", "<b>Rock The Cosmos Tour 2008</b>");
	voci[6]=new Array("The Bassman", "John Deacon Story", "John... 'the bassman'", "Messages for John");
	voci[7]=new Array("Curiosità", "Interviste", "Ipse Dixit", "Notizie varie");
	voci[8]=new Array("Collezionismo");
	voci[9]=new Array("Galleria Immagini");
	voci[10]=new Array("Download");
	voci[11]=new Array("Comunità", "<b>Membri Forum</b>", "Cover Band", "Link comunità", "Altri Link");
	voci[12]=new Array("About me...", "Autore", "My Collection", "My Wantlist");
	

/* Questo array contiene invece i links che saranno aperti dalle singole voci dei sottomenu.
 * In questa nuova versione del menu ( 09 Dic 2002 ) e' possibile specificare un link anche per la voce principale del menu */
var links=new Array();
	links[0]=new Array("#", "pag_gr_bio.htm", "pag_gr_disco.htm", "pag_gr_video.htm", "pag_gr_concerti.htm")
	links[1]=new Array("#", "pag_jo_bio.htm", "pag_jo_disco.htm")
	links[2]=new Array("#", "pag_br_bio.htm", "pag_br_disco.htm", "pag_br_video.htm", "pag_br_concerti.htm")
	links[3]=new Array("#", "pag_fr_bio.htm", "pag_fr_disco.htm", "pag_fr_video.htm", "pag_fr_concerti.htm")
	links[4]=new Array("#", "pag_ro_bio.htm", "pag_ro_disco.htm", "pag_ro_video.htm", "pag_ro_concerti.htm")
	links[5]=new Array("#", "concert/pag_gr_con05_new.htm", "concert/pag_gr_con05_date.htm", "concert/pag_gr_con_world05_date.htm", "concert/pag_gr_con_USA06_date.htm", "concert/pag_gr_con_europ08_date.htm")
	links[6]=new Array("#", "doc_vari/doc_johnstory.htm", "doc_vari/doc_john_doc_01.htm", "doc_mesgs_4_john.htm")
	links[7]=new Array("#", "doc_vari/doc_interview_home.htm", "doc_vari/doc_ipse_dixit.htm", "doc_vari/doc_curiosita_home.htm")
	links[8]=new Array("pag_collect.htm", "doc_col_royalblu.htm", "doc_col_list_borha.htm","doc_col_innuendo.htm", "doc_col_virgin.htm", "doc_col_colored_pag.htm", "doc_faq.htm", "Download/swap list.xls")
	links[9]=new Array("galleria/Pag_galleria.htm")
	links[10]=new Array("doc_download.htm")
	links[11]=new Array("#", "doc_vari/forum/for_elenco.htm", "doc_coverband.htm", "doc_link_comunita.htm", "doc_link.htm")
	links[12]=new Array("#", "doc_autore.htm", "doc_mycollection.htm", "doc_wantlist.htm")	

/* Questo array contiene i target dei links
 * E' possibile scegliere fra "self", "new"  ed impostare le proprieta' della pop-up
 * "self" aprira' il link nella stessa finestra d'origine
 * "new" o qualsiasi altro valore aprira' una nuova finestra del browser come un TARGET="_blank" messo in un normale link A 
 * In alternativa e' possibile scrivere la stringa proprieta' della pop-up desiderata come in un normale window.open
 * le proprieta' indicate verranno effettivamente passate ad un'istruzione "window.open()" dalla funzione vai();
 * - - - - - - - - - - - - - - - - - */
var targets=new Array();
	targets[0]=new Array("self", "self", "self", "self", "self")
	targets[1]=new Array("self", "self", "self")
	targets[2]=new Array("self", "self", "self", "self", "self")
	targets[3]=new Array("self", "self", "self", "self", "self")
	targets[4]=new Array("self", "self", "self", "self", "self")
	targets[5]=new Array("self", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes")
	targets[6]=new Array("self", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes")
	targets[7]=new Array("self", "self", "self", "self")
	targets[8]=new Array("self", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "", "width=750, height=570, scrollbars=yes", "self")
	targets[9]=new Array("self", "self", "self", "self", "self", "new")
	targets[10]=new Array("width=750, height=570, scrollbars=yes")
	targets[11]=new Array("self", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes")
	targets[12]=new Array("self", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "width=750, height=570, scrollbars=yes", "self", "new")

/* Ultimo array.
 * Contiene i 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("Queen","La storia del gruppo: dalle origini a oggi","Discografia completa con tutti i singoli e le edizioni speciali su vinile","Tutta la videografia ufficiale", "Tutti i dettagli dei concerti della Band");
	wst[1]=new Array("John Deacon","Biografia John Deacon","Singoli John Deacon");
	wst[2]=new Array("Brian May","Biografia Freddie Mercury","Discografia completa con tutti i singoli e le edizioni speciali su vinile","Tutta la videografia ufficiale", "Tutti i dettagli dei concerti");
	wst[3]=new Array("Freddie Mercury","Biografia Brian May","Discografia completa con tutti i singoli e le edizioni speciali su vinile","Tutta la videografia ufficiale", "Tutti i dettagli dei concerti");
	wst[4]=new Array("Roger Taylor","Biografia Roger Taylor","Discografia completa con tutti i singoli e le edizioni speciali su vinile","Tutta la videografia ufficiale", "Tutti i dettagli dei concerti");
	wst[5]=new Array("Tutto sui Queen + Paul Rodgers", "Notizie sui Queen + Paul Rodgers", "Date, scalette e ticket del Tour Europeo 2005", "Date, scalette e ticket del mini-tour mondiale 2005", "Date, scalette e ticket del North American Tour 2006", "Date, scalette e ticket del tour 2008");
	wst[6]=new Array("Tutto quello che c'è da sapere su Mr Deacon", "La Storia del mitico bassista", "Tante interviste su John", "Messaggi lasciati per la petizione");
	wst[7]=new Array("Curiosità", "Interviste", "Ipse Dixit", "Notizie varie", "Documenti su John Deacon");
	wst[8]=new Array("Documenti Sul Collezionismo","La Storia del mitico Vinile Blu di Bohemian Rhapsody", "Lista dei possessori del mitico vinile blu", "Analisi del 12'' picture disc di innuendo", "Storia del concorso della Virgin del 1996 e dei suoi premi", "Tutte le fotografie dei Picture disc e dei colored Vinyl", "Classificazione dei vinili", "Hai dei concerti da scambiare??? Scarica la mia lista e contattami");
	wst[9]=new Array("Galleria immagini");
	wst[10]=new Array("Tantissimo materiale da scaricare: Midi, file karaoke, font, copertine degli album");
	wst[11]=new Array("I link della comunità ''Queennica''", "Schede personali di tutti gli iscritti al forum", "Pagina dedicata alle cover band italiane e non", "Interagire con altri fans", "I miei link preferiti");
	wst[12]=new Array("Informazioni Sull'autore", "Autore", "La mia collezione", "Immagini che mancano al mio sito");


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 * Fine sezione personalizzabile.
 * Le righe che seguono costituiscono il menu vero e proprio.
 * La personalizzazione e' consigliata solo a webmaster un po' esperti di JavaScript.
 * Per la descrizione dello script si veda lo StaffScript "Menu a tendine" in JsDir.
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
var nn=document.layers?true:false,conta=0,last=0;
if (nn)
	{
	if (Home)
		document.write("<LAYER NAME=mtop. position=absolute left="+leftmargin+" top="+topmargin+" width="+largo+" height="+alto+" clip=0,0,"+largo+","+alto+" bgColor="+roff+" visibility=visible onMouseOver=showdeps(last,false);mroll('mtop.') onMouseOut=unmroll('mtop.') CLASS=menuNNb>&nbsp;<A HREF='"+HomeLink+"' CLASS=menuNNb>"+HomeText+"</A></LAYER>");
	for (i=0;i<voci.length;i++)
		{
		var n=i;
		document.writeln("<LAYER NAME=mtop"+n+". position=absolute left="+leftmargin+" top="+eval(alto+topmargin+alto*i)+" width="+largo+" height="+alto+" clip=0,0,"+largo+","+alto+" bgColor="+roff+" visibility=visible onMouseOver=MostraMenu("+i+");mroll('mtop"+i+".');conta++ onMouseOut=last="+i+";unmroll('mtop"+i+".');conta-- CLASS=menuNNb>&nbsp;<A HREF=javascript:mroll('mtop"+i+".') onClick=vai('"+links[i][0]+"',"+i+",0) CLASS=menuNNb>"+voci[i][0]+"</A></LAYER>");
		for (l=1;l<voci[i].length;l++)
			document.writeln("<LAYER NAME=mdep"+i+"."+l+" position=absolute left="+eval(leftmargin+largo)+" top="+eval(topmargin+alto*i+alto*l)+" width="+largo+" height="+alto+" clip=0,0,"+largo+","+alto+" bgColor="+roff+" visibility=hidden onMouseOver=mroll('mdep"+n+"."+l+"');conta++ onMouseOut=unmroll('mdep"+n+"."+l+"');conta-- CLASS=menuNNb>&nbsp;<A HREF=javascript:mroll('mdep"+n+"."+l+"') onClick=vai('"+links[i][l]+"',"+i+","+l+") CLASS=menuNN>"+voci[i][l]+"</A></LAYER>");
		}
	}
	else
	{
	if (Home)
		document.write("<div id='mtop.' style=\"position:absolute;left:"+leftmargin+"px;top:"+topmargin+"px;width:"+largo+"px;height:"+alto+"px;background-color:"+roff+";visibility:visible;cursor:hand;\" onmouseover=\"showdeps(last,false);mroll('mtop.');\" onmouseout=\"unmroll('mtop.');\"><div class='menuIEb'><a href='"+HomeLink+"' class='menuIEb' onfocus='this.blur();'>&nbsp;"+HomeText+"</a></div></div>");
	for (i=0;i<voci.length;i++)
		{
		var n=i;
		document.writeln("<div id='mtop"+n+".' style=\"position:absolute;left:"+leftmargin+"px;top:"+eval(alto+topmargin+alto*i)+"px;width:"+largo+"px;height:"+alto+"px;background:"+roff+";visibility:visible;cursor:hand;\" onmouseover=\"MostraMenu("+n+");mroll('mtop"+n+".');conta++;\" onmouseout=\"last="+n+";unmroll('mtop"+n+".');conta--;\"><div class='menuIEb' onclick=\"vai('"+links[i][0]+"',"+i+",0);\">&nbsp;"+voci[i][0]+"</div></div>");
		for (l=1;l<voci[i].length;l++)
			document.writeln("<div id='mdep"+i+"."+l+"' style=\"position:absolute;left:"+eval(leftmargin+largo)+"px;top:"+eval(topmargin+alto*i+alto*l)+"px;width:"+largo+"px;height:"+alto+"px;background:"+roff+";visibility:hidden;cursor:hand;\" onmouseover=\"mroll('mdep"+n+"."+l+"');conta++;\" onmouseout=\"unmroll('mdep"+n+"."+l+"');conta--;\" class='menuIE' onclick=\"vai('"+links[i][l]+"',"+i+","+l+");\">&nbsp;"+voci[i][l]+"</div>");
		}
	}

timer=setInterval("NascondiMenu()",1000)

function NascondiMenu()
	{
	if (conta==0)
		{
		coloratutti(true)
		timer=setTimeout("coloratutti(false)",200);
		timer=setTimeout("showdeps(last,false)",250);
		}
	}

function coloratutti(col)
	{
	colore=col?ron:roff;
	for (i=0;i<voci.length;i++)
		for (j=1;j<voci[i].length;j++)
			{
		if (nn)
			document.layers["mdep"+i+"."+j].bgColor=colore;
		else
			if(document.all)
				document.all["mdep"+i+"."+j].style.background=colore;
				else
				document.getElementById('mdep'+i+"."+j).style.background=colore;
			}
	}

function MostraMenu(n)
	{
	showdeps(last,false);
	showdeps(n,true);
	last=n;
	}

function showdeps(n,act)
	{
	if (conta==0)
		{
		act?stat="visible":stat="hidden";
	if (nn)
		for (i=1;i<voci[n].length;i++)
			document.layers["mdep"+n+"."+i].visibility=stat;
	else
		for (i=1;i<voci[n].length;i++)
			if(document.all)
				document.all["mdep"+n+"."+i].style.visibility=stat;
				else
				document.getElementById('mdep'+n+"."+i).style.visibility=stat;
		}
	}

function vai(dove,r,c)
	{
	if (c>0)
		lev=nn?document.layers["mdep"+r+"."+c]:(document.all)?document.all["mdep"+r+"."+c].style:document.getElementById("mdep"+r+"."+c).style;
	else
		lev=nn?document.layers["mtop"+r+"."]:(document.all)?document.all["mtop"+r+"."].style:document.getElementById("mtop"+r+".").style;
	if (nn)
		{
		lev.bgColor=roff;
		timer=setTimeout("lev.bgColor=ron",50)
		timer=setTimeout("lev.bgColor=roff",100)
		timer=setTimeout("lev.bgColor=ron",150)
		timer=setTimeout("lev.bgColor=roff",200)
		timer=setTimeout("lev.bgColor=ron",250)
		}
		else
		{
		lev.background=roff;
		timer=setTimeout("lev.background=ron",50)
		timer=setTimeout("lev.background=roff",100)
		timer=setTimeout("lev.background=ron",150)
		timer=setTimeout("lev.background=roff",200)
		timer=setTimeout("lev.background=ron",250)
		}
   	if (navigator.userAgent.toLowerCase().indexOf("msie")!=-1 && navigator.platform.toLowerCase().indexOf("mac")=="mac")
	   document.write("")  
	timer=targets[r][c]=="self"?setTimeout("self.location.href='"+dove+"'",350):targets[r][c]=="new"?setTimeout("window.open('"+dove+"')",350):setTimeout("window.open('"+dove+"','','"+targets[r][c]+"')",350);
	}

function mroll(l)
	{
	LTop="mtop"+l.substr(4,l.indexOf(".")-4)+".";
	nn?document.layers[LTop].bgColor=ron:(document.all)?document.all[LTop].style.background=ron:document.getElementById(LTop).style.background=ron;
	nn?document.layers[l].bgColor=ron:(document.all)?document.all[l].style.background=ron:document.getElementById(l).style.background=ron;
	document.getElementById?document.getElementById(l).style.cursor=document.all?'hand':'pointer':'void(0)';
	if (l.substr(0,4)=="mdep")
		stringa=wst[l.substr(4,l.indexOf(".")-4)][l.substring(l.indexOf(".")+1,l.length)];
			else if (l.length>5)
			stringa=wst[l.substr(4,l.indexOf(".")-4)][0];
				else stringa="Home Page";		
	window.status=stringa;
	timer=setTimeout("window.status=stringa",20);
	}

function unmroll(l)
	{
	LTop="mtop"+l.substr(4,l.indexOf(".")-4)+".";
	nn?document.layers[LTop].bgColor=roff:(document.all)?document.all[LTop].style.background=roff:document.getElementById(LTop).style.background=roff;
	nn?document.layers[l].bgColor=roff:(document.all)?document.all[l].style.background=roff:document.getElementById(l).style.background=roff;
	window.status="";
	}

onresize=function() {self.location.reload()};
