// JavaScript Document
function topScroll(b) {
	if (b) {
		//window.top.document.getElementById("contenu").scrolling="auto";
	} else {
		//window.top.document.getElementById("contenu").scrolling="no";
	}
}

var browserName = BrowserDetect.browser;
//alert(browserName);
var WindowObjectReference = null;
function openWindow(strUrl, ww, hh) {
	if(WindowObjectReference == null || WindowObjectReference.closed) {
		var calage = 15;
		var calageHauteurFF = -2;
		// pour IE
		if (browserName == "Firefox") {
			hh += calageHauteurFF;
		} else if (browserName == "Explorer") {
			//hh += calageHauteurIE;
		}
		// centrage de la popup
		var top=(screen.height-hh)/2;
		var left=(screen.width-ww)/2;

		//alert("hauteur = " + hh);
		// ATTENTION, sous IE, le nom de la fenetre ne doit comporter Qu'UN SEUL MOT !!!!
		// du coup, on le laisse vide (2e argument = "")
		WindowObjectReference = window.open(strUrl, "",
			   "resizable=yes,status=yes,height="+hh+",width="+ww,top="+top,left="+left);
	} else {
		if (window.focus) {
			WindowObjectReference.focus()
		}
	}
	return false;
}

// gestion de l'accès direct à une page. il faut dans ce cas, appeler index avec en param la page à appeler ?

if (document.parent == null) 
{

}

function closeFlashIntro() {
	document.getElementById("flashcontentIntro").style.visibility = 'hidden';
	document.getElementById("actualites").style.visibility = 'visible';
}

