//version du 15/11/2007

var leftMenu=633;
var topMenu=20;
var menuEnCours='';
var peres=new Array();
var selitem ='';
var oldsel='***';
var oldwidth=0;
var NN4 = (document.layers) ? true : false;
var IE = (document.all) ? true : false;
var NS = (navigator.appName == 'Netscape');
var DOCID = document.getElementById;
var bnb=0;
var menuGauche;
var theHaut=null;
var theBas=null;
var bAsc=0;

var xxTitre;var xxArray;
var xxSousTitre;
var xxChemin=new Array();
var xxHref;
var objFloat=new Array();

var _evala="a.Référentiels d'accréditation (GEN REF 11, guide IAF et guides internationaux, notes de doctrine ...)";
var _evalb="b.Référentiels spécifiques (programmes d'accréditation, GTA ...)";
var _evalc="c.Guides d'audits";
var _evald="d.Rapports et fiches";
var _evala2="a.Frais (procédures, honoraires ...)";
var _evalb2="b.Contrats (GEN CGQA REF 02 ...)";

var allVisible=0;

function ltrim(strin)
{
var strout=''+strin;
var i=0;
while((i<strout.length)&&((strout.charAt(i)==' ')||(strout.charAt(i)=='\r')||(strout.charAt(i)=='\n'))) i++;
if (i!=0) return strout.substr(i);
else return strout;
}
function rtrim(strin)
{
var strout=''+strin;
var i=strout.length-1;
while((i>=0)&&((strout.charAt(i)==' ')||(strout.charAt(i)=='\r')||(strout.charAt(i)=='\n'))) i--;
if (i!=strout.length-1) return strout.substr(0,i+1);
else return strout;
}

function btrim(strin)
{
return ltrim(rtrim(strin));
}

var forbids=new Array('ii','1','iii','2','iv','3','vi','4','vii','5','viii','6','XI','7','xii','8',
		'xiii','9','xiv','0','xix','$','xv','a','b','c','d','e','f','g','h','i','j','k','l','m','n',
		'o','p','q','r','s','t','u','v','w','x','y','z','xvi','xvii','xviii','xx','xxi','xxii','xxiii',
		'xxiv','xxix','xxv','xxvi','xxvii','xxviii','xxx','xxxi','xxxii','xxxiii','xxxiv','xxxix','xxxv',
		'xxxvi','xxxvii','xxxviii','a','ai','aie','aient','aies','ait','après','au','auquel','aux','avaient',
		'avais','avait','des','avant','avec','avez','aviez','avions','avoir','avons','ayant','bon','car','ce','ceci',
		'cela','celle','celles','celui','ces','cet','cette','ceux','dans','de','deux','donc','dont','du','durant','elle',
		'elles','en','entre','es','et','eu','eue','eues','eurent','grâce','il','ils','je','la','le','les','leur','leurs',
		'lorsque','lui','là','ma','mais','malgré','me','mes','mien','mienne','miennes','miens','moi','moins','mon','ne','ni',
		'nos','notre','nous','on','ont','or','ou','où','parce','parmi','pas','pendant','peut','peuvent','peux','plus',
		'pour','pourquoi','puis','puisque','quand','que','quel','quelle','quelles','quelqu\'un','quels','qui','quoi',
		'quoique','sa','sans','sauf','se','selon','sera','serai','seraient','serais','serait','seras','serez','seriez',
		'serions','serons','seront','ses','si','sien','sienne','siennes','siens','sinon','soi','soient','sois','soit',
		'sommes','son','sont','sous','soyez','soyons','suis','suivant','sur','ta','tandis','tant','te','tel','telle',
		'telles','tels','tes','tien','tienne','tiennes','tiens','toi','ton','tous','tout','toute','toutes','tu','un','une',
		'va','vers','veulent','veut','veux','voici','voilà','vos','votre','voulez','voulons','vous','y','à','ça','çà',
		'étaient','étais','était','étant','étiez','étions','êtes','être');

// Pour la nouvelle barre de recherche 
function overAvance () {
	MM_swapImage('ob','','/fr/images/recherche/oblique_over.gif',1);
	MM_swapImage('rechAv','','/fr/images/recherche/rechAvancee_over.gif',1);
}

function overDirecte() {
	MM_swapImage('rechercheDirecte','','/fr/images/recherche/rechDirecte_over.gif',1);
}

function outAvance() {
	MM_swapImage('ob','','/fr/images/recherche/oblique.gif',1);
	MM_swapImage('rechAv','','/fr/images/recherche/rechAvancee.gif',1);
}

function clickAvance() {
	var el=document.getElementById("rechDirecte");
	el.style.display='none';
	var el=document.getElementById("rechAvancee");
	el.style.display='block';
}

function clickDirecte() {
	var el=document.getElementById("rechDirecte");
	el.style.display='block';
	var el=document.getElementById("rechAvancee");
	el.style.display='none';
}

function isnotforbid(strl) {
	var isok=true;
	for (var i=0;i<forbids.length ;i++ ) {
		if (strl==forbids[i]) {
			isok=false;
			break;
			}
		}
	return isok;
}

function okFieldsRech(form) {

	var str;
	var strl;
	var strrech='';
	var strrech0='';
	var multi=false;

	form.SearchString.value="";
	str=form.tTous.value;
	var reg=new RegExp("[ ,;]+", "g");
	var tableau=str.split(reg);

	for (var i=0; i<tableau.length; i++) {
		str=btrim(tableau[i]);
		strl=str.toLowerCase();
		if ((str!='') && isnotforbid(strl))
			{
			if (strrech0!='') {strrech0+=' and ';multi=true;}
			strrech0+=str;
			}
		}
	if ((strrech0!='') && multi) strrech0='(' + strrech0+')';

	strrech=strrech0;
	strrech0='';
	multi=false;
	str=form.tUn.value;
	
	tableau=str.split(reg);
	for (var i=0; i<tableau.length; i++) {
		str=btrim(tableau[i]);
		strl=str.toLowerCase();
		if ((str!='') && isnotforbid(strl))
			{
			if (strrech0!='') {strrech0+=' or ';multi=true;}
			strrech0+=str;
			}
		}
	if (strrech0!='') {
		if (multi) strrech0='(' + strrech0+')';
		if (strrech!='') strrech=strrech + ' and ' +strrech0;
		else strrech=strrech0;
		}
	
	strrech0='';
	multi=false;
	str=form.tAucun.value;	
	tableau=str.split(reg);
	for (var i=0; i<tableau.length; i++) {
		str=btrim(tableau[i]);
		strl=str.toLowerCase();
		if ((str!='') && isnotforbid(strl))
			{
			if (strrech0!='') {strrech0+=' and ';multi=true;}			
			strrech0=strrech0+' not '+str;
			}
		}

	if (strrech0!='') {
		if (strrech!='') strrech=strrech + ' and ' +strrech0;
		else strrech=strrech0;
		}

	form.SearchString2.value=strrech;
	return true;
	}


function okFieldsRechSim(form) {

	form.cbsit.checked=true;
	form.cbanx.checked=true;
	form.cbdoc.checked=true;
	form.nbdays.selectedIndex=0;
	}


