function rotate(delay1,delay2,delay3,delay4) {
	
	xcounter1++;
      
  if (xcounter1 >= 1) {
      zz1=$("#anz_1").val();
      //alert(zz);
      $(".animate_1").delay(delay1).animate({
            
           top: '-=26px'
         },
          1000, function() {
            if ($(this).css("top")=='-26px') { $(this).css("top", zz1+'px'); };
            
         });
  	xcounter1=0;	
  }
    
  zz2=$("#anz_2").val();
  $(".animate_2").animate({
        
       top: '-=26px'
     },
      1000, function() {
        if ($(this).css("top")=='-26px') { $(this).css("top", zz2+'px'); };
        
     });  
 
 	 xcounter3++;
  if (xcounter3 >= 1) {
    zz3=$("#anz_3").val();
    $(".animate_3").delay(delay3).animate({
          
         top: '-=26px'
       },
        1000, function() {
          if ($(this).css("top")=='-26px') { $(this).css("top", zz3+'px'); };
          
       });
  	xcounter3=0;
  }
       
  zz4=$("#anz_4").val();
  $(".animate_4").delay(delay4).animate({
        
       top: '-=26px'
     },
      1000, function() {
        if ($(this).css("top")=='-26px') { $(this).css("top", zz4+'px'); };
        
     });  
 
       
	
	
	
}

$(document).ready(function() {
     
    xcounter1=0; xcounter2=0; xcounter3=0; xcounter4=0;
   	window.setInterval(function() {
   		rotate(2000,0,7000,4500);
   	},10000);
     
    setTimeout ( function () {
    	rotate(700,0,2000,1500);
    },3000 );
     
      
      
      
 });
