$(document).ready(function(){
						   
	var to_show_index = 0;
	var images_count = $(".slideshow").find("img").length;
	
	$(".slideshow").each(function (i) {
		$(this).find("img").hide();
		$(this).find("img:first").show();	
	});	
	
	
	$(document).everyTime(7000,						   
		function () { 		
			to_show_index++;
			if (!(to_show_index < images_count)) {
				to_show_index = 0;
			}
				
			var to_show = $(".slideshow").find("img:eq("+ to_show_index +")");
			var to_hide = $(".slideshow").find("img:visible");
			
			$(to_hide).fadeOut(1000, function () { $(to_show).fadeIn(1000);});
			
		}
	);			
	
});


