// JavaScript Document

function openSubMenu(elmLink,elmMenu)
{
	o = document.getElementById("submenu"+elmMenu)
	elmLink = document.getElementById("ttrmenu"+elmMenu)
	objg = eval('o');
	timL = setTimeout('show(objg)',100);
	//elmLink.style.backgroundColor = color;
	o.style.backgroundColor = '#FFFFFF';
	elmLink.style.color = '#88B86A';
}

function closeSubMenu(elmLink,elmMenu)
{
	affiche();
	elmLink = document.getElementById("ttrmenu"+elmMenu)
	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  affichedroite(type)
{
		if(document.getElementById){
			lay = document.getElementById(type)  
		}else if(document.all){
			lay = document.all[type] 
		}else if(document.layers){
			lay = document.layers(type)
		}
		if(lay){
			if( lay.style.overflow != "visible"){
				lay.style.overflow = "visible"
				lay.style.display = "block"
				/*if(navigator.appName.indexOf("Explorer") != -1){
					lay.style.display = ""
				}else{
					lay.style.display = "inline";
					
				}*/
				lay.style.zIndex = "4"
			}else{
				lay.style.overflow = "hidden"
				lay.style.display = "none"
				lay.style.zIndex = "1"
			}
		}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}