use it like this
$('.fadein img:gt(0)').hide();
setInterval(function () {
$('.fadein :first-child').fadeOut(4000)
.next('img')
.fadeIn(10)
.end()
.appendTo('.fadein');
},4000 ); // 4 seconds