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