$.APP = function(){
	return {
		navigationJump: function(ev){
			var target = $(this).attr('href');

			$("a.nav").removeClass("selected");
			$(this).addClass("selected");
			
			$('html, body').animate({
				scrollTop: $(target).offset().top-90
			}, 1000, function(){
				location.hash = '#/'+target.split('#')[1];
			});
		}
	}
}();

$(document).ready(function () {

	$('a.nav[href*=#]').bind("click", $.APP.navigationJump)

});

