var Navigation = new Class({

    initialize: function() {
        this.nav_element = $('navColumnOneWrapper');
        this.min_y = this.nav_element.getPosition().y;
        this.nav_element.setStyle('position', 'relative');
        this.nav_element.set('tween', {
            'property': 'top',
            'duration': 1500,
            'transition': Fx.Transitions.Cubic.easeOut
        });

        window.addEvent('scroll', this.window_scrolled.bind(this));
    },

    window_scrolled: function(e) {
        var scroll_y = window.getScroll().y;
        if (scroll_y >= this.min_y) {
            scroll_y -= this.min_y - 10;
        }
        else {
            scroll_y = 0;
        }
        this.nav_element.tween(scroll_y);
    }

});


var SantofitPage = new Class({

    initialize: function() {
        //this.navigation = new Navigation();
    }

});


window.addEvent('domready', function(e) {
    var page = new SantofitPage();
});

