var currentX = 0;

function moveToPrevious()
{
  new Effect.Move('spotlightBoxInside', { x: 422, y: 0, transition: Effect.Transitions.sinoidal });
  currentX = currentX - 422;
}

function moveToNext()
{
  new Effect.Move('spotlightBoxInside', { x: -422, y: 0, transition: Effect.Transitions.sinoidal });
  currentX = currentX + 422;
}

function moveToStory(newX)
{
	new Effect.Move('spotlightBoxInside', { x: currentX - newX, y: 0, transition: Effect.Transitions.sinoidal });
  	currentX = newX;
}