(function(){tinymce.create("tinymce.plugins.Preview",{init:function(c,d){var b=this,a=tinymce.explode(c.settings.content_css);b.editor=c;tinymce.each(a,function(f,e){a[e]=c.documentBaseURI.toAbsolute(f)});c.addCommand("mcePreview",function(){c.windowManager.open({file:c.getParam("plugin_preview_pageurl",d+"/preview.html"),width:parseInt(c.getParam("plugin_preview_width","550")),height:parseInt(c.getParam("plugin_preview_height","600")),resizable:"yes",scrollbars:"yes",popup_css:a?a.join(","):c.baseURI.toAbsolute("themes/"+c.settings.theme+"/skins/"+c.settings.skin+"/content.css"),inline:c.getParam("plugin_preview_inline",1)},{base:c.documentBaseURI.getURI()})});c.addButton("preview",{title:"preview.preview_desc",cmd:"mcePreview"})},getInfo:function(){return{longname:"Preview",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("preview",tinymce.plugins.Preview)})();