var counter = 1;

function activateNewsSlider( wrapper )
{
	var firstLink = jQuery( "#active" );
	var width = firstLink.width();
	firstLink.removeAttr( "id" );

	jQuery( wrapper ).animate({
		left: "-=" + width
	}, 1000, function(){
		// Put the first link last
		jQuery( firstLink ).clone().appendTo( wrapper );
		firstLink.css( "color", "#FFF" );

		// Get first link, add the id active to it and change its color
		var links = jQuery( wrapper + " a" );
		var newFirstLink = links[counter];
		counter++;
		jQuery( newFirstLink ).attr( "id", "active" );
	});
}

