<!--
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_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_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_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 OpenPopUpLexique(MyFile,MyWindow,MyWidth,MyHeight) { 
   var ns4=document.layers;
   var ie4=document.all;
   var ns6=document.getElementById&&!document.all;
   var xMax, yMax, xOffset, yOffset;
   
    if (ie4 || ns6) {
        xMax = screen.width;
        yMax = screen.height;
    } else if (ns4) {
        xMax = window.outerWidth;
        yMax = window.outerHeight;
    } else {
        xMax = 800;
        yMax = 600;
    }
    xOffset = (xMax - MyWidth)/2;
    yOffset = (yMax - MyHeight)/2;

    var PAGE = window.open(MyFile,MyWindow,'width='+MyWidth +',height='+MyHeight +',screenX='+xOffset +',screenY='+yOffset +',top='+yOffset +',left='+xOffset +',resizable=no,scrollbars=no');
    if (PAGE && PAGE.blur) PAGE.focus();
}
function OpenPopUp(MyFile,MyWindow,MyWidth,MyHeight) { 
   var ns4=document.layers;
   var ie4=document.all;
   var ns6=document.getElementById&&!document.all;
   var xMax, yMax, xOffset, yOffset;
   
    if (ie4 || ns6) {
        xMax = screen.width;
        yMax = screen.height;
    } else if (ns4) {
        xMax = window.outerWidth;
        yMax = window.outerHeight;
    } else {
        xMax = 800;
        yMax = 600;
    }
    xOffset = (xMax - MyWidth)/2;
    yOffset = (yMax - MyHeight)/2;

    var PAGE = window.open(MyFile,MyWindow,'width='+MyWidth +',height='+MyHeight +',screenX='+xOffset +',screenY='+yOffset +',top='+yOffset +',left='+xOffset +',resizable=yes,scrollbars=yes');
    if (PAGE && PAGE.blur) PAGE.focus();
}
function OpenPopUpDiabete(MyFile,MyWindow,MyWidth,MyHeight) { 
   var ns4=document.layers;
   var ie4=document.all;
   var ns6=document.getElementById&&!document.all;
   var xMax, yMax, xOffset, yOffset;
   
    if (ie4 || ns6) {
        xMax = screen.width;
        yMax = screen.height;
    } else if (ns4) {
        xMax = window.outerWidth;
        yMax = window.outerHeight;
    } else {
        xMax = 800;
        yMax = 600;
    }
    xOffset = (xMax - MyWidth)/2;
    yOffset = (yMax - MyHeight)/2;

    var PAGE = window.open(MyFile,MyWindow,'width='+MyWidth +',height='+MyHeight +',screenX='+xOffset +',screenY='+yOffset +',top='+yOffset +',left='+xOffset +',resizable=no,scrollbars=yes');
    if (PAGE && PAGE.blur) PAGE.focus();
}
function GerbleLg(lg) {
	document.forms["GblLg"].lang.value=lg;
	document.forms["GblLg"].submit();
}
function twPopupImage(img,titre,flash) { 
  oFenetre = window.open('','Image','width=520,height=500,toolbar=no,scrollbars=yes,resizable=yes');
  oFenetre.focus();
  oFenetre.document.write("<html><head>");
  oFenetre.document.write("<title>"+titre+"</title>");
  oFenetre.document.write("</head>");   
  //if (flash && flash == 1) {
  //	oFenetre.document.write("<script type=\"text/javascript\">function twAjustePopUp() { window.resizeTo(514,300); window.focus();}</"+"script>");
  //} else {  
  //	oFenetre.document.write("<script type=\"text/javascript\">function twAjustePopUp() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+14,document.images[0].height+50); window.focus();} else { setTimeout('twAjustePopUp()',1000) } }</"+"script>");
  //}
  //oFenetre.document.write("<body onload='twAjustePopUp()' leftMargin='0' topMargin='0' marginwidth='0' marginheight='0'>"); 
  oFenetre.document.write("<body leftMargin='0' topMargin='0' marginwidth='0' marginheight='0'>"); 
  oFenetre.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><tr valign='middle'><td valign='middle' align='center'>"); 
  if (flash && flash == 1) {
  	oFenetre.document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="flash" align="middle">');
  	oFenetre.document.write('<param name="allowScriptAccess" value="sameDomain">');
  	oFenetre.document.write('<param name="movie" value="'+img+'">');
  	oFenetre.document.write('<param name="quality" value="high">');
  	oFenetre.document.write('<embed src="'+img+'" quality="high" name="flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
  	oFenetre.document.write("</object>");
  } else {
  	oFenetre.document.write("<img src='"+img+"' border='0'>");
  }
  oFenetre.document.write("</td></tr></table></body></html>");   
  oFenetre.document.close(); 
} 
function VerifEmail(email) {
  var verif = /[_\.0-9a-z-]+@([0-9a-z][0-9a-z.-]+\.)+[a-z]{2,4}$/
  if (verif.exec(email) == null) 
	return false;
  else 
	return true;
}
function storeCaret(textEl) {
	if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
}
function insertAtCaret(textEl,text) {
	if (textEl.createTextRange && textEl.caretPos) {
		textEl.focus(textEl.caretPos);
		var caretPos    = textEl.caretPos;
		caretPos.text 	= caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		textEl.focus(textEl.caretPos);
	} else if (textEl.selectionStart || textEl.selectionStart == '0') {
		var startPos 	= textEl.selectionStart;
		var endPos 	= textEl.selectionEnd;
		var caretPos 	= textEl.value.substring(textEl.selectionStart,textEl.selectionEnd);
	  	textEl.value    = textEl.value.substring(0, textEl.selectionStart) + text + textEl.value.substring(textEl.selectionEnd, textEl.value.length);
		textEl.focus();
	} else { 
	   textEl.value  	= textEl.value + text; 
	   textEl.focus();
	}
}
function ReturBottom(ThisForm,Name) { 
	ThisForm.Bouton.value = Name;
}
function FocusText(BoxName) {
  if (BoxName.value == BoxName.defaultValue) {
   BoxName.value = '';
  }
}
function BlurText(BoxName) {
  if (BoxName.value == '') {
    BoxName.value = BoxName.defaultValue;
  }
}
function Calque(nom,etat) { 
 if(document.all) {
	for (var i = 1; i < 8; i++) {
		if (document.all['bulle_'+i] && nom != 'bulle_'+i) {
			document.all['bulle_'+i].style.visibility='hidden'; 
		}		
	}
 return(document.all[nom].style.visibility=etat); 
 } else if(document.getElementById) {
	for (var i = 1; i < 8; i++) {
		if (document.getElementById('bulle_'+i) && nom != 'bulle_'+i) {
			document.getElementById('bulle_'+i).style.visibility='hidden'; 
		}		
	}
 return(document.getElementById(nom).style.visibility=etat); 
 }
}
function FermeCalque(nom) { 
 for (var i = 1; i < 8; i++) {
   if(document.all) {
      if (document.all['bulle_'+i]) {
	   document.all['bulle_'+i].style.visibility='hidden'; 
      }
   }
   else if(document.getElementById) {
      if (document.getElementById('bulle_'+i)) {
	   document.getElementById('bulle_'+i).style.visibility='hidden'; 
      }
   }
 }
}
function verScroll(dir, spd, loop) {
loop = true;
direction = "up";
speed = 5;
scrolltimer = null;
if (document.layers) {
var page = eval(document.elementTexte);
}
else {
if (document.getElementById) {
var page= eval("document.getElementById('elementTexte').style");
}
else {
if (document.all) {
var page = eval(document.all.elementTexte.style);
      }
   }
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);

if (loop == true) {

 if (direction == "dn") {
  page.top = (y_pos - (speed));
  } else {  
 
  if (direction == "up" && y_pos < speed) {
  page.top = (y_pos + (speed));
 
  } else {
   if (direction == "top") {
   page.top = speed;
   }
  }
}
scrolltimer = setTimeout("verScroll(direction,speed)", 1);
   }
}
function stopScroll() {
loop = false;
clearTimeout(scrolltimer);
}
//-->