function ladeeditor(a,b,c,d){if(document.getElementById(a)){a=new FCKeditor(a);a.BasePath="fckeditor/";a.Height=d;a.Width=c;a.ToolbarSet=b;a.ReplaceTextarea()}}var toolbarDisabledState="hide";
function toggleFCKeditor(a){if(!document.all&&a.EditorDocument.designMode.toLowerCase()!="off"||document.all&&a.EditorDocument.body.disabled==false){if(document.all)a.EditorDocument.body.disabled=true;else a.EditorDocument.designMode="off";switch(toolbarDisabledState){case "collapse":a.EditorWindow.parent.FCK.ToolbarSet._ChangeVisibility(true);case "disable":a.EditorWindow.parent.FCK.ToolbarSet.Disable();buttonRefreshStateClone=a.EditorWindow.parent.FCKToolbarButton.prototype.RefreshState;specialComboRefreshStateClone=
a.EditorWindow.parent.FCKToolbarSpecialCombo.prototype.RefreshState;a.EditorWindow.parent.FCKToolbarButton.prototype.RefreshState=function(){return false};a.EditorWindow.parent.FCKToolbarSpecialCombo.prototype.RefreshState=function(){return false};break;case "hide":if(a.EditorWindow.parent.document.getElementById("xExpanded").style.display!="none"){a.EditorWindow.parent.document.getElementById("xExpanded").isHidden=true;a.EditorWindow.parent.document.getElementById("xExpanded").style.display="none"}else a.EditorWindow.parent.document.getElementById("xCollapsed").style.display=
"none";break}}else{if(document.all)a.EditorDocument.body.disabled=false;else a.EditorDocument.designMode="on";switch(toolbarDisabledState){case "collapse":a.EditorWindow.parent.FCK.ToolbarSet._ChangeVisibility(false);case "disable":a.EditorWindow.parent.FCK.ToolbarSet.Enable();a.EditorWindow.parent.FCKToolbarButton.prototype.RefreshState=buttonRefreshStateClone;a.EditorWindow.parent.FCKToolbarSpecialCombo.prototype.RefreshState=specialComboRefreshStateClone;break;case "hide":if(a.EditorWindow.parent.document.getElementById("xExpanded").isHidden==
true){a.EditorWindow.parent.document.getElementById("xExpanded").isHidden=false;a.EditorWindow.parent.document.getElementById("xExpanded").style.display=""}else a.EditorWindow.parent.document.getElementById("xCollapsed").style.display="";break}a.EditorWindow.focus();a.EditorWindow.parent.FCK.ToolbarSet.RefreshModeState()}};
