var max=52;
var zahl = 1;
var source1 = "../../all_rot/c2-";
var source2 = ".jpg";
var speed=300;
var images=new Array(max);


function doit(){
for (var i = 1; i < 52; i++){
images[i]=source1 + i + source2;
var ild=new Image();
ild.src=images[i];
}
doit1();
}

function birke(){
zahl=100;
document.Bild.src="../../img/prod/allegro_nt_birke.jpg";
}

function kirsche(){
zahl=100;
document.Bild.src="../../img/prod/allegro_nt_kirsche.jpg";
}

function nuss(){
zahl=5;
doit1();
}



function doit1() {
if (zahl == 100){
return;
}

if (zahl == 1) {
zahl=51;
document.Bild.src= images[zahl];
setTimeout("doit1();",speed);
}
else {
zahl--;
document.Bild.src = images[zahl];
setTimeout("doit1();",speed);
}
}
