/**
 * @fileoverview Compare Tool Redesign (ns).
 * @name Namespace
 * Requires Prototype version 1.6.0 or greater.
 */

/**
 * Creates a namespace as top-level objects.
 * @param name the fully-qualified name of the namespace to create.
 */
function createNamespace(name)
{
    if(name == null)
    {
        return;
    }
    var root = window;
    var names = name.split(".");
    var x = 0;
    var y = names.length;
    for(x=0; x<y; x++)
    {
        if(typeof root[names[x]] == "undefined")
        {
            root[names[x]] = new Object();
        }
        root = root[names[x]];
    }
}

// Create a namespace.
createNamespace("ATC.cs.research.ctr");
