

var citac = 1;
var timerID  = setTimeout("Tik()", 5000);

if (!document.getElementById && document.all) document.getElementById = document.all;
function otoc(kam)
{

document.getElementById('odkaznaclanek'+citac.toString()).style.backgroundColor = '#04264B';
document.getElementById('clanek_'+citac.toString()).style.display = 'none';

if (kam==0) citac=citac+1; else citac=kam;
if (citac>5) citac=1;
document.getElementById('clanek_'+citac.toString()).style.display = 'inline';
document.getElementById('odkaznaclanek'+citac.toString()).style.backgroundColor = 'red';
}

function Tik(){
otoc(0);
timerID = setTimeout("Tik()", 5000);
}

function Skoc(kam){
clearTimeout(timerID);
otoc(kam);
timerID = setTimeout("Tik()", 10000);
}



