// JavaScript Document
function openSubMenu(elmLink,elmMenu,color)
{
	o = document.getElementById(elmMenu)
	objg = eval('o');
	timL = setTimeout('show(objg)',100);
	/*document.getElementById(elmMenu).style.width = elmLink.offsetWidth+'px';
	document.getElementById(elmMenu).style.left = elmLink.offsetLeft+'px';
	document.getElementById(elmMenu).style.display = 'block';*/
	elmLink.style.backgroundColor = color;
	o.style.backgroundColor = color;
}

function closeSubMenu(elmLink,elmMenu,color)
{
	affiche();
	//document.getElementById(elmMenu).style.display = 'none';
	elmLink.style.backgroundColor = '';
}
//Nombre de menu +1
var nbmenu = 4;
function show(ol){
	if(!ol){
	}else{
		ol.style.visibility='visible';
	}
	for(i=1;i<nbmenu;i++){		
		mydiv = document.getElementById('submenu'+i);
		if (mydiv!=ol){
			mydiv.style.visibility='hidden';
		}
	}
}
function affiche(o){
	o = document.getElementById(o)
	objg = eval('o');
	timL = setTimeout('show(objg)',100);
}

function masque(){
	affiche();
}

function affiche_popup(page, nom_fenetre,w,h)
{
window.open (page, nom_fenetre,'width='+w+',height='+h+',toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')
}
