﻿if (typeof SULEKHA == "undefined") {
    var SULEKHA = {};
}

SULEKHA.namespace = function() {
    //alert("namespace");
    var a=arguments, o=null, i, j, d;
    for (i=0; i<a.length; i=i+1) {
        d=a[i].split(".");
        o=SULEKHA;

        for (j=(d[0] == "SULEKHA") ? 1 : 0; j<d.length; j=j+1) {
            o[d[j]]=o[d[j]] || {};
            o=o[d[j]];
        }
    }
    //alert(o);
    return o;
};


