(function(){
	window.KryosSlideShow = {

		interval : 4000, //the number of milliseconds between slides

		currentSlide : 3, //the number of the current slide (1-5)

		play : function(){ //call this function to start the auto sliding
			this.nextSlide();
		},

		stop : function(){ //call this function to stop the auto sliding
			window.clearTimeout(this.timer);
		},

		nextSlide : function(){	//do not call this function
			this.currentSlide += 1;
			if(this.currentSlide > 3){
				this.currentSlide = 1;
			}
			window.gotoSlide(this.currentSlide); //change this function name if needed
			this.timer = window.setTimeout("window.KryosSlideShow.nextSlide()",this.interval);
		}
	};
})();
