$(function() {

	// max indique le nombre maximal d'images présentes dans le div "animimation".
	// (Ces images doivent faire 179px de haut ou moins.)
	var photos = $('#animation').find('div');
	var max=photos.size();
	var photoIndex = 0;
	
	function go() {
		var item = photos.eq(photoIndex);
		
		// Défilement des images disponibles
		$(item).css({left:"637px"}).animate({left:"-400px"}, 6000);
		
		photoIndex+=1;
		if (photoIndex==max) photoIndex=0; 
		return false;
	};
	
	setInterval(function() { go(); }, 1000);

});

