(function(){function a(b){return b.replace('customfield','___ckeditorfield___');};CKEDITOR.plugins.add('movabletype',{lang:['en','ja'],init:function(b){var c=(function(){var d=document.getElementById('blog-id');if(d)return d.value;else return 0;})();b.addCommand('mt_insert_image',{exec:function(){var d=a(b.element.$.id);jQuery.fn.mtDialog.open(ScriptURI+'?__mode=list_assets&amp;_type=asset&amp;edit_field='+d+'&amp;blog_id='+c+'&amp;dialog_view=1&amp;filter=class&amp;filter_val=image');}});b.addCommand('mt_insert_file',{exec:function(){var d=a(b.element.$.id);jQuery.fn.mtDialog.open(ScriptURI+'?__mode=list_assets&amp;_type=asset&amp;edit_field='+d+'&amp;blog_id='+c+'&amp;dialog_view=1');}});b.ui.addButton('mt_insert_image',{label:b.lang.movabletype.insert_image,command:'mt_insert_image',icon:this.path+'img/insert_image.gif'});b.ui.addButton('mt_insert_file',{label:b.lang.movabletype.insert_file,command:'mt_insert_file',icon:this.path+'img/insert_file.gif'});}});})();
