﻿var EventsObj = new Class({
    initialize: function(options) {
        this.options = Object.extend({

    }, options || {});

    var idx = window.location.toString().indexOf("#");
    if (idx > 0) {
        var hash = window.location.hash.substring(1);
        var idx = hash.substring(3);

        new Fx.Scroll(window, {
            wait: false,
            duration: 1000,
            offset: { 'x': 0, 'y': 0}
        }).toElement("top" + idx);
    }
}
});