var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);

function showMenu(idDiv) {
  	for (var i = 1; i<=5; i++)
		cacheDiv('smenu'+i);
	
	if (idDiv)
		montreDiv('smenu'+idDiv);
}

function cacheDiv(idDiv)
{
    if (nava) 
    	theDiv = document.layers[idDiv];
    else if (dom) 
    	theDiv = document.getElementById(idDiv).style;
    else if (iex) 
    	theDiv = document.all[idDiv].style;
    
    if (theDiv)
    	theDiv.visibility = 'hidden';
}

function montreDiv(idDiv)
{
    if (nava) 
    	theDiv = document.layers[idDiv];
    else if (dom) 
    	theDiv = document.getElementById(idDiv).style;
    else if (iex) 
    	theDiv = document.all[idDiv].style;
    
    if (theDiv)
    	theDiv.visibility = 'visible';
}

function montreTrombi(libNom, srcImg)
{
    document.forms["trombi"].NomPrenom.value = libNom;
    document.images["photo"].src = 'fileadmin/gabarit/img/trombi/' + srcImg; 
    montreDiv('photoGD');
}

function OnMenu(elt) 
{
	elt.style.listStyleImage= 'url("/fileadmin/gabarit/img/ssmenu/puce_on.gif")';
}
function OutMenu(elt) 
{
	elt.style.listStyleImage= 'url("/fileadmin/gabarit/img/ssmenu/puce.gif")';
}