
/***********************************************************************************/
/******************** Fonctions d'affichage de menus *******************************/
/***********************************************************************************/
/*================================ Niveau 1 =======================================*/
function afficheMenus1 (uneArborescence, numLangue) {
	var indice = 0;
	var leMenuItem,leMenuID,leMenuTexte,leMenuURL;
	
	for (indice=0; indice<uneArborescence.items.length; indice++) {
		leMenuItem = uneArborescence.items[indice]
		leMenuID = leMenuItem.ID
		leMenuTexte = (leMenuItem.textes[numLangue]==null)?leMenuItem.textes[langDefaut]:leMenuItem.textes[numLangue]
		if (leMenuTexte == null) 
			leMenuTexte = "<!-- non trouvé -->"
		leMenuURL = leMenuItem.rechercheLien(numLangue)
		leMenuColor = leMenuItem.color;
		
		// test si le lien est actif ou inactif, si inactif, menu caché et affiché au survol, mais différent en fonction des navigateurs
		if (leMenuItem.actif==0) {
		
			if (is_nav4) {
				document.writeln("		<tr>")
				document.writeln("			<td  class=\"MenuDefault\" height=\"21\" width=\"152\">")
				document.writeln("				<ilayer>")
				document.writeln("          <layer visibility=\"show\" width=\"100%\" onMouseOut=\"timerOn ()\" onMouseOver=\"menuPopup(event,'menu"+leMenuID+"')\" >")
				document.writeln("					<div class=\"wrap1\">")
				document.writeln("            <span onMouseOut=\"timerOn ()\" onMouseOver=\"menuPopup(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"')\" class=\"itemMenu1\"><a href=\""+leMenuURL+"\" class=\"itemMenu1\">&nbsp;"+leMenuTexte+"</a></span>")
				document.writeln("					</div>")
				document.writeln("				</layer></ilayer>")
				document.writeln("          <br>")
				document.writeln("			</td>")
				document.writeln("			<td width=\"7\" class=\"MenuDefaultBis"+leMenuColor+"\">")
				document.writeln("				<ilayer>")
				document.writeln("          <layer visibility=\"show\" width=\"100%\" onMouseOut=\"timerOn ()\" onMouseOver=\"menuPopupBis(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"')\" >")
				document.writeln("					<div class=\"wrap1\">")
				document.writeln("            <span onMouseOut=\"timerOn ()\" onMouseOver=\"menuPopupBis(event,'menu"+leMenuID+"')\" class=\"itemMenu1\"><a href=\""+leMenuURL+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" height=\"21\" border=\"0\"></a></span>")
				document.writeln("					</div>")
				document.writeln("				</layer></ilayer>")
				document.writeln("          <br>")
				document.writeln("			</td>")
				document.writeln("		</tr>")
				document.writeln("		<tr>")
				document.writeln("			<td height=\"1\" bgcolor=\"#B4B4B4\" colspan=\"2\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
				document.writeln("		</tr>")
			}
			
			/*else if (is_nav6up) {
				document.writeln("		<tr>")
				document.write("			<td class=\"MenuDefault\" id=\"tdlien"+leMenuID+"\" height=\"21\" width=\"152\">")
				document.write("<div class=\"wrap1\">")
				document.write("<span onMouseOut=\"timerOn ();\" onMouseOver=\"menuPopup(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" class=\"itemMenu1\">")
				document.write("<a href=\""+leMenuURL+"\" class=\"itemMenu1\"><img src=\"/Img/PixTransparent.gif\" width=\"1\" height=\"19\" border=\"0\" align=\"absmiddle\">&nbsp;"+leMenuTexte+"</a>")
				document.write("</span>")
				document.write("</div>")
				document.write("</td>")
				document.writeln("			<td id=\"tdlien2"+leMenuID+"\" class=\"MenuDefaultBis"+leMenuColor+"\"  width=\"7\">")
				document.write("<div class=\"wrap1\">")
				document.write("<span onMouseOut=\"timerOn ();\" onMouseOver=\"menuPopupBis(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" class=\"itemMenu1\">")
				document.write("<a href=\""+leMenuURL+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" height=\"21\" border=\"0\"></a>")
				document.write("</span>")
				document.write("</div>")
				document.write("</td>")
				document.writeln("		</tr>")
				document.writeln("		<tr>")
				document.writeln("			<td height=\"1\" bgcolor=\"#B4B4B4\" colspan=\"2\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
				document.writeln("		</tr>")
			}*/
			else if (is_nav6up) {
				document.writeln("		<tr>")
				document.write("			<td class=\"MenuDefault\" id=\"tdlien"+leMenuID+"\" height=\"21\" width=\"152\">")
				document.write("<div class=\"wrap1\">")
				document.write("<span onMouseOut=\"timerOn ();\" onClick=\"menuAction('menu2"+leMenuID+"')\" onMouseOver=\"menuPopup(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" class=\"itemMenu1\" style=\"position:relative;top:1px;\">")
				document.write("<a href=\"#\" class=\"itemMenu1\"><img src=\"/Img/PixTransparent.gif\" width=\"1\" height=\"19\" border=\"0\" align=\"top\">&nbsp;"+leMenuTexte+"</a>")
				document.write("</span>")
				document.write("</div>")
				document.write("</td>")
				document.writeln("			<td id=\"tdlien2"+leMenuID+"\" class=\"MenuDefaultBis"+leMenuColor+"\"  width=\"7\">")
				document.write("<div class=\"wrap1\">")
				document.write("<span onMouseOut=\"timerOn ();\" onMouseOver=\"menuPopupBis(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" class=\"itemMenu1\" style=\"position:relative;top:-10px;\">")
				document.write("<a href=\""+leMenuURL+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" height=\"21\" border=\"0\"></a>")
				document.write("</span>")
				document.write("</div>")
				document.write("</td>")
				document.writeln("		</tr>")
				document.writeln("		<tr>")
				document.writeln("			<td height=\"1\" bgcolor=\"#B4B4B4\" colspan=\"2\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
				document.writeln("		</tr>")
				if (leMenuItem.sousArborescence!=null)
				afficheItems2Actif(leMenuItem.sousArborescence, numLangue, 'none', leMenuID, 1)
			}
			/*else if (is_ie5up) {
				document.writeln("		<tr>")
				document.write("<td id=\"tdlien"+leMenuID+"\" class=\"MenuDefault\" height=\"21\" width=\"152\">")
				document.write("<a href=\""+leMenuURL+"\" class=\"itemMenu1\" onMouseOver=\"menuPopup(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" onMouseOut=\"timerOn ();\"><img src=\"/Img/PixTransparent.gif\" width=\"1\" height=\"19\" border=\"0\" align=\"absmiddle\">&nbsp;"+leMenuTexte+"</a>")
				document.write("</td>")
				document.write("<td id=\"tdlien2"+leMenuID+"\" class=\"MenuDefaultBis"+leMenuColor+"\" onMouseOver=\"menuPopupBis(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" onMouseOut=\"timerOn ();\" width=\"7\">")
				document.write("<a href=\""+leMenuURL+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" height=\"21\" border=\"0\"></a>")
				document.write("</td>")
				document.writeln("		</tr>")
				document.writeln("		<tr>")
				document.writeln("			<td height=\"1\" bgcolor=\"#B4B4B4\" colspan=\"2\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
				document.writeln("		</tr>")
			}*/
			else if (is_ie5up) {
				document.writeln("		<tr>")
				document.write("<td id=\"tdlien"+leMenuID+"\" class=\"MenuDefault\" height=\"21\" width=\"152\">")
				document.write("<a href=\"#\" class=\"itemMenu1\" onClick=\"menuAction('menu2"+leMenuID+"')\" onMouseOver=\"menuPopup(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" onMouseOut=\"timerOn ();\"><img src=\"/Img/PixTransparent.gif\" width=\"1\" height=\"19\" border=\"0\" align=\"absmiddle\">&nbsp;"+leMenuTexte+"</a>")
				document.write("</td>")
				document.write("<td id=\"tdlien2"+leMenuID+"\" class=\"MenuDefaultBis"+leMenuColor+"\" onMouseOver=\"menuPopupBis(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" onMouseOut=\"timerOn ();\" width=\"7\">")
				document.write("<a href=\""+leMenuURL+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" height=\"21\" border=\"0\"></a>")
				document.write("</td>")
				document.writeln("		</tr>")
				document.writeln("		<tr>")
				document.writeln("			<td height=\"1\" bgcolor=\"#B4B4B4\" colspan=\"2\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
				document.writeln("		</tr>")
				if (leMenuItem.sousArborescence!=null)
				afficheItems2Actif(leMenuItem.sousArborescence, numLangue, 'none', leMenuID, 1)
			}
			else if (is_opera7up) {
				document.writeln("		<tr>")
				document.write("<td id=\"tdlien"+leMenuID+"\" class=\"MenuDefault\" height=\"21\" width=\"152\" onClick=\"document.location='"+leMenuURL+"'\">")
				document.write("<a href=\""+leMenuURL+"\" class=\"itemMenu1\" onMouseOver=\"document.getElementById('tdlien"+leMenuID+"').className='MenuOver';document.getElementById('tdlien2"+leMenuID+"').className='MenuOverBis"+leMenuColor+"';\" onMouseOut=\"document.getElementById('tdlien"+leMenuID+"').className='MenuDefault';document.getElementById('tdlien2"+leMenuID+"').className='MenuDefaultBis"+leMenuColor+"';\">&nbsp;"+leMenuTexte+"</a>")
				document.write("</td>")
				document.write("<td id=\"tdlien2"+leMenuID+"\" class=\"MenuDefaultBis"+leMenuColor+"\" onMouseOver=\"this.className='MenuOverBis"+leMenuColor+"';document.getElementById('tdlien"+leMenuID+"').className='MenuOver';menuPopupBis(event,'menu"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" onMouseOut=\"this.className='MenuDefaultBis"+leMenuColor+"';document.getElementById('tdlien"+leMenuID+"').className='MenuDefault';timerOn ();\" width=\"7\" onClick=\"document.location='"+leMenuURL+"'\">")
				document.write("<a href=\""+leMenuURL+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" height=\"21\" border=\"0\"></a>")
				document.write("</td>")
				document.writeln("		</tr>")
				document.writeln("		<tr>")
				document.writeln("			<td height=\"1\" bgcolor=\"#B4B4B4\" colspan=\"2\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
				document.writeln("		</tr>")
			}
			else {
				document.writeln("		<tr>")
				document.writeln("			<td class=\"MenuDefault\" height=\"21\" width=\"152\">")
				document.writeln("				<a href=\""+leMenuURL+"\" class=\"itemMenu1\">&nbsp;"+leMenuTexte+"</a>")
				document.writeln("			</td>")
				document.writeln("			<td width=\"7\" class=\"MenuDefaultBis"+leMenuColor+"\">")
				document.writeln("				<a href=\""+leMenuURL+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" height=\"21\" border=\"0\"></a>")
				document.writeln("			</td>")
				document.writeln("		</tr>")
				document.writeln("		<tr>")
				document.writeln("			<td height=\"1\" bgcolor=\"#B4B4B4\" colspan=\"2\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
				document.writeln("		</tr>")
			}
		}
		else {
			document.writeln("		<tr>")
			document.writeln("			<td class=\"MenuTitreActif"+leMenuColor+"\" height=\"21\" width=\"159\" colspan=\"2\">")
			document.writeln("				&nbsp;"+leMenuTexte+" ")
			document.writeln("			</td>")
			document.writeln("		</tr>")
			if (leMenuItem.sousArborescence!=null)
			afficheItems2Actif(leMenuItem.sousArborescence, numLangue, 'block', leMenuID, 0)
			document.writeln("		<tr>")
			document.writeln("			<td height=\"1\" bgcolor=\"#B4B4B4\" colspan=\"2\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
			document.writeln("		</tr>")
		}
	}
}
/***********************************************************************************/
/*================================ Niveau 2 =======================================*/
/***********************************************************************************/
function afficheMenus2 (uneArborescence, numLangue) {
	var indice = 0;
	var leMenuItem,leMenuID,leMenuTexte,leMenuURL;
	
	for (indice=0; indice<uneArborescence.items.length; indice++) {
		leMenuItem = uneArborescence.items[indice]
		leMenuID = leMenuItem.ID
		leMenuTexte = (leMenuItem.textes[numLangue]==null)?leMenuItem.textes[langDefaut]:leMenuItem.textes[numLangue]
		if (leMenuTexte == null) 
			leMenuTexte = "<!-- non trouvé -->"
		leMenuURL = leMenuItem.rechercheLien(numLangue)
		leMenuColor = leMenuItem.color;

		if (is_nav4) {
			document.writeln("		<layer id=\"menu"+leMenuID+"\" visibility=\"hide\" class=\"menuPopup\" onmouseout=\"timerOn()\" onmouseover=\"menuPopupOn('menu"+leMenuID+"')\" width=\"200\">")
			//document.writeln("		<layer width=\"100%\" height=\"100%\">")
		}	else 
			document.writeln("		<div id=\"menu"+leMenuID+"\" class=\"menuPopup\" onMouseOut=\"timerOn()\" onMouseOver=\"menuPopupOn('menu"+leMenuID+"');event.cancelBubble=true;return false\" width=\"200\">")

		document.writeln("			<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFFF\" width=\"200\">")
		document.writeln("				<tr>")
		document.writeln("					<td width=\"1\" bgcolor=\"#D0D0D0\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("					<td height=\"1\" width=\"5\" bgcolor=\"#D0D0D0\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("					<td height=\"1\" width=\"193\" bgcolor=\"#D0D0D0\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("					<td width=\"1\" bgcolor=\"#D0D0D0\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("				</tr>")
		document.writeln("				<tr>")
		document.writeln("					<td height=\"21\" colspan=\"2\" class=\"menuPopupItemTitre"+leMenuColor+"\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("					<td height=\"21\" class=\"menuPopupItemTitre"+leMenuColor+"\">"+leMenuTexte+"</td>")
		document.writeln("					<td width=\"1\" bgcolor=\"#D0D0D0\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("				</tr>")
		
		if (leMenuItem.sousArborescence!=null)
			afficheItems2(leMenuItem.sousArborescence, numLangue)
		
		document.writeln("				<tr>")
		document.writeln("					<td bgcolor=\"#D0D0D0\" colspan=\"4\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("				</tr>")
		document.writeln("			</table>")
		//alert("oo")
		if (is_nav4) {		
			document.writeln("		</layer>")		
			//document.writeln("</layer>")
		} else
			document.writeln("		</div>")
	}
}
/*=====================================================================================*/
function afficheItems2 (uneArborescence, numLangue) {
	var indice = 0;
	var leMenuItem,leMenuID,leMenuTexte,leMenuURL;
	
	for (indice=0; indice<uneArborescence.items.length; indice++) {
		leMenuItem = uneArborescence.items[indice]
		leMenuID = leMenuItem.ID
		leMenuTexte = (leMenuItem.textes[numLangue]==null)?leMenuItem.textes[langDefaut]:leMenuItem.textes[numLangue]
		if (leMenuTexte == null) 
			leMenuTexte = "<!-- non trouvé -->&nbsp;"
		leMenuURL = leMenuItem.rechercheLien(numLangue)
		
		document.writeln("				<tr>")
		document.writeln("					<td bgcolor=\"#B4B4B4\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("					<td height=\"1\" bgcolor=\"#B4B4B4\" colspan=\"2\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("					<td bgcolor=\"#B4B4B4\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("				</tr>")
		document.writeln("				<tr>")
		document.writeln("					<td bgcolor=\"#B4B4B4\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("					<td height=\"17\" class=\"menuPopupItem"+leMenuColor+"\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("					<td class=\"menuPopupItem"+leMenuColor+"\"><a href=\""+leMenuURL+"\" class=\"menuPopupItem\">"+leMenuTexte+"</a></td>")
		document.writeln("					<td bgcolor=\"#B4B4B4\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("				</tr>")
		
	}
}
/*=====================================================================================*/
function afficheItems2Actif (uneArborescence, numLangue, visibility, id, barre) {
	var indice = 0;
	var leMenuItem,leMenuID,leMenuTexte,leMenuURL;
	
	if (is_ie5up) {
		document.writeln("				<tr style=\"display:"+visibility+";\" id=\"menu2"+id+"\"><td colspan=\"2\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">")
	} else {
		document.writeln("				<tr><td colspan=\"2\"><table style=\"display:"+visibility+";\" id=\"menu2"+id+"\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">")
	}
	document.writeln("				<tr>")
	document.writeln("					<td width=\"152\" height=\"5\" class=\"SousMenuActif\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\" border=\"0\"></td>")
	document.writeln("					<td width=\"7\" class=\"MenuActifBis"+leMenuColor+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" height=\"5\" border=\"0\"></td>")
	document.writeln("				</tr>")
	for (indice=0; indice<uneArborescence.items.length; indice++) {
		leMenuItem = uneArborescence.items[indice]
		leMenuID = leMenuItem.ID
		leMenuTexte = (leMenuItem.textes[numLangue]==null)?leMenuItem.textes[langDefaut]:leMenuItem.textes[numLangue]
		if (leMenuTexte == null) 
			leMenuTexte = "<!-- non trouvé -->&nbsp;"
		leMenuURL = leMenuItem.rechercheLien(numLangue)
		if (is_ie5up) {
			if (leMenuItem.actif==0) {
				document.writeln("				<tr>")
				document.writeln("					<td width=\"152\" class=\"SousMenuActif\" id=\"tdmenu2_"+leMenuID+"\"><a href=\""+leMenuURL+"\" class=\"SousMenuInactif\" onMouseOver=\"menuPopupNiv3(event,'menu3"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" onMouseOut=\"timerOn ();\" >"+leMenuTexte+"</a></td>")
				document.writeln("					<td width=\"7\" class=\"MenuActifBis"+leMenuColor+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" border=\"0\"></td>")
				document.writeln("				</tr>")
			}
			else {
				document.writeln("				<tr>")
				document.writeln("					<td width=\"152\" class=\"SousMenuActif\" id=\"tdmenu2_"+leMenuID+"\"><a href=\""+leMenuURL+"\" class=\"SousMenuActif"+leMenuColor+"\" onMouseOver=\"menuPopupNiv3(event,'menu3"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" onMouseOut=\"timerOn ();\" ><b>"+leMenuTexte+"</b></a></td>")
				document.writeln("					<td width=\"7\" class=\"MenuActifBis"+leMenuColor+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" border=\"0\"></td>")
				document.writeln("				</tr>")
			}
			if (leMenuItem.sousArborescence!=null)
				afficheMenu3(leMenuItem.sousArborescence, numLangue, leMenuID)
		}
		else if (is_nav6up) {
			if (leMenuItem.actif==0) {
				document.writeln("				<tr>")
				document.writeln("					<td width=\"152\" class=\"SousMenuActif\" id=\"tdmenu2_"+leMenuID+"\">")					 
				document.write("<div class=\"wrap1\">")
				document.write("<span onMouseOut=\"timerOn ();\" onMouseOver=\"menuPopupNiv3(event,'menu3"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" style=\"position:relative;top:1px;\">")
				document.write("<a href=\""+leMenuURL+"\" class=\"SousMenuInactif\">"+leMenuTexte+"</a>")
				document.write("</span>")
				document.write("</div>")						 
				document.writeln("					</td>")
				document.writeln("					<td width=\"7\" class=\"MenuActifBis"+leMenuColor+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" border=\"0\"></td>")
				document.writeln("				</tr>")
			}
			else {
				document.writeln("				<tr>")
				document.writeln("					<td width=\"152\" class=\"SousMenuActif\" id=\"tdmenu2_"+leMenuID+"\">")					 
				document.write("<div class=\"wrap1\">")
				document.write("<span onMouseOut=\"timerOn ();\" onMouseOver=\"menuPopupNiv3(event,'menu3"+leMenuID+"','"+leMenuID+"','"+leMenuColor+"');\" style=\"position:relative;top:1px;\">")
				document.write("<a href=\""+leMenuURL+"\" class=\"SousMenuActif"+leMenuColor+"\">"+leMenuTexte+"</a>")
				document.write("</span>")
				document.write("</div>")						 
				document.writeln("					</td>")
				document.writeln("					<td width=\"7\" class=\"MenuActifBis"+leMenuColor+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" border=\"0\"></td>")
				document.writeln("				</tr>")
			}
			if (leMenuItem.sousArborescence!=null)
				afficheMenu3(leMenuItem.sousArborescence, numLangue, leMenuID)
		}
		else {
			if (leMenuItem.actif==0) {
				document.writeln("				<tr>")
				document.writeln("					<td width=\"152\" class=\"SousMenuActif\" id=\"tdmenu2_"+leMenuID+"\"><a href=\""+leMenuURL+"\" class=\"SousMenuInactif\">"+leMenuTexte+"</a></td>")
				document.writeln("					<td width=\"7\" class=\"MenuActifBis"+leMenuColor+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" border=\"0\"></td>")
				document.writeln("				</tr>")
			}
			else {
				document.writeln("				<tr>")
				document.writeln("					<td width=\"152\" class=\"SousMenuActif\" id=\"tdmenu2_"+leMenuID+"\"><a href=\""+leMenuURL+"\" class=\"SousMenuActif"+leMenuColor+"\"><b>"+leMenuTexte+"</b></a></td>")
				document.writeln("					<td width=\"7\" class=\"MenuActifBis"+leMenuColor+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" border=\"0\"></td>")
				document.writeln("				</tr>")
			}
		}
		document.writeln("				<tr>")
		document.writeln("					<td width=\"152\" height=\"5\" class=\"SousMenuActif\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\" border=\"0\"></td>")
		document.writeln("					<td width=\"7\" class=\"MenuActifBis"+leMenuColor+"\"><img src=\"/Img/PxTransparent.gif\" width=\"7\" height=\"5\" border=\"0\"></td>")
		document.writeln("				</tr>")
	}
	if (barre == 1) {
		document.writeln("		<tr>")
		document.writeln("			<td height=\"1\" bgcolor=\"#B4B4B4\" colspan=\"2\"><img src=\"/Img/PxTransparent.gif\" width=\"1\" height=\"1\"></td>")
		document.writeln("		</tr>")
	}
	
	document.writeln("				</table></td></tr>")
	
}
/*=====================================================================================*/
function afficheMenu3 (uneArborescence, numLangue, id) {
	var indice = 0;
	var leMenuItem,leMenuID,leMenuTexte,leMenuURL;
	document.writeln("		<div id=\"menu3"+id+"\" class=\"menuPopup ssMenu"+leMenuColor+"\" onMouseOut=\"timerOn()\" onMouseOver=\"menuPopupOnNiv3('menu"+id+"');event.cancelBubble=true;return false\">")
	document.writeln("<ul>")
	for (indice=0; indice<uneArborescence.items.length; indice++) {
		leMenuItem = uneArborescence.items[indice]
		leMenuID = leMenuItem.ID
		leMenuTexte = (leMenuItem.textes[numLangue]==null)?leMenuItem.textes[langDefaut]:leMenuItem.textes[numLangue]
		if (leMenuTexte == null) 
			leMenuTexte = "<!-- non trouvé -->&nbsp;"
		leMenuURL = leMenuItem.rechercheLien(numLangue)
		
		document.writeln("<li>")
		document.writeln("<a href=\""+leMenuURL+"\">")
		document.writeln(leMenuTexte)
		document.writeln("</a>")
		document.writeln("</li>")
	}
	document.writeln("</ul>")
	document.writeln("		</div>")
	
}
