posun_left = 0;
posun_right = 0;
pozicia = 0;

function posun()
{
if (pozicia >= -5) {pozicia = -6; posun_left = 0; posun_right=0;}
if (pozicia <= -3866) {pozicia = -3865; posun_left = 0; posun_right=0;}

pozicia = pozicia-posun_left + posun_right;
zoznam.style.left = pozicia;
nieco = window.setTimeout("posun()",1);

a.value = pozicia;

if(navigator.userAgent.indexOf("Firefox")!=-1){
var versionindex=navigator.userAgent.indexOf("Firefox")+8
if (parseInt(navigator.userAgent.charAt(versionindex))>=1)
zoznam.style.top = 0;
//alert("You are using Firefox 1.x or above")
}

}

function move_left()
{
posun_left = 2;
posun_right = 0;
}

function move_right()
{
posun_left = 0;
posun_right = 2;
}

function move_stop()
{
posun_left = 0;
posun_right = 0;
}