function addSearchCode() {
	var args = addSearchCode.arguments;
	var bident=''
	if (args.length>0) bident = args[0];

	var t='';
	t+='<form action="/fr/menus/siteqry.asp" method="POST" name="FRECH">';
	t+='<div id="rechDirecte" style="display:block;">';
	if (bident!='') t+='<input type="hidden" name="bident" value="1">';
	t+='<table width="502" border="0" cellpadding="0" cellspacing="0" bgcolor="#FF7F01">';
	t+='<tr><td><img src="/fr/images/recherche/rechDirecte.gif" width="120" height="21" /></td>';
	t+='<td width="157" align="center"><input type="text" name="SearchString" maxLength="250" class="mono" size="33" maxlength="250" value="" style="display:block;margin:0;padding:0;width:150px;height=17px;border:0;"> </td>';
	t+='<td><input type="image" name="vldRechSim" border="0" src="/fr/images/recherche/ok.gif" onclick="okFieldsRechSim(document.FRECH);"></td>';
	t+='<td><a href="#" onmouseout="outAvance();" onmouseover="overAvance();" onclick="clickAvance();"><img src="/fr/images/recherche/oblique.gif" name="ob" width="51" height="21" border="0" id="ob" /></a></td>';
	t+='<td><a href="#" onmouseout="outAvance();" onmouseover="overAvance();" onclick="clickAvance();"><img src="/fr/images/recherche/rechAvancee.gif" name="rechAv" width="136" height="21" border="0" id="rechAv" /></a></td>';
	t+='</tr>';
	t+='<tr><td colspan="5"><img src="/fr/images/gif/c4a.GIF" width="502" height="15"></td></tr>';
	t+='</table>';
	t+='</div>';
	t+='<div id="rechAvancee" style="display:none;"><input type="hidden" value="" name="SearchString2">';
	t+='<table width="502" border="0" cellspacing="0" cellpadding="0">';
	t+='<tr><td><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="overDirecte();" onclick="clickDirecte();"><img src="/fr/images/recherche/rechDirecte_out.gif" name="rechercheDirecte" width="176" height="21" border="0" id="rechercheDirecte" /></a></td>';
	t+='<td><img src="/fr/images/recherche/rechAvancee_actif.gif" width="326" height="21" /></td>';
	t+='<tr><td colspan="2"><img src="/fr/images/recherche/ombreAvancee.gif" width="502" height="8" /></td></tr>';
	t+='</tr><tr><td colspan="2"  bgcolor="#FF7F01" align="center">';
	t+='<table width="490" border="0" cellspacing="0" cellpadding="0" style="font-family:Verdana;font-size=10px;"><tr>';
	t+='<td colspan="3"><div align="left">Vous recherchez les documents comprenant ... </div></td></tr><tr>';
	t+='<td width="250" style="color:#FFFFFF;"><div align="right">tous les mots suivants :</div></td><td width="10">&nbsp;</td>';
	t+='<td><input name="tTous" type="text" id="tTous" style="width:130px;border:0;" size="30" maxlength="250"></td></tr>';
	t+='<tr><td width="250" style="color:#FFFFFF;"><div align="right">au moins un des mots suivants :</div></td><td width="10">&nbsp;</td>';
	t+='<td><input name="tUn" type="text" id="tUn" style="width:130px;border:0;" size="30"  maxlength="250"></td></tr>';
	t+='<tr><td width="250" style="color:#FFFFFF;"><div align="right">aucun des mots suivants :</div></td>';
	t+='<td width="10">&nbsp;</td><td><input name="tAucun" type="text" id="tAucun" style="width:130px;border:0;" size="30"  maxlength="250"></td></tr>';
	t+='<tr><td><div align="right"></div></td><td width="10">&nbsp;</td><td>&nbsp;</td></tr>';
	t+='<tr><td colspan="3"><hr style="color:#FFFFFF; height:1px"></td></tr>';
	t+='<tr><td colspan="3"><div align="left">Vous souhaitez que votre recherche porte sur... </div></td></tr>';
	t+='<tr><td colspan="3"><div align="right">';
	t+='<table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-family:Verdana;font-size=10px;">';
	t+='<tr><td><input type="checkbox" name="cbsit" value="ON" CHECKED></td><td style="color:#FFFFFF;">les pages du site </td>';
	t+='<td><input type="checkbox" name="cbdoc" value="ON" CHECKED></td>';
	t+='<td style="color:#FFFFFF;">la documentation </td><td><input type="checkbox" name="cbanx" value="ON" CHECKED></td>';
	t+='<td style="color:#FFFFFF;">les annexes techniques </td></tr>';
	if (bident!='') {
		t+='<tr><td colspan=2>&nbsp;</td><td><input type="checkbox" name="cbeva" value="ON" CHECKED>';
		if (ajId & 1) t+='<input type="hidden" name="cblabo" value="1">';
		if (ajId & 2) t+='<input type="hidden" name="cbinsp" value="1">';
		if (ajId & 4) t+='<input type="hidden" name="cbcepe" value="1">';
		if (ajId & 8) t+='<input type="hidden" name="cbcps" value="1">';
		t+='</td><td style="color:#FFFFFF;" colspan=3>La documentation évaluateur</tr>';
		}
	else t+='<input type="hidden" name="cbeva" value="">';
	t+='</table></div></td></tr>';
	t+='<tr><td><div align="right"></div></td><td width="10">&nbsp;</td>';
	t+='<td>&nbsp;</td></tr>';
	t+='<tr><td colspan="3"><hr style="color:#FFFFFF; height:1px"></td></tr>';
	t+='<tr><td><div align="right">Vous souhaitez limiter votre recherche<br>aux documents cr&eacute;&eacute;s ou modifi&eacute;s<br/>au cours des derniers </div></td>';
	t+='<td width="10">&nbsp;</td>';
	t+='<td align="left"><select name="nbdays"><option value=""></option><option value="15">15 jours</option><option value="31">1 mois</option><option value="61">2 mois</option><option value="92">3 mois</option><!--option value="123">4 mois</option><option value="154">5 mois</option><option value="183">6 mois</option--></select>';
	t+='</td></tr>';
	t+='<tr><td colspan="3"><hr style="color:#FFFFFF; height:1px"></td></tr>';
	t+='<td>&nbsp;</td><td>&nbsp;</td><td align="right"><input type="image" name="vldRechAv" src="/fr/images/recherche/boutonLancer.gif" onclick="okFieldsRech(document.FRECH);"></td>';
	t+='</table>';
	t+='&nbsp;</td></tr>';
	t+='<tr><td colspan="2"><img src="/fr/images/gif/c4a.GIF" width="502" height="15"></td></tr>';
	t+='</table>';
	t+='</div>';
	t+='</form>';
	return t;
}



function addTop() {
	var args = addTop.arguments;
	var bident='';
	if (args.length>0) bident = args[0];

	var t='';
	t+='<table width="660" border="0" cellspacing="0" cellpadding="0">';
	t+='<tr>';
	t+='<td><img src="../images/gif/A0.gif" width="12" height="70"></td>';
	t+='<td><img src="../images/gif/A1.gif" width="38" height="70"></td>';
	t+='<td><a href="http://www.cofrac.fr" title="retour vers la page d\'accueil du site"><img src="../images/gif/A2.gif" width="65" height="70" border=0></a></td>';
	t+='<td><img src="../images/gif/A3.gif" width="33" height="70"></td>';
	t+='<td><a href="http://www.cofrac.fr" title="retour vers la page d\'accueil du site"><img src="../images/gif/A4.gif" width="502" height="70" border=0></a></td>';
	t+='<td><img src="../images/gif/A5.gif" width="10" height="70"></td>';
	t+='</tr>';
	t+='<tr>';
	t+='<td><img src="../images/gif/B0.gif" width="12" height="36"></td>';
	t+='<td valign="top"><img src="../images/gif/B1.gif" width="38" height="36"></td>';
	t+='<td valign="top"><a href="http://www.cofrac.fr" title="retour vers la page d\'accueil du site"><img src="../images/gif/B2.gif" width="65" height="36" border=0></a></td>';
	t+='<td valign="top"><img src="../images/gif/B3.gif" width="33" height="36"></td>';
	t+='<td>';
	t+=addSearchCode(bident);

	/*	
	t+='<form action="../menus/siteqry.asp" method="POST" class="BarreRecherche">';
	t+='<table width="502" border="0" cellspacing="0" cellpadding="0">';
	t+='<tr>';
	t+='<td><img src="../images/gif/b4a.GIF" width="210" height="21"></td>';
	t+='  <td>';
	t+='<input type="text" name="searchstring" maxLength="33" class="mono" size="33">';
	t+='  </td>';
	t+='<td><input type="image" border="0" name="imageField2" src="../images/gif/b4c.GIF" width="46" height="21"></td>';
	t+='</tr>';
	t+='<tr>';
	t+='<td><img src="../images/gif/c4a.GIF" width="210" height="15"></td>';
	t+='<td><img src="../images/gif/c4b.GIF" width="246" height="15"></td>';
	t+='<td><img src="../images/gif/c4c.GIF" width="46" height="15"></td>';
	t+='</tr>';
	t+='</table>';
	t+='</form>';
	*/

	t+='</td>';
	t+='<td valign="top">&nbsp;</td>';
	t+='</tr>';
	t+='</table>';
	document.write(t);

//	window.onload=function() {
		var b=(document.getElementsByTagName("body"))[0];
		var tag=document.createElement('div');
		tag.style.color='#ffffff';
		tag.style.fontFamily='verdana';
		tag.style.fontSize='10px';
		tag.style.position='absolute';
		tag.style.top='100px';
		tag.style.left='30px';
		tag.style.cursor='default';
		tag.style.fontWeight='bold';
		var tn=document.createTextNode('Page d\'accueil');
		var element = document.createElement("img");
		element.setAttribute("src", "../images/gif/home.gif");
		element.setAttribute("width", "14");
		element.setAttribute("height", "10");
		tag.appendChild(element);
		tag.appendChild(tn);
		//tag.setAttribute("style","position:absolute; z-index:200; left:40px; top:100px; cursor:default; font-weight:bold; font-size:10px; font-face:verdana; color:white;");
		b.appendChild(tag);
//	}

}


