// JavaScript Document
$(function() {
setInterval("rotateImages()",10000); /*sets how long the image is shown, higher is longer*/
});
	
function rotateImages() {
	var oCurPhoto = $("#img_rot div.current");
	var oNxtPhoto = oCurPhoto.next();
	if (oNxtPhoto.length == 0)
		oNxtPhoto = $("#img_rot div:first");
		oCurPhoto.removeClass('current').addClass('previous');
		oNxtPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 1.0 }, 1250, function() { /*sets the speed of the fade. Higher is slower*/
		oCurPhoto.removeClass('previous');
		});
}
