// JavaScript Document
var currentImage = 0;
var totalImages = 12;
var viewSize = 3;
function MoveLeft()
{
 if(currentImage > 0)
  {
    new Effect.MoveBy('VideoBox', 0, 186 , 
                              {
                                  duration: 0.4,  
                                  transition: Effect.Transitions.sinoidal
                              });
							    currentImage = currentImage-viewSize;
	}
}

function MoveRight()
{
	  if(currentImage < totalImages-viewSize)
  {
    new Effect.MoveBy('VideoBox', 0, -186 , 
                              {
                                  duration: 0.4,  
                                  transition: Effect.Transitions.sinoidal
                              });
							 currentImage = currentImage+viewSize;
							
	}
}