jQuery(function($){
	
	$(".content-slider .scroller")
		.css({
			width: $(".content-slider .scroller > div").length * $(".content-slider .scroller > div").width()
		});
	
	$(".content-slider .scroller > div")
		.each( function(){
			$(this).data({ positionLeft: $(this).position().left });
		});
	
	$(".menu a").bind( 'click', function(){
		
		var current		= $(this),
			targetHref	= current.attr('href'),
			target 		= $( "." + targetHref.substring( 1, targetHref.length ) ),
			newLeft		= target.data('position-left');
		
		$(".content-slider .scroller").stop().animate({
			marginLeft: -newLeft
		}, 500 );
		
		return false;
		
	});
	
});

