$(document).ready(function() {
	$.interval(changeImage, 5000);
});

function changeImage() {
	var photo = $('img#photo');
	if($('img#photo').attr('src') == 'images/flash1.jpg') {
		$('img#photo').attr('src', 'images/flash2.jpg');
	}
	else if($('img#photo').attr('src') == 'images/flash2.jpg') {
		$('img#photo').attr('src', 'images/flash3.jpg');
	}
	else {
		$('img#photo').attr('src', 'images/flash1.jpg');
	}
}