var pixStep = 5;
var timeStep = 15;

function initScroller(delka)
{

	cislo_obrazku = 0;
	position = 0;
	zacatek = 0;
	konec = zacatek - delka;
	scroller = document.getElementById("scroll_content");
	obrazky_src = new Array();
	obrazky_width = new Array();
	obrazky_popis = new Array();

}

function scrollLeft()
{
   if (position <= zacatek) {
	  position = position + pixStep;
	  scroller.style.left = position + "px";
	  scrollTime = setTimeout("scrollLeft()", timeStep);
	} 
}

function scrollRight()
{
   if (position >= konec) {
      position = position - pixStep;
      scroller.style.left = position + "px";
      scrollTime = setTimeout("scrollRight()", timeStep);
   } 
}

function leftMouseover(img_h)
{
	scrollLeft();
}

function leftMouseout(img_h)
{
	clearTimeout(scrollTime);
	document.getElementById('sipka_left').src='/img/arrow-left.png';
}

function rightMouseover(img_h)
{
	scrollRight();
}

function rightMouseout(img_h)
{
	clearTimeout(scrollTime);
	document.getElementById('sipka_right').src='/img/arrow-right.png';
}

