function Mmf_Subscribers(isMobile) {

    function _changeCategory(event) {
        var target;
        target = $(event.target);
        if ($('div.subscriber_table_wrapper:visible').length > 0) {
            $('div.subscriber_table_wrapper:visible').fadeOut(300, 
                function()
                {
                    if (target.attr('value')) {
                        $('div#' + target.attr('value')).fadeIn(300);
                    }
                });
        } else {
            $('div#' + target.attr('value')).fadeIn(300);
        }
    }

    function _reloadChangeCategory(event) {
        var select;
        select = $('select');
        if (select.val()) {
            window.location.href = '/subscribers?openList=' + select.val();
        }
    }
    
    function _init(isMobile) {
        if (isMobile) {
            $('button').bind('click', _reloadChangeCategory);
        } else {
            $('select').bind('change', _changeCategory);
        }
    }
    
    _init(isMobile);
}
