// JQUERY SLIDESHOW

(function($){
    $.fn.slideshow = function(options){
        options = $.extend({timeout: 3000, speed: 400}, options);
        return this.each(function(){
            var $elem = $(this);
            $elem.children().eq(0).show();
            setInterval(function(){
                $elem.children().eq(0).fadeOut(options.speed)
                .next().fadeIn(options.speed)
                .end().appendTo($elem);
            }, options.timeout);
        });
    };
})(jQuery);
