/*	CODE BY: SAM SACCONE	SAM@SAMSACCONE.COM	-	4.04.11 V1.0 */

(function($){
	$.fn.tinySlideshow = function()
	{
		var targeted = $(this);
		$('img',targeted).each(function(index,target){index === 0 ? $(target).attr('index',index) : $(target).attr('index',index).css({'display':'none'});});
		$('img',targeted).click(function(){$(this).fadeOut('slow',function(){$('img[index="'+((parseInt($(this).attr('index'),10)+1)%$('img',targeted).length)+'"]',targeted).fadeIn();});});
		return this.each(function(){});
	};
})(jQuery);
