/**
 * Base controller class.
 * 
 * 
 */
function Controller() {

}

Controller.prototype = {
    
    init: function() {},
    
    preonload: function() {},

    onload: function() {},
    
    getBaseUrl: function() {
        
        var base = document.getElementsByTagName('BASE')[0];

        return base.href;
        
    }
};
