//		var indiceprecedente=100, posizione=0, browserName=navigator.appName, browserVer=parseInt(navigator.appVersion), js=false, tabShow=0, varvoce = 0, varcatamm = "", varcodamm = "", varpercorsi = "", varparere = "";
		var indiceprecedente=100, posizione=0, browserName=navigator.appName, browserVer=parseInt(navigator.appVersion), js=false, tabShow=0;

		function mousein(titolo) {
			window.status=titolo;
	        if ((browserName.substring(0,9) == "Microsoft" ) && (browserVer >= 4)){
				if (window.event.srcElement.color != "#981414"){
					window.event.srcElement.style.color="#981414";
				}
			}
		}

		function mouseout() {
			window.status="";
        	if ((browserName.substring(0,9) == "Microsoft" ) && (browserVer >= 4)){
				if (window.event.srcElement.className == "menu1"){
					window.event.srcElement.style.color="#ffffff";
				}
				else{
					if (window.event.srcElement.color != "#981414"){
						window.event.srcElement.style.color="#000080";
					}
				}
			}			
		}

		function opendiv(varindice, sezione){
			var indice = varindice - 1, voce, varimg="toc" + varindice;
	        if ((browserName.substring(0,9) == "Microsoft" ) && (browserVer >= 4)){
				voce=document.all.item("indice", indice);
				if (voce.style.display	== ""){
					voce.style.display	= "none";		
					document [varimg].src = "../immagini/piu" + sezione + ".gif";
				}
				else{
					voce.style.display = "";		
					document [varimg].src = "../immagini/meno" + sezione + ".gif";
				}
			}
		}

		function visualizzamenu(varindice){
	        if ((browserName.substring(0,9) == "Microsoft" ) && (browserVer >= 4)){
				var voce=document.all.item("menu", varindice), lunghezza=voce.scrollWidth;
				if (window.event.srcElement.tagName == "FONT"){
					posizione = (window.event.srcElement.offsetLeft + 3);
				}
				if (voce.style.visibility == "visible"){
					voce.style.visibility = "";		
				}
				else{
					if (varindice == (document.all.tags("DIV").length - 1)){
						posizione = (window.screen.width - lunghezza) - 31;
						voce.style.left = posizione;		
					}
					else{
						voce.style.left = posizione;		
					}

					voce.style.width = lunghezza + 11;		
					voce.style.visibility = "visible";		
				}
			}
			else{
				nome = "menu" + varindice;
				posizione = document.layers[nome].visibility = "show";
				if (tabShow == 0){
					document.layers[nome].left = posizione;		
					document.layers[nome].visibility = "show";		
					tabShow = 1;
					return;
				}
				else{
					document.layers[nome].visibility = "hide";		
					tabShow = 0;
					return;
				}
			}
		}
		
		function stampa(livellodir, varurl){
			if (varurl.indexOf("percorsiguidati[3") < 0){
				varvoce = 0;
//				varcatamm = "";
//				varcodamm = "";
//				varpercorsi = "";
//				varparere = "";

				finestrastampa = window.open(livellodir + "stampa/stampa.asp?voce=" + varvoce + "&fileurl=" + varurl, "finestrastampa", "menubar=1, toolbar=0, status=0, scrollbars=1, resizable=1, width=400, height=400");
			}
			else{
				finestrastampa = window.open(livellodir + "stampa/stampa.asp?parere=" + top.varparere + "&voce=" + top.varvoce + "&catamm=" + top.varcatamm + "&codamm=" + top.varcodamm + "&percorsi=" + top.varpercorsi + "&fileurl=" + varurl, "finestrastampa", "menubar=1, toolbar=0, status=0, scrollbars=1, resizable=1, width=400, height=400");
			}
//			alert("stampa/stampa.asp?parere=" + varparere + "&voce=" + varvoce + "&catamm=" + varcatamm + "&codamm=" + varcodamm + "&percorsi=" + varpercorsi + "&fileurl=" + varurl)
		}
		
		function invia(){
			indice = document.formamministrazioni.elencoamministrazioni.selectedIndex;
			valoreindice = document.formamministrazioni.elencoamministrazioni[indice].value;
			top.location.href = "index.asp?catamm=" + top.varcatamm + "&codamm=" + valoreindice;
		}	
		
		function aprifinestra(imgname, sizex, sizey) {
			nuovafinestra = window.open(imgname,"imgfin","toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=yes, resizeable=yes,width=" + sizex + ",height=" + sizey);
		}
