	var currentImage = 0;
	var totalImages = 8;
	var viewSize = 2;
	var wait = 0;

function zpet() 
{
	if (currentImage > 0) 
	{
		new Effect.Move('imageBoxInside', { x: 640, y: 0, afterFinish: function(e) { currentImage--; }, transition: Effect.Transitions.sinoidal, queue: { position: 'end', scope: 'global', limit: 1 }});
	}
}
function vpred()
{
  if(currentImage < totalImages-viewSize)
  {
    new Effect.Move('imageBoxInside', { x: -640, y: 0, afterFinish: function(e) { currentImage++; }, transition: Effect.Transitions.sinoidal, queue: { position: 'end', scope: 'global', limit: 1 }});
  }
}


var fotoNahoru = function()
{
new Effect.Move('foto', { x: 0, y:-640, afterFinish: function(e) { currentImage++; }, transition: Effect.Transitions.sinoidal, queue: { position: 'end', scope: 'global', limit: 1 }});
}

var designDolu = function()
{
new Effect.Move('design', { x: 0, y:-600, afterFinish: function(e) { currentImage++; }, transition: Effect.Transitions.sinoidal, queue: { position: 'end', scope: 'global', limit: 1 }});
}


var obeFunkce = function()
{
designDolu();
fotoNahoru();
}
