<!--

/* fichier partage par toute les pages */

/* menu deroulant */
var oldMenu = null;

if (!document.getElementById)
    document.getElementById = function() { return null; }

function onMenu(menuId) {
	var menu = document.getElementById(menuId);
	var effacemenu = document.getElementById('efface');

	if ((menu != oldMenu) && (oldMenu != null))
		{
		oldMenu.style.display = 'none';
		}
		
	effacemenu.style.display = 'block';
	menu.style.display = 'block';
	oldMenu = menu;
}


function effaceMenu() {
	var effacemenu = document.getElementById('efface');
		if (oldMenu != null)
		{
		effacemenu.style.display = 'none';
		oldMenu.style.display = 'none';
		}
}



/* LIEN EXTERNE REMPLACE BLANK */

function lienext(URL) {
newWindow = window.open(URL,"lienext", "toolbar=1, directories=1, status=1, menubar=1, scrollbars=1, resizable=1, location=1");
}




/* CHANGE DIV DISPLAY INLINE  */

function chgdisplay(id){
	if(document.getElementById){
		o = document.getElementById(id);
		if(o){
			o.style.display = ((o.style.display=='none'||o.style.display=='')?'inline':'none');
		}
	}
	return false;
}


/* MENU NIV2  */

var oldmenuniv2 = null;

if (!document.getElementById)
    document.getElementById = function() { return null; }

function onmenuniv2(menuniv2id) {
	var menuniv2 = document.getElementById(menuniv2id);

	if ((menuniv2 != oldmenuniv2) && (oldmenuniv2 != null))
		{
		oldmenuniv2.style.display = 'none';
		}
		
	menuniv2.style.display = 'block';
	oldmenuniv2 = menuniv2;
}


/* Select dans UNE graphique */

function aller_a(targ,selObj,restore){
  if (selObj.options[selObj.selectedIndex].value != "") {
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
  }
}



//-->
