function swapZindex(quiTop) {
  if (quiTop == 'corps') {
  	document.getElementById('menuflash').style.zIndex = 35;
  	document.getElementById('hom_droite').style.zIndex = 42;
  	document.getElementById('corps').style.zIndex = 40;
	}else{
  	document.getElementById('menuflash').style.zIndex = 42;
  	document.getElementById('hom_droite').style.zIndex = 40;
  	document.getElementById('corps').style.zIndex = 35;
	}
}

var xhr = null;
if(window.XMLHttpRequest) {
	// Firefox
	xhr = new XMLHttpRequest();
}else if(window.ActiveXObject) {
	// Internet Explorer
	var xhr = new ActiveXObject("Microsoft.XMLHTTP");
	/*var xhr = new Array('Msxml2.XMLHTTP.5.0', 
							'Msxml2.XMLHTTP.4.0', 
							'Msxml2.XMLHTTP.3.0',
							'Msxml2.XMLHTTP',
							'Microsoft.XMLHTTP');*/
	for (var i = 0; i < (xhr.length); i++) {
		try {
			xhr.XmlHttp = new ActiveXObject(msxmls[i]);
		} catch (e) {
			xhr.XmlHttp = null;
		}
	}

}else { // XMLHttpRequest non supporte par le navigateur
	alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
}

// Fonction appelee par le plugin dklik_elus (3 fonctions, car sur le onload, toutes en mem temps, ca merde !)
function ajax_ficheElu(uid, bureau, typeMembre) {
	
	xhr.open("GET", "../../../typo3conf/ext/dklik_elus/pi1/fiche.php?uid="+uid+"&bureau="+bureau+"&type="+typeMembre, true);
	xhr.onreadystatechange = function(){
		if(xhr.readyState == 4 && xhr.status == 200){
			eval (xhr.responseText);
		}
	}
	xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xhr.send(this.form);
	
}
function ajax_majListe(uid, bureau, typeMembre) {
	
	xhr.open("GET", "../../../typo3conf/ext/dklik_elus/pi1/majliste.php?bureau="+bureau+"&type="+typeMembre, true);
	xhr.onreadystatechange = function(){
		if(xhr.readyState == 4 && xhr.status == 200){
			eval (xhr.responseText);
			ajax_ficheElu(uid, bureau, typeMembre);
		}
	}
	xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xhr.send(this.form);
	
}

function depliMenu() {}
