!function(){"undefined"!=typeof rwpTinyMCEContent&&(tinymce.PluginManager.add("rwp_reviewer",function(e,n){var t=[];rwpTinyMCEContent.reviews.length>0&&jQuery.each(rwpTinyMCEContent.reviews,function(n,i){t.push({text:i.review_title,value:'[rwp_box id="'+i.review_id+'"]',onclick:function(){e.insertContent(this.value())}})}),rwpTinyMCEContent.tables.length>0&&jQuery.each(rwpTinyMCEContent.tables,function(n,i){t.push({text:i.table_title,value:'[rwp_comparison_table id="'+i.table_id+'"]',onclick:function(){e.insertContent(this.value())}})}),rwpTinyMCEContent.reviews.length<=0&&rwpTinyMCEContent.tables.length<=0&&t.push({text:rwpTinyMCEContent.msg,onclick:function(){}}),e.addButton("rwp_reviewer",{title:"Reviewer | Review Boxes and Comparison Tables",type:"menubutton",menu:t})}),tinymce.PluginManager.add("rwp_reviewer_widget",function(e,n){e.addButton("rwp_reviewer_widget",{title:"Reviewer | Review Boxes List",onclick:function(){var e=jQuery(window).width(),n=jQuery(window).height(),t=720<e?720:e;t-=80,n-=84,tb_show("Reviewer | Review Boxes List","#TB_inline?width="+t+"&height="+n+"&inlineId=rwp-reviews-list-form")}})}))}();