// Sert a chercher la résolution écran de l'utilisateur
//----------------------------------------------------------------------------------------------------------
function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	
	return windowHeight;
}
// Change la taille du contenue
//----------------------------------------------------------------------------------------------------------
function setWindowHeight() {
	var windowHeight = getWindowHeight();
	var contentSize=document.getElementById("content").offsetHeight;
	var differance=0;
	if (typeof(window.innerHeight) == 'number') {
	differance =windowHeight-143;
	}
	else{
	differance =windowHeight-145;
	}
	if(contentSize<differance){
	document.getElementById("content").style.height=differance+"px";
	}
	
}
//corection ie avec flash
//Source:http://www.amarasoftware.com/flash-problem.htm
//----------------------------------------------------------------------------------------------------------
function flashIE(){
	objects = document.getElementsByTagName("object");
	for (var i = 0; i < objects.length; i++)
	{
		objects[i].outerHTML = objects[i].outerHTML;
	}

}


