Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.initializeBase(this,[n]);this._activeMode=Sys.Extended.UI.HtmlEditor.ActiveModeType.Design};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.prototype={get_activeMode:function(){return this._activeMode},set_activeMode:function(n){this._activeMode=n},_onclick:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.callBaseMethod(this,"_onclick"))return!1;var n=this;return setTimeout(function(){n._editPanel.set_activeMode(n._activeMode)},0),!0},onEditPanelActivity:function(){this.setActivity(this._editPanel.get_activeMode()==this._activeMode)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton);