/* FUNZIONI DEL MENU DINAMICO.... CONTROLLANO LA DISCESA DEL MENU A SCOMPARSA E L'INTERAZIONE ONMOUSEOVER CON GLI ELEMENTI DELLO STESSO attenzione agli indici! viene posto come tetto ($tot - 2) perchè l'indice 0 non viene mai usato come menu e l'indice uno equivale alla voce di menu due! bisogna trovare una soluzione al problema! */ function show_menu ($source, $tot, $msozz) { if (checkbrowser() == "isIE") { document.getElementById($msozz).style.visibility = "visible"; } else if (checkbrowser () == "isSF") { document.getElementById($msozz).style.visibility = "visible"; } document.getElementById('test').style.zIndex = 1; for ($count = 0; $count < ($tot - 2); $count++) { $element = $source + "_sm" + ($count + 1); document.getElementById($element).style.visibility = "visible"; } } function hide_menu ($source, $tot, $msozz) { if (checkbrowser() == "isIE") { document.getElementById($msozz).style.visibility = "hidden"; } else if (checkbrowser () == "isSF") { document.getElementById($msozz).style.visibility = "hidden"; } document.getElementById('test').style.zIndex = 15; for ($count = 0; $count < ($tot - 2); $count++) { $element = $source + "_sm" + ($count + 1); document.getElementById($element).style.visibility = "hidden"; } } function checkbrowser() { browsertype = navigator.userAgent.toLowerCase(); if (browsertype.indexOf('msie') != -1) { browser = "isIE"; return browser; } else if (browsertype.indexOf("netscape") != -1) { browser = "isNS"; return browser; } }