
              function ajax_indicator_off()
              {
              	var indicator = document.getElementById("ajax_in_progress");
              	if (indicator != null)
              	{
              		if (navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("MSIE 7") == -1)
              		{
              			indicator.style.top = document.documentElement.scrollTop;
              		}
              		indicator.style.display = "none";
              	}
              }
              
              function ajax_indicator_on()
              {
              	var indicator = document.getElementById("ajax_in_progress");
              	if (indicator != null)
              	{
              		if (navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("MSIE 7") == -1)
              		{
              			indicator.style.top = document.documentElement.scrollTop;
              		}
              		indicator.style.display = "block";
              	}
              	window.setTimeout("ajax_indicator_off()",1000);
              }
						
						function affmenumbr() {
							var xhr_object = null;
							
							if(window.XMLHttpRequest) // Firefox
							   xhr_object = new XMLHttpRequest();
							else if(window.ActiveXObject) // Internet Explorer
							   xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
							else { // XMLHttpRequest non supporté par le navigateur
							   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
							   return;
							}
							
							xhr_object.open("GET", "./_commun/affmenu.php", true);
							
							xhr_object.onreadystatechange = function() {
							   if(xhr_object.readyState == 4) {
										 ajax_indicator_on();
									   if (document.getElementById('etatmenu').value == '0') {
												
												for(i = 0; i <= 11; i++) {
													if (document.getElementById("mbr_"+i)) {
														document.getElementById("mbr_"+i).style.display = "block";
													}
												}
												document.getElementById('seehidemenu').innerHTML = "Cacher le menu";
												document.getElementById('etatmenu').value = "1";
										 } 
										 else if (document.getElementById('etatmenu').value == '1') {
									
												for(i = 0; i <= 11; i++) {
													if (document.getElementById("mbr_"+i)) {
														document.getElementById("mbr_"+i).style.display = "none";
									        }
												}
												document.getElementById('seehidemenu').innerHTML = "Esp. Membre";
												document.getElementById('etatmenu').value = "0";
										 }
										 return false;
							   }
							}
							xhr_object.send(null);	
							return false;				
						}
