(function($){
  $.fn.imageSlideshow = function(options) {

    var settings = {

    }

    return this.each(function() {
      if(options) {
        $.extend(settings, options);
      }
      $(this).children('li').slice(1).hide();
      var current_item = $(this).children('li:visible');
      window.setInterval(function(){
        current_item.fadeOut('slow');
        if(current_item.next().length) {
          current_item = current_item.next();
        }
        else {
          current_item = $(current_item.siblings()[0]);
        }
        current_item.fadeIn('slow');
      }, 5000);
    });
  };
})(jQuery);
