	//Fait dispara�tre les div et remet l'image sur le bouton non s�lectionn�(id : div courant).
	function slideShow_hideAll(id){
		switch (id){
		case "slideShow_a" :
			document.getElementById("slideShow_b").style.backgroundImage = "url('./img/slideshow/na2.png')";
			document.getElementById("slideShow_c").style.backgroundImage = "url('./img/slideshow/na2.png')";
			document.getElementById("slideShow_d").style.backgroundImage = "url('./img/slideshow/na3.png')";
			document.getElementById("slideShow_b").style.color = "black";
			document.getElementById("slideShow_c").style.color = "black";
			document.getElementById("slideShow_d").style.color = "black";
			$("#slideShow_b1").fadeOut(600);
			$("#slideShow_c1").fadeOut(600);
			$("#slideShow_d1").fadeOut(600);
			break;
		case "slideShow_b" :
			document.getElementById("slideShow_a").style.backgroundImage = "url('./img/slideshow/na1.png')";
			document.getElementById("slideShow_c").style.backgroundImage = "url('./img/slideshow/na2.png')";
			document.getElementById("slideShow_d").style.backgroundImage = "url('./img/slideshow/na3.png')";
			document.getElementById("slideShow_a").style.color = "black";
			document.getElementById("slideShow_c").style.color = "black";
			document.getElementById("slideShow_d").style.color = "black";
			$("#slideShow_a1").fadeOut(600);
			$("#slideShow_c1").fadeOut(600);
			$("#slideShow_d1").fadeOut(600);
			break;
		case "slideShow_c" :
			document.getElementById("slideShow_a").style.backgroundImage = "url('./img/slideshow/na1.png')";
			document.getElementById("slideShow_b").style.backgroundImage = "url('./img/slideshow/na2.png')";
			document.getElementById("slideShow_d").style.backgroundImage = "url('./img/slideshow/na3.png')";
			document.getElementById("slideShow_a").style.color = "black";
			document.getElementById("slideShow_b").style.color = "black";
			document.getElementById("slideShow_d").style.color = "black";
			$("#slideShow_a1").fadeOut(600);
			$("#slideShow_b1").fadeOut(600);
			$("#slideShow_d1").fadeOut(600);
			break;
		case "slideShow_d" :
			document.getElementById("slideShow_a").style.backgroundImage = "url('./img/slideshow/na1.png')";
			document.getElementById("slideShow_b").style.backgroundImage = "url('./img/slideshow/na2.png')";
			document.getElementById("slideShow_c").style.backgroundImage = "url('./img/slideshow/na2.png')";
			document.getElementById("slideShow_a").style.color = "black";
			document.getElementById("slideShow_b").style.color = "black";
			document.getElementById("slideShow_c").style.color = "black";
			$("#slideShow_a1").fadeOut(600);
			$("#slideShow_b1").fadeOut(600);
			$("#slideShow_c1").fadeOut(600);
			break;
		default : ;
		}
	}

	//Modifie le bouton et fait appara�tre la nouvelle div(id : div courant).
	function slideShow_show(id){
		if(id == "slideShow_a"){
			document.getElementById(id).style.backgroundImage = "url('./img/slideshow/a1.png')";
			document.getElementById(id).style.color = "white";
		}else if (id == "slideShow_b" || id == "slideShow_c"){
			document.getElementById(id).style.backgroundImage = "url('./img/slideshow/a2.png')";
			document.getElementById(id).style.color = "white";
		}else if (id == "slideShow_d"){
			document.getElementById(id).style.backgroundImage = "url('./img/slideshow/a3.png')";
			document.getElementById(id).style.color = "white";
		}
		$("#"+id+"1").fadeIn(600);
		slideShow_hideAll(id);
	}

	//Cr�e la boucle d'apparition des div(id : div courant).
	function slideShow_time(id) {
                $("#slideShow_container").stopTime('controlled');
		$("#slideShow_container").everyTime(4000, 'controlled', function() {
			if (id == "slideShow_a" ) id = "slideShow_b";
			else if (id == "slideShow_b" ) id = "slideShow_c";
			else if (id == "slideShow_c" ) id = "slideShow_d";
			else if (id == "slideShow_d" ) id = "slideShow_a";
			slideShow_show(id);
		});
	}

	//Lors d'un clic, arr�te la boucle, fait appara�tre le div cliqu� puis relance une nouvelle boucle en partant du div cliqu�(id : div cliqu�).
	function slideShow_clic(id){
		$("#slideShow_container").stopTime('controlled');
		slideShow_show(id);
		$("#slideShow_container").oneTime(6000, function() {	
			slideShow_time(id);
		});
		
	}

	//Fait appara�tre le premier div.
	function slideShow_deb(){
		$(".slideShow_block").hide();
		slideShow_show("slideShow_a");
		slideShow_time("slideShow_a");
	}
