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