function reapply(){ setTimeout("slideit()",2000) return true } window.onerror=reapply var loaded = new Array; var im = new Array; var a = new Array; var auto=1; im[1]="img/1.jpg" loaded[1]=0 im[2]="img/2.jpg" loaded[2]=0 im[3]="img/3.jpg" loaded[3]=0 im[4]="img/4.jpg" loaded[4]=0 im[5]="img/5.jpg" loaded[5]=0 im[6]="img/6.jpg" loaded[6]=0 im[7]="img/7.jpg" loaded[7]=0 im[8]="img/8.jpg" loaded[8]=0 im[9]="img/9.jpg" loaded[9]=0 im[10]="img/10.jpg" loaded[10]=0 im[11]="img/11.jpg" loaded[11]=0 im[12]="img/12.jpg" loaded[12]=0 var number_of_images=12 var speed=1 var step=1 var step2=0; var whichimage=0 var to; //number_of_images--; function slideit() { if (!document.images) return if (document.all) slide.filters.blendTrans.apply() document.images.slide.src=a[step].src; if (document.all) slide.filters.blendTrans.play() whichimage=step if (step>number_of_images) step=1 if(step>0) { step2=step-1; if(loaded[step2]==0) { a[step2] = new Image(); a[step2].src=im[step2]; loaded[step2]=1; } step3=step-2; if(step3>0 && loaded[step3]==1) { delete a[step3]; loaded[step3]=0; } } if(stepnumber_of_images) step=1 if(loaded[step]==0) { a[step] = new Image(); a[step].src=im[step]; loaded[step]=1; } slideit(); } function vorige() { auto=0; clearTimeout(to); step-=1; if (step<1) step=number_of_images; if(loaded[step]==0) { a[step] = new Image(); a[step].src=im[step]; loaded[step]=1; } slideit(); } function begin() { auto=0; clearTimeout(to); step=1; if(loaded[step]==0) { a[step] = new Image(); a[step].src=im[step]; loaded[step]=1; } slideit(); } function eind() { auto=0; clearTimeout(to); step=number_of_images; if(loaded[step]==0) { a[step] = new Image(); a[step].src=im[step]; loaded[step]=1; } slideit(); } function autom() { if(auto==1) clearTimeout(to); auto=1; step+=1; if (step>number_of_images) step=1 if(loaded[step]==0) { a[step] = new Image(); a[step].src=im[step]; loaded[step]=1; } slideit(); if(auto==1) to=setTimeout("autom()",speed*5000) } if(auto==1) to=setTimeout("autom()",speed*5000)