function AfficherSpectacle(id) {
	new Effect.SlideUp('ContenuPage');

	a = setTimeout("ShowSpectacle("+id+")", 1000);
}

function ShowSpectacle(id) {
	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("POST", "contenu/spectacles/load_spectacle.php", true);
	
	xhr_object.onreadystatechange = function() {
		if(xhr_object.readyState == 4) {
			eval(xhr_object.responseText);
			
			new Effect.SlideDown('ContenuPage');
			document.getElementById("Contenu").setAttribute("style", "background: url(design/structure/photo_fond_contenu_2_"+id+".jpg) no-repeat right 172px;");
			if (document.all) {
				document.getElementById("Contenu").style.setAttribute("cssText", "background: url(design/structure/photo_fond_contenu_2_"+id+".jpg) no-repeat right 172px;");
			}
		}
	}
	
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
	var data = "id="+id;
	xhr_object.send(data);
}