function menuGAUCHE(MENU_Gen_cour, NOM_FICHIER_html, ROOT_id) {

var xmlMENU;
   if ( document.implementation.createDocument )
         xmlMENU=document.implementation.createDocument("", "", null);
   else   xmlMENU=new ActiveXObject("Microsoft.XMLDOM");
   xmlMENU.async=false;
   //var fic="testo.xml";
   //var fic="xml/menu.xml";
    var fic=ROOT_id+"xml/menu.xml";
   if ( document.implementation.createDocument && window.opener )
   {   fic=window.opener.location.href.substring(0,window.opener.location.href.lastIndexOf("/")+1)
         +fic; }
   xmlMENU.load(fic);
     // alert("pKKKzz "+" -");
   var ROOT_racine=xmlMENU.getElementsByTagName("menu")[0];
   
  var NBR_menu_N1 = ROOT_racine.getElementsByTagName("menu").length;
var q = MENU_Gen_cour-1;
//if(Document.load("z_test.xml")){
                                 
// CONSTRUCTION MENU NIVEAU 1 -------------- DEBUT

//for ( var q=0;q<NBR_menu_N1;q++ ) {
	//var q = 2;
		var k = q+1;
                                               												  				  														  
	
		//document.write (k);
		var ROOT_menu_N2=xmlMENU.getElementsByTagName("sous_menu")[q];
   
		var NBR_smenu_N2 = ROOT_menu_N2.getElementsByTagName("sMenu").length;
	 	var menu_TEXT_N1 = ROOT_racine.getElementsByTagName("menu")[q].attributes[0].value;
	   var ROOT_repertoire = ROOT_racine.getElementsByTagName("menu")[q].attributes[1].value;
			//var menuId = Document.getElementsByTagName("menu")[j+1].attributes[0].value;
//*********** ECRITURE NIVEAU 1111
		
		document.write ("<TABLE class=verticalNav cellSpacing=0 cellPadding=0 border=0><TBODY>");
		document.write ("<TR><TD style=PADDING-TOP: 43px>");

		document.write ("<TABLE class=level1 cellSpacing=0 cellPadding=0 width=185><TBODY>");
		document.write ("<TR><TD>");
		
		
		document.write ("<DIV class=board><DIV class=topRightCorner></DIV><DIV class=topLeftCorner></DIV>");
        document.write ("<span class=tMenuG>"+menu_TEXT_N1+"</span>");
        document.write ("<DIV class=bottomRightCorner></DIV><DIV class=bottomLeftCorner></DIV></DIV>");         

		//document.write (menu_TEXT_N1+"-"+k+" -"+PAGE_Gen_cour+" VV "+NBR_smenu_N2);
		//document.write ("</A>");
		
                                                                    
//} 
// CONSTRUCTION MENU NIVEAU 1 -------------- FIN
       
	
// CONSTRUCTION MENU NIVEAU 2 DEROULE -------------- DEBUT

//for ( var q=0;q<NBR_menu_N1;q++ ) {   
   
		    		//var nombre = Document.getElementsByTagName("sous_menu")[w].childNodes.length;
					//document.write ("<br>- "+nombre);
					
					var ROOT_menu_N2=xmlMENU.getElementsByTagName("sous_menu")[q]; 		
					var NBR_smenu_N2 = ROOT_menu_N2.getElementsByTagName("sMenu").length;
	 				var menu_TEXT_N1 = ROOT_racine.getElementsByTagName("menu")[q].attributes[0].value;
		
					id_m = q+1;
					//
				//	document.write ("<DIV class=Menu2 id=Menu1_"+id_m+" style='DISPLAY: none'>");
					//document.write (id_m);
					//document.write (" style='DISPLAY: none'>");
					document.write ("<TABLE width=185px class=level2 cellSpacing=0 cellPadding=0>");
					document.write ("<TBODY>");
			//	for(x=0;x<nombre;x++){
	for ( var b=0;b<NBR_smenu_N2;b++ ) 
	{ // ---------------- DEBUT BOUCLE NOMBRE DE LIGNE	
					xcp = b+1;
				
				var menu_VISI = ROOT_menu_N2.getElementsByTagName("sMenu")[b].attributes[2].value;
				// TEST SI LIGNE XML est VISIBLE
				//if(!menu_VISI) {
					
				if(!menu_VISI || (menu_VISI<1)) 
				{	 //---------------------------------- || NOM_FICHIER_html==1----------------------------------------------- DEBUT TEST SI LIGNE XML est VISIBLE
				
				if(ROOT_repertoire!="config") {
					document.write ("<TR>");
					
							
					var menu_TEXT_N2 = ROOT_menu_N2.getElementsByTagName("sMenu")[b].attributes[0].value;
					var menu_URL = ROOT_menu_N2.getElementsByTagName("sMenu")[b].attributes[1].value;
					//var menu_idSMENU = ROOT_menu_N2.getElementsByTagName("sMenu")[b].attributes[3].value;
							if(NOM_FICHIER_html == menu_URL){ 
								CLASS_link = "class=selected"; 
							} else {
								CLASS_link = ""; 
							}
					
					//var menu_VISI = ROOT_menu_N2.getElementsByTagName("sMenu")[b].attributes[2].value;
					document.write ("<TD>");
					document.write ("<A href='");
						document.write (ROOT_id+ROOT_repertoire+"/"+menu_URL);
					document.write ("' target=_self "+CLASS_link+">");
						document.write (menu_TEXT_N2);
					// DEBUG  document.write (menu_TEXT_N2+" - "+xcp+" * "+PAGE_Gen_cour+" + "+menu_idSMENU);

						// DEBUG -- document.write (id_m+" - "+SSmenu_NAME+" - "+xcp+" - "+MENU_Gen_cour);
					document.write ("</A></TD>");
					document.write ("</TR>");
				}	
				} //--------------------------------------------------------------------------------- FIN TEST SI LIGNE XML est VISIBLE
					
	} // ---------------- FIN BOUCLE NOMBRE DE LIGNE
					document.write ("</TBODY></TABLE>");
					document.write ("</TD></TR></TBODY></TABLE>");
					document.write ("</TD></TR></TBODY></TABLE>");
					
} 					
 // }
 
 function menuGAUCHE_sousNV(MENU_Gen_cour, NOM_FICHIER_html, ROOT_id) {
	
var xmlMENU;
   if ( document.implementation.createDocument )
         xmlMENU=document.implementation.createDocument("", "", null);
   else   xmlMENU=new ActiveXObject("Microsoft.XMLDOM");
   xmlMENU.async=false;
   //var fic="testo.xml";
   //var fic="xml/menu.xml";
    var fic=ROOT_id+"xml/menu2.xml";
   if ( document.implementation.createDocument && window.opener )
   {   fic=window.opener.location.href.substring(0,window.opener.location.href.lastIndexOf("/")+1)
         +fic; }
   xmlMENU.load(fic);
     // alert("pKKKzz "+" -");
   var ROOT_racine=xmlMENU.getElementsByTagName("menu")[0];
   
  var NBR_menu_N1 = ROOT_racine.getElementsByTagName("menu").length;
var q = MENU_Gen_cour-1;
//if(Document.load("z_test.xml")){
                                 
// CONSTRUCTION MENU NIVEAU 1 -------------- DEBUT

//for ( var q=0;q<NBR_menu_N1;q++ ) {
	//var q = 2;
		var k = q+1;
                                               												  				  														  
	
		//document.write (k);
		var ROOT_menu_N2=xmlMENU.getElementsByTagName("sous_menu")[q];
   
		var NBR_smenu_N2 = ROOT_menu_N2.getElementsByTagName("sMenu").length;
	 	var menu_TEXT_N1 = ROOT_racine.getElementsByTagName("menu")[q].attributes[0].value;
		var ROOT_repertoire = ROOT_racine.getElementsByTagName("menu")[q].attributes[1].value;
	   
			//var menuId = Document.getElementsByTagName("menu")[j+1].attributes[0].value;
//*********** ECRITURE NIVEAU 1111
		
		document.write ("<TABLE class=verticalNav cellSpacing=0 cellPadding=0 border=0><TBODY>");
		document.write ("<TR><TD style=PADDING-TOP: 43px>");

		document.write ("<TABLE class=level1 cellSpacing=0 cellPadding=0 width=185><TBODY>");
		document.write ("<TR><TD>");
		
		
		document.write ("<DIV class=board><DIV class=topRightCorner></DIV><DIV class=topLeftCorner></DIV>");
        document.write ("<span class=tMenuG>"+menu_TEXT_N1+"</span>");
        document.write ("<DIV class=bottomRightCorner></DIV><DIV class=bottomLeftCorner></DIV></DIV>");         

		//document.write (menu_TEXT_N1+"-"+k+" -"+PAGE_Gen_cour+" VV "+NBR_smenu_N2);
		//document.write ("</A>");
		
                                                                    
//} 
// CONSTRUCTION MENU NIVEAU 1 -------------- FIN
       
	
// CONSTRUCTION MENU NIVEAU 2 DEROULE -------------- DEBUT

//for ( var q=0;q<NBR_menu_N1;q++ ) {   
   
		    		//var nombre = Document.getElementsByTagName("sous_menu")[w].childNodes.length;
					//document.write ("<br>- "+nombre);
					
					var ROOT_menu_N2=xmlMENU.getElementsByTagName("sous_menu")[q]; 		
					var NBR_smenu_N2 = ROOT_menu_N2.getElementsByTagName("sMenu").length;
	 				var menu_TEXT_N1 = ROOT_racine.getElementsByTagName("menu")[q].attributes[0].value;
		
					id_m = q+1;
					//
				//	document.write ("<DIV class=Menu2 id=Menu1_"+id_m+" style='DISPLAY: none'>");
					//document.write (id_m);
					//document.write (" style='DISPLAY: none'>");
					document.write ("<TABLE width=185px class=level2 cellSpacing=0 cellPadding=0>");
					document.write ("<TBODY>");
			//	for(x=0;x<nombre;x++){
	for ( var b=0;b<NBR_smenu_N2;b++ ) 
	{ // ---------------- DEBUT BOUCLE NOMBRE DE LIGNE	
					xcp = b+1;
				
				var menu_VISI = ROOT_menu_N2.getElementsByTagName("sMenu")[b].attributes[2].value;
				// TEST SI LIGNE XML est VISIBLE
				//if(!menu_VISI) {
				if(!menu_VISI || (menu_VISI<1)) 
				{	 //--------------------------------------------------------------------------------- DEBUT TEST SI LIGNE XML est VISIBLE
					document.write ("<TR>");
					
							
					var menu_TEXT_N2 = ROOT_menu_N2.getElementsByTagName("sMenu")[b].attributes[0].value;
					var menu_URL = ROOT_menu_N2.getElementsByTagName("sMenu")[b].attributes[1].value;
					//var menu_idSMENU = ROOT_menu_N2.getElementsByTagName("sMenu")[b].attributes[3].value;
							if(NOM_FICHIER_html == menu_URL){ 
								CLASS_link = "class=selected"; 
							} else {
								CLASS_link = ""; 
							}
					
					//var menu_VISI = ROOT_menu_N2.getElementsByTagName("sMenu")[b].attributes[2].value;
					document.write ("<TD>");
					document.write ("<A href='");
						//document.write (menu_URL);
						document.write (ROOT_id+ROOT_repertoire+"/"+menu_URL);
					document.write ("' target=_self "+CLASS_link+">");
						document.write (menu_TEXT_N2);
					// DEBUG  document.write (menu_TEXT_N2+" - "+xcp+" * "+PAGE_Gen_cour+" + "+menu_idSMENU);

						// DEBUG -- document.write (id_m+" - "+SSmenu_NAME+" - "+xcp+" - "+MENU_Gen_cour);
					document.write ("</A></TD>");
					document.write ("</TR>");
				} //--------------------------------------------------------------------------------- FIN TEST SI LIGNE XML est VISIBLE
					
	} // ---------------- FIN BOUCLE NOMBRE DE LIGNE
					document.write ("</TBODY></TABLE>");
					document.write ("</TD></TR></TBODY></TABLE>");
					document.write ("</TD></TR></TBODY></TABLE>");
					
} 					
 // }