/* Author: Simon Andersson

*/

(function($) {
	
	
	var loop = (function(options) {
		
		var objs = options.obj,
			delay = options.delay,
			iterator = 0,
			length = objs.length;
			directionNav = false;
			
		if(length <= 1) return;
		
		setTimeout(function() {
			(function loopy() {
				(function() {
					if(iterator === length -1) iterator = -1;

					var obj = objs.eq(iterator++);
		
					obj.fadeOut('slow');
					objs.eq(iterator).fadeIn('slow');
				})();
			
				setTimeout(loopy, delay);
			
			})();
		}, delay);
		
	})({ delay: 5000, obj: $('.splash') });
	
	
})(jQuery);




