function addOldTop() {
	var t='';
	t+='<table width="660" border="0" cellspacing="0" cellpadding="0">';
	t+='<tr>';
	t+='<td><img src="../images/gif/A0.gif" width="12" height="70"></td>';
	t+='<td><img src="../images/gif/A1.gif" width="38" height="70"></td>';
	t+='<td><img src="../images/gif/A2.gif" width="65" height="70"></td>';
	t+='<td><img src="../images/gif/A3.gif" width="33" height="70"></td>';
	t+='<td><img src="../images/gif/A4.gif" width="502" height="70"></td>';
	t+='<td><img src="../images/gif/A5.gif" width="10" height="70"></td>';
	t+='</tr>';
	t+='<tr>';
	t+='<td><img src="../images/gif/B0.gif" width="12" height="36"></td>';
	t+='<td valign="top"><img src="../images/gif/B1.gif" width="38" height="36"></td>';
	t+='<td valign="top"><img src="../images/gif/B2.gif" width="65" height="36"></td>';
	t+='<td valign="top"><img src="../images/gif/B3.gif" width="33" height="36"></td>';
	t+='<td>';
	//t+=addSearchCode();
	//t+=addAdvancedSearchCode();

	
	t+='<form action="../menus/siteqry.asp" method="POST" class="BarreRecherche"  name="rechSimp">';
	t+='<table width="502" border="0" cellspacing="0" cellpadding="0">';
	t+='<tr>';
	t+='<td><img src="../images/gif/b4a.GIF" width="210" height="21"></td>';
	t+='  <td>';
	t+='<input type="text" name="searchstring" maxLength="33" class="mono" size="33">';
	t+='  </td>';
	t+='<td><input type="image" border="0" name="imageField2" src="../images/gif/b4c.GIF" width="46" height="21"></td>';
	t+='</tr>';
	t+='<tr>';
	t+='<td><img src="../images/gif/c4a.GIF" width="210" height="15"></td>';
	t+='<td><img src="../images/gif/c4b.GIF" width="246" height="15"></td>';
	t+='<td><img src="../images/gif/c4c.GIF" width="46" height="15"></td>';
	t+='</tr>';
	t+='</table>';
	t+='</form>';
	

	t+='</td>';
	t+='<td valign="top">&nbsp;</td>';
	t+='</tr>';
	t+='</table>';
	document.write(t);
}

// Pour la nouvelle barre de recherche fin


