doba=5000
pocet = 4
rotator=0
obrsrc = new Array(pocet)
cesta =new Array(pocet)
obrsrc[0]="http://mtbmaraton.cz/rotace/reklama1.gif"; cesta[0]="http://google.cz";
obrsrc[1]="http://mtbmaraton.cz/rotace/reklama2.gif"; cesta[1]="http://jyxo.cz";
obrsrc[2]="http://mtbmaraton.cz/rotace/reklama3.gif"; cesta[2]="http://seznam.cz";
obr = new Array(pocet);
for (i=0; i < pocet; i++){
obr[i]= new Image();
obr[i].src= obrsrc[i]
}
function rotate() {
if (rotator==pocet) {rotator=0;}
document.images["obraz"].src = obrsrc[rotator];
rotator = rotator + 1
window.setTimeout('rotate();',doba);
}
function poslat() {
window.location=cesta[rotator-1];
return false;

