Slideflow.setup = function(){
	Slideflow.starting_index = 1;
	Slideflow.x_space_modifier = 1;
	Slideflow.y_space_modifier = 9;
};

Slideflow.update_caption = function(){
		slide = Slideflow.slide_for_index(Slideflow.current_index);
		
		if (slide)
			{
			// Instead of updating a caption, we show the relevant element
			
			// first hide all the details ones
			var details_container = document.getElementsByClassName('details_container')[0];
	
			details_container.childElements().each(function (element,index) {
				element.hide();
			});
			
			
			id_to_show = slide.id.gsub('slide_','details_')
			var details = $(id_to_show)
			if (details)
				{
				new Effect.Appear(details);
				}
				
				
				
			}
		
};