/* GZIP on the fly by Raccoon Framework http://www.wt.com.mx/ */ /** * @version 0.1 * @author Alejandro -aztkgeek- Galindo * @copyright Copyright (C) 2006 Web Technologies Networks S.A. de C.V. * @package Raccoon.RUI * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * Raccoon is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. * * @info Based and inspired on Y!UI, some code are from Y!UI, so: * Copyright (c) 2006, Yahoo! Inc. All rights reserved. * Code licensed under the BSD License: * http://developer.yahoo.net/yui/license.txt **/ /** * The RACCOON global namespace * @constructor */ var RACCOON = window.RACCOON || {}; /** * Returns the namespace specified and creates it if it doesn't exist * * RACCOON.namespace("property.package"); * RACCOON.namespace("RACCOON.property.package"); * * Either of the above would create RACCOON.property, then * RACCOON.property.package * * @param {String} ns The name of the namespace * @return {Object} A reference to the namespace object */ RACCOON.namespace = function(ns) { if (!ns || !ns.length) { return null; } var levels = ns.split("."); var nsobj = RACCOON; // RACCOON is implied, so it is ignored if it is included for (var i=(levels[0] == "RACCOON") ? 1 : 0; i