function isDefined(chaine) { return (eval(chaine))?true:false; } timout=500; timer=0; function shiv(num) { clearTimeout(timer); close_all(num); document.getElementById("dhtml"+num).style.visibility="visible"; document.getElementById("imgssmenu"+num).src="http://www.laciteverte.com/pix/fr/nav/selmenu"+num+".png"; } function shivno(num) { clearTimeout(timer); close_all(num); document.getElementById("imgssmenu"+num).src="http://www.laciteverte.com/pix/fr/nav/selmenu"+num+".png"; } function hidi() { timer=setTimeout("close_all()",timout); } function close_all(except) { for (i=1; i<=12; i++) { if (i!=except) { if (isDefined('document.getElementById("dhtml'+i+'")')) { obj=eval('document.getElementById("dhtml'+i+'")'); obj.style.visibility="hidden"; document.getElementById("imgssmenu"+i).src="http://www.laciteverte.com/pix/fr/nav/menu"+i+".png"; } } } }