(function($) {
  
  $.fn.infamo = function(params) {
    
    /*
     * Parameters
     */
    var slideUpDelay    = null == params.slideUpDelay     ? 250  : params.slideUpDelay;
    var transitionDelay = null == params.transitionDelay  ? 2000 : params.transitionDelay;
    
    var container = $(this);
    
    /*
     * Simple transition: Slide up first 2 images, then stick them in the back of the child list
     */
    setInterval(function() {
      $(container.children()[0]).slideUp(slideUpDelay, function() {
        $(this).detach().appendTo(container).slideDown();
      });
      $(container.children()[1]).slideUp(slideUpDelay, function() {
        $(this).detach().appendTo(container).slideDown();
      });
    }, transitionDelay);
  };  
  
})(jQuery);
