// JavaScript Document
	var currentImage = 0;
	var totalImages = 21;
	var viewSize = 4;
	var scroll_active=0;
	var imagewidth =324;
	var nextimage=3;
	function moveToPrevious()
	{
	  if(currentImage > 0 && scroll_active==0)
	  {
		scroll_active=1;
		new Effect.Move('imageBoxInside', { x: imagewidth, y: 0, transition: Effect.Transitions.sinoidal });
		currentImage=currentImage-nextimage;
		setTimeout('scroll_active=0;',1000);
	  }
	  
	}
	
	
	function moveToNext()
	{
	  if(currentImage < totalImages-viewSize  && scroll_active==0)
	  {
		scroll_active=1;
		new Effect.Move('imageBoxInside', { x: -imagewidth, y: 0, transition: Effect.Transitions.sinoidal });
		currentImage=currentImage+nextimage;
		setTimeout('scroll_active=0;',1000);
	  }
	}
	