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