function initMenuG(nomm)
{
menuGauche = new Array(new Array("Le Cofrac","cofrac/qui.htm","COFRAC"),
new Array("Les sections","sections/default.htm","SECTIONS"),
new Array("Recrutement","actus/recrutement.htm","RECRUT"),
new Array("Recherche d'évaluateurs et d'experts","actus/experts.htm","EXPERTS"),
new Array("International","international/accords.htm","INTER"),
new Array("Actualit&eacute;s","actus/default.htm","ACTUS"),
new Array("Recherche d'organismes","recherche/default.htm","RECH"),
new Array("Doc. en ligne","documentation/COMMUNICATION.HTM","DOC"),
new Array("Liens, interactivit&eacute;","liens/SITES.MPI","LIENS"),
new Array("Partenaires","partenaires/default.htm","PARTEN"),
new Array("Presse","presse/default.HTM","PRESSE"),
new Array("Adhérer au Cofrac","adhesion/default.htm","ADHESION"),
new Array("Comparaisons inter-laboratoires","interlabos/default.htm","INTERLABOS"),
null,
//			new Array('[plan du site]','#','PLAN',1),
new Array('[nous contacter]','contact/contact.mpi','CONT',1),
new Array('[nous retrouver]','paris/default.htm','PARIS',1)
//			new Array('[english version]','#','ENGL',1)
);
}



   
function initMenus(nomm)
{
if (nomm=="cofrac") {
xxTitre="Le Cofrac";
xxArray = new Array ( 
new Array("Qui sommes-nous ?","qui.HTM","QUI",
new Array(
       new Array("Politique Cofrac","qualite.htm","QUALITE",null),
       new Array("Vocation","vocation.htm","VOCATION",null),
       new Array("M&eacute;tier","metier.HTM","METIER",null),
       new Array("Organigramme","organigramme.htm","ORGAN",null)
         )),
new Array("Pourquoi se faire accr&eacute;diter ?","pourquoi.htm","POURQUOI",
new Array(
       new Array("Avantages","Avantages.htm","AVANTAGE",null),
       new Array("Normes","norme.htm","NORME",null),
       new Array("Distinction Accr&eacute;ditation/Certification","Distinction.htm","DISTINCTION",null)
         )),
//new Array("Glossaire : les mots cl&eacute;s de l'accr&eacute;ditation","glossaire.mpi","GLO",null),
//new Array("Glossaire : les mots cl&eacute;s de l'accr&eacute;ditation","glossaire.htm","GLO",null),
new Array("Nos publications","../documentation/COMMUNICATION.HTM","PUBLI",null)
);
}

else if (nomm=="sections") {
xxTitre="Les sections";
xxArray = new Array ( 
new Array("Laboratoires","../sections/laboratoires.htm","LABO",
new Array(
//       new Array("Comit&eacute; de section","../sections/LABO_COMITE.HTM","LABO_COMITE",null),
//       new Array("Recherche d'organisme : Essai","../recherche/programmes.mpi?LIB=ESSAI&SECT=1&SELECT=TOUS","ESSRECH",null),
//       new Array("Recherche d'organisme : Etalonnage","../recherche/programmes.mpi?LIB=ETALONNAGE&SECT=2&SELECT=TOUS","ETARECH",null),
       new Array("Recherche d'organisme","../recherche/programmes.mpi?LIB=ETALONNAGE&SECT=2&SELECT=TOUS","ETARECH",null),
       new Array("Documentation","../documentation/ficn.mpi?s0=SECTIONS&s1=LABO_DOCU&repbase=Documentation%20sp%e9cifique%5C4.%20Laboratoires%5C","LABO_DOCU",null),
       new Array("FAQS","../faqs/faqs.mpi?section=LABOS&MG=SECTIONS&MD=LABO_FAQS","LABO_FAQS",null)
         ),1),
new Array("Certification d'Entreprises, de Personnels et Environnement","../sections/Ent_Per_Env.htm","ENTPERENV",
new Array(
//       new Array("Comit&eacute; de section","../sections/ENTPER_COMITE.HTM","COMITEDE-1",null),
       new Array("Recherche d'organisme","../recherche/programmes.mpi?LIB=CERTIFICATION%20D'ENTREPRISES%20ET%20PERSONNELS%20ET%20ENVIRONNEMENT&SECT=4&SELECT=TOUS","ENTRECH1",null),
       new Array("Documentation","../documentation/ficn.mpi?s0=SECTIONS&s1=ENTPER_DOCU&repbase=Documentation%20sp%e9cifique%5C1.%20Certification%20d'Entreprises%20et%20de%20Personnels%20et%20Environnement%5C","ENTPER_DOCU",null),
       new Array("FAQS","../faqs/faqs.mpi?section=ENTREP&MG=SECTIONS&MD=ENT_FAQS","ENT_FAQS",null)
         ),1),
new Array("Certification de Produits et Services","../sections/Certification.htm","CERTIF",
new Array(
//       new Array("Comit&eacute; de section","../sections/PROD_COMITE.HTM","PROD_COMITE",null),
       new Array("Recherche d'organisme","../recherche/programmes.mpi?LIB=CERTIFICATION%20PRODUITS%20ET%20SERVICES&SECT=5&SELECT=TOUS","INDRECH1",null),
       new Array("Documentation","../documentation/ficn.mpi?s0=SECTIONS&s1=PROD_DOCU&repbase=Documentation%20sp%e9cifique%5C2.%20Certification%20de%20Produits%20et%20Services%5C","PROD_DOCU",null),
       new Array("FAQS","../faqs/faqs.mpi?section=INDUS&MG=SECTIONS&MD=PROD_FAQS","PROD_FAQS",null)
         ),1),
new Array("Inspection","../sections/inspection.htm","INSPEC",
new Array(
//       new Array("Comit&eacute; de section","../sections/INSP_COMITE.HTM","INSP_COMITE",null),
       new Array("Recherche d'organisme","../recherche/programmes.mpi?LIB=INSPECTION&SECT=3&SELECT=TOUS","INSPRECH",null),
       new Array("Documentation","../documentation/ficn.mpi?s0=SECTIONS&s1=INSP_DOCU&repbase=Documentation%20sp%e9cifique%5C3.%20Inspection%5C","INSP_DOCU",null),
       new Array("FAQS","../faqs/faqs.mpi?section=INSPEC&MG=SECTIONS&MD=INSP_FAQS","INSP_FAQS",null)
         ),1)
,new Array("Santé Humaine","../sections/sante_humaine.htm","SANTE",
new Array(
       new Array("Recherche d'organisme","../recherche/programmes.mpi?LIB=Sant%E9%20Humaine&SECT=6&SELECT=TOUS","SANTERECH",null),
       new Array("Documentation","../documentation/ficn.mpi?s0=SECTIONS&s1=SANTEH_DOCU&repbase=Documentation%20sp%e9cifique%5C5.%20Sant%E9%20Humaine%5C","SANTEH_DOCU",null)
//       new Array("FAQS","../faqs/faqs.mpi?section=SANTE&MG=SECTIONS&MD=SANTEH_FAQS","SANTEH_FAQS",null)
         ),1)

);
}

else if (nomm=="inter")  {
xxTitre="International";
xxArray = new Array ( 
new Array("Accords de reconnaissance","accords.htm","LESACCOR-0",null),
new Array("Europe","EUROPE.HTM","EUROP_INTMLAEA",1),
/*new Array(
       new Array("EA","MLA_EA.HTM","INTMLAEA",null),
       new Array("MLA Essai","mlaeaessai.mpi","MLAEAES",
			new Array(
			   new Array("Liste alphabetique","mlaeaessai.mpi","MLAEAES1",null),
			   new Array("Carte","signataires_essais.htm","MLAEAES2",null)
			)),

       new Array("MLA Etalonnage","mlaeaetalon.mpi","MLAEAET",
			new Array(
			   new Array("Liste alphabetique","mlaeaetalon.mpi","MLAEAET1",null),
			   new Array("Carte","signataires_etalonnage.htm","MLAEAET2",null)
			)),

       new Array("MLA Certification","mlaeacertif.mpi","MLAEACE",
			new Array(
			   new Array("Liste alphabetique","mlaeacertif.mpi","MLAEACE1",null),
			   new Array("Carte","signataires_certification.htm","MLAEACE2",null)
			)),

       new Array("MLA Inspection","mlaeainspec.mpi","MLAINSP",
			new Array(
			   new Array("Liste alphabetique","mlaeainspec.mpi","MLAINSP1",null),
			   new Array("Carte","signataires_inspection.htm","MLAINSP2",null)
			))

         ),1),*/
new Array("Monde","MONDE.HTM","INTMONDE",1)
/*new Array(
       new Array("ILAC","mlailac.mpi","INTMONDEILAC",null),
       new Array("IAF","mlaiaf.mpi","MLAIAF",null)
         ),1)*/
);
}

else if (nomm=="actus") {
xxTitre="Actualit&eacute;s";
xxArray = new Array ( 
//new Array("Assemblées générales d'ILAC et IAF","ASSEMBLEE.HTM","ACTU_ASSEMBLEE",null),
//new Array("Certification d'entreprises, de personnels et Environnement","CERTENTPER.HTM","ACTU_CERTENTPER",null),
new Array("Offres d'emplois","RECRUTEMENT.HTM","ACTU_RECRUTEMENT",null), //ATTENTION A REMETTRE AUSSI DANS MENU GAUCHE
new Array("Laboratoires","LABORATOIRES.HTM","ACTU_LABORATOIRES",null),
//new Array("Inspection","INSPECTION.HTM","ACTU_INSPECTION",null),
new Array("Certification","CERTIFICATION.HTM","ACTU_CERTIFICATION",null),
new Array("Santé humaine","SANTE.HTM","ACTU_SANTE",null),
new Array("Recherche d'évaluateurs et d'experts","EXPERTS.HTM","ACTU_EXPERTS",
	new Array(
		new Array ("Section Santé Humaine","EXPERTS.HTM#BSante","ACTU_EXPERTS_BSante",null),
		new Array ("Section Inspection","EXPERTS.HTM#BInspection","ACTU_EXPERTS_BInspection",null),
		new Array ("Section Certification d’Entreprises et de Personnels et Environnement","EXPERTS.HTM#BEntreprise","ACTU_EXPERTS_BEntreprise",null),
		new Array ("Section Certification de Produits et Services","EXPERTS.HTM#BProdServices","ACTU_EXPERTS_B7",null),
//		new Array ("Section Laboratoires","EXPERTS.HTM#BLabos","ACTU_EXPERTS_BLabos",null),
		new Array ("Pôle Chimie-Environnement","EXPERTS.HTM#BChimie","ACTU_EXPERTS_BChimie",null),
		new Array ("Pôle Mécanique","EXPERTS.HTM#BMeca","ACTU_EXPERTS_BMeca",null),
		new Array ("Pôle Biologie-Biochimie","EXPERTS.HTM#B2","ACTU_EXPERTS_B2",null),
		new Array ("Pôle Physique-Electricité","EXPERTS.HTM#B1","ACTU_EXPERTS_B1",null)
//		new Array ("Bonnes Pratiques d'Expérimentation","EXPERTS.HTM#B4","ACTU_EXPERTS_B4",null)
		//new Array ("Section Certification d'Entreprises et de Personnels et Environnement","EXPERTS.HTM#B5","ACTU_EXPERTS_B5",null)
	),1),
//new Array("Certification de Produits et Services","CERTPROSER.HTM","ACTU_CERTPROSER",null),
//new Array("Comité de gestion et de qualification des auditeurs","COMGESTAUT.HTM","ACTU_COMGESTAUT",null),
new Array("Communication","COMMUNICATION.HTM","ACTU_COMMUNICATION",null),
//new Array("Relations Adhérents","RELADH.HTM","ACTU_RELATIONS",null),
new Array("International","INTERNATIONAL.HTM","ACTU_INTERNATIONAL",null),
new Array("Calendrier","CALENDRIER.HTM","ACTU_CALENDRIER",null)


//new Array("Création de poste en sections Certification","CREATION.HTM","ACTU_CREATION",null),
//new Array("Audit du Cofrac par EA","AUDIT.HTM","ACTU_AUDIT",null),

//new Array("International","INTERNATIONAL.HTM","ACTU_INTERNATIONAL",null)
);
}

else if (nomm=="rech") {
xxTitre="Recherche d'organismes";
xxArray = new Array ( 
new Array("Par nom","nom.mpi","NOM",null),
new Array("Par mot-cl&eacute;","motcle.mpi","CLE",null),
new Array("Par num&eacute;ro d'accr&eacute;ditation","numaccr.htm","NUMACC",null),
new Array("Par num&eacute;ro de programme","numprog.mpi","NUMPROG",null),
new Array("Par domaine","domaine.mpi","DOM",
new Array(
       new Array("Essai","../recherche/programmes.mpi?LIB=ESSAI&SECT=1&SELECT=TOUS","ESSRECH",null),
       new Array("Etalonnage","../recherche/programmes.mpi?LIB=ETALONNAGE&SECT=2&SELECT=TOUS","ETARECH",null),
       new Array("Inspection","../recherche/programmes.mpi?LIB=INSPECTION&SECT=3&SELECT=TOUS","INSPRECH",null),
       new Array("Certification d'Entreprises et Personnels et Environnement","../recherche/programmes.mpi?LIB=CERTIFICATION%20D'ENTREPRISES%20ET%20PERSONNELS%20ET%20ENVIRONNEMENT&SECT=4&SELECT=TOUS","ENTRECH",null),
       new Array("Certification Produits et Services","../recherche/programmes.mpi?LIB=CERTIFICATION%20PRODUITS%20ET%20SERVICES&SECT=5&SELECT=TOUS","INDRECH",null)
	   ,new Array("Santé Humaine","../recherche/programmes.mpi?LIB=Sant%E9%20Humaine&SECT=6&SELECT=TOUS","SANTERECH",null)
         ),1),
new Array("Dans les annexes techniques","annexe.htm","ANNEX",null)
);
}

else if (nomm=="doc") {
xxTitre="Doc. en ligne";
xxArray = new Array ( 
new Array("Communication","COMMUNICATION.HTM","DOC_COMM",
new Array(
       new Array("La lettre Cofrac","LETTRE.HTM","LETTRE",null),
       new Array("Comp&eacute;tences","COMPETENCES.HTM","COMPETENCES",null),
       new Array("Rapports d'activit&eacute;","RAPPORTS.HTM","RAPPORTS",null),
       new Array("Communiqu&eacute;s","COMMUNIQUES.HTM","COMMUNIQUES",null),
       new Array("Brochures","BROCHURES.HTM","BROCHURES",null),
       new Array("Archives","A_Lettre.htm","ARCHIVES",
new Array(
       new Array("La lettre Cofrac","A_Lettre.htm","A_LETTRE",null),
       new Array("Comp&eacute;tences","A_Competences.htm","A_COMPETENCES",null),
       new Array("Rapports d'activit&eacute;","A_RAPPORTS.HTM","A_RAPPORTS",null),
       new Array("Communiqu&eacute;s","A_COMMUNIQUES.HTM","A_COMMUNIQUES",null)
         ))
         )),
new Array("Documentation g&eacute;n&eacute;rale","ficn.mpi?s1=GENE&repbase=Documentation%20g%e9n%e9rale%5C","GENE",null),
new Array("Documentation sp&eacute;cifique","ficn.mpi?s1=DOC_SPE&repbase=Documentation%20sp%e9cifique%5C","DOC_SPE",
	new Array(
		new Array("1. Certification Entreprises et Personnels et Environnement","ficn.mpi?s1=DOCCEPE&repbase=Documentation%20sp%e9cifique%5C1.%20Certification%20d'Entreprises%20et%20de%20Personnels%20et%20Environnement%5C","DOCCEPE",null),
		new Array("2. Certification de Produits et Services","ficn.mpi?s1=DOCPS&repbase=Documentation%20sp%e9cifique%5C2.%20Certification%20de%20Produits%20et%20Services%5C","DOCPS",null),
		new Array("3. Inspection","ficn.mpi?s1=DOCINSP&repbase=Documentation%20sp%e9cifique%5C3.%20Inspection%5C","DOCINSP",null),
		new Array("4. Laboratoires","ficn.mpi?s1=DOCLABO&repbase=Documentation%20sp%e9cifique%5C4.%20Laboratoires%5C","DOCLABO",
			new Array(
				new Array("Bonnes Pratiques de Laboratoires (BPL)","ficn.mpi?s1=DOCBPL&repbase=Documentation%20sp%e9cifique%5C4.%20Laboratoires%5CBonnes%20Pratiques%20de%20Laboratoires%20(BPL)%5C","DOCBPL",null),
				new Array("Bonnes Pratiques d'Expérimentation (BPE)","ficn.mpi?s1=DOCBPE&repbase=Documentation%20sp%e9cifique%5C4.%20Laboratoires%5CBonnes%20Pratiques%20d'Expérimentation%20(BPE)%5C","DOCBPE",null),
				new Array("Métrologie Légale (ML)","ficn.mpi?s1=DOCML&repbase=Documentation%20sp%e9cifique%5C4.%20Laboratoires%5CMétrologie%20Légale%20(ML)%5C","DOCML",null),
//				new Array("Biologie Médicale (ISO 15189)","ficn.mpi?s1=DOC15189&repbase=Documentation%20sp%e9cifique%5C4.%20Laboratoires%5CBiologie%20Médicale%20(ISO%2015189)%5C","DOC15189",null),
				new Array("Laboratoires d'étalonnages et d'essais (ISO CEI 17025)","ficn.mpi?s1=DOC17025&repbase=Documentation%20sp%e9cifique%5C4.%20Laboratoires%5CLaboratoires%20d'étalonnages%20et%20d'essais%20(ISO%20CEI%2017025)%5C","DOC17025",null),
				new Array("Comparaisons Inter-Laboratoires (CIL)","ficn.mpi?s1=DOCCIL&repbase=Documentation%20sp%e9cifique%5C4.%20Laboratoires%5CComparaisons%20Inter-Laboratoires%20(CIL)%5C","DOCCIL",null),
				new Array("Programmes","ficn.mpi?s1=DOCLABPROG&repbase=Documentation%20sp%e9cifique%5C4.%20Laboratoires%5CProgrammes%5C","DOCLABPROG",null)
				)
			)
			,new Array("5. Santé Humaine","ficn.mpi?s1=DOCSANTHUM&repbase=Documentation%20sp%e9cifique%5C5.%20Sant%e9%20Humaine%5C","DOCSANTHUM",null)
		))

);
}

else if (nomm=="liens") {
xxTitre="Liens, interactivit&eacute;";
xxArray = new Array ( 
new Array("Sites utiles","../liens/SITES.MPI","SITESUTI-0",null),
new Array("Faqs","../faqs/faqs.mpi?section=GENE&MG=LIENS&MD=SITES_FAQS","SITES_FAQS",null)
//new Array("Abonnement &agrave; la lettre du Cofrac","../liens/SITES_ABONNEMENT.HTM","SITES_ABONNEMENT",null),
//new Array("Abonnement au magazine Comp&eacute;tences","../liens/SITES_ABONNEMENT_COMP.HTM","SITE_COMP",null)
);
}

else if (nomm=="paris") {
xxTitre="Nous retrouver";
xxArray = new Array ( 
new Array("Plan d'accès","../Paris/Default.htm","BISC",null),
new Array("Le Cofrac et les hôtels depuis Roissy ou Orly","../Paris/aeroport.htm","AEROPORT",null),
new Array("From Roissy or Orly Airport to Cofrac and hotels","../Paris/airport.htm","AIRPORT",null)
);
}
else if (nomm=="evaluateur") {
xxTitre="Evaluateurs";
allVisible=1;

var mymen;
var mymen0;
if (ajId>0) mymen=new Array(); else mymen=null;

xxArray = new Array(new Array("Espace évaluateurs","default.htm","EVAL",mymen));

if (ajId & 1) {
		mymen0=	new Array("Laboratoires","#","EVAL_LABO",
			new Array(
				new Array("Actualités","../evaluateurs/Actus_labo.htm","EVAL_ACTU1",null),
				new Array("Faqs","../evaluateurs/Faqs_labo.htm","EVAL_FAQS1",null),
				new Array("Documents d'évaluation","#","EVAL_EVAL1",
					new Array(
						new Array(_evala,"../evaluateurs/fics.mpi?s1=EVAL_REFAC1&repbase=0_Laboratoires%5C0_Ref_accreditation%5C","EVAL_REFAC1",null),
						new Array(_evalb,"../evaluateurs/fics.mpi?s1=EVAL_REFSP1&repbase=0_Laboratoires%5C1_Ref_specifiques%5C","EVAL_REFSP1",null),
						new Array(_evalc,"../evaluateurs/fics.mpi?s1=EVAL_GAUD1&repbase=0_Laboratoires%5C2_Guides_audit%5C","EVAL_GAUD1",null),
						new Array(_evald,"../evaluateurs/fics.mpi?s1=EVAL_RAPF1&repbase=0_Laboratoires%5C3_Rapport_fiches%5C","EVAL_RAPF1",null)
					)),
				new Array("Documents administratifs","#","EVAL_ADMI1",
					new Array(
						new Array(_evala2,"../evaluateurs/fics.mpi?s1=EVAL_FRAIS1&repbase=0_Laboratoires%5C4_Frais%5C","EVAL_FRAIS1",null),
						new Array(_evalb2,"../evaluateurs/fics.mpi?s1=EVAL_CONT1&repbase=0_Laboratoires%5C5_Contrats%5C","EVAL_CONT1",null)
					))
	         ));
		mymen.push(mymen0);
		};

if (ajId & 2) {
		mymen0=	new Array("Inspection","#","EVAL_INSP",
			new Array(
				new Array("Actualités","../evaluateurs/Actus_inspec.htm","EVAL_ACTU2",null),
				new Array("Faqs","../evaluateurs/Faqs_inspec.htm","EVAL_FAQS2",null),
				new Array("Documents d'évaluation","#","EVAL_EVAL2",
					new Array(
						new Array(_evala,"../evaluateurs/fics.mpi?s1=EVAL_REFAC2&repbase=1_Inspection%5C0_Ref_accreditation%5C","EVAL_REFAC2",null),
						new Array(_evalb,"../evaluateurs/fics.mpi?s1=EVAL_REFSP2&repbase=1_Inspection%5C1_Ref_specifiques%5C","EVAL_REFSP2",null),
						new Array(_evalc,"../evaluateurs/fics.mpi?s1=EVAL_GAUD2&repbase=1_Inspection%5C2_Guides_audit%5C","EVAL_GAUD2",null),
						new Array(_evald,"../evaluateurs/fics.mpi?s1=EVAL_RAPF2&repbase=1_Inspection%5C3_Rapport_fiches%5C","EVAL_RAPF2",null)
					)),
				new Array("Documents administratifs","#","EVAL_ADMI2",
					new Array(
						new Array(_evala2,"../evaluateurs/fics.mpi?s1=EVAL_FRAIS2&repbase=1_Inspection%5C4_Frais%5C","EVAL_FRAIS2",null),
						new Array(_evalb2,"../evaluateurs/fics.mpi?s1=EVAL_CONT2&repbase=1_Inspection%5C5_Contrats%5C","EVAL_CONT2",null)
					))
	         ));
		mymen.push(mymen0);
		};

if (ajId & 4) {
		mymen0=	new Array("CEPE","#","EVAL_CEPE",
						new Array(
				new Array("Actualités","../evaluateurs/Actus_cepe.htm","EVAL_ACTU3",null),
				new Array("Faqs","../evaluateurs/Faqs_cepe.htm","EVAL_FAQS3",null),
				new Array("Documents d'évaluation","#","EVAL_EVAL3",
					new Array(
						new Array(_evala,"../evaluateurs/fics.mpi?s1=EVAL_REFAC3&repbase=2_CEPE%5C0_Ref_accreditation%5C","EVAL_REFAC3",null),
						new Array(_evalb,"../evaluateurs/fics.mpi?s1=EVAL_REFSP3&repbase=2_CEPE%5C1_Ref_specifiques%5C","EVAL_REFSP3",null),
						new Array(_evalc,"../evaluateurs/fics.mpi?s1=EVAL_GAUD3&repbase=2_CEPE%5C2_Guides_audit%5C","EVAL_GAUD3",null),
						new Array(_evald,"../evaluateurs/fics.mpi?s1=EVAL_RAPF3&repbase=2_CEPE%5C3_Rapport_fiches%5C","EVAL_RAPF3",null)
					)),
				new Array("Documents administratifs","#","EVAL_ADMI3",
					new Array(
						new Array(_evala2,"../evaluateurs/fics.mpi?s1=EVAL_FRAIS3&repbase=2_CEPE%5C4_Frais%5C","EVAL_FRAIS3",null),
						new Array(_evalb2,"../evaluateurs/fics.mpi?s1=EVAL_CONT3&repbase=2_CEPE%5C5_Contrats%5C","EVAL_CONT3",null)
					))
	         ));
		mymen.push(mymen0);
		};

if (ajId & 8) {
		mymen0=	new Array("CPS","#","EVAL_CPS",
						new Array(
				new Array("Actualités","../evaluateurs/Actus_cps.htm","EVAL_ACTU4",null),
				new Array("Faqs","../evaluateurs/Faqs_cps.htm","EVAL_FAQS4",null),
				new Array("Documents d'évaluation","#","EVAL_EVAL4",
					new Array(
						new Array(_evala,"../evaluateurs/fics.mpi?s1=EVAL_REFAC4&repbase=3_CPS%5C0_Ref_accreditation%5C","EVAL_REFAC4",null),
						new Array(_evalb,"../evaluateurs/fics.mpi?s1=EVAL_REFSP4&repbase=3_CPS%5C1_Ref_specifiques%5C","EVAL_REFSP4",null),
						new Array(_evalc,"../evaluateurs/fics.mpi?s1=EVAL_GAUD4&repbase=3_CPS%5C2_Guides_audit%5C","EVAL_GAUD4",null),
						new Array(_evald,"../evaluateurs/fics.mpi?s1=EVAL_RAPF4&repbase=3_CPS%5C3_Rapport_fiches%5C","EVAL_RAPF4",null)
					)),
				new Array("Documents administratifs","#","EVAL_ADMI4",
					new Array(
						new Array(_evala2,"../evaluateurs/fics.mpi?s1=EVAL_FRAIS4&repbase=3_CPS%5C4_Frais%5C","EVAL_FRAIS4",null),
						new Array(_evalb2,"../evaluateurs/fics.mpi?s1=EVAL_CONT4&repbase=3_CPS%5C5_Contrats%5C","EVAL_CONT4",null)
					))
	         ))
		mymen.push(mymen0);
		};

}
else if (nomm=="parten") {
xxTitre="Partenaires";
xxArray = new Array ( 
//new Array("Club Adh&eacute;rents","#","ADHE",
//new Array(
 //      new Array("Docs en ligne","#","ADHE_DOCU",null),
 //      new Array("Actus","#","PART_ACTUS",null),
 //      new Array("Faqs","#","PART_FAQS",null)
 //        )),
new Array("Club Evaluateurs","audi_docu.htm","AUDI",null
//new Array(
//       new Array("Docs en ligne","audi_docu.htm","AUDI_DOCU",null),
//       new Array("Actus","audi_actus.htm","AUDI_ACTUS",null),
//       new Array("Calendrier","audi_cal.htm","AUDI_CAL",null),
//       new Array("Faqs","#","AUDI_FAQS",null)
//         )
),
//new Array("Accr&eacute;diteurs partenaires","#","ACCPART",null),
new Array("Autres partenaires","partenaires.mpi?type=autres","AUTPART",null)
);
}

else if (nomm=="presse") {
xxTitre="Presse";
xxArray = new Array ( 
new Array("Communiqué de de presse","#","PRESSE",null),
new Array("Dossier de presse Cofrac","/fr/presse/docs/COFRAC0609.pdf_blank","PRESSE2",null)
);
}

else if (nomm=="adhesion") {
xxTitre="Adhérer au cofrac";
xxArray = new Array ( 
new Array("Pourquoi adhérer au Cofrac&nbsp;?","#","ADH1",null),
new Array("Bulletin d'adhésion","/fr/adhesion/docs/ADHESION_BULLETIN_2010.doc_blank","ADH2",null)
);
}

else if (nomm=="interlabos") {
xxTitre="Campagnes de comparaisons inter-laboratoires";
xxArray = new Array ( 
new Array("Parution d'une nouvelle brochure ILAC","#A4","INTERLABOS4",null),
new Array("Comparaisons Interlaboratoires nationales","#A1","INTERLABOS1",null),
new Array("Comparaisons Interlaboratoires internationales","#A2","INTERLABOS2",null),
new Array("Lien vers d'autres sites d'information sur les Comparaisons Interlaboratoires","#A3","INTERLABOS3",null)
);
}

else {xxArray = new Array();xxTitre=nomm;}
}

	 
function getst0(men,nomst) {
var i;
var result='';
var strtmp='';
for (i=0;i<men.length;i++) {
	xxChemin[xxChemin.length]=men[i];
//	xxChemin.push(men[i]);
//	xxChemin.push(men[i]);
	strtmp=men[i][2];strtmp=strtmp.toLowerCase();
	if (strtmp==nomst) {
		return men[i][0];
	} else {
		if (men[i][3]!=null) {
			result=getst0(men[i][3],nomst);
			if (result!='') {
				break;
				}
			}
		}
	xxChemin.length=xxChemin.length-1;
	}
return result;
}

