// JavaScript Document
$(document).ready(function() {
		var maxCount= $('#image-fade > *').length;
		var count=2;
		var previous=1;
		window.setInterval(function(){imageRotation();},5000); 
		
		function imageRotation() {
			$('#image-fade-'+previous).fadeOut('slow');
			$('#image-fade-'+count).fadeIn('slow');
			previous = count;
			count ++;
			if(count==maxCount+1) {
				count=1;
			}
			
		};
		
});