/**
 * jQuery plugin: FadeGallery (minified edition)
 * http://www.exalted-web.com/FadeGallery
 *
 * Written by Shay from http://www.exalted-web.com
 * Release date: 29/08/2009
 * Version: 0.1
 *
 * Licensed under the GNU GPL license.
 * http://www.gnu.org/licenses/gpl.txt
 */
(function($){$.fn.gallery=function(options){var defaults={FadeIn:1000,FadeOut:1000,Delay:3000,Repeat:true};var options=$.extend(defaults,options);return this.each(function(){var elements;elements=$(this).children().filter(".galItem");var showing;showing=0;elements.hide();Fade();function Fade(){var hide;if(options.Repeat&&showing>=elements.length){showing=0;}if(showing==0){hide=elements.length-1;}else{hide=showing-1;}elements.eq(hide).fadeOut(options.FadeOut,function callback(){elements.eq(showing).fadeIn(options.FadeIn,function callback(){showing++;if(options.Repeat||showing<elements.length) setTimeout(Fade,options.Delay);});});}});};})(jQuery);