//fonctions javascript
function PopUp2(URL,WIDTH,HEIGHT) {
	options="toolbar=no,location=no,directories=no,status=no,menubar=no,top=20,left=30, scrollbars=no,resizable=no,width=1,height=1"
	Box = window.open (URL,"Windows",options)
	Box.close()
	options="toolbar=no,location=no,directories=no,status=no,menubar=no,top=20,left=30, scrollbars=no,resizable=no,width="+WIDTH+",height="+HEIGHT
	Box = window.open (URL,"Windows",options)
	Box.focus();
}

function openWin(url, largeur, hauteur ,param, nom) {
	if(document.all) { 
			var x = (screen.width-largeur)/2;
			var y = (screen.height-hauteur)/2; 
	}else {
		 var x=100; var y=100; 
	}
	window.open(url,nom,param+(param!="" ? "," : "")+"width="+largeur+",height="+hauteur+",left="+x+",top="+y);
}
function PopLocalisation(URL,WIDTH,HEIGHT) {
	options="toolbar=no,location=no,directories=no,status=no,menubar=no,top=20,left=30, scrollbars=no,resizable=no,width=1,height=1"
	Box = window.open (URL,"Windows",options)
	Box.close()
	options="toolbar=no,location=no,directories=no,status=no,menubar=no,top=20,left=30, scrollbars=no,resizable=yes,width="+WIDTH+",height="+HEIGHT
	Box = window.open (URL,"Windows",options)
	Box.focus();
}
function PopRetour(URL){
	opener.focus();
	opener.location.href = URL;
	//self.close();
}
function eraseTxt (inputName) { 
	inputName.value="";
}
function openCalendar(url,param) {
	var x, y;
	if(document.all) { x = screen.width/2-200; y = screen.height/2-200; }
	else { x=100; height=100; }
	window.open(url,"eb",param+(param!="" ? "," : "")+"status=no,location=no,menubar=no,resizable=no,toolbar=no,scrolling=auto,left="+x+",top="+y);
} 

function PopUpRmc(URL,WIDTH,HEIGHT)
		{
			options="toolbar=no,location=no,directories=no,status=no,menubar=no,top=20,left=30, scrollbars=no,resizable=no,width=1,height=1"
			Box = window.open (URL,"Windows",options)
			Box.close()
			options="toolbar=no,location=no,directories=no,status=no,menubar=no,top=20,left=30, scrollbars=no,resizable=no,width="+WIDTH+",height="+HEIGHT
			Box = window.open (URL,"Windows",options)
			Box.focus()
		}
		
		
		
//---------------------------------------------
		
		
		
window.onload = function() {
  	open_ext_link();
}

if (window.attachEvent) window.attachEvent("onload", sfHover);




function sfHover() {
	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"), "");
		}


		
	}
}

    
function open_ext_link()
{
	var liens = document.getElementsByTagName('a');
	for( var i = 0 ; i < liens.length ; i++)
	{
		if(liens[i].className == 'lien_ext')
		{
			liens[i].onclick = function()
			{
				window.open(this.href);
				return false;
			}
		}
	}
}

function mesure(_MesurePro, _page)
{
	scr_w = screen.width;
	scr_h = screen.height;
	color = screen.colorDepth;
	ref = escape(window.document.referrer);
	
	document.write("<IMG src='http://noeinteractive.stats-pro.com/stats/noe/marqueur.pl/"+ "?page="+ _page+	"&n="+ Math.round (Math.random () * 1000000000000000)+ "&reso_w="+ scr_w+ "&reso_h="+ scr_h+ "&color="+	color+ "&referer="+ ref+"' border=0 />");
}