function gethref(nitem) {
var i;
var result='#';
var strtmp='';
for (i=0;i<menuGauche.length;i++) {
	if (menuGauche[i]!=null) {
		strtmp=menuGauche[i][2];strtmp=strtmp.toLowerCase();
		if (strtmp==nitem) return menuGauche[i][1];
		}
	}
return result;
}

function getsoustitre(nomst) {
getst0(xxArray,nomst.toLowerCase());

var spacer='<font size="-2"> | </font>';
xxSousTitre='<A HREF="/Cofrac.htm">Accueil'+'</A>';
if (xxHref!='#') xxSousTitre=xxSousTitre + spacer + '<a href="../'+xxHref+'">'+xxTitre+'</a>';


var ln=xxChemin.length;
for (var i=0; i< ln; i++ )
	{
	xxSousTitre+=spacer;
	var lien=(i<ln-1) ? '<A HREF="'+xxChemin[i][1]+'">':'<B><A HREF="'+xxChemin[i][1]+'"></B>';
	var finLien='</A>';
	xxSousTitre+=lien+xxChemin[i][0]+finLien;
	}
	xxSousTitre+='<BR><BR>&nbsp;';
}
	  

//Fonctions d'affichage d'un menu
function ecritbas()
{
str='<div id="xxbas" class="styleBas">&nbsp;</div>';
return str;
}
									   
