(function(h){var g,f,i,j={};window.focus();g=opener||parent;if(g.mcImageManager){j=g.mcImageManager.windowArgs}if(g.tinyMCE&&(f=g.tinyMCE.activeEditor)){if(f&&(i=f.windowManager)){if(i.params){j=i.params}if(i.setTitle){i.setTitle(window,document.title)}}}if(!h.CurrentWindowManager){h.WindowManager.defaultWin={getArgs:function(){return j},close:function(){if(f&&i.bookmark){f.selection.moveToBookmark(i.bookmark)}if(i){i.close(window)}else{window.close()}}}}})(jQuery);