nav=new Array(
    new Array("0","azienda","azienda.htm",53,
	    new Array(
	        new Array("0","Gruppo Delachaux","gruppoDelachaux.htm"),
            new Array("1","Società","societa.htm"),
            new Array("2","Tecnologie","tecnologie.htm"),
            new Array("3","Vieni a trovarci","vieniaTrovarci.htm"),
            new Array("4","Contattaci","contattaci.htm")
	)
	),
   	 new Array("1","avvolgitori","avvolgitori.htm",83,
	    new Array(
	        new Array("0","Molla","molla.htm"),
            new Array("1","Motore","motore.htm"),
            new Array("2","Cavi","cavi.htm"),
            new Array("3","Tubi","tubi.htm")
	)
   ),
   new Array("2","underground","underground.htm",84,
	    new Array(
	        new Array("0","Avvolgitori","underground_avvolgitori.htm"),
            new Array("1","Accessori","accessori.htm"),
            new Array("2","Cavi","underground_cavi.htm"),
            new Array("3","Tubi","underground_tubi.htm")
	)
   ),
   new Array("3","collettori","collettori.htm",76,
	    new Array(
	        new Array("0","Stampati","stampati.htm"),
            new Array("1","Taglie fisse","taglieFisse.htm"),
            new Array("2","Modulari","modulari.htm"),
            new Array("3","Antideflagranti","antideflagranti.htm"),
            new Array("4","Specifici per settori","specificiPerSettori.htm"),
            new Array("5","Giunti fluidici","giuntiFluidici.htm")
	)
   ),
   new Array("4","barrefestoni","barrefestoni.htm",100,
	    new Array(
	        new Array("0","Barre","barre.htm"),
            new Array("1","Festoni","festoni.htm"),
            new Array("2","Elettronica","elettronica.htm")
	)
   ),
   new Array("5","trenchguard","trenchguard.htm",84,
	    new Array(
	        new Array("0","Nastro","nastro.htm"),
            new Array("1","Canaletta","canaletta.htm"),
            new Array("2","Accessori","trenchguard_accessori.htm")
	)
   )
);
function go2Url() {
	var URL = form.sections.options[form.sections.selectedIndex].value;
	if(URL != ""){
		document.location = URL;
	}
};

var IE4 = (document.all && !document.getElementById) ? true : false;
var NS4 = (document.layers) ? true : false;
var IE5 = (document.all && document.getElementById) ? true : false;
var N6 = (document.getElementById && !document.all) ? true : false;
var visible = true;
//populate the following array with the desired values in the dropdown
var sections = new Array(
'Macchine lavorazione marmo', 'Macchine lavorazione legno', 'Macchine lavorazione plastica', 'Macchine lavorazione vetro', 'Macchine per asportazione truciolo' ,'Tessili','Imballaggio','Confezionamento','Imbottigliamento','Automazione','Energia Eolica'
);
var urls = new Array(
'liv3_macchineLavorazioneMarmo.htm','liv3_macchineLavorazioneLegno.htm','liv3_macchineLavorazionePlastica.htm','liv3_macchineLavorazioneVetro.htm','liv3_macchineAsportazioneTruciolo.htm','liv3_tessili.htm','liv3_imballaggio.htm','liv3_confezionamento.htm','liv3_imbottigliamento.htm','liv3_automazione.htm','liv3_energiaEolica.htm'
);
function init2(){
	visible = true;
	document.getElementById("ddS").style.display="none";
}
function init()	{
	document.getElementById("ddS").innerHTML="";
	document.getElementById("ddS").style.display = "";
	for(i=0;i<=sections.length-1;i++){
		document.getElementById("ddS").innerHTML += "<div id="+i+" style='font-size:10px' onclick=javascript:sendId(this.id) onmouseover=setCursor(this) onmouseout=javascript:this.style.backgroundColor='000066'>" + sections[i] + "<br><IMG src='img/nada.gif' width='1px' height='5px' alt=' border='0'></div>";
	}
	document.getElementById("ddS").style.width=document.getElementById("ddS").offsetWidth+10;
	document.getElementById("ddS").style.display="none";
};

function buildDropDown(){
	if(visible == true){
		document.getElementById("ddS").innerHTML="";
		document.getElementById("ddS").style.display = "";
		for(i=0;i<=sections.length-1;i++){
			document.getElementById("ddS").innerHTML += "<div id="+i+" style='font-size:10px' onclick=javascript:sendId(this.id) onmouseover=setCursor(this) onmouseout=javascript:this.style.backgroundColor='000066'>" + sections[i] + "<br><IMG src='img/nada.gif' width='1px' height='5px' alt=' border='0'></div>";
				if (document.getElementById(i).innerHTML==document.getElementById("txt").value){
					document.getElementById(i).style.backgroundColor="CCCCCC";
				}
				else{
					document.getElementById(i).style.backgroundColor="FFFFFF";	
				}
		}
		if (NS4 || N6){
		   	document.getElementById("ddS").style.overflow="";
			document.getElementById("ddS").style.overflow="scroll";
		}
		visible = false;
	}
	else{
		document.getElementById("ddS").style.display="none";
		visible = true;
	}
};
	
function sendId(i){
	document.getElementById(i).style.backgroundColor="FFFFFF";
	var sendval1=i;
	document.getElementById("ddS").style.display="none";
	document.getElementById("txt").value=sections[i];
	document.location = urls[i];
};

function setCursor(ob){
	 for(i=0;i<=sections.length-1;i++){
		ob.style.cursor="default";	 
		document.getElementById(i).style.backgroundColor="FFFFFF";
		document.getElementById(i).style.color="#666666";			
		if (NS4 || N6){
			ob.style.backgroundColor="#000066";		
		}
		if (IE4 || IE5){
			ob.style.backgroundColor="#000066";
			ob.style.color="#FFFFFF";			
		}
	 }	
};
