 };

    fn.setActiveChildren = function () {
        activeChildren[type] = activeGroups[type].children;
    };

    fn.setActiveItems = function () {
        activeItems[type] = activeChildren[type][indexItem];
    };

    fn.setCallback = function () {
        if (typeof data.callback === "function") {
            data.callback(activeItems.tab, activeItems.pane);
        }
    };

    fn.reset = function () {
        for (var groupIndex = 0; groupIndex < groups['tab'].length; groupIndex+