sfHover = function() {
		var sfEls = document.getElementById("menu").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
				sfEls[i].onmouseover=function() {
						this.className+=" sfhover";
				}
				sfEls[i].onmouseout=function() {
						this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
				}
		}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function ouv (quoi) {
	if (document.getElementById(quoi).style.display=="none") {
		document.getElementById(quoi).style.display="block";
		scrolldown();
	} else
		document.getElementById(quoi).style.display="none";
}

function scrolldown() { 
 var h=0; 
	  
 if (window.innerHeight) h = window.innerHeight; 
 else if (document.body && document.body.offsetHeight) h = window.document.body.offsetHeight; 
 else if (document.documentElement && document.documentElement.clientHeight) h = document.documentElement.clientHeight; 
	  
this.scroll(1,h); 
} 

function popupcentree(page,largeur,hauteur,options) {     

	var left = (document.body.clientWidth / 2) - (largeur / 2);
	var top = (document.body.clientHeight / 2) - (hauteur / 2);
	    
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options); 

}

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-9404868-2']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
