/* Javascripts utilisés sur le site
 * Mettez l'ensemble de vos fonctions générique javascript ici
 * 
 * La liaison avec les page se fait à l'aide du code ci-dessous :
 * <script type="text/javascript" src="css-js/scripts.js"></script>
 */

function ouvreFenetre(url,largeur,hauteur) {
	var haut=(screen.height-hauteur)/2;
	var gauche=(screen.width-largeur)/2;
	window.open(url,"fencent","top="+haut+",left="+gauche+",width="+largeur+",height="+hauteur+",menubar=yes,scrollbars=yes,statusbar=yes,resizable=yes,toolbar=yes"	);
}

/* GESTION PIEDS DE PAGE */
/* GESTION PIEDS DE PAGE */
var hauteurFooter;

function setFooter(footerHeight){
	footerHeight = parseInt(footerHeight);
	hauteurFooter = footerHeight;
	if(window.innerHeight){
		var maxHeight = window.innerHeight;
	} else {
		var maxHeight = document.body.clientHeight;
	}

	// récuopération de la hauteur du footer
	var footer = document.getElementById('footer');
	var divHeight = (maxHeight - footerHeight);
	document.getElementById('container').style.height=divHeight+'px';
}
if(window.innerHeight){
	window.onresize = function(){
		setFooter(hauteurFooter);
	}
} else {
	body.onresize = function(){
		setFooter(hauteurFooter);
	}
}