[type + 'Active']);
    };

    fn.setDefaults = function () {
        for (var i = 0; i < types.length; i++) {
            type = types[i];

            fn.setOption(type + 'Group', '[data-' + type + 's]');
            fn.setOption(type + 'Active', 'active');
        }
    };

    fn.setOption = function (key, value) {
        data = data || [];
        data[key] = data[key] || value;
    };

    fn.setActiveGroup = function () {
        activeGroups[type] = groups[type][indexGroup];
   