function displaymenu(idmenu,parent){
	layer=getLayer(idmenu);
	layer2=getLayer(parent);
	div1=getLayer("col")
	div2=getLayer("gauche1")
	div3=getLayer("contenant");
	
	haut=getHeight();
	
	
	
	if(layer.style.display=="block"){
		if(div3.offsetHeight>haut) div2.style.height=div2.offsetHeight-layer.offsetHeight+"px";
		else footerint();
		layer.style.display="none";
		layer2.className = "fermer";
	} 
	else{
		layer.style.display="block";
		layer2.className = "ouvert";
		if(div1.offsetHeight>div2.offsetHeight-35){
			div2.style.height=div2.offsetHeight+layer.offsetHeight+"px";
		}
	} 

}

function footer(){
	div1=getLayer("contenant");
	back1=getLayer('shadow');
	back2=getLayer('shadow2');
	
	div2=getLayer("servicesacc");
	div3=getLayer("noussommes");
	div4=getLayer("contenuservices");
	
	haut=getHeight();
	
	if((div2.offsetHeight-90)<div3.offsetHeight){
		div2.style.height=div3.offsetHeight+90+"px";
		div4.style.height=div3.offsetHeight+13+"px";
	}
	else{
		div4.style.height=div4.offsetHeight+10+"px";
		div3.style.height=div2.offsetHeight-90+"px";
	}
	
	if(haut>div1.offsetHeight){
		div3.style.height=div3.offsetHeight+(haut-div1.offsetHeight)-13+"px";
		div4.style.height=div3.offsetHeight+13+"px";
	}
	
	if (isMinIE5 && navigator.appVersion.indexOf("Macintosh") != -1){
		back1.style.height=div4.offsetHeight+102+"px";
		back2.style.height=div4.offsetHeight+102+"px";
		div4.style.height=div4.offsetHeight+25+"px";
	}
	else{
		back1.style.height=div4.offsetHeight+77+"px";
		back2.style.height=div4.offsetHeight+77+"px";

	}
	
}

function footerint(){
	div1=getLayer("contenant");
	div2=getLayer("gauche1");
	
	haut=getHeight();
	
	if(haut>div1.offsetHeight){
		if(navigator.appVersion.indexOf("Macintosh") != -1){
			if(isMinIE5) div2.style.height=div2.offsetHeight+(haut-div1.offsetHeight)-30+"px";
			else div2.style.height=div2.offsetHeight+(haut-div1.offsetHeight)-20+"px";
		} 
		else div2.style.height=div2.offsetHeight+(haut-div1.offsetHeight)+"px";
	}
	else{
		if(div2.offsetHeight<200){
			div2.style.height=200+"px";
		}
	}
	
}

function footerint2(){
	div1=getLayer("contenant");
	div2=getLayer("gauche1");
	div3=getLayer("temoignages");
	
	haut=getHeight();
	
	if(div2.offsetHeight<div3.offsetHeight+80){
		div2.style.height=div3.offsetHeight+150+"px";
	}
	else{
		div3.style.height=div2.offsetHeight-165+"px";
	}
	
	if(haut>div1.offsetHeight){
		if(navigator.appVersion.indexOf("Macintosh") != -1){
			if(isMinIE5){
				div2.style.height=div2.offsetHeight+(haut-div1.offsetHeight)-30+"px";
				div3.style.height=div2.offsetHeight-135+"px";
			} 
			else{
				div2.style.height=div2.offsetHeight+(haut-div1.offsetHeight)-20+"px";
				div3.style.height=div2.offsetHeight-150+"px";
			} 
		} 
		else{
			div2.style.height=div2.offsetHeight+(haut-div1.offsetHeight)+"px";
			div3.style.height=div2.offsetHeight-150+"px";
		}
	}
}

var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&
              parseFloat(navigator.appVersion) >= 4 &&  parseFloat(navigator.appVersion) < 5) ? 1 : 0;
var isMinIE4 = (document.all) ? 1 : 0;
var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;
var NS6 = (document.getElementById&&!document.all)




function getLayer(name) {
  if (isMinNS4)
    return findLayer(name, document);
  if (isMinIE4)
    return eval('document.all.' + name);
	if (NS6)
		return document.getElementById(name);
  return null;
}

function getHeight(){
	if(NS6) haut=window.innerHeight;
	else if (isMinIE5 && navigator.appVersion.indexOf("Macintosh") != -1) haut =document.body.offsetHeight;
	else haut = document.documentElement.clientHeight;
	
	return haut;
}
