// vim: set ts=4 sw=4 sts=4 si noet:

// allow simple namespacing
// see: http://www.zachleat.com/web/2007/08/28/namespacing-outside-of-the-yahoo-namespace/
if (typeof MB == "undefined") {
    var MB = {};

    MB.namespace = function() {
        var a=arguments, o=null, i, j, d;
        for (i=0; i<a.length; i=i+1) {
            d=a[i].split(".");
            o=window;
            for (j=0; j<d.length; j=j+1) {
                o[d[j]]=o[d[j]] || {};
                o=o[d[j]];
            }
        }
        return o;
    }
}

MB.namespace('MB.cfg'); // global configuration object
