selectItem = "";
refItem = "";
titleItem = "";
function itemSelect(id,ref,title) {
selectItem = id;
refItem = ref;
titleItem = title;
}
function disp(txt) { document.write(txt) }
function ClicRub(nu_rub) {
if (parent.menu[nu_rub].aff=="O") {parent.menu[nu_rub].aff="N"}
else { 
  for (var k=0;k<parent.menu.nb_rub;k++) {
    parent.menu[k].aff="N";
	}
  parent.menu[nu_rub].aff="O" ;
  }
parent.frame_menu.location=document.location;
}
function AffImg(img) {
disp("<IMG SRC='"+img+"' width='"+parent.itemIndent+"' height='"+parent.menu.hauteur+"' BORDER=0 ALT='' ALIGN='top' vspace=0>");
}
function AffMenu() {
var onclickVal
with (parent) {
for(var i=0;i<menu.nb_rub;i++) {
	if (menu[i].aff=="N") {
		disp("<A HREF='javascript:ClicRub("+i+")' style='text-decoration : none'>");
		disp("<FONT FACE='"+rubFont1+"' size='"+rubSize1+"' color='"+rubColor1+"'><strong>");
		if (Sitelangue==1) {
		  disp(menu[i].txtFr);
	    } else {
		  disp(menu[i].txtEn);
		}
		disp("</strong></A></FONT><BR>");
	} else {
		disp("<A HREF='javascript:ClicRub("+i+")' style='text-decoration : none'>");
		//AffImg(menu.imgOpt);
		disp("<FONT FACE='"+rubFont2+"' size='"+rubSize2+"' color='"+rubColor2+"'><strong>");
		if (Sitelangue==1) {
		  disp(" "+menu[i].txtFr);
	    } else {
		  disp(menu[i].txtEn);
		}
		disp("</strong></A></FONT><br>");
		disp("<table width='"+tableWidth+"' bgcolor='"+tableBgColor+"' border='"+tableBorder+"' cellspacing='1' bordercolor='"+tableBorderColor+"'>");
		for(var j=0;j<menu[i].nb_lien;j++) {
		    onclickVal = "\""+menu[i][j].id+"\",\""+menu[i][j].ref+"\",\""+menu[i][j].txt+"\"";
			disp("<tr>");
			disp("<td width='1%'>");
			AffImg(menu.imgOpt);
			disp("</td>");
			disp("<td width='1%' bgcolor='"+iconBgColor+"'>");
			disp("<a href='00descript.htm' target='2'>");
			//disp("<img name='image' src='"+menu[i][j].ico+"' width='"+iconWidth+"' height='"+iconHeight+"' border='0' onclick='itemSelect("+onclickVal+")'></a></td>");
			disp("<img name='image' src='"+menu[i][j].ico+"' border='0' onclick='itemSelect("+onclickVal+")'></a></td>");			
			disp("<td width='96%' bgcolor='"+itemBgColor+"' align='"+itemAlign+"' bordercolor='"+itemBorderColor+"'>");
			disp("<a href='00descript.htm' style='text-decoration : none' target='2' onclick='itemSelect("+onclickVal+")'>");
			disp("<font color='"+itemColor+"' size='"+itemSize+"' face='"+itemFont+"'><strong>");
			disp(menu[i][j].txt+"</strong></font>");
			disp("</td></tr>");		
		}
		disp("</table>");
	}
}}
}
