// uc utils

(function($) {
    var isUndefinedOrNull = function(o) {
        if (!(typeof(o) == 'undefined' || o === null)) {
            return false;
        }
        return true;
    }

    var declare_namespace = function(namespace) {
        var obj = window;
        $.each(namespace.split('.'), function(i, name) {
            if (isUndefinedOrNull(obj[name])) {
                obj[name] = {}
            }
            obj = obj[name];
        });
    }

    declare_namespace('uc.core');
    uc.core.declare_namespace = declare_namespace;
    uc.core.isUndefinedOrNull = isUndefinedOrNull

})(jQuery);

(function($) {

    // Create a console object for browsers which don't have one. (Old versions
    // of Firefox or IE for instance)
    if (typeof console == "undefined") {
        window.console = {
            log: function () {}
        };
    }
    
})(jQuery);

