(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(d,c){d.addCommand("mceCite",function(){d.windowManager.open({file:c+"/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:c})});d.addCommand("mceAcronym",function(){d.windowManager.open({file:c+"/acronym.htm",width:350+parseInt(d.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(d.getLang("xhtmlxtras.acronym_delta_height",0)),inline:1},{plugin_url:c})});d.addCommand("mceAbbr",function(){d.windowManager.open({file:c+"/abbr.htm",width:350+parseInt(d.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(d.getLang("xhtmlxtras.abbr_delta_height",0)),inline:1},{plugin_url:c})});d.addCommand("mceDel",function(){d.windowManager.open({file:c+"/del.htm",width:340+parseInt(d.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(d.getLang("xhtmlxtras.del_delta_height",0)),inline:1},{plugin_url:c})});d.addCommand("mceIns",function(){d.windowManager.open({file:c+"/ins.htm",width:340+parseInt(d.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(d.getLang("xhtmlxtras.ins_delta_height",0)),inline:1},{plugin_url:c})});d.addCommand("mceAttributes",function(){d.windowManager.open({file:c+"/attributes.htm",width:380+parseInt(d.getLang("xhtmlxtras.attr_delta_width",0)),height:370+parseInt(d.getLang("xhtmlxtras.attr_delta_height",0)),inline:1},{plugin_url:c})});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"});d.onNodeChange.add(function(g,h,a,b){a=g.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)})();