var cpt = 0;
var nbrImage = 6; //Faire plus -1. Qd il y a 3 images alors le nombre => 3-1  

function compteur(id) {
	if (cpt<=nbrImage) {document.getElementById("next").style.display='inline';}
	if (cpt>=0) {document.getElementById("prev").style.display='inline';}
	
	if (id=="next") {
		cpt++;
		if (cpt>=nbrImage) {
			document.getElementById("next").style.display='none';
		}
	}
	if (id=="prev") {
		cpt--;
		if (cpt<=0) {
			document.getElementById("prev").style.display='none';
		}
	}
}

$(function(){
    $(".next").click(function(){
	  $("#right_bloc_1 h1").animate({"backgroundPosition": "-=0px 0"}, "slow");
	  $("#right_bloc_1_bottom").animate({"backgroundPosition": "-=0px 0"}, "slow");
	  $("#right_bloc_1").animate({"backgroundPosition": "-=237px 0"}, "slow");
    });
	
	
	$(".prev").click(function(){			  
	  $("#right_bloc_1 h1").animate({"backgroundPosition": "+=0px 0"}, "slow");
	  $("#right_bloc_1_bottom").animate({"backgroundPosition": "+=0px 0"}, "slow");
      $("#right_bloc_1").animate({"backgroundPosition": "+=237px 0"}, "slow");
    });
	
});


function show(NomImage) {
	document.getElementById('img_change').innerHTML='<img src="images/'+NomImage+'" width="391" height="250" />';
}


function changeStyle(lien) {
	document.getElementById(lien).style.fontWeight="bold";
}






