// Script de creation des menus gauches
// Version 1.0 12.06.2002

// Styles des menus
document.write('<style type="text/css">');
document.write('.inact1{background-image:url(./images/cell_bg.gif);vertical-align : top;height : 17px;text-align : center;font-size : 12px;font-weight: bold;}');
document.write('.inact2{background-image:url(./images/cell_bg3.gif);vertical-align : top;height : 17px;text-align : center;font-size : 12px;font-weight: bold;}');
document.write('.inact3{background-image:url(./images/cell_bg2.gif);vertical-align : top;height : 17px;font-size : 12px;}');
document.write('.act{background-image:url(./images/cell_bg.gif);vertical-align : top;height : 17px;font-size : 12px;}');
document.write('</style>');

// Contenu des menus
nbr_menu = 6;
menu_cnt = 0;
entree_menu_cnt = 0;

menus = new Array;
menus[0] = new Array(7);
menus[1] = new Array(11);
menus[2] = new Array(11);
menus[3] = new Array(11);
menus[4] = new Array(12);
menus[5] = new Array(8);

menus[0][0] = '';
menus[0][1] = '<a class="titre" href="./culture.html">CULTURE</a>';
menus[0][2] = '<a class="menu" href="./litterature.html" target="_parent" >&nbsp;Litt&eacute;rature</a>';
menus[0][3] = '<a class="menu" href="./art_contemporain.html" target="_parent" >&nbsp;Arts plastiques</a>';
menus[0][4] = '<a class="menu" href="./musique.html" target="_parent" >&nbsp;Musiques</a>';
menus[0][5] = '<a class="menu" href="./lieux_cult.html" target="_parent" >&nbsp;Lieux culturels</a>';
menus[0][6] ='<small><a href="javascript:load_en();">EN</a> - FR</small>';



menus[5][0] = '';
menus[5][1] = '<a class="titre" href="./decouvrir.html">DECOUVRIR</a>';
menus[5][2] = '<a class="menu" href="./fetf.html" target="_parent" >&nbsp;Faune et Flore&nbsp;&nbsp;</a>';
menus[5][3] = '<a class="menu" href="./culture.html" target="_parent" >&nbsp;Culture&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>';
menus[5][4] = '<a class="menu" href="./gastronomie.html" target="_parent" >&nbsp;Gastronomie</a>';
menus[5][5] = '<a class="menu" href="./divers.html" target="_parent" >&nbsp;Divers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>';
menus[5][6] = '';
menus[5][7] = '<a class="menu" href="../librairie.html" target="_parent" >&nbsp;La Libriairie&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>';
menus[5][8] ='<small><a href="javascript:load_en();">EN</a> - FR</small>';


// Fonction de creation

function menu_gauche ( num_menu, menu_act)
{

	content = '<table width="120" cellspacing="0" cellpadding="0" border="0" bgcolor="#DECE31">';
	while (entree_menu_cnt < menus[num_menu].length)
	{
		if (menus[num_menu][entree_menu_cnt].length == 0)
		{
			content += '<tr><td class="inact1" height="17" width="120">&nbsp;</td></tr>';
		}
		else if (menus[num_menu][entree_menu_cnt].indexOf(menu_act) != -1)
		{
			content += '<tr><td class="inact3" height="17">' + menus[num_menu][entree_menu_cnt] + '</td></tr>';
		}
        else if (menus[num_menu][entree_menu_cnt].indexOf('menu') != -1)
		{
			content += '<tr><td class="act" height="17" onmouseover="this.style.background=\'url(./images/cell_bg2.gif)\'" onmouseout="this.style.background=\'url(./images/cell_bg.gif)\'">' + menus[num_menu][entree_menu_cnt] + '</td></tr>';
		}
		else
		content += '<tr><td class="inact2" height="17">' + menus[num_menu][entree_menu_cnt] + '</td></tr>';

        entree_menu_cnt++;
	}
	content += '</table>';
	if (une)
	{
	   content += '<script type="text/javascript"';
       content += '  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">';
       content += '</script>';
	   une=0;
	}
	entree_menu_cnt = 0;
	document.write(content);
}
