/*
	Author:		CL - well I stole this off StackOverflow - lpfavreau
				but YUI has a similar function too
	Purpose:	Quick namespace - BECAREFUL NOT TO OVERWRITE EXISTING METHODS/OBJS
	Usage:		jQuery.namespace( 'jQuery.debug' );
				jQuery.debug.test1 = function()
				{
					alert( 'test1 function' );
				};
				jQuery.debug.test2 = function()
				{
					alert( 'test2 function' );
				};
				// usage
				jQuery.debug.test1();
				jQuery.debug.test2();
*/
jQuery.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;
};
