/*!
 * jQuery Photo Slideshow
 * http://bnj.com/
 *
 * Copyright (c) 2009 Stephen Kozik
 *
 * Date: 2009-12-06
 * Revision: 1
 */

setInterval ( "changephoto()", 5000 );
currentphoto = 1;	

function changephoto() {
	var phototophare = "#sp"+currentphoto;
	 $(phototophare).fadeOut(2000);
	 currentphoto++;
	 if (currentphoto > maxphotos) {
		 currentphoto = 1;
	 }
	var phototophare = "#sp"+currentphoto;
	 $(phototophare).fadeIn(2000);
}
