
//= namespace ft
if (typeof(ft) == 'undefined') ft = {};

//= require <prototype.js>

ft.PageHandler = Class.create({
    
    initialize: function()
    {
        document.observe('dom:loaded', this.domLoaded.bindAsEventListener(this));
        Element.observe(window, 'load', this.windowLoaded.bindAsEventListener(this));
    },
    
    domLoaded: function()
    {
    },
    
    windowLoaded: function()
    {
    },
    
    observe: function(element, eventName, method)
    {
        if (element)
            element.observe(eventName, method.bindAsEventListener(this));
    },
    
    redirectTo: function(url)
    {
        window.location.href = url;
    }
    
});

