var switchEditors={switchto:function(a){var b=a.id,c=b.length,d=b.substr(0,c-5),e=b.substr(c-4);this.go(d,e)},go:function(a,b){a=a||"content",b=b||"toggle";var c,d,e=this,f=tinyMCE.get(a),g=tinymce.DOM;if(c="wp-"+a+"-wrap",d=g.get(a),"toggle"==b&&(b=f&&!f.isHidden()?"html":"tmce"),"tmce"==b||"tinymce"==b){if(f&&!f.isHidden())return!1;"undefined"!=typeof QTags&&QTags.closeAllTags(a),tinyMCEPreInit.mceInit[a]&&tinyMCEPreInit.mceInit[a].wpautop&&(d.value=e.wpautop(d.value)),f?f.show():(f=new tinymce.Editor(a,tinyMCEPreInit.mceInit[a]),f.render()),g.removeClass(c,"html-active"),g.addClass(c,"tmce-active"),setUserSetting("editor","tinymce")}else if("html"==b){if(f&&f.isHidden())return!1;f?f.hide():(tinyMCEPreInit.mceInit[a]&&tinyMCEPreInit.mceInit[a].wpautop&&(d.value=e.pre_wpautop(d.value)),g.setStyles(d,{display:"",visibility:""})),g.removeClass(c,"tmce-active"),g.addClass(c,"html-active"),setUserSetting("editor","html")}return!1},_wp_Nop:function(a){var b,c,d=!1,e=!1;return(-1!=a.indexOf("
]*>[\s\S]+?<\/\1>/g,function(a){return a=a.replace(/
(\r\n|\n)?/g,""),a.replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"")})),-1!=a.indexOf("[caption")&&(e=!0,a=a.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(a){return a.replace(/
]*)>/g,"").replace(/[\r\n\t]+/,"")})),b="blockquote|ul|ol|li|table|thead|tbody|tfoot|tr|th|td|div|h[1-6]|p|fieldset",a=a.replace(new RegExp("\\s*("+b+")>\\s*","g"),"$1>\n"),a=a.replace(new RegExp("\\s*<((?:"+b+")(?: [^>]*)?)>","g"),"\n<$1>"),a=a.replace(/(]+>.*?)<\/p>/g,"$1
"),a=a.replace(/]*)?>\s*
/gi,"
\n\n"),a=a.replace(/\s*
/gi,""),a=a.replace(/\s*<\/p>\s*/gi,"\n\n"),a=a.replace(/\n[\s\u00a0]+\n/g,"\n\n"),a=a.replace(/\s*
\s*/gi,"\n"),a=a.replace(/\s*
\s*/g,"
\n"),a=a.replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n"),a=a.replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption"),c="blockquote|ul|ol|li|table|thead|tbody|tfoot|tr|th|td|h[1-6]|pre|fieldset",a=a.replace(new RegExp("\\s*<((?:"+c+")(?: [^>]*)?)\\s*>","g"),"\n<$1>"),a=a.replace(new RegExp("\\s*("+c+")>\\s*","g"),"$1>\n"),a=a.replace(/
]*)>/g," "),-1!=a.indexOf("
]*)?>\s*/g,"\n\n
\n\n")),-1!=a.indexOf("