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