(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(c,a){c.addCommand("mceCite",function(){c.windowManager.open({file:a+"/cite.htm",width:350+parseInt(c.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(c.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:a})});c.addCommand("mceAcronym",function(){c.windowManager.open({file:a+"/acronym.htm",width:350+parseInt(c.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(c.getLang("xhtmlxtras.acronym_delta_width",0)),inline:1},{plugin_url:a})});c.addCommand("mceAbbr",function(){c.windowManager.open({file:a+"/abbr.htm",width:350+parseInt(c.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(c.getLang("xhtmlxtras.abbr_delta_width",0)),inline:1},{plugin_url:a})});c.addCommand("mceDel",function(){c.windowManager.open({file:a+"/del.htm",width:340+parseInt(c.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(c.getLang("xhtmlxtras.del_delta_width",0)),inline:1},{plugin_url:a})});c.addCommand("mceIns",function(){c.windowManager.open({file:a+"/ins.htm",width:340+parseInt(c.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(c.getLang("xhtmlxtras.ins_delta_width",0)),inline:1},{plugin_url:a})});c.addCommand("mceAttributes",function(){c.windowManager.open({file:a+"/attributes.htm",width:380,height:370,inline:1},{plugin_url:a})});c.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});c.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});c.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});c.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});c.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});c.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});if(tinymce.isIE){function b(d,e){if(e.set){e.content=e.content.replace(/<abbr([^>]+)>/gi,"<html:abbr $1>");e.content=e.content.replace(/<\/abbr>/gi,"</html:abbr>")}}c.onBeforeSetContent.add(b);c.onPostProcess.add(b)}c.onNodeChange.add(function(g,f,e,d){e=g.dom.getParent(e,"CITE,ACRONYM,ABBR,DEL,INS");f.setDisabled("cite",d);f.setDisabled("acronym",d);f.setDisabled("abbr",d);f.setDisabled("del",d);f.setDisabled("ins",d);f.setDisabled("attribs",e&&e.nodeName=="BODY");f.setActive("cite",0);f.setActive("acronym",0);f.setActive("abbr",0);f.setActive("del",0);f.setActive("ins",0);if(e){do{f.setDisabled(e.nodeName.toLowerCase(),0);f.setActive(e.nodeName.toLowerCase(),1)}while(e=e.parentNode)}});c.onPreInit.add(function(){c.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)})();