var order_array = new Array();
order_array[0] = "partners_rotating_zteusa";
order_array[1] = "partners_rotating_aplha";
order_array[2] = "partners_rotating_sprint";
order_array[3] = "partners_rotating_sage";
order_array[4] = "partners_rotating_syncworks";
order_array[5] = "partners_rotating_dell";
order_array[6] = "partners_rotating_emerson";
	
function animate_logos(reset) {
			
	if (reset) {
		// Reset Order
 			var logo = order_array.shift();
			order_array.push(logo)
	}
			
	// Move Top Logo
	$('#' + order_array[0]).animate({ left: '264', top: '0'}, 1500);
			
	// Move left column up
	setTimeout("move_left_col_up()",800)
	setTimeout("move_right_to_left()",1600)
	setTimeout("move_right_col_down()",2400)
	setTimeout("final_transition()",3200)
			
}
		
function move_left_col_up() {
	$('#' + order_array[1]).animate({ left: '0', top: '0'}, 1500);
	$('#' + order_array[2]).animate({ left: '0', top: '91'}, 1500);
	$('#' + order_array[3]).animate({ left: '0', top: '180'}, 1500);
}
		
function move_right_to_left() {
	$('#' + order_array[4]).animate({ left: '0', top: '269'}, 1500);
}
		
function move_right_col_down() {
	$('#' + order_array[0]).animate({ left: '264', top: '91'}, 1500);
	$('#' + order_array[6]).animate({ left: '264', top: '180'}, 1500);
	$('#' + order_array[5]).animate({ left: '264', top: '269'}, 1500);
}
		
function final_transition() {
	$('#' + order_array[1]).animate({ left: '135', top: '0'}, 1500);
}
	
$(document).ready(function() {
	animate_logos(false);
  			
	var time_delay_base = 5500;
	var time_delay = time_delay_base;
  			
	setTimeout("animate_logos(true)",time_delay);
  			
	time_delay = time_delay + time_delay_base;
	setTimeout("animate_logos(true)",time_delay);
  			
	time_delay = time_delay + time_delay_base;
	setTimeout("animate_logos(true)",time_delay);
  			
	time_delay = time_delay + time_delay_base;
	setTimeout("animate_logos(true)",time_delay);
  			
	time_delay = time_delay + time_delay_base;
	setTimeout("animate_logos(true)",time_delay);
  			
	time_delay = time_delay + time_delay_base;
	setTimeout("animate_logos(true)",time_delay);
  				
});
