var Nbrub = 8;	/* Nombre de rubriques */
var Maxi = 7; /* Nombre d'items maximum des sous-menus */

var mycontent = new Array(Nbrub+1);
for (var x=0; x<= Nbrub; ++x)
	mycontent[x] = new Array(Maxi);
	
mycontent[0][0] = "Sommaire";
mycontent[1][0] = "Faire son compost, c'est facile";

mycontent[2][0] = "Le compostage, un processus naturel";
mycontent[2][1] = "Le déroulement du compostage à domicile";
mycontent[2][2] = "Composter, est-ce vraiment utile ?";

mycontent[3][0] = "L'art de bien composter";
mycontent[3][1] = "Que peut-on composter ?";
mycontent[3][2] = "Mélanger les déchets entre eux";
mycontent[3][3] = "Surveiller l'humidité";
mycontent[3][4] = "Intégrer les déchets difficiles à composter";
mycontent[3][5] = "Rendre visite à son compost !";

mycontent[4][0] = "Faites votre choix, tas ou bac ?";
mycontent[4][1] = "Le compostage en tas";
mycontent[4][2] = "Le compostage en bac";


mycontent[5][0] = "Quand et comment utiliser le compost";
mycontent[5][1] = "Reconnaitre le bon moment";
mycontent[5][2] = "Utiliser le compost à bon escient";
mycontent[5][3] = "Tamiser comme il faut";
mycontent[5][4] = "Bien doser le compost";

mycontent[6][0] = "En r&eacute;sum&eacute;...";
mycontent[7][0] = "Télécharger le guide";
mycontent[8][0] = "En savoir plus...";

var monlien = new Array(Nbrub+1);
for (var y=0; y<= Nbrub; ++y)
	monlien[y] = new Array(Maxi);

monlien[0][0] = "index.htm";
monlien[1][0] = "index.htm#rub1";

monlien[2][0] = "rub2.htm";
monlien[2][1] = "rub2.htm#1";
monlien[2][2] = "rub2.htm#2";

monlien[3][0] = "rub3.htm";
monlien[3][1] = "rub3.htm#1";
monlien[3][2] = "rub3.htm#2";
monlien[3][3] = "rub3.htm#3";
monlien[3][4] = "rub3.htm#4";
monlien[3][5] = "rub3.htm#5";
monlien[3][6] = "rub3.htm#6";

monlien[4][0] = "rub4.htm";
monlien[4][1] = "rub4.htm#1";
monlien[4][2] = "rub4.htm#2";

monlien[5][0] = "rub5.htm";
monlien[5][1] = "rub5.htm#1";
monlien[5][2] = "rub5.htm#2";
monlien[5][3] = "rub5.htm#3";
monlien[5][4] = "rub5.htm#4";

monlien[6][0] = "rub6.htm";
monlien[7][0] = "../pdf/compost.pdf";
monlien[8][0] = "rub7.htm";

document.write("<table width=100% border=0 cellpadding=2 cellspacing=1>");

for (x=0; x <=Nbrub; ++x)
{
	if(x==7){
		document.write("<tr><td bgcolor="+((Rub == x)? "'#999999' class='menuencours'><font color=#FFFFFF>" : "'#EEEEEE'><a href='#' onclick=\"window.open('"+monlien[x][0]+"','guide','toolbar=0,menubar=0,location=0')\" class='menuencours' >")+mycontent[x][0]+((Rub == x)? "</font></td></tr>" : "</a></td></tr>"));
		}
		else
		{
		document.write("<tr><td bgcolor="+((Rub == x)? "'#999999' class='menuencours'><font color=#FFFFFF>" : "'#EEEEEE'><a href='"+monlien[x][0]+"' class='menuencours' >")+mycontent[x][0]+((Rub == x)? "</font></td></tr>" : "</a></td></tr>"));
		}	for (y=1; y<=Maxi; ++y)
	{
		if (mycontent[x][y]!= null && Rub == x)
	document.write("<tr><td bgcolor='#CCCCCC'><a href='"+monlien[x][y]+"'class='menuencours'>&nbsp;&nbsp;&#8226;&nbsp;"+mycontent[x][y]+"</font></td></tr>");
	}
}

document.write("</table>");
