nav=new Array(
    new Array("0","société","azienda.htm",53,
	    new Array(
	        new Array("0","Group","gruppoDelachaux.htm"),
            new Array("1","Société","societa.htm"),
            new Array("2","Tehnologies","tecnologie.htm"),
            new Array("3","Visitez-nous","vieniaTrovarci.htm"),
            new Array("4","Contactez-nous","contattaci.htm")
	)
	),
   	 new Array("1","enrouleurs","avvolgitori.htm",83,
	    new Array(
	        new Array("0","Ressort","molla.htm"),
            new Array("1","Moteur","motore.htm"),
            new Array("2","Cables","cavi.htm"),
            new Array("3","Tuyaux","tubi.htm")
	)
   ),
   new Array("2","tunnelier","underground.htm",84,
	    new Array(
	        new Array("0","Enrouleurs","underground_avvolgitori.htm"),
            new Array("1","Accessoires","accessori.htm"),
            new Array("2","Cables","underground_cavi.htm"),
            new Array("3","Tuyaux","underground_tubi.htm")
	)
   ),
   new Array("3","collecteurs","collettori.htm",76,
	    new Array(
	        new Array("0","Moulés","stampati.htm"),
            new Array("1","Tailles fixes","taglieFisse.htm"),
            new Array("2","Modulaires","modulari.htm"),
            new Array("3","Antideflagrants","antideflagranti.htm"),
            new Array("4","Secteurs spécifiques","specificiPerSettori.htm"),
            new Array("5","Joint Fluidiques","giuntiFluidici.htm")
	)
   ),
   new Array("4","barres&festons","barrefestoni.htm",100,
	    new Array(
	        new Array("0","Barres","barre.htm"),
            new Array("1","Festons","festoni.htm"),
            new Array("2","Electronique","elettronica.htm")
	)
   ),
   new Array("5","trenchguard","trenchguard.htm",84,
	    new Array(
	        new Array("0","Bavette","nastro.htm"),
            new Array("1","Caniveau","canaletta.htm"),
            new Array("2","Accessoires","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(
'Machines pour le  travail du marbre', 'Machines à bois', 'Machines pour le travail du plastique', 'Machines pour le travail du verre', 'Machines travaillantes par enlèvement de copeaux','Textile','Emballage','Conditionnement','Embouteillage-Remplissage','Automation','Energie éolienne'
);
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";			
		}
	 }	
};
