var editor_style_1=new Abstract({style_init:function(){this.mce_handle=this.el;this.addEvent("click",this.status.bind(this));this.addEvent("click",function(b){if(!this.$init){this.mce_handle.setOpacity(1);if(this.inc.doc.body.innerHTML.substr(0,6)=="&nbsp;"){this.inc.doc.body.innerHTML=this.inc.doc.body.innerHTML.slice(6)}var a=this;$ES("img",this.mce_handle).addEvent("click",function(){this.inc.win.focus()}.bind(this));$E(".ft_select",this.mce_handle).addEvent("change",function(d){var c=this.getValue();if(!c){return}if(window.ie&&a.range){a.range.select()}a.set("fontName",c)});$E(".fs_select",this.mce_handle).addEvent("change",function(d){var c=this.getValue();if(!c){return}if(window.ie&&a.range){a.range.select()}a.set("fontSize",c)});$$($E(".fontColorPicker",this.el),$E(".fontBGColorPicker",this.el),$E(".ft_select",this.mce_handle),$E(".fs_select",this.mce_handle)).addEvent("click",function(){this.range=null;if(window.ie&&this.getSelection().type.toLowerCase()!="none"){this.range=this.getRange()}if(!window.ie){this.range=this.getRange()}}.bind(this));new GoogColorPicker($E(".fontColorPicker",this.el),{onSelect:function(d,c,f){if(window.ie&&this.range){this.range.select()}this.set("forecolor",d)}.bind(this),onShow:function(c){if(window.ie&&this.range){this.range.select()}}.bind(this)});new GoogColorPicker($E(".fontBGColorPicker",this.el),{onSelect:function(d,c,f){if(window.ie){if(this.range){this.range.select()}return this.set("backColor",d)}this.set("hilitecolor",d)}.bind(this),onShow:function(c){if(window.ie&&this.range){this.range.select()}}.bind(this)})}this.$init=true}.bind(this));this.styler=$ES(".x-section",this.el);this.stylerEl=$ES(".x-style",this.el);this.align=$ES(".x-align",this.el);this.setting=$ES(".x-enable",this.el)},status:function(c){new Event(c);if(!this.target){this.target=c.target.getElementsByTagName("body")[0]||c.target}var b=this.target.style;if(b["background-color"]=="transparent"){b["background-color"]="#fff"}this.styler.setStyle("background-color",(b["background-color"]=="transparent")?"#fff":b["background-color"]);this.stylerEl.setStyle("color",b.color);var a=this.queryValues("Bold","Italic","Underline","strikeThrough","subscript","superscript","align","CreateLink","FontName","FontSize","ForeColor","FormatBlock","insertOrderedList","insertUnorderedList");if(a.align=="center"){this.align[0].parentNode.className="";this.align[1].parentNode.className="in";this.align[2].parentNode.className=""}else{if(a.align=="right"){this.align[0].parentNode.className="";this.align[1].parentNode.className="";this.align[2].parentNode.className="in"}else{if(a.align=="left"){this.align[0].parentNode.className="in";this.align[1].parentNode.className="";this.align[2].parentNode.className=""}else{this.align[0].parentNode.className="";this.align[1].parentNode.className="";this.align[2].parentNode.className=""}}}this.setting.each(function(d){d.parentNode.className=a[d.getAttribute("value")]?"in":""})},set:function(b,a){if(!this.inc||!this.inc.win){return}if(window.ie){this.inc.win.focus()}this.exec(b,a);try{this.status.call(this)}catch(c){}}});