jQuery(function( $ ){

	
	var target = $('.factoid').get(0);//the scrolled div
	
	target.scrollLeft = target.scrollTop = 0;

	var $last = $([]);//save the last link

	$.localScroll({
		target: target, //could be a selector or a jQuery object too.
		axis:'xy',//the default is 'y'
		queue:true,
		duration:1000,
		hash:false,
		onBefore:function( e, anchor, $target ){//'this' is the clicked link
			$last.removeClass('scrolling');
			$last = $(this).addClass('scrolling');
			this.blur();//remove the awful outline
			
		}
	});
});