


/* PAGE SCROLLING */

jQuery(function( $ ){
	
	var target = $('#content').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:'x', //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');
			if( this.blur )
				this.blur();//remove the awful outline
		},
		onAfter:function( anchor ){
			$last.removeClass('scrolling');
		}
	});
	
});