$(function() {
	setInterval("rotateImages()", 5000);		   
});
		
function rotateImages() {
	var currentPhoto = $("#photoShow div.current");
	var nextPhoto = currentPhoto.next();
	if(nextPhoto.length == 0)
		nextPhoto = $("#photoShow div:first");
				
		currentPhoto.removeClass('current').addClass('previous');
		nextPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 1.0 }, 1500, 
		function() {
			currentPhoto.removeClass('previous');	
		});				
}