gauche5=10;
haut5=261;
haut_droit=162;

ie4=document.all;
ns6=document.getElementById&&!document.all;
ns4=document.layers;



function placeMenu5() {

if (ie4) {
	if (document.body.scrollTop >1100) {
		menu_gauche.style.pixelTop=document.body.scrollTop;
	}
	if (document.body.scrollTop <=1100) {
		menu_gauche.style.pixelTop=haut5;
	}
	w=document.body.clientWidth;
	if ( (w-885) >0 ) {
		menu_gauche.style.pixelLeft=(w-885)/2;
		tableau.style.pixelLeft=(w-885)/2;
		
	}
	else {
		menu_gauche.style.pixelLeft=0;
		
		tableau.style.pixelLeft=0;
	}

}
else if (ns6) {
	if (window.pageYOffset > 1100 ) {
		document.getElementById("menu_gauche").style.top=window.pageYOffset;
	}
	if (window.pageYOffset <= 1100 ) {
		document.getElementById("menu_gauche").style.top=haut5;
	}
	
	w=window.innerWidth;
	if ( (w-885) >0 ) {
		document.getElementById("menu_gauche").style.left=(w-885)/2;
		document.getElementById("tableau").style.left=(w-885)/2;
		
		
	}
	else {
		document.getElementById("menu_gauche").style.left=0;
		
		document.getElementById("tableau").style.left=0;
	}


}
else if (ns4) {
	if ( window.pageYOffset > 1100 ) {
		eval(document.menu_gauche.top=eval(window.pageYOffset));
	}

	if ( window.pageYOffset <=1100 ) {
		eval(document.menu_gauche.top=eval(haut5));
	}
	
	if ( (w-885) >0 ) {
		document.getElementById("menu_gauche").style.left=(w-885)/2;
		document.getElementById("tableau").style.left=(w-885)/2;
		

	}
	else {
		document.getElementById("menu_gauche").style.left=0;
		
		
	}


}
if(ie4 || ns6 || ns4)
	setTimeout("placeMenu5()",1);
}

function CheckMail(str) {

	var retour=true;
	//var averifier=trim(str.toLowerCase());
	var averifier=(str.toLowerCase());

	if (  !averifier.match(/^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z]+)*\.[a-z]{2,4}$/g) ){
		retour=false;
		alert("invalid email");
	}

	return retour;
}

function trim(val) {
	var retour = ""
	for(i=0;i < val.length;i++)
		if(val.charAt(i) != " ") {
	      retour += val.charAt(i)
	    }
	return retour
}
