var Nom = navigator.appName; var Version = navigator.appVersion.substring(0, 3); var ns40 = (Nom == 'Netscape' && Version >= '3.0' && Version < '4.8' ) ? 1:0;var ns6 = (Nom == 'Netscape' && Version > '4.7' ) ? 1:0;var ie4 = (Nom == 'Microsoft Internet Explorer' && Version >= '4.0' ) ? 1:0;// ----------------------------------------------------------------------------------------------function MM_setTextOfTextfield(objName,x,newText) { //v3.0  var obj = MM_findObj(objName); if (obj) obj.value = newText;}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_showHideLayers() { //v3.0if (ie4 || ns6) { var i,p,v,obj,args=MM_showHideLayers.arguments;  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }    obj.visibility=v; } }}function MM_preloadImages() { //v3.0	var d=document; 	if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}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];		}	}}function MM_reloadPage(init) {  //reloads the window if Nav4 resizedif (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}function MM_changeProp(objName,x,theProp,theValue) { //v6.0  var obj = MM_findObj(objName);  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){    if (theValue == true || theValue == false)      eval("obj."+theProp+"="+theValue);    else eval("obj."+theProp+"='"+theValue+"'");  }}function MM_callJS(jsStr) { //v2.0  return eval(jsStr)}function bgmenuOver(obj) { //v2.1 by Project VII//	obj.style.background="url(../../../globals/images/bgAqua_over.gif)"	obj.style.backgroundColor="#92B6E7"	obj.style.color="#FFFFFF"}function bgmenu(obj) { //v2.1 by Project VII//	obj.style.background="url(../../../globals/images/bgAqua.gif)"	obj.style.backgroundColor="#F5F5F5"	obj.style.color="#333333"}function bgmenuOn(obj) { //v2.1 by Project VII//	obj.style.background="url(../../../globals/images/bgAqua.gif)"	obj.style.backgroundColor="#F5F5F5"	obj.style.color="#6B92C7"}function bgAdminOver(obj) { //v2.1 by Project VII//	obj.style.background="url(../../../globals/images/bgAqua_over.gif)"	obj.style.backgroundColor="#ECEEFC"	obj.style.color="FF9900"}function bgAdmin(obj) { //v2.1 by Project VII//	obj.style.background="url(../../../globals/images/bgAqua.gif)"	obj.style.backgroundColor="#FFFFFF"	obj.style.color="#666699"}function newbgcolor(obj, new_bg) { //v2.1 by Project VII	obj.style.backgroundColor=new_bg}function OuvrePopup() {	// Vérifie que le cookie "onetimePopup" n'est pas présent	if (GetCookie("onetimePopup")==null) {				// Paramétrez ici le mode d'affichage du popup		// Popup MacOSXMM : 470*320		// Popup Cocoa_prog : 420*330		window.open("../../fr/html/popup.html","onetimePopup","width=420, height=340, toolbars=no, scrollbars=no");		// Enregistre le cookie pour une durée de 24 heures		var pathname=location.pathname;		var myDomain=pathname.substring(0,pathname.lastIndexOf('/')) +'/';		var date_exp = new Date();		date_exp.setTime(date_exp.getTime()+(2*3600*1000)); // 2 heures		SetCookie("onetimePopup","ok",date_exp,myDomain);	}}function ViderCookie() {		var pathname=location.pathname;		var myDomain=pathname.substring(0,pathname.lastIndexOf('/')) +'/';		var date_exp = new Date();		date_exp.setTime(date_exp.getTime()-(1000)); // Heure déjà expirée		SetCookie("onetimePopup","",date_exp,myDomain);//		alert("Le cookie 'onetimePopup' est vidé.\n Vous pouvez recharger la page pour voir le popup...")}function SetCookie (name, value) {	var argv=SetCookie.arguments;	var argc=SetCookie.arguments.length;	var expires=(argc > 2) ? argv[2] : null;	var path=(argc > 3) ? argv[3] : null;	var domain=(argc > 4) ? argv[4] : null;	var secure=(argc > 5) ? argv[5] : false;	document.cookie=name+"="+escape(value)+		((expires==null) ? "" : ("; expires="+expires.toGMTString()))+		((path==null) ? "" : ("; path="+path))+		((domain==null) ? "" : ("; domain="+domain))+		((secure==true) ? "; secure" : "");}function getCookieVal(offset) {	var endstr=document.cookie.indexOf (";", offset);	if (endstr==-1)      		endstr=document.cookie.length;	return unescape(document.cookie.substring(offset, endstr));}function GetCookie (name) {	var arg=name+"=";	var alen=arg.length;	var clen=document.cookie.length;	var i=0;	while (i<clen) {		var j=i+alen;		if (document.cookie.substring(i, j)==arg)                        return getCookieVal (j);                i=document.cookie.indexOf(" ",i)+1;                        if (i==0) break;}	return null;}function statusMsg(msg) {	window.status=msg;}MM_reloadPage(true);
