// JavaScript Document

function openSubMenu(elmLink,elmMenu,color)
{
	o = document.getElementById(elmMenu)
	objg = eval('o');
	timL = setTimeout('show(objg)',100);
	elmLink.style.backgroundColor = color;
	o.style.backgroundColor = '#FFFFFF';
	elmLink.style.color = '#000000';
}

function closeSubMenu(elmLink,elmMenu,color)
{
	affiche();
	elmLink.style.backgroundColor = '';
	elmLink.style.color = '';
}
//Nombre de menu +1
var nbmenu = 5;
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 setFontSize(classe,fontSize)
{
	var tags = cssQuery(classe);
	for (t=0;t<tags.length;t++) tags[t].style.fontSize=fontSize+'px';
	return fontSize;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}