// THIS IS FOR THE SCROLL BOX
jQuery(function( $ ){

	$('#content').attr({scrollTop:0,scrollLeft:0});
	
	$.localScroll.hash({
		target: '#content', //could be a selector or a jQuery object too.
		axis:'yx',//the default is 'y'
		queue:true,
		duration:1500
	});
	
	var $last = $([]);//save the last link

	$.localScroll({
		target: '#content', //could be a selector or a jQuery object too.
		axis:'yx', //the default is 'y'
		queue:true,
		duration:1000,
		hash:true,
		onBefore:function( e, anchor, $target ){//'this' is the clicked link
			$last.removeClass('scrolling');
			$last = $(this).addClass('scrolling');
			if( this.blur )
				this.blur();//remove the awful outline
		},
		onAfter:function( anchor ){
			$last.removeClass('scrolling');
		}
	});
});