// JavaScript 

$(document).ready(function() {
		var maxCount= $('#image > *').length;
		var count=2;
		var previous=1;
		window.setInterval(function(){imageRotation();},5000); //animation speed this is set to 3.5 seconds at the moment
		
function imageRotation() {
		$('#image-'+previous).fadeOut(1500); //fade out speed this is set to 0.5 seconds at the moment
		$('#image-'+count).fadeIn(1500); //fade in speed this is set to 0.5 seconds at the moment
		previous = count;
		count ++;
		if(count==maxCount+1) {
			count=1;
		}
	};
});