// JavaScript Document

<!--

function getE(id) {
	if(document.getElementById) {return(document.getElementById(id));}
	else if (document.all) {return(document.all[id]);}
	else if (document.layers)	{return(document.layers[id]);}
}

var myHeight = 0;

window.onresize = centrerVerticalement;
function centrerVerticalement() {
	trouverDimensionsFenetre();
	if(myHeight > 575) {
		getE("conteneur").style.top = myHeight/2 - 295 + "px";
	}
}

function centrerVerticalementIntro() {
	trouverDimensionsFenetre();
	if(myHeight > 575) {
		getE("conteneur").style.top = myHeight/2 - 295 + "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;
	}
}