function ecrittitre()
{
str='<div id="xxhaut" class="styleTitre">'+
  '<table width="240" border="0" cellspacing="0" cellpadding="0">'+
  '<tr>'+
  '<td valign="top"><img src="../images/gif/menu_mouvant_barre_gauche.GIF" width="16" height="3"></td>'+
  '<td><img src="../images/gif/menu_mouvant_barre_milieu.GIF" width="208" height="3"></td>'+
  '<td valign="top"><img src="../images/gif/menu_mouvant_barre_droite.GIF" width="16" height="3"></td>'+
  '</tr>'+
  '<tr>'+
  '<td valign="top" class="menu_mouvant_bords">&nbsp;</td>'+
  '<td class="menu_mouvant_titre">'+
  '<center>'+
  '<b>'+xxTitre+'</b>'+
  '</center>'+
  '</td>'+
  '<td valign="top" class="menu_mouvant_bords">&nbsp;</td>'+
  '</tr>'+
  '<tr>'+
  '<td valign="top"><img src="../images/gif/menu_mouvant_barre_gauche.GIF" width="16" height="3"></td>'+
  '<td><img src="../images/gif/menu_mouvant_barre_milieu.GIF" width="208" height="3"></td>'+
  '<td valign="top"><img src="../images/gif/menu_mouvant_barre_droite.GIF" width="16" height="3"></td>'+
  '</tr>'+
  '</table></div>';
return str;
}


