/**
 * Core Class
 * This class implements methods that are not implemented by mootools and must be part of the core functionality
 *
 * @abstract
 * @static
 */
Core = {
    /**
     * Create a namepsace
     *
     * @param namespace string, the namespace to create
     */
    createNamespace: function(namespace) {
        var namespace_arr = namespace.split('.');
        var root = window;

        for (var i = 0; i < namespace_arr.length; i++) {
            if (! $type(root[namespace_arr[i]])) {
                root[namespace_arr[i]] = {};
            }

            root = root[namespace_arr[i]] ;
        }
    }
};

// add this piece of code to catch the console.log's if firebug is not available
try {
    console.log('core initiated');
} catch (e) {
    console = {};
    console.log = function(msg) {
        // do nothing
    }
}