
// got from http://www.howtocreate.co.uk/tutorials/javascript/browserwindow
function GetInnerHeight() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	//window.alert( 'Width = ' + myWidth );
	//window.alert( 'Height = ' + myHeight );
	return myHeight;
}


function ContentHeight() {
	
	/*
	The height of the content of Présentation > L'Equipe page from top of page (including background)
	to top of first small team image is 347px. Rounded here to 350px.
	This height is absolutely constant.
	Height from to of first small team image to bottom of last team block is approx 500px,
	*/
	
	ScreenHeight = GetInnerHeight();
	DivHeight = ScreenHeight-350;
	
	if(DivHeight < 500){
		document.getElementById('TeamDiv').style.height = DivHeight+"px";
	}else{
		document.getElementById('TeamDiv').style.height = "auto";
	}
	
}
