var currentImage = 0;
var totalImages = 5;
var viewSize = 3;

function moveToPrevious()
{
  if(currentImage > 0)
  {
    new Effect.Move('imageBoxInside', { x: 0, y: 190, transition: Effect.Transitions.sinoidal });
    currentImage--;
  }
}

function moveToNext()
{
  if(currentImage < totalImages-viewSize)
  {
    new Effect.Move('imageBoxInside', { x: 0, y: -190, transition: Effect.Transitions.sinoidal });
    currentImage++;
  }
}
