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