/*
 * jQuery.namespace plugin
 *
 * Copyright (c) 2008 Borgar Thorsteinsson (borgar.net)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * Compatible with jQuery 1.2.6+
 *
 */
(function($){
  
  function N () {};
  
  $.namespace = function ( space, obj ) {
    var c, 
        b = space.split( '.' ), 
        p = window;
    while ( c = b.shift() ) {
      p = ( p[ c ] = ( p[ c ] || new N() ) );
    }
    if ( obj ) {
      $.extend( p, obj );
    }
    return p;
  };
  
})(jQuery);