// JavaScript 
var j = jQuery.noConflict();

j(document).ready(function() {
		var maxCount= j('#image-holder img').size();
		var count=2;
		var previous=1;
		
		window.setInterval(function(){imageRotation();},4000); //animation speed this is set to 3.5 seconds at the moment
		
		function imageRotation() {
		j('#image-'+previous).fadeOut(350); //fade out speed this is set to 0.5 seconds at the moment
		j('#image-'+count).fadeIn(350); //fade in speed this is set to 0.5 seconds at the moment
		previous = count;
		count ++;
		if(count==maxCount+1) {
			count=1;
		}
	};
});
