// JavaScript Document


 function getElementsByClass(maClass) {
       var tabRetour = new Array();
      var tabTmp = new Array();
      tabTmp = document.getElementsByTagName("*");
      j=0;
       for (i=0; i<tabTmp.length; i++) {
           if (tabTmp[i].className==maClass) {
             tabRetour[j]=tabTmp[i];
         j++;
           }
       }
       return tabRetour;
    }
	




function nav(obj){
	liste=getElementsByClass("smenu");
	 
	for(i in liste){
		liste[i].style.visibility="hidden";
		
	}
	
	
	reference = document.getElementById(obj)	
	cible = document.getElementById("s"+obj.toString())	
	if(cible==undefined)return;
	hc=cible.offsetHeight*-1;
	cible.style.top=(hc-15)+"px";
	cible.style.visibility="visible";
	
	
}