function getstr(menu,ref,lib,ident,lev,isel,jsel)
{
var puce;var dr_class;
var strplus='';
if ((menu[3]!=null) && ((lev>0)||(menu.length>4))) {if (allVisible==1) strplus="->"; else strplus='[+]';}
if (lev==0) 
	{
	dr_class='dr_menu1';
	if (ident==isel) {puce='dr_puce1_a';ref='javascript:void(0)';dr_class+='s';}
	else  puce='dr_puce1';
	str='<div id="'+ident+'" class="style0"><img src="../Images/gif/'+puce+'.gif" border=0>&nbsp;';
	if (strplus!='') str+='<a href="javascript:void(0)" class="dr_menup" onclick="posmenu(\''+ident+'\',\'\',1,false);">'+strplus+'</a>';
	if (ref!='') {
		var iBlank=ref.indexOf('_blank');
		if (iBlank==-1)
		{
			str+='<b>&nbsp;<a href="'+ref+'" class="'+dr_class+'">';
		} else {
			str+='<b>&nbsp;<a href="'+ref.substring(0,iBlank)+'" class="'+dr_class+'" target="_blank">';
		}
	}
	str+=lib;
	if (ref!='') str+='</a>';
	str+='</b></div>';
	}
else if (lev==1) 
	{
	dr_class='dr_menu2';
	if (ident==isel) {puce='dr_puce2_a';ref='javascript:void(0)';dr_class+='s';}
	else  puce='dr_puce2';
	str='<div id="'+ident+'" class="style1"><img src="../Images/gif/'+puce+'.gif" border=0>&nbsp;';
	if (strplus!='') str+='<a href="javascript:void(0)" class="dr_menup" onclick="posmenu(\''+ident+'\',\'\',1,false);">'+strplus+'</a>';
	if (ref!='') str+='&nbsp;<a href="'+ref+'" class="'+dr_class+'">';
	str+=lib;
	if (ref!='') str+='</a>'
	str+='</div>';
	}
else if (lev==2) 
	{
	dr_class='dr_menu3';

	var i;var addstr='';
	if (ident==isel) {ref='javascript:void(0)';dr_class+='s';}
	for (i=1;i<lev;i++) addstr+='&nbsp;&nbsp;&nbsp;&nbsp;';
	str='<div id="'+ident+'" class="style2">'+addstr;
	if (strplus!='') str+='<a href="javascript:void(0)" class="dr_menup" onclick="posmenu(\''+ident+'\',\'\',1,false);">'+strplus+'</a>';
	if (ref!='') str+='&nbsp;<a href="'+ref+'" class="'+dr_class+'">';
	str+=lib;
        if (ref!='') str+='</a>';
	str+='</div>';
	}
else 
	{
	dr_class='dr_menu4';

	var i;var addstr='';
	if (ident==isel) {ref='javascript:void(0)';dr_class+='s';}
	for (i=1;i<lev;i++) addstr+='&nbsp;&nbsp;&nbsp;&nbsp;';
	str='<div id="'+ident+'" class="style2">'+addstr;
	if (strplus!='') str+='<a href="javascript:void(0)" class="dr_menup" onclick="posmenu(\''+ident+'\',\'\',1,false);">'+strplus+'</a>';
	if (ref!='') str+='&nbsp;<a href="'+ref+'" class="'+dr_class+'">';
	str+=lib;
        if (ref!='') str+='</a>';
	str+='</div>';
	}

return str;
}


function writemenu0(nommenu,isel,jsel,lev,per)
{
var str='';
var i;
var levaff=lev;
var ssmenu;

//if nommenu=evaluateurs -> reconstruire menu en fonction de ajId
var menu=eval(nommenu);
for (i=0;i<menu.length;i++)
	{
	if (per!=null) 
		{
		peres[menu[i][2].toLowerCase()]=per[2].toLowerCase();
		if (per.length>4) levaff=per[4];		
		}
	else peres[menu[i][2].toLowerCase()]=null;
	str+=getstr(menu[i],menu[i][1],menu[i][0],menu[i][2].toLowerCase(),levaff,isel,jsel);
	if (menu[i][3]!=null)
		{
		ssmenu=nommenu+'['+i+'][3]';
		str+=writemenu0(ssmenu,isel,jsel,lev+1,menu[i]);
		}	
	}
return str;
}


function positionItem(theObj,men,topPrev,visi,bleft) {
    var top0=topPrev;
    if (theObj==null) theObj=getObj(men);
    if (theObj)
	{
    	if (NN4) {
		
      		if (visi==1) 
			{		
			top0=topPrev+theObj.clip.height;
			theObj.top=topPrev;
			if (bleft) theObj.left=leftMenu;
			theObj.visibility='show';
			}
		else theObj.visibility='hide';
		}
    	else if (IE) { //IE
		if (visi==1)
			{
			top0=topPrev+theObj.offsetHeight;
			theObj.style.pixelTop=topPrev;
			if (bleft) theObj.style.pixelLeft=leftMenu;
			theObj.style.visibility='visible';
			}
		else theObj.style.visibility='hidden';	
		}
        else if (DOCID) {
		if (visi==1)
			{
			top0=topPrev+parseInt(theObj.offsetHeight);
			theObj.style.top=topPrev;
			if (bleft) theObj.style.left=leftMenu;
			theObj.style.visibility='visible';
			}
		else theObj.style.visibility='hidden';
		}
	}
return top0;
}

function isancester(menu1b,menu2b)
{
var menu1=menu1b.toLowerCase();
var menu2=menu2b.toLowerCase();
var rep=false;
var ssmenu=menu2;
while ((ssmenu!=menu1) && (peres[ssmenu]) && (peres[ssmenu]!=null)&& (peres[ssmenu]!='')) {
	ssmenu=peres[ssmenu];	
	}
if (ssmenu==menu1) rep=true;
return rep;
}

function posmen0(menu,isel,jsel,top0,visi,lev,bfirst)
{
var i=0;var visi0=1;
for (i=0;i<menu.length;i++)
	{
	if (bfirst) menu[i][0]=getObj(menu[i][2]);
	top0=positionItem(menu[i][0],menu[i][2].toLowerCase(),top0,visi,true);
	if (((lev>0)||((menu[i].length==5)&&(menu[i][4]>0)))&&(!isancester(menu[i][2],isel)))
		{
		if(typeof(allVisible)!='undefined'){ 
			if (allVisible==1) visi0=1;else visi0=0;
			}
		else visi0=0;
		}
	else visi0=1;
	if (menu[i][3]!=null) top0=posmen0(menu[i][3],isel,jsel,top0,visi0,lev+1,bfirst);
	}
return top0;
}

function getObj(nomobj)
{
var theObj=null;
if (NN4) {
	theObj = eval('document.layers[\''+nomobj+'\']');
	  } 
else if (IE) { //IE
	theObj = eval('document.all[\''+nomobj+'\']');
    } 
else if (DOCID) {
	theObj=document.getElementById(nomobj);
	}
return theObj;
}

function getYPos(theObj) {
var YPos=0;
if (theObj)
	{
	if (NN4)   YPos=theObj.top;		
	else if (IE) YPos=parseInt(theHaut.style.top);
	else if (DOCID)	YPos=parseInt(theObj.offsetTop);	
	}
return YPos;
}

function getv(ecart)
{
var vit=1;
if (ecart>6) vit=parseInt(ecart/2);
else vit=1;
return vit;
}

