doba=3000;
pocet = 4;
rotator=0;
obrsrc = new Array(pocet);
cesta =new Array(pocet);
obrsrc[0]="obrazek1.gif"; cesta[0]="http://net-d.cz";
obrsrc[1]="obrazek2.gif"; cesta[1]="http://net-d.cz/webdesign.html";
obrsrc[2]="obrazek3.gif"; cesta[2]="http://net-d.cz/webdesign.html";
obrsrc[3]="obrazek4.gif"; cesta[3]="http://net-d.cz/webdesign.html";
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;
}

