$.fn.slideShow = function(timeOut) {
   var $elem = this;
   this.children(':gt(0)').hide();
   setInterval(function() {
    $elem.children().eq(0).fadeOut().next().fadeIn().end().appendTo($elem);
   }, timeOut || 6000);
  };

  $(function() {
   $('.fadein').slideShow();
  });

$('.fadein').slideShow();
