$(document).ready(function() {
	progressSlideshow(0);
	
	$("li").each(function(index, element) {
		var count = $(this).children("ul").length;
		if(count > 0) {
			$(this).children("a").css({"border-bottom": "none", "padding-bottom": "0px"});
		}
	});
});

function progressSlideshow(index) {
	$(".slideshow img").not(index).hide();
	$(".slideshow img").eq(index).show();
	var count = $(".slideshow img").length;
	var t = setTimeout(function() {progressSlideshow((index + 1) % count)}, 5000);
}
