window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var c=[].slice.call(arguments);typeof console.log==="object"?log.apply.call(console.log,console,c):console.log.apply(console,c)}};
(function(c){function h(){}for(var i="assert,clear,count,debug,dir,dirxml,error,exception,firebug,group,groupCollapsed,groupEnd,info,log,memoryProfile,memoryProfileEnd,profile,profileEnd,table,time,timeEnd,timeStamp,trace,warn".split(","),b;b=i.pop();)c[b]=c[b]||h})(function(){try{return console.log(),window.console}catch(c){return window.console={}}}());
(function(c){function h(b){return typeof b=="object"?b:{top:b,left:b}}var i=c.scrollTo=function(b,d,a){c(window).scrollTo(b,d,a)};i.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};i.window=function(){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){if(this.nodeName&&c.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"])==-1)return this;var b=(this.contentWindow||this).document||this.ownerDocument||this;return c.browser.safari||
b.compatMode=="BackCompat"?b.body:b.documentElement})};c.fn.scrollTo=function(b,d,a){typeof d=="object"&&(a=d,d=0);typeof a=="function"&&(a={onAfter:a});b=="max"&&(b=9E9);a=c.extend({},i.defaults,a);d=d||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;a.queue&&(d/=2);a.offset=h(a.offset);a.over=h(a.over);return this._scrollable().each(function(){function n(c){j.animate(f,d,a.easing,c&&function(){c.call(this,b,a)})}var l=this,j=c(l),e=b,m,f={},p=j.is("html,body");switch(typeof e){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(e)){e=
h(e);break}e=c(e,this);case "object":if(e.is||e.style)m=(e=c(e)).offset()}c.each(a.axis.split(""),function(c,b){var d=b=="x"?"Left":"Top",k=d.toLowerCase(),g="scroll"+d,h=l[g],o=i.max(l,b);m?(f[g]=m[k]+(p?0:h-j.offset()[k]),a.margin&&(f[g]-=parseInt(e.css("margin"+d))||0,f[g]-=parseInt(e.css("border"+d+"Width"))||0),f[g]+=a.offset[k]||0,a.over[k]&&(f[g]+=e[b=="x"?"width":"height"]()*a.over[k])):(d=e[k],f[g]=d.slice&&d.slice(-1)=="%"?parseFloat(d)/100*o:d);/^\d+$/.test(f[g])&&(f[g]=f[g]<=0?0:Math.min(f[g],
o));!c&&a.queue&&(h!=f[g]&&n(a.onAfterFirst),delete f[g])});n(a.onAfter)}).end()};i.max=function(b,d){var a=d=="x"?"Width":"Height",h="scroll"+a;if(!c(b).is("html,body"))return b[h]-c(b)[a.toLowerCase()]();var a="client"+a,i=b.ownerDocument.documentElement,j=b.ownerDocument.body;return Math.max(i[h],j[h])-Math.min(i[a],j[a])}})(jQuery);
$(document).ready(function(){$("nav a,footer a.up").click(function(a){$.scrollTo(this.hash||0,1500);a.preventDefault()})});

