var smoove = function(evt){
Event.stop(evt);
this.onclick = function() {return false;};
var t = this.uri[1];
if($(t)) new Effect.ScrollTo(t, {offset: -36});
}
Event.observe(window,'load',function(){
$$('a').each(function(el){
if(el.href && el.href.indexOf('#') > -1){
el.uri = el.href.split("#");
el.observe('click', smoove.bind(el));
}
});
});