(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(d,f){d.addCommand("mceCite",function(){d.windowManager.open({file:f+"/cite.htm",width:350+parseInt(d.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(d.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:f})});d.addCommand("mceAcronym",function(){d.windowManager.open({file:f+"/acronym.htm",width:350+parseInt(d.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(d.getLang("xhtmlxtras.acronym_delta_width",0)),inline:1},{plugin_url:f})});d.addCommand("mceAbbr",function(){d.windowManager.open({file:f+"/abbr.htm",width:350+parseInt(d.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(d.getLang("xhtmlxtras.abbr_delta_width",0)),inline:1},{plugin_url:f})});d.addCommand("mceDel",function(){d.windowManager.open({file:f+"/del.htm",width:340+parseInt(d.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(d.getLang("xhtmlxtras.del_delta_width",0)),inline:1},{plugin_url:f})});d.addCommand("mceIns",function(){d.windowManager.open({file:f+"/ins.htm",width:340+parseInt(d.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(d.getLang("xhtmlxtras.ins_delta_width",0)),inline:1},{plugin_url:f})});d.addCommand("mceAttributes",function(){d.windowManager.open({file:f+"/attributes.htm",width:380,height:370,inline:1},{plugin_url:f})});d.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});d.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});d.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});d.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});d.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});d.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});if(tinymce.isIE){function e(b,a){if(a.set){a.content=a.content.replace(/<abbr([^>]+)>/gi,"<html:abbr $1>");a.content=a.content.replace(/<\/abbr>/gi,"</html:abbr>")}}d.onBeforeSetContent.add(e);d.onPostProcess.add(e)}d.onNodeChange.add(function(c,h,a,b){a=c.dom.getParent(a,"CITE,ACRONYM,ABBR,DEL,INS");h.setDisabled("cite",b);h.setDisabled("acronym",b);h.setDisabled("abbr",b);h.setDisabled("del",b);h.setDisabled("ins",b);h.setDisabled("attribs",a&&a.nodeName=="BODY");h.setActive("cite",0);h.setActive("acronym",0);h.setActive("abbr",0);h.setActive("del",0);h.setActive("ins",0);if(a){do{h.setDisabled(a.nodeName.toLowerCase(),0);h.setActive(a.nodeName.toLowerCase(),1)}while(a=a.parentNode)}});d.onPreInit.add(function(){d.dom.create("abbr")})},getInfo:function(){return{longname:"XHTML Xtras Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("xhtmlxtras",tinymce.plugins.XHTMLXtrasPlugin)})();