function posmenu(isel,jsel,brep,bfirst)
{
var top0=110;
if (NS) top0=window.pageYOffset+topMenu;
else top0=document.body.scrollTop+topMenu;
var topcible=top0;
if (theHaut==null) theHaut=getObj('xxhaut');
var posact=getYPos(theHaut);
if (!bfirst)
	{
	if (posact>top0) top0=posact-getv(posact-top0);
	else if (posact<top0) top0=posact+getv(top0-posact);
	}

if ((top0!=posact)||(brep==1))
	{
	var i;
	for (i=0;i<objFloat.length;i++)
		{
		if (objFloat[i][0]==null) objFloat[i][0]=getObj(objFloat[i][2]);
		if (objFloat[i][2]=='ASC') positionItem(objFloat[i][0],'xxx',topcible-topMenu+objFloat[i][1],1,false);
		else positionItem(objFloat[i][0],'xxx',top0-topMenu+objFloat[i][1],1,false);
		}
	if (theHaut==null) theHaut=getObj('xxhaut');

	top0=positionItem(theHaut,'xxhaut',top0,1,true);
	if ((jsel!=null) && (jsel!='')) selitem=jsel;
	else selitem=isel;
	top0=posmen0(xxArray,isel,jsel,top0,1,0,bfirst);
	if (theBas==null) theBas=getObj('xxbas');
	positionItem(theBas,'xxbas',top0,1,true);
	}
}

function reposmenu(bfirst)
{
posmenu(selitem,'',0,bfirst);
}

function montemenu(imnt)
{
for (i=0;i<objFloat.length;i++)
	{
	if (objFloat[i][0]==null) objFloat[i][0]=getObj(objFloat[i][2]);
	if (objFloat[i][2]!='ASC') objFloat[i][1]+=imnt;
	}
topMenu+=imnt;
}

function writeascen()
{
var str0='<div ID="ASC" class="floatobj2">';
str0+='<a href="javascript:void(0)" onclick="montemenu(-85)" class="dr_menup">+</a><br>';
str0+='<a href="javascript:void(0)" onclick="montemenu(85)" class="dr_menup">-</a><br></div>';
return str0;
}

function initmen(meng,mend) {
var selmen=meng.toLowerCase();
initMenuG(selmen);
initMenus(selmen);
xxHref=gethref(selmen);
getsoustitre(mend);
}

function writemenu()
{
a=writemenu.arguments;
var nommenu=a[0].toLowerCase();
var isel=a[1].toLowerCase();
var jsel=a[2].toLowerCase();
var top1=a[3];
var strini=a[4];
if (a.length>5) bAsc=a[5];
topMenu=top1;
peres=new Array();
menuEnCours=nommenu;
selitem=isel;
var str=strini;
str+=ecrittitre();
str+=writemenu0('xxArray',isel,jsel,0,null);
str+=ecritbas();
if (bAsc==1) str+=writeascen();
document.write(str);
}

function set_class() { //v2.0
  var args = set_class.arguments;
  var strentree = args[0];
  var obj;
  if (NN4) obj=eval('document.layers[strentree]');
  else if (DOCID) obj=document.getElementById(strentree);
  else obj=eval('document.all[strentree]');
  if ((!NN4)&&(obj != null)) {
	obj.className=args[1];	
	}
}

function writemenugauche(selmen2,refer,menuGaucheToLight)
{
	
	
var selmen=selmen2.toLowerCase();
if (menuGaucheToLight) selmen=menuGaucheToLight.toLowerCase();
var i=0;var str='';	 
var tdid='';
for (i=0;i<menuGauche.length;i++)
	{
	if (menuGauche[i]==null)
		str=str+'<tr><td  class="menu_gauche_item"><br></td></tr>';
	else if (menuGauche[i].length<=3)
		{
	 	tdid='td_'+menuGauche[i][2];
		if (selmen==menuGauche[i][2].toLowerCase())
			str=str+'<tr><td class="menu_gauche_selected">'+menuGauche[i][0]+'</td></tr>';
		else 
			str=str+'<tr><td class="menu_gauche_item" id="'+tdid+
				'" onmouseover="set_class(\''+tdid+'\',\'menu_gauche_item_over\');"  '+
				'onmouseout="set_class(\''+tdid+'\',\'menu_gauche_item\');" '+
				'onclick="window.location=\''+refer+menuGauche[i][1]+'\'">&nbsp;'+
				'<a href="'+refer+menuGauche[i][1]+'"  >'+
				menuGauche[i][0]+'</a></td></tr>';
		}
	else 
		{
		if (selmen==menuGauche[i][2].toLowerCase()) {
			str=str+'<tr><td class="menu_gauche_selected">'+menuGauche[i][0]+'</td></tr>';
			}	else  {
			str=str+'<tr><td class="menu_gauche_incontournables"><a href="'+refer+menuGauche[i][1]+'"  >'+menuGauche[i][0]+'</a></td></tr>';		
			}
		}
	}

	str+='<tr><td class="menu_gauche_incontournables">&nbsp;</td></tr><tr><td class="menu_gauche_incontournables"><a href="http://www.cofrac.fr/en" style="border:0;"><img src="/fr/images/gif/englishVersion.gif" border="0"/></a></td></tr>';
document.write(str);
}

function affmenu(bfl1)
{
if (bAsc==1) addfloat("ASC",200);
reposmenu(true);
if (bfl1>0) window.setInterval('reposmenu(false)',50);



}


function addfloat(nomobj,topobj)
{
var theObj=getObj(nomobj);
if (theObj) objFloat[objFloat.length]=new Array(theObj,topobj,nomobj);
else objFloat[objFloat.length]=new Array(null,topobj,nomobj);
}

function restore()
{
history.go(0);
}


function gettheDate() {
Todays = new Date();
Mnth = Todays.getMonth()+ 1;
Jur = Todays.getDay();
if (Jur == 1) {Jour = "Lun";}
if (Jur == 2) {Jour = "Mar";}
if (Jur == 3) {Jour = "Mer";}
if (Jur == 4) {Jour = "Jeu";}
if (Jur == 5) {Jour = "Ven";}
if (Jur == 6) {Jour = "Sam";}
if (Jur == 0) {Jour = "Dim";}
if (Mnth == 1) {Month = "Janvier";}
if (Mnth == 2) {Month = "F&eacute;vrier";}
if (Mnth == 3) {Month = "Mars";}
if (Mnth == 4) {Month = "Avril";}
if (Mnth == 5) {Month = "Mai";}
if (Mnth == 6) {Month = "Juin";}
if (Mnth == 7) {Month = "Juilllet";}
if (Mnth == 8) {Month = "Ao&uacute;t";}
if (Mnth == 9) {Month = "Septembre";}
if (Mnth == 10) {Month = "Octobre";}
if (Mnth == 11) {Month = "Novembre";}
if (Mnth == 12) {Month = "D&eacute;cembre";}
var numy=Todays.getYear();
if ((numy>=100) && (numy<200)) numy=numy+1900;
//numy=numy-2000;
if (numy<10) numy='0'+numy;
{
}
{
}
//TheDate = Jour+"  "+Todays.getDate()+" "+Month+" "+numy;
TheDate = Todays.getDate()+" "+Month+" "+numy;
return (TheDate);}


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.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);
  if(!x && document.getElementById) x=document.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 getAjaxId() {
var xhr_object = null;
try {xhr_object = new ActiveXObject('MSXML2.XMLHTTP');}
catch (e) {
    try {xhr_object = new ActiveXObject('Microsoft.XMLHTTP');}
    catch (e2) {
        try {xhr_object = new XMLHttpRequest();}
        catch (e3) {xhr_object = null;return "";}
	}
}
if (xhr_object!=null)
	{
	xhr_object.open("GET", "/fr/evaluateurs/connect.asp?ts="+ new Date().getTime(),false);
	xhr_object.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2005 00:00:00 GMT");

//	xhr_object.setRequestHeader("cache-Control", "no-store, no-cache, must-revalidate");
//	xhr_object.setRequestHeader("cache-Control", "post-check=0, pre-check=0");
//	xhr_object.setRequestHeader("cache-Control", "max-age=0");
//	xhr_object.setRequestHeader("Pragma", "no-cache");
	try {xhr_object.send(null);}
	catch(e4) {
//		alert(e4.message);
		return -1;
		}
//alert(xhr_object.status);
	if ((xhr_object.readyState == 4) && (xhr_object.status == 200))  {
//			alert(xhr_object.responseText);
			return xhr_object.responseText;
			} 
	}
return "";
}
