window.addEvent('domready', function() {
				
	var myAnchors = $$('.smoothScroll');
	
	myAnchors.each(function(value, key) {
		
		var singleAnchor = value;
		
		console.log('link : '+singleAnchor.getPosition().y);
		
		var myAnchor = new Element('a', {
		    'html': singleAnchor.getProperty('html'),
		    'href': '#',
		    'styles': {
		        'display': 'block'
		    },
		    'events': {
		        'click': function(){
		            var myElement = $(document.body);
					var myFx = new Fx.Scroll(myElement).start(0, (singleAnchor.getPosition().y - 10));
					return false;
		        }
		    }
		});
		
		myAnchor.inject('nav-inject');
	});

    var mySmoothScroll = new SmoothScroll();

    
});
