function init(){SXE.initElementDialog("ins");if(SXE.currentAction=="update"){setFormValue("datetime",tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement,"datetime"));setFormValue("cite",tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement,"cite"));SXE.showRemoveButton()}}function setElementAttribs(b){setAllCommonAttribs(b);setAttrib(b,"datetime");setAttrib(b,"cite")}function insertIns(){var g=tinyMCEPopup.editor.dom.getParent(SXE.focusElement,"INS");tinyMCEPopup.execCommand("mceBeginUndoLevel");if(g==null){var h=SXE.inst.selection.getContent();if(h.length>0){insertInlineElement("INS");var f=tinymce.grep(SXE.inst.dom.select("ins"),function(a){return a.id=="#sxe_temp_ins#"});for(var e=0;e<f.length;e++){var g=f[e];setElementAttribs(g)}}}else{setElementAttribs(g)}tinyMCEPopup.editor.nodeChanged();tinyMCEPopup.execCommand("mceEndUndoLevel");tinyMCEPopup.close()}function removeIns(){SXE.removeElement("ins");tinyMCEPopup.close()}function insertInlineElement(d){var e=tinyMCEPopup.editor,f=e.dom;e.getDoc().execCommand("FontName",false,"mceinline");tinymce.each(f.select(tinymce.isWebKit?"span":"font"),function(a){if(a.style.fontFamily=="mceinline"||a.face=="mceinline"){f.replace(f.create(d),a,1)}})}tinyMCEPopup.onInit.add(init);