
function popNouvelle(theURL) {
  var winName = "news";
  var features = "scrollbars=yes,width=500,height=475";
  window.open(theURL,winName,features);
}



var ns = (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=4)?true:false
var ie = (navigator.appName=="Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4)?true:false
var ns6 = (document.getElementById&&!document.all)

var safari = new String(navigator.appVersion);
var expr=/safari/gi;
Saf = safari.search(expr);

var navigsaf = (Saf!=-1)?true:false;

/******************************/

/* Ici c'est pour la page d'accueil (le header est diffˇrent) */
function footer(div1, div2){
	div11=getLayer2(div1);
	div21=getLayer2(div2);
	test=getLayer2("container");
	bas=getLayer2("footer");
	tete=getLayer2("header");
	
	haut=getHeight();

	if(haut>(div11.offsetHeight+tete.offsetHeight) && haut>(div21.offsetHeight+tete.offsetHeight))
	{
		if (isMinIE5 && navigator.appVersion.indexOf("Macintosh") != -1){
			div11.style.height = haut-(tete.offsetHeight+bas.offsetHeight+35)+"px";
			div21.style.height = haut-(tete.offsetHeight+bas.offsetHeight)+11+"px";
		}
		else{
			div11.style.height = haut-(tete.offsetHeight+bas.offsetHeight)-25+"px";
			div21.style.height = div11.offsetHeight+"px";
		}
	}
	else{
		div21.style.height =div11.offsetHeight+"px";
	}
}


/* Ici c'est pour les page intˇrieur (header plus petit que l'accueil */

function footerint(div1, div2){
	div11=getLayer2(div1);
	div21=getLayer2(div2);
	test=getLayer2("headerint");
	bas=getLayer2("footerint");
	
	
	if(div11.offsetHeight>div21.offsetHeight){
		div21.style.height=div11.offsetHeight+50+"px";
	}
	else	
		div11.style.height=div21.offsetHeight+50+"px";
	
	haut=getHeight();
	if(haut>(div11.offsetHeight+test.offsetHeight) && haut>(div21.offsetHeight+test.offsetHeight))
	{
		div11.style.height = haut-(test.offsetHeight+bas.offsetHeight)-108+"px";
		div21.style.height = haut-(test.offsetHeight+bas.offsetHeight)-70+"px";
	}
	else{
		div21.style.height = div11.offsetHeight+22+"px";
	}
}



function getLayer2(name) {
  if (ie)
    return eval('document.all.' + name);
	if (ns6)
		return document.getElementById(name);
  return null;
}

function getHeight(){
	if(NS6) haut=window.innerHeight;
	else if (isMinIE5 && navigator.appVersion.indexOf("Macintosh") != -1) haut = document.body.offsetHeight-15;
	else haut = document.documentElement.clientHeight;
	
	return haut;
}
