var temps=0;
var bandeau=0;

$(document).ready(function() {
	animBandeaux();
});

function animBandeaux(){
	if(temps>10){
		temps=0;
		if(bandeauMax-1>bandeau)bandeau++;
		else bandeau=0;
		getBandeau(bandeau);
	}
	else temps++;
	setTimeout("animBandeaux()",1000);
}

function getBandeau(val){
	$('.bandeau').hide();
	$('.bouton-bandeau').css('background-color','#004b91');
	$('#bandeau'+val).show();
	$('#bouton-bandeau'+val).css('background-color','#de1b37');
	temps=0;
}
