
var a = new Array();
a[1] = 1;
a[2] = 1;
a[3] = 1;
var column = 0;
var autorotation = new Array();
		autorotation[1] = 1;
		autorotation[2] = 1;
		autorotation[3] = 1;
		//alert("yes1");
function setNext () {  
		for (column=1;column<=3; column++) {
			if (autorotation[column] == 1) { 
			  a[column] = a[column] + 1;
			  teaserlength = 0;
			  this.teasers = document.getElementsByName('TopTeaser_'+column);
			
			 	for (i = 1; i <= 10; i++) {
				  if (isNaN(document.getElementById('TopTeaser_'+column+'_'+i))) { // ist vorhanden
				    teaserlength = teaserlength + 1;
				  } else { // ist nicht vorhanden 
				    break;
				  } 
				}
			  
			  if (a[column] > teaserlength) {	  	
			  	a[column]=1;
			  }
			  for (x = 1; x <= teaserlength; x++) {
					document.getElementById('TopTeaser_'+column+'_'+x).style.display = "none";
				}
				
				document.getElementById('TopTeaser_'+column+'_'+a[column]).style.display = "block";
			}
		}
}

function stopTheRotation(column) {
	autorotation[column] = 0;
}