/* 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>
 */



/* 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écupération de la hauteur du footer
	var footer = document.getElementById('footer');
	var divHeight = (maxHeight - footerHeight);
	if(navigator.appName == 'Microsoft Internet Explorer'){
		document.getElementById('container').style.height=divHeight+'px';
		document.getElementById('container2').style.height=divHeight+'px';
	} else {
		document.getElementById('container').style.minHeight=divHeight+'px';
		document.getElementById('container').style.height='auto';
		document.getElementById('container2').style.minHeight=divHeight+'px';
		document.getElementById('container2').style.height='auto';
	}
if(!window.innerHeight){
	event.cancelBubble = true;
}
window.onresize = function(){
	setFooter(hauteurFooter);
}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


