
RadioCon.PopupLinks = function() {

    function clickHandler() {
        if (!this._fbox) {
            this._fbox = new FBox({
                ajax : {
                    url : RadioCon.AJAX_URI,
                    _do : (this.className == 'pr-lnk') ? 'get_content_with_prs' : 'get_content',
                    href : this.href
                },
                constraints : {
                    minWidth : 520,
                    minHeight : 360
                },
                animation : true,
                showOverlay : true,
                overlayOpacity : .3,
                overlayClickClose : true,
                useLoaderAnimation : true,
                loaderParams : {
                    animationLength : 60,
                    animationStep : 5
                }
            });
        }
        this._fbox.show();
        return false;
    }

    function _init() {
        var links = $('.prs a[rel=popup]').click(clickHandler);
    }

    _init();
}

