
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var azienda=new Array()
azienda[0]='<a href="./pagine/metaldetector_azienda.htm">&nbsp Profilo</a><br>'
azienda[1]='<a href="./privacy.htm">&nbsp Privacy</a><br>'
azienda[2]='<a href="./informativa.htm">&nbsp Trattazione dei dati</a><br>'
azienda[3]='<a href="./mappa_sito.htm">&nbsp Mappa del sito</a><br>'

//Menu Prodotti
var prodotti=new Array()
prodotti[0]='<a href="./pagine/metaldetector_prodotti.htm">&nbsp Linea Metalim</a><br>'
prodotti[1]='<a href="./pagine/metaldetector_tunnal.htm">&nbsp &nbsp &nbsp Metalim Tunn-Al</a><br>'
prodotti[2]='<a href="./pagine/metaldetector_toral.htm">&nbsp &nbsp &nbsp Metalim Tor-Al</a><br>'
prodotti[3]='<a href="./pagine/metaldetector_gravita.htm">&nbsp &nbsp &nbsp Serie G</a><br>'
prodotti[4]='<a href="./pagine/metaldetector_compal.htm">&nbsp Comp-Al</a><br>'
prodotti[5]='<a href="./accessori/metalremote.htm">&nbsp Metal Remote</a><br>'
prodotti[6]='<a href="./pagine/metaldetector_accessori.htm">&nbsp Catalogo</a><br>'

// Menu Controllo Peso
var peso=new Array()
peso[0]='<a href="./pagine/pesatrice_combinata.htm">&nbsp Pesatrice combinata</a><br>'
peso[1]='<a href="./pagine/accessori_pesatrice_combinata.htm">&nbsp Accessori</a><br>'
peso[2]='<a href="./pagine/documentazione_pesatrice_combinata.htm">&nbsp Documentazione</a><br>'
peso[3]='<a href="./pagine/normative_pesatrice_combinata.htm">&nbsp Normative</a><br>'

//Menu Installazioni
var installazioni=new Array()
installazioni[0]='<a href="./pagine/metaldetector_installazioni_guida.htm">&nbsp Guida di installazione</a><br>'
installazioni[1]='<a href="./pagine/metaldetector_installazioni_tunnal.htm">&nbsp Installazioni Tunn-Al</a><br>'
installazioni[2]='<a href="./pagine/metaldetector_installazioni_toral.htm">&nbsp Installazioni Tor-Al</a><br>'
installazioni[3]='<a href="./pagine/metaldetector_installazioni_referenze.htm">&nbsp Referenze</a><br>'

//Menu Utility
var utility=new Array()
utility[0]='<a href="./pagine/metaldetector_notizie_FAQ.htm">&nbsp F.A.Q.</a><br>'
utility[1]='<a href="./pagine/metaldetector_aiuto_download.htm">&nbsp Download</a><br>'
utility[2]='<a href="mailto:info@coelmodena.com">&nbsp Poni una domanda</a><br>'

// Menu Contatti
var contatti=new Array()
contatti[0]='<a href="./pagine/metaldetector_contatti_preventivo.htm">&nbsp Preventivi</a><br>'
contatti[1]='<a href="./pagine/metaldetector_contatti_raggiungerci.htm">&nbsp Come raggiungerci</a><br>'
contatti[2]='<a href="mailto:info@coelmodena.com">&nbsp Invia Mail</a><br>'

var menuwidth='200px' //default menu width
var menubgcolor='white' //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 windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
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

function ApriFinestra(Indirizzo,NomeWin,Dimensione) {
  window.open(Indirizzo,NomeWin,Dimensione);
}
