bildanzahl=7;

var sctr=0;
var halt=0;
var isn=new Array();
for (i=0;i<bildanzahl;i++){
 isn[i]=new Image();
}
isn[0].src="../images/wechsel/spule1.jpg";
isn[1].src="../images/wechsel/spule2.jpg";
isn[2].src="../images/wechsel/spule3.jpg";
isn[3].src="../images/wechsel/spule4.jpg";
isn[4].src="../images/wechsel/spule5.jpg";
isn[5].src="../images/wechsel/spule6.jpg";
isn[6].src="../images/wechsel/spule7.jpg";

function rotateIt(){
 if (halt!=1){
  sctr++;
  if (sctr>bildanzahl-1){
   sctr=0;
   }
  document.spule.src=isn[sctr].src;
  setTimeout("rotateIt()",2500);
  }
 }




