$(document).ready(function(){
	$('#slideshow img:not(":first")').hide();
    var count=0;
    var countImages = $('#slideshow img').size();

    if(countImages>1){
        setInterval(nextImage,10000); //The number here dictates the length of time between the animation
    }

    function nextImage() {
        $('#slideshow img:eq('+count+')').fadeOut(2000); //Length of FadeOut transition
        if(count<countImages-1){
            count++;
        } else {
           	count=0;
        }
       $('#slideshow img:eq('+count+')').fadeIn(2000); //Length of FadeIn transition
    }	
	
});
