var counter=0;
function slides() {
	if(counter>=$('.slideshow li').length){
		$('.slideshow li, .slidetitle h1').hide();
		counter=0;
		$('.slidetitle h1').html('tradition');
	};
	var imgname=$('.slideshow img').eq(counter).attr('name');
	$('.slideshow li').eq(counter).fadeTo(300,1);
	$('.slidetitle h1').fadeTo(300,0,function(){
		$(this).html(imgname).css('padding-left',((counter*116)+25)).fadeTo(300,1);
		counter++;
	});
	setTimeout(slides,3000);
}
$(document).ready(function(){
	$('.slideshow li, .slidetitle h1').hide();
	$(window).ready(slides);
});
