<!-- fonctions de survol d'image -->
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_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_findObj(n, d) { //v3.0
  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); return x;
}

function tmt_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;
}

function MM_showHideLayers() { //v3.0A Modified by Al Sparber for NN6 Compatibility
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  if(document.getElementById) {
	   for (i=0; i<(args.length-2); i+=3) { 
			obj = tmt_findObj(args[i]);
			v   = args[i+2];
			v   = (v=='show')?'visible':(v='hide')?'hidden':v;
			if(obj) obj.style.visibility=v;
			}
	} 
	else{
  		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_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function printWin()
{	print();
}
<!-- Iframe -->
function redimIframe(tableau,frame)
{	
	as=document.getElementById(tableau).offsetHeight;
	parent.document.getElementById(frame).height=as;

	if (frame=="mainFrame")	
	{	as=parent.document.getElementById(tableau).offsetHeight;
		top.document.getElementById("indexFrame").height=as;
	}
	else if ((frame=="thirdFrame") || (frame=="corpFrame"))
	{	
		as = parent.document.getElementById(tableau).offsetHeight;
		parent.parent.document.getElementById("mainFrame").height = as;
		
		as = parent.parent.document.getElementById(tableau).offsetHeight;
		top.document.getElementById("indexFrame").height=as;
	}

	as = document.getElementById(tableau).offsetWidth;
	parent.document.getElementById(frame).width=as;
	if (frame=="mainFrame")	
	{	as=parent.document.getElementById(tableau).offsetWidth;
		top.document.getElementById("indexFrame").width=as;
	}
	else if ((frame=="thirdFrame") || (frame=="corpFrame"))	
	{	as=parent.document.getElementById(tableau).offsetWidth;
		parent.parent.document.getElementById("mainFrame").width=as;
		as=parent.parent.document.getElementById(tableau).offsetWidth;
		top.document.getElementById("indexFrame").width=as;
	}
}


function popup(page,nom,largeur,hauteur) 
{	//largeur et hauteur par défaut
	if (largeur==0)	largeur=500;
	if (hauteur==0)	hauteur=430;
	var opt="resizable=no, location=no, menubar=no,scrollbars=yes,statusbar=no";
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	var fenetre=window.open(page,nom,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+opt);
}

function moveToTopFromFlash()
{	document.location="#Top";
}

function doThis() //fct called by all the files to do an action
{	window.scrollTo(0,0); //move the scroll to the top position
}

var NumChars = "0123456789";
function IsNumeric(Data)
{	var It = true;
	var c;
	for (var x = 0; x < Data.length; x++)
		if (It)
		{	c = Data.charAt(x);
			It = ( NumChars.indexOf(c) != -1);
		}
	return It;
}

function reset_form(nf)
{	nf.reset();
}


function checkMenu(arg)
{	if(arg=='qr')
	{	if(window.location.protocol=='http:')	checkMenuTop(24,17);
		else	checkMenuTop_client(29,23);
	}
	else if(arg=='dc')
	{	if(window.location.protocol=='http:')	checkMenuTop(21,3);
		else	checkMenuTop_client(29,23);
	}
	else if(arg=='ra')
	{	if(window.location.protocol=='http:')	checkMenuTop(22,10);
		else	checkMenuTop_client(29,23);
	}
	else if(arg=='qs')
	{	if(window.location.protocol=='http:')	checkMenuTop(0,0);
		else	checkMenuTop_client(0,0);
	}
	else if(arg=='vs')
	{	if(window.location.protocol=='http:')	checkMenuTop(21,1);
		else	checkMenuTop_client(0,0);
	}
	else if(arg=='ng')
	{	if(window.location.protocol=='http:')	checkMenuTop(23,14);
		else	checkMenuTop_client(25,3);
	}
	
	else if(arg=='ca')
	{	if(window.location.protocol=='http:')	checkMenuTop(21,4);
		else	checkMenuTop_client(26,11);
	}		
}


function redimIframe_cl(arg)
{	if(arg==3)
	{	if(window.location.protocol=='http:')	redimIframe('tab','thirdFrame');
		else	redimIframe('tab','corpFrame');
	}
}



/*___________________________les alertes_____________________________*/
function openWinFromFlash(id,page)
{
	if(page=="")
		TB_init('/inc/GetErreurTxt.asp?id='+id+'&KeepThis=true&TB_iframe=true&height=120&width=400');
	else
		TB_init('/inc/GetErreurTxt.asp?id='+id+'&page='+page+'&KeepThis=true&TB_iframe=true&height=120&width=400');
}

/*__________________________________________________________________*/
