﻿var a = 0;
function rotatePhoto(s) { 
	window.setTimeout('changePhoto()', s*500) 
}

function changePhoto()
{
	a = a + 1;  
	if (a==11) a = 1;

	document.photo.src="randompics/photo" + a + ".gif";
	rotatePhoto(6);
}

