/**
* @desc:   
* @author: Marc ter Horst
* @date:   01-10-2007
*
*/

var counter = 0;

$(document).ready(function () 
{

	// Rotate the images
	rotateCustomers();

});


function rotateCustomers()
{
	$("#customer_img > a").html("");

	$("#customer_img").html("");
	// No image, so show the first one
	$("#last_customers > a").eq(counter).clone(true).hide().appendTo("#customer_img").fadeIn("slow");
	$("#customer_link > a").attr("href", $("#last_customers > a").eq(counter).attr("href"));
	
	if(counter == ($("#last_customers > a").length - 1))
		counter = 0;
	else
		counter++;
	
	setTimeout(rotateCustomers, 10000);
}


