nav=new Array(
    new Array("0","company","azienda.htm",53,
	    new Array(
	        new Array("0","The Group","gruppoDelachaux.htm"),
            new Array("1","Company","societa.htm"),
            new Array("2","Technolgies","tecnologie.htm"),
            new Array("3","Where we are","vieniaTrovarci.htm"),
            new Array("4","Contact us","contattaci.htm")
	)
	),
   	 new Array("1","cable reels","avvolgitori.htm",83,
	    new Array(
	        new Array("0","Springs","molla.htm"),
            new Array("1","Motor","motore.htm"),
            new Array("2","Cables","cavi.htm"),
            new Array("3","Hoses","tubi.htm")
	)
   ),
   new Array("2","underground","underground.htm",84,
	    new Array(
	        new Array("0","Cable reels","underground_avvolgitori.htm"),
            new Array("1","Fittings","accessori.htm"),
            new Array("2","Cables","underground_cavi.htm"),
            new Array("3","Hoses","underground_tubi.htm")
	)
   ),
   new Array("3","slip rings","collettori.htm",76,
	    new Array(
	        new Array("0","Molded","stampati.htm"),
            new Array("1","Fixed Sizes","taglieFisse.htm"),
            new Array("2","Modular","modulari.htm"),
            new Array("3","Explosion-proof","antideflagranti.htm"),
            new Array("4","Specific sectors","specificiPerSettori.htm"),
            new Array("5","Fluidic joints","giuntiFluidici.htm")
	)
   ),
   new Array("4","bars&festoons","barrefestoni.htm",100,
	    new Array(
	        new Array("0","Bars","barre.htm"),
            new Array("1","Festoons","festoni.htm"),
            new Array("2","Electronics","elettronica.htm")
	)
   ),
   new Array("5","trenchguard","trenchguard.htm",84,
	    new Array(
	        new Array("0","Belt","nastro.htm"),
            new Array("1","Trench","canaletta.htm"),
            new Array("2","Fittings","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(
'Marble working machines', 'Wood working machines', 'Plastic working machines', 'Glass working machines', 'Shaving removal machines' ,'Textile','Packaging','Packing','Bottling-Filling','Automation','Wind Power'
);
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";			
		}
	 }	
};
