var idtmp=0;
var SmoothScrollafter = Fx.Scroll.extend({

	initialize: function(options){
		this.parent(window, options);
		this.links = (this.options.links) ? $$(this.options.links) : $$(document.links);
		var location = window.location.href.match(/^[^#]*/)[0] + '#';
		this.links.each(function(link){
			if (link.href.indexOf(location) != 0) return;
			var anchor = link.href.substr(location.length);
		}, this);
	},

	useLinkk: function(anchor,lade){
			this.anchor = anchor;
			if(anchor!="oben"){
				y=$(anchor).getPosition();
				this.scrollTo(0,y.y);
			}
			else this.scrollTo(0,0);
	}


});