var tinymce=null,tinyMCEPopup,tinyMCE;tinyMCEPopup={init:function(){var d=this,e,f;e=d.getWin();tinymce=e.tinymce;tinyMCE=e.tinyMCE;d.editor=tinymce.EditorManager.activeEditor;d.params=d.editor.windowManager.params;d.features=d.editor.windowManager.features;d.dom=d.editor.windowManager.createInstance("tinymce.dom.DOMUtils",document);if(d.features.popup_css!==false){d.dom.loadCSS(d.features.popup_css||d.editor.settings.popup_css)}d.listeners=[];d.onInit={add:function(a,b){d.listeners.push({func:a,scope:b})}};d.isWindow=!d.getWindowArg("mce_inline");d.id=d.getWindowArg("mce_window_id");d.editor.windowManager.onOpen.dispatch(d.editor.windowManager,window)},getWin:function(){return(!window.frameElement&&window.dialogArguments)||opener||parent||top},getWindowArg:function(f,d){var e=this.params[f];return tinymce.is(e)?e:d},getParam:function(c,d){return this.editor.getParam(c,d)},getLang:function(c,d){return this.editor.getLang(c,d)},execCommand:function(g,h,f,a){a=a||{};a.skip_focus=1;this.restoreSelection();return this.editor.execCommand(g,h,f,a)},resizeToInnerSize:function(){var j=this,h,b=document.body,l=j.dom.getViewPort(window),k,i;k=j.getWindowArg("mce_width")-l.w;i=j.getWindowArg("mce_height")-l.h;if(j.isWindow){window.resizeBy(k,i)}else{j.editor.windowManager.resizeBy(k,i,j.id)}},executeOnLoad:function(s){this.onInit.add(function(){eval(s)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var b=tinyMCEPopup;if(!b.isWindow&&tinymce.isIE){b.editor.selection.moveToBookmark(b.editor.windowManager.bookmark)}},requireLangPack:function(){var c=this,d=c.getWindowArg("plugin_url")||c.getWindowArg("theme_url");if(d&&c.editor.settings.language&&c.features.translate_i18n!==false){d+="/langs/"+c.editor.settings.language+"_dlg.js";if(!tinymce.ScriptLoader.isDone(d)){document.write('