﻿
(function ($) {
	$.fn.simplestSlideShow = function (settings) {
		var config = {
			'timeOut': 3000,
			'speed': 'normal'
		};
		if (settings) $.extend(config, settings);

		this.each(function () {
			var $elem = $(this);
			$elem.children(':gt(0)').hide();

			setInterval(function () {
				$elem.children().eq(0).fadeOut(config['speed'])
        .next().fadeIn(config['speed'])
        .find("h2").animate({ left: "20px" }, 1000).end()
        .end().appendTo($elem);
			}, config['timeOut']);
		});
		return this;
	};
})(jQuery);
