// carousel
$.fn.carousel = function( options ){

	return this.each(function( i ){
		var $this = $( this ),
		defaults = {
			speed : 400,
			delay : 3000
		},
		settings = $.extend( {}, defaults, options );

		setInterval(
			function(){
				$this.children( 'img:first' ).animate({ 
				opacity : 'hide' },
				settings.speed,
				function() {
					$this
					.children( 'img:first' )
					.appendTo( $this )
					.fadeIn( 'slow' ); 
  		 		});
			},
			settings.delay
		);
	});
};
