$(document).ready(function(){

	//This keeps track of the slideshow's current location
	var newX = 240;
	var current_panel = 1;
	//Controlling the duration of animation by variable will simplify changes
	var animation_duration = 2500;

	$.timer(2000, function (timer) {
		//Determine the current location, and transition to next panel
		
		if (current_panel < 10)
		{
				newX = newX - 240;
				$("#slideshow").stop().animate({left: newX, top: "0px"}, {easing: 'easeOutBack', duration: animation_duration});
				current_panel = current_panel + 1;
				timer.reset(4500);
		}
		else
		{
			newX = 240;
			current_panel = 1;
		}
	});

});
