jQuery(function( $ ){
	var target = $('#slide').get(0);
	target.scrollLeft = target.scrollTop = 0;
	
	$.localScroll.hash({
		target: target, 
		axis:'xy',
		queue:true,
		duration:1500
	});
	
	var $last = $([]);
	
	$.localScroll({
		target: target, 
		axis:'x',
		queue:true,
		duration:1000,
		hash:true,
		onBefore:function( e, anchor, $target ){
			$last.removeClass('scrolling');
			$last = $(this).addClass('scrolling');
			this.blur();
		},
		onAfter:function( anchor ){
			$last.removeClass('scrolling');
		}
	});
});