// JavaScript Document
//Contents for menu 1
var menu_prodotti=new Array()
menu_prodotti[0]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/PRODOTTI/prodotti_soluzioni.html#Trasporto-Logistica">Trasporto - Logistica</a>'
menu_prodotti[1]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/PRODOTTI/prodotti_soluzioni.html#Distribuzione-Supply Chain">Distribuzione - Supply Chain</a>'
menu_prodotti[2]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/PRODOTTI/prodotti_soluzioni.html#Magazzini">Magazzini</a>'
menu_prodotti[3]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/PRODOTTI/prodotti_soluzioni.html#Previsione & Analytics">Previsione & Analytics</a>'
menu_prodotti[5]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/PRODOTTI/prodotti_soluzioni.html#Simulazione">Simulazione</a>'
menu_prodotti[6]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/PRODOTTI/prodotti_soluzioni.html#Ospedali-Sanità">Ospedali - Sanità</a>'
menu_prodotti[7]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/PRODOTTI/prodotti_soluzioni.html#Marketing-Sales">Marketing-Sales</a>'
menu_prodotti[8]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/PRODOTTI/prodotti_soluzioni.html#Manufacturing">Manufacturing</a>'
menu_prodotti[9]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/PRODOTTI/prodotti_soluzioni.html#Automazione">Automazione</a>'

//Contents for menu 2, and so on
var menu_settori=new Array()
menu_settori[0]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/SETTORI/abbigliamento_moda.html">Abbigliamento</a>'
menu_settori[1]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/OTTIMIZZAZIONE/ottimizzazione_aeroporto.html">Aeroporti</a>'
menu_settori[2]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/SETTORI/call_center.html">Call Center & Banche</a>'
menu_settori[3]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/OTTIMIZZAZIONE/ottimizzazione_distribuzione.html">Distribuzione</a>'
menu_settori[4]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/SETTORI/food_beverage.html">Food & Beverage</a>'
menu_settori[5]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/OTTIMIZZAZIONE/ottimizzazione_logistica.html">Logistica</a>'
menu_settori[6]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/OTTIMIZZAZIONE/ottimizzazione_magazzino.html">Magazzino</a>'
menu_settori[7]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/SETTORI/metrocargo.html">Metrocargo</a>'
menu_settori[8]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/OTTIMIZZAZIONE/ottimizzazione_porti_ferrovie.html">Porti & Ferrovie</a>'
menu_settori[9]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/SETTORI/banche_poste.html">Poste & Espresso</a>'
menu_settori[10]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/OTTIMIZZAZIONE/ottimizzazione_produzione.html">Produzione</a>'
menu_settori[11]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/SETTORI/pubblica_amministrazione.html">PA</a>'
menu_settori[12]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/SETTORI/retail.html">Retail</a>'
menu_settori[13]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/SETTORI/sanita.html">Sanità</a>'
menu_settori[14]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/OTTIMIZZAZIONE/ottimizzazione_ospedali_militari1.html">Settore Militare</a>'
menu_settori[15]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/OTTIMIZZAZIONE/ottimizzazione_supply_chain.html">Supply Chain</a>'
menu_settori[16]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/OTTIMIZZAZIONE/ottimizzazione_trasporti.html">Trasporti</a>'
		
//Contents for menu 3, and so on
var menu_contatti=new Array()
menu_contatti[0]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/CONTATTI/info_e_contatti.html">Contattaci</a>'
menu_contatti[1]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/CONTATTI/divisione_opt_sim.html">Info @</a>'
menu_contatti[2]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/CONTATTI/lavora_con_noi.html">Lavora con noi</a>'
menu_contatti[3]='<a href="http://www.actsolutions.it/ACTSOLUTIONS-ITA/CONTATTI/dove_siamo.html">Dove siamo</a>'



var menuwidth='165px' //default menu width
var menubgcolor='#F8F8F8'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}

function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu