// JavaScript Document
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;
}


function setHeightFlash() {
	
			var windowHeight = getWindowHeight();
			
			var introElement=document.getElementById('intro');
			var introHeight=document.getElementById('intro').offsetHeight;

			var contentHeight = introHeight + windowHeight;
			
			var flashConteneurElement=document.getElementById('flashConteneur');
			
			if (contentHeight > windowHeight) {
				flashConteneurElement.style.height = (introHeight + windowHeight)+'px';
				introElement.style.bottom = '-' + introHeight + 'px';
			}
				else {
					flashConteneurElement.style.height = (introHeight + windowHeight)+'px';
					introElement.style.bottom = '-' + introHeight + 'px';
				}

}


function showIntro() {
	document.getElementById("intro").style.visibility = "visible";
	/*var windowHeight = getWindowHeight();
	var flashConteneurElement=document.getElementById('flashConteneur');
	flashConteneurElement.style.height = windowHeight+'px';*/
}



function bodyScroll() {
	document.body.style.overflow = "auto";
}


window.onload = function() {
			setHeightFlash();	
		}
		
window.onresize = function() {
			setHeightFlash();
		}

