function chgTlo(czas, limit)
{
   if(!czas) czas = 5000;
   if(!limit) limit = 1;
   if(limit>1) setInterval("showTlo("+limit+")", czas);
   else showTlo(limit);
}

function showTlo(limit)
{
   nr++;
   if(nr>limit) nr = 1;
   $("div.img-top").fadeOut(2000, null);
   $("div#foto-"+nr).fadeIn(600, null);
   
}

nr = 1;
