$(function(){

	// Scroll initially if there's a hash (#something) in the url 
	$.localScroll.hash({
		duration:1500,
		offset: -20,
	});
	
	$('.navi').localScroll({
		offset: -20,
		duration:1500,
		hash:true,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}
	});

	// prettify code
	prettyPrint();
});






(function() {
        var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
        s.type = 'text/javascript';
        s.async = true;
        s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
        t.parentNode.insertBefore(s, t);
    })();






