// JavaScript Document

<!--

var myHeight = 0;

function centrerVerticalement() {
	trouverDimensionsFenetre();
	if(myHeight > 575) {
		document.getElementById("conteneur").style.top = myHeight/2 - 295 + "px";
	}
}

function centrerVerticalementIntro() {
	trouverDimensionsFenetre();
	if(myHeight > 291) {
		document.getElementById("introConteneur").style.top = myHeight/2 - 160 + "px";
	}
}

function trouverDimensionsFenetre() {
	//1. Condition dans le cas où ce n'est pas Explorer
	if (typeof(window.innerWidth) == "number" ) {
		myHeight = window.innerHeight;
	//2. Condition pour Explorer 6+ en mode "standards compliant mode"
	} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight )) {
		myHeight = document.documentElement.clientHeight;
	//3. Condition pour une compatibilité avec Explorer 4
	} else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
		myHeight = document.body.clientHeight;
	//4. Si rien de fonctionne, prendre les dimensions de l'écran
	} else {
		myHeight = screen.height;
	}
}

// -->