if (!AT.Test) {
    AT.Test = {
        testCookieName: 't',
        testParameterName: 'test'
    };
}

AT.Test.initialize = function(path) {
    var testName = $.deparam.querystring()[this.testParameterName];
    if (testName)
        $.cookie(this.testCookieName, testName, {path: (path ? path : '/')});
};

AT.Test.getTestName = function() {
    return $.cookie(this.testCookieName);
};

AT.Test.clearTests = function(path) {
    $.cookie(this.testCookieName, null, {path: (path ? path : '/')});
};

