var count=1;

function slideshow(){
 $('#diaporama img:first').show();
	if (count > nbimg){
		count = 0;

		$('#diaporama img:last-child').fadeOut(1000);
		}else{
				$('#diaporama img:eq('+count+')').fadeIn(1000);
				setTimeout(function(){$('#diaporama img:eq('+(count-1)+')').fadeOut(1000);},2500);
			}
	setTimeout(function(){ count = count + 1;
									slideshow();}
									,5000);
}

$('document').ready(function(){
		setTimeout(function(){slideshow();},3000);
	});

