<!--// Michel Deboom novembre 2004, menu arborescent expansif

//ajoute l'image cliquable devant les items accédants aux sous-menus et cache ceux-ci.
function initMenu(){
  objMenu=document.getElementById('menuv');
  lis=objMenu.getElementsByTagName('li');
  for(i=0;i<lis.length;i++){ var L=lis[i];
  	if(L.getElementsByTagName('ul')[0]){
    	L.innerHTML='<a href="#" title="développer ?" style="background-color:transparent;border:0;margin:0;padding:0" onkeydown="af(this)"  onmousedown="af(this)"><img border=0 src='+fermer+' \/> '+L.innerHTML+'<\/a>';
    	L.style.listStyle="none";
    	L.getElementsByTagName('ul')[0].style.display="none";
    } 
  }
}

function ef(el) { //réduit
with (el){
  parentNode.getElementsByTagName('ul')[0].style.display="none";
  onmousedown=onkeydown=function(){af(this)};
  firstChild.src=fermer;title="développer ?"
  }
}

function af(el) { //développe
with (el){
  parentNode.getElementsByTagName('ul')[0].style.display="block";
  onmousedown=onkeydown=function(){ef(this)};
  firstChild.src=ouvert;title="réduire ?"
  }
}

window.onload=initMenu
//-->