if (typeof HTMLEditor!="function")HTMLEditor= function (O,o,Y,I,A,e,U){if (typeof HTMLEditor.Z!="function")HTMLEditor.z(null, true); var X=this ; this.W=Y.replace(/(.+)_editPanel/i,"$1");this.O=O; this._textArea=(typeof Y=="string")?(document.getElementById(Y)):Y; if (o!=null){try {o.UnlinkEditorOject(); }catch (w){} ; var V=0; if (o.v!=null && typeof o.v.pop=="function"){while (o.v.length>0){var T=o.v.pop(); if (typeof T[0]=="function"){try {clearTimeout(T[1]); }catch (t){}V++; }}o.v=null; }}if (o!=null && (typeof o!="undefined") && o!="undefined" && !HTMLEditor.S() && o._textArea==this._textArea && this._textArea!=null){}HTMLEditor.R(this ); if (this._textArea==null){if (HTMLEditor.S())return this ; else {setTimeout( function (){eval(" try{if(typeof "+X.W+"_start != 'undefined') "+X.W+"_start();}catch(e){}"); } ,0144); return this ; }}if (HTMLEditor.r()){ this.Q=U; this.P=e; this.scriptVersion=e[0]; this.defaultTable=new Object(); this.main_alerts=[]; this.popup_headers=[]; this._NoDrop= false; this._NoPaste= false; this.N=null; this.n=null; this.M=null; this.showAnchors= true; this.showPlaceHolders= true; this._AjaxWait= true; this.rtlSet= false; this.isWord= false; this._pleaseWait= true; this._validationGroup=""; this._causesValidation= true; this.m= false; this.scrollIntoView= true; this.L=null; this.relativeImages= false; this._hotkeys=null; this._addCssFiles=null; this._autoFocus= true; this._wasFocused= false; this.l= true; this.K=null; this.keyboardEnabled= true; this.clientValidation= false; this.predicatedTags= false; this.onLoadingStart=null; this.onLoadingEnd=null; this.k=0; this.J= false; this.j=0; this.H= false; this.h= false; this.G=null; this.g=null; this.F=null; this.f= true; this.D=null; this.d=null; this.C=null; this.c=null; this.B=null; this.fullHTML= false; this.defaultStyles=""; this.suppressTab= false; this.ignoreTab= false; this.AjaxCurrentContent= true; this.NoScript= false; this.InitialCleanUp= false; this.NoUnicode= true; this.o0= false; this.O0= false; this.ClientCancel=null; this.l0=(document.getElementById("propertiesScript_"+this.W)!=null); this.onDrop=null; this._remainLf= false; this.onClientContentChanged=null; this.i0=null; this.I0= true; this.captureInDesign=null; this.dfltBlockElement="P"; this.ShowQuickFormatDivId=null; this._hiddenContent=null; this._hiddenCSS=null; if ((typeof I=="undefined") || I==null)this.I=new HTMLEditor.o1(); else this.I=I; if ((typeof A=="undefined") || A==null)this.A=document.body; else this.A=A; this.O1=window; this.l1=null; this.i1="html"; this.I1=null; this.o2=null; this._CSSfile=""; this._StartEnd= false; this.HTMLEditor=HTMLEditor; this._ContextMenu=[["#contenteditable#",HTMLEditor.O2,"Make editable", false , true ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.l2,"Flash properties", false , true ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.i2,"Copy Flash", false , false ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.I2,"Cut Flash", false , false ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.o3,"Delete Flash", false , true ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.O3,"Media properties", false , true ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.i2,"Copy Media", false , false ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.I2,"Cut Media", false , false ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.o3,"Delete Media", false , true ,"inner", false],["INPUT",HTMLEditor.l3,"INPUT properties", false , true ,"inner", false],["INPUT",HTMLEditor.o3,"Delete INPUT", false , true ,"inner", false],["PLACEHOLDER",HTMLEditor.i3,"PlaceHolder properties", false , true ,"inner", false],["PLACEHOLDER",HTMLEditor.o3,"Delete PlaceHolder", false , true ,"inner", false],["IMG",HTMLEditor.I3,"Image properties", false , true ,"inner", false],["IMG",HTMLEditor.i2,"Copy Image", false , false ,"inner", false],["IMG",HTMLEditor.I2,"Cut Image", false , false ,"inner", false],["IMG",HTMLEditor.o3,"Delete Image", false , true ,"inner", false],["DIV",HTMLEditor.o4,"DIV properties", false , true ,"inner", false],["DIV",HTMLEditor.o3,"Remove DIV", false , true ,"inner", false],["DIV",HTMLEditor.O4,"Remove DIV tag", false , true ,"inner", false],["A href",HTMLEditor.l4,"URL Link properties", false , true ,"inner", false],["A href",HTMLEditor.O4,"Remove URL Link", false , true ,"inner", false],["A name",HTMLEditor.i4,"Anchor properties", false , true ,"inner", false],["A name",HTMLEditor.o3,"Delete Anchor", false , true ,"inner", false],["TD",HTMLEditor.I4,"Cell properties", false , true ,"inner", false],["TABLE",HTMLEditor.o5,"Table properties", false , true ,"inner", false],["TABLE",HTMLEditor.i2,"Copy Table", false , false ,"inner", false],["TABLE",HTMLEditor.I2,"Cut Table", false , false ,"inner", false],["TABLE",HTMLEditor.o3,"Delete Table", false , true ,"inner", false],["FORM",HTMLEditor.O5,"Form properties", false , true ,"inner", false],["FORM",HTMLEditor.o3,"Remove FORM", false , true ,"inner", false],["FORM",HTMLEditor.O4,"Remove FORM tag", false , true ,"inner", false],["BODY",HTMLEditor.l5,"Cut", false , false ,HTMLEditor.i5, false],["BODY",HTMLEditor.I5,"Copy", false , false ,HTMLEditor.i5, false],["BODY",HTMLEditor.o6,"Paste", false , false ,HTMLEditor.O6, false],["BODY",HTMLEditor.l6,"Paste Plain Text", false , true ,HTMLEditor.i6, false],["BODY",HTMLEditor.I6,"Delete", false , true ,HTMLEditor.i5, false],["BODY",null,"", false , true ,"inner", false],["BODY",HTMLEditor.o7,"Select All", false , true ,"inner", false]]; try {var O7="?"+document.getElementsByName("OboutEditorVersion")[0].value; this.O7=O7; var l7=document.getElementsByName("FolderScript")[0].value; var i7=document.getElementsByName("FolderScriptSession")[0].value; this.I7=document.getElementsByName("FolderStyle")[0].value; this.o8=document.getElementsByName("FolderIcon")[0].value; this._FolderScript=l7; this.O8=i7; this.l8=null; this._tableProperties=e[1]; this._cellProperties=e[2]; this._imageProperties=e[3]; this._flashProperties=e[4]; this._mediaProperties=e[5]; this._bgImageProperties=e[6]; this._mozPastePlain=e[7]; this._selectColor=e[8]; this._clearStyles=e[011]; this._urlProperties=e[012]; this._insertIcon=e[013]; this._insertAnchor=e[014]; this._insertPlaceHolder=e[015]; this._insertSpec=e[016]; this._imageBrows=e[017]; this._flashBrows=e[020]; this._mediaBrows=e[021]; this._urlBrows=e[022]; this._spellCheck=e[023]; this._customPopup=e[024]; var X=this ; HTMLEditor._CUROBJ_=X; HTMLEditor.i8=0; this.I8=null; if (HTMLEditor.o9(".HE_editPanel"))this.I8= {O9: this._textArea.offsetWidth,l9: this._textArea.offsetHeight } ; this.l1=null; }catch (t){alert("Init : "+t.message); }}else { this.scriptVersion="notsupported"; }} ; HTMLEditor.i9=[]; HTMLEditor.I9= function (X){ this.X=X; this.id=X.W; this.O=X.O; this.oa= false; this.Oa= true; this.la=null; } ; HTMLEditor.ia= function (O){for (var i=0; i<HTMLEditor.i9.length; i++){if (O==HTMLEditor.i9[i].O){return HTMLEditor.i9[i].X; }}return null; };HTMLEditor.Ia= function (clientID){for (var i=0; i<HTMLEditor.i9.length; i++){if (clientID==HTMLEditor.i9[i].id){return HTMLEditor.i9[i].X; }}return null; };function oboutGetEditor(ob){return HTMLEditor.ia(ob); }function oboutGetEditorByClientId(ob){return HTMLEditor.Ia(ob); }HTMLEditor.Ob= function (id){for (var i=0; i<HTMLEditor.i9.length; i++){if (id==HTMLEditor.i9[i].id){return HTMLEditor.i9[i].X; }}return null; };HTMLEditor.R= function (X){var id=X.W; var index=-1; for (var i=0; i<HTMLEditor.i9.length; i++){if (id==HTMLEditor.i9[i].id){if (HTMLEditor.S()){if (typeof X.lb=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.lb); X.lb=null; }}index=i; break; }}if (index>=0)HTMLEditor.i9[index]=new HTMLEditor.I9(X); else HTMLEditor.i9.push(new HTMLEditor.I9(X)); if (HTMLEditor.S()){X.lb= function (ib,Ib){try {if (X._AjaxWait){X.UnlinkEditorOject(); X.oc(); }}catch (t){}} ; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(X.lb); }};HTMLEditor.Oc= function (X){var id=X.W; var index= false; var lc=[]; for (var i=0; i<HTMLEditor.i9.length; i++){if (id!=HTMLEditor.i9[i].id){lc.push(HTMLEditor.i9[i]); }}HTMLEditor.i9=lc; };HTMLEditor.prototype.ic= function (){HTMLEditor.R(this ); };HTMLEditor.prototype.UnlinkEditorOject= function (){var X=this ; if (typeof X.g=="function"){if (document.getElementById(this.mainDivId)==null)return; var Ic=document.getElementById(this.mainDivId).parentNode; while (Ic && Ic.tagName && Ic.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.od(Ic,"propertychange",HTMLEditor.Od); Ic.ld=null; HTMLEditor.Id(Ic); }else {Ic.ld=null; HTMLEditor.Id(Ic); }Ic=Ic.parentNode; }X.J= false; }try {X.clearPopups( true); }catch (w){}try {if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; }}catch (w){}};HTMLEditor.S= function (){if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined"))return true; return false; };HTMLEditor.prototype.getScriptById= function (name){var ie=document.getElementById(name); if (ie==null){var cell=document.getElementById(this.mainDivId).firstChild.rows.item(0).cells.item(0); for (var i=0; i<cell.childNodes.length; i++){var item=cell.childNodes.item(i); if (item.tagName && item.tagName.toUpperCase()=="SCRIPT"){ie=item; break; }}}if (ie!=null){var text=ie.text; if (typeof text=="undefined" || text=="")text=ie.innerHTML; var Ie="try{null}catch(ex){}"; var of=text.indexOf(Ie); var Of=text.lastIndexOf(Ie); if (of>=0 && Of>=0){text=text.substring(of+Ie.length,Of); ie=new Object(); ie.text=text; }}return ie; };HTMLEditor.prototype.If= function (name,og){for (var i=0; i<this.main_alerts.length; i++){if (name.toLowerCase()==this.main_alerts[i].name.toLowerCase())return this.main_alerts[i].message; }return og; };HTMLEditor.prototype.Og= function (name,og){for (var i=0; i<this.popup_headers.length; i++){if (name.toLowerCase()==this.popup_headers[i].name.toLowerCase())return this.popup_headers[i].title; }return og; };HTMLEditor.prototype.lg= function (name,og){for (var i=0; i<this.popup_headers.length; i++){if (name.toLowerCase()==this.popup_headers[i].name.toLowerCase())return this.popup_headers[i].message; }return og; };HTMLEditor.prototype._context_menu_loc= function (ig){for (var i=0; i<this._ContextMenu.length; i++){var Ig=this._ContextMenu[i]; var oh=Ig[2].toLowerCase().replace(/\s/g,"-"); for (var Oh=0; Oh<ig.length; Oh++){var lh=ig[Oh]; var ih=lh[0].toLowerCase(); if (oh==ih){Ig[2]=lh[1]; break; }}}};HTMLEditor.prototype.RemoveContextMenuItem= function (Ih){var oi=Ih.toLowerCase(); for (var i=0; i<this._ContextMenu.length; i++){var Ig=this._ContextMenu[i]; var oh=Ig[2].toLowerCase().replace(/\s/g,"_"); if (oh==oi){Ig[6]= true; break; }}};HTMLEditor._CUROBJ_=null; HTMLEditor.restoreOldTags=null; HTMLEditor.oe=null; HTMLEditor.i8=0; HTMLEditor.prototype.Oi= function (ii){if (this.k==0 && typeof this.onLoadingStart=="function")this.onLoadingStart((typeof ii=="string")?ii: "popup"); this.k++; };HTMLEditor.prototype.Ii= function (ii){if (this.k>0){ this.k--; if (this.k==0 && typeof this.onLoadingEnd=="function")this.onLoadingEnd((typeof ii=="string")?ii: "popup"); }};HTMLEditor.prototype.oj= function (name){var ig=[]; var X=this ; var Oj; for (var i=1; i<arguments.length; i++)ig.push(arguments[i]); function lj(){X[name].apply(X,ig); }function ij(Ij){try {lj(); }catch (t){alert(t.message+"- Script loading failed..."); }if (!HTMLEditor.ok && !HTMLEditor.is_ie)setTimeout( function (){try {if (HTMLEditor.Ok)HTMLEditor.od(Oj,"load",ij); document.body.removeChild(Oj); }catch (t){alert("Late loaded function ("+name+"): "+t.message); }} ,5); HTMLEditor.i8--; if (HTMLEditor.i8==0)HTMLEditor._CUROBJ_=null; X.Ii("script"); }try {lj(); }catch (t){if (typeof X[name]=="string"){function lk(){if (HTMLEditor._CUROBJ_!=null)setTimeout(lk,0144); HTMLEditor._CUROBJ_=X; HTMLEditor.i8=0; var ob=X[name]; X[name]=null; X.Oi("script"); if (HTMLEditor.is_Safari && !HTMLEditor.Ok){var ik=document.getElementById(X._hiddenContent+"_ifr_"+name); if (ik!=null){HTMLEditor.od(ik,"load",ij); document.body.removeChild(ik); }Oj=document.createElement("IFRAME"); Oj.style.width="0px"; Oj.style.height="0px"; Oj.id=X._hiddenContent+"_ifr_"+name; HTMLEditor.Ik(Oj,"load",ij); document.body.appendChild(Oj); ik=document.getElementById(X._hiddenContent+"_ifr_"+name); ik.src=ob; }else {Oj=document.createElement("IFRAME"); Oj.width="0"; Oj.height="0"; Oj.style.display="none"; if (HTMLEditor.is_Safari){Oj.name=X._hiddenContent+"_ifr_"+name; }HTMLEditor.Ik(Oj,"load",ij); Oj.src=ob; document.body.appendChild(Oj); }HTMLEditor.i8++; }lk(); }}};HTMLEditor.prototype.ll= function (Ij){var il=Ij.target; var Il=il.tagName.toUpperCase(); if (!this.mainDivVisible)return true; if (Il=="INPUT" || Il=="TEXTAREA")return true; if (Ij.keyCode==8){HTMLEditor._stopEvent(Ij); return false; }var X=this ; setTimeout( function (){if (X.I1.body.offsetWidth==0 && X.mode()=="html" && X.mainDivVisible && X._iframe){X._textArea.value=X.getHTML(); var om=X._textArea.parentNode.removeChild(X.l1); X.l1=null; delete om; X.activate(); }} ,024); };HTMLEditor.Om="OboutMSIEparagraph"; HTMLEditor.prototype.Im= function (on){if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (this.j>0){try { this.On(); }catch (t){} ; return true; }else this.j=1; if (HTMLEditor.S()){if (!this.AjaxCurrentContent && !this.O0){if (this._hiddenContent){try {var In="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(In) && document.getElementsByName(In).length && document.getElementsByName(In).length>0){document.getElementsByName(In)[0].value=""; }}catch (t){}}document.getElementsByName(this.content_submitted_name)[0].value=""; document.getElementsByName(this.content_canceled_name)[0].value=""; return true; } this.O0= false; }if (!X.h){var oo=null;if (this._hiddenContent){try {var In="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(In) && document.getElementsByName(In).length && document.getElementsByName(In).length>0){document.getElementsByName(In)[0].value=this.ContentChanged()?"1": ""; }}catch (t){} this.UnlinkEditorOject(); var Oo=this._formSubmit(); var Io=Oo[0]; oo=Oo[1]; if (this._textArea.form){document.getElementsByName(this._hiddenContent)[0].value=Io; }}if (this._hiddenCSS){document.getElementsByName(this._hiddenCSS)[0].value=this._CSSfile; }X.setOriginal(oo); }else {if (this._hiddenContent){try {var In="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(In) && document.getElementsByName(In).length && document.getElementsByName(In).length>0){document.getElementsByName(In)[0].value=""; }}catch (t){}}}document.getElementsByName(this.content_submitted_name)[0].value=X.H?"1": ""; X.H= false; document.getElementsByName(this.content_canceled_name)[0].value=X.h?"1": ""; X.h= false; if (!this.op && this.mainDivVisible)return false; try { this.On(); }catch (t){} ; if (!this._textArea.form){try { this.On(); }catch (t){} ; return true; }if (typeof on!="undefined" && on== true){ this._textArea.form.submit(); }return true; };HTMLEditor.prototype.__cancel= function (){var X=this ; var ie= true; if (typeof this.ClientCancel=="function"){ie= false; var Op=this.ClientCancel; try {ie=Op(this ); }catch (t){alert("ClientCancel function call error: "+t.message); }}if (ie)if (this.content_canceled_event){X.j=0; var lp= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){lp=Page_ClientValidate(X._validationGroup); }else {lp=Page_ClientValidate(); }}}catch (w){}}if (lp){X.h= true; X.openWait(); var ip= false; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){try {var Ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (Ip._updatePanelIDs && Ip._updatePanelIDs.length && Ip._updatePanelIDs.length>0)ip= true; }catch (w){}}if (ip){setTimeout( function (){var Ip=window.Sys.WebForms.PageRequestManager.getInstance(); var form=Ip._form; Ip._postBackSettings=Ip._createPostBackSettings( true ,null,null); Ip._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.O0= true; Ip._onFormSubmit(); Function._validateParams=save; try {X.On(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Im( true); } ,0); }}}};HTMLEditor.prototype.__submit= function (on){ this.oq= true; if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X,on))return false; }X.j=0; if (typeof on!="undefined"){var lp= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){lp=Page_ClientValidate(X._validationGroup); }else {lp=Page_ClientValidate(); }}}catch (w){}}if (lp){X.H= true; X.openWait(); var ip= false; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){try {var Ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (Ip._updatePanelIDs && Ip._updatePanelIDs.length && Ip._updatePanelIDs.length>0)ip= true; }catch (w){}}if (ip){setTimeout( function (){var Ip=window.Sys.WebForms.PageRequestManager.getInstance(); var form=Ip._form; Ip._postBackSettings=Ip._createPostBackSettings( true ,null,null); Ip._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.O0= true; Ip._onFormSubmit(); Function._validateParams=save; try {X.On(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Im(on); } ,0); }}}else {X.Im(on); }return true; };HTMLEditor.prototype.submit= function (Oq){var X=this ; var lp= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){lp=Page_ClientValidate(X._validationGroup); }else {lp=Page_ClientValidate(); }}}catch (w){}}if (lp){X.openWait(); setTimeout( function (){X.Im(typeof Oq!="function"); if (typeof Oq=="function")Oq(); } ,0); }};HTMLEditor.getSelParent= function (X){var lq=X.iq(); var Iq=X.or(lq); var parent=null; if (HTMLEditor.is_ie){if (lq.type.toLowerCase()=="control")parent=Iq.item(0); else parent=X.Or(Iq); }else {parent=X.Or(Iq); if (parent.nodeType!=3 && Iq.startContainer==Iq.endContainer){var p=parent; parent=parent.childNodes.item(Iq.startOffset); if (parent==null)parent=p; }}return parent; };HTMLEditor.isControl= function (il){var lr=" legend fieldset "; return (lr.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.prototype.ir= function (){var il=HTMLEditor.getSelParent(this ); while (il && il.tagName && il.tagName.toUpperCase()!="BODY"){if (HTMLEditor.isControl(il)){return true; }il=il.parentNode; }return false; };HTMLEditor.prototype.isControl= function (){try {var lq=this.iq(); if (HTMLEditor.is_ie){if (lq.type.toLowerCase()=="control")return true; else return false; }else {var Iq=this.or(lq); var parent=this.Or(Iq); if (parent.nodeType!=3 && Iq.startContainer==Iq.endContainer){if (!parent.tagName)return false; if (Iq.startContainer.childNodes.item(Iq.startOffset)==null)return false; if (Iq.startOffset==Iq.endOffset && Iq.startContainer.childNodes.item(Iq.startOffset).tagName && Iq.startContainer.childNodes.item(Iq.startOffset).tagName.toUpperCase()=="BR")return false; if (parent.tagName.toUpperCase()=="BODY" && Iq.startOffset==0 && Iq.endOffset>0 && Iq.endOffset==parent.childNodes.length)return false; if (Iq.startOffset==Iq.endOffset && Iq.startContainer.childNodes.item(Iq.startOffset).nodeType==3){return false; }return true; }else return false; }}catch (t){return true; }};HTMLEditor.prototype.Ir=0; HTMLEditor.prototype.os= false; HTMLEditor.prototype.op= false; HTMLEditor.prototype.Os= false; HTMLEditor.prototype.ls= false; HTMLEditor.prototype.is= false; HTMLEditor.prototype.isActivated= false; HTMLEditor.prototype.Is= false; HTMLEditor.ot="obout-no-contextmenu"; HTMLEditor.prototype.noContextMenuAttributeName= function (){return HTMLEditor.ot; };HTMLEditor.Ot="obout-attached-id"; HTMLEditor.prototype.attachedIdAttributeName= function (){return HTMLEditor.Ot; };HTMLEditor.prototype.lt= function (il){var it=null; if (il.getAttribute(HTMLEditor.Ot) && il.getAttribute(HTMLEditor.Ot).length>0){var par=il.parentNode; while (par && par.tagName.toUpperCase()!="BODY"){if (par.tagName.toUpperCase()=="TABLE"){it=par; break; }par=par.parentNode; }}return it; };HTMLEditor.prototype.It= function (){if (document.getElementById(this.mainDivId)==null)return false; var Ic=document.getElementById(this.mainDivId).parentNode; var ou= true; while (Ic){if (Ic.style && Ic.style.display=="none"){ou= false; break; }Ic=Ic.parentNode; }return ou; };HTMLEditor.prototype.v=null; HTMLEditor.prototype.setTimeout= function (Op,Ou){if (this.v!=null){try {var X=this ; var id=window.setTimeout( function (){Op( true);} ,Ou); X.v.push([Op,id]); }catch (t){alert("setTimeout: "+t.message);}}else {window.setTimeout(Op,Ou); }};HTMLEditor.prototype.lu= function (){var X=this ; if (this.v)for (var i=0; i<this.v.length; i++){if (typeof this.v[i][0]=="function" && this.v[i][0]==X.lu.caller){ this.v[i][0]="none"; break; }}if (!this.It() || !this.mainDivVisible){try { this.On(); }catch (t){} ; this.i1="undef"; return true; }return false; };HTMLEditor.prototype.activate= function (iu){if (!this.ls){if (typeof EditorBeforeActivate=="function"){ this.ls= true; try {EditorBeforeActivate(this ); }catch (w){setTimeout( function (){alert("EditorBeforeActivate exception: "+w.message); } ,0); }}}var X=this ; var Ic=document.getElementById(this.mainDivId).parentNode; var ou= true; X.v=null; this.M=null; if (this.Iu && HTMLEditor.S()){}if (!HTMLEditor.is_Safari)if (!X.J){X.J= true; if ( true){X.g= function (event){if (!X.J){if (HTMLEditor.is_ie){HTMLEditor.od(event.srcElement,"propertychange",HTMLEditor.Od); event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }else {event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }return true; }var Ic=X._textArea; while (Ic!=null){if (Ic.nodeType!=1)break; if (Ic.tagName.toUpperCase()=="BODY")break; Ic=Ic.parentNode; }if (Ic==null || Ic.nodeType!=1){if (HTMLEditor.is_ie){HTMLEditor.od(event.srcElement,"propertychange",HTMLEditor.Od); event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }else {event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }X.J= false; return true; }if (X._textArea.form==null){setTimeout( function (){eval(X.W+"_start()"); } ,0); if (HTMLEditor.is_ie){HTMLEditor.od(event.srcElement,"propertychange",HTMLEditor.Od); event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }else {event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }X.J= false; try {var In="content_changed_"+X.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(In) && document.getElementsByName(In).length && document.getElementsByName(In).length>0){document.getElementsByName(In)[0].value=X.ContentChanged()?"1": ""; }}catch (t){}var Io=X._formSubmit()[0]; document.getElementsByName(X._hiddenContent)[0].value=Io; return true; }if (event.propertyName=="style.display"){var ov=document.getElementById(X.mainDivId).parentNode; while (ov && ov.tagName && ov.tagName.toUpperCase()!="BODY" && event.srcElement!=ov){ov=ov.parentNode; }if (event.srcElement==ov){X.Ov=null; if (event.srcElement.style.display=="none"){if (X.mainDivVisible){X.Ov= false; }}else {if (X.It() && !X.mainDivVisible){X.Ov= true; }}if (X._isCallBackPanel){try {X.clearPopups( true); }catch (w){}try {if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; }}catch (w){}if (HTMLEditor.is_ie){HTMLEditor.od(event.srcElement,"propertychange",HTMLEditor.Od); event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }else {event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }X.J= false; }else setTimeout( function (){if (X.Ov!=null){var Ic=X._textArea; while (Ic!=null){if (Ic.nodeType!=1)break; if (Ic.tagName.toUpperCase()=="BODY")break; Ic=Ic.parentNode; }if (Ic.nodeType==1)try {X.setVisibility(X.Ov); }catch (w){}}X.Ov=null; } ,024); }}} ; X.Ov=null; while (Ic && Ic.tagName && Ic.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.Ik(Ic,"propertychange",HTMLEditor.Od); }X.ld=Ic.ld; Ic.ld= function (Ij){if (X.ld!=null && typeof X.ld=="function")X.ld(Ij); X.g(Ij); };Ic.lv=Ic.style.display; HTMLEditor.iv.push(Ic); Ic=Ic.parentNode; }}else {}}HTMLEditor._CUROBJ_=null; if (this.Iu && !HTMLEditor.S()){ this.On(); this._textArea.style.display="none"; this.Iu= false; if (HTMLEditor.is_ie){if (this.i1=="html"){ this._iframe.style.visibility="hidden"; this._iframe.style.visibility="visible"; this.focusEditor(); }else if (this.i1=="preview"){ this.Iv.style.visibility="hidden"; this.Iv.style.visibility="visible"; }}if (!X.is){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.ow([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var ie= false; try {ie=Ow(HTMLEditor.is_ie?X.O1.event:event); }catch (t){}return ie; } ); X.is= true; }}return; } this.op= false; this.os= true; this.isActivated= false; this._wasFocused= false; if (!X.is){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.ow([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var ie= false; try {ie=Ow(HTMLEditor.is_ie?X.O1.event:event); }catch (t){}return ie; } ); X.is= true; }}if (!X.Os){if (!HTMLEditor.is_ie){ this.lw=this.updateToolbar; this.updateToolbar= function (){try { this.lw(); }catch (t){return; }} ; }}if (X.It() && !this.mainDivVisible && document.getElementById(this.mainDivId).style.display!="none"){ this.mainDivVisible= true; if (typeof this._setRealSize=="function")this._setRealSize(); if (this._textArea.offsetWidth>0 && this._textArea.offsetHeight>0)this.I8= {O9: this._textArea.offsetWidth,l9: this._textArea.offsetHeight } ; }if (!X.It() || !this.mainDivVisible){ this.On(); this.i1="text"; this.mainDivVisible= false; if (!this.Os){ this.Os= true; if (typeof EditorOnLoad=="function")setTimeout( function (){EditorOnLoad(X); } ,0); }if (HTMLEditor.is_Safari)setTimeout( function (){try {X.mainDivVisible= true; eval(X.W+"_start()"); }catch (t){}} ,0764); return; }HTMLEditor.iw(window,document.getElementById(this.mainDivId)); function Ow(Ij){if (Ij){if (X.isPopup()){HTMLEditor._stopEvent(Ij); return false; }}return true; }X.v=[]; try { this.Iw(); }catch (t){alert("activate: "+t.message); }function ox(Ox){if (X.lu(Ox))return; var lx; try {lx=X._iframe.contentWindow.document; }catch (t){X.setTimeout(ox,012); return false; }try {if (!HTMLEditor.is_ie)X.I1.queryCommandValue("forecolor"); if (!lx || !lx.body || !X.I1 || !X.I1.body){X.setTimeout(ox,012); return false; }}catch (t){if (!HTMLEditor.is_ie){X.setTimeout(ox,012); }return false; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){if (X.ShowQuickFormatDivId!=null){X.ix=document.getElementById(X.ShowQuickFormatDivId).offsetWidth; X.Ix=document.getElementById(X.ShowQuickFormatDivId).offsetHeight; }else {X.ix=0; X.Ix=0; }X.oy=document.getElementById(X.panelDivId).offsetWidth; }if (!HTMLEditor.is_ie){function Oy(il){for (var i=0; i<il.childNodes.length; i++){if (il.childNodes.item(i).nodeType==1){if (il.childNodes.item(i).tagName.toUpperCase()=="SCRIPT"){il.childNodes.item(i).innerHTML=il.childNodes.item(i).innerHTML.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }else Oy(il.childNodes.item(i)); }}}Oy(X.I1.body); }if (HTMLEditor.is_ie)HTMLEditor.ly(X.I1.body,X.I1); HTMLEditor.iy(X,X.I1,!X.showAnchors); HTMLEditor.Iy(X,X.I1,!X.showPlaceHolders); if (X.rtlSet && !X.rtlState())X.rtl(); var body=lx.body; if (body.childNodes.length==1 && body.firstChild.tagName && body.firstChild.tagName.toUpperCase()=="DIV" && body.firstChild.style.cssText.length>0 && body.firstChild.style.direction.length>0 && oz(body.firstChild,"position")!="absolute"){body.style.cssText=body.firstChild.style.cssText; var Oz=body.firstChild; while (Oz.firstChild)body.insertBefore(Oz.firstChild,Oz); body.removeChild(Oz); }if (X.lz){body.style.cssText=X.lz; X.lz=null; }function iz(Ij){if (Ij && Ij.type=="contextmenu"){if (!X.isPopup() && HTMLEditor.oe==null){if (HTMLEditor.is_ie){try {var Iz=X.I1.selection; var o10=X.or(Iz); }catch (t){HTMLEditor._stopEvent(Ij); return false; }}return X.O10(Ij,Ij.clientX,Ij.clientY); }else {HTMLEditor._stopEvent(Ij); return false; }}}HTMLEditor.ow([body,X._iframe.contentWindow],["contextmenu"], function (event){var ie= false; if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; if (X.l10){X.l10.select(); X.l10=null; }}if (HTMLEditor.is_Safari){var lq=X.iq(); var Iq=X.or(lq); X.i10=Iq.cloneRange(); }try {ie=iz(HTMLEditor.is_ie?X._iframe.contentWindow.event:event); }catch (t){}return ie; } ); HTMLEditor.Ik(body,HTMLEditor.is_ie?"drop": "dragdrop", function (event){X.I10(); if (typeof X.onDrop=="function")setTimeout( function (){X.onDrop(X); } ,0); return true; } ); X.o11(); if (HTMLEditor.O11)X.f= true; if (!HTMLEditor.is_Safari)X.setTimeout( function (Ox){if (X.lu(Ox))return; if (!HTMLEditor.is_ie){if (X.l11!=null){X.selectAll(); X.i11(X.l11); X.l11=null; }}if (HTMLEditor.is_ie && !X._autoFocus){var I11=HTMLEditor.o12(X.I1.body.innerHTML); var O12=HTMLEditor.l12(X.I1.body.innerHTML); X.I1.body.innerHTML=X.I1.body.innerHTML; HTMLEditor.i12(X.I1.body,I11); HTMLEditor.I12(X.I1.body,O12); if (document.compatMode=="BackCompat")lx.body.contentEditable= true; X._iframe.style.visibility="visible"; X.iq().empty(); }if (X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe && X._autoFocus){X.updateToolbar(); X.focusEditor(); if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && !HTMLEditor.O11){var anchor=X.I1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.I1.body.insertBefore(anchor,X.I1.body.firstChild); anchor.focus(); anchor.blur(); X.focusEditor(); X.I1.body.removeChild(anchor); }}}if (!HTMLEditor.is_ie)X.I1.body.innerHTML=HTMLEditor.o13(HTMLEditor.getHTML(X.I1.body, false , true)); if (!HTMLEditor.is_Safari || X.Ir>0)X.isActivated= true; if ((!X._StartEnd || !HTMLEditor.is_ie) && X._autoFocus){if (X.mode()=="html" && X.mainDivVisible && X._iframe && typeof iu!="function"){if (HTMLEditor.is_ie){X.setTimeout( function (Ox){if (X.lu(Ox))return; X.focusEditor(); var lq=X.iq(); var Iq=X.or(lq); if (lq.type.toLowerCase()!="control"){Iq.moveEnd("textedit",1); Iq.collapse( false); }Iq.select(); X.updateToolbar(); X.focusEditor(); } ,0144); }else {X.O13( false); }}}HTMLEditor._CUROBJ_=null; if (X.scrollIntoView && !HTMLEditor.is_Safari)document.getElementById(X.mainDivId).scrollIntoView( false); if (X._autoFocus)X.focusEditor(); HTMLEditor.l13(X.I1.body); if (typeof iu=="function")iu(); X.op= true; if (HTMLEditor.i13){var I13=X.clientID+"_bottom_chMode()"; try {eval(I13); }catch (o14){} ; }} ,HTMLEditor.is_ie?012: 0144); if (HTMLEditor.is_Safari){HTMLEditor.l13(X.I1.body); X.isActivated= true; HTMLEditor._CUROBJ_=null; if (X.O14) delete X.O14; X.O14=new Object(); X.setTimeout( function (Ox){if (X.lu(Ox))return; if (X.l11!=null){X.selectAll(); X.i11(X.l11); X.l11=null; }if (!X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe){X.O13( false); }}X.op= true; } ,0144); }X.Ir++; X.On(); if (!X.Os){if (typeof EditorOnLoad=="function")X.setTimeout( function (Ox){if (X.lu(Ox))return; EditorOnLoad(X); } ,0310); }if (!X.Is){if (X._autoFocus){if (X._ModeHTML){if (X.l){X.l= false; X.l14=HTMLEditor.o13(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.i14(); }}X.setTimeout( function (Ox){if (X.lu(Ox))return; X.chMode("text"); } ,0764); }}}if (!X._autoFocus){X.I14=X.Is; X.setTimeout( function (Ox){if (X.lu(Ox))return; if (!X.I14 && X._ModeHTML){if (X.l){X.l= false; X.l14=HTMLEditor.o13(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.i14(); }}X.setTimeout( function (Ox){if (X.lu(Ox))return; X.chMode("text"); } ,0764); }else {HTMLEditor.o15(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.o15(X.ShowQuickFormatDivId, true); }} ,HTMLEditor.is_ie?0144: 012); }X.Os= true; X.Is= true; if (X.l){X.setTimeout( function (Ox){if (X.lu(Ox))return; X.l= false; X.l14=HTMLEditor.o13(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.i14(); }} ,0310); }if (HTMLEditor.is_ie && X._setRealSize && typeof X._setRealSize=="function"){X._textArea.style.display=""; X._setRealSize(); var height=X._textArea.offsetHeight; X._iframe.style.height=height+"px"; X.Iv.style.height=height+"px"; if (HTMLEditor.is_ie)height-=2; X.O15.style.height=height+"px"; X.I8.l9=X._textArea.offsetHeight;X._textArea.style.display="none"; X._setRealSize=null; }}X.setTimeout(ox,012); };HTMLEditor.prototype.ContentChanged= function (on){var l15=this.mode(); var i15=(typeof on=="undefined")? true :on;if (l15=="preview")l15=this.I15; try {if (this.l1 && l15=="html"){if (this.l)return false; if (this.l14){if (this.mode()=="preview"){return (!(this.l14==HTMLEditor.o13(this.o16))) && i15; }else {return !(this.l14==HTMLEditor.o13(HTMLEditor.getHTML(this.I1.body, false , true))); }}else return false; }else {if (this.O15 && this.O16!=null){return (!(HTMLEditor.o13(this.O16)==HTMLEditor.o13(this.O15.value)) || (this.l16 && i15)); }else {return false; }}}catch (t){return false; }};HTMLEditor.prototype.i14= function (){var X=this ; if (this.o0 || this.onClientContentChanged==null || typeof this.onClientContentChanged!="function")return; try {if (this.l1 && this.mode()=="html"){var i16=HTMLEditor.o13(this.I1.body.innerHTML); if (this.i0!=null){if (this.i0!=i16){var I16= {previous:{} ,current:{}} ; var div=document.createElement("div"); div.innerHTML=this.i0; I16.previous.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; I16.previous.htmlTextLength=HTMLEditor.o13(div.innerHTML).length; this.i0=i16; div.innerHTML=this.i0; I16.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; I16.current.htmlTextLength=HTMLEditor.o13(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(I16); }catch (t){}} ,0); delete div; }}else {var I16= {previous:{} ,current:{}} ; var div=document.createElement("div"); I16.previous.plainTextLength=0; I16.previous.htmlTextLength=0; this.i0=i16; div.innerHTML=this.i0; I16.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; I16.current.htmlTextLength=HTMLEditor.o13(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(I16); }catch (t){}} ,0); delete div; }}}catch (t){}};HTMLEditor.prototype.O13= function (o17){var X=this ; X.setTimeout( function (Ox){if (X.lu(Ox))return; var index=0; var O17=X.I1.body; var anchor=null; if (!X._StartEnd || o17){if (O17.lastChild && O17.lastChild.nodeType==3){O17=O17.lastChild; index=(""+O17.data+"").length; }else if (O17.lastChild && O17.lastChild.nodeType==1 && O17.lastChild.tagName.toUpperCase()=="BR"){index=HTMLEditor.l17(O17.lastChild); var i17=X.I1.createTextNode(""); O17.insertBefore(i17,O17.lastChild); O17=i17; index=0; }else {var i17=X.I1.createTextNode(""); O17.appendChild(i17); O17=i17; index=0; }}if (HTMLEditor.is_Safari){X.O14.type="Caret"; X.O14.focusNode=O17; X.O14.focusOffset=index; }else {var lq=X.iq(); X.I17(lq); var Iq=X.or(); Iq.setStart(O17,index); Iq.setEnd(O17,index); X.o18(lq,Iq); }if (anchor!=null){X.I1.body.removeChild(anchor); }X.updateToolbar(); X.focusEditor(); if (!X._StartEnd || o17)if (!HTMLEditor.is_Safari && !HTMLEditor.O11){try {var anchor=X.I1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.I1.body.appendChild(anchor); anchor.focus(); anchor.blur(); X.focusEditor(); X.I1.body.removeChild(anchor); }catch (t){}}} ,012); };HTMLEditor.prototype.O18= function (){} ; HTMLEditor.prototype.popupClosed= function (){} ; HTMLEditor.prototype.updateToolbar= function (){} ; HTMLEditor.prototype.l18= function (){var X=this ; var ik=HTMLEditor.getHTML(X.I1.body, false , true); var ie=[HTMLEditor.o13(ik),ik]; return ie; };HTMLEditor.prototype.setMode= function (mode,i18){var X=this ; switch (mode){case "preview":if (!this._autoFocus && !this._wasFocused){HTMLEditor.I18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.I18(this.ShowQuickFormatDivId); }X.openWait(); X._waitSetMode= true; setTimeout( function (){var o19=""; X.I15=X.i1; if (X.i1=="html"){X.I10(); var O19=X.l18(); X.o16=O19[0]; o19=X.getHTML( false ,O19[1]); X.l19=o19; X.lz=X.I1.body.style.cssText; try {if (HTMLEditor.is_ie)X.iq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var om=X.l1.removeChild(X._iframe); X._iframe=null; delete om; }catch (t){}if (!HTMLEditor.is_Safari){X.Ix=X.I8.l9; X.i19=X.I8.I19; }if (X.ShowQuickFormatDivId!=null){HTMLEditor.o15(X.ShowQuickFormatDivId); }}else {if (X.O15){o19=X.O15.value; X.O15.style.display="none"; if (HTMLEditor.is_ie)X.O15.style.visibility="hidden"; if (!HTMLEditor.is_Safari){X.I8.l9=X.Ix; X.I8.I19=X.i19; X.Iv.style.height=X.I8.l9; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){}}}X.Iv.style.display=""; X.i1=mode; setTimeout( function (){X.o1a(o19); if (typeof i18=="function")try {i18(); }catch (t){} ; X._waitSetMode= false; try {X.Iv.focus(); }catch (t){}} ,0); } ,0); break; case "text":if (X.i1=="preview"){var O1a; X.Iv.style.display="none"; X.Iv.src=HTMLEditor.is_ie?"javascript:false;": ""; if (HTMLEditor.is_ie)X.Iv.style.visibility="hidden"; X.O15.style.display=""; if (X.I15=="html"){O1a=X.l19; X.O16=O1a; }else {O1a=X.O15.value; }X._waitSetMode= true; X.O15.value=""; X.i1=mode; setTimeout( function (){setTimeout( function (){X.O15.value=O1a; X.focusEditor(); X._waitSetMode= false; } ,0144); if (typeof i18=="function")try {i18(); }catch (t){} ; if (!HTMLEditor.is_Safari){X.I8.l9=X.Ix; X.I8.I19=X.i19; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.O15.style.height=parseInt(X.I8.l9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.O15.style.width="100%"; setTimeout( function (){X.O15.style.width=X.O15.offsetWidth+"px"; } ,0); }}if (HTMLEditor.is_ie)X.O15.style.visibility="visible"; } ,0); return; }else X.lz=X.I1.body.style.cssText; if (!this._autoFocus && !this._wasFocused){HTMLEditor.I18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.I18(this.ShowQuickFormatDivId); }try {X.I10(); }catch (t){} ; X.openWait(); X._waitSetMode= true; X.o0= true; if (this.It() && this.I0){var l1a=HTMLEditor.Om+"_right"; var i1a=HTMLEditor.Om+"_left"; var I1a=this.I1.createElement("SPAN"); I1a.id=i1a; var o1b=this.I1.createElement("SPAN"); o1b.id=l1a; try {if (!this.isControl()){var O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(this.l1b()): ""; var lq=this.iq(); var Iq=this.or(lq); var i1b=(HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0); if (i1b){var I1b=this.o1c(); I1b[0].parentNode.insertBefore(I1a,I1b[0]); if (I1b[I1b.length-1].nextSibling!=null)I1b[I1b.length-1].parentNode.insertBefore(o1b,I1b[I1b.length-1].nextSibling); else I1b[I1b.length-1].parentNode.appendChild(o1b); }else {var O1c=this.I1.createElement("DIV"); O1c.appendChild(I1a); O1c.appendChild(o1b); this.i11(O1c.innerHTML); delete O1c; }}else {var l1c=HTMLEditor.getSelParent(this ); l1c.parentNode.insertBefore(I1a,l1c); if (l1c.nextSibling!=null)l1c.parentNode.insertBefore(o1b,l1c.nextSibling); else l1c.parentNode.appendChild(o1b); }}catch (w){var i1c=this.I1.getElementById(i1a); if (i1c!=null)i1c.parentNode.removeChild(i1c); i1c=this.I1.getElementById(l1a); if (i1c!=null)i1c.parentNode.removeChild(i1c); }}setTimeout( function (){var O19=X.l18(); X.o16=O19[0].replace(/<span id="OboutMSIEparagraph_left"><\/span>/,"").replace(/<span id="OboutMSIEparagraph_right"><\/span>/,""); var o19=X.getHTML( false ,O19[1]); var I1c=0; var o1d=0; var O1d; O1d=o19.indexOf("\x3cspan id=\"OboutMSIEparagraph_left\">\x3c/span>"); if (O1d>=0)I1c=O1d; o19=o19.replace(/<span id="OboutMSIEparagraph_left"><\/span>/,""); O1d=o19.indexOf("\x3cspan id=\"OboutMSIEparagraph_right\">\x3c/span>"); if (O1d>=0)o1d=O1d; o19=o19.replace(/<span id="OboutMSIEparagraph_right"><\/span>/,""); if (HTMLEditor.O11){var l1d=0; for (var i=0; i<I1c; i++)if (o19[i]=="\n")l1d++; I1c+=l1d; l1d=0; for (var i=0; i<o1d; i++)if (o19[i]=="\n")l1d++; o1d+=l1d; }X.Iv.style.display="none"; if (HTMLEditor.is_ie)X.Iv.style.visibility="hidden"; X.O16=o19; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.iq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var om=X.l1.removeChild(X._iframe); X._iframe=null; delete om; }catch (t){}X.O15.value=""; X.O15.style.display=""; X.i1=mode; setTimeout( function (){setTimeout( function (){X.O15.value=o19; X.o0= false; X.focusEditor(); X._waitSetMode= false; if (X.I0)if (X.O15.setSelectionRange && o1d>0){X.O15.setSelectionRange(o1d-1,o1d); var Ij=null; try {Ij=document.createEvent("KeyEvents"); Ij.initKeyEvent("keypress", true , true ,window, false , false , false , false ,0,X.O15.value.charCodeAt(o1d-1)); }catch (w){try {Ij=document.createEvent("Events"); }catch (i1d){Ij=document.createEvent("UIEvents"); } finally {Ij.initEvent("keypress", true , true); Ij.I1d=window; Ij.altKey= false; Ij.ctrlKey= false; Ij.shiftKey= false; Ij.o1e= false; Ij.keyCode=X.O15.value.charCodeAt(o1d-1); Ij.charCode=X.O15.value.charCodeAt(o1d-1); }}X.O15.focus(); X.O15.dispatchEvent(Ij); X.O15.setSelectionRange(I1c,o1d); }else HTMLEditor.setSelectionRange(X.O15,I1c,o1d); X.I0= true; } ,0144); if (typeof i18=="function")try {i18(); }catch (t){} ; if (!HTMLEditor.is_Safari && (X.It() || !HTMLEditor.is_ie)){var O1e=document.getElementById(X.panelDivId); O1e.style.display="none"; }if (X.ShowQuickFormatDivId!=null){setTimeout( function (){HTMLEditor.o15(X.ShowQuickFormatDivId); } ,0); }if (!HTMLEditor.is_Safari){X.Ix=X.I8.l9; X.i19=X.I8.I19; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.O15.style.height=parseInt(X.I8.l9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.O15.style.width="100%"; setTimeout( function (){X.O15.style.width=X.O15.offsetWidth+"px"; } ,0); }}else {if (!HTMLEditor.is_Safari){X.O15.style.height=parseInt(X.I8.l9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+parseInt(X.i19)+"px";}}X.On(); if (HTMLEditor.is_ie)X.O15.style.visibility="visible"; X.focusEditor(); } ,0764); } ,0); break; case "html":if (X._iframe!=null)try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.iq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var om=X.l1.removeChild(X._iframe); X._iframe=null; delete om; }catch (t){}if (HTMLEditor.is_ie)if (this.ShowQuickFormatDivId!=null)HTMLEditor.I18(this.ShowQuickFormatDivId); X.openWait(); X._waitSetMode= true; if (HTMLEditor.is_Safari)X._textArea.style.display=""; X.setTimeout( function (Ox){if (X.lu(Ox)){if (typeof i18=="function")try {i18(); }catch (t){} ; return; }if (X.ContentChanged( false) || X.l || X.o16==null || typeof X.o16=="undefined"){X.F=null; X._textArea.value=X.getHTML(); X.lz=null; if (X.Iv!=null)X.Iv.src=HTMLEditor.is_ie?"javascript:false;": ""; }else {X._textArea.value=X.o16; }if (HTMLEditor.is_Safari)X._textArea.style.display="none"; if (HTMLEditor.is_Safari)X._textArea.style.visibility="hidden"; if (HTMLEditor.is_Safari)if (X.O15!=null)X.O15.style.visibility="hidden"; if (X.ShowQuickFormatDivId!=null)HTMLEditor.I18(X.ShowQuickFormatDivId); if (!X.ContentChanged( false)){if (X.K)if (X.l1e>0)X.l1e--; }if (!HTMLEditor.is_Safari){if (typeof X.Ix!="undefined")X.I8.l9=X.Ix; if (typeof X.i19!="undefined")X.I8.I19=X.i19; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X.O15!=null){X.O15.style.width=parseInt(X.O15.style.width)-X.ix+"px"; X.I8.O9=parseInt(X.O15.style.width)+(document.compatMode!="BackCompat"?4: 2)+"px"; }X.setTimeout( function (Ox){if (X.lu(Ox))return; try {var om=X._textArea.parentNode.removeChild(X.l1); X.l1=null; delete om; }catch (t){}var O1e=document.getElementById(X.panelDivId); O1e.style.display=""; X.activate(); X.i1=mode; if (typeof i18=="function")try {i18(); }catch (t){} ; if (!(HTMLEditor.is_Safari && X.__NoToolBar__))if (X.mainDivVisible){X.setTimeout( function (Ox){if (X.lu(Ox))return; X._onresize(); } ,0); }setTimeout( function (){X._waitSetMode= false; } ,0144); } ,0); } ,0); break; default:X._waitSetMode= false; alert("Mode <"+mode+"> not defined"); return false; }} ; HTMLEditor.o2=null; HTMLEditor.prototype.isPopup= function (){return (this.o2!=null || HTMLEditor.o2!=null || HTMLEditor.i1e!=null); };HTMLEditor.prototype.I1e= function (name){if (this.l1 && this.mode()=="html" && !this.isPopup()){ this._CSSfile=name; var om=this._textArea.parentNode.removeChild(this.l1); var save=this.I1.body.innerHTML; this.l1=null; delete om; this._textArea.value=save; this.activate(); return true; }return false; };HTMLEditor.prototype.undo= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1f( true); this.i14(); };HTMLEditor.prototype.redo= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.O1f(); this.i14(); };HTMLEditor.prototype.copy= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X.l1f(); X.i1f("c", true); X.On(); X.I1f(); } ,0);}else this.i1f("c", true); };HTMLEditor.prototype.cut= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X.l1f(); X.i1f("x", true); X.On(); } ,0);}else this.i1f("x", true); };HTMLEditor.prototype.deleteSelection= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){var lq=this.iq(); this.I10(); lq.clear(); this.o11(); }else this.i1f("x", true); };HTMLEditor.prototype.paste= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.I10(); this.openWait(); setTimeout( function (){X._paste( true); X.On(); } ,0);}else {var lq=this.iq(); var Iq=this.or(lq); this.I17(lq); if (HTMLEditor.is_Safari)alert(this.If("safari-v","Use Apple-V")); else alert(this.If("moz-v","Use Ctrl-V")); if (HTMLEditor.O11)this.f= true; this.o18(lq,Iq); this.isWord= false; }};HTMLEditor.prototype.pasteWord= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.I10(); this.openWait(); setTimeout( function (){X._paste( true , true); X.On(); } ,0);}else {var lq=this.iq(); var Iq=this.or(lq); var o1g=this.If("msword-switched","Pasting from MS Word is switched on. Just now:")+" "; o1g+=(HTMLEditor.is_Safari)?this.If("safari-v","Use Apple-V"): this.If("moz-v","Use Ctrl-V"); this.I17(lq); alert(o1g); if (HTMLEditor.O11)this.f= true; this.o18(lq,Iq); this.isWord= true; }};HTMLEditor.prototype.contextMenu= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; setTimeout( function (){X.O1g(); } ,0); };HTMLEditor.prototype.pasteText= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.I10(); this.openWait(); setTimeout( function (){X._paste( false); X.On(); } ,0);}else {var lq=this.iq(); var Iq=this.or(lq); var X=this ; var lx=X.I1; function l1g(i1g){if (i1g.length>0){X.I10(); X.i11(i1g); X.i14(); }X.focusEditor(); return true; } this.oj("_mozPastePlain",l1g,this.Og("paste-plain","Paste Plain Text")); }};HTMLEditor.prototype.selectAll= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_ie){var I1g=this.I1.body.createTextRange(); I1g.select(); }else {if (HTMLEditor.O11){ this.f= true; this.focusEditor(); }var lq=this.iq(); this.I17(lq); var Iq=this.or(); Iq.selectNodeContents(this.I1.body); if (HTMLEditor.O11)this.f= true; this.o18(lq,Iq); } this.updateToolbar(); };HTMLEditor.prototype.selectNone= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var lq=this.iq(); var Iq=this.or(lq); if (HTMLEditor.is_ie){Iq.setEndPoint("StartToEnd",Iq); Iq.select(); }else {if (HTMLEditor.O11){ this.f= true; this.focusEditor(); } this.I17(lq); Iq.setStart(Iq.endContainer,Iq.endOffset); this.o18(lq,Iq); }setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,0144); };HTMLEditor.prototype.rtl= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.I1.body.style.direction=(!this.rtlState())?"rtl": ""; this.updateToolbar(); };HTMLEditor.prototype.rtlState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; if (this.I1.body.style.direction && this.I1.body.style.direction=="rtl")return true; return false; };HTMLEditor.prototype.ltr= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.I1.body.style.direction=(!this.ltrState())?"": "rtl"; this.updateToolbar(); };HTMLEditor.prototype.ltrState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return true; if (!(this.I1.body.style.direction && this.I1.body.style.direction=="rtl"))return true; return false; };HTMLEditor.prototype.o1h= false; HTMLEditor.prototype.bold= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.O1h("bold"); };HTMLEditor.prototype.boldState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.l1h("bold"); };HTMLEditor.prototype.i1h= false; HTMLEditor.prototype.italic= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; this.O1h("italic"); };HTMLEditor.prototype.italicState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.l1h("italic"); };HTMLEditor.prototype.I1h= false; HTMLEditor.prototype.underline= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; this.O1h("underline"); };HTMLEditor.prototype.underlineState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.l1h("underline"); };HTMLEditor.prototype.o1i= false; HTMLEditor.prototype.strikeThrough= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.O1h("strikeThrough"); };HTMLEditor.prototype.strikeThroughState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.l1h("strikeThrough"); };HTMLEditor.prototype.O1i= false; HTMLEditor.prototype.subScript= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; this.O1h("subScript"); };HTMLEditor.prototype.subScriptState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.l1h("subScript"); };HTMLEditor.prototype.l1i= false; HTMLEditor.prototype.superScript= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.O1h("superScript"); };HTMLEditor.prototype.superScriptState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.l1h("superScript"); };HTMLEditor.prototype.foreColor= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function i1i(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.I1i("forecolor", false ,par); } ,0144); }else X.I1i("forecolor", false ,par); }if (HTMLEditor.is_Safari)this.or(this.iq()); setTimeout( function (){try {X.oj("_selectColor",X.lg("color","Font Color"),i1i); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.foreColorValue= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.isControl())return "#000000"; var ie=HTMLEditor.o1j(this.O1j("forecolor")); return ie; };HTMLEditor.prototype.foreColorClear= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.or(this.iq()); this.I1i("forecolor", false ,""); };HTMLEditor.prototype.backColor= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function i1i(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.I1i("backcolor", false ,par); } ,0144); }else X.I1i("backcolor", false ,par); }if (HTMLEditor.is_Safari)this.or(this.iq()); setTimeout( function (){try {X.oj("_selectColor",X.Og("color","Background Color"),i1i); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.backColorValue= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.isControl())return "#FFFFFF"; return HTMLEditor.o1j(this.O1j("backcolor")); };HTMLEditor.prototype.backColorClear= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.or(this.iq()); this.I1i("backcolor", false ,""); };HTMLEditor._styleTags=["strong","em","u","strike","s","span","font","b","sub","sup","a","i"]; HTMLEditor.l1j= function (Il){if (!Il)return false; for (var i=0; i<HTMLEditor._styleTags.length; i++)if (HTMLEditor._styleTags[i].toLowerCase()==Il.toLowerCase())return true; return false; };HTMLEditor.prototype.clearStyles= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari)this.or(this.iq()); setTimeout( function (){try {X.oj("_clearStyles"); X.i14(); }catch (t){}} ,012); };HTMLEditor.prototype.setClassName= function (name){var X=this ; if (!this._wasFocused)return; this.focusEditor(); if (HTMLEditor.is_Safari)this.or(this.iq()); try {var ie=this._setClassName(name); this.i14(); return ie; }catch (t){alert("setClassName: "+t.message); return false; } ; };HTMLEditor.prototype.AssignClassName= function (name){if (this.mode()!="html")return false; this.focusEditor(); if (HTMLEditor.is_Safari)this.or(this.iq()); if (this.isControl()){ this.I10(); try {HTMLEditor.getSelParent(this ).className=name; }catch (t){ this.o1f( false); }}else this.setClassName(name); return true; };HTMLEditor.prototype.SelectedTextNodes= function (){if (this.mode()!="html")return []; this.focusEditor(); if (HTMLEditor.is_Safari)this.or(this.iq()); var I1b=this.o1c(); if (I1b.length>0)this.i1j(I1b); return I1b; };HTMLEditor.prototype.I1j= function (){if (this.mode()!="html")return null; this.focusEditor(); var lq=this.iq(); var Iq=this.or(lq); var parent=null; if (HTMLEditor.is_ie){if (lq.type.toLowerCase()=="control")parent=Iq.item(0); else parent=null; }else {parent=this.Or(Iq); if (parent.nodeType!=3 && Iq.startContainer==Iq.endContainer){if (!parent.tagName)return null; if (Iq.startContainer.childNodes.item(Iq.startOffset)==null)return null; if (Iq.startOffset==Iq.endOffset && Iq.startContainer.childNodes.item(Iq.startOffset).tagName && Iq.startContainer.childNodes.item(Iq.startOffset).tagName.toUpperCase()=="BR")return null; if (parent.tagName.toUpperCase()=="BODY" && Iq.startOffset==0 && Iq.endOffset>0 && Iq.endOffset==parent.childNodes.length)return null; parent=Iq.startContainer.childNodes.item(Iq.startOffset); }else return null; }return parent; };HTMLEditor.prototype.getClassName= function (){try {var lq=this.iq(); var Iq=this.or(lq); var parent; if (HTMLEditor.is_ie && lq.type.toLowerCase()=="control")parent=Iq.item(0); else parent=this.Or(Iq); if (parent.nodeType==3){parent=parent.parentNode; }while ( true){if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.Om && parent.className.length>0){return parent.className; }else {if (parent && parent.tagName && HTMLEditor.l1j(parent.tagName)){parent=parent.parentNode; continue; }else break; }}}catch (t){}return ""; };HTMLEditor.prototype.fontName= function (select,event){try {var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }HTMLEditor._stopEvent(event); if (event.type=="click" && !HTMLEditor.is_Safari)return false; var X=this ; if (HTMLEditor.is_Safari)this.or(this.iq()); this.O1h("fontname",select.options.item(select.selectedIndex).value); }catch (t){alert("FontName: "+t.message); } ; };HTMLEditor.prototype.o1k=0; HTMLEditor.prototype.fontNameState= function (O1k){var param=null; try {param=this.O1j("fontname"); }catch (t){}if (!this._FontNotSet)if (!param || param.length==0){if (!this.l1k)this.l1k=HTMLEditor.oz(this.I1.body,"font-family"); param=this.l1k; }if (typeof O1k!="undefined"){var il=document.getElementById(O1k); il=il.childNodes.item(1); var i=0; if (param && param.length>0){var Ie=param.toLowerCase().split(",")[0]; for (i=0; i<il.options.length; i++){var i16=il.options.item(i).value.toLowerCase().split(",")[0]; if (i16==Ie)break; }if (i==il.options.length){try {var i1k=document.createElement("OPTION"); i1k.value=param; i1k.text=param.split(",")[0]; il.add(i1k,HTMLEditor.is_ie?i:null); X.o1k=0; }catch (t){var X=this ; if (X.o1k<012){setTimeout( function (){X.fontNameState(O1k); } ,0144); X.o1k++; }i=0; }}}il.selectedIndex=i; }return param; };HTMLEditor.I1k= function (o1l){var Ie=o1l.toString(); switch (Ie){case "1":Ie="8pt"; break; case "2":Ie="10pt"; break; case "3":Ie="12pt"; break; case "4":Ie="14pt"; break; case "5":Ie="18pt"; break; case "6":Ie="24pt"; break; case "7":Ie="36pt"; break; }return Ie; };HTMLEditor.prototype.fontSize= function (select,event){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }HTMLEditor._stopEvent(event); if (event.type=="click" && !HTMLEditor.is_Safari)return false; var X=this ; if (HTMLEditor.is_Safari)this.or(this.iq()); this.O1h("fontsize",HTMLEditor.I1k(select.options.item(select.selectedIndex).value)); };HTMLEditor.prototype.O1l=0; HTMLEditor.prototype.fontSizeState= function (O1k){var param=null; try {param=this.O1j("fontsize",O1k); }catch (t){}if (param)param=param.toString(); if (!this._FontNotSet)if (!param || param.length==0){if (!this.l1l){ this.l1l=HTMLEditor.oz(this.I1.body,"font-size"); this.l1l=HTMLEditor.i1l(this.l1l,this,O1k); }param=this.l1l; }if (typeof O1k!="undefined"){try {var il=document.getElementById(O1k); il=il.childNodes.item(1); var i=0; if (param && param.length>0){var Ie=param.toLowerCase().split(",")[0]; for (i=0; i<il.options.length; i++){var i16=HTMLEditor.I1k(il.options.item(i).value.toLowerCase().split(",")[0]); if (i16==Ie)break; }if (i==il.options.length){try {var i1k=document.createElement("OPTION"); i1k.value=param; i1k.text=param; il.add(i1k,HTMLEditor.is_ie?i:null); X.O1l=0; }catch (t){var X=this ; if (X.O1l<012){setTimeout( function (){X.fontSizeState(O1k); } ,0144); X.O1l++; }i=0; }}}il.selectedIndex=i; }catch (t){alert("fontSizeState: "+t.message); }}return param; };HTMLEditor.prototype.justifyLeft= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.O1h("justifyLeft",value); };HTMLEditor.prototype.justifyFull= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.O1h("justifyFull",null); };HTMLEditor.prototype.justifyCenter= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.O1h("justifyCenter",value); };HTMLEditor.prototype.justifyRight= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.O1h("justifyRight",value); };HTMLEditor.prototype.paragraph= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.O1h("paragraph",value); };HTMLEditor.prototype.orderedList= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.O1h("InsertOrderedList",value); };HTMLEditor.prototype.bulletedList= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.O1h("InsertUnorderedList",value); };HTMLEditor.prototype.decreaseIndent= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.O1h("Outdent",value); };HTMLEditor.prototype.increaseIndent= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.O1h("Indent",value); };HTMLEditor.prototype.createLink= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari && !HTMLEditor.Ok){param=prompt("Enter URL"); this.SurroundHTML("<a href='"+param+"'>","</a>"); return; }try {if (this.l1 && this.mode()=="html" && !this.isPopup()){var O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(this.l1b()): ""; var lq=this.iq(); var Iq=this.or(lq); var I1l=null; if (!(this.isControl() && HTMLEditor.getSelParent(this ).tagName && (HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="EMBED" || HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG")) && !(!this.isControl() && ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0)))){ this.I10(); var o1m=this.I1.createElement("span"); o1m.innerHTML="new link"; o1m.id=HTMLEditor.Om; var O1m= true; if (HTMLEditor.is_ie && this.isControl()){var l1c=Iq.item(0); var l1m=this.I1.createElement("span"); l1c.parentNode.insertBefore(l1m,l1c); I1l=o1m.firstChild; l1c.parentNode.insertBefore(I1l,l1c); var i1m=this.I1.createElement("span"); l1c.parentNode.insertBefore(i1m,l1c); l1c.parentNode.removeChild(l1c); this.I1m([l1m,i1m], false); O1m= false; }else { this.i11(HTMLEditor.getHTML(o1m, true)); var il=this.I1.getElementById(HTMLEditor.Om); I1l=il.firstChild; il.parentNode.insertBefore(il.firstChild,il); il.parentNode.removeChild(il); }if (!HTMLEditor.is_ie){Iq=this.or(); Iq.setStart(I1l,0); Iq.setEnd(I1l,(""+I1l.data+"").length); this.I17(lq); this.o18(lq,Iq); }else {if (O1m)Iq.select(); }O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(this.l1b()): ""; lq=this.iq(); Iq=this.or(lq); }if ((this.isControl() && HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG") || (!this.isControl() && ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0)))){ this.I10(); var o1n=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); var I16= {target: "default",href:o1n,title: "" } ; var O1n; function l1g(l1n){try {if (l1n){var i1n=X.I1.getElementsByTagName("A"); var I1n=0; for (var i=0; i<i1n.length; i++){var o1o= true; var a=i1n[i]; for (var Oh=0; Oh<O1n.length; Oh++)if (a==O1n[Oh]){o1o= false; break; }if (!o1o)continue; try {var O1o=a.href; a.href=I16.href; if (I16.target)a.target=I16.target; if (I16.title.length>0)a.title=I16.title; I1n=i; }catch (w){}}if (I1l)I1l.data=I16.href; if (HTMLEditor.O11)X.f= true; if (i1n.length>0){var l1o=i1n[I1n]; var o1m=X.I1.createElement("span"); o1m.innerHTML="&nbsp;"; if (l1o.nextSibling!=null)l1o.parentNode.insertBefore(o1m,l1o.nextSibling); else l1o.parentNode.appendChild(o1m); setTimeout( function (){HTMLEditor.i1o(o1m,X); setTimeout( function (){l1o.parentNode.removeChild(o1m); } ,0); } ,0); }setTimeout( function (){X.updateToolbar(); X.i14(); } ,5); }else {X.o1f( false); X.K.pop(); if (I1l){X.o1f( false); X.K.pop(); }}X.focusEditor(); }catch (t){alert("URL Link create: "+t.message); }return true; }var ik=X.I1.getElementsByTagName("A"); var i1n=[]; for (var i=0; i<ik.length; i++){try {var hr=ik[i].href; i1n.push([ik[i],""+hr+""]); }catch (w){}} this.I1i("createLink", false ,o1n); O1n=[]; for (var i=0; i<i1n.length; i++){var a=i1n[i][0]; var href=i1n[i][1]; if (a.href==href)O1n.push(a); } this.oj("_urlProperties",this.Og("link","Create URL Link"),I16,l1g); }else {var X=this ; setTimeout( function (){window.alert("Please highlight text or image for the new link"); } ,0310); }}}catch (t){alert("createLink :"+t.message); }};HTMLEditor.l4= function (X,link){function l1g(l1n){if (!l1n){setTimeout( function (){X.o1f( false); } ,012); }else {if (link.title.length==0){link.title=null; link.removeAttribute("title"); }if (HTMLEditor.O11){X.f= true; X.focusEditor(); }X.i14(); }return true; }X.I10(); X.oj("_urlProperties",X.lg("link","Edit URL Link"),link,l1g); };HTMLEditor.I1o=/^(([0-9]+(px|%|$))|$)/i; HTMLEditor.setSelectionRange= function (input,o1p,O1p){try {var start=(typeof o1p=="undefined")?0:o1p; var end=(typeof O1p=="undefined")?input.value.length:O1p; input.focus(); if (input.setSelectionRange){input.setSelectionRange(start,end); }else if (input.createTextRange){var Iq=input.createTextRange(); Iq.collapse( true); Iq.moveEnd("character",end); Iq.moveStart("character",start); Iq.select(); }}catch (t){}};HTMLEditor.prototype.insertDiv= function (){var X=this ; var l1p; var id=HTMLEditor.Om; var innerHTML="<div id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Div"; innerHTML+="</div>"; if (X.InsertHTML(innerHTML)){l1p=X.getDocument().getElementById(id); l1p.id=null; l1p.removeAttribute("id"); X.i1p(l1p, false); }};HTMLEditor.o4= function (X,l1p){X.SaveContent(); X.i1p(l1p, true); };HTMLEditor.prototype.i1p= function (l1p,I1p){var X=this ; function disableEvents(lx){lx.getElementById("idField").disabled= true; lx.getElementById("widthField").disabled= true; lx.getElementById("heightField").disabled= true; lx.getElementById("borderWidth").disabled= true; lx.getElementById("borderColor").disabled= true; lx.getElementById("borderStyle").disabled= true; lx.getElementById("bgColor").disabled= true; lx.getElementById("clearColor").disabled= true; lx.getElementById("clearColor").className="dbutton"; lx.getElementById("bgImage").disabled= true; lx.getElementById("clearImage").disabled= true; lx.getElementById("clearImage").className="dbutton"; }function enableEvents(lx){lx.getElementById("idField").disabled= false; lx.getElementById("widthField").disabled= false; lx.getElementById("heightField").disabled= false; lx.getElementById("borderWidth").disabled= false; lx.getElementById("borderColor").disabled= false; lx.getElementById("borderStyle").disabled= false; lx.getElementById("bgColor").disabled= false; lx.getElementById("clearColor").disabled= false; lx.getElementById("clearColor").className="button"; lx.getElementById("bgImage").disabled= false; lx.getElementById("clearImage").disabled= false; lx.getElementById("clearImage").className="dbutton"; }function color(){function o1q(par){X.O1q.getElementById("borderColor").style.backgroundColor=par; }X.oj("_selectColor",X.O1q.getElementById("borderColor").title,o1q); }function bgColor(){function l1q(par){X.O1q.getElementById("bgColor").value=""; X.O1q.getElementById("bgColor").style.backgroundColor=par; }X.oj("_selectColor",X.O1q.getElementById("bgColor").title,l1q); }function i1q(){X.O1q.getElementById("bgColor").value=X.I1q; X.O1q.getElementById("bgColor").style.backgroundColor=""; }function o1r(){var O1r=new Object(); var lx=X.O1q; O1r.src=""; O1r.l1r="LEFT"; O1r.i1r="TOP"; O1r.repeat="REPEAT"; O1r.I1r="FIXED"; if (lx.getElementById("bgImage").style.backgroundImage && lx.getElementById("bgImage").style.backgroundImage.length>0){var ik=lx.getElementById("bgImage").style.backgroundImage; ik=ik.replace(/^url\(["']?(.+)["']?\)$/i,"$1"); O1r.src=ik.replace(/(\s)/g,"%20"); }if (lx.getElementById("bgImage").style.backgroundPosition && lx.getElementById("bgImage").style.backgroundPosition.length>0){var ik=lx.getElementById("bgImage").style.backgroundPosition; ik=ik.split(" "); if (ik.length>0)O1r.l1r=ik[0]; if (ik.length>1)O1r.i1r=ik[1]; }if (lx.getElementById("bgImage").style.backgroundRepeat && lx.getElementById("bgImage").style.backgroundRepeat.length>0)O1r.repeat=lx.getElementById("bgImage").style.backgroundRepeat; if (lx.getElementById("bgImage").style.backgroundAttachment && lx.getElementById("bgImage").style.backgroundAttachment.length>0)O1r.I1r=lx.getElementById("bgImage").style.backgroundAttachment; function i1i(l1n){if (l1n){var save=lx.getElementById("bgImage").style.backgroundImage; lx.getElementById("bgImage").value=""; var o1s=(O1r.src.indexOf("'")>=0)?"\"": "'"; lx.getElementById("bgImage").style.backgroundImage=""; lx.getElementById("bgImage").style.backgroundImage="url("+o1s+O1r.src.replace(/(\s)/g,"%20")+o1s+")"; lx.getElementById("bgImage").style.backgroundRepeat=O1r.repeat; lx.getElementById("bgImage").style.backgroundAttachment=O1r.I1r; lx.getElementById("bgImage").style.backgroundPosition=O1r.l1r+" "+O1r.i1r; if (lx.getElementById("bgImage").style.backgroundImage.length==0){X.O1.setTimeout( function (){lx.getElementById("bgImage").style.backgroundImage=save; if (save.length==0)O1s(); X.O1.alert(X.If("bad-bg-img","Incorrect Image file for Background.")); } ,0); }}}X.oj("_bgImageProperties",lx.getElementById("bgImage").title,O1r,i1i); }function O1s(){X.O1q.getElementById("bgImage").value=X.l1s; X.O1q.getElementById("bgImage").style.backgroundImage=""; X.O1q.getElementById("bgImage").style.backgroundRepeat=""; X.O1q.getElementById("bgImage").style.backgroundAttachment=""; }function i1i(lx,i1s){if (lx!=null){var I1s=lx.getElementById("overflow").value.replace(/^[\s]+/,""); var width=lx.getElementById("widthField").value.replace(/^[\s]+/,""); var height=lx.getElementById("heightField").value.replace(/^[\s]+/,""); var borderWidth=lx.getElementById("borderWidth").value.replace(/^[\s]+/,""); var borderStyle=lx.getElementById("borderStyle").value.replace(/^[\s]+/,""); var borderColor=lx.getElementById("borderColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundColor=lx.getElementById("bgColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundImage=lx.getElementById("bgImage").style.backgroundImage.replace(/^[\s]+/,""); var backgroundRepeat=lx.getElementById("bgImage").style.backgroundRepeat.replace(/^[\s]+/,""); var backgroundAttachment=lx.getElementById("bgImage").style.backgroundAttachment.replace(/^[\s]+/,""); var backgroundPosition=lx.getElementById("bgImage").style.backgroundPosition.replace(/^[\s]+/,""); var id=lx.getElementById("idField").value.replace(/^[\s]+/,""); if (!HTMLEditor.I1o.test(width)){HTMLEditor.setSelectionRange(lx.getElementById("widthField")); return false; }if (!HTMLEditor.I1o.test(height)){HTMLEditor.setSelectionRange(lx.getElementById("heightField")); return false; }if (!HTMLEditor.I1o.test(borderWidth)){HTMLEditor.setSelectionRange(lx.getElementById("borderWidth")); return false; }if (id.length>0 && X.I1.getElementById(id)!=null && X.I1.getElementById(id)!=l1p){HTMLEditor.setSelectionRange(lx.getElementById("idField")); return false; }l1p.style.width=width; l1p.style.height=height; l1p.style.borderWidth=borderWidth; if (id.length>0)l1p.id=id; else {l1p.id=null; l1p.removeAttribute("id"); }l1p.style.overflow=I1s; if (borderStyle.length>0 && borderStyle!="none" && borderWidth.length>0)l1p.style.borderStyle=borderStyle; else l1p.style.borderStyle=""; l1p.style.borderColor=(borderWidth.length>0)?borderColor: ""; l1p.style.backgroundColor=backgroundColor; l1p.style.backgroundImage=backgroundImage; l1p.style.backgroundRepeat=backgroundRepeat; l1p.style.backgroundAttachment=backgroundAttachment; l1p.style.backgroundPosition=backgroundPosition; setTimeout( function (){if (HTMLEditor.is_Safari){l1p=(il.nextSibling)?l1p.nextSibling:l1p; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.I17(lq); X.o18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var I1b=X.I1.body.createControlRange(); I1b.add(l1p); I1b.select(); }catch (t){}}else {if (HTMLEditor.O11)X.f= true; l1p=(l1p.nextSibling)?l1p.nextSibling:l1p; HTMLEditor.i1o(l1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function o1t(lx,i1s){if (lx!=null){var O1t=i1s.contentWindow.document.getElementById("realStylesFolder").href; X.I1q=lx.getElementById("bgColor").value; X.l1s=lx.getElementById("bgImage").value; lx.getElementById("idField").value=(l1p.id)?l1p.id: ""; lx.getElementById("widthField").value=(l1p.style.width)?l1p.style.width: ""; lx.getElementById("heightField").value=(l1p.style.height)?l1p.style.height: ""; lx.getElementById("borderWidth").value=(l1p.style.borderLeftWidth)?l1p.style.borderLeftWidth: ""; lx.getElementById("borderStyle").value=(l1p.style.borderLeftStyle)?l1p.style.borderLeftStyle: ""; lx.getElementById("overflow").value=(l1p.style.overflow)?l1p.style.overflow: ""; lx.getElementById("borderColor").style.backgroundColor=(l1p.style.borderLeftColor)?l1p.style.borderLeftColor: ""; lx.getElementById("bgColor").style.backgroundColor=(l1p.style.backgroundColor)?l1p.style.backgroundColor: ""; lx.getElementById("bgImage").style.backgroundImage=(l1p.style.backgroundImage)?l1p.style.backgroundImage: ""; lx.getElementById("bgImage").style.backgroundRepeat=(l1p.style.backgroundRepeat)?l1p.style.backgroundRepeat: ""; lx.getElementById("bgImage").style.backgroundAttachment=(l1p.style.backgroundAttachment)?l1p.style.backgroundAttachment: ""; lx.getElementById("bgImage").style.backgroundPosition=(l1p.style.backgroundPosition)?l1p.style.backgroundPosition: ""; if (lx.getElementById("bgColor").style.backgroundColor.length>0)lx.getElementById("bgColor").value=""; if (lx.getElementById("bgImage").style.backgroundImage.length>0)lx.getElementById("bgImage").value=""; HTMLEditor.ow(lx.getElementById("borderColor"),["click"],color); HTMLEditor.ow(lx.getElementById("bgColor"),["click"],bgColor); HTMLEditor.ow(lx.getElementById("clearColor"),["click"],i1q); HTMLEditor.ow(lx.getElementById("bgImage"),["click"],o1r); HTMLEditor.ow(lx.getElementById("clearImage"),["click"],O1s); X.O1q=lx; }}var l1t=(X.P[032].length>0)?(X.P[032]): ("__div.aspx"); X.customPopup("popup_div","div",l1t,i1i,o1t, true ,I1p,enableEvents,disableEvents); };HTMLEditor.prototype.insertForm= function (){var X=this ; var l1p; var id=HTMLEditor.Om; var innerHTML="<form id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Form"; innerHTML+="</form>"; if (X.InsertHTML(innerHTML)){l1p=X.getDocument().getElementById(id); l1p.id=null; l1p.removeAttribute("id"); X.i1t(l1p, false); }};HTMLEditor.O5= function (X,l1p){X.SaveContent(); X.i1t(l1p, true); };HTMLEditor.prototype.i1t= function (l1p,I1p){var X=this ; function i1i(lx,i1s){if (lx!=null){var width=lx.getElementById("widthField").value.replace(/^[\s]+/,""); var height=lx.getElementById("heightField").value.replace(/^[\s]+/,""); var id=lx.getElementById("idField").value.replace(/^[\s]+/,""); var name=lx.getElementById("nameField").value.replace(/^[\s]+/,""); var action=lx.getElementById("actionField").value.replace(/^[\s]+/,""); var method=lx.getElementById("methodField").value.replace(/^[\s]+/,""); if (!HTMLEditor.I1o.test(width)){HTMLEditor.setSelectionRange(lx.getElementById("widthField")); return false; }if (!HTMLEditor.I1o.test(height)){HTMLEditor.setSelectionRange(lx.getElementById("heightField")); return false; }var I1t=X.I1.getElementsByTagName("FORM"); if (name.length>0)for (var i=0; i<I1t.length; i++){if (I1t[i].name==name && I1t[i]!=l1p){HTMLEditor.setSelectionRange(lx.getElementById("nameField")); return false; }}if (id.length>0 && X.I1.getElementById(id)!=null && X.I1.getElementById(id)!=l1p){HTMLEditor.setSelectionRange(lx.getElementById("idField")); return false; }l1p.style.width=width; l1p.style.height=height; if (id.length>0)l1p.id=id; else {l1p.id=null; l1p.removeAttribute("id"); }if (name.length>0){l1p.name=name; l1p.setAttribute("name",name); }else {l1p.name=""; l1p.removeAttribute("name"); }if (action.length>0)l1p.action=action; else {l1p.action=null; l1p.removeAttribute("action"); }try {if (method.length>0)l1p.method=method; else {l1p.removeAttribute("method"); }}catch (t){}setTimeout( function (){if (HTMLEditor.is_Safari){l1p=(il.nextSibling)?l1p.nextSibling:l1p; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.I17(lq); X.o18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var I1b=X.I1.body.createControlRange(); I1b.add(l1p); I1b.select(); }catch (t){}}else {if (HTMLEditor.O11)X.f= true; l1p=(l1p.nextSibling)?l1p.nextSibling:l1p; HTMLEditor.i1o(l1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function o1t(lx,i1s){if (lx!=null){lx.getElementById("widthField").value=(l1p.style.width)?l1p.style.width: ""; lx.getElementById("heightField").value=(l1p.style.height)?l1p.style.height: ""; lx.getElementById("idField").value=(l1p.id)?l1p.id: ""; lx.getElementById("nameField").value=(l1p.name)?l1p.name: ""; lx.getElementById("actionField").value=(l1p.action)?l1p.action: ""; lx.getElementById("methodField").value=(l1p.method)?l1p.method: ""; }}var l1t=(X.P[035].length>0)?(X.P[035]): ("__form.aspx"); X.customPopup("popup_form","form",l1t,i1i,o1t, true ,I1p); };HTMLEditor.prototype.insertCheckBox= function (){ this.o1u("type='checkbox'"); };HTMLEditor.prototype.insertRadio= function (){ this.o1u("type='radio'"); };HTMLEditor.prototype.insertTextBox= function (){ this.o1u("type='text' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertPassword= function (){ this.o1u("type='password' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertHidden= function (){var X=this ; if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)setTimeout( function (){alert(X.If("safari-no-support","Not supported in Safari")); } ,0764); else if (!HTMLEditor.is_ie)setTimeout( function (){alert(X.If("mozilla-no-support","Not supported in Mozilla")); } ,0764); else this.o1u("type='hidden' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertButton= function (){ this.o1u("type='button' style='width:50px;height:22px;'"); };HTMLEditor.prototype.insertSubmit= function (){ this.o1u("type='submit' style='width:50px;height:22px;' value='Submit'"); };HTMLEditor.prototype.insertReset= function (){ this.o1u("type='reset' style='width:50px;height:22px;' value='Reset'"); };HTMLEditor.prototype.o1u= function (O1u){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var l1p=null; var id=HTMLEditor.Om; if (X.isControl() && HTMLEditor.getSelParent(X).tagName.toUpperCase()=="INPUT"){l1p=HTMLEditor.getSelParent(X); X.SaveContent(); X.l1u(l1p, true); }else if (X.InsertHTML("<input id='"+id+"' "+O1u+" />")){l1p=X.getDocument().getElementById(id); l1p.id=null; l1p.removeAttribute("id"); X.l1u(l1p, false); if (HTMLEditor.is_Safari)setTimeout( function (){try {l1p.blur();}catch (t){}} ,0144); }return l1p; };HTMLEditor.l3= function (X,l1p){if (l1p.type=="image" || l1p.type=="file")return; X.SaveContent(); X.l1u(l1p, true); };HTMLEditor.prototype.l1u= function (l1p,I1p){var X=this ; function i1i(lx,i1s){if (lx!=null){var width=lx.getElementById("widthField").value.replace(/^[\s]+/,""); var height=lx.getElementById("heightField").value.replace(/^[\s]+/,""); var id=lx.getElementById("idField").value.replace(/^[\s]+/,""); var name=lx.getElementById("nameField").value.replace(/^[\s]+/,""); var value=lx.getElementById("valueField").value.replace(/^[\s]+/,""); var title=lx.getElementById("titleField").value.replace(/^[\s]+/,""); var type=((l1p.type && l1p.type.length>0)?l1p.type: "text").toLowerCase(); if (!HTMLEditor.I1o.test(width)){HTMLEditor.setSelectionRange(lx.getElementById("widthField")); return false; }if (!HTMLEditor.I1o.test(height)){HTMLEditor.setSelectionRange(lx.getElementById("heightField")); return false; }if (id.length>0 && X.I1.getElementById(id)!=null && X.I1.getElementById(id)!=l1p){HTMLEditor.setSelectionRange(lx.getElementById("idField")); return false; }l1p.style.width=width; l1p.style.height=height; if (id.length>0)l1p.id=id; else {l1p.id=null; l1p.removeAttribute("id"); }if (name.length>0){l1p.name=name; l1p.setAttribute("name",name); }else {l1p.name=""; l1p.removeAttribute("name"); }if (value.length>0){l1p.value=value; l1p.setAttribute("value",value); }else {l1p.value=""; l1p.removeAttribute("value"); }if (title.length>0)l1p.title=title; else {l1p.title=""; l1p.removeAttribute("title"); }if (type=="checkbox" || type=="radio"){l1p.checked=lx.getElementById("checkField").checked; if (!HTMLEditor.is_ie){if (l1p.checked)l1p.setAttribute("checked","true"); else l1p.removeAttribute("checked"); }}setTimeout( function (){if (HTMLEditor.is_Safari){l1p=(il.nextSibling)?l1p.nextSibling:l1p; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.I17(lq); X.o18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var I1b=X.I1.body.createControlRange(); I1b.add(l1p); I1b.select(); }catch (t){}}else {if (HTMLEditor.O11)X.f= true; l1p=(l1p.nextSibling)?l1p.nextSibling:l1p; HTMLEditor.i1o(l1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function o1t(lx,i1s){if (lx!=null){var type=((l1p.type && l1p.type.length>0)?l1p.type: "text").toLowerCase(); if (type=="checkbox" || type=="radio")lx.getElementById("checkField").checked=l1p.checked; else lx.getElementById("checkField").style.display="none"; lx.getElementById("widthField").value=(l1p.style.width)?l1p.style.width: ""; lx.getElementById("heightField").value=(l1p.style.height)?l1p.style.height: ""; lx.getElementById("idField").value=(l1p.id)?l1p.id: ""; lx.getElementById("nameField").value=(l1p.name)?l1p.name: ""; lx.getElementById("valueField").value=(l1p.value)?l1p.value: ""; lx.getElementById("titleField").value=(l1p.title)?l1p.title: ""; lx.getElementById("inputType").innerHTML=""; try {lx.getElementById("inputType").innerHTML=lx.getElementById("input_"+type).value; }catch (t){alert(t.message);}}}var l1t=(X.P[041].length>0)?(X.P[041]): ("__input.aspx"); X.customPopup("popup_input","input",l1t,i1i,o1t, true ,I1p); };HTMLEditor.O4= function (X,link){X.I10(); var il=link.firstChild; while (link.firstChild)link.parentNode.insertBefore(link.firstChild,link); link.parentNode.removeChild(link); if (il)HTMLEditor.i1o(il,X); setTimeout( function (){X.updateToolbar(); } ,5); X.i14(); };HTMLEditor.prototype.insertIcon= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1g(l1n,html){if (!l1n){X.o1f( false); }else {if (!X.i11("<img src='"+html+"' id="+HTMLEditor.Om+">")){X.o1f( false); }else {var il=X.I1.getElementById(HTMLEditor.Om); il.id=null; il.removeAttribute("id"); if (X.relativeImages)il.src=html; if (!HTMLEditor.is_ie){setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.I17(lq); if (HTMLEditor.O11)X.f= true; X.o18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.i14(); }}return true; }X.I10(); X.oj("_insertIcon",X.Og("icons","Insert an Icon"),l1g); };HTMLEditor.prototype.insertAnchor= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1g(l1n,text){if (!l1n || text.length==0){X.o1f( false); }else {if (!X.i11("<a name='"+text+"'>"+(X.showAnchors?("<img "+X.noContextMenuAttributeName()+"='yes' title='"+text+"' src='"+X.Q[0]+"'>"): "")+"</a>")){X.o1f( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.I17(lq); if (HTMLEditor.O11)X.f= true; X.o18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.i14(); }}return true; }X.I10(); X.oj("_insertAnchor",X.Og("anchor","Insert Anchor"),l1g,""); };HTMLEditor.prototype.anchorsOn= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.showAnchors=!this.showAnchors; HTMLEditor.iy(this,this.I1,!this.showAnchors);this.updateToolbar(); };HTMLEditor.prototype.anchorsOnState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.showAnchors; };HTMLEditor.iy= function (X,I1,i1u){var i1n=I1.getElementsByTagName("A"); var ie= false; for (var i=0; i<i1n.length; i++){var a=i1n[i]; if (a.name && a.name.length>0){var I1u=a.firstChild; while (I1u){var o1v=I1u.nextSibling; if (I1u.tagName && I1u.tagName.toUpperCase()=="IMG" && I1u.src){if (I1u.src.indexOf(X.Q[0])>0){a.removeChild(I1u);ie= true; }}I1u=o1v; }if (!i1u){var img=I1.createElement("IMG"); img.title=a.name; img.src=X.Q[0]; img.setAttribute(X.noContextMenuAttributeName(),"yes"); if (a.firstChild)a.insertBefore(img,a.firstChild); else a.appendChild(img); }}}return ie; };HTMLEditor.i4= function (X,link){function l1g(l1n,text){if (!l1n || text.length==0){setTimeout( function (){X.o1f( false); } ,012); }else {link.name=text; try {link.firstChild.title=text; }catch (t){}if (HTMLEditor.is_ie){setTimeout( function (){try {var I1b=X.I1.body.createControlRange(); I1b.add(link.firstChild); I1b.select(); }catch (t){}} ,0); }else if (HTMLEditor.O11){X.f= true; X.focusEditor(); }X.i14(); }return true; }X.I10(); X.oj("_insertAnchor",X.lg("anchor","Edit Anchor"),l1g,link.name); };HTMLEditor.prototype.insertPlaceHolder= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1g(l1n,text){if (!l1n || text.length==0){X.o1f( false); }else {var Ih; if (X.showPlaceHolders || HTMLEditor.is_ie)Ih="\x3cimg dummytag=\"placeholder\" title=\'"+text+"' src='"+X.Q[4]+"'>"; else Ih="<placeholder name='"+text+"'/>"; if (!X.i11(Ih)){X.o1f( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.I17(lq); if (HTMLEditor.O11)X.f= true; X.o18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (!X.showPlaceHolders)HTMLEditor.Iy(X,X.I1, true); }X.i14(); }}return true; }X.I10(); X.oj("_insertPlaceHolder",X.Og("placeholder","Insert PlaceHolder"),l1g,""); };HTMLEditor.prototype.placeHoldersOn= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.showPlaceHolders=!this.showPlaceHolders; HTMLEditor.Iy(this,this.I1,!this.showPlaceHolders);this.updateToolbar(); };HTMLEditor.prototype.placeHoldersOnState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.showPlaceHolders; };HTMLEditor.Iy= function (X,I1,i1u){var ie= false; if (i1u){var O1v=I1.getElementsByTagName("IMG"); var i1n=[]; for (var i=0; i<O1v.length; i++)i1n.push(O1v[i]); for (var i=0; i<i1n.length; i++){var a=i1n[i]; var l1v=a.getAttribute("dummytag"); if (l1v && l1v.length>0 && l1v.toLowerCase()=="placeholder"){var i1v=I1.createElement("PLACEHOLDER"); var title=a.title; if (title==null || typeof title=="undefined")title=a.getAttribute("title"); i1v.name=title; i1v.setAttribute("name",title); a.parentNode.insertBefore(i1v,a); a.parentNode.removeChild(a); ie= true; }}}else {var O1v=I1.getElementsByTagName("PLACEHOLDER"); var i1n=[]; for (var i=0; i<O1v.length; i++)i1n.push(O1v[i]); for (var i=0; i<i1n.length; i++){var a=i1n[i]; var I1v= true; try {if (a.childNodes.length>0)I1v= false; }catch (w){}if (I1v){var name=a.name; if (name==null || typeof name=="undefined")name=a.getAttribute("name"); var img=I1.createElement("IMG"); img.title=name; img.src=X.Q[4]; img.setAttribute("dummytag","placeholder"); img.setAttribute("title",name); a.parentNode.insertBefore(img,a); a.parentNode.removeChild(a); }}}return ie; };HTMLEditor.i3= function (X,link){function l1g(l1n,text){if (!l1n || text.length==0){setTimeout( function (){X.o1f( false); } ,012); }else {link.title=text; link.setAttribute("title",text); if (HTMLEditor.is_ie){setTimeout( function (){var I1b=X.I1.body.createControlRange(); I1b.add(link); I1b.select(); } ,0); }else if (HTMLEditor.O11){X.f= true; X.focusEditor(); }X.i14(); }return true; }X.I10(); var title=link.title; if (title==null || typeof title=="undefined")title=link.getAttribute("title"); X.oj("_insertPlaceHolder",X.lg("placeholder","Edit PlaceHolder"),l1g,title); };HTMLEditor.prototype.insertSpec= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1g(l1n,html){if (!l1n){X.o1f( false); }else {if (!X.i11(html)){X.o1f( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.I17(lq); if (HTMLEditor.O11)X.f= true; X.o18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.i14(); }}return true; }X.I10(); X.oj("_insertSpec",X.Og("special-characters","Insert a special character"),l1g); };HTMLEditor.prototype.spellCheck= function (Oq){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1g(l1n,o1w){if (!l1n){X.o1f( false); }else {if (HTMLEditor.O11){X.f= true; X.focusEditor(); }X.updateToolbar(); X.focusEditor(); }if (typeof Oq=="function")setTimeout( function (){Oq(l1n); X.i14(); } ,0); X.i14(); return true; }X.I10(); X.O1w( function (l1w){X.On(); X.updateToolbar(); X.oj("_spellCheck",X.Og("spell-checker","Spell checker"),l1w,l1g); } ); };HTMLEditor.prototype.customPopup= function (i1w,I1w,o1x,i1i,o1t,O1x,I1p,l1x,i1x){var X=this ; var I1x=i1i; if (i1i!=null && typeof i1i=="function"){I1x= function (lx,i1s){var ie=i1i(lx,i1s); if (lx!=null){setTimeout( function (){X.i14(); } ,0144); }return ie; } ; }X.oj("_customPopup",i1w,I1w,o1x,I1x,o1t,O1x,I1p,l1x,i1x); };HTMLEditor.prototype.insertHR= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; try { this.I10(); if (HTMLEditor.is_Safari)this.or(this.iq()); var o1y=this.I1.createElement("div"); o1y.innerHTML="<hr>"; var il=o1y.firstChild; var X=this ; var O1y=this.l1y(); if (!O1y)return; var parent=O1y.parentNode; parent.insertBefore(il,O1y); parent.removeChild(O1y); il=(il.nextSibling)?il.nextSibling:il; HTMLEditor.i1o(il,X); setTimeout( function (){X.i14(); X.updateToolbar(); } ,5); X.focusEditor(); return true; }catch (t){alert("HR: "+t.message); }};HTMLEditor.i1o= function (i1y,X){var il=i1y; if (HTMLEditor.is_ie){var lq=X.iq(); var Iq=X.or(lq); var I1y=0,_top=0; var o1z=(il.nodeType==3); var span; if (o1z){span=X.I1.createElement("SPAN"); il.parentNode.insertBefore(span,il); il=span; }while (il){if (il.tagName.toUpperCase()=="BODY")break; I1y+=il.offsetLeft; _top+=il.offsetTop; il=il.offsetParent; if (il){I1y+=il.clientLeft; _top+=il.clientTop; }}if (o1z){span.parentNode.removeChild(span); }if (lq.type.toLowerCase()!="control"){try {Iq.moveToPoint(I1y,_top); }catch (t){}}Iq.select(); }else {var lq=X.iq(); var Iq=X.or(); Iq.setStart(il,0); Iq.setEnd(il,0); X.I17(lq); if (HTMLEditor.O11)X.f= true; X.o18(lq,Iq); X.focusEditor(); }};HTMLEditor.prototype.getRange= function (){return this.or(this.iq()); };HTMLEditor.prototype.setRange= function (Iq){try {if (HTMLEditor.is_ie){Iq.select(); }else {var lq=this.iq(); this.I17(lq); this.o18(lq,Iq); } this.focusEditor(); }catch (t){}};HTMLEditor.prototype._butState= function (O1z,l1z){var id=document.getElementById(O1z); var il=id; this.i1z=l1z; var status=this.i1z(); if (il.tagName.toUpperCase()=="IMG"){var om=il.getAttribute("but_status"); if (om && om.length>0){if (om!=((status)?"_a": "_n")){il.setAttribute("but_status",((status)?"_a": "_n")); il.src=((status)?il.getAttribute("active_src"):il.getAttribute("passive_src")); }return; }var ik=il.src; var O1d=ik.search(/_[nahp]\.gif/i); if (O1d>0 && ik.substring(O1d,2).toLowerCase()!=((status)?"_a": "_n")){ik=ik.substring(0,O1d)+((status)?"_a.gif": "_n.gif"); il.src=ik; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.I1z(il,ik);} ,0144); return; }}};HTMLEditor.prototype._butOver= function (il){return; if (this.isPopup())return; if (il.tagName.toUpperCase()=="IMG"){var ik=il.src; var O1d=ik.search(/_[nahp]\.gif/i); if (O1d>0){il.setAttribute("save_src",ik); if (ik.search(/_a\.gif/i)>0)ik=ik.substring(0,O1d)+"_p.gif"; else ik=ik.substring(0,O1d)+"_h.gif"; il.src=ik; il.setAttribute("save_over","1"); return; }}if (il.className=="HE_button")il.className="HE_button_over"; };HTMLEditor.prototype._butOut= function (il){return; if (il.tagName.toUpperCase()=="IMG"){var ik=il.src; var O1d=ik.search(/_[nahp]\.gif/i); if (O1d>0){var om=il.getAttribute("save_src"); if (om && om.length>0)il.src=om; il.setAttribute("save_over",""); return; }}if (il.className=="HE_button_over")il.className="HE_button"; };HTMLEditor.prototype._butDown= function (il){var X=this ; if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; if (X.l10){X.l10.select(); X.l10=null; }}if (this.isPopup())return; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (il.tagName.toUpperCase()=="IMG"){var X=this ; var om=il.getAttribute("but_status"); if (om && om.length>0){if (om!="_a"){il.setAttribute("but_status","_a"); il.src=il.getAttribute("active_src"); X.o20=setTimeout( function (){X._butUp(il); X.o20=null; } ,03720); }return; }var ik=il.src; var O1d=ik.search(/_[nahp]\.gif/i); if (O1d>0 && ik.substring(O1d,2).toLowerCase()!="_a"){ik=ik.substring(0,O1d)+"_a.gif"; il.src=ik; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.I1z(il,ik);} ,0144); X.o20=setTimeout( function (){X._butUp(il); X.o20=null; } ,03720); return; }}};HTMLEditor.I1z= function (il,O20){var l20=il.src.search(/_[nahp]\.gif/i); var i20=O20.search(/_[nahp]\.gif/i); if (l20>0 && i20>0 && il.src.substring(0,l20).toLowerCase()==O20.substring(0,i20).toLowerCase())return; il.src=O20; setTimeout( function (){HTMLEditor.I1z(il,O20);} ,0144); };HTMLEditor.prototype._butUp= function (il){if (il.tagName.toUpperCase()=="IMG"){var X=this ; var om=il.getAttribute("but_status"); if (om && om.length>0){if (om!="_n"){if (X.o20){clearTimeout(X.o20); X.o20=null; }il.setAttribute("but_status","_n"); il.src=il.getAttribute("passive_src"); }return; }var ik=il.src; var O1d=ik.search(/_[nahp]\.gif/i); if (O1d>0 && ik.substring(O1d,2).toLowerCase()!="_n"){if (X.o20){clearTimeout(X.o20); X.o20=null; }ik=ik.substring(0,O1d)+"_n.gif"; il.src=ik; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.I1z(il,ik);} ,0144); }}return true; };HTMLEditor.prototype.l1y= function (I20){var il=this.I1.createElement("SPAN"); var X=this ; il.id=HTMLEditor.Om; if (typeof I20=="undefined"){if (!this.i11(HTMLEditor.getHTML(il, true)))return null; }else {if (I20.nextSibling==null)I20.parentNode.appendChild(il); else I20.parentNode.insertBefore(il,I20.nextSibling); I20.parentNode.removeChild(I20); }il=this.I1.getElementById(HTMLEditor.Om); il.id=null; il.removeAttribute("id"); il.setAttribute("para","no"); var parent=il.parentNode; while (parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="TD" && parent.tagName.toUpperCase()!="P" && parent.tagName.toUpperCase()!="DIV"){if (HTMLEditor.l1j(parent.tagName))parent=parent.parentNode; else break; }if (parent.tagName.toUpperCase()=="P"){il.setAttribute("para",""); function o21(add,il,O21,l21){var i21; var par=HTMLEditor.I21(O21,X.I1, false); if (add)par.appendChild(add); while (il){if (il.nodeType==1 || (il.nodeType==3 && HTMLEditor.o13(""+il.data+"").length>0)){var text=null; if (il.tagName && il.tagName.toUpperCase()=="SCRIPT")text=il.text; var o22=HTMLEditor.I21(il,X.I1, true); if (par.childNodes.length==0 || !l21)par.appendChild(o22); else par.insertBefore(o22,par.firstChild); if (text!=null)o22.text=text; }il=l21?il.previousSibling:il.nextSibling;}if (par.childNodes.length==0){ delete par; par=null; }if (O21==parent)return par; else return o21(par,l21?O21.previousSibling:O21.nextSibling,O21.parentNode,l21); } ; var O22=o21(null,il.previousSibling,il.parentNode, true); var l22=o21(null,il.nextSibling,il.parentNode, false); var par=parent.parentNode; if (O22){par.insertBefore(O22,parent); il.setAttribute("para",il.getAttribute("para")+" left"); }par.insertBefore(il,parent); if (l22){par.insertBefore(l22,parent); il.setAttribute("para",il.getAttribute("para")+" right"); }par.removeChild(parent); }return il; };HTMLEditor.prototype.mode= function (){return this.i1; };HTMLEditor.prototype.O1h= function (i22,value){ this.I1i(i22, false ,value); };HTMLEditor.prototype.I22= function (i22){return this.l1h(i22); };HTMLEditor.prototype.o23= function (){if (HTMLEditor.is_ie)return "&nbsp;"; else return "<br/>"; };HTMLEditor.prototype.insertTable= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var lq=this.iq(); var Iq; try {Iq=this.or(lq); }catch (Ij){alert(this.If("click-to-editor","Click to editing panel.")); X.I17(lq); return; }if (HTMLEditor.getSelParent(this ).ownerDocument.id!="EditorDocument"){alert(this.If("click-to-editor","Click to editing panel.")); return false; }var X=this ; var lx=X.I1; this.I10(); var o1y=this.I1.createElement("div"); o1y.innerHTML="<table></table>"; var table=o1y.firstChild; function l1g(l1n){var il=table; if (l1n){il=il.firstChild.firstChild.firstChild; HTMLEditor.i1o(il,X); setTimeout( function (){X.updateToolbar(); X.i14(); } ,5); }else {X.o1f( false); }X.focusEditor(); return true; }table.style.width=this.defaultTable.width; table.style.height=this.defaultTable.height; table.cellPadding=this.defaultTable.cellPadding; table.cellSpacing=this.defaultTable.cellSpacing; table.style.borderLeftWidth=this.defaultTable.borderWidth; table.style.borderLeftColor=this.defaultTable.borderColor; table.style.borderLeftStyle=this.defaultTable.borderStyle; table.style.backgroundColor=this.defaultTable.backgroundColor; table.style.backgroundImage=this.defaultTable.backgroundImage; for (var i=0; i<this.defaultTable.rows; i++){var O23=table.insertRow(table.rows.length); for (var Oh=0; Oh<this.defaultTable.columns; Oh++){var cell=O23.insertCell(O23.cells.length); if (HTMLEditor.is_Safari){if (!cell.colSpan || parseInt(cell.colSpan)==0){cell.colSpan="1"; cell.setAttribute("colspan","1"); }if (!cell.rowSpan || parseInt(cell.rowSpan)==0){cell.rowSpan="1"; cell.setAttribute("rowspan","1"); }}cell.innerHTML=this.o23(); }}var O1y=this.l1y(); if (!O1y){X.o1f( false); return; }var parent=O1y.parentNode; parent.insertBefore(table,O1y); parent.removeChild(O1y); X.oj("_tableProperties",X.Og("table","Insert a Table"),table,l1g,0,0); };HTMLEditor.prototype.makeNotEditable= function (){var X=this ; if (!(X.l1 && X.mode()=="html" && !X.isPopup()))return; var O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(X.l1b()): ""; var lq=X.iq(); var Iq=X.or(lq); if (X.isControl())return; if (!((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0)))return; var lq=X.iq(); var Iq=X.or(lq); var l23=HTMLEditor.Om+"_right"; var i23=HTMLEditor.Om+"_left"; var I23=null; var o24=null; if (HTMLEditor.is_ie){I23=Iq.duplicate(); o24=Iq.duplicate(); I23.setEndPoint("EndToStart",Iq); o24.setEndPoint("StartToEnd",Iq); }else {I23=Iq.cloneRange(); o24=Iq.cloneRange(); I23.setEnd(I23.startContainer,I23.startOffset); o24.setStart(o24.endContainer,o24.endOffset); }var I1a=null; var o1b=null; X.I10(); if (!X.i11("<span id='"+l23+"'/>",o24))return []; if (!X.i11("<span id='"+i23+"'/>",I23)){var O24=X.I1.getElementById(l23); if (O24!=null){ik=O24.parentNode; ik.removeChild(O24); }X.o1f( false); return; }I1a=X.I1.getElementById(i23); o1b=X.I1.getElementById(l23); if (I1a==null){var span=X.I1.createElement("SPAN"); span.id=i23; o1b.parentNode.insertBefore(span,o1b); I1a=span; }if (o1b==null){var span=X.I1.createElement("SPAN"); span.id=l23; if (I1a.nextSibling)I1a.parentNode.insertBefore(span,I1a.nextSibling); else I1a.parentNode.appendChild(span); o1b=span; }HTMLEditor.l24(I1a); HTMLEditor.l24(o1b); var i24=HTMLEditor.I24(I1a,o1b); var o25=null; if (i24!=null){var parent=i24.parent; var O25=parent.tagName.toUpperCase(); var il=null; if (O25=="TR" || O25=="TBODY" || O25=="TABLE"){var il=parent; while (il && il.tagName.toUpperCase()!="TABLE")il=il.parentNode; }else if (O25=="OL" || O25=="UL" || O25=="DL"){var il=parent; }if (il!=null){il.parentNode.insertBefore(I1a,il); if (il.nextSibling)il.parentNode.insertBefore(o1b,il.nextSibling); else il.parentNode.appendChild(o1b); i24=HTMLEditor.I24(I1a,o1b); parent=i24.parent;}var l25=i24.parent.childNodes.item(i24.i25); var I25=i24.parent.childNodes.item(i24.o26); var O26="SPAN"; o25=X.I1.createElement(O26); if (HTMLEditor.is_ie)o25.contentEditable="false"; else o25.setAttribute("contenteditable","false"); parent.insertBefore(o25,l25);while (l25!=null){var l26=l25.nextSibling; o25.appendChild(l25); if (l25==I25)break; l25=l26; }if (HTMLEditor.is_ie){Iq=X.I1.body.createControlRange(); Iq.add(o25); Iq.select(); }else {lq=X.iq(); var i17; if (o25.nextSibling!=null && o25.nextSibling.nodeType==3){i17=o25.nextSibling; }else {i17=X.I1.createTextNode(""); if (o25.nextSibling!=null)o25.parentNode.insertBefore(i17,o25.nextSibling); else o25.parentNode.appendChild(i17); }X.I17(lq); Iq=X.or(lq); Iq.setStart(i17,0); Iq.setEnd(i17,0); X.o18(lq,Iq); }}if (I1a!=null)I1a.parentNode.removeChild(I1a); if (o1b!=null)o1b.parentNode.removeChild(o1b); if (o25!=null){var index=HTMLEditor.l17(o25); HTMLEditor.i26(o25.parentNode,this.I1,index,index+1); }};HTMLEditor.prototype.insertIMG= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var lq=this.iq(); var Iq=this.or(lq); var X=this ; var lx=X.I1; this.I10(); function l1g(l1n){try {var il=lx.getElementById(HTMLEditor.Om); il.id=null; il.removeAttribute("id"); if (l1n){if (HTMLEditor.is_Safari){il=(il.nextSibling)?il.nextSibling:il; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.I17(lq); X.o18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){var I1b=lx.body.createControlRange(); I1b.add(il); I1b.select(); }else {if (HTMLEditor.O11)X.f= true; il=(il.nextSibling)?il.nextSibling:il; HTMLEditor.i1o(il,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.i14(); }else {X.o1f( false); }X.focusEditor(); }catch (t){alert("IMG create: "+t.message); }return true; }var o1y=this.I1.createElement("div"); o1y.innerHTML="<img>"; var img=o1y.firstChild; img.id=HTMLEditor.Om; img.src=""; img.alt=""; img.border=0; img.align=""; img.vspace=0; img.hspace=0; if (!HTMLEditor.is_ie){}if (this.i11(HTMLEditor.getHTML(img, true))){var il=lx.getElementById(HTMLEditor.Om); this.oj("_imageProperties",this.Og("image","Insert Image"),il,l1g, true); }else {X.o1f( false); }};HTMLEditor.prototype.insertFlash= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var lq=this.iq(); var Iq=this.or(lq); var X=this ; var lx=X.I1; this.I10(); function l1g(l1n){try {var il=lx.getElementById(HTMLEditor.Om); il.id=null; il.removeAttribute("id"); if (l1n){if (HTMLEditor.is_Safari){il=(il.nextSibling)?il.nextSibling:il; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.I17(lq); X.o18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){il.id=HTMLEditor.Om; this.I10(); setTimeout( function (){X.o1f( false); var i1c=X.I1.getElementById(HTMLEditor.Om); i1c.id=null; i1c.removeAttribute("id"); var I1b=X.I1.body.createControlRange(); I1b.add(i1c); I1b.select(); } ,0); }else {if (HTMLEditor.O11)X.f= true; il=(il.nextSibling)?il.nextSibling:il; HTMLEditor.i1o(il,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.i14(); }else {X.o1f( false); }X.focusEditor(); }catch (t){alert("Flash create: "+t.message); }return true; }var o1y=this.I1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); o1y.innerHTML="\x3cembed src=\""+src+"\" type=\"application/x-shockwave-flash\" id=\""+HTMLEditor.Om+"\" quality=\"high\" wmode=\"transparent\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" >"; }else {o1y.innerHTML="\x3cimg type=\"application/x-shockwave-flash\" dummytag=\"embed\" id=\""+HTMLEditor.Om+"\" quality=\"high\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\""+" src=\""+X.Q[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; o1y.firstChild.style.backgroundImage="url('"+X.Q[2]+"')"; }var I26=o1y.firstChild; var o27=HTMLEditor.getHTML(I26, true); if (this.i11(o27)){var il=lx.getElementById(HTMLEditor.Om); this.oj("_flashProperties",this.Og("flash","Insert Flash"),il,l1g); }else {X.o1f( false); }};HTMLEditor.prototype.insertMedia= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var lq=this.iq(); var Iq=this.or(lq); var X=this ; var lx=X.I1; this.I10(); function l1g(l1n){try {var il=lx.getElementById(HTMLEditor.Om); il.id=null; il.removeAttribute("id"); if (l1n){if (HTMLEditor.is_Safari){il=(il.nextSibling)?il.nextSibling:il; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.I17(lq); X.o18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){il.id=HTMLEditor.Om; this.I10(); setTimeout( function (){X.o1f( false , function (){var i1c=X.I1.getElementById(HTMLEditor.Om); i1c.id=null; i1c.removeAttribute("id"); var I1b=X.I1.body.createControlRange(); I1b.add(i1c); I1b.select(); } ); } ,0); }else {if (HTMLEditor.O11)X.f= true; il=(il.nextSibling)?il.nextSibling:il; HTMLEditor.i1o(il,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.i14(); }else {X.o1f( false); }X.focusEditor(); }catch (t){alert("Media create: "+t.message); }return true; }var o1y=this.I1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); o1y.innerHTML="\x3cembed src=\""+src+"\" type=\"application/x-mplayer2\" id=\""+HTMLEditor.Om+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\" >"; }else {o1y.innerHTML="\x3cimg type=\"application/x-mplayer2\" dummytag=\"embed\" id=\""+HTMLEditor.Om+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\""+" src=\""+X.Q[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; o1y.firstChild.style.backgroundImage="url('"+X.Q[3]+"')"; }var I26=o1y.firstChild; if (this.i11(HTMLEditor.getHTML(I26, true))){var il=lx.getElementById(HTMLEditor.Om); this.oj("_mediaProperties",this.Og("media","Insert Media"),il,l1g); }else {X.o1f( false); }};HTMLEditor.o1= function (){ this.width="auto"; this.height="auto"; this.O27="background-color: #fff; font-family: verdana,sans-serif; border-width: 0px;"+"margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "+"padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; font-size: 10pt; color:#404040;"; } ; HTMLEditor.l27=050; HTMLEditor.prototype._changeHeight= function (i27){var X=this ; var l26=document.getElementById(X.mainDivId); var I27=null; var height; if (this.ShowQuickFormatDivId!=null)I27=document.getElementById(X.ShowQuickFormatDivId); if (parseInt(X.O15.style.height)+i27<0)return; if (this.i1=="text"){if (this.ShowQuickFormatDivId!=null)HTMLEditor.I18(this.ShowQuickFormatDivId); }else {if (!this._autoFocus && !this._wasFocused){HTMLEditor.I18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.I18(this.ShowQuickFormatDivId); }}var o19=l26.offsetWidth; try {height=parseInt(X._textArea.style.height)+i27+"px"; X._textArea.style.height=height; }catch (t){}height=parseInt(X.O15.style.height)+i27+"px"; X.O15.style.height=height; X.I8.l9=height; if (HTMLEditor.is_ie && document.compatMode!="BackCompat")X.I8.l9=parseInt(height)+2+"px"; if (!HTMLEditor.is_Safari){if (typeof X.Ix!="undefined"){X.Ix=parseInt(X.Ix)+i27; }}if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+i27+"px"; }if (X.Iv){X.Iv.style.height=parseInt(X.Iv.style.height)+i27+"px"; }if (I27){height=parseInt(I27.childNodes.item(1).style.height)+i27+"px"; I27.childNodes.item(1).style.height=height; }if (!HTMLEditor.is_ie){if (o19!=l26.offsetWidth){X._onresize(); }}if (X.i1=="text"){if (X.ShowQuickFormatDivId!=null)HTMLEditor.o15(X.ShowQuickFormatDivId); }else {if (!X._autoFocus && !X._wasFocused){HTMLEditor.o15(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.o15(X.ShowQuickFormatDivId, true); }}};HTMLEditor.prototype.increaseHeight= function (){ this._changeHeight(HTMLEditor.l27); };HTMLEditor.prototype.decreaseHeight= function (){ this._changeHeight(0-HTMLEditor.l27); };HTMLEditor.prototype.setHeight= function (size){try { this._changeHeight(size-document.getElementById(this.mainDivId).offsetHeight); }catch (t){}};HTMLEditor.prototype.getHeight= function (size){return document.getElementById(this.mainDivId).offsetHeight; };HTMLEditor.prototype._onresize= function (t){var X=this ; if (typeof t!="undefined"){if (!X._autoFocus && !X._wasFocused){HTMLEditor.I18(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I18(X.ShowQuickFormatDivId); }}var l26=document.getElementById(X.mainDivId); var O1e=document.getElementById(X.panelDivId); if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.o28 && typeof X.o28!="undefined"){X.O15.style.visibility="hidden"; }try {if (X.I8.O28!=l26.offsetWidth){var width=l26.offsetWidth-X.I8.O28; if (!HTMLEditor.is_ie){if (X.I8.I19!=O1e.offsetHeight)width-=2; X.O15.style.width=parseInt(X.O15.style.width)+width+"px"; X.I8.O9=X.O15.style.width; if (X._iframe){X._iframe.style.width=X.O15.style.width; }if (X.Iv){X.Iv.style.width=X.O15.style.width; }}if (HTMLEditor.i13){if (X._iframe){X._iframe.style.width=parseInt(X._iframe.style.width)+width+"px"; }}X.I8.O28=l26.offsetWidth; X.I8.l28=O1e.offsetWidth; }if (X.I8.I19!=O1e.offsetHeight){var height=X.I8.I19-((O1e.style.display=="none")?0:O1e.offsetHeight); X.O15.style.height=parseInt(X.O15.style.height)+height+(!HTMLEditor.is_ie && document.compatMode!="BackCompat"?2: 0)+"px";if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+height+"px"; var i28=(O1e.offsetWidth>0)?O1e.offsetWidth:X.oy; if (!HTMLEditor.is_ie){X._iframe.style.width=i28-2+"px"; }}if (X.Iv && X.Iv.style.display!="none"){X.Iv.style.height=parseInt(X.Iv.style.height)+height+"px"; if (!HTMLEditor.is_ie){X.Iv.style.width=i28-2+"px"; }}X.I8.l9=parseInt(X.I8.l9)+height+"px"; if (X.Iv!=null && X.Iv.style.display=="none")X.Iv.style.height=X.I8.l9; if (!HTMLEditor.is_ie){X.I8.O9=i28-2+"px"; X.O15.style.width=i28-2+"px"; X.oy=i28; }X.I8.I19=O1e.offsetHeight; }}catch (t){}if (typeof t!="undefined"){if (!X._autoFocus && !X._wasFocused){HTMLEditor.o15(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.o15(X.ShowQuickFormatDivId, true); }}if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.o28 && typeof X.o28!="undefined"){X.o28=X.O15.value; X.O15.value=""; X.O15.style.visibility="hidden"; X.setTimeout( function (Ox){if (X.lu(Ox))return; X.O15.value=X.o28; X.o28=null;X.O15.style.visibility="visible"; X.focusEditor(); } ,036); }};HTMLEditor.prototype.o1a= function (o19){var X=this ; function I28(){var lx; if (HTMLEditor.is_Safari)lx=document.getElementById(X._hiddenContent+"_inner_iframePreview").contentWindow.document; else lx=X.Iv.contentWindow.document; if (!lx){if (HTMLEditor.o29 || HTMLEditor.O11){setTimeout( function (){I28(); } ,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var O29=o19; var l29= false; function i29(I29,O22,l22){O29=l22; l29= true; }o19.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,i29); o19=O29; lx.open(); var html=new o2a(); if (X.d!=null)html.write(X.d); html.write("<html"+(X.B!=null?X.B: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); if (X.D!=null)html.write(X.D); html.write("\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var O2a=0; O2a<X._addCssFiles.length; O2a++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[O2a]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }html.write("</head>"); html.write("<body"+(X.C!=null?X.C: "")+">"); html.write(o19); html.write("</body>"); html.write("</html>"); lx.write(html.toString()); lx.close(); if (HTMLEditor.is_ie)X.Iv.style.visibility="visible"; setTimeout( function (){if (!HTMLEditor.is_Safari){var O1e=document.getElementById(X.panelDivId); O1e.style.display="none"; }if (X.ShowQuickFormatDivId!=null){}if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_ie){X.Iv.style.width="100%"; setTimeout( function (){X.Iv.style.width=X.Iv.offsetWidth+"px"; X.O15.style.width=X.Iv.offsetWidth+"px"; } ,0); X.Iv.style.height=X.I8.l9; }}} ,0); X.On(); }setTimeout(I28,(HTMLEditor.o29 || HTMLEditor.O11)?0144: 0); };HTMLEditor.o9= function (className){if (HTMLEditor.is_Safari)return true; var l2a=document.styleSheets,i2a=l2a.length; var I2a= false; var o1w=[]; function o2b(O2b){if (O2b.imports){try {var imports=O2b.imports,i2a=imports.length; for (var i=0; i<i2a; i++)o2b(O2b.imports[i]); }catch (t){}}try {var rules=HTMLEditor.is_ie?O2b.rules:O2b.cssRules,i2a=rules.length; for (var Oh=0; Oh<i2a; Oh++)l2b(rules[Oh]); }catch (t){}}function l2b(rule){try {var select=rule.selectorText,style=rule.style; o1w.push( {select:select,style:style } ); }catch (w){}}for (var i=0; i<i2a; i++)o2b(l2a[i]); for (var i=0; i<o1w.length; i++){try {var item=o1w[i]; if (item.select.indexOf(className)>=0)return true; }catch (w){}}return I2a; };HTMLEditor.prototype.Iw= function (){var X=this ; var Y=this._textArea; if (X.I8==null){if (HTMLEditor.o9(".HE_editPanel")){X.I8= {O9:X._textArea.offsetWidth,l9:X._textArea.offsetHeight } ; }else {setTimeout( function (){X.Iw(); } ,062); return; }}var height=(this.I.height=="auto"?(parseInt(this.I8.l9)+"px"): this.I.height); height=parseInt(height); var width=(this.I.width=="auto"?(parseInt(this.I8.O9)+"px"): this.I.width); width=parseInt(width); var Ih=HTMLEditor.o13(X._textArea.value); if (X.F==null){X.F=[]; function i2b(I29,O22){X.F.push(I29); return ""; }Ih=Ih.replace(/(<style(?:[^>]*?)>(?:[^<]*?)<\/style(?:[^>]*?)>)/gi,i2b); X._textArea.value=Ih; }Y.style.display="none"; var I2b=document.createElement("div"); I2b.className="inner_htmlarea"; this.l1=I2b; Y.parentNode.insertBefore(I2b,Y); var iframe=document.createElement("iframe"); iframe.id=X._hiddenContent+"_inner_iframe"; iframe.name=X._hiddenContent+"_inner_iframe"; if (this.ignoreTab)iframe.tabIndex=-1; if (HTMLEditor.is_ie)iframe.src="javascript:false;"; if (HTMLEditor.is_ie)iframe.style.visibility="hidden"; iframe.className="inner_iframe"; I2b.appendChild(iframe); this._iframe=iframe; iframe.marginHeight="0"; iframe.marginWidth="0"; iframe.style.borderWidth="0px"; if (HTMLEditor.is_ie && !HTMLEditor.i13)iframe.style.width="100%"; else {if (!HTMLEditor.O11 && document.compatMode!="BackCompat")width-=2; iframe.style.width=width+"px"; }iframe.style.height=height+"px"; this.Iv=document.createElement("iframe"); this.Iv.style.display="none";if (HTMLEditor.is_ie)this.Iv.style.visibility="hidden"; this.Iv.id=X._hiddenContent+"_inner_iframePreview"; this.Iv.name=X._hiddenContent+"_inner_iframePreview"; if (this.ignoreTab)this.Iv.tabIndex=-1; if (HTMLEditor.is_ie)this.Iv.src="javascript:false;"; this.Iv.className="inner_iframe"; I2b.appendChild(this.Iv); this.Iv.marginHeight="0"; this.Iv.marginWidth="0"; this.Iv.style.borderWidth="0px"; if (HTMLEditor.is_ie)this.Iv.style.width="100%"; else { this.Iv.style.width=width+"px"; } this.Iv.style.height=height+"px"; Y=document.createElement("textarea"); if (HTMLEditor.is_ie){width="100%"; }else width=parseInt(iframe.offsetWidth)+"px"; height=parseInt(iframe.offsetHeight); if (HTMLEditor.is_ie)if (document.compatMode!="BackCompat")height-=2; Y.style.width=width; Y.style.height=height+"px";Y.style.margin="0px"; Y.style.padding="0px"; Y.style.borderWidth="0px"; Y.style.overflow="auto"; if (this.ignoreTab)Y.tabIndex=-1; Y.style.display="none"; if (HTMLEditor.is_ie)Y.style.visibility="hidden"; I2b.appendChild(Y); this.O15=Y; function o2c(Ox){if (X.lu(Ox))return; var lx; if (HTMLEditor.is_Safari)lx=document.getElementById(X._hiddenContent+"_inner_iframe").contentWindow.document; else lx=X._iframe.contentWindow.document; if (!lx){if (HTMLEditor.o29 || HTMLEditor.O11){X.setTimeout(o2c,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}try {if (HTMLEditor.o29 || HTMLEditor.O11){lx.designMode="on"; }}catch (t){document.location.reload( true); return false; }X.I1=lx; lx.open(); var html=new o2a(); if (X.d!=null)html.write(X.d.replace(/(<!doctype [^>]*>)/ig,"")); html.write("<html"+(X.B!=null?X.B: "")+(HTMLEditor.is_ie?" xmlns:teo"+HTMLEditor.Om: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); html.write("\x3clink rel=\"stylesheet\" href=\""+X.Q[013]+"\" media=\"all\" />"); if (HTMLEditor.is_ie){html.write("<style> li {margin-top: 1px;} </style>"); }for (var O2c=0; O2c<X.F.length; O2c++)html.write(X.F[O2c]); html.write("\x3cstyle>\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var O2a=0; O2a<X._addCssFiles.length; O2a++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[O2a]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }if (X.D!=null)html.write(X.D.replace(/<meta[^\0]*?\/>/gi,"")); html.write("</head>"); html.write("<body id='editorBody'"+(X.C!=null?X.C: "")+">"); if (!HTMLEditor.is_ie){}else Ih=Ih.replace(/&amp;/ig,"&"); if (Ih.length==0){if (HTMLEditor.is_ie){}else {Ih="<br/>"; }}if (!HTMLEditor.is_ie){if (/<iframe/.test(Ih)){X.l11=Ih; Ih="";}else {X.l11=null; }}html.write(Ih); html.write("</body>"); html.write("</html>"); lx.write(html.toString()); lx.close(); if (HTMLEditor.is_ie && X._autoFocus)X._iframe.style.visibility="visible"; lx.id="EditorDocument"; if (HTMLEditor.is_ie){function l2c(il){if (il.nodeType==1 && il.tagName){var Il=il.tagName.toUpperCase(); if (Il!="INPUT" && Il!="TEXTAREA" && Il!="IFRAME"){il.unselectable="on"; }for (var i2c=0; i2c<il.childNodes.length; i2c++)l2c(il.childNodes.item(i2c)); }}l2c(document.getElementById(X.mainDivId)); lx.body.unselectable="off"; Y.unselectable="off"; if (X._autoFocus)lx.body.contentEditable= true; }else {try {if (X.panelDivId!=null)if (document.getElementById(X.panelDivId))document.getElementById(X.panelDivId).style.MozUserSelect="none"; if (X.bottomPanelDivId!=null)if (document.getElementById(X.bottomPanelDivId))document.getElementById(X.bottomPanelDivId).style.MozUserSelect="none"; }catch (t){}}HTMLEditor.ow(lx,["keydown","keypress","mousedown","mouseup","dblclick"], function (event){return X.I2c(event); } ); if (HTMLEditor.O11)HTMLEditor.Ik(X._iframe,"blur", function (event){X.f= false; HTMLEditor._stopEvent(event); return true; } ); if (HTMLEditor.O11)HTMLEditor.Ik(X._iframe,"focus", function (event){X.f= true; HTMLEditor._stopEvent(event); return true; } ); if (X._NoDrop){if (HTMLEditor.is_ie){HTMLEditor.ow(lx.body,["drop"], function (event){HTMLEditor._stopEvent(event); return false; } ); HTMLEditor.ow(lx.body,["dragenter","dragover"], function (event){HTMLEditor._stopEvent(event); return false; } ); }else {HTMLEditor.ow(lx,["dragdrop"], function (event){HTMLEditor._stopEvent(event); return false; } ); }}if (X._NoPaste && HTMLEditor.is_ie){HTMLEditor.ow(lx.body,["beforepaste","paste"], function (event){HTMLEditor._stopEvent(event); return false; } ); }if (!X.o2d){var O1e=document.getElementById(X.mainDivId); X.I8.O28=O1e.offsetWidth; O1e=document.getElementById(X.panelDivId); X.I8.I19=O1e.offsetHeight; X.I8.l28=O1e.offsetWidth; if (!O1e.style.width || O1e.style.width.indexOf("px")<0){X.o2d= true; HTMLEditor.Ik(X.O1,"resize", function (event){X._onresize(event); } ); }if (X.__NoToolBar__ || HTMLEditor.O11){if (X.__NoToolBar__)O1e.style.display="none"; X.setTimeout( function (Ox){if (X.lu(Ox))return; X._onresize(); if (HTMLEditor.is_Safari || HTMLEditor.O11){X._iframe.style.width="100%"; X.setTimeout( function (Ox){if (X.lu(Ox))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.O15.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }}else {X.setTimeout( function (Ox){if (X.lu(Ox))return; if (X.__NoToolBar__){var O1e=document.getElementById(X.panelDivId); O1e.style.display="none"; }if (HTMLEditor.is_Safari)X.setTimeout( function (Ox){if (X.lu(Ox))return; X._onresize(); } ,0); else {X._onresize(); }if (!HTMLEditor.is_ie){X._iframe.style.width="100%"; X.setTimeout( function (Ox){if (X.lu(Ox))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.O15.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }} ; X.setTimeout(o2c,(HTMLEditor.o29 || HTMLEditor.O11)?0144: 0); this.O2d= true; } ; HTMLEditor.o5= function (X,table,l2d){function l1g(l1n){if (!l1n){X.o1f( false); }else {if (HTMLEditor.O11){X.f= true; X.focusEditor(); }setTimeout( function (){X.updateToolbar(); X.i14(); } ,012); }return true; }var i2d=0,I2d=0; while (l2d!=null){if (l2d.tagName){if (l2d.tagName.toUpperCase()=="TD"){if (HTMLEditor.is_Safari){var o2e=l2d.parentNode; for (var i=0; i<o2e.cells.length; i++)if (o2e.cells.item(i)==l2d){I2d=i; break; }}else I2d=l2d.cellIndex; i2d=l2d.parentNode.rowIndex; break; }}l2d=l2d.parentNode; }X.I10(); if (table.getAttribute("width") && table.getAttribute("width").length>0){table.style.width=parseInt(table.getAttribute("width"))+"px"; table.removeAttribute("width"); }if (table.getAttribute("height") && table.getAttribute("height").length>0){table.style.width=parseInt(table.getAttribute("height"))+"px"; table.removeAttribute("height"); }if (table.getAttribute("background") && table.getAttribute("background").length>0){table.style.backgroundImage="url("+table.getAttribute("background")+")"; table.removeAttribute("background"); }if (table.getAttribute("border") && table.getAttribute("border").length>0){table.style.borderTopWidth=parseInt(table.getAttribute("border"))+"px"; table.style.borderLeftWidth=parseInt(table.getAttribute("border"))+"px"; table.removeAttribute("border"); }X.oj("_tableProperties",X.lg("table","Edit a Table"),table,l1g,i2d,I2d); };HTMLEditor.I4= function (X,cell){function l1g(l1n){if (!l1n){X.o1f( false); }else {if (HTMLEditor.O11){X.f= true; X.focusEditor(); }X.updateToolbar(); X.i14(); }return true; }X.I10(); X.oj("_cellProperties",X.lg("cell","Edit a Cell"),cell,l1g); };HTMLEditor.I3= function (X,img){function l1g(l1n){if (!l1n){setTimeout( function (){X.o1f( false); } ,012); }else {if (HTMLEditor.is_ie){setTimeout( function (){var I1b=X.I1.body.createControlRange(); I1b.add(img); I1b.select(); } ,0); }else if (HTMLEditor.O11){X.f= true; X.focusEditor(); }X.i14(); }return true; }X.I10(); X.oj("_imageProperties",X.lg("image","Edit an Image"),img,l1g); };HTMLEditor.prototype.editImage= function (img){if (img.tagName && img.tagName.toUpperCase()=="IMG")HTMLEditor.I3(this,img); };HTMLEditor.O2= function (X,il){var O2e= false; try {X.I10(); O2e= true; if (!HTMLEditor.is_ie)il=HTMLEditor.contentEditable(il); il.contentEditable="inherit"; il.removeAttribute("contenteditable"); if (il.tagName && (il.tagName.toUpperCase()=="SPAN" || il.tagName.toUpperCase()=="DIV")){var count=0; if (il.attributes)for (var i=0; i<il.attributes.length; i++){var l2e=il.attributes[i]; if (l2e.name.toUpperCase()=="STYLE")continue; if (l2e.specified)count++; }var i2e=(il.style)?il.style.cssText: ""; var par=il.parentNode; if (count==0 && i2e.length==0){while (il.firstChild!=null)par.insertBefore(il.firstChild,il); par.removeChild(il); }HTMLEditor.i26(par,X.I1); }}catch (w){try {if (O2e)X.o1f( false); if (HTMLEditor.is_ie){HTMLEditor.i1o(il,X); }}catch (o14){}}};HTMLEditor.l2= function (X,I26){function l1g(l1n){if (!l1n){setTimeout( function (){X.o1f( false); } ,0); }else {if (HTMLEditor.is_ie){I26.id=HTMLEditor.Om; X.I10(); setTimeout( function (){X.o1f( false); var i1c=X.I1.getElementById(HTMLEditor.Om); i1c.id=null; i1c.removeAttribute("id"); var I1b=X.I1.body.createControlRange(); I1b.add(i1c); I1b.select(); } ,0); }else if (HTMLEditor.O11){X.f= true; X.focusEditor(); }X.i14(); }return true; }X.I10(); X.oj("_flashProperties",X.lg("flash","Edit a Flash"),I26,l1g); };HTMLEditor.O3= function (X,media){function l1g(l1n){if (!l1n){setTimeout( function (){X.o1f( false); } ,012); }else {if (HTMLEditor.is_ie){X.I10(); setTimeout( function (){X.o1f( false); } ,012); }else if (HTMLEditor.O11){X.f= true; X.focusEditor(); }X.i14(); }return true; }X.I10(); X.oj("_mediaProperties",X.lg("media","Edit Media"),media,l1g); };HTMLEditor.prototype.I2e= function (media,Op){var X=this;if (media!=null){media.id=HTMLEditor.Om; }X.I10(); X.Iv.style.display="none"; if (HTMLEditor.is_ie)X.Iv.style.visibility="hidden"; try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); if (HTMLEditor.is_ie)X.iq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var om=X.l1.removeChild(X._iframe); X._textArea.value=""; X._textArea.style.visibility="hidden"; X._textArea.style.display=""; X._iframe=null; delete om; }catch (t){}setTimeout( function (){X.activate( function (){X.o2f( false); if (media!=null){var i1c=X.I1.getElementById(HTMLEditor.Om); i1c.id=null; i1c.removeAttribute("id"); media=i1c; }if (typeof Op=="function")Op(media); } ); } ,0); };HTMLEditor.o3= function (X,O2f){X.I10(); var l2f=O2f; if (l2f.getAttribute(HTMLEditor.Ot) && l2f.getAttribute(HTMLEditor.Ot).length>0){var ik=X.lt(l2f); if (ik!=null)l2f=ik; }setTimeout( function (){if (HTMLEditor.is_ie){var lq=X.iq(); lq.empty(); }var par=l2f.parentNode; if (par!=null){par.removeChild(l2f); if (par.tagName && par.tagName.toUpperCase()=="TD" && par.childNodes.length==0){par.innerHTML=X.o23(); }}if (HTMLEditor.is_ie){var I16=X.K[X.l1e-1]; var lq=X.iq(); lq.empty(); var Iq=X.I1.body.createTextRange(); try {Iq.moveToPoint(I16.i2f,I16.I2f); }catch (t){}Iq.select(); Iq.execCommand("refresh", false , false); }X.i14(); } ,012); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.DeleteNode= function (O2f){HTMLEditor.o3(this,O2f); };HTMLEditor.l5= function (X,O2f){X.cut(); };HTMLEditor.I5= function (X,O2f){X.copy(); };HTMLEditor.o6= function (X,O2f){X.paste(); };HTMLEditor.l6= function (X,O2f){X.pasteText(); };HTMLEditor.I6= function (X,O2f){X.deleteSelection(); };HTMLEditor.o7= function (X,O2f){X.selectAll(); };HTMLEditor.i5= function (X,O2f){var O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(X.l1b()): ""; var lq=X.iq(); var Iq=X.or(lq); if (HTMLEditor.is_ie)if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; if (!X.isControl() && ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0)))return true; return false; };HTMLEditor.O6= function (X,O2f){if (!X.isControl()){if (!HTMLEditor.is_ie){var Iq=X.or(X.iq()); var O22=Iq.startContainer; var l22=Iq.endContainer; var il=HTMLEditor.contentEditable(O22); if (il==null)il=HTMLEditor.contentEditable(l22); if (il!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return !X._NoPaste; }return false; };HTMLEditor.i6= function (X,O2f){if (!X.isControl()){if (!HTMLEditor.is_ie){var Iq=X.or(X.iq()); var O22=Iq.startContainer; var l22=Iq.endContainer; var il=HTMLEditor.contentEditable(O22); if (il==null)il=HTMLEditor.contentEditable(l22); if (il!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return true; }return false; };HTMLEditor.i2= function (X,O2f){var l2f=O2f; if (l2f.getAttribute(HTMLEditor.Ot) && l2f.getAttribute(HTMLEditor.Ot).length>0){var ik=X.lt(l2f); if (ik!=null)l2f=ik; }setTimeout( function (){var o2g=X.I1.body.createControlRange(); o2g.add(l2f); o2g.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.l1f(); X.i1f("c", false); X.On(); X.I1f(); } ,0);}else {X.i1f("c", false); setTimeout( function (){X.iq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.I2= function (X,O2f){var l2f=O2f; if (l2f.getAttribute(HTMLEditor.Ot) && l2f.getAttribute(HTMLEditor.Ot).length>0){var ik=X.lt(l2f); if (ik!=null)l2f=ik; }setTimeout( function (){var o2g=X.I1.body.createControlRange(); o2g.add(l2f); o2g.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.l1f(); X.i1f("x", false); X.On(); } ,0);}else {X.i1f("x", false); setTimeout( function (){X.iq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.o11= function (par){try {var il=this.I1.body; if (il.firstChild)if (il.firstChild.nodeType==3){var Ih=HTMLEditor.o13(""+il.firstChild.data+""); if (Ih.length==0)il.removeChild(il.firstChild); else if (Ih!=(""+il.firstChild.data+""))il.firstChild.data=Ih; }if (HTMLEditor.is_ie)if (il.childNodes.length==1){il=il.firstChild; if (il.nodeType==1)if (il.tagName.toLowerCase()=="p" || il.tagName.toLowerCase()=="ul" || il.tagName.toLowerCase()=="ol"){var O2g= false; var l2g=(il.tagName.toLowerCase()=="ul" || il.tagName.toLowerCase()=="ol")? true : false; function i2g(Ic){var ie= false; if (Ic.nodeType==1){if (!(l2g && Ic.tagName.toUpperCase()=="LI"))if (HTMLEditor.I2g(Ic) || Ic.tagName.toUpperCase()=="IMG" || Ic.tagName.toUpperCase()=="IFRAME" || Ic.tagName.toUpperCase()=="EMBED" || Ic.tagName.toUpperCase()=="SCRIPT")return true; if (Ic.childNodes.length>1)return true; if (Ic.childNodes.length==0)return false; ie |= i2g(Ic.firstChild); }else if (Ic.nodeType==3){ie |= true; }return ie; }if (il.childNodes.length==1){if (!i2g(il.firstChild)){il.removeChild(il.firstChild); O2g= true; }}if (O2g || il.parentNode.innerHTML.toLowerCase()=="<p>&nbsp;</p>")this.I1.body.removeChild(il); }} this.i14(); }catch (t){}};HTMLEditor.o2h=navigator.userAgent.toLowerCase(); HTMLEditor.is_ie=((HTMLEditor.o2h.indexOf("msie")!=-1) && (HTMLEditor.o2h.indexOf("opera")==-1)) && (window.opera==null || !window.opera); HTMLEditor.i13=(/MSIE (8)/.test(navigator.userAgent) && document.compatMode!="BackCompat"); HTMLEditor.O11=(HTMLEditor.o2h.indexOf("opera")!=-1) || window.opera; HTMLEditor.O2h=(HTMLEditor.o2h.indexOf("mac")!=-1); HTMLEditor.l2h=(HTMLEditor.is_ie && HTMLEditor.O2h); HTMLEditor.i2h=(HTMLEditor.is_ie && !HTMLEditor.O2h); HTMLEditor.o29=(navigator.product=="Gecko"); HTMLEditor.is_Safari=(HTMLEditor.o2h.indexOf("safari")!=-1); HTMLEditor.I2h=(HTMLEditor.o2h.indexOf("firefox")!=-1); HTMLEditor.o2i=(HTMLEditor.o2h.indexOf("safari")!=-1); HTMLEditor.O2i=(HTMLEditor.o2h.indexOf("firefox")!=-1); HTMLEditor.l2i=HTMLEditor.o29 && navigator.i2i=="Camino"; HTMLEditor.I2i=!HTMLEditor.O11 && navigator.userAgent.indexOf("Konqueror")!=-1; HTMLEditor.o2j=HTMLEditor.I2i || HTMLEditor.o2i; HTMLEditor.Ok=(/[^12]\.(\d+)\.(\d+) safari/i).test(HTMLEditor.o2h); HTMLEditor.ok=(HTMLEditor.o2h.indexOf("netscape")!=-1 && navigator.vendorSub.replace(/^(\d+)\.\d*/,"$1")<8) || (HTMLEditor.o29 && navigator.productSub<0114371117) || (HTMLEditor.is_Safari && !HTMLEditor.Ok); HTMLEditor.O2j= function (){var l2j="",i2j; if (HTMLEditor.O11){l2j=opera.l2j(); }else {if (HTMLEditor.o29){i2j=/rv:([^);]+)(\)|;)/; }else if (HTMLEditor.is_ie){i2j=/MSIE\s+([^);]+)(\)|;)/; }else if (HTMLEditor.o2i){i2j=/WebKit\/(\S+)/; }else if (HTMLEditor.I2i){i2j=/Konqueror\/([^);]+)(\)|;)/; }if (i2j){i2j.test(navigator.userAgent); l2j=RegExp.$1; }}return l2j; };HTMLEditor.compareVersions= function (I2j,o2k){var O2k=0,l2k=String(I2j).split("."),i2k=String(o2k).split("."),I2k=Math.max(l2k.length,i2k.length); for (var o2l=0; O2k==0 && o2l<I2k; o2l++){var O2l=l2k[o2l] || "",l2l=i2k[o2l] || "",i2l=new RegExp("(\\d*)(\\D*)","g"),I2l=new RegExp("(\\d*)(\\D*)","g"); do {var o2m=i2l.exec(O2l) || ["","",""],O2m=I2l.exec(l2l) || ["","",""]; if (o2m[0].length==0 && O2m[0].length==0){break; }var l2m=o2m[1].length==0?0:parseInt(o2m[1],012),i2m=O2m[1].length==0?0:parseInt(O2m[1],012); O2k=HTMLEditor.I2m(l2m,i2m) || HTMLEditor.I2m(o2m[2].length==0,O2m[2].length==0) || HTMLEditor.I2m(o2m[2],O2m[2]);}while (O2k==0);}return O2k;} ; HTMLEditor.I2m= function (left,right){if (left<right){return -1;}else if (left>right){return 1;}return 0;} ; HTMLEditor.o2n= function (O2n,l2n){return HTMLEditor.compareVersions(O2n,l2n); } ; HTMLEditor.i2n= function (l2j){return HTMLEditor.o2n(HTMLEditor.O2j(),l2j)>=0; } ; if (HTMLEditor.is_Safari && !HTMLEditor.Ok)( function (){var I2n=String.prototype.replace; String.prototype.replace= function (search,replace){if (typeof replace!="function"){return I2n.apply(this,arguments);}var Ih=""+this ; var o2o=replace; if (!(search instanceof RegExp)){var O2o=Ih.indexOf(search); return (O2o==-1?Ih:I2n.apply(Ih,[search,o2o(search,O2o,Ih)]));}var l2o=search; var o1w=[]; var i2o=l2o.lastIndex; var i2j; while ((i2j=l2o.exec(Ih))!=null){var O2o=i2j.index; var Ib=i2j.concat(O2o,Ih); o1w.push(Ih.slice(i2o,O2o),o2o.apply(null,Ib).toString()); if (!l2o.global){i2o+=RegExp.lastMatch.length; break; }else {i2o=l2o.lastIndex; }}o1w.push(Ih.slice(i2o)); return o1w.join(""); };} )(); HTMLEditor.r= function (){if (HTMLEditor.o29){if (navigator.productSub<0114321402 && !HTMLEditor.is_Safari){alert("Mozilla \x3c 1.3 Beta is not supported!\nI\'ll try, though, but it might not work."); }}if (HTMLEditor.O2h && !(HTMLEditor.is_Safari || HTMLEditor.I2h)){alert(this.If("mac-using","Use Safari or FireFox...")); return false; }if (HTMLEditor.O11){var l2j=0; var I2o=0; function test(I29,O22,l22){l2j=parseInt(O22); I2o=parseInt(l22); }HTMLEditor.o2h.replace(/opera\/(\d+)\.(\d+)/ig,test); if (!(l2j*0144+I2o>=01630)){alert("Opera < 9.20 is not supported"); return false; }}return HTMLEditor.o29 || HTMLEditor.is_ie || HTMLEditor.O11; } ; HTMLEditor.Ik= function (il,o2p,Op){if (!il){return; }if (il.attachEvent)il.attachEvent("on"+o2p,Op); else {if (il.addEventListener)il.addEventListener(o2p,Op, true); }} ; HTMLEditor.ow= function (il,O2p,Op){if (!il){return; }try {if (typeof il.push=="function"){for (var i=0; i<O2p.length; i++)for (var Oh=0; Oh<il.length; Oh++)HTMLEditor.Ik(il[Oh],O2p[i],Op); }else {for (var i=0; i<O2p.length; i++)HTMLEditor.Ik(il,O2p[i],Op); }}catch (t){ throw t; }} ; HTMLEditor.od= function (il,o2p,Op){if (il.detachEvent)il.detachEvent("on"+o2p,Op); else {if (il.removeEventListener)il.removeEventListener(o2p,Op, true); }} ; HTMLEditor.l2p= function (il,O2p,Op){if (il.push){for (var i=0; i<O2p.length; i++)for (var Oh=0; Oh<il.length; Oh++)HTMLEditor.od(il[Oh],O2p[i],Op); }else {for (var i=0; i<O2p.length; i++)HTMLEditor.od(il,O2p[i],Op); }} ; HTMLEditor._stopEvent= function (Ij){if (Ij)if (HTMLEditor.is_ie){Ij.cancelBubble= true; Ij.returnValue= false; }else {Ij.preventDefault(); Ij.stopPropagation(); }} ; HTMLEditor.prototype._stopEvent= function (Ij){HTMLEditor._stopEvent(Ij); };HTMLEditor.prototype._formSubmit= function (Ij){if (!this.op && this.mainDivVisible){try {return [document.getElementsByName(this._hiddenContent)[0].value,document.getElementsByName(this._hiddenContent)[0].value]; }catch (w){return ["",""]; }}var o19=""; if (this.i1=="preview"){o19=""; if (this.I15=="html")o19=this.l19; else o19=this.O15.value; if (HTMLEditor.is_Safari){}}else {if (this.i1=="html"){o19=this.getHTML(); }else {if (this.O15)o19=this.O15.value; else o19=this._textArea.value; }}if (this.NoScript){ this._textArea.value=this._textArea.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); o19=o19.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); }var i2p=o19.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"); if (!this._remainLf)i2p=HTMLEditor.o13(i2p); this._textArea.value=i2p; return [i2p,o19]; } ; HTMLEditor.prototype._prepareHTML= function (Ih){var save=this.i1; this.i1="text"; var I2p=(this.O15)? true : false; if (!I2p){var Y=document.createElement("textarea"); this.O15=Y; if (HTMLEditor.is_Safari)document.body.appendChild(Y); }if (!(this.Iu && !HTMLEditor.S())){ this.O15.value=(this._textArea.value.length>0)?(this._textArea.value.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,"\"").replace(/&amp;/g,"&")): ((typeof Ih=="string")?Ih.replace(/&quot;/g,"\""):Ih.value); function o2q(I29,O22){if (O22=="\\n")return "\n"; return O22.replace("\\\\","\\"); } this.O15.value=this.O15.value.replace(/([\\]+n)/g,o2q); if (this.InitialCleanUp)this.O15.value=HTMLEditor.O2q(HTMLEditor.o13(this.O15.value.replace(/[\n\r]+/g," "))); if (typeof Ih!="string")Ih.value=""; document.getElementsByName(this._hiddenContent)[0].value=HTMLEditor.o13(this.O15.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")); if (document.getElementsByName(this._hiddenContent+"_modified").length==0){var ik=document.createElement("input"); ik.type="hidden"; ik.name=this._hiddenContent+"_modified"; document.getElementsByName(this._hiddenContent)[0].parentNode.insertBefore(ik,document.getElementsByName(this._hiddenContent)[0]); }}if (this._textArea.style.visibility=="hidden")this._textArea.style.visibility="visible"; this.F=null; var ie=this.getHTML(); if (!I2p){ this.O15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; } this.i1=save; return ie; };HTMLEditor.prototype.setOriginal= function (oo){var X=this ; if (X.mode()=="preview"){X.l16= false; X.l= true; }else if (X.mode()=="text"){X.O16=X.O15.value; X.l16= false; X.l= true; }else {X.l14=HTMLEditor.o13((typeof oo!="undefined" && oo!=null)?oo:HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.i14(); }X.l= false; }return true; };HTMLEditor.prototype.setContent= function (Ih,l2q,i2q){if (this.mode()=="preview")return false; var X=this ; if (typeof i2q=="function"){ this.L=i2q; }function I2q(){if (typeof Ih=="string"){if (!X.It() || !X.mainDivVisible){X._textArea.value=""; X._textArea.value=X._prepareHTML(Ih.replace(/"/g,"&quot;")); X.On(); X.i14(); return false; }try {try {if (X.mode()=="html")X.I10(); }catch (t){}var om=X._textArea.parentNode.removeChild(X.l1); X.l1=null; delete om; }catch (t){}try {X._textArea.value=""; X._textArea.value=X._prepareHTML(Ih.replace(/"/g,"&quot;")); if ((typeof l2q!="undefined") && l2q){X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.l1e=-1; }}X.activate(); if (X.mainDivVisible)setTimeout( function (){X.focusEditor(); } ,0454); }catch (t){X.On(); return false; }X.i14(); }else {if ((typeof l2q!="undefined") && l2q){X.l14=HTMLEditor.o13(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.i14(); }if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.l1e=-1; }}X.On(); }return true; }if (this.mode()=="text"){if (this.mainDivVisible){try {if (typeof Ih=="string")X.O15.value=Ih; if ((typeof l2q!="undefined") && l2q){X.O16=X.O15.value; X.l16= false; X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.l1e=-1; }}}catch (t){return false; }return true; }else {if (typeof Ih=="string"){X._textArea.value=""; X._textArea.value=X._prepareHTML(Ih.replace(/"/g,"&quot;")); if (X.O15!=null && X.O15!="undefined")X.O15.value=X._textArea.value; }return true; }}if (this.mode()=="html"){if (this.mainDivVisible){function o2r(){if (X.op){X.openWait(); setTimeout(I2q,0); }else {setTimeout(o2r,0144); }}o2r(); }return true; }return false; };HTMLEditor.prototype.getContent= function (O2r){var ie; if (this.i1=="preview"){if (this.I15=="html")ie=this.l19; else ie=this.O15.value; }else if (HTMLEditor.is_ie){if (this.i1=="html"){ie=this.getHTML(); }else {var I2p=(this.O15)? true : false; if (!I2p){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.O15=Y; this.O15.value=document.getElementsByName(this._hiddenContent)[0].value.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }ie=HTMLEditor.l2r(this.O15.value); if (!I2p){ this.O15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }}}else {ie=this.getHTML(); }if (!(typeof O2r!="undefined" && O2r)){ie=HTMLEditor.o13(ie); ie=ie.replace(/[\0-\x1f]+$/,""); }if (ie.length>=6)if (ie.substr(ie.length-5,5)=="<br/>")ie=ie.substr(0,ie.length-5); else if (ie.substr(ie.length-6,6)=="<br />")ie=ie.substr(0,ie.length-6); else if (ie.substr(ie.length-4,4)=="<br>")ie=ie.substr(0,ie.length-4); return ie; } ; HTMLEditor.prototype.TextSelected= function (){if (this.mode()!="html")return false; var O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(this.l1b()): ""; var lq=this.iq(); var Iq=this.or(lq); if (!this.isControl() && ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0)))return true; else return false; };HTMLEditor.prototype.getContentWait= function (Oq,O2r){if (typeof Oq=="function"){var X=this ; X.openWait(); setTimeout( function (){Oq(X.getContent(O2r)); X.On(); } ,0); }} ; HTMLEditor.prototype.openWait= function (i2q){if (!this._pleaseWait)return; try {var Ic=document.getElementById(this.mainDivId).parentNode; var ou= true; while (Ic){if (Ic.style && Ic.style.display=="none"){ou= false; break; }Ic=Ic.parentNode; }if (this.N!=null || !ou || !this.mainDivVisible)return; if (typeof i2q=="function"){ this.L=i2q; }var popup; var X=this ; popup=X.A.ownerDocument.createElement("div"); popup.className="popup_wait"; popup.innerHTML="<div><center><nobr>"+X.If("wait","Please wait...")+"<nobr></center></div>"; X.A.appendChild(popup); var O9=parseInt(popup.offsetWidth); var l9=parseInt(popup.offsetHeight); popup.style.display="none"; var y; var x; var i2r=(X.i1=="text")?(X.l1==null?null:X.O15): ((X.i1=="preview")?X.Iv:X._iframe); if (i2r==null && X._textArea && X._textArea.style.I2r!="none" && X._textArea.style.visibility!="hidden")i2r=X._textArea; if (i2r==null || typeof i2r=="undefined")i2r=document.getElementById(X.mainDivId); var o2s=parseInt(i2r.offsetWidth); var O2s=parseInt(i2r.offsetHeight); var l2s=HTMLEditor.i2s(i2r, false); y=O2s/2-l9/2+l2s._top; x=o2s/2-O9/2+l2s.I1y; popup.style.top=y+"px"; popup.style.left=x+"px"; this.N=popup; popup.style.display=""; }catch (t){alert("openWait: "+t.message); }};HTMLEditor.prototype.On= function (){if (this.L!=null){var I2s=this.L; setTimeout(I2s,0764); this.L=null; }if (HTMLEditor.is_ie && this.mainDivVisible && this.It() && this.i1=="html" && document.getElementById(this.mainDivId)!=null){try { this.updateToolbar(); }catch (t){} ; }if (this.N==null)return; var ik; try {ik=this.A.removeChild(this.N); delete ik; }catch (t){} this.N=null; };HTMLEditor.prototype.oc= function (i2q){try {if (document.getElementById(this.mainDivId)==null)return; var Ic=document.getElementById(this.mainDivId).parentNode; var ou= true; while (Ic){if (Ic.style && Ic.style.display=="none"){ou= false; break; }Ic=Ic.parentNode; }if (this.n!=null || !ou || !this.mainDivVisible)return; var popup; var X=this ; popup=X.A.ownerDocument.createElement("div"); popup.style.zIndex="20000"; popup.style.position="absolute"; popup.innerHTML="\x3cimg src=\""+this.Q[6]+"\">"; X.A.appendChild(popup); var O9=parseInt(popup.clientWidth); var l9=parseInt(popup.clientHeight); popup.style.display="none"; var y; var x; var i2r=(X.i1=="text")?(X.l1==null?null:X.O15): ((X.i1=="preview")?X.Iv:X._iframe); if (i2r==null && X._textArea && X._textArea.style.I2r!="none" && X._textArea.style.visibility!="hidden")i2r=X._textArea; if (i2r==null || typeof i2r=="undefined")i2r=document.getElementById(X.mainDivId); var o2s=parseInt(i2r.clientWidth); var O2s=parseInt(i2r.clientHeight); var l2s=HTMLEditor.i2s(i2r, false); y=O2s/2-l9/2+l2s._top; x=o2s/2-O9/2+l2s.I1y; popup.style.top=y+"px"; popup.style.left=x+"px"; this.n=popup; popup.style.display=""; }catch (t){}};HTMLEditor.prototype.o2t= function (){if (this.n==null)return; var ik=this.A.removeChild(this.n); delete ik; this.n=null; };HTMLEditor.prototype.setVisibility= function (p){if (!this.os)return false; var X=this ; if (p){if (!X.mainDivVisible){X.mainDivVisible= true; document.getElementById(X.mainDivId).style.display="block"; if (X.Ir==0){if (X._setRealSize && typeof X._setRealSize=="function"){X._setRealSize(); }X.I8= {O9:X._textArea.offsetWidth,l9:X._textArea.offsetHeight } ; X.i1="html"; X.openWait(); X._textArea.style.visibility="hidden"; X.setTimeout( function (Ox){if (X.lu(Ox))return; X.activate(); } ,0); }else {X.chMode("html"); }}}else {if (X.mainDivVisible){var V=0; if (X.v!=null && typeof X.v.pop=="function"){while (X.v.length>0){var T=X.v.pop(); if (typeof T[0]=="function"){try {clearTimeout(T[1]); }catch (t){}V++; }}X.v=null; }try {X.On();}catch (w){} ; var O2t=X.clearPopups(); if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; }if (V>0)X.i1="undef"; var l2t= false; if (X.i1=="html" || X.i1=="preview"){if (X.i1=="html")X.I0= false; if (O2t)setTimeout( function (){X.chMode("text", function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ); } ,0764); else X.chMode("text", function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ); }else if (X.i1=="undef"){X.i1="text"; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.iq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; try {X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; }catch (t){} ; var om=null; try {om=X.l1.removeChild(X._iframe); }catch (t){} ; X._iframe=null; if (om!=null) delete om; om=null; try {om=X.l1.removeChild(X.Iv); }catch (t){} ; X.Iv=null; if (om!=null) delete om; om=null; try {om=X.l1.removeChild(X.O15); }catch (t){} ; X.O15=null; if (om!=null) delete om; om=null; try {om=X.l1.parentNode.removeChild(X.l1); }catch (t){} ; X.l1=null; if (om!=null) delete om; if (!HTMLEditor.is_Safari){X.Ix=X.I8.l9; X.i19=X.I8.I19; }X._textArea.style.display="block"; }catch (t){}l2t= true; }else if (X.i1=="text")l2t= true; if (X.ShowQuickFormatDivId!=null)HTMLEditor.I18(X.ShowQuickFormatDivId); if (l2t)setTimeout( function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ,024); }}document.getElementsByName(X.mainDivVisibleName)[0].value=(X.mainDivVisible)?"true": "false"; };HTMLEditor.l2r= function (Ih){return Ih.replace(/<br>/ig,"<br/>"); };HTMLEditor.prototype.getHTML= function (on,i2t){try {var l15=this.i1; if (l15=="preview"){l15=this.I15; if (l15=="html"){return this.l19; }}function I2t(I29,O22){return "&#"+O22.charCodeAt(0).toString(012)+";"; }function o2u(I29,O22){return "\x3cspan class=\""+HTMLEditor.Om+"_script\" style=\'display:none;visibility:hidden;\'>"+O22.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }var O2u=[]; function l2u(I29,O22){O2u.push(O22); return "";}function i2u(I29,O22,l22,I2u){return O22.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var o2v=-1; function O2v(I29,O22,l22,I2u){o2v++; var l2v; if (!HTMLEditor.is_ie)l2v=O2u[o2v].replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); else l2v=O2u[o2v]; return O22+l2v+I2u; }function i2v(I29,O22){X.c=O22; return I29; } ; function I2v(I29,O22){X.d=O22; return ""; } ; function o2w(I29,O22){X.D=O22; return ""; } ; function i29(I29,O22,l22){X.C=O22; return l22; } ; function O2w(I29,O22){X.B=O22; return I29; } ; switch (l15){case "html": this.o11(); var oo=(typeof i2t!="undefined"); if (typeof on=="undefined" || on== false){var l2w=!HTMLEditor.iy(this,this.I1, true); var i2w=!HTMLEditor.Iy(this,this.I1, true); oo=oo && l2w && i2w; }var I2w=""; if (this.F!=null)for (var i=0; i<this.F.length; i++){I2w+=this.F[i].replace(new RegExp("}\\s*","g"),"}\n").replace(/(<style(?:[^>]*?)>)/ig,"$1\n")+"\n"; }if (HTMLEditor.is_ie){var ik=(oo && typeof i2t!="undefined")?i2t:HTMLEditor.getHTML(this.I1.body, false , true); var o2x=ik; this.l16=!(this.l14==ik); ik=ik.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); ik=ik.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); ik=ik.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); ik=ik.replace(/(<p[^>]*?>)\s*(<span id="OboutMSIEparagraph_left"><\/span>)(&nbsp;)(<span id="OboutMSIEparagraph_right"><\/span>)\s*(<\/p[^>]*?>)/ig,"$1$2<br/>$4$5"); ik=ik.replace(/(<p[^>]*?>)\s*(<span id="OboutMSIEparagraph_left"><\/span><span id="OboutMSIEparagraph_right"><\/span>)(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1$2<br/>$4"); ik=ik.replace(/(<p[^>]*?>)\s*(&nbsp;)(<span id="OboutMSIEparagraph_left"><\/span><span id="OboutMSIEparagraph_right"><\/span>)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3$4"); ik=ik.replace(/(<p[^>]*?>)(<\/p[^>]*?>)/ig,"$1<br/>$2"); ik=ik.replace(/(<p[^>]*?>)(<span id="OboutMSIEparagraph_left"><\/span>)(<span id="OboutMSIEparagraph_right"><\/span>)(<\/p[^>]*?>)/ig,"$1$2<br/>$3$4"); if (o2x!=ik)this.o16=null; if (!(this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML)){ik=((this.I1.body.style.cssText.length>0)?"\x3cdiv style=\""+this.I1.body.style.cssText.replace("\"","'")+"\">": "")+ik+((this.I1.body.style.cssText.length>0)?"</div>": ""); }if (this.predicatedTags)ik=ik.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); if (this.NoScript)ik=ik.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); if (/<embed/ig.test(ik)){ik=ik.replace(/(<embed(?:.*?))(\sloop="true")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\splay="true")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\sbgcolor="")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\sscale="")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\shspace="0")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\svspace="0")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\swmode="[^"]+")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(pseudomode=)("[^"]*")((?:.*?)>)/ig,"$1wmode=$3$4"); ik=ik.replace(/(<embed(?:.*?))(\swmode="")((?:.*?)>)/ig,"$1$3"); }var O2x=I2w+HTMLEditor.l2r(ik); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var l2x=""; if (this.d!=null)l2x+=this.d; l2x+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">"; if (this.I1.getElementById("oboutEditorDefaultStyle")==null){l2x+="\n\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; l2x+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"; }if (this._addCssFiles!=null){l2x+="\n"; for (var O2a=0; O2a<this._addCssFiles.length; O2a++){var i2x= true; if (this.D!=null && this.D.length>0){var I2x=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[O2a]+"\"","ig");if (I2x.test(this.D))i2x= false; }if (i2x)l2x+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[O2a]+"\" media=\"all\" />\n"; }}if (this.D!=null)l2x+=this.D; l2x+="\x3c/head>\n"; if (this.I1.body.style.cssText.length>0){var o2y="<div"+(this.C!=null?this.C: "")+"></div>"; var O2y=document.createElement("DIV"); O2y.innerHTML=o2y; O2y.firstChild.style.cssText+=";"+this.I1.body.style.cssText; o2y=HTMLEditor.getHTML(O2y, false , true); o2y=o2y.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");l2x+="<body"+o2y+">\n"; }else {l2x+="<body"+(this.C!=null?this.C: "")+">\n"; }l2x+=O2x+"\n"; l2x+="\x3c/body>\n\x3c/html>"; O2x=l2x; }if (this.NoUnicode)O2x=O2x.replace(/([\x80-\uffff])/g,I2t);if (HTMLEditor.o13(O2x)=="<br />")O2x=""; O2x=O2x.replace(/^([\n|\r]+)/,""); var l2y=new RegExp("(<[/]?)(teo"+HTMLEditor.Om+":)","ig"); O2x=O2x.replace(l2y,"$1"); return O2x; }var i2y=this.I1.createElement("DIV"); i2y.style.cssText=this.I1.body.style.cssText; if (!this.NoScript)this.I1.body.innerHTML.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,l2u); i2y.innerHTML=HTMLEditor.o13(this.I1.body.innerHTML); var Oo=(oo && typeof i2t!="undefined")?i2t:HTMLEditor.getHTML(this.I1.body, false , true); this.l16=!(this.l14==HTMLEditor.o13(Oo)); var O1v=i2y.getElementsByTagName("IMG"); var I2y=[]; for (var i=0; i<O1v.length; i++)I2y.push(O1v[i]); for (var Oh=0; Oh<I2y.length; Oh++){var img=I2y[Oh]; var l2e; l2e=img.getAttribute("dummytag"); if (l2e && l2e.length>0 && l2e.toLowerCase()=="embed"){var src=img.getAttribute("dummysrc"); var o2z=img.getAttribute("dummybgcolor"); var wmode=img.getAttribute("pseudomode"); var O2z=img.attributes; var embed=this.I1.createElement("EMBED"); var i2j=/(rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\))/ig; embed.src=src; embed.width=img.width; embed.height=img.height; if (o2z && o2z.length>0){function l2z(i2z){return (i2z<020)?("0"+i2z.toString(020)):i2z.toString(020); } ; function I2z(o30,$1,$2,$3,$4){var I1g=parseInt($2); var O30=parseInt($3); var b=parseInt($4); return "#"+l2z(I1g)+l2z(O30)+l2z(b); }try {o2z=o2z.replace(i2j,I2z); }catch (t){}embed.setAttribute("bgcolor",o2z); }if (wmode && wmode.length>0)embed.setAttribute("wmode",wmode); for (var i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); var value=a.value; if (name=="dummytag" || name=="dummysrc" || name=="dummybgcolor" || name=="style" || name=="wmode" || name=="pseudomode" || name=="src")continue; if (name=="loop" && value=="true")continue; if (name=="play" && value=="true")continue; if (name=="hspace" && value=="0")continue; if (name=="vspace" && value=="0")continue; if (name=="scale" && value.length==0)continue; if (name=="align" && value.length==0)continue; embed.setAttribute(name,value); }if (img.style.width && img.style.width.length>0)embed.style.width=img.style.width; if (img.style.height && img.style.height.length>0)embed.style.height=img.style.height; img.parentNode.insertBefore(embed,img); img.parentNode.removeChild(img); }}if (this.predicatedTags)HTMLEditor.restoreOldTags(i2y,document,this ); HTMLEditor.i26(i2y,document); var ik=HTMLEditor.getHTML(i2y,(i2y.style.cssText.length>0 && !(this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML))? true : false , true ,0); if (!this.NoScript)ik=ik.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,O2v); else ik=ik.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); delete i2y; if (this.predicatedTags)ik=ik.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); var O2x=I2w+HTMLEditor.l2r(ik); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var l2x=""; if (this.d!=null)l2x+=this.d; l2x+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">\n"; if (this.I1.getElementById("oboutEditorDefaultStyle")==null){l2x+="\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; l2x+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; }if (this._addCssFiles!=null){for (var O2a=0; O2a<this._addCssFiles.length; O2a++){var i2x= true; if (this.D!=null && this.D.length>0){var I2x=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[O2a]+"\"","ig");if (I2x.test(this.D))i2x= false; }if (i2x)l2x+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[O2a]+"\" media=\"all\" />\n"; }}if (this.D!=null)l2x+=this.D; l2x+="\x3c/head>\n"; if (this.I1.body.style.cssText.length>0){var o2y="<div"+(this.C!=null?this.C: "")+"></div>"; var O2y=document.createElement("DIV"); O2y.innerHTML=o2y; O2y.firstChild.style.cssText+=";"+this.I1.body.style.cssText; o2y=HTMLEditor.getHTML(O2y, false , true); o2y=o2y.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");l2x+="<body"+o2y+">\n"; }else {l2x+="<body"+(this.C!=null?this.C: "")+">\n"; }l2x+=O2x+"\n"; l2x+="\x3c/body>\n\x3c/html>"; O2x=l2x; }if (this.NoUnicode)O2x=O2x.replace(/([\x80-\uffff])/g,I2t);if (HTMLEditor.o13(O2x)=="<br />")O2x=""; O2x=O2x.replace(/^([\n|\r]+)/,""); return O2x; case "text":var I2p=(this.O15)? true : false; var ie; if (!I2p){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.O15=Y; this.O15.value=this._textArea.value; }if (this.NoScript)this.O15.value=this.O15.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/ig,""); this.D=null; this.C=null; this.c=null; this.B=null; this.d=null; var X=this ; this.O15.value=this.O15.value.replace(/<html(?=\s|>)([^>]*?)>/gi,O2w); this.O15.value=this.O15.value.replace(/<head(?=\s|>)([^>]*?)>/gi,i2v); this.O15.value=this.O15.value.replace(/^([^\0]+?)<html(?=\s|>)(?:[^>]*?)>/gi,I2v); this.O15.value=this.O15.value.replace(/<\/html(?=\s|>)(?:[^>]*?)>[^\0]*$/gi,""); this.O15.value=this.O15.value.replace(/<head(?=\s|>)(?:[^>]*?)>([^\0]*?)<\/head(?=\s|>)(?:[^>]*?)>/gi,o2w); this.O15.value=this.O15.value.replace(/<body(?=\s|>)([^>]*?)>([^\0]*?)<\/body(?=\s|>)(?:[^>]*?)>/gi,i29); this.O15.value=this.O15.value.replace(/<\/?html(?=\s|>)(?:[^>]*?)>/gi,""); this.O15.value=this.O15.value.replace(/<\/?head(?=\s|>)(?:[^>]*?)>/gi,""); this.O15.value=this.O15.value.replace(/<\/?body(?=\s|>)(?:[^>]*?)>/gi,""); this.O15.value=this.O15.value.replace(/<object(?:[^>]*?)>(?:[^\0]*?)(<embed(?:[^>]*?)>)(?:[^\0]*?)<\/object(?:[^>]*?)>/gi,"$1"); if (HTMLEditor.is_ie){var l30=this.O15.value.replace(/([\n\r]+<)/g,"<"); l30=HTMLEditor.o13(l30.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); l30=l30.replace(/(&amp;)/g,"&amp;amp;"); l30=l30.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); l30=l30.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); l30=l30.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); if (/<embed/ig.test(l30)){l30=l30.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); l30=l30.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); }ie=l30; }else {var src=document.createElement("DIV"); if (!this.NoScript)this.O15.value.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,l2u); src.innerHTML=HTMLEditor.o13(this.O15.value.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); var O1v=src.getElementsByTagName("EMBED"); var i30=[]; for (var i=0; i<O1v.length; i++)i30.push(O1v[i]); for (var Oh=0; Oh<i30.length; Oh++){var embed=i30[Oh]; var img=document.createElement("IMG"); var O2z=embed.attributes; img.src=this.Q[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); var value=a.value; if (name=="src")name="dummysrc"; else if (name=="bgcolor")name="dummybgcolor"; else if (name=="wmode")name="pseudomode"; img.setAttribute(name,value); }img.style.cssText="border: 1px dotted #000000; background-image: url('"+(img.getAttribute("type").toLowerCase()=="application/x-mplayer2"?this.Q[3]: this.Q[2])+"'); background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;"; if (embed.style.width && embed.style.width.length>0)img.style.width=embed.style.width; if (embed.style.height && embed.style.height.length>0)img.style.height=embed.style.height; embed.parentNode.insertBefore(img,embed); embed.parentNode.removeChild(embed); }if (this.predicatedTags)HTMLEditor.I30(src,this, true); HTMLEditor.i26(src,document); var ik=HTMLEditor.o13(HTMLEditor.getHTML(src, false , true)); if (!this.NoScript)ik=ik.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,O2v); if (O2u.length>0){} delete src; ie=HTMLEditor.l2r(ik); }if (!I2p){ this.O15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }return ie; break; default:alert("Mode <"+mode+"> not defined"); return false; }}catch (t){ this.On(); return ""; }} ; HTMLEditor.prototype.o31= function (html){switch (this.i1){case "html": this.I1.body.innerHTML=html; break; case "text": this.O15.value=html; break; default:alert("Mode <"+mode+"> not defined"); }return false; } ; HTMLEditor.O31= function (il){var lr=" script style div span a del strong em u strike font b sub sup p iframe li ul ol placeholder textarea td tr "; return (lr.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.l31= function (il){var lr=" hr br "; return (lr.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.i31= function (Ih){return Ih.replace(/&/ig,"&amp;").replace(/</ig,"&lt;").replace(/>/ig,"&gt;").replace(/"/ig,"&quot;").replace(/\xa0/ig,"&nbsp;"); } ; HTMLEditor.ly= function (l1p,lx){var I31; for (var o32=l1p.firstChild; o32; o32=I31){if (o32.nodeType==1 || o32.nodeType==013){if (o32.tagName.length>0){if (o32.tagName.indexOf("/")>=0 && o32.tagName.toLowerCase().substr(o32.tagName.indexOf("/")+1)=="embed"){var I31=o32.nextSibling; o32.parentNode.removeChild(o32); continue; }var closed=(!(o32.hasChildNodes() || HTMLEditor.O31(o32))); if ((closed || o32.tagName.toLowerCase()=="placeholder") && !HTMLEditor.l31(o32) && o32.tagName.toLowerCase()!="embed"){var Il=o32.tagName.toLowerCase(); var o1v=o32.nextSibling; var ig=[]; while (o1v!=null){if (o1v.nodeType==o32.nodeType && o1v.tagName)if (o1v.tagName.indexOf("/")>=0)if (o1v.tagName.toLowerCase().substr(o1v.tagName.indexOf("/")+1)==Il){o1v.parentNode.removeChild(o1v); Il="teo"+HTMLEditor.Om+":"+o32.tagName; var O32=lx.createElement(Il); var O2z=o32.attributes; for (var i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; O32.setAttribute(a.name,a.value); }O32.style.cssText=o32.style.cssText; if (o32.className.length>0)O32.className=o32.className; o32.parentNode.insertBefore(O32,o32); o32.parentNode.removeChild(o32); for (var i=0; i<ig.length; i++){O32.appendChild(ig[i]); }o32=O32; break; }ig.push(o1v); o1v=o1v.nextSibling; } delete ig; }}HTMLEditor.ly(o32,lx); }I31=o32.nextSibling; }};HTMLEditor.getHTML= function (o32,l32,i32){try {if (typeof i32=="undefined"){if (!l32 && o32.nodeType==1){return o32.innerHTML; }else if (l32 && o32.nodeType==1 && HTMLEditor.is_ie){return o32.outerHTML; }}}catch (t){}var html=new o2a( true); HTMLEditor.I32(html,o32,l32); return html.toString(); };HTMLEditor.I32= function (html,o32,l32,i32){switch (o32.nodeType){case 1:case 013:if (o32.tagName && o32.tagName.indexOf("/")>=0){if (HTMLEditor.is_ie){var Il=o32.tagName.toLowerCase().substr(o32.tagName.indexOf("/")+1); var o33=o32.previousSibling; if (Il=="embed")return; while (o33!=null){if (o33.nodeType==o32.nodeType && o33.tagName && o33.tagName.toLowerCase()==Il){html.write("</teo"+HTMLEditor.Om+":"+o32.tagName.toLowerCase().substr(o32.tagName.indexOf("/")+1)+">"); return; }o33=o33.previousSibling; }}return; }var closed; var O33; var i; if (l32 && o32.tagName.length>0){closed=(!(o32.hasChildNodes() || HTMLEditor.O31(o32))); O33= true; var l33=""; if (HTMLEditor.is_ie && o32.scopeName && typeof o32.scopeName!="undefined"){l33=(o32.scopeName.toUpperCase()=="HTML")?"": (o32.scopeName+":"); }if (HTMLEditor.is_ie && (closed || o32.tagName.toLowerCase()=="placeholder") && !HTMLEditor.l31(o32) && o32.tagName.toLowerCase()!="embed"){var Il=o32.tagName.toLowerCase(); var o1v=o32.nextSibling; while (o1v!=null){if (o1v.nodeType==o32.nodeType && o1v.tagName)if (o1v.tagName.indexOf("/")>=0)if (o1v.tagName.toLowerCase().substr(o1v.tagName.indexOf("/")+1)==Il){closed= false; O33= false; break; }o1v=o1v.nextSibling; }}if (!HTMLEditor.i33(o32)){html.write("\n"); }html.write("<"+((!closed && !O33)?"teo"+HTMLEditor.Om+":":l33)+o32.tagName.toLowerCase()); if (HTMLEditor.is_ie && o32.name && o32.name.length>0){html.write(" name"+"=\""+o32.name.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.value && o32.value.length>0 && o32.tagName.toLowerCase()!="textarea"){html.write(" value"+"=\""+o32.value.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.className && o32.className.length>0){html.write(" class"+"=\""+o32.className.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.align && o32.align.length>0){html.write(" align"+"=\""+o32.align.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.color && o32.color.length>0){html.write(" color"+"=\""+o32.color.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.size && o32.size.length>0 && o32.size!="+0"){html.write(" size"+"=\""+o32.size.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.shape && o32.shape.length>0){html.write(" shape"+"=\""+o32.shape.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.coords && o32.coords.length>0){html.write(" coords"+"=\""+o32.coords.replace(/"/g,"&quot;")+"\""); }var O2z=o32.attributes; for (i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); if (name.substr(0,4)=="_moz"){continue; }if (name=="teoalign"){continue; }var value; if (name!="style"){if (name=="width"){value=o32.width; if (HTMLEditor.is_ie && value==0){var I33=0; o32.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?width=)([\\d]+)","ig"), function (I29,O22){I33=O22; } ); if (value!=I33)value=I33; }}else if (name=="height"){value=o32.height; if (HTMLEditor.is_ie && value==0){var I33=0; o32.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?height=)([\\d]+)","ig"), function (I29,O22){I33=O22; } ); if (value!=I33)value=I33; }}else if (HTMLEditor.is_ie && name=="name" && o32.name && o32.name.length>0)continue; else if (HTMLEditor.is_ie && name=="value" && o32.value && o32.value.length>0)continue; else if (HTMLEditor.is_ie && name=="align" && o32.align && o32.align.length>0)continue; else if (HTMLEditor.is_ie && name=="class" && o32.className && o32.className.length>0)continue; else if (HTMLEditor.is_ie && name=="color" && o32.color && o32.color.length>0)continue; else if (HTMLEditor.is_ie && name=="size" && o32.size && o32.size.length>0)continue; else if (HTMLEditor.is_ie && name=="shape" && o32.shape && o32.shape.length>0)continue; else if (HTMLEditor.is_ie && name=="coords" && o32.coords && o32.coords.length>0)continue; else {if (o32.tagName.toLowerCase()=="embed" && name=="align" && HTMLEditor.is_ie){value=HTMLEditor.o34(a.value); }else {value=a.value; if (name=="src" || name=="href"){if (HTMLEditor.is_ie){var I33=""; o32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=\")([^\"]*?)\"","ig"), function (I29,O22){I33=O22; } ); if (I33=="")o32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=')([^']*?)'","ig"), function (I29,O22){I33=O22; } ); if (I33=="")o32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=)([^s>]*?)","ig"), function (I29,O22){I33=O22; } ); if (value!=I33 && I33!=""){value=I33; value=value.replace(/&amp;/g,"&"); }}value=value.replace(/(\(S\([A-Za-z0-9_]+\)\)\/)/,""); }value=value.replace(/"/g,"&quot;"); }}}else {continue; }var O34="\""; if ((""+value+"").indexOf("\"")>=0)O34="'"; if (name!=null)html.write(" "+name+"="+O34+value+O34); }if (o32.style.cssText.length>0){var name="style"; var i2j=/(rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\))/ig; var l34=/(url\((?:[^)]*)\))/ig; var i34=[]; function I34(o30,$1){i34.push($1); }o32.style.cssText.replace(l34,I34); var value=o32.style.cssText.toLowerCase(); var o35=0; function O35(){var ik=i34[o35]; o35++; return ik; }value=value.replace(l34,O35); function l2z(i2z){return (i2z<020)?("0"+i2z.toString(020)):i2z.toString(020); } ; function I2z(o30,$1,$2,$3,$4){var I1g=parseInt($2); var O30=parseInt($3); var b=parseInt($4); return "#"+l2z(I1g)+l2z(O30)+l2z(b); }try {value=value.replace(i2j,I2z); value=value.replace(/(font-weight\s*:\s*)(700)/ig,"$1bold"); }catch (t){}value=value.replace(/([\s]*-moz-[^;]*[;][\s]*)/ig,"").replace(/(-moz-.*)$/i,""); value=value.replace(/(background-position: 0% 0%[;]*[\s]*)/ig,""); if (value.length>0){var O34="\""; if ((""+value+"").indexOf("\"")>=0)O34="'"; html.write(" "+name+"="+O34+value+O34); }}html.write(closed?" />": ">"); if (o32.tagName.toUpperCase()=="BR")html.write("\n"); }if (o32.tagName && o32.tagName.toUpperCase()=="SCRIPT")html.write(o32.text); for (i=o32.firstChild; i; i=i.nextSibling){HTMLEditor.I32(html,i, true);}if (l32 && o32.tagName.length>0 && !closed && O33){html.write("</"+l33+o32.tagName.toLowerCase()+">"); }break; case 3:html.write(HTMLEditor.i31(""+o32.data+"")); break; case 8:if (o32.length>0){html.write("<!--"+o32.data+"-->"); }else {html.write("<!---->"); }break; }} ; HTMLEditor.prototype.focusEditor= function (){switch (this.i1){case "html":if (this._iframe && this._iframe.contentWindow && this._iframe.contentWindow.focus && (this.isActivated || this._autoFocus)){if (!this._autoFocus && !this._wasFocused){if (HTMLEditor.is_ie && (""+this.I1.body.contentEditable+"")!="true")this.I1.body.contentEditable= true; HTMLEditor.I18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.I18(this.ShowQuickFormatDivId, true); } this._wasFocused= true; this.l35=0; try {if (!HTMLEditor.O11)this._iframe.contentWindow.focus(); if (HTMLEditor.O11 && this.f){ this._iframe.focus(); }}catch (t){} ; if (HTMLEditor.is_ie)this.updateToolbar(); }break; case "text":if (this._autoFocus)try { this.O15.focus(); }catch (t){} ; break; default:break; }return this.I1; } ; HTMLEditor.prototype.i35= function (){var area=this.I1.createElement("textarea"); area.width="0"; area.height="0"; this.I1.appendChild(area); var I1g=area.createTextRange(); I1g.execCommand("paste"); var I35=area.value; I35=I35.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>"); this.I1.removeChild(area); return I35; } ; HTMLEditor.prototype.o36= function (text,on,O36){if (text!=""){text=text.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); text=text.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); text=text.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); }var iframe=this.I1.createElement("iframe"); iframe.width="0"; iframe.height="0"; if (HTMLEditor.is_ie)iframe.src="javascript:false;"; this.I1.appendChild(iframe); var lx=iframe.contentWindow.document; var html=new o2a(); html.write("<html>"); html.write("<head>"); html.write("<style> body { "+this.I.O27+" } </style>"); html.write("</head>"); html.write("<body>"); html.write(text); html.write("</body>"); html.write("</html>"); lx.write(html.toString()); lx.close(); lx.body.contentEditable= true; var I1g=lx.body.createTextRange(); var l36= false; if (text==""){I1g.execCommand("paste"); var i2y=lx.createElement("DIV"); for (var i=0; i<lx.body.childNodes.length; i++){var I1u=lx.body.childNodes.item(i); if (I1u.nodeType==8){var Ih=""+I1u.data+""; if (Ih.search(/StartFragment/i)>=0){if (I1u.nextSibling && I1u.nextSibling.nodeType==3){var Ih=""+I1u.nextSibling.data+""; if (Ih.length)if (Ih.charCodeAt(0)==0240){Ih=Ih.substr(1); I1u.nextSibling.data=Ih; l36= true; break; }}}}}if (typeof O36!="undefined" && O36)lx.body.innerHTML=HTMLEditor.O2q(lx.body.innerHTML); var Ih=HTMLEditor.o13(HTMLEditor.getHTML(lx.body, false , true)); Ih=Ih.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); lx.body.innerHTML=Ih; if (!on){HTMLEditor.iy(this,lx,!this.showAnchors); HTMLEditor.Iy(this,lx,!this.showPlaceHolders); var O1v=lx.body.getElementsByTagName("EMBED"); var i36=[]; for (var i=0; i<O1v.length; i++)i36.push(O1v[i]); for (var O2c=0; O2c<i36.length; O2c++)i36[O2c].parentNode.removeChild(i36[O2c]); } delete I1g; delete i2y; if (on && HTMLEditor.is_ie)I1g=lx.body.createTextRange(); }if (on && HTMLEditor.is_ie){if (text!=""){HTMLEditor.iy(this,lx, true); HTMLEditor.Iy(this,lx, true); }I1g.select(); I1g.execCommand("copy"); }var ie=HTMLEditor.o13(lx.body.innerHTML); ie=ie.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); ie=ie.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); ie=ie.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); ie=ie.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); ie=ie.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); var O1v=lx.body.getElementsByTagName("EMBED"); var i36=[]; for (var i=0; i<O1v.length; i++)i36.push(O1v[i]); for (var O2c=0; O2c<i36.length; O2c++)i36[O2c].parentNode.removeChild(i36[O2c]); iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var X=this ; X.I1.removeChild(iframe); delete iframe; return ie; };HTMLEditor.o13= function (Ih){return Ih.replace(/[\0-\x1f]/g,""); };HTMLEditor.I36= function (X,I1b,lq){ this.D=X.D; this.d=X.d; this.C=X.C; if (HTMLEditor.is_ie){ this.o37=HTMLEditor.O37(X.I1.body); this.l37=X.I1.body.innerHTML; this.i37=null; if (lq.type.toLowerCase()=="control"){try {var il=I1b.item(0); this.i37=[]; while (il && (il.nodeType==3 || !il.tagName || il.tagName.toUpperCase()!="BODY")){var I37=0; while (il.previousSibling){I37++; il=il.previousSibling; } this.i37.push(I37); il=il.parentNode; }}catch (t){}}else { this.i2f=I1b.offsetLeft; this.I2f=I1b.offsetTop; }}else {if (HTMLEditor.O11)this.l37=HTMLEditor.o13(X.I1.body.innerHTML); else this.l37=X.I1.body.cloneNode( true); this.i37=[]; this.o38=0; try {var il=I1b.startContainer; this.o38=I1b.startOffset; if (il && il.nodeType==1 && il.tagName.toUpperCase()=="HTML"){il=X.I1.body; setTimeout( function (){try {lq=X.iq(); I1b=X.or(); X.I17(lq); I1b.setStart(il,0); I1b.setEnd(il,0); X.o18(lq,I1b); }catch (t){}} ,012); }while (il && il.nodeType && (il.nodeType==3 || !il.tagName || il.tagName.toUpperCase()!="BODY")){var I37=0; while (il.previousSibling){I37++; if (HTMLEditor.O11){if (il.nodeType==3 && il.previousSibling!=null && il.previousSibling.nodeType==3)I37--; }il=il.previousSibling; } this.i37.push(I37); il=il.parentNode; }}catch (t){}}};HTMLEditor.O38=036; HTMLEditor.prototype.I10= function (){var lq; var Iq; var l38; try {try {lq=this.iq(); Iq=this.or(lq); }catch (t){}l38=new HTMLEditor.I36(this,Iq,lq); }catch (t){return; }if (!this.K){ this.K=[]; this.l1e=0; }while (this.l1e<this.K.length)this.K.pop(); if (this.K.length==HTMLEditor.O38){ this.K.reverse(); this.K.pop(); this.K.reverse(); } this.K.push(l38); this.l1e=this.K.length; };HTMLEditor.prototype.i38= function (){if (this.l1e>=0 && this.l1e<this.K.length){var I16=this.K[this.l1e]; var lq; var Iq; this.D=I16.D; this.d=I16.d; this.C=I16.C; if (HTMLEditor.is_ie){function I38(I29,O22,l22,I2u,o39){return O22.replace(/\salign=[^\s>]*/ig,"")+((I2u=="\"X\"")?"": ("align="+I2u))+o39.replace(/\salign=[^\s>]*/ig,""); }var O1v=this.I1.body.getElementsByTagName("EMBED"); var i36=[]; for (var i=0; i<O1v.length; i++)i36.push(O1v[i]); for (var O2c=0; O2c<i36.length; O2c++)i36[O2c].parentNode.removeChild(i36[O2c]); var O39=I16.l37.replace(/&amp;/ig,"&"); O39=O39.replace(/(<embed(?:.*?))(teoalign=)("[^"]*")((?:.*?)>)/ig,I38); this.I1.body.innerHTML="!!!<span></span>"+HTMLEditor.o13(O39); if (this.I1.body.firstChild)this.I1.body.removeChild(this.I1.body.firstChild); if (this.I1.body.firstChild)this.I1.body.removeChild(this.I1.body.firstChild); var I11=HTMLEditor.o12(O39); HTMLEditor.i12(this.I1.body,I11); if (this.relativeImages){I11=HTMLEditor.l12(O39); HTMLEditor.I12(this.I1.body,I11); }HTMLEditor.l39(this.I1.body,I16.o37); HTMLEditor.iy(this,this.I1,!this.showAnchors); HTMLEditor.Iy(this,this.I1,!this.showPlaceHolders); if (I16.i37!=null){var il=this.I1.body; var i; try {for (i=I16.i37.length-1; i>=0; i--){il=il.childNodes.item(I16.i37[i]); }}catch (t){if (this.l1e>0){ this.l1e--; this.i38(); this.l1e++; }return; }try {var I1b=this.I1.body.createControlRange(); I1b.add(il); I1b.select(); }catch (t){}}else {var X=this ; setTimeout( function (){try {lq=X.iq(); Iq=X.or(lq); if (lq.type.toLowerCase()!="control"){try {Iq.moveToPoint(I16.i2f,I16.I2f); }catch (t){}}Iq.select(); }catch (t){}} ,0); }}else {if (HTMLEditor.O11){ this.I1.body.innerHTML=HTMLEditor.o13(I16.l37); }else { this.I1.body.innerHTML=""; for (var i=0; i<I16.l37.childNodes.length; i++){ this.I1.body.appendChild(I16.l37.childNodes.item(i).cloneNode( true)); }}HTMLEditor.iy(this,this.I1,!this.showAnchors); HTMLEditor.Iy(this,this.I1,!this.showPlaceHolders); try {lq=this.iq(); Iq=this.or(); this.I17(lq); }catch (t){}var Ih=""; var il=this.I1.body; for (var i=I16.i37.length-1; i>=0; i--){Ih+=" "+I16.i37[i]; il=il.childNodes.item(I16.i37[i]); }var i39=I16.o38; try {Iq.setStart(il,i39); Iq.setEnd(il,i39); }catch (t){HTMLEditor.l13(this.I1.body); return; }if (HTMLEditor.O11)this.f= true; try { this.o18(lq,Iq); }catch (t){}}try {HTMLEditor.l13(this.I1.body); }catch (t){}}};HTMLEditor.prototype.SaveContent= function (){ this.I10(); };HTMLEditor.prototype.RestoreContent= function (){ this.o1f( false); };HTMLEditor.prototype.o1f= function (o17,I39){if (HTMLEditor.is_ie){var o3a=this.I1.body.getElementsByTagName("EMBED"); var O3a= false; if (o3a.length>0){for (var i=0; i<o3a.length; i++){var value=""; var O2z=o3a[i].attributes; for (var Oh=0; Oh<O2z.length; ++Oh){var a=O2z.item(Oh); if (!a.specified)continue; var name=a.name.toLowerCase(); if (name=="type"){value=a.value; break; }}if (value.toLowerCase()=="application/x-mplayer2"){O3a= true; break; }}}if (O3a){var X=this ; X.I2e(null, function (il){X.o2f(o17); if (typeof I39=="function")I39(); } ); }else this.o2f(o17); }else this.o2f(o17); };HTMLEditor.prototype.o2f= function (o17){if (this.K){if (this.l1e>0){if (this.l1e==this.K.length && o17){ this.I10(); } do {var l26=HTMLEditor.o13(this.I1.body.innerHTML); this.l1e--; this.i38(); }while (HTMLEditor.o13(this.I1.body.innerHTML)==l26 && this.l1e>0 && o17);var X=this ; setTimeout( function (){try {X.I1f(); X.updateToolbar(); }catch (t){}if (!o17)X.i14(); } ,5); }}};HTMLEditor.prototype.O1f= function (){if (this.K){if (this.l1e<this.K.length-1){ this.l1e++; var X=this ; var l3a; if (HTMLEditor.is_ie){l3a=X.I1.body.getElementsByTagName("EMBED").length; if (l3a>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); setTimeout( function (){X.A.removeChild(popup); } ,0); }} this.i38(); var X=this ; setTimeout( function (){X.I1f(); X.updateToolbar(); } ,5); }}};HTMLEditor.i3a= function (il){if (il.id && il.id.length>0 && il.id.indexOf(HTMLEditor.Om)>=0)return true; return false;};HTMLEditor.l24= function (il){var I3a=null; try {I3a=il.parentNode; }catch (t){}if (I3a){var o3b=null; while (I3a && I3a.tagName && I3a.tagName.toUpperCase()!="BODY" && HTMLEditor.l1j(I3a.tagName) && (I3a.tagName.toUpperCase()!="A")){o3b=I3a; I3a=I3a.parentNode; }if (o3b){function o21(add,il,O21,l21,on){var par=O21.cloneNode( false); if (add){if (add.push && typeof add.push=="function"){for (var O3b=0; O3b<add.length; O3b++){par.appendChild(add[O3b]); }}else par.appendChild(add); }if (on)par.appendChild(il); else while (il){var l3b=l21?il.previousSibling:il.nextSibling; if (il.nodeType==1 || (il.nodeType==3 && HTMLEditor.o13(""+il.data+"").length>0)){if (il.nodeType==1){if (il.tagName && HTMLEditor.l1j(il.tagName) && il.childNodes.length==0 && !HTMLEditor.i3a(il))il=null; }if (il){if (par.childNodes.length==0 || !l21)par.appendChild(il); else par.insertBefore(il,par.firstChild); }}il=l3b; }if (par.childNodes.length==0){ delete par; par=null; }else if (par.childNodes.length==1 && par.firstChild.nodeType==3 && (""+par.firstChild.data+"").length==0){ delete par; par=null; }else {if (!on && par.tagName && HTMLEditor.l1j(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.i3a(par)){var i3b=par.childNodes.length; for (var I3b=0; I3b<par.childNodes.length; I3b++){var o3c=par.childNodes.item(I3b); if (o3c.nodeType==1 && o3c.tagName && !HTMLEditor.l1j(o3c.tagName) && (o3c.tagName.toUpperCase()=="BR" || o3c.tagName.toUpperCase()=="TABLE" || HTMLEditor.i3a(o3c)))i3b--; }if (i3b==0){var O3c=[]; while (par.firstChild){var o3c=par.removeChild(par.firstChild); O3c.push(o3c); }par=O3c; }}}if (O21==o3b)return par; else {if (!on)return o21(par,l21?O21.previousSibling:O21.nextSibling,O21.parentNode,l21,on); else return o21(null,par,O21.parentNode,l21,on); }} ; I3a=il.parentNode; if (il.previousSibling==null && il.nextSibling==null && I3a && I3a.tagName && I3a.tagName.toUpperCase()!="BODY" && HTMLEditor.l1j(I3a.tagName) && HTMLEditor.l3c(I3a,["class","color","face","size"]).length>0)il=I3a; var O22=o21(null,il.previousSibling,il.parentNode, true , false); var l22=o21(null,il.nextSibling,il.parentNode, false , false); var par=o3b.parentNode; if (O22){if (O22.push && typeof O22.push=="function"){for (var O3b=0; O3b<O22.length; O3b++){par.insertBefore(O22[O3b],o3b); }}else par.insertBefore(O22,o3b); }if (il.nodeType==1 && il.tagName && (il.tagName.toUpperCase()=="BR" || il.tagName.toUpperCase()=="TABLE" || HTMLEditor.i3a(il)))par.insertBefore(il,o3b); else {var I2u=o21(null,il,il.parentNode, false , true); par.insertBefore(I2u,o3b); }if (l22){if (l22.push && typeof l22.push=="function"){for (var O3b=0; O3b<l22.length; O3b++){par.insertBefore(l22[O3b],o3b); }}else par.insertBefore(l22,o3b); }par.removeChild(o3b); }}};HTMLEditor.i3c= function (il){if (il.nodeType==3)return true; if (il.nodeType!=1)return false; if (!il.tagName || il.tagName.length==0)return false; if (il && il.style && il.style.display && il.style.display.toLowerCase()=="inline")return true; var name=il.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return false; }}switch (name){case "BR":case "TBODY":case "TR":case "TD":case "P":case "PRE":case "TABLE":case "OL":case "UL":case "LI":case "HR":case "DIV":case "BLOCKQUOTE":case "FORM":case "FIELDSET":case "LEGEND":return false; default:return true; }};HTMLEditor.I3c= function (l38,il,left,o3d){while (il){var l3b=left?il.previousSibling:il.nextSibling; if (!HTMLEditor.i3c(il)){var par=il.parentNode; if (!left)par.insertBefore(l38,il); else {if (il.nextSibling)par.insertBefore(l38,il.nextSibling); else par.appendChild(l38); }return l38; }else if (typeof o3d=="function" && il.nodeType==3){var Oh; var Ih=""+il.data+""; if (left){for (Oh=Ih.length-1; Oh>=0; Oh--){if (o3d(Ih.substr(Oh,1)))break; }}else {for (Oh=0; Oh<Ih.length; Oh++){if (o3d(Ih.substr(Oh,1)))break; }}if (Oh>=0 && Oh<Ih.length){var par=il.parentNode; var O3d; if ((Oh>0 || (left && Oh==0)) && (Oh<Ih.length-1 || (!left && Oh==Ih.length-1))){if (left)O3d=il.splitText(Oh+1); else O3d=il.splitText(Oh); par.insertBefore(l38,O3d); }else {if (!left)par.insertBefore(l38,il); else {if (il.nextSibling)par.insertBefore(l38,il.nextSibling); else par.appendChild(l38); }}return l38; }}il=left?il.lastChild:il.firstChild; if (il){var o1w=HTMLEditor.I3c(l38,il,left,o3d); if (o1w!=null)return o1w; }il=l3b; }return null; };HTMLEditor.l3d= function (l38,il,left,par,o3d){while ( true){var o1w=HTMLEditor.I3c(l38,il,left,o3d); if (o1w!=null)return o1w; if (par.tagName && HTMLEditor.l1j(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.i3a(par)){il=left?par.previousSibling:par.nextSibling; par=par.parentNode; }else {if (!left || par.firstChild==null)par.appendChild(l38); else par.insertBefore(l38,par.firstChild); return l38; }}};HTMLEditor.i3d= function (O17,il){if (il==O17)return O17; if (O17.nodeType==1){for (var i=0; i<O17.childNodes.length; i++){var I1u=O17.childNodes.item(i); if (il==I1u)return I1u; if (I1u.nodeType==1){var O1d=HTMLEditor.I3d(I1u,il); if (O1d>=0){if (I1u.tagName && HTMLEditor.l1j(I1u.tagName) && (I1u.tagName.toUpperCase()!="A") && !HTMLEditor.i3a(I1u))return HTMLEditor.i3d(I1u,il); else return I1u; }}}}return null; };HTMLEditor.o3e= function (O3e,l3e){function i3e(o1v){if (!HTMLEditor.i3c(o1v) || o1v.nodeType==3){HTMLEditor.l24(o1v); }else if (o1v.tagName && HTMLEditor.l1j(o1v.tagName) && (o1v.tagName.toUpperCase()!="A") && !HTMLEditor.i3a(o1v)){var I3e=o1v.firstChild; while (I3e!=null){var o3f=I3e.nextSibling; i3e(I3e); I3e=o3f; }}}var o1v=O3e; while (o1v!=null && o1v!=l3e){var nextSibling=o1v.nextSibling; i3e(o1v); o1v=nextSibling; }};HTMLEditor.prototype.O3f= function (I1a,o1b,l3f){var o1w=[]; var O3e=I1a; var l3e=(o1b.nextSibling!=null && o1b.nextSibling.tagName && o1b.nextSibling.tagName.toUpperCase()=="BR")?o1b.nextSibling:o1b; var i24=null; if (O3e==null || l3e==null){if (O3e!=null){i24=HTMLEditor.I24(O3e,O3e); }if (l3e!=null){i24=HTMLEditor.I24(l3e,l3e); }}else i24=HTMLEditor.I24(O3e,l3e); if (i24!=null){O3e=HTMLEditor.i3d(i24.parent.childNodes.item(i24.i25),O3e); l3e=HTMLEditor.i3d(i24.parent.childNodes.item(i24.o26),l3e); HTMLEditor.l24(O3e); HTMLEditor.l24(l3e); while (O3e.parentNode!=i24.parent)O3e=O3e.parentNode; while (l3e.parentNode!=i24.parent)l3e=l3e.parentNode; HTMLEditor.o3e(O3e.nextSibling,l3e); i24=null; if (I1a==null || o1b==null){if (I1a!=null){i24=HTMLEditor.I24(I1a,I1a); }if (o1b!=null){i24=HTMLEditor.I24(o1b,o1b); }}else i24=HTMLEditor.I24(I1a,o1b); if (i24!=null){HTMLEditor.i26(i24.parent,this.I1,i24.i25,i24.o26+1, true); }function i3f(o1v){if (!HTMLEditor.i3c(o1v)){return true; }else if (o1v.tagName && HTMLEditor.l1j(o1v.tagName) && (o1v.tagName.toUpperCase()!="A") && !HTMLEditor.i3a(o1v)){var I3e=o1v.firstChild; while (I3e!=null){o3f=I3e.nextSibling; var ik=i3f(I3e); if (ik)return true; I3e=o3f; }}return false; }var I3f=0; var o3g=[]; var O3g=0; if (O3e.tagName && l3e.tagName){if ((O3e.tagName.toUpperCase()=="TD" || O3e.tagName.toUpperCase()=="TR") && (l3e.tagName.toUpperCase()=="TD" || l3e.tagName.toUpperCase()=="TR")){while (O3e.tagName.toUpperCase()!="TABLE")O3e=O3e.parentNode; l3e=O3e; }else if ((O3e.tagName.toUpperCase()=="DD" || O3e.tagName.toUpperCase()=="DT") && (l3e.tagName.toUpperCase()=="DD" || l3e.tagName.toUpperCase()=="DT")){while (O3e.tagName && O3e.tagName.toUpperCase()!="DL")O3e=O3e.parentNode; l3e=O3e; }else if ((O3e.tagName.toUpperCase()=="LI") && (l3e.tagName.toUpperCase()=="LI")){while (O3e.tagName && O3e.tagName.toUpperCase()!="UL" && O3e.tagName.toUpperCase()!="OL"){O3e=O3e.parentNode; }l3e=O3e; }}var l3g=I1a?I1a:o1b; var i3g=o1b?o1b:I1a; var o1v=O3e; while ( true){if (!HTMLEditor.i3a(o1v)){var I3g=i3f(o1v); if (!I3g){if (o1v.nodeType && o1v.nodeType==3){var Ih=""+o1v.data+""; if (Ih.length==0 ||/^[\n\r]+$/.test(Ih)){var o3h=o1v.nextSibling; o1v.parentNode.removeChild(o1v); if (o1v==l3e)break; o1v=o3h; continue; }}o3g[O3g]=o1v; O3g++; }else {if (o1v.tagName && o1v.tagName.toUpperCase()=="BR"){o3g[O3g]=o1v; o1w[I3f]=o3g; I3f++; o3g=[]; O3g=0; }else if ((o1v==l3e || o1v==O3e) && !((o1v==l3e && o1v==O3e)?(HTMLEditor.O3h(o1v,l3g) && HTMLEditor.l3h(o1v,i3g)): (HTMLEditor.O3h(o1v,l3g) || HTMLEditor.l3h(o1v,i3g)))){if (o1v.tagName && (o1v.tagName.toUpperCase()=="TABLE" || o1v.tagName.toUpperCase()=="TBODY")){var table=o1v; while (table.tagName.toUpperCase()!="TABLE")table=table.parentNode; var i3h=0; var I3h=0; var o3i=table.rows.item(table.rows.length-1).cells.length-1; var O3i=table.rows.length-1; for (var i=0; i<table.rows.length; i++){var O23=table.rows.item(i); var Oh=0; for ( ; Oh<O23.cells.length; Oh++){var cell=O23.cells.item(Oh); if (HTMLEditor.I3d(cell,l3g)>=0){i3h=Oh; I3h=i; }if (HTMLEditor.I3d(cell,i3g)>=0){o3i=Oh; O3i=i; }}}for (var i=I3h; i<=O3i; i++)for (var Oh=((i==I3h)?i3h: 0); Oh<=((i==O3i)?o3i: (table.rows.item(i).cells.length-1)); Oh++){var cell=table.rows.item(i).cells.item(Oh); if (O3g>0){o1w[I3f]=o3g; I3f++; o3g=[]; O3g=0; }var l3i=(HTMLEditor.I3d(cell,l3g)>=0); var i3i=(HTMLEditor.I3d(cell,i3g)>=0); if (l3i || i3i){var I3i=l3g; var o3j=i3g; var l23=HTMLEditor.Om+"_right_"+l3f; var i23=HTMLEditor.Om+"_left_"+l3f; if (l3i){o3j=this.I1.createElement("span"); o3j.id=l23; cell.appendChild(o3j); }if (i3i){I3i=this.I1.createElement("span"); I3i.id=i23; if (cell.firstChild)cell.insertBefore(I3i,cell.firstChild); else cell.appendChild(I3i); }var O3j=this.O3f(I3i,o3j,l3f+1); for (var I3b=0; I3b<O3j.length; I3b++){o1w[I3f]=O3j[I3b]; I3f++; }if (I3i!=l3g)I3i.parentNode.removeChild(I3i); if (o3j!=i3g)o3j.parentNode.removeChild(o3j); }else {var l3j=0; var i3j=cell.childNodes.length; for (var i2c=l3j; i2c<i3j; i2c++){var il=cell.childNodes.item(i2c); if (!HTMLEditor.i3a(il)){o3g[O3g]=il; O3g++; }}if (o3g.length>0){o1w[I3f]=o3g; I3f++; o3g=[]; O3g=0; }}}}else if (o1v.tagName && (o1v.tagName.toUpperCase()=="UL" || o1v.tagName.toUpperCase()=="OL" || o1v.tagName.toUpperCase()=="DL")){var l2g=o1v; var I3j=0; var o3k=l2g.childNodes.length-1; for (var i=0; i<l2g.childNodes.length; i++){var O3k=l2g.childNodes.item(i); if (O3k.nodeType==1){if (O3k==l3g || HTMLEditor.I3d(O3k,l3g)>=0){I3j=i; }if (O3k==i3g || HTMLEditor.I3d(O3k,i3g)>=0){o3k=i; }}}for (var i=I3j; i<=o3k; i++){var O3k=l2g.childNodes.item(i); if (O3g>0){o1w[I3f]=o3g; I3f++; o3g=[]; O3g=0; }var l3i=(HTMLEditor.I3d(O3k,l3g)>=0); var i3i=(HTMLEditor.I3d(O3k,i3g)>=0); if (l3i || i3i){var I3i=l3g; var o3j=i3g; var l23=HTMLEditor.Om+"_right_"+l3f; var i23=HTMLEditor.Om+"_left_"+l3f; if (l3i){o3j=this.I1.createElement("span"); o3j.id=l23; O3k.appendChild(o3j); }if (i3i){I3i=this.I1.createElement("span"); I3i.id=i23; if (O3k.firstChild)O3k.insertBefore(I3i,O3k.firstChild); else O3k.appendChild(I3i); }var O3j=this.O3f(I3i,o3j,l3f+1); for (var I3b=0; I3b<O3j.length; I3b++){o1w[I3f]=O3j[I3b]; I3f++; }if (I3i!=l3g)I3i.parentNode.removeChild(I3i); if (o3j!=i3g)o3j.parentNode.removeChild(o3j); }else {var l3j=0; var i3j=O3k.childNodes.length; for (var i2c=l3j; i2c<i3j; i2c++){var il=O3k.childNodes.item(i2c); if (!HTMLEditor.i3a(il)){o3g[O3g]=il; O3g++; }}if (o3g.length>0){o1w[I3f]=o3g; I3f++; o3g=[]; O3g=0; }}}}else {var l3i=(HTMLEditor.I3d(o1v,l3g)>=0); var i3i=(HTMLEditor.I3d(o1v,i3g)>=0); if (O3g>0){o1w[I3f]=o3g; I3f++; o3g=[]; O3g=0; }if (l3i || i3i){var I3i=l3g; var o3j=i3g; var l23=HTMLEditor.Om+"_right_"+l3f; var i23=HTMLEditor.Om+"_left_"+l3f; if (l3i){o3j=this.I1.createElement("span"); o3j.id=l23; o1v.appendChild(o3j); }if (i3i){I3i=this.I1.createElement("span"); I3i.id=i23; if (o1v.firstChild)o1v.insertBefore(I3i,o1v.firstChild); else o1v.appendChild(I3i); }var O3j=this.O3f(I3i,o3j,l3f+1); for (var I3b=0; I3b<O3j.length; I3b++){o1w[I3f]=O3j[I3b]; I3f++; }if (I3i!=l3g)I3i.parentNode.removeChild(I3i); if (o3j!=i3g)o3j.parentNode.removeChild(o3j); }else {var l3j=0; var i3j=o1v.childNodes.length; for (var i2c=l3j; i2c<i3j; i2c++){var il=o1v.childNodes.item(i2c); if (!HTMLEditor.i3a(il)){o3g[O3g]=il; O3g++; }}if (o3g.length>0){o1w[I3f]=o3g; I3f++; o3g=[]; O3g=0; }}}}else {if (O3g>0){o1w[I3f]=o3g; I3f++; o3g=[]; O3g=0; }o3g[O3g]=o1v; o1w[I3f]=o3g; I3f++; o3g=[]; O3g=0; }}}if (o1v==l3e)break; o1v=o1v.nextSibling; }if (O3g>0){o1w[I3f]=o3g; }}return o1w; };HTMLEditor.prototype.getPseudoP= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return []; var o1w=[]; try {var lq=this.iq(); var Iq=this.or(lq); var l23=HTMLEditor.Om+"_right"; var i23=HTMLEditor.Om+"_left"; var I23=null; var o24=null; if (HTMLEditor.is_ie){if (lq.type.toLowerCase()!="control"){I23=Iq.duplicate(); o24=Iq.duplicate(); I23.setEndPoint("EndToStart",Iq); o24.setEndPoint("StartToEnd",Iq); }}else {I23=Iq.cloneRange(); o24=Iq.cloneRange(); I23.setEnd(I23.startContainer,I23.startOffset); o24.setStart(o24.endContainer,o24.endOffset); }var I1a=null; var o1b=null; if (HTMLEditor.is_ie && lq.type.toLowerCase()=="control"){var l1c=Iq.item(0); var l3k; l3k=this.I1.createElement("SPAN"); l3k.id=i23; l1c.parentNode.insertBefore(l3k,l1c); l3k=this.I1.createElement("SPAN"); l3k.id=l23; if (l1c.nextSibling==null)l1c.parentNode.appendChild(l3k); else l1c.parentNode.insertBefore(l3k,l1c.nextSibling); }else {if (!this.i11("<span id='"+l23+"'/>",o24))return []; if (!this.i11("<span id='"+i23+"'/>",I23)){var O24=this.I1.getElementById(l23); if (O24!=null){ik=O24.parentNode; ik.removeChild(O24); }return []; }}I1a=this.I1.getElementById(i23); o1b=this.I1.getElementById(l23); if (I1a!=null && o1b!=null){while (I1a.nextSibling==null){if (I1a.parentNode.nextSibling)I1a.parentNode.parentNode.insertBefore(I1a,I1a.parentNode.nextSibling); else I1a.parentNode.parentNode.appendChild(I1a); }}if (I1a!=null && o1b!=null){while (o1b.previousSibling==null)o1b.parentNode.parentNode.insertBefore(o1b,o1b.parentNode); if (o1b.previousSibling.nodeType==1 && o1b.previousSibling.tagName.toUpperCase()!="BR" && o1b.previousSibling.tagName.toUpperCase()!="IMG"){var I25=HTMLEditor.i3k(o1b.previousSibling); if (I25.nodeType==1 && HTMLEditor.canHaveChildren(I25))I25.appendChild(o1b); else I25.parentNode.appendChild(o1b); }if (o1b.previousSibling && o1b.previousSibling.nodeType==1 && o1b.previousSibling.tagName.toUpperCase()=="BR")o1b.parentNode.insertBefore(o1b,o1b.previousSibling); }if (I1a==null){var span=this.I1.createElement("SPAN"); span.id=i23; o1b.parentNode.insertBefore(span,o1b); I1a=span; }if (o1b==null){var span=this.I1.createElement("SPAN"); span.id=l23; if (I1a.nextSibling)I1a.parentNode.insertBefore(span,I1a.nextSibling); else I1a.parentNode.appendChild(span); o1b=span; }if (I1a!=null && o1b!=null){if (I1a.parentNode==o1b){o1b.parentNode.insertBefore(I1a,o1b); }else if (o1b.parentNode==I1a){if (I1a.nextSibling!=null)I1a.parentNode.insertBefore(o1b,I1a.nextSibling); else I1a.parentNode.appendChild(o1b); }}while (I1a.nextSibling!=null && I1a.nextSibling.nodeType==3 && (""+I1a.nextSibling.data+"").length==0)I1a.parentNode.removeChild(I1a.nextSibling); if (this.I3k==null && I1a!=null && o1b!=null && I1a.nextSibling==o1b){var par=o1b.parentNode; this.I3k=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.l1j(par.tagName)){if (par.tagName.toUpperCase()!="A"){var ik=par.cloneNode( false); if (this.I3k==null){ this.I3k=ik; }else {ik.appendChild(this.I3k); this.I3k=ik; }}par=par.parentNode; }if (this.I3k){var o3l=this.I1.createElement("span"); o3l.appendChild(this.I3k); this.I3k=o3l.innerHTML; }}var O3l=I1a; while (O3l && O3l.tagName && HTMLEditor.l1j(O3l.tagName) && (O3l.tagName.toUpperCase()!="A")){O3l=O3l.parentNode; }if (O3l!=null && (O3l.tagName.toUpperCase()=="P" || (O3l.tagName.length==2 && O3l.tagName.toUpperCase().substr(0,1)=="H" && parseInt(O3l.tagName.substr(1,1))>0))){if (O3l.firstChild!=null)O3l.insertBefore(I1a,O3l.firstChild); else O3l.appendChild(I1a); }else HTMLEditor.l3d(I1a,I1a.previousSibling, true ,I1a.parentNode); O3l=o1b; while (O3l && O3l.tagName && HTMLEditor.l1j(O3l.tagName) && (O3l.tagName.toUpperCase()!="A")){O3l=O3l.parentNode; }if (O3l!=null && (O3l.tagName.toUpperCase()=="P" || (O3l.tagName.length==2 && O3l.tagName.toUpperCase().substr(0,1)=="H" && parseInt(O3l.tagName.substr(1,1))>0))){O3l.appendChild(o1b); }else HTMLEditor.l3d(o1b,o1b.nextSibling, false ,o1b.parentNode); o1w=this.O3f(I1a,o1b,0); if (o1w.length==0 && I1a.previousSibling==null && o1b.nextSibling==null && I1a.nextSibling==o1b && (I1a.parentNode.tagName.toUpperCase()=="P" || I1a.parentNode.tagName.toUpperCase()=="DIV" || I1a.parentNode.tagName.toUpperCase()=="LI" || (I1a.parentNode.tagName.length==2 && I1a.parentNode.tagName.toUpperCase().substr(0,1)=="H" && parseInt(I1a.parentNode.tagName.substr(1,1))>0)))o1w=[[I1a.parentNode]]; if (HTMLEditor.is_ie){lq.empty(); lq=this.iq(); var l3l=this.or(lq); var i3l=this.or(lq); try {if (I1a!=null)l3l.moveToElementText(I1a); if (o1b!=null)i3l.moveToElementText(o1b); if (I1a!=null && o1b!=null){l3l.setEndPoint("EndToEnd",i3l); l3l.select(); }else if (I1a!=null)l3l.select(); else if (o1b!=null)i3l.select(); }catch (t){}}if (I1a!=null)I1a.parentNode.removeChild(I1a); if (o1b!=null)o1b.parentNode.removeChild(o1b); }catch (t){alert("getPseudoP: "+t.message); var I3l=this.I1.getElementsByTagName("SPAN"); var del=[]; for (var i=0; i<I3l.length; i++){var span=I3l[i]; if (span.id && span.id.length>0){var l2o=new RegExp(HTMLEditor.Om,"ig"); if (l2o.test(span.id))del.push(span); }}for (var i=0; i<del.length; i++)del[i].parentNode.removeChild(del[i]); }return o1w; } ; HTMLEditor.prototype.o3m= function (l1p,O3m){var X=this ; if (l1p.firstChild){while (l1p.firstChild && l1p.firstChild.nodeType==3 && (""+l1p.firstChild.data+"")=="")l1p.removeChild(l1p.firstChild); var l3m=[]; while (l1p.firstChild){if (l1p.firstChild!=O3m[0] && l1p.firstChild!=O3m[1])l3m.push(l1p.firstChild); l1p.parentNode.insertBefore(l1p.firstChild,l1p); }if (l3m.length==0){var br=X.I1.createElement("BR"); l1p.parentNode.insertBefore(br,l1p); }if (HTMLEditor.is_ie && l3m.length==1 && l3m[0].nodeType==3){var Ih=""+l3m[0].data+""; if (Ih.length==1 && Ih.charCodeAt(0)==0240){var br=X.I1.createElement("BR"); l3m[0].parentNode.insertBefore(br,l3m[0]); l3m[0].parentNode.removeChild(l3m[0]); }}while (l1p.nextSibling && l1p.nextSibling.nodeType==3 && (""+l1p.nextSibling.data+"")=="")l1p.parentNode.removeChild(l1p.nextSibling); var previousSibling=(l1p.previousSibling && O3m[1]==l1p.previousSibling)?O3m[1].previousSibling:l1p.previousSibling; if (previousSibling && HTMLEditor.i3c(previousSibling))if (previousSibling.nodeType==1 && previousSibling.childNodes.length>0)previousSibling=HTMLEditor.i3k(previousSibling); if (HTMLEditor.i3c(previousSibling) && l1p.nextSibling!=null){var br=X.I1.createElement("BR"); l1p.parentNode.insertBefore(br,l1p); }}else {var br=X.I1.createElement("BR"); l1p.parentNode.insertBefore(br,l1p); }l1p.parentNode.removeChild(l1p); };HTMLEditor.prototype.i3m= function (l1p,O3m,I3m){var X=this ; l1p.style.textAlign=""; var o3n=0; var O2z=l1p.attributes; for (var i2c=0; i2c<O2z.length; ++i2c){var a=O2z.item(i2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; o3n++; }var O3n=l1p.style.cssText; var margin=0; var l3n; if (!(typeof I3m!="undefined" && I3m))if (l1p.tagName.toUpperCase()!="LI")try {l3n=parseInt(HTMLEditor.oz(l1p,"margin-top")); if (isNaN(l3n))l3n=l1p.tagName.toUpperCase()=="P"?1: 0; margin+=l3n; l3n=parseInt(HTMLEditor.oz(l1p,"margin-bottom")); if (isNaN(l3n))l3n=l1p.tagName.toUpperCase()=="P"?1: 0; margin+=l3n; l3n=parseInt(HTMLEditor.oz(l1p,"margin-right")); if (isNaN(l3n))l3n=l1p.tagName.toUpperCase()=="P"?1: 0; margin+=l3n; l3n=parseInt(HTMLEditor.oz(l1p,"margin-left")); if (isNaN(l3n))l3n=l1p.tagName.toUpperCase()=="P"?1: 0; margin+=l3n; }catch (t){margin=1; }l1p.style.margin=""; if ((o3n==0 && l1p.style.cssText.length==0 && margin==0) || (typeof I3m!="undefined" && I3m && l1p.tagName.toUpperCase()!="LI")){X.o3m(l1p,O3m); return true; }else {l1p.style.cssText=O3n; return false; }};HTMLEditor.i3n= function (il){var name=il.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return true; }}return false; };HTMLEditor.prototype.I3n= function (textAlign,o3o,O3o){var l3o=this.i3o(); var O3m=this.I3o(l3o); var o3p=null; var O3p=[]; var X=this ; var I3m=(typeof o3o!="undefined" && o3o)? true : false; var l3p=(typeof O3o=="string")? true : false; var i3p=(typeof O3o=="string")?O3o: ""; var I3p= false; var o3q= false; function O3q(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==O3m[0] || div.firstChild==O3m[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function l3q(){var firstChild=o3p.firstChild; var lastChild=o3p.lastChild; if (o3p.tagName && !HTMLEditor.i3c(o3p) && O3p[0][0]==firstChild && O3p[O3p.length-1][O3p[O3p.length-1].length-1]==lastChild && o3p.tagName.toUpperCase()!="TD" && o3p.tagName.toUpperCase()!="TH" && o3p.tagName.toUpperCase()!="FIELDSET" && o3p.tagName.toUpperCase()!="LEGEND"){var align=""; if (o3p.getAttribute("align") && o3p.getAttribute("align").length>0)align=o3p.getAttribute("align"); if (o3p.align && o3p.align.length>0)align=o3p.align; if (o3p.style.textAlign && o3p.style.textAlign.length>0)align=o3p.style.textAlign; o3p.align=""; o3p.setAttribute("align",""); o3p.removeAttribute("align"); if ((o3p.tagName.toUpperCase()=="DIV" || o3p.tagName.toUpperCase()=="P" || HTMLEditor.i3n(o3p)) && textAlign=="left" && I3m){if (X.i3m(o3p,O3m,I3m))I3p= true; }else {if (textAlign!="remain"){if (!(textAlign=="left" && I3m) || (o3p.tagName.toUpperCase()=="LI" && o3p.parentNode.style.textAlign.length>0))o3p.style.textAlign=textAlign; else o3p.style.textAlign=""; }if (I3m)o3p.style.margin=(o3p.tagName.toUpperCase()=="P")?"0px": ""; if (o3p.tagName.toUpperCase()=="LI"){var l2g=o3p.parentNode; var i3q=[]; for (var I3q=0; I3q<l2g.childNodes.length; I3q++)if (l2g.childNodes.item(I3q).nodeType==1)i3q.push(l2g.childNodes.item(I3q).style.textAlign); var o3r=1; for ( ; o3r<i3q.length; o3r++)if (i3q[o3r-1]!=i3q[o3r])break; if (o3r==i3q.length){var align=(i3q[0]=="left" && I3m)?"":i3q[0]; for (var Oh=0; Oh<l2g.childNodes.length; Oh++)if (l2g.childNodes.item(Oh).nodeType==1){l2g.childNodes.item(Oh).style.textAlign=""; if (I3m)l2g.childNodes.item(Oh).style.margin=(l2g.childNodes.item(Oh).tagName.toUpperCase()=="P")?"0px": ""; }l2g.style.textAlign=align; }}if ((o3p.tagName.toUpperCase()=="DIV" || o3p.tagName.toUpperCase()=="P" || HTMLEditor.i3n(o3p)) && l3p && i3p.toUpperCase()!=o3p.tagName.toUpperCase()){var O3r=X.I1.createElement(i3p); var O2z=o3p.attributes; for (var i2c=0; i2c<O2z.length; ++i2c){var a=O2z.item(i2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; O3r.setAttribute(a.name,a.value); }O3r.style.cssText=o3p.style.cssText; while (o3p.firstChild)O3r.appendChild(o3p.firstChild); o3p.parentNode.insertBefore(O3r,o3p); o3p.parentNode.removeChild(o3p); }}}else {var div=null; for (var i=0; i<O3p.length; i++){if (!l3p)div=null; var paragraph=O3p[i]; for (var Oh=0; Oh<paragraph.length; Oh++){var l1p=paragraph[Oh]; if (l1p.nodeType==1 && l1p.tagName && (l1p.tagName.toUpperCase()=="UL" || l1p.tagName.toUpperCase()=="OL" || l1p.tagName.toUpperCase()=="DL" || l1p.tagName.toUpperCase()=="DIV" || HTMLEditor.i3n(l1p) || l1p.tagName.toUpperCase()=="P" || l1p.tagName.toUpperCase()=="LI" || l1p.tagName.toUpperCase()=="TABLE")){O3q(div); div=null; if (textAlign!="remain")if (l1p.tagName.toUpperCase()!="TABLE" && !I3m)l1p.style.textAlign=textAlign; if (I3m)l1p.style.margin=(l1p.tagName.toUpperCase()=="P")?"0px": ""; if ((l1p.tagName.toUpperCase()=="UL" || l1p.tagName.toUpperCase()=="OL" || l1p.tagName.toUpperCase()=="DL")){for (var O2c=0; O2c<l1p.childNodes.length; O2c++){var li=l1p.childNodes.item(O2c); if (li.nodeType==1){li.style.textAlign=""; if (I3m)li.style.margin=(li.tagName.toUpperCase()=="P")?"0px": ""; for (var l3r=0; l3r<li.childNodes.length; l3r++){var I1u=li.childNodes.item(l3r); if (I1u.nodeType==1 && I3m)I1u.style.margin=(I1u.tagName.toUpperCase()=="P")?"0px": ""; if (I1u.nodeType==1 && I1u.tagName && (I1u.tagName.toUpperCase()=="DIV" || I1u.tagName.toUpperCase()=="P" || HTMLEditor.i3n(I1u))){if (X.i3m(I1u,O3m,I3m))I3p= true; }}}}if (textAlign=="left" && I3m)l1p.style.textAlign=""; continue; }else if (l1p.tagName.toUpperCase()=="LI"){if (textAlign!="remain"){if (!(textAlign=="left" && I3m) || l1p.parentNode.style.textAlign.length>0)l1p.style.textAlign=textAlign; else l1p.style.textAlign=""; }if (I3m)l1p.style.margin=(l1p.tagName.toUpperCase()=="P")?"0px": ""; var l2g=l1p.parentNode; var i3q=[]; for (var I3q=0; I3q<l2g.childNodes.length; I3q++)if (l2g.childNodes.item(I3q).nodeType==1)i3q.push(l2g.childNodes.item(I3q).style.textAlign); var o3r=1; for ( ; o3r<i3q.length; o3r++)if (i3q[o3r-1]!=i3q[o3r])break; if (o3r==i3q.length){var align=(i3q[0]=="left" && I3m)?"":i3q[0]; for (var Oh=0; Oh<l2g.childNodes.length; Oh++)if (l2g.childNodes.item(Oh).nodeType==1){l2g.childNodes.item(Oh).style.textAlign=""; if (I3m)l2g.childNodes.item(Oh).style.margin=(l2g.childNodes.item(Oh).tagName.toUpperCase()=="P")?"0px": ""; }l2g.style.textAlign=align; }continue; }else if (l1p.tagName.toUpperCase()=="TABLE"){if (textAlign!="remain"){if (!(textAlign=="left" && I3m) && textAlign!="justify")l1p.align=textAlign; else {l1p.align=""; l1p.removeAttribute("align"); }}}if ((l1p.tagName.toUpperCase()=="DIV" || l1p.tagName.toUpperCase()=="P" || HTMLEditor.i3n(l1p)) && textAlign=="left" && I3m){if (X.i3m(l1p,O3m,I3m))I3p= true; }if ((l1p.tagName.toUpperCase()=="DIV" || l1p.tagName.toUpperCase()=="P" || HTMLEditor.i3n(l1p)) && l3p && i3p.toUpperCase()!=l1p.tagName.toUpperCase()){var O3r=X.I1.createElement(i3p); var O2z=l1p.attributes; for (var i2c=0; i2c<O2z.length; ++i2c){var a=O2z.item(i2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; O3r.setAttribute(a.name,a.value); }O3r.style.cssText=l1p.style.cssText; while (l1p.firstChild)O3r.appendChild(l1p.firstChild); l1p.parentNode.insertBefore(O3r,l1p); l1p.parentNode.removeChild(l1p); }}else {if (!(textAlign=="left" && I3m) || l3p){if (div==null){div=X.I1.createElement(l3p?i3p:X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P" && !l3p)div.style.margin="0px"; if (!l3p)div.style.textAlign=textAlign; l1p.parentNode.insertBefore(div,l1p); if (X.I1.body.firstChild==div)o3q= true; }var i3r=(paragraph[paragraph.length-1]==O3m[1])?paragraph.length-1:paragraph.length; var I3r=(paragraph[0]==O3m[0])?1: 0; if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && Oh==i3r-1 && Oh==I3r){if (HTMLEditor.is_ie){div.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); l1p.parentNode.removeChild(l1p); }else div.appendChild(l1p); }else if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && Oh==i3r-1 && Oh>I3r && (!l3p || (l1p.nextSibling!=null && l1p.nextSibling==O3m[1])))l1p.parentNode.removeChild(l1p); else div.appendChild(l1p); if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && Oh==paragraph.length-1 && !l3p){O3q(div); div=null; }if (l1p==O3m[1] && Oh==paragraph.length-1){O3q(div); div=null; }}}}}}}for (var i=0; i<l3o.length; i++){var paragraph=l3o[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=o3p){if (O3p.length>0)l3q(); O3p=[]; o3p=paragraph[0].parentNode; }O3p.push(paragraph); }}if (O3p.length>0)l3q(); this.I1m(O3m,I3p); };HTMLEditor.prototype.i3o= function (){ this.I3k=null; var l3o=this.getPseudoP(); if (l3o.length==0){try {var Ih="<span id='"+HTMLEditor.Om+"_ll'></span><span id='"+HTMLEditor.Om+"_rr'></span><br>"; this.i11(Ih); var I1a=this.I1.getElementById(HTMLEditor.Om+"_ll"); var o1b=this.I1.getElementById(HTMLEditor.Om+"_rr"); var o19=this.I3k; this.I3k=null; this.I1m([I1a,o1b], false); this.I3k=o19; l3o=this.getPseudoP(); }catch (w){} ; }return l3o; };HTMLEditor.prototype.o3s= function (O3s){var l3o=this.i3o(); var O3m=this.I3o(l3o); var o3p=null; var O3p=[]; var X=this ; var l3s=null; var i3s=[]; var I3s=O3s.toUpperCase(); var I3p= false; function o3t(){if (l3s!=null){var O3t; O3t=l3s.cloneNode( false); l3s.parentNode.insertBefore(O3t,l3s); while (l3s.firstChild!=i3s[0])O3t.appendChild(l3s.firstChild); if (O3t.firstChild==null)O3t.parentNode.removeChild(O3t); if (l3s.tagName.toUpperCase()==I3s){for (var i=0; i<i3s.length; i++){var l1p=i3s[i]; if (l1p.nodeType==1 && l1p.tagName && l1p.tagName.toUpperCase()=="LI"){var o1o= false; l3s.parentNode.insertBefore(l1p,l3s); if (l1p.style.textAlign=="")l1p.style.textAlign=l3s.style.textAlign; if (l3s.childNodes.length==0 && i==i3s.length-1){l3s.parentNode.removeChild(l3s); l3s=null; }if (l1p.style.textAlign=="" || (l1p.style.textAlign.toLowerCase()=="left" && !X.rtlState()) || (l1p.style.textAlign.toLowerCase()=="right" && X.rtlState())){o1o=X.i3m(l1p,O3m); if (o1o)I3p= true; }if (!o1o){var l3t=X.I1.createElement(X.dfltBlockElement); var O2z=l1p.attributes; for (var i3t=0; i3t<O2z.length; ++i3t){var a=O2z.item(i3t); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; l3t.setAttribute(a.name,a.value); }l3t.style.cssText=l1p.style.cssText; if (l3t.tagName.toUpperCase()=="P")l3t.style.margin="0px"; while (l1p.firstChild)l3t.appendChild(l1p.firstChild); l1p.parentNode.insertBefore(l3t,l1p); l1p.parentNode.removeChild(l1p); }}else l3s.parentNode.insertBefore(l1p,l3s); }}else {var O3t=X.I1.createElement(I3s); var O2z=l3s.attributes; for (var i3t=0; i3t<O2z.length; ++i3t){var a=O2z.item(i3t); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; O3t.setAttribute(a.name,a.value); }O3t.style.cssText=l3s.style.cssText; l3s.parentNode.insertBefore(O3t,l3s); for (var i=0; i<i3s.length; i++){var l1p=i3s[i]; O3t.appendChild(l1p); }}if (l3s!=null){O3t=l3s.cloneNode( false); l3s.parentNode.insertBefore(O3t,l3s); while (l3s.firstChild)O3t.appendChild(l3s.firstChild); if (O3t.firstChild==null)O3t.parentNode.removeChild(O3t); l3s.parentNode.removeChild(l3s); }}l3s=null; i3s=[]; }function l3q(){var firstChild=o3p.firstChild; var lastChild=o3p.lastChild; if (o3p.tagName && !HTMLEditor.i3c(o3p) && O3p[0][0]==firstChild && O3p[O3p.length-1][O3p[O3p.length-1].length-1]==lastChild && (o3p.tagName.toUpperCase()=="OL" || o3p.tagName.toUpperCase()=="UL" || o3p.tagName.toUpperCase()=="DL" || o3p.tagName.toUpperCase()=="LI" || ((o3p.tagName.toUpperCase()=="P" || o3p.tagName.toUpperCase()=="DIV" || HTMLEditor.i3n(o3p)) && o3p.parentNode.tagName.toUpperCase()=="LI"))){o3t(); i3s=[]; if (o3p.tagName.toUpperCase()=="LI"){l3s=o3p.parentNode; i3s.push(o3p); }else if (o3p.tagName.toUpperCase()=="P" || o3p.tagName.toUpperCase()=="DIV" || HTMLEditor.i3n(o3p)){l3s=o3p.parentNode.parentNode; i3s.push(o3p.parentNode); }else {l3s=o3p; for (var i=0; i<O3p.length; i++){var paragraph=O3p[i]; for (var Oh=0; Oh<paragraph.length; Oh++){i3s.push(paragraph[Oh]); }}}o3t(); }else {var I3t=o3p.tagName.toUpperCase(); if (I3t=="LI" && (O3p.length<l3o.length)){if (l3s!=o3p.parentNode){o3t(); l3s=o3p.parentNode; i3s=[]; }i3s.push(o3p); }else if (I3t=="OL" || I3t=="UL" || I3t=="DL"){o3t(); l3s=o3p; i3s=[]; for (var i=0; i<O3p.length; i++){var paragraph=O3p[i]; for (var Oh=0; Oh<paragraph.length; Oh++){i3s.push(paragraph[Oh]); }}o3t(); }else {var li=null; var l2g=null; function o3u(){if (li!=null)if (li.childNodes==1 && (li.firstChild==O3m[0] || li.firstChild==O3m[1])){li.parentNode.insertBefore(li.firstChild,li); li.parentNode.removeChild(li); }li=null; }if (l3s!=null){o3t(); }if (O3p.length==1 && O3p[0].length==1 && O3p[0][0].nodeType==1 && O3p[0][0].tagName && (O3p[0][0].tagName.toUpperCase()=="OL" || O3p[0][0].tagName.toUpperCase()=="UL" || O3p[0][0].tagName.toUpperCase()=="DL")){var l1p=O3p[0][0]; l3s=l1p; i3s=[]; for (var i=0; i<l1p.childNodes.length; i++){var il=l1p.childNodes.item(i); i3s.push(il); }o3t(); }else for (var i=0; i<O3p.length; i++){var paragraph=O3p[i]; for (var Oh=0; Oh<paragraph.length; Oh++){var l1p=paragraph[Oh]; if (l2g==null){l2g=X.I1.createElement(I3s); l1p.parentNode.insertBefore(l2g,l1p); }if (!HTMLEditor.i3c(l1p) && !(l1p.tagName && l1p.tagName.toUpperCase()=="BR")){if (li && li.firstChild)o3u(); if (li==null){li=X.I1.createElement("LI"); l2g.appendChild(li); }li.appendChild(l1p); o3u(); }else {if (li==null){li=X.I1.createElement("LI"); l2g.appendChild(li); }var i3r=(paragraph[paragraph.length-1]==O3m[1])?paragraph.length-1:paragraph.length; var I3r=(paragraph[0]==O3m[0])?1: 0; if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && Oh==i3r-1 && Oh==I3r){if (HTMLEditor.is_ie){li.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); l1p.parentNode.removeChild(l1p); }else li.appendChild(l1p); }else if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && Oh==i3r-1 && Oh>I3r)l1p.parentNode.removeChild(l1p); else li.appendChild(l1p); if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && Oh==paragraph.length-1){o3u(); li=null; }if (l1p==O3m[1] && Oh==paragraph.length-1){o3u(); li=null; }}}if (li && li.firstChild)o3u(); }if (l2g!=null){var i3q=[]; for (var Oh=0; Oh<l2g.childNodes.length; Oh++)i3q.push(l2g.childNodes.item(Oh).style.textAlign); var o3r=1; for ( ; o3r<i3q.length; o3r++)if (i3q[o3r-1]!=i3q[o3r])break; if (o3r==i3q.length){var align=((i3q[0]=="left" && !X.rtlState()) || (i3q[0]=="right" && X.rtlState()))?"":i3q[0]; for (var Oh=0; Oh<l2g.childNodes.length; Oh++)l2g.childNodes.item(Oh).style.textAlign=""; l2g.style.textAlign=align; }}if (l2g!=null)if (l2g.parentNode.tagName.toUpperCase()=="P" && l2g.parentNode.childNodes.length==1){var O3u=l2g.parentNode; var l3u=O3u.cloneNode( false); O3u.parentNode.insertBefore(l2g,O3u); O3u.parentNode.removeChild(O3u); if (l2g.childNodes.length==1){var item=l2g.firstChild; while (item.firstChild)l3u.appendChild(item.firstChild); item.appendChild(l3u); }else delete l3u; }}}}for (var i=0; i<l3o.length; i++){var paragraph=l3o[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=o3p){if (O3p.length>0)l3q(); O3p=[]; o3p=paragraph[0].parentNode; }O3p.push(paragraph); }}if (O3p.length>0)l3q(); if (l3s!=null){o3t(); } this.I1m(O3m,I3p); };HTMLEditor.prototype.i3u= function (I3u){var l3o=this.i3o(); var O3m=this.I3o(l3o); var o3p=null; var O3p=[]; var X=this ; var I3p= false; function o3v(il){if (il.nodeType==1){var O3v=(!X.rtlState())?il.style.marginLeft:il.style.marginRight; if (O3v.length>0)return parseInt(O3v); }return 0; }function l3v(il,value){if (il.nodeType==1){if (il.tagName.toUpperCase()=="P" && value=="")value="0px"; if (!X.rtlState())il.style.marginLeft=value; else il.style.marginRight=value; }}function i3v(il){if (I3u)l3v(il,(o3v(il)+050)+"px"); else {if (il.tagName.toUpperCase()=="P"){if (o3v(il)>=050)l3v(il,(o3v(il)-050)+"px"); else l3v(il,"0px"); }else {if (o3v(il)>050)l3v(il,(o3v(il)-050)+"px"); else l3v(il,""); }}}function O3q(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==O3m[0] || div.firstChild==O3m[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function l3q(){var firstChild=o3p.firstChild; var lastChild=o3p.lastChild; if (o3p.tagName && !HTMLEditor.i3c(o3p) && O3p[0][0]==firstChild && O3p[O3p.length-1][O3p[O3p.length-1].length-1]==lastChild){var textAlign=""; if (o3p.getAttribute("align") && o3p.getAttribute("align").length>0)textAlign=o3p.getAttribute("align"); if (o3p.align && o3p.align.length>0)textAlign=o3p.align; if (o3p.style.textAlign && o3p.style.textAlign.length>0)textAlign=o3p.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; o3p.align=""; o3p.setAttribute("align",""); o3p.removeAttribute("align"); i3v(o3p); if ((o3p.tagName.toUpperCase()=="DIV" || o3p.tagName.toUpperCase()=="P" || HTMLEditor.i3n(o3p)) && textAlign==""){if (X.i3m(o3p,O3m))I3p= true; }else {if (textAlign!="" || (o3p.tagName.toUpperCase()=="LI" && o3p.parentNode.style.textAlign.length>0))o3p.style.textAlign=textAlign; else o3p.style.textAlign=""; if (o3p.tagName.toUpperCase()=="LI"){var l2g=o3p.parentNode; var margins=[]; for (var I3q=0; I3q<l2g.childNodes.length; I3q++)margins.push(o3v(l2g.childNodes.item(I3q))); var o3r=1; for ( ; o3r<margins.length; o3r++)if (margins[o3r-1]!=margins[o3r])break; if (o3r==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var Oh=0; Oh<l2g.childNodes.length; Oh++)l3v(l2g.childNodes.item(Oh),""); l3v(l2g,margin); }}}}else {for (var i=0; i<O3p.length; i++){var div=null; var paragraph=O3p[i]; for (var Oh=0; Oh<paragraph.length; Oh++){var l1p=paragraph[Oh]; if (l1p.nodeType==1 && l1p.tagName && (l1p.tagName.toUpperCase()=="UL" || l1p.tagName.toUpperCase()=="OL" || l1p.tagName.toUpperCase()=="DL" || l1p.tagName.toUpperCase()=="DIV" || HTMLEditor.i3n(l1p) || l1p.tagName.toUpperCase()=="P" || l1p.tagName.toUpperCase()=="LI")){O3q(div); div=null; i3v(l1p);if ((l1p.tagName.toUpperCase()=="UL" || l1p.tagName.toUpperCase()=="OL" || l1p.tagName.toUpperCase()=="DL")){for (var O2c=0; O2c<l1p.childNodes.length; O2c++){var li=l1p.childNodes.item(O2c); if (li.nodeType==1){l3v(li,""); for (var l3r=0; l3r<li.childNodes.length; l3r++){var I1u=li.childNodes.item(l3r); var textAlign=(I1u.nodeType==1)?l1p.style.textAlign: ""; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if (I1u.nodeType==1){l3v(I1u,""); if (textAlign=="" && I1u.tagName && (I1u.tagName.toUpperCase()=="DIV" || I1u.tagName.toUpperCase()=="P")){if (X.i3m(I1u,O3m))I3p= true; }}}}}continue; }else if (l1p.tagName.toUpperCase()=="LI"){var l2g=l1p.parentNode; var margins=[]; for (var I3q=0; I3q<l2g.childNodes.length; I3q++)margins.push(o3v(l2g.childNodes.item(I3q))); var o3r=1; for ( ; o3r<margins.length; o3r++)if (margins[o3r-1]!=margins[o3r])break; if (o3r==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var Oh=0; Oh<l2g.childNodes.length; Oh++)l3v(l2g.childNodes.item(Oh),""); l3v(l2g,margin); }continue; }var textAlign=l1p.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if ((l1p.tagName.toUpperCase()=="DIV" || l1p.tagName.toUpperCase()=="P" || HTMLEditor.i3n(l1p)) && textAlign==""){if (X.i3m(l1p,O3m))I3p= true; }}else {if (I3u){if (div==null){div=X.I1.createElement(X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P")div.style.margin="0px"; i3v(div); l1p.parentNode.insertBefore(div,l1p); }var i3r=(paragraph[paragraph.length-1]==O3m[1])?paragraph.length-1:paragraph.length; var I3r=(paragraph[0]==O3m[0])?1: 0; if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && Oh==i3r-1 && Oh==I3r){if (HTMLEditor.is_ie){div.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); l1p.parentNode.removeChild(l1p); }else div.appendChild(l1p); }else if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && Oh==i3r-1 && Oh>I3r)l1p.parentNode.removeChild(l1p); else div.appendChild(l1p); if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && Oh==paragraph.length-1){O3q(div); div=null; }if (l1p==O3m[1] && Oh==paragraph.length-1){O3q(div); div=null; }}}}}}}for (var i=0; i<l3o.length; i++){var paragraph=l3o[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=o3p){if (O3p.length>0)l3q(); O3p=[]; o3p=paragraph[0].parentNode; }O3p.push(paragraph); }}if (O3p.length>0)l3q(); this.I1m(O3m,I3p); };HTMLEditor.prototype.I3v= function (i22,par){var O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(this.l1b()): ""; if (this.isControl())return; var lq=this.iq(); var Iq=this.or(lq); var o3w=HTMLEditor.is_ie?[Iq.boundingLeft,Iq.boundingTop]: [Iq.startContainer,Iq.startOffset]; var i1b=(HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0); var O3w= {name: "none",value: "none" } ; switch (i22.toLowerCase()){case "bold":O3w= {name: "font-weight",value: "bold",l3w: false } ; break; case "italic":O3w= {name: "font-style",value: "italic",l3w: false } ; break; case "underline":O3w= {name: "text-decoration",value: "underline",l3w: false } ; break; case "strikethrough":O3w= {name: "text-decoration",value: "line-through",l3w: false } ; break; case "superscript":O3w= {name: "vertical-align",value: "super",l3w: false } ; break; case "subscript":O3w= {name: "vertical-align",value: "sub",l3w: false } ; break; case "forecolor":O3w= {name: "color",value:par,l3w: false } ; break; case "backcolor":O3w= {name: "background-color",value:par,l3w: false } ; break; case "fontname":O3w= {name: "font-family",value:par,l3w: false } ; break; case "fontsize":O3w= {name: "font-size",value:par,l3w: false } ; break; }if (i1b){var I1b=this.o1c(); this.i3w(O3w,I1b, true); }else if (!HTMLEditor.is_Safari){if (this.isControl())return; var I1b=this.I3w(); if (I1b.length>0){ this.i3w(O3w,I1b, false); if (HTMLEditor.is_ie && this.o3x!=null){lq=this.iq(); Iq=this.or(lq); Iq.moveToBookmark(this.o3x); Iq.select(); this.o3x=null; }else if (this.o3x!=null){if (this.o3x[0].nodeType==3){lq=this.iq(); Iq=this.I1.createRange(); Iq.setStart(this.o3x[0],this.o3x[1]); Iq.setEnd(this.o3x[0],this.o3x[1]); this.I17(lq); this.o18(lq,Iq); }else { this.O3x(this.o3x[0],this.o3x[0]); this.o3x[0].parentNode.removeChild(this.o3x[0]); } this.o3x=null; }}else { this.l3x(O3w); }}};HTMLEditor.prototype.I3w= function (on){var o1w=[]; var O1b; var i1b; var lq=this.iq(); var Iq=this.or(lq); var i3x; var l3l; var l23=HTMLEditor.Om+"_right_add"; var i23=HTMLEditor.Om+"_left_add"; var I3x=HTMLEditor.Om+"_middle_add"; if (HTMLEditor.is_ie && typeof on=="undefined"){Iq.execCommand("bold"); this.o3x=Iq.getBookmark(); Iq.execCommand("bold"); }if (HTMLEditor.is_ie){var o3y=null; var O3y="<span id="+I3x+"></span>"; var l3y=Iq.duplicate(); try {Iq.pasteHTML(O3y); }catch (w){}o3y=this.I1.getElementById(I3x); if (o3y==null)return []; if (typeof on!="undefined")this.o3x=o3y; if (o3y.nextSibling!=null && !HTMLEditor.i3c(o3y.nextSibling)){o3y.parentNode.removeChild(o3y); return []; }Iq.expand("word"); Iq.select(); if (Iq.text.length==0){o3y.parentNode.removeChild(o3y); l3y.select(); return []; }var i2j=new RegExp(O3y,"ig"); if (!i2j.test(Iq.htmlText.replace(/[\n\r]/g,""))){o3y.parentNode.removeChild(o3y); l3y.select(); return []; }i2j=new RegExp(O3y+"(\x3c/span>|&nbsp;|[\\s])*$","ig"); if (i2j.test(Iq.htmlText.replace(/[\n\r]/g,""))){o3y.parentNode.removeChild(o3y); l3y.select(); return []; }while (Iq.text.length>0 && Iq.text.substr(Iq.text.length-1,1)==" "){Iq.moveEnd("character",-1); Iq.select(); if (Iq.text.length==0){o3y.parentNode.removeChild(o3y); l3y.select(); return []; }}if (typeof on=="undefined")o3y.parentNode.removeChild(o3y); return this.o1c(); }function o3d(i3y){var i2j=/[\d\w]/; if (i2j.test(i3y))return false; i2j=/[\x80-\u024f]/; if (i2j.test(i3y))return false; i2j=/[\u0370-\u2000]/; if (i2j.test(i3y))return false; return true; }if (!this.i11("<span id='"+i23+"'></span><span id='"+I3x+"'></span><span id='"+l23+"'></span>"))return []; var I1a=this.I1.getElementById(i23); var o1b=this.I1.getElementById(l23); var I3y=this.I1.getElementById(I3x); HTMLEditor.l3d(I1a,I1a.previousSibling, true ,I1a.parentNode,o3d); try { this.O3x(I1a,o1b); }catch (w){}i3x=this.iq(); l3l=this.or(i3x); O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(this.l1b()): ""; i1b=(HTMLEditor.is_ie && l3l.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0); if (!i1b || this.o1c().length==0){var o3z=this.I1.createTextNode(""); I1a.parentNode.insertBefore(o3z,I1a); I1a.parentNode.removeChild(I1a); o1b.parentNode.removeChild(o1b); I3y.parentNode.removeChild(I3y); var Iq=this.I1.createRange(); Iq.setStart(o3z,0); Iq.setEnd(o3z,0); Iq.setStart(o3z,0); Iq.setEnd(o3z,0); this.I17(lq); this.o18(lq,Iq); return []; }o1b.parentNode.insertBefore(I1a,I3y); HTMLEditor.l3d(o1b,o1b.nextSibling, false ,o1b.parentNode,o3d); this.O3x(I1a,o1b); i3x=this.iq(); l3l=this.or(i3x); O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(this.l1b()): ""; i1b=(HTMLEditor.is_ie && l3l.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0); if (!i1b || this.o1c().length==0){var o3z=this.I1.createTextNode(""); I1a.parentNode.insertBefore(o3z,I1a); I1a.parentNode.removeChild(I1a); o1b.parentNode.removeChild(o1b); I3y.parentNode.removeChild(I3y); var Iq=this.I1.createRange(); Iq.setStart(o3z,0); Iq.setEnd(o3z,0); Iq.setStart(o3z,0); Iq.setEnd(o3z,0); this.I17(lq); this.o18(lq,Iq); return []; }HTMLEditor.l3d(I1a,I1a.previousSibling, true ,I1a.parentNode,o3d); this.O3x(I1a,o1b); i3x=this.iq(); l3l=this.or(i3x); O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(this.l1b()): ""; i1b=(HTMLEditor.is_ie && l3l.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0); if (HTMLEditor.is_ie){if (typeof on!="undefined")this.o3x=I3y; else I3y.parentNode.removeChild(I3y); }else this.o3x=[I3y,0]; if (i1b){o1w=this.o1c(); }I1a.parentNode.removeChild(I1a); o1b.parentNode.removeChild(o1b); return o1w; };HTMLEditor.prototype.l3x= function (O3w){var name=O3w.name.replace(/-(\w)/g, function (O3z,O22){return O22.toUpperCase(); } ); var value=O3w.value; var l3w=O3w.l3w; if (this.M==null)this.M=[]; var l3z=[];var i3z= true; for (var i=0; i<this.M.length; i++){var I3z=this.M[i].name.replace(/-(\w)/g, function (O3z,O22){return O22.toUpperCase(); } ); var o40=this.M[i].value; if (!(I3z==name && (o40==value || l3w)))l3z.push(this.M[i]); else i3z= false; } this.M=l3z; if (i3z)this.M.push(O3w); };HTMLEditor.prototype.O3x= function (I1a,o1b){var lq=this.iq(); var o3z=null; var O40=null; if (HTMLEditor.is_ie){lq.empty(); lq=this.iq(); var l3l=this.or(lq); var i3l=this.or(lq); try {if (I1a!=null)l3l.moveToElementText(I1a); if (o1b!=null)i3l.moveToElementText(o1b); if (I1a!=null && o1b!=null){l3l.setEndPoint("EndToEnd",i3l); l3l.select(); }else if (I1a!=null)l3l.select(); else if (o1b!=null)i3l.select(); }catch (t){}}else {try {o3z=this.I1.createTextNode(""); O40=this.I1.createTextNode(""); I1a.parentNode.insertBefore(o3z,I1a); o1b.parentNode.insertBefore(O40,o1b); var Iq=this.I1.createRange(); Iq.setStart(o3z,0); Iq.setEnd(O40,0); this.I17(lq); this.o18(lq,Iq); }catch (t){}}};HTMLEditor.prototype.i3w= function (O3w,I1b,l40){var name=O3w.name.replace(/-(\w)/g, function (O3z,O22){return O22.toUpperCase(); } ); var value=O3w.value; var l3w=O3w.l3w; var i40= false; var I40= false; this.I10(); var l23=HTMLEditor.Om+"_right"; var i23=HTMLEditor.Om+"_left"; var I1a=this.I1.createElement("SPAN"); I1a.id=i23; var o1b=this.I1.createElement("SPAN"); o1b.id=l23; I1b[0].parentNode.insertBefore(I1a,I1b[0]); if (I1b[I1b.length-1].nextSibling!=null)I1b[I1b.length-1].parentNode.insertBefore(o1b,I1b[I1b.length-1].nextSibling); else I1b[I1b.length-1].parentNode.appendChild(o1b); HTMLEditor.l24(I1a); HTMLEditor.l24(o1b); var o41=[]; for (var i=0; i<I1b.length; i++){var O41=I1b[i]; var par=O41.parentNode; var Oh; for (Oh=0; Oh<o41.length; Oh++){var parent=o41[Oh]; if (parent.parent==par){parent.l41.push(O41); break; }}if (Oh==o41.length){o41.push( {parent:par,l41: [O41] } ); }}for (var i=0; i<o41.length; i++){var parent=o41[i]; if (parent.l41.length>1){var l41=parent.l41; var i41=this.I1.createElement("SPAN"); var I41=this.I1.createElement("SPAN"); l41[0].parentNode.insertBefore(i41,l41[0]); if (l41[l41.length-1].nextSibling!=null)l41[l41.length-1].parentNode.insertBefore(I41,l41[l41.length-1].nextSibling); else l41[l41.length-1].parentNode.appendChild(I41); HTMLEditor.o3e(i41,I41); i41.parentNode.removeChild(i41); I41.parentNode.removeChild(I41); }}for (var i=0; i<I1b.length; i++){var O41=I1b[i]; var par=O41.parentNode; var o42= false; while (par && par.tagName && par.childNodes.length==1 && HTMLEditor.l1j(par.tagName)){var O42=par.tagName.toUpperCase(); if (((O42=="I" || O42=="EM") && O3w.name=="font-style") || ((O42=="B" || O42=="STRONG") && O3w.name=="font-weight") || ((O42=="S" || O42=="STRIKE") && O3w.name=="text-decoration") || ((O42=="U") && O3w.name=="text-decoration") || ((O42=="SUB" || O42=="SUP") && O3w.name=="vertical-align")){var l42=par; par=par.parentNode; while (l42.firstChild)par.insertBefore(l42.firstChild,l42); par.removeChild(l42); o42= true; continue; }else if (par.style && par.style[name] && par.style[name].length>0){var i42=par.style[name]; if (name.toLowerCase().indexOf("color")>=0 || name=="fontFamily" || name=="fontSize"){par.style[name]=value; }else {if (l3w){try {par.style[name]=par.style[name]+" "+value; if (i42==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {if (!i40){var o19=i42.replace(value,""); if (name=="fontWeight" && i42.toString()=="700")o19=""; if (o19==i42){try {par.style[name]=par.style[name]+" "+value; if (i42==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {par.style[name]=o19; I40= true; }i40= true; }else {if (I40){par.style[name]=i42.replace(value,""); }else {try {par.style[name]=par.style[name]+" "+value; if (i42==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}}}}o42= true; }par=par.parentNode; }if (!o42 && !I40){var span; span=this.I1.createElement("SPAN"); span.style[name]=value; var I42=O41.parentNode; I42.insertBefore(span,O41); span.appendChild(O41); i40= true; }}var o43=HTMLEditor.I24(I1a,o1b); var O43=o43.parent.childNodes.item(o43.i25).previousSibling; var l43=o43.parent.childNodes.item(o43.o26).nextSibling; I1a.parentNode.removeChild(I1a); o1b.parentNode.removeChild(o1b); var i25=0; var o26=o43.parent.childNodes.length; if (O43!=null){i25=HTMLEditor.l17(O43); }if (l43!=null){o26=HTMLEditor.l17(l43)+1; if (o26<o43.parent.childNodes.length){if (l43.nodeType==3)o26++; else if (l43.nodeType==1){var Il=l43.tagName.toUpperCase(); if (Il!="TR" && Il!="TD" && Il!="LI")o26++; }}}HTMLEditor.i26(o43.parent,this.I1,i25,o26); var X=this ; if (l40)X.i1j(I1b); this.O1.setTimeout( function (){if (!HTMLEditor.is_ie)X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.I3o= function (l3o){if (l3o.length==0)return []; var I1a=this.I1.createElement("SPAN"); var o1b=this.I1.createElement("SPAN"); var i43=l3o[0][0]; var I43=l3o[l3o.length-1][l3o[l3o.length-1].length-1]; if (i43==I43 && I43.nodeType==1 && I43.childNodes.length==0 && HTMLEditor.canHaveChildren(I43)){I43.appendChild(I1a); I43.appendChild(o1b); }else {var o44=HTMLEditor.O44(i43); o44.parentNode.insertBefore(I1a,o44); if (o44==i43){var o19=[]; o19.push(I1a); for (var i=0; i<l3o[0].length; i++)o19.push(l3o[0][i]); l3o[0]=o19; }var l44=HTMLEditor.i3k(I43); if (l44.nextSibling)l44.parentNode.insertBefore(o1b,l44.nextSibling); else l44.parentNode.appendChild(o1b); if (l44==I43){l3o[l3o.length-1].push(o1b);}}return [I1a,o1b]; };HTMLEditor.prototype.I1m= function (O3m,I3p){if (O3m.length==0)return; var I1a=O3m[0]; var o1b=O3m[1]; var lq=this.iq(); var o3z=null; var O40=null; if (HTMLEditor.is_ie){lq.empty(); lq=this.iq(); var l3l=this.or(lq); var i3l=this.or(lq); try {if (I1a!=null && o1b!=null && I1a.nextSibling==o1b){o3z=this.I1.createTextNode(" "); o1b.parentNode.insertBefore(o3z,o1b); } this.I3k=null; if (I1a!=null){l3l.moveToElementText(I1a); }if (o1b!=null){i3l.moveToElementText(o1b); }if (I1a!=null && o1b!=null){l3l.setEndPoint("EndToStart",i3l); l3l.select(); if (o3z!=null){l3l.collapse( false); l3l.select(); o3z.parentNode.removeChild(o3z); }}else if (I1a!=null)l3l.select(); else if (o1b!=null)i3l.select(); }catch (w){}}else {try {var Iq; var o1v=I1a.nextSibling; var o33=o1b.previousSibling;this.I3k=null; if (o1v==o33 && o1v.nodeType==1 && o1v.tagName.toUpperCase()=="BR"){var O1d=HTMLEditor.l17(o1v); Iq=this.I1.createRange(); Iq.setStart(o1v.parentNode,O1d); Iq.setEnd(o1v.parentNode,O1d); }else {o3z=this.I1.createTextNode(""); O40=this.I1.createTextNode(""); I1a.parentNode.insertBefore(o3z,I1a); o1b.parentNode.insertBefore(O40,o1b); Iq=this.I1.createRange(); Iq.setStart(o3z,0); Iq.setEnd(O40,0); } this.I17(lq); this.o18(lq,Iq); }catch (w){}}var i24=HTMLEditor.I24((I1a==null)?o1b:I1a,(o1b==null)?I1a:o1b); var parent=null; if (i24!=null){parent=i24.parent; }if (I1a!=null)I1a.parentNode.removeChild(I1a); if (o1b!=null)o1b.parentNode.removeChild(o1b); if (I3p && parent!=null){HTMLEditor.i26(parent,this.I1); if (!HTMLEditor.is_ie && o3z!=null && O40!=null){var Iq=this.I1.createRange(); Iq.setStart(o3z,0); Iq.setEnd(O40,0); this.I17(lq); this.o18(lq,Iq); }}};HTMLEditor.I3d= function (o32,Ie){for (var i=0; i<o32.childNodes.length; i++){var I1u=o32.childNodes.item(i); if (I1u==Ie)return i; if (I1u.nodeType==1){if (HTMLEditor.I3d(I1u,Ie)>=0)return i; }}return -1; };HTMLEditor.O44= function (o32){if (typeof o32.firstChild!="undefined" && o32.firstChild!=null){if (typeof o32.firstChild.childNodes!="undefined" && o32.firstChild.childNodes!=null){return HTMLEditor.O44(o32.firstChild);}}return o32; };HTMLEditor.i3k= function (o32){if (typeof o32.lastChild!="undefined" && o32.lastChild!=null){if (typeof o32.lastChild.childNodes!="undefined" && o32.lastChild.childNodes!=null){return HTMLEditor.i3k(o32.lastChild);}}return o32; };HTMLEditor.O3h= function (o32,Ie){if (o32.firstChild){if (o32.firstChild==Ie)return true; if (o32.firstChild.childNodes)if (HTMLEditor.I3d(o32.firstChild,Ie)==0){return HTMLEditor.O3h(o32.firstChild,Ie);}}return false; };HTMLEditor.l3h= function (o32,Ie){if (o32.lastChild){if (o32.lastChild==Ie)return true; if (o32.lastChild.childNodes)if (HTMLEditor.I3d(o32.lastChild,Ie)==o32.lastChild.childNodes.length-1){return HTMLEditor.l3h(o32.lastChild,Ie);}}return false; };HTMLEditor.I24= function (l25,I25){var ie=null; var par=l25.parentNode; var i44=l25; while (par){if (par.tagName && !HTMLEditor.l1j(par.tagName)){var o26=HTMLEditor.I3d(par,I25); if (o26>=0){var i25=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==i44){i25=i; break; }}return {parent:par,i25:i25,o26:o26 } ; }}i44=par; par=par.parentNode; }return ie; };HTMLEditor.prototype.removeAlignment= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.I10(); this.I3n("left", true); this.i14(); var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); } ; HTMLEditor.I44= function (l25,I25){var ie=null; var par=l25.parentNode; var i44=l25; while (par){var o26=HTMLEditor.I3d(par,I25); if (o26>=0){var i25=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==i44){i25=i; break; }}return {parent:par,i25:i25,o26:o26 } ; }if (par.tagName.toUpperCase()=="BODY" || !HTMLEditor.l1j(par.tagName)){break; }i44=par; par=par.parentNode; }return ie; };HTMLEditor.prototype.i1f= function (o45,on){var X=this ; if (HTMLEditor.is_ie){var lq=this.iq(); var Iq=this.or(lq); var O2e= false; var html=""; if (o45=="x")this.I10(); if (lq.type.toLowerCase()=="control"){O2e= true; html=HTMLEditor.getHTML(Iq.item(0), true);}else {if (Iq.text!=""){O2e= true; html=Iq.htmlText; var O45=Iq.duplicate(); var I1b=this.o1c(); if (I1b.length<1)return; var i24=HTMLEditor.I44(I1b[0],I1b[I1b.length-1]); if (i24!=null && I1b[0].previousSibling && I1b[0].previousSibling.nodeType==3){var par=i24.parent; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.l1j(par.tagName)){var Oz=par.cloneNode( false); Oz.innerHTML=html; html=Oz.outerHTML; par=par.parentNode; }}lq=this.iq(); lq.empty(); Iq=this.or(lq); Iq.setEndPoint("EndToEnd",O45); Iq.setEndPoint("StartToStart",O45); Iq.select(); }else if (Iq.htmlText!=""){O2e= true; html=Iq.htmlText; }}if (O2e){var src=this.I1.createElement("DIV"); src.innerHTML="!!!<span></span>"+html; src.removeChild(src.firstChild); src.removeChild(src.firstChild); var ik=HTMLEditor.getHTML(src, false , true); var l2y=new RegExp("(<[/]?)(teo"+HTMLEditor.Om+":)","ig"); ik=ik.replace(l2y,"$1"); delete src; this.o36(ik, true); Iq.select(); if (o45=="x"){lq.clear(); this.o11(); }}else {if (o45=="x"){lq.clear(); this.o11(); }}if (on)setTimeout( function (){X.updateToolbar(); } ,0144); }else {if (o45=="x"){ this.I10(); var lq=this.iq(); var Iq=this.or(lq); this.I17(lq); Iq.deleteContents(); if (this.I1.body.innerHTML==""){ this.I1.body.innerHTML="<br/>"; Iq.setStart(this.I1.body,0); Iq.setEnd(this.I1.body,0); }if (HTMLEditor.O11)this.f= true; X.i14(); this.o18(lq,Iq); }else {var lq=this.iq(); var Iq=this.or(lq); this.I17(lq); if (HTMLEditor.is_Safari)alert(this.If("safari-c","Use Apple-C")); else alert(this.If("moz-c","Use Ctrl-C")); if (HTMLEditor.O11)this.f= true; this.o18(lq,Iq); }}};HTMLEditor.l17= function (il){var O1d=0; if (il.parentNode){for ( ; O1d<il.parentNode.childNodes.length; O1d++)if (il.parentNode.childNodes.item(O1d)==il)break; }return O1d; };HTMLEditor.prototype.l45= function (Ij){var X=this ; this.I10(); if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X._paste(!X._NoPaste); X.On(); } ,0);HTMLEditor._stopEvent(Ij); }else {if (!this.isWord && !this._NoPaste)setTimeout( function (){HTMLEditor.iy(X,X.I1,!X.showAnchors); HTMLEditor.Iy(X,X.I1,!X.showPlaceHolders); HTMLEditor.l13(X.I1.body); X.i45(X.I1.body); X.i14(); } ,012); else {var O1y=X.l1y(); if (O1y!=null){var div=X.I1.createElement("div"); div.style.display="inline"; div.style.borderStyle="none"; O1y.parentNode.insertBefore(div,O1y); div.appendChild(O1y); div.removeChild(O1y); div.innerHTML="xx"; var lq=X.iq(); var I1b=X.or(); X.I17(lq); I1b.setStart(div.firstChild,0); I1b.setEnd(div.firstChild,1); X.o18(lq,I1b); X.openWait(); setTimeout( function (){var parent=div.parentNode; div.lastChild.deleteData(div.lastChild.length-1,1); if (X.isWord){div.innerHTML=HTMLEditor.O2q(div.innerHTML); HTMLEditor.I30(div,X, true); HTMLEditor.i26(div,X.I1); }else {var I45=document.createElement("div"); I45.innerHTML=HTMLEditor.O2q(div.innerHTML); div.innerHTML=I45.innerText.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>").replace(/\cI/g,"&nbsp;"); delete I45; }while (div.firstChild)parent.insertBefore(div.firstChild,div); var o46=null; var O46=null; if (div.nextSibling && div.nextSibling.nodeType==3 && div.previousSibling && div.previousSibling.nodeType==3){o46=div.nextSibling; O46=div.previousSibling; }parent.removeChild(div); var l46=null; if (o46!=null && O46!=null){l46=O46.data.length; O46.data=""+O46.data+""+o46.data+""; o46.parentNode.removeChild(o46); }X.isWord= false; X.On(); if (l46!=null){var lq=X.iq(); var I1b=X.or(); X.I17(lq); I1b.setStart(O46,l46); I1b.setEnd(O46,l46); X.o18(lq,I1b); }X.i14(); } ,0); }else HTMLEditor._stopEvent(Ij); }}};HTMLEditor.prototype.i46= false; HTMLEditor.prototype.I2c= function (Ij){try {var X=this ; if (HTMLEditor.is_ie){try {var Iz=this.I1.selection; var o10=this.or(Iz); }catch (t){HTMLEditor._stopEvent(Ij); return false; }}if (!this._wasFocused)this.focusEditor(); if (this.isPopup()){HTMLEditor._stopEvent(Ij); return false; }var I46= false; if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; if (X.l10){X.l10.select(); X.l10=null; }if (Ij.type=="keydown" || Ij.type=="keypress"){HTMLEditor._stopEvent(Ij); return; }I46= true; }if (typeof X.captureInDesign=="function"){if (X.captureInDesign(Ij) === false){HTMLEditor._stopEvent(Ij); return; }}if (HTMLEditor.is_ie && Ij.type=="mousedown" && Ij.ctrlKey){var lq=X.iq(); var o47=Ij.clientX; var O47=Ij.clientY; setTimeout( function (){var lq=X.iq(); if (lq.type.toLowerCase()!="control"){var Iq=X.I1.body.createTextRange(); Iq.moveToPoint(o47,O47); Iq.select(); }lq=X.iq(); var Iq=X.or(lq); var parent=HTMLEditor.getSelParent(X); while (parent!=null && parent.tagName.toUpperCase()!="BODY"){if (parent.tagName.toUpperCase()=="A" && parent.href!=null && typeof parent.href!="undefined" && parent.href.length>0){window.open(parent.href,"LinkViewWindow"); break; }parent=parent.parentNode; }} ,(lq.type.toLowerCase()!="control")?0: 012); HTMLEditor._stopEvent(Ij); return false; }{var il=(!HTMLEditor.is_ie)?Ij.target:Ij.srcElement; if (il.tagName!=null && typeof il.tagName!="undefined" && (il.tagName.toUpperCase()=="HTML" || il.tagName.toUpperCase()=="BODY")){if (X.l47!= true){X.l47= true; setTimeout( function (){if (!X.i47()){try {X.focusEditor(); }catch (w){}}X.l47= false; } ,0); }}else if (HTMLEditor.contentEditable(il)!=null){setTimeout( function (){X.i47(); } ,(!HTMLEditor.is_ie && Ij.button && Ij.button==2)?0310: 0); }}if (I46 && HTMLEditor.is_ie){var I47=this.iq(); var o10; try {o10=this.or(I47); if (I47.type.toLowerCase()=="control"){HTMLEditor._stopEvent(Ij); return false; }}catch (w){HTMLEditor._stopEvent(Ij); return false; }}var o48=(HTMLEditor.is_ie && Ij.type=="keydown") || (Ij.type=="keypress"); if (Ij.type=="keydown" && !HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (this.O48!=null){ this.O48.select(); this.O48=null; }if (o48 && !this.keyboardEnabled){HTMLEditor._stopEvent(Ij); return false; }var o45=String.fromCharCode(HTMLEditor.is_ie?Ij.keyCode:Ij.charCode).toLowerCase(); if (o48 && X._hotkeys!=null){if (X._hotkeys.length>0){var l48=X._hotkeys.length; var i48=o45; if (Ij.keyCode==022 || Ij.keyCode==021 || Ij.keyCode==020)i48=null; for (var i=0; i<l48; i++){var item=X._hotkeys[i]; if (item[1]==i48 && item[2]==Ij.altKey && item[3]==Ij.shiftKey && item[4]==Ij.ctrlKey){if (typeof item[0]=="function")setTimeout( function (){ (item[0])(X); X.i14(); X.focusEditor(); } ,0); HTMLEditor._stopEvent(Ij); return false; }}}}if (o48 && Ij.shiftKey && Ij.keyCode==055){ this.l45(Ij); }else if (o48 && Ij.ctrlKey && Ij.altKey && Ij.keyCode==044){var I48=null; var il=HTMLEditor.getSelParent(X); while (il && (il.nodeType==3 || (il.tagName && il.tagName.toUpperCase()!="BODY"))){if (il.nodeType==3 || !il.tagName){il=il.parentNode; continue; }if (!HTMLEditor.i33(il) && il.tagName.toUpperCase()!="P"){if (il.tagName.toUpperCase()=="TD")while (il.tagName.toUpperCase()!="TABLE")il=il.parentNode; else if (il.tagName.toUpperCase()=="LI")while (il.tagName.toUpperCase()!="OL" && il.tagName.toUpperCase()!="UL")il=il.parentNode; I48=il; break; }il=il.parentNode; }if (I48!=null){var lq=X.iq(); var Iq=X.or(lq); var i17=X.I1.createTextNode(""); I48.parentNode.insertBefore(i17,I48); if (HTMLEditor.is_ie){var l3l=X.or(lq); var i3l=X.or(lq); var o49=X.I1.createElement("span"); var O49=X.I1.createElement("span"); i17.parentNode.insertBefore(o49,i17); if (i17.nextSibling)i17.parentNode.insertBefore(O49,i17.nextSibling); else i17.parentNode.appendChild(O49); try {l3l.moveToElementText(o49); i3l.moveToElementText(O49); l3l.setEndPoint("EndToEnd",i3l); l3l.select(); }catch (t){}i17.parentNode.removeChild(o49); i17.parentNode.removeChild(O49); }else {X.I17(lq); Iq.setStart(i17,0); Iq.setEnd(i17,0); X.o18(lq,Iq); }}}else if (HTMLEditor.is_ie && Ij.keyCode>=041 && Ij.keyCode<=050 && !Ij.shiftKey){var l49=Ij.keyCode; var i49=(l49==042 || l49==043 || l49==047 || l49==050); setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); if (lq.type.toLowerCase()=="control"){var il=Iq.item(0); if (!il.contentEditable || il.contentEditable=="false"){Iq.remove(0); lq.empty(); Iq=X.or(lq); var span=X.I1.createElement("SPAN"); span.appendChild(X.I1.createTextNode("")); if (i49){if (il.nextSibling==null)il.parentNode.appendChild(span); else il.parentNode.insertBefore(span,il.nextSibling); }else {il.parentNode.insertBefore(span,il); }Iq.moveToElementText(span); Iq.select(); setTimeout( function (){X.focusEditor(); X.updateToolbar(); X.focusEditor(); span.parentNode.removeChild(span); } ,012); }}} ,0); }else if (((o48 && !HTMLEditor.is_Safari) || (HTMLEditor.is_Safari && Ij.type=="keydown")) && Ij.ctrlKey && !Ij.altKey){X.i46= false; var lq=null; var Iq=null; var o45=String.fromCharCode((HTMLEditor.is_ie || HTMLEditor.O11 || HTMLEditor.is_Safari)?Ij.keyCode:Ij.charCode).toLowerCase(); var i22=null; var value=null; if ((HTMLEditor.is_ie || HTMLEditor.is_Safari) && Ij.keyCode==021){return false; }else if (!HTMLEditor.is_ie && Ij.keyCode==043 && !Ij.shiftKey){X.O13( true); }else if (Ij.keyCode==056 && this.l1f()){HTMLEditor._stopEvent(Ij); return false; }else if (Ij.keyCode==056 || Ij.keyCode==8){if ((HTMLEditor.is_ie && Ij.type=="keydown") || (!HTMLEditor.is_ie && Ij.type=="keypress"))this.I10(); }else {switch (o45){case "a":if (!HTMLEditor.is_ie){lq=this.iq(); this.I17(lq); Iq=this.or(); Iq.selectNodeContents(this.I1.body); this.o18(lq,Iq); HTMLEditor._stopEvent(Ij); return false; }else X.i46= true; break; case "z": this.undo(); HTMLEditor._stopEvent(Ij); return false; break; case "p":if (!HTMLEditor.is_ie){setTimeout( function (){X.O1g(); } ,0); HTMLEditor._stopEvent(Ij); return false; }break; case "y": this.redo(); HTMLEditor._stopEvent(Ij); return false; break; case "x":if (this.l1f()){HTMLEditor._stopEvent(Ij); return false; } this.I10(); if (HTMLEditor.is_ie){if (Ij.type=="keydown"){X.openWait(); setTimeout( function (){X.i1f(o45, false); X.On(); } ,0); HTMLEditor._stopEvent(Ij); return false; }}break; case "c":if (this.l1f()){HTMLEditor._stopEvent(Ij); return false; }if (HTMLEditor.is_ie){if (Ij.type=="keydown"){X.openWait(); setTimeout( function (){X.i1f(o45, false); X.On(); setTimeout( function (){X.I1f(); } ,0); } ,0); HTMLEditor._stopEvent(Ij); return false; }}break; case "v":if (this.l1f()){HTMLEditor._stopEvent(Ij); return false; } this.l45(Ij); break; case "b": this.bold(); HTMLEditor._stopEvent(Ij); return false; case "i": this.italic(); HTMLEditor._stopEvent(Ij); return false; case "u": this.underline(); HTMLEditor._stopEvent(Ij); return false; case "s":i22="strikethrough"; break; case "l":i22="justifyleft"; break; case "e":i22="justifycenter"; break; case "r":i22="justifyright"; break; case "j":i22="justifyfull"; break; case "q":alert(this.I1.body.innerHTML); HTMLEditor._stopEvent(Ij); return false; break; case "0":var I49=this.If("your-browser","Your browser")+":\n\n"+navigator.userAgent; I49+="\n\nObout Editor: "+this.scriptVersion; alert(I49); HTMLEditor._stopEvent(Ij); return false; break; break; case "9":if (!HTMLEditor.is_ie){var lq=X.iq(); var Iq=X.or(lq); var O22=Iq.startContainer; var l22=Iq.endContainer; var o4a=""; o4a+="startContainer: "+(O22.nodeType==1?O22.tagName: "text")+"\n"; o4a+="endContainer  : "+(l22.nodeType==1?l22.tagName: "text")+"\n"; if (O22==l22){o4a+="startOffset: "+Iq.startOffset+"\n"; o4a+="endOffset  : "+Iq.endOffset+"\n"; if (O22.nodeType==1){O22=O22.childNodes.item(Iq.startOffset); if (O22 && O22.nodeType){o4a+="startOffset node: "+(O22.nodeType==1?O22.tagName: "text")+"\n"; if (Iq.startOffset!=Iq.endOffset){O22=l22.childNodes.item(Iq.endOffset); if (O22 && O22.nodeType)o4a+="endOffset node: "+(O22.nodeType==1?O22.tagName: "text")+"\n"; }}else o4a+=O22; }}alert(o4a); }else {var lq=X.iq(); var Iq=X.or(lq); alert("boundingLeft: "+Iq.boundingLeft+" boundingTop: "+Iq.boundingTop+"\n"+"boundingWidth: "+Iq.boundingWidth+" boundingHeight: "+Iq.boundingHeight); }HTMLEditor._stopEvent(Ij); return false; break; }}if (i22){ this.I1i(i22, false ,value); if (i22=="formatblock" && !HTMLEditor.is_ie){ this.I10(); this.o1f( false); }HTMLEditor._stopEvent(Ij); if (i22=="delete" || i22=="paste"){ this.o11(); }}}else if (((o48) || ((HTMLEditor.is_Safari || HTMLEditor.O11) && Ij.type=="keydown"))){if (HTMLEditor.is_ie && this.O2d){var Iq=this.or(this.iq()); Iq.select(); this.O2d= false; }var o45=String.fromCharCode(HTMLEditor.is_ie?Ij.keyCode:Ij.charCode).toLowerCase(); if (X.i46){X.i46= false; function O4a(){var I1g=X.or(X.iq()); var parent=I1g.parentElement(); if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); parent.parentNode.removeChild(parent); }}setTimeout(O4a,0); }if (this.l1f()){HTMLEditor._stopEvent(Ij); return false; }switch (Ij.keyCode){case 011:if (((HTMLEditor.is_Safari || HTMLEditor.O11) && Ij.type!="keydown"))break; if (!this.suppressTab){if (!this.isControl())this.i11("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); HTMLEditor._stopEvent(Ij); }else {if (!HTMLEditor.is_ie){HTMLEditor._stopEvent(Ij); }return true; }break; case 8:case 056:if (((HTMLEditor.is_Safari || HTMLEditor.O11) && Ij.type!="keydown"))break; if (((HTMLEditor.is_ie || HTMLEditor.is_Safari) && Ij.type=="keydown") || (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && Ij.type=="keypress"))this.I10(); if (!HTMLEditor.is_ie){var Iq=this.or(this.iq()); var O22=Iq.startContainer; var l22=Iq.endContainer; if (Ij.type=="keypress")if (HTMLEditor.contentEditable(O22)!=null || HTMLEditor.contentEditable(l22)!=null){HTMLEditor._stopEvent(Ij); return false; }if (O22==l22 && O22.nodeType==1 && O22.tagName.toUpperCase()=="TD" && Iq.startOffset==Iq.startOffset && O22.childNodes.item(Iq.startOffset) && O22.childNodes.item(Iq.startOffset).tagName && O22.childNodes.item(Iq.startOffset).tagName.toUpperCase()=="BR"){var span=O22.childNodes.item(Iq.startOffset); var left=0,right=0; var l4a,i23,l23; i23=l4a=span.previousSibling; while (l4a){left++; l4a=l4a.previousSibling; }l23=l4a=span.nextSibling; while (l4a){right++; l4a=l4a.nextSibling; }if ((Ij.keyCode==056 && right==0) || (Ij.keyCode==8 && left==0)){HTMLEditor._stopEvent(Ij); return false; }else if (Ij.keyCode==056 && O22.firstChild==O22.lastChild && O22.firstChild.nodeType==1){HTMLEditor._stopEvent(Ij); return false; }}if (O22==l22 && O22.nodeType==3 && Iq.startOffset==Iq.endOffset && !HTMLEditor.O11){var data=O22.data+""; if (Ij.keyCode==056)if (Iq.startOffset==data.length && !(O22.nextSibling && O22.nextSibling.nodeType==3)){if (O22.nextSibling){O22.parentNode.removeChild(O22.nextSibling); X.i14(); }HTMLEditor._stopEvent(Ij); return false; }if (Ij.keyCode==8)if (Iq.startOffset==0 && !(O22.previousSibling && O22.previousSibling.nodeType==3)){if (O22.previousSibling){O22.parentNode.removeChild(O22.previousSibling); X.i14(); }HTMLEditor._stopEvent(Ij); return false; }}if (Ij.keyCode==8 && O22.nodeType==1 && O22==l22 && Iq.startOffset==Iq.endOffset){var i4a=O22.childNodes.item(Iq.startOffset); if (i4a!=null && i4a.nodeType==1 && i4a.tagName.toUpperCase()=="BR"){i4a=i4a.previousSibling; if (i4a!=null && i4a.nodeType!=3){i4a.parentNode.removeChild(i4a); X.i14(); HTMLEditor._stopEvent(Ij); return false; }}}setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); var O22=Iq.startContainer; var l22=Iq.endContainer; if (HTMLEditor.contentEditable(O22)!=null || HTMLEditor.contentEditable(l22)!=null){X.o1f( false); return; }if (HTMLEditor.O11 && O22==l22 && O22.nodeType==3 && (O22.data).length==0){O22.parentNode.removeChild(O22); }else if (O22==l22 && O22.nodeType==1 && HTMLEditor.l1j(O22.tagName) && Iq.startOffset==Iq.endOffset && O22.childNodes.length==0){while (O22.parentNode.nodeType==1 && HTMLEditor.l1j(O22.parentNode.tagName) && O22.parentNode.childNodes.length==1)O22=O22.parentNode; var o1v=O22.nextSibling; var o33=O22.previousSibling; var parent=O22.parentNode; parent.removeChild(O22); X.i14(); if (o1v==null && o33==null){Iq.setStart(parent,0); Iq.setEnd(parent,0); }else if (o1v!=null && o33!=null){if (o1v.nodeType==3 && o33.nodeType==3){var i2a=(""+o33.data+"").length; o33.appendData(o1v.data);parent.removeChild(o1v); Iq.setStart(o33,i2a); Iq.setEnd(o33,i2a); }else if (o33.nodeType==3){var i2a=(""+o33.data+"").length; Iq.setStart(o33,i2a); Iq.setEnd(o33,i2a); }else if (o1v.nodeType==3){Iq.setStart(o1v,0); Iq.setEnd(o1v,0); }else {if (o1v.childNodes.length>0){Iq.setStart(o1v,0); Iq.setEnd(o1v,0); }else {var i2a=HTMLEditor.l17(o1v); Iq.setStart(parent,i2a); Iq.setEnd(parent,i2a); }}}else if (o33!=null){if (o33.nodeType==3){var i2a=(""+o33.data+"").length; Iq.setStart(o33,i2a); Iq.setEnd(o33,i2a); }else {var i2a=o33.childNodes.length; if (i2a>0){Iq.setStart(o33,i2a); Iq.setEnd(o33,i2a); }else {i2a=HTMLEditor.l17(o33); Iq.setStart(parent,i2a); Iq.setEnd(parent,i2a); }}}else if (o1v!=null){if (o1v.nodeType==3){Iq.setStart(o1v,0); Iq.setEnd(o1v,0); }else {var i2a=o1v.childNodes.length; if (i2a>0){Iq.setStart(o1v,i2a); Iq.setEnd(o1v,i2a); }else {i2a=HTMLEditor.l17(o1v); Iq.setStart(parent,i2a); Iq.setEnd(parent,i2a); }}}X.I17(lq); X.o18(lq,Iq); }} ,012); }else {var lq=X.iq(); if (lq.type.toLowerCase()=="control"){if (Ij.keyCode==8){setTimeout( function (){X.I1f(); X.i14(); } ,0); HTMLEditor._stopEvent(Ij); return; }var I1g=X.or(lq); var I4a=I1g.item(0); if (I4a.tagName.toUpperCase()=="EMBED"){I4a.src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); I4a.parentNode.removeChild(I4a); while (I1g.length>0)I1g.remove(0); try {I1g.collapse( false); }catch (t){}HTMLEditor._stopEvent(Ij); X.I10(); setTimeout( function (){X.o1f( false); X.i14(); } ,0); return; }}var l3a=X.I1.body.getElementsByTagName("EMBED").length; if (l3a>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); var o4b=Ij.keyCode; setTimeout( function (){X.A.removeChild(popup); var O4b=X.I1.body.getElementsByTagName("EMBED"); if (l3a!=O4b.length){X.I10(); setTimeout( function (){X.o1f( false); X.i14(); } ,0); }} ,0); }setTimeout( function (){X.o11(); } ,5); break; }break; case 015:if (((HTMLEditor.is_Safari || HTMLEditor.O11) && Ij.type=="keydown"))break; if ((!HTMLEditor.is_ie && Ij.type=="keypress") || (HTMLEditor.is_ie && Ij.type=="keydown"))this.I10(); if (HTMLEditor.is_ie && Ij.type=="keydown"){var lq=X.iq(); if (lq.type.toLowerCase()=="control")break; var I1g=X.or(lq); if (!Ij.shiftKey){var l4b=I1g.parentElement(); if (l4b.tagName.toUpperCase()=="TEXTAREA")break; while (l4b && l4b.tagName && l4b.tagName.toUpperCase()!="BODY" && HTMLEditor.l1j(l4b.tagName)){l4b=l4b.parentNode; }if (l4b && l4b.tagName && (l4b.tagName.toUpperCase()=="P" || l4b.tagName.toUpperCase()=="LI")){if (l4b.tagName.toUpperCase()=="LI"){function test(){I1g=X.or(X.iq()); var parent=I1g.parentElement(); while (parent && parent.tagName && parent.tagName.toUpperCase()!="BODY" && HTMLEditor.l1j(parent.tagName)){parent=parent.parentNode; }if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){var o49=X.I1.createElement("span"); var i17=X.I1.createTextNode(" "); var l3m=parent; while (l3m.firstChild!=null && l3m.firstChild.nodeType==1)l3m=l3m.firstChild; if (l3m.nodeType==1){l3m.appendChild(i17); l3m.appendChild(o49); while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); }else {parent.parentNode.insertBefore(i17,parent); parent.parentNode.insertBefore(o49,parent); }parent.parentNode.removeChild(parent); I1g.moveToElementText(o49); I1g.select(); o49.parentNode.removeChild(o49); X.i14(); }}setTimeout(test,024); }break; }try {var I3x=HTMLEditor.Om+"_middle_add"; var o3y=null; var O3y="<span id="+I3x+"></span>"; function i4b(){var lq=X.iq(); var Iq=X.or(lq); if (o3y!=null){o3y.innerHTML="&nbsp;"; Iq.moveToElementText(o3y); Iq.select(); o3y.parentNode.insertBefore(o3y.firstChild,o3y); o3y.parentNode.removeChild(o3y); X.i14(); }}I1g.pasteHTML(O3y); var I4b= false; o3y=X.I1.getElementById(I3x); if (o3y!=null){var nextSibling=o3y.nextSibling; var o4c=o3y.parentNode; while (nextSibling==null && o4c!=null && HTMLEditor.l1j(o4c.tagName)){nextSibling=o4c.nextSibling; o4c=o4c.parentNode; }if (nextSibling!=null && !HTMLEditor.i3c(nextSibling) && nextSibling.tagName!=null && typeof nextSibling.tagName!="undefined"){var Il=nextSibling.tagName.toUpperCase(); if (Il!="BR" && Il!="UL" && Il!="OL" && Il!="P"){I4b= true; }}o3y.parentNode.removeChild(o3y); }I1g.pasteHTML("<br/>"+(I4b?O3y: "")); if (I4b)o3y=X.I1.getElementById(I3x); I1g.select(); if (I4b){setTimeout(i4b,0); HTMLEditor._stopEvent(Ij); return false; }}catch (w){}}else {break; }HTMLEditor._stopEvent(Ij); }else {if (!Ij.shiftKey && (HTMLEditor.is_Safari || HTMLEditor.O11)){var l4b=HTMLEditor.getSelParent(this ); if (l4b.nodeType==3){l4b=l4b.parentNode; }while (l4b && l4b.tagName && l4b.tagName.toUpperCase()!="BODY" && HTMLEditor.l1j(l4b.tagName)){l4b=l4b.parentNode; }if (l4b && l4b.tagName && (l4b.tagName.toUpperCase()=="P" || l4b.tagName.toUpperCase()=="LI")){break; }var O3y="<br />"; if (HTMLEditor.O11){var lq=X.iq(); var Iq=X.or(lq); if (Iq.startContainer==Iq.endContainer){if (Iq.startContainer.nodeType==1){var O4c=Iq.startContainer.childNodes.item(Iq.startOffset); if (O4c.nodeType==1 && O4c.tagName.toUpperCase()=="BR"){O3y+="<br />"; }}else if (Iq.startContainer.nodeType==3 && Iq.startOffset==Iq.endOffset && (Iq.startContainer.data).length==Iq.endOffset){O3y+="&nbsp;"; }}} this.i11(O3y); HTMLEditor._stopEvent(Ij); if (HTMLEditor.O11){var lq=X.iq(); var Iq=X.or(lq); if (Iq.startContainer==Iq.endContainer && Iq.startContainer.nodeType==3 && Iq.startOffset==Iq.endOffset && (Iq.startContainer.data).length==0){var l4c=Iq.startContainer.previousSibling; Iq.startContainer.parentNode.removeChild(Iq.startContainer); X.I17(lq); Iq=X.or(); Iq.setStart(l4c,0); Iq.setEnd(l4c,1); X.o18(lq,Iq); }}X.i14(); }else if (HTMLEditor.is_Safari){ this.i11("<br/>"); HTMLEditor._stopEvent(Ij); X.i14(); }}break; }}else X.i46= false; if (HTMLEditor.is_ie && Ij.type=="keypress" && !Ij.ctrlKey){var o45=Ij.keyCode; var i4c=X.iq(); var I4c=X.or(i4c); if (I4c.text.length>0){var o4d=String.fromCharCode(o45); var O4d=HTMLEditor.l4d(Ij); var i4d=(Ij.shiftKey && !O4d) || O4d; if (!i4d)o4d=o4d.toLowerCase(); var I4d=HTMLEditor.Om+"StyleForTyping"; var o4e=X.I1.getElementById(I4d); if (o4e!=null){o4d="<span id='"+I4d+"'></span>"+o4d+"<span id='"+I4d+I4d+"'></span>"; o4e.parentNode.removeChild(o4e); }I4c.pasteHTML(o4d); if (o4e!=null){X.O4e(I4d); o4e=X.I1.getElementById(I4d+I4d); o4e.parentNode.removeChild(o4e); }HTMLEditor._stopEvent(Ij); X.i14(); return false; }}if (Ij.type=="mouseup" || Ij.type=="mousedown" || Ij.type=="keydown"){var l4e= true; if (Ij.type=="keydown" && !Ij.ctrlKey){var o45=Ij.keyCode; if ((o45>=060 && o45<=0132) || (o45==040) || (o45==0015) || (o45>=0272 && o45<=0336) || (o45>=0140 && o45<=0157)){if (X.M!=null){X.l3z=[]; for (var i4e=0; i4e<X.M.length; i4e++){X.l3z.push(X.M[i4e]); }var I4d=HTMLEditor.Om+"StyleForTyping"; var I4e= true; if (!HTMLEditor.is_ie)X.i11("<span id='"+I4d+"'></span>"); else {X.i11("<span id='"+I4d+"'>&nbsp;</span>"); var o4e=X.I1.getElementById(I4d); if (o4e && o4e.nextSibling && o4e.nextSibling.nodeType==3){I4e= false; var i4c=X.iq(); var I4c=X.or(i4c); I4c.moveToElementText(X.I1.getElementById(I4d)); I4c.select(); }else if (o4e)o4e.removeChild(o4e.firstChild); }if (I4e)setTimeout( function (){X.O4e(I4d); X.i14(); } ,0); }}}if (!HTMLEditor.is_ie && (Ij.type=="mousedown" || (Ij.type=="keydown" && !Ij.ctrlKey))){X.o1h= false; X.i1h= false; X.I1h= false; X.o1i= false; X.O1i= false; X.l1i= false; }if (l4e || !HTMLEditor.is_ie){if (!X.o4f){if (X.O4f){clearTimeout(X.O4f); X.O4f=null; }X.l4f=3; function i4f(){try {if (HTMLEditor.is_ie){try {var Iz=X.I1.selection; }catch (t){return false; }}if (HTMLEditor.is_ie)if (X.iq().type=="None" && X.I1.queryCommandValue("backcolor")==0 && X.I1.queryCommandValue("forecolor")==0){X.l4f--; if (X.l4f>0){X.O4f=setTimeout(i4f,0144); return; }}X.o4f= true; X.updateToolbar(); X.o4f= false; X.O4f=null; if (!HTMLEditor.is_ie){X.focusEditor(); }}catch (t){}}X.O4f=setTimeout(i4f,0454); }}}if (!((!HTMLEditor.is_ie && (Ij.type=="keydown" || Ij.type=="keyup")) || (HTMLEditor.is_ie && (Ij.type=="keydown" || Ij.type=="keyup") && (Ij.keyCode==020 || Ij.keyCode==024))))X.M=null; if (HTMLEditor.is_Safari)setTimeout( function (){X.or(X.iq()); } ,0); if (!HTMLEditor.is_ie)setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); if (Iq.startContainer.nodeType!=3 && Iq.startContainer==Iq.endContainer)if (Iq.startOffset==Iq.endOffset)if (Iq.startContainer.childNodes.item(Iq.startOffset))if (Iq.startContainer.childNodes.item(Iq.startOffset).nodeType==3){var O17=Iq.startContainer.childNodes.item(Iq.startOffset); lq.collapseToEnd(); X.I17(lq); lq=X.iq(); Iq=X.or(lq); if (HTMLEditor.is_Safari){X.O14.type="Caret"; X.O14.focusNode=O17; X.O14.focusOffset=0; }else {Iq.setStart(O17,0); Iq.setEnd(O17,0); X.o18(lq,Iq); }}} ,0144); if (!HTMLEditor.is_ie){var lq=X.iq(); var Iq=X.or(lq); X.I4f=Iq.startContainer; X.o4g=Iq.startOffset; }setTimeout( function (){try {X.I1f(); }catch (t){}} ,0144); if (Ij.type=="keydown"){if (X.O4g==null || typeof X.O4g=="undefined" || !X.O4g){X.O4g= true; setTimeout( function (){X.i14(); X.O4g= false; } ,012); }}return true; }catch (w){HTMLEditor._stopEvent(Ij); return false; }} ; HTMLEditor.prototype.O4e= function (I4d){var X=this ; var il=X.I1.getElementById(I4d); if (il!=null){if (il.nextSibling && il.nextSibling.nodeType==3){var text=il.nextSibling; il.parentNode.removeChild(il); var l4g=(""+text.data+"").indexOf(" "); if (l4g>0)text.splitText(l4g); else if (l4g==0)text.splitText(1); if (X.l3z!=null)for (var i4e=0; i4e<X.l3z.length; i4e++)X.i3w(X.l3z[i4e],[text], false); X.l3z=null; var lq=X.iq(); if (!HTMLEditor.is_ie){var Iq=X.I1.createRange(); Iq.setStart(text,text.length); Iq.setEnd(text,text.length); X.I17(lq); X.o18(lq,Iq); }else {var l3l=X.or(lq); var o49=X.I1.createElement("span"); if (text.nextSibling)text.parentNode.insertBefore(o49,text.nextSibling); else text.parentNode.appendChild(o49); try {l3l.moveToElementText(o49); l3l.select(); }catch (t){}o49.parentNode.removeChild(o49); }}else il.parentNode.removeChild(il); }};HTMLEditor.prototype.l1f= function (){if (!this.isControl())return false; var lq=this.iq(); var Iq=this.or(lq); var l1p; if (HTMLEditor.is_ie){l1p=Iq.item(0); }else {l1p=Iq.startContainer.childNodes.item(Iq.startOffset); }if (l1p.tagName && l1p.tagName.toUpperCase()=="IMG" && l1p.getAttribute(HTMLEditor.Ot) && l1p.getAttribute(HTMLEditor.Ot).length>0){var i4g=this.lt(l1p); if (i4g!=null){if (HTMLEditor.is_ie){Iq=this.I1.body.createControlRange(); Iq.add(i4g); Iq.select(); }else {try {var index=HTMLEditor.l17(i4g); lq.collapseToEnd(); this.I17(lq); Iq=this.or(lq); Iq.setStart(i4g.parentNode,index); Iq.setEnd(i4g.parentNode,index+1); this.o18(lq,Iq); }catch (t){return true; }}return false; }return true; }return false; };HTMLEditor.prototype.I1f= function (){if (HTMLEditor.is_ie){try {var Iz=this.I1.selection; }catch (t){return false; }}var X=this ; var I48=null; var il=HTMLEditor.getSelParent(X); while (il && (il.nodeType==3 || (il.tagName && il.tagName.toUpperCase()!="BODY"))){if (il.nodeType==3 || !il.tagName){il=il.parentNode; continue; }if (il.tagName.toUpperCase()=="TABLE" && il.getAttribute(HTMLEditor.ot) && il.getAttribute(HTMLEditor.ot)=="yes"){I48=il.rows.item(0).cells.item(0).firstChild; if (HTMLEditor.is_ie && I48.tagName.toUpperCase()=="P")I48=I48.firstChild; break; }il=il.parentNode; }if (I48!=null){var lq=X.iq(); var Iq=X.or(lq); if (HTMLEditor.is_ie){Iq=X.I1.body.createControlRange(); Iq.add(I48); Iq.select(); }else {try {lq.collapseToEnd(); X.I17(lq); Iq=X.or(lq); Iq.setStart(I48.parentNode,0); Iq.setEnd(I48.parentNode,1); X.o18(lq,Iq); }catch (t){}}}};HTMLEditor.prototype.iq= function (){if (HTMLEditor.is_ie){var lq=this.I1.selection; return lq; }else { this.focusEditor(); var lq; var Iq; var il; lq=this._iframe.contentWindow.getSelection(); Iq=this.or(lq); il=Iq.startContainer; try {while (il && il.nodeType){il=il.parentNode; }}catch (t){ this.I17(lq); Iq=this.or(lq); Iq.setStart(this.I4f,this.o4g); Iq.setEnd(this.I4f,this.o4g); this.o18(lq,Iq); lq=this._iframe.contentWindow.getSelection(); }return lq; }} ; HTMLEditor.prototype.or= function (lq){if (HTMLEditor.is_ie){return lq.createRange(); }else { this.focusEditor(); if (typeof lq=="undefined"){return this.I1.createRange(); }else {try {var I1g=lq.getRangeAt(0); if (I1g==null && HTMLEditor.Ok)I4g.o4h=O4h.O4h; return I1g; }catch (t){var X=this ; if (!(HTMLEditor.is_Safari && !HTMLEditor.Ok) && lq.rangeCount==0){return this.I1.createRange(); }if (HTMLEditor.is_Safari){try {if (lq.type=="None"){if (X.O14){if (X.O14.type=="Caret"){lq.setPosition(X.O14.focusNode,X.O14.focusOffset); }else {lq.setBaseAndExtent(X.O14.anchorNode,X.O14.anchorOffset,X.O14.focusNode,X.O14.focusOffset); }}else {lq.setPosition(this.I1.body.firstChild,0); }}if (lq.type=="Caret"){var I1g=X.I1.createRange(); if (!X.O14)X.O14=new Object(); X.O14.type="Caret"; I1g.setStart(lq.focusNode,lq.focusOffset); I1g.setEnd(lq.focusNode,lq.focusOffset); X.O14.focusNode=lq.focusNode; X.O14.focusOffset=lq.focusOffset; return I1g; }if (!X.O14)X.O14=new Object(); X.O14.type="Range"; var l4h=lq.anchorNode; var i4h=lq.anchorOffset; if (l4h.nodeType==1 && l4h.childNodes.length==0){l4h=l4h.parentNode; i4h=HTMLEditor.I3d(l4h,lq.anchorNode); }var I4h=lq.focusNode; var o4i=lq.focusOffset; if (I4h.nodeType==1 && I4h.childNodes.length==0){I4h=I4h.parentNode; o4i=HTMLEditor.I3d(I4h,lq.focusNode); }var O4i=X.I1.createRange(); O4i.setStart(l4h,i4h); O4i.collapse( true); var l4i=X.I1.createRange(); l4i.setStart(I4h,o4i); l4i.collapse( true); var i4i=O4i.compareBoundaryPoints(O4i.START_TO_END,l4i)<0; var I4i=i4i?l4h:I4h; var o4j=i4i?i4h:o4i; var O4j=i4i?I4h:l4h; var l4j=i4i?o4i:i4h; var I1g=X.I1.createRange(); I1g.setStart(I4i,o4j); I1g.setEnd(O4j,l4j); X.O14.focusNode=O4j; X.O14.focusOffset=l4j; X.O14.anchorNode=I4i; X.O14.anchorOffset=o4j; return I1g; }catch (t){X.O14=null; lq.setPosition(this.I1.body.firstChild,0); }}}}}} ; HTMLEditor.prototype.i4j=null; HTMLEditor.prototype.getFormat= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var lq=this.iq(); var Iq=this.or(lq); var l23=HTMLEditor.Om+"_right"; var o24; if (HTMLEditor.is_ie){o24=Iq.duplicate(); o24.setEndPoint("StartToEnd",Iq); }else {o24=Iq.cloneRange(); o24.setStart(o24.endContainer,o24.endOffset); }if (this.i11("<span id='"+l23+"'/>",o24)){var o1b=this.I1.getElementById(l23); var par=o1b.parentNode; this.i4j=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.l1j(par.tagName)){if (par.tagName.toUpperCase()!="A"){var ik=par.cloneNode( false); if (this.i4j==null){ this.i4j=ik; }else {ik.appendChild(this.i4j); this.i4j=ik; }}par=par.parentNode; }o1b.parentNode.removeChild(o1b); if (this.i4j){var o3l=this.I1.createElement("span"); o3l.appendChild(this.i4j); this.i4j=o3l.innerHTML; }}};HTMLEditor.prototype.applyFormat= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (this.i4j==null){setTimeout( function (){alert(X.If("copy-format","Copy Format.")); } ,0); return; }var o3l=this.I1.createElement("span"); o3l.innerHTML=this.i4j; var I1b=this.o1c(); if (I1b.length==0){setTimeout( function (){alert(X.If("select-text","Select some text.")); } ,0); delete o3l; return; } this.I10(); for (var i=0; i<I1b.length; i++){var par=I1b[i].parentNode; var I4j=o3l.firstChild.cloneNode( true); var l26=I4j; while (l26.firstChild)l26=l26.firstChild; par.insertBefore(I4j,I1b[i]); l26.appendChild(I1b[i]); } this.i1j(I1b); delete o3l; this.O1.setTimeout( function (){X.i14(); X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.o1c= function (o4k){try {var O4k=[]; if (this.isControl())return O4k; var lq=this.iq(); var Iq=this.or(lq); var l23=HTMLEditor.Om+"_right"; var i23=HTMLEditor.Om+"_left"; var I23=null; var o24=null; var l4k; if (typeof o4k=="undefined"){if (HTMLEditor.is_ie){I23=Iq.duplicate(); o24=Iq.duplicate(); I23.setEndPoint("EndToStart",Iq); o24.setEndPoint("StartToEnd",Iq); }else {I23=Iq.cloneRange(); o24=Iq.cloneRange(); I23.setEnd(I23.startContainer,I23.startOffset); o24.setStart(o24.endContainer,o24.endOffset); l4k=I23.endOffset; }if (!this.i11("<span id='"+l23+"'/>",o24))return O4k; {if (HTMLEditor.O11){I23.setEnd(I23.startContainer,l4k); I23.setStart(I23.startContainer,l4k); }if (!this.i11("<span id='"+i23+"'/>",I23)){var O24=this.I1.getElementById(l23); if (O24!=null){ik=O24.parentNode; ik.removeChild(O24); }var i4k=this.I1.getElementById(I4k); if (i4k!=null){ik=i4k.parentNode; ik.removeChild(i4k); }return O4k; }}}else {var span; span=this.I1.createElement("SPAN"); span.id=l23; this.I1.body.appendChild(span); span=this.I1.createElement("SPAN"); span.id=i23; this.I1.body.insertBefore(span,this.I1.body.firstChild); }var I1a=this.I1.getElementById(i23); var o1b=this.I1.getElementById(l23); if (I1a==null || o1b==null){var ik; if (I1a!=null){ik=I1a.parentNode; ik.removeChild(I1a); }if (o1b!=null){ik=o1b.parentNode; ik.removeChild(o1b); }return []; }while (I1a.firstChild)I1a.removeChild(I1a.firstChild); while (o1b.firstChild)o1b.removeChild(o1b.firstChild); while (I1a.previousSibling && I1a.previousSibling.nodeType==3 && HTMLEditor.o13(""+I1a.previousSibling.data+"").length==0)I1a.parentNode.removeChild(I1a.previousSibling); while (I1a.nextSibling && I1a.nextSibling.nodeType==3 && HTMLEditor.o13(""+I1a.nextSibling.data+"").length==0)I1a.parentNode.removeChild(I1a.nextSibling); while (o1b.previousSibling && o1b.previousSibling.nodeType==3 && HTMLEditor.o13(""+o1b.previousSibling.data+"").length==0)o1b.parentNode.removeChild(o1b.previousSibling); while (o1b.nextSibling && o1b.nextSibling.nodeType==3 && HTMLEditor.o13(""+o1b.nextSibling.data+"").length==0)o1b.parentNode.removeChild(o1b.nextSibling); var o42= false; var X=this ; function o4l(O4l,on){while (O4l){if (O4l.id && O4l.id==l23){o42= true; return; }if (O4l.nodeType==3){while (O4l.nextSibling && (O4l.nextSibling.nodeType==3 || (!HTMLEditor.is_ie && X.o3x!=null && X.o3x[0]==O4l.nextSibling))){if (O4l.nextSibling.nodeType==3)O4l.data=""+O4l.data+""+O4l.nextSibling.data+""; else {X.o3x[0]=O4l; X.o3x[1]=(""+O4l.data+"").length; }O4l.parentNode.removeChild(O4l.nextSibling); }if (HTMLEditor.o13(""+O4l.data+"").length>0)O4k.push(O4l); }else {if (!(O4l.tagName && (O4l.tagName.toUpperCase()=="MAP" || O4l.tagName.toUpperCase()=="AREA")))if (!(O4l.tagName && (O4l.tagName.toUpperCase()=="SCRIPT" || O4l.tagName.toUpperCase()=="NOSCRIPT")))if (!(O4l.style && (oz(O4l,"display")=="none" || oz(O4l,"visibility")=="hidden")))o4l(O4l.firstChild, false); }if (o42)return; var l37=O4l.parentNode; if (on)while (O4l.nextSibling==null){O4l=O4l.parentNode; }O4l=O4l.nextSibling; }}o4l(I1a, true); var ik; ik=I1a.parentNode; ik.removeChild(I1a); ik=o1b.parentNode; ik.removeChild(o1b); if (typeof o4k=="undefined"){if (HTMLEditor.is_ie){lq.empty(); o24.select(); }else {if (O4k.length>0){ this.I17(lq); var o10=this.or(); o10.setEnd(O4k[O4k.length-1],O4k[O4k.length-1].length); o10.setStart(O4k[O4k.length-1],O4k[O4k.length-1].length); this.o18(lq,o10); }}}return O4k; }catch (t){alert("_getTextNodeCollection: "+t.message); return []; }} ; HTMLEditor.prototype.Or= function (Iq){if (HTMLEditor.is_ie)return Iq.parentElement(); else {return Iq.startContainer; }};HTMLEditor.prototype.getIconsUrls= function (){var X=this ; var ie=[]; for (var i=0; i<X._IconArray.length; i++){var folder=X._IconArray[i][0]; var ig=X._IconArray[i][1]; for (var Oh=0; Oh<ig.length; Oh++)ie.push(X.o8+"/"+folder+"/"+ig[Oh]); }return ie; };HTMLEditor.prototype.ExecCommand= function (l4l,param){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.or(this.iq()); this.I10(); this.I1i(l4l, false ,param); return true; };HTMLEditor.prototype.QueryCommand= function (l4l){if (this.mode()!="html")return false; switch (l4l.toLowerCase()){case "forecolor":return this.foreColorValue(); case "backcolor":return this.backColorValue(); case "fontname":return this.fontNameState(); case "fontsize":return this.fontSizeState(); case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":return this.I22(l4l); case "formatblock":var I16=this.i4l(); if (I16==null)return ""; var il=I16.start; while (il && il.tagName && il.tagName.toUpperCase()!="BODY" && il.tagName.toUpperCase()!="TD"){if (/^h\d$/i.test(il.tagName))return il.tagName; il=il.parentNode; }return ""; }return this.I1.queryCommandValue(l4l); };HTMLEditor.prototype.I1i= function (l4l,UI,param){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }var lq; var Iq; if (HTMLEditor.is_ie && !this.isControl()){lq=this.iq(); Iq=this.or(lq); var l4b=Iq.parentElement(); if (l4b.tagName.toUpperCase()=="TEXTAREA")return; }try {if (l4l.toLowerCase()!="createlink")this.I10(); if (HTMLEditor.is_Safari){lq=this.iq(); }switch (l4l.toLowerCase()){case "createlink":if (HTMLEditor.is_ie || !UI){ this.I1.execCommand(l4l,UI,param); }else {if ((param=prompt("Enter URL"))){ this.I1.execCommand(l4l, false ,param); }}break; case "backcolor":case "forecolor":case "fontname":case "fontsize": this.I3v(l4l.toLowerCase(),param); break; case "indent": this.i3u( true); break; case "outdent": this.i3u( false); break; case "justifyleft": this.I3n("left"); break; case "justifyfull": this.I3n("justify"); break; case "justifycenter": this.I3n("center"); break; case "justifyright": this.I3n("right"); break; case "paragraph": this.I3n("remain", false ,"P"); break; case "formatblock":if (param!=null && typeof param=="string" && param.length==2){if (param.substr(0,1).toUpperCase()=="H" && parseInt(param.substr(1,1))>0){ this.I3n("remain", false ,param); break; }} this.I1.execCommand(l4l,UI,param); break; case "insertunorderedlist": this.o3s("UL"); break; case "insertorderedlist": this.o3s("OL"); break; case "bold":case "italic":case "underline":case "strikethrough":case "superscript":case "subscript": this.I3v(l4l.toLowerCase()); break; default: this.I1.execCommand(l4l,UI,param); break; } this.i14(); if (!HTMLEditor.is_ie){lq=this.iq(); Iq=this.or(lq); this.I17(lq); if (HTMLEditor.O11)setTimeout( function (){X.f= true; X.focusEditor(); X.o18(lq,Iq); } ,0); this.o18(lq,Iq); this.focusEditor(); }var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); }catch (t){alert("_execCommand: "+t.message); }} ; HTMLEditor.prototype.I17= function (lq){if (!HTMLEditor.is_Safari)lq.removeAllRanges(); };HTMLEditor.prototype.o18= function (lq,Iq,on){if (!HTMLEditor.is_Safari)lq.addRange(Iq); else {if (Iq.startContainer==Iq.endContainer && Iq.startOffset==Iq.endOffset){lq.setPosition(Iq.startContainer,Iq.startOffset); }else lq.setBaseAndExtent(Iq.startContainer,Iq.startOffset,Iq.endContainer,Iq.endOffset); }if (typeof on=="undefined")if (HTMLEditor.O11 && this.f)this._iframe.blur(); this.focusEditor(); };HTMLEditor.prototype.I4l= function (value){if (this.isControl())return false; var Iq=this.or(this.iq()); var o4m=Iq.duplicate(); var O4m=Iq.duplicate(); o4m.setEndPoint("StartToStart",Iq); o4m.setEndPoint("EndToStart",Iq); O4m.setEndPoint("StartToEnd",Iq); O4m.setEndPoint("EndToEnd",Iq); var l4m=o4m.parentElement(); var i4m=O4m.parentElement(); if (l4m.parentNode!=i4m.parentNode || HTMLEditor.I4m(l4m)){function o4n(il){var ig=[]; while (il!=null){ig.push(il); il=il.parentNode; }ig.reverse(); return ig; } ; var O4n=o4n(l4m.parentNode); var l4n=o4n(i4m.parentNode); var i=0; while (O4n[i]==l4n[i])i++; l4m=O4n[i]; i4m=l4n[i]; if (HTMLEditor.I4m(l4m)){while (HTMLEditor.I4m(l4m)){i--; l4m=O4n[i]; }i4m=l4m; }}var Ic=l4m; if (!Ic)return false; if (!this.rtlState()){ do {var i4n=Ic.style.marginLeft?parseInt(Ic.style.marginLeft): 0; i4n=i4n+value; if (i4n<=0)Ic.style.marginLeft=""; else Ic.style.marginLeft=i4n+"px"; if (Ic==i4m)break; Ic=Ic.nextSibling; }while (Ic);}else { do {var i4n=Ic.style.marginRight?parseInt(Ic.style.marginRight): 0; i4n=i4n+value; if (i4n<=0)Ic.style.marginRight=""; else Ic.style.marginRight=i4n+"px"; if (Ic==i4m)break; Ic=Ic.nextSibling; }while (Ic);}return true; };HTMLEditor.I4m= function (il){if (!il)return false; if (!il.tagName)return false; var name=il.tagName.toUpperCase(); switch (name){case "TD":case "TR":case "TBODY":case "LI":return true; default:return false; }};HTMLEditor.prototype.l1h= function (l4l){var I16=this.i4l(); if (I16==null)return false; try {var O3w= {name: "none",value: "none" } ; switch (l4l.toLowerCase()){case "bold":O3w= {name: "font-weight",value: "bold" } ; break; case "italic":O3w= {name: "font-style",value: "italic" } ; break; case "underline":O3w= {name: "text-decoration",value: "underline" } ; break; case "strikethrough":O3w= {name: "text-decoration",value: "line-through" } ; break; case "superscript":O3w= {name: "vertical-align",value: "super" } ; break; case "subscript":O3w= {name: "vertical-align",value: "sub" } ; break; }var i1y=I16.start; var I4n=I16.end; var o4o=HTMLEditor.oz(i1y,O3w.name).toString().toLowerCase(); var O4o=HTMLEditor.oz(I4n,O3w.name).toString().toLowerCase(); if (O3w.name=="font-weight" && o4o=="700")o4o="bold"; if (O3w.name=="font-weight" && O4o=="700")O4o="bold"; if (/MSIE (5|6)/.test(navigator.userAgent) && l4l.toLowerCase()=="strikethrough" && (o4o=="underline" || O4o=="underline")){while (i1y && HTMLEditor.l1j(i1y.tagName)){if (i1y.style.textDecoration.indexOf("line-through")>=0){o4o=i1y.style.textDecoration; break; }i1y=i1y.parentNode; }while (I4n && HTMLEditor.l1j(I4n.tagName)){if (I4n.style.textDecoration.indexOf("line-through")>=0){O4o=I4n.style.textDecoration; break; }I4n=I4n.parentNode; }}var ie=(o4o.indexOf(O3w.value)>=0) && (O4o.indexOf(O3w.value)>=0); if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var l4o=this.M[i]; if (l4o.name==O3w.name && l4o.value==O3w.value){ie=!ie; break; }}}return ie; }catch (w){return false; }} ; HTMLEditor.i1l= function (fontSize,X,O1k){var ie=fontSize.replace(/^(\d+)\.(\d+)px/i,"$1px"); if (!HTMLEditor.is_ie){if (ie && ie.length>0){var Ie=ie.toLowerCase().split(",")[0]; if (typeof O1k!="undefined"){var il=document.getElementById(O1k); if (il!=null){il=il.childNodes.item(1); var i; for (i=0; i<il.options.length; i++){var i16=HTMLEditor.I1k(il.options.item(i).value.toLowerCase().split(",")[0]); if (i16==Ie)break; }if (i==il.options.length){var span=X.I1.createElement("SPAN"); X.I1.body.appendChild(span); for (i=1; i<0144; i++){span.style.fontSize=i+"pt"; if (HTMLEditor.oz(span,"font-size").replace(/^(\d+)\.(\d+)px/i,"$1px")==Ie){Ie=i+"pt"; break; }}span.parentNode.removeChild(span); }}}ie=Ie; }}return ie; };HTMLEditor.prototype.O1j= function (l4l,O1k){var I16=this.i4l(); if (I16==null)return ""; try {if (l4l.toLowerCase()=="backcolor"){var il=I16.start; while (il){var i4o=HTMLEditor.oz(il,"background-color").toLowerCase(); if (i4o.length>0 && i4o!="transparent")return i4o; il=il.parentNode; }return "#FFFFFF"; }var O3w="none"; switch (l4l.toLowerCase()){case "forecolor":O3w="color"; break; case "fontname":O3w="font-family"; break; case "fontsize":O3w="font-size"; break; }var ie; if ((O3w=="font-size" || O3w=="font-family") && this._FontNotSet){ie=""; var par=I16.start; while (par!=null){if (O3w=="font-size"){if (par.style && par.style.fontSize && par.style.fontSize.length>0){ie=par.style.fontSize; break; }}else {if (par.style && par.style.fontFamily && par.style.fontFamily.length>0){ie=par.style.fontFamily; break; }}if (par.className && par.className.length>0)break; if (par.tagName.toUpperCase()=="BODY")break; if (par.tagName.toUpperCase()=="TD")break; par=par.parentNode; }}else {ie=HTMLEditor.oz(I16.start,O3w).toLowerCase(); if (O3w=="font-size"){if (!HTMLEditor.is_ie){ie=HTMLEditor.i1l(ie,this,O1k); var par=I16.start; while (par!=null){if (par.style && par.style.fontSize && par.style.fontSize.length>0){ie=par.style.fontSize; break; }if (par.className && par.className.length>0)break; if (par.tagName.toUpperCase()=="BODY")break; if (par.tagName.toUpperCase()=="TD")break; par=par.parentNode; }}}}if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var l4o=this.M[i]; if (l4o.name==O3w){ie=l4o.value; break; }}}return ie; }catch (w){return ""; }} ; HTMLEditor.prototype.i4l= function (){if (this.isControl())return null; try {var lq=this.iq(); var Iq=this.or(lq); var i1y=null; var I4n=null; if (!HTMLEditor.is_ie){function I4o(par,l25){var ie=null; while (ie==null){if (par.nodeType==3){if (l25 && Iq.startContainer!=Iq.endContainer && Iq.startOffset==par.length && par.nextSibling){ie=I4o(par.nextSibling,l25); }else if (!l25 && Iq.startContainer!=Iq.endContainer && Iq.endOffset==0 && par.previousSibling){ie=I4o(par.previousSibling,l25); }else ie=par; }else {if ((l25?par.firstChild:par.lastChild)==null)ie=null; else ie=I4o(l25?par.firstChild:par.lastChild,l25); }if (ie==null){par=l25?par.nextSibling:par.previousSibling; if (par==null)return null; }else return ie; }}i1y=I4o(Iq.startContainer, true); if (i1y!=null && i1y.parentNode!=null)i1y=i1y.parentNode; if (i1y==null)i1y=Iq.startContainer; I4n=I4o(Iq.endContainer, false); if (I4n!=null && I4n.parentNode!=null)I4n=I4n.parentNode; if (I4n==null)I4n=Iq.endContainer; }else {if (Iq.text.length==0)i1y=I4n=this.Or(Iq); else {var l23=HTMLEditor.Om+"_right_marker"; var i23=HTMLEditor.Om+"_left_marker"; var I23=Iq.duplicate(); var o24=Iq.duplicate(); I23.setEndPoint("EndToStart",Iq); o24.setEndPoint("StartToEnd",Iq); o24.pasteHTML("<span id='"+l23+"'/>"); I23.pasteHTML("<span id='"+i23+"'/>"); var I1a=this.I1.getElementById(i23); var o1b=this.I1.getElementById(l23); i1y=I1a.parentNode; I4n=o1b.parentNode; I1a.parentNode.removeChild(I1a); o1b.parentNode.removeChild(o1b); }}return {start:i1y,end:I4n } ; }catch (w){return null; }};HTMLEditor.prototype.o4p= function (O4p,Iq){if (!HTMLEditor.is_ie){var lq=this.iq(); if (typeof Iq=="undefined"){try {Iq=this.or(lq); }catch (Ij){alert(this.If("click-to-editor","Click to editing panel.")); this.I17(lq); return false; }}var O2f=Iq.startContainer; var l4p=Iq.startOffset; if (O2f.ownerDocument.id!="EditorDocument"){alert(this.If("click-to-editor","Click to editing panel.")); return false; }if ((Iq.startContainer.nodeType==1 && Iq.startContainer.tagName.toUpperCase()=="TR") || (Iq.endContainer.nodeType==1 && Iq.endContainer.tagName.toUpperCase()=="TR")){var X=this ; setTimeout( function (){alert(X.If("paste-fail","Not correct selection for inserting.")); } ,0); return false; } this.I17(lq); Iq.deleteContents(); try {Iq=this.or(); }catch (Ij){alert(this.If("click-to-editor","Click to editing panel.")); this.I17(lq); return false; }switch (O2f.nodeType){case 3:if (l4p>0)O2f=O2f.splitText(l4p); while (O4p.firstChild)O2f.parentNode.insertBefore(O4p.firstChild,O2f); Iq.setStart(O2f,0); Iq.setEnd(O2f,0); break; case 1:case 013:try { this.I17(lq); if (O2f.childNodes.length>=l4p+1){O2f=O2f.childNodes.item(l4p); while (O4p.firstChild)O2f.parentNode.insertBefore(O4p.firstChild,O2f); var i17=this.I1.createTextNode(""); O2f.parentNode.insertBefore(i17,O2f); O2f=i17; }else {var i17=this.I1.createTextNode(""); if (HTMLEditor.canHaveChildren(O2f)){while (O4p.firstChild)O2f.appendChild(O4p.firstChild); O2f.appendChild(i17); }else {while (O4p.firstChild)O2f.parentNode.insertBefore(O4p.firstChild,O2f); O2f.parentNode.insertBefore(i17,O2f); }O2f=i17; }if (O2f.nodeType==1){var par=O2f.parentNode; var O17=par; var Oh=0; for ( ; Oh<par.childNodes.length; Oh++)if (O2f==par.childNodes.item(Oh))break; Iq.setStart(par,Oh); Iq.setEnd(par,Oh); }else {Iq.setStart(O2f,0); Iq.setEnd(O2f,0); }}catch (Ij){alert(this.If("click-to-editor","Click to editing panel.")); this.I17(lq); return false; }break; }if (HTMLEditor.O11)this.f= true; this.o18(lq,Iq); return true; }else {return null; }} ; HTMLEditor.prototype.i11= function (html,Iq){ this.focusEditor(); var lq=this.iq(); if (typeof Iq=="undefined"){Iq=this.or(lq); }if (HTMLEditor.is_ie){function o2u(I29,O22){return "\x3cspan class=\""+HTMLEditor.Om+"_script\" style=\'display:none;visibility:hidden;\'>"+O22.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function i2u(I29,O22,l22,I2u){return O22.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var i4p="\x3cspan id=\""+HTMLEditor.Om+"\">111\x3cspan>\x3c/span>"+html+"</span>"; var I11=HTMLEditor.o12(i4p); var O12=HTMLEditor.l12(i4p); if (!this.NoScript)i4p=i4p.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,o2u); else i4p=i4p.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); var X=this ; try {if (Iq.pasteHTML){Iq.pasteHTML(i4p); }else {var div=this.I1.createElement("DIV"); div.innerHTML=i4p; while (div.firstChild)Iq(0).parentNode.insertBefore(div.firstChild,Iq(0)); Iq(0).parentNode.removeChild(Iq(0)); Iq.remove(0); delete div; }}catch (t){setTimeout( function (){alert(X.If("paste-fail","Not correct selection for inserting.")); } ,0144); return false; }var i2y=this.I1.getElementById(HTMLEditor.Om); i2y.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(i2y, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.Om+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),i2u)+"<span>qqq</span>"; i2y.removeChild(i2y.firstChild); i2y.removeChild(i2y.lastChild); HTMLEditor.i12(i2y,I11); HTMLEditor.I12(i2y,O12); if (i2y.firstChild)i2y.removeChild(i2y.firstChild); if (i2y.firstChild)i2y.removeChild(i2y.firstChild); while (i2y.firstChild)i2y.parentNode.insertBefore(i2y.firstChild,i2y); i2y.parentNode.removeChild(i2y); delete i2y; return true; }else {var div=this.I1.createElement("div"); div.innerHTML=html; var O1v=div.getElementsByTagName("EMBED"); var i30=[]; for (var i=0; i<O1v.length; i++)i30.push(O1v[i]); for (var Oh=0; Oh<i30.length; Oh++){var embed=i30[Oh]; var img=document.createElement("IMG"); var O2z=embed.attributes; img.src=this.Q[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); var value=a.value; if (name=="src")name="dummysrc"; else if (name=="bgcolor")name="dummybgcolor"; else if (name=="wmode")name="pseudomode"; img.setAttribute(name,value); }img.getAttribute("type");img.style.cssText="border: 1px dotted #000000; background-image: url('"+(img.getAttribute("type").toLowerCase()=="application/x-mplayer2"?this.Q[3]: this.Q[2])+"'); background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;"; embed.parentNode.insertBefore(img,embed); embed.parentNode.removeChild(embed); }var ie=this.o4p(div,Iq); return ie; }} ; HTMLEditor.prototype.getDocument= function (){return this.I1; };HTMLEditor.prototype.getWindow= function (){if (HTMLEditor.is_Safari)return document.getElementById(this._hiddenContent+"_inner_iframe").contentWindow; else return this._iframe.contentWindow; };HTMLEditor.I4p=[]; HTMLEditor.o4q=null; HTMLEditor.i1e=null; HTMLEditor.O4q= function (){for (var i=0; i<HTMLEditor.I4p.length; i++){HTMLEditor.I4p[i](); }HTMLEditor.I4p=[]; };HTMLEditor.l4q= function (t){function i4q(){setTimeout( function (){HTMLEditor.O4q(); } ,0); HTMLEditor.i1e=null; if (HTMLEditor.o4q!=null){HTMLEditor.od(document.getElementById(HTMLEditor.o4q),"mousedown",HTMLEditor.l4q); HTMLEditor.I18(HTMLEditor.o4q.substr(0,HTMLEditor.o4q.length-("__disabling").length)); }HTMLEditor.o4q=null; }if (HTMLEditor.i1e){try {if (HTMLEditor.i1e.name!="OboutEditorPreview"){i4q(); }else {setTimeout( function (){try {HTMLEditor.i1e.focus(); }catch (t){}} ,0); if (typeof t!=undefined)HTMLEditor._stopEvent(t); return false; }}catch (t){i4q(); }}else i4q(); return true; };HTMLEditor.I4q= function (){if (!HTMLEditor.l4q())setTimeout(HTMLEditor.I4q,01750); else window.focus(); };HTMLEditor.prototype.o4r= function (O4r){var X=this ; if (HTMLEditor.i1e)return; try {HTMLEditor.i1e=window.open("","OboutEditorPreview","toolbar=0,status=1,scrollbars=1,resizable=1,width=600,height=400"); }catch (t){HTMLEditor.i1e=null; return; }if (!HTMLEditor.i1e)return; HTMLEditor.o4q=HTMLEditor.o15(X.mainDivId); if (HTMLEditor.o4q!=null)HTMLEditor.Ik(document.getElementById(HTMLEditor.o4q),"mousedown",HTMLEditor.l4q); function l4r(){try {if (!HTMLEditor.i1e.document)setTimeout(l4r,0144); HTMLEditor.i1e.focus(); }catch (t){HTMLEditor.i1e.close(); HTMLEditor.i1e=null; if (HTMLEditor.o4q!=null){HTMLEditor.od(document.getElementById(HTMLEditor.o4q),"mousedown",HTMLEditor.l4q); HTMLEditor.I18(HTMLEditor.o4q.substr(0,HTMLEditor.o4q.length-("__disabling").length)); }HTMLEditor.o4q=null; X.o4r(O4r); }lx=HTMLEditor.i1e.document; lx.open(); var html=new o2a(); var O29=O4r; var l29= false; function i29(I29,O22,l22){O29=l22; l29= true; }O4r.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,i29); O4r=O29; if (X.d!=null)html.write(X.d); html.write("<html"+(X.B!=null?X.B: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); var i4r=new RegExp("<title>","gi"); if (X.D==null || !i4r.test(X.D))html.write("<title>Obout Editor Preview</title>"); if (X.D!=null)html.write(X.D); html.write("\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var O2a=0; O2a<X._addCssFiles.length; O2a++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[O2a]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }html.write("</head>"); html.write("<body"+(X.C!=null?X.C: "")+">"); html.write(O4r); html.write("</body>"); html.write("</html>"); lx.write(html.toString()); lx.close(); setTimeout(HTMLEditor.I4q,0454); HTMLEditor.I4p.push( function (){X.focusEditor(); } ); }setTimeout(l4r,0); };HTMLEditor.prototype.preview= function (){var X=this ; if (HTMLEditor.i1e)return; X.getContentWait( function (O4r){X.o4r(O4r); } ); };HTMLEditor.prototype.print= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_ie)eval(this._iframe.name+".print()"); else this.getWindow().print(); };HTMLEditor.prototype.SurroundHTML= function (I4r,o4s){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.or(this.iq()); var html=""; var lq=this.iq(); var Iq=this.or(lq); if (HTMLEditor.is_ie && lq.type.toLowerCase()=="control"){ this.I10(); html=Iq.item(0).outerHTML; return this.InsertHTML(I4r+html+o4s); }html=this.l1b(); if (html.length==0){return false; }var I1b=this.o1c(); if (I1b.length<1)return false; this.I10(); var o49=this.I1.createElement("span"); var O49=this.I1.createElement("span"); var O4s=I1b[0].parentNode; var l4s=I1b[I1b.length-1].parentNode; O4s.insertBefore(o49,I1b[0]); if (I1b[I1b.length-1].nextSibling)l4s.insertBefore(O49,I1b[I1b.length-1].nextSibling); else l4s.appendChild(O49); for (var i=0; i<I1b.length; i++){var par=I1b[i].parentNode; var ik=this.I1.createElement("SPAN"); try {function o2u(I29,O22){return "\x3cspan class=\""+HTMLEditor.Om+"_script\" style=\'display:none;visibility:hidden;\'>"+O22.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function i2u(I29,O22,l22,I2u){return O22.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var i4p=I4r+(""+I1b[i].data+"").replace(/^\s/,"&nbsp;")+o4s; var I11; if (HTMLEditor.is_ie){I11=HTMLEditor.o12(i4p); if (!this.NoScript)i4p=i4p.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,o2u); else i4p=i4p.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); }ik.innerHTML="!!!<span></span>"+i4p; ik.removeChild(ik.firstChild); ik.removeChild(ik.firstChild); if (HTMLEditor.is_ie){ik.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(ik, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.Om+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),i2u)+"<span>qqq</span>"; ik.removeChild(ik.firstChild); ik.removeChild(ik.lastChild); HTMLEditor.i12(ik,I11); }while (ik.firstChild)par.insertBefore(ik.firstChild,I1b[i]); par.removeChild(I1b[i]); }catch (t){return false; }}if (!HTMLEditor.is_ie){I1b=[]; var o42= false; function o4l(O4l,on){while (O4l){if (O4l==O49){o42= true; return; }if (O4l.nodeType==3){while (O4l.nextSibling && O4l.nextSibling.nodeType==3){O4l.data=""+O4l.data+""+O4l.nextSibling.data+""; O4l.parentNode.removeChild(O4l.nextSibling); }if (HTMLEditor.o13(""+O4l.data+"").length>0)I1b.push(O4l); }else o4l(O4l.firstChild, false); if (o42)return; var l37=O4l.parentNode; if (on)while (O4l.nextSibling==null){O4l=O4l.parentNode; }O4l=O4l.nextSibling; }}o4l(o49, true); Iq=this.I1.createRange(); Iq.setStart(I1b[0],0); Iq.setEnd(I1b[I1b.length-1],(""+I1b[I1b.length-1].data+"").length); this.I17(lq); if (HTMLEditor.O11)this.f= true; this.o18(lq,Iq); }else {lq=this.iq(); var l3l=this.or(lq); var i3l=this.or(lq); try {l3l.moveToElementText(o49); i3l.moveToElementText(O49); l3l.setEndPoint("EndToEnd",i3l); l3l.select(); }catch (t){}}O4s.removeChild(o49); l4s.removeChild(O49); this.i14(); return true; } ; HTMLEditor.prototype.InsertHTML= function (html){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.or(this.iq()); var i4s= false; var div=this.I1.createElement("div"); var I11; if (HTMLEditor.is_ie){I11=HTMLEditor.o12(html); }div.innerHTML=html; for (var i=0; i<div.childNodes.length; i++){var il=div.childNodes.item(i); if (il.nodeType==1 && !HTMLEditor.i33(il))i4s= true; } this.I10(); if (HTMLEditor.is_ie){var lq=this.iq(); var Iq=this.or(lq); if (lq.type.toLowerCase()=="control"){var I16=Iq.item(0); var parent=I16.parentNode; Iq.remove(0); parent.removeChild(I16); }}if (i4s){var O1y=this.l1y(); if (!O1y){ this.o1f( false); return false; }var parent=O1y.parentNode; if (HTMLEditor.is_ie){HTMLEditor.i12(div,I11); }while (div.firstChild)parent.insertBefore(div.firstChild,O1y); parent.removeChild(O1y); this.i14(); return true; }else {var ie=this.i11(html); if (!ie){ this.o1f( false); } this.i14(); return ie; }};HTMLEditor.prototype.l1b= function (){var lq=this.iq(); var Iq=this.or(lq); var I4s=null; if (HTMLEditor.is_ie){I4s=Iq.htmlText; }else {if (HTMLEditor.is_Safari && (lq.type=="Caret" || lq.type=="None"))I4s=""; else {if (HTMLEditor.is_Safari){if (Iq.cloneContents()==null)return ""; }I4s=HTMLEditor.getHTML(Iq.cloneContents(), false); }}return I4s; } ; HTMLEditor.i26= function (l1p,lx,o4t,O4t,l4t){if (HTMLEditor.is_Safari)return; var i4t=0; var I4t=l1p.childNodes.length; if (typeof o4t!="undefined" && o4t!=null)i4t=o4t; if (typeof O4t!="undefined" && O4t!=null)I4t=O4t; for (var i=i4t; i<I4t && i<l1p.childNodes.length; i++){var I1u=l1p.childNodes.item(i);if (I1u.parentNode!=l1p){continue; }switch (I1u.nodeType){case 1:if (I1u.childNodes.length==0 && HTMLEditor.l1j(I1u.tagName) && I1u.tagName.toUpperCase()!="A" && !(I1u.className.length>0 || (I1u.getAttribute("class") && I1u.getAttribute("class").length>0)) && !HTMLEditor.i3a(I1u)){l1p.removeChild(I1u); i--; I4t--; continue; }if (I1u.tagName.toUpperCase()=="SPAN"){while (I1u.childNodes.length==1 && I1u.firstChild.nodeType==1){if (I1u.firstChild.tagName.toUpperCase()=="SPAN" && !HTMLEditor.i3a(I1u.firstChild)){var O2z=HTMLEditor.l3c(I1u.firstChild,[]); var o4u=HTMLEditor.O4u(I1u.firstChild); var l4u=I1u.firstChild; var i4u=l4u.childNodes; while (l4u.firstChild!=null){I1u.insertBefore(l4u.firstChild,l4u); }for (var Oh=0; Oh<o4u.length; Oh++){if (o4u[Oh][1]){try {if (I1u.style[o4u[Oh][0]]){if (o4u[Oh][0].toLowerCase().indexOf("color")>=0){I1u.style[o4u[Oh][0]]=o4u[Oh][1]; }else {try {var o19=I1u.style[o4u[Oh][0]]; I1u.style[o4u[Oh][0]]=I1u.style[o4u[Oh][0]]+" "+o4u[Oh][1]; if (o19==I1u.style[o4u[Oh][0]]){I1u.style[o4u[Oh][0]]=o4u[Oh][1]; }}catch (t){I1u.style[o4u[Oh][0]]=o4u[Oh][1]; }}}else I1u.style[o4u[Oh][0]]=o4u[Oh][1]; }catch (I4u){}}}for (var Oh=0; Oh<O2z.length; Oh++){if (O2z[Oh][1])I1u.setAttribute(O2z[Oh][0],O2z[Oh][1]); }I1u.removeChild(l4u); continue; }else if (I1u.firstChild.tagName.toUpperCase()=="SPAN" && HTMLEditor.i3a(I1u.firstChild)){var O29=I1u.firstChild; I1u.parentNode.insertBefore(I1u.firstChild,I1u); I1u.parentNode.removeChild(I1u); I1u=O29; }break; }var o4v=[]; var O4v=I1u.nextSibling; while (!HTMLEditor.i3a(I1u) && O4v && i+1<I4t && (O4v.nodeType==3 || (O4v.nodeType==1 && (O4v.tagName.toUpperCase()=="SPAN" || (O4v.tagName.toUpperCase()=="BR") && typeof l4t=="undefined") && !HTMLEditor.i3a(O4v)))){if (O4v.nodeType==3){if ((""+O4v.data+"").length==0){O4v.parentNode.removeChild(O4v); O4v=I1u.nextSibling; I4t--; }else {break; }}else {if (O4v.tagName.toUpperCase()=="BR"){o4v.push(O4v); O4v=O4v.nextSibling; }else {var O2z=HTMLEditor.l3c(I1u,[],O4v); var o4u=HTMLEditor.O4u(I1u,O4v); if (O2z.length==0 && o4u.length==0 && I1u.className==O4v.className){var I37=o4v.length; for (var Oh=0; Oh<I37; Oh++){I1u.appendChild(o4v[Oh]); I4t--; }o4v=[]; while (O4v.firstChild)I1u.appendChild(O4v.firstChild); O4v.parentNode.removeChild(O4v); O4v=I1u.nextSibling; I4t--; }else break; }}}if (!HTMLEditor.i3a(I1u) && I1u.className.length==0){var O2z=HTMLEditor.l3c(I1u,[]); var o4u=HTMLEditor.O4u(I1u); if (O2z.length==0 && o4u.length==0){i--; I4t--; while (I1u.firstChild){I1u.parentNode.insertBefore(I1u.firstChild,I1u); I4t++; }I1u.parentNode.removeChild(I1u); continue; }}}if (I1u.parentNode!=null)if (I1u.childNodes.length==0 && HTMLEditor.l1j(I1u.tagName) && I1u.tagName.toUpperCase()!="A" && !(I1u.className.length>0 || (I1u.getAttribute("class") && I1u.getAttribute("class").length>0)) && !HTMLEditor.i3a(I1u)){l1p.removeChild(I1u); i--; I4t--; continue; }else HTMLEditor.i26(I1u,lx); break; }}};HTMLEditor.l4v= function (l1p,o17){var count=0; if (l1p.attributes)for (var i=0; i<l1p.attributes.length; i++){var l2e=l1p.attributes[i]; if (l2e.name.toUpperCase()=="STYLE")continue; if (l2e.name.toUpperCase()=="CLASS" && o17)continue; if (l2e.specified)count++; }return count; };HTMLEditor.l3c= function (l1p,o17,i4v){var o1w=[]; var parent=l1p.parentNode; if (typeof i4v!="undefined")parent=i4v; if (!parent || !parent.tagName || !HTMLEditor.l1j(parent.tagName))parent=null; if (l1p.attributes)for (var i=0; i<l1p.attributes.length; i++){var l2e=l1p.attributes[i]; var I4v= false; for (var Oh=0; Oh<o17.length; Oh++)if (l2e.name.toUpperCase()==o17[Oh].toUpperCase()){I4v= true; break; }if (I4v)continue; if (l2e.name.toUpperCase()=="STYLE")continue; if (l2e.name.toUpperCase().substr(0,4)=="_MOZ")continue; if (l2e.specified)if (parent && parent.attributes && parent.attributes[l2e.name]){var o4w=parent.attributes[l2e.name]; if (o4w){if (l2e.name!=o4w.name || l2e.value!=o4w.value){o1w.push([l2e.name,l2e.value]); }}}else {if (l2e.name.toUpperCase()=="CLASS" && l2e.value=="")continue; o1w.push([l2e.name,l2e.value]); }}return o1w; };HTMLEditor.O4u= function (l1p,i4v){var o1w=[]; var parent=l1p.parentNode; if (typeof i4v!="undefined")parent=i4v; if (!parent || !parent.tagName || !HTMLEditor.l1j(parent.tagName))parent=null; function O4w(i,l4w){l4w=""+l4w; if (i.toLowerCase()=="textdecoration"){var i4w=l4w.split(" "); for (var Oh=0; Oh<i4w.length; Oh++){o1w.push([i,HTMLEditor.o13(i4w[Oh])]); }}else o1w.push([i,l4w]); }for (var i in l1p.style){if (i && typeof i=="string" && i!="accelerator"){var style=l1p.style[i]; if (style && typeof style=="string" && style!="accelerator"){if (parent && parent.style){var I4w=parent.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=I4w){O4w(i,style); }}else {if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length"){O4w(i,style); }}}}}if (typeof i4v!="undefined")for (var i in parent.style){if (i && typeof i=="string" && i!="accelerator"){var style=parent.style[i]; if (style && typeof style=="string" && style!="accelerator"){var I4w=l1p.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=I4w){O4w(i,style); }}}}return o1w; };HTMLEditor.o4x= function (il){var name=il.tagName.toUpperCase(); switch (name){case "TD":case "LI":case "FIELDSET":case "FORM":return true; case "DIV":if (il.className==HTMLEditor.Om)return false; else return true; default:return false; }};HTMLEditor.i33= function (il,on){if (il && il.style && il.style.display && il.style.display.toLowerCase()=="inline")return true; var name=il.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return false; }}switch (name){case "TBODY":case "TR":case "TD":if (typeof on!="undefined"){var par=il.parentNode; while (par && par.tagName && par.tagName.toUpperCase()!="TABLE")par=par.parentNode; if (par.tagName.toUpperCase()=="TABLE" && par.style && par.style.display && par.style.display.toLowerCase()=="inline")return true; }case "P":case "PRE":case "TABLE":case "OL":case "UL":case "LI":case "HR":case "DIV":case "BLOCKQUOTE":case "FORM":case "FIELDSET":case "LEGEND":return false; default:return true; }};HTMLEditor.O4x=[["strong","font-weight","bold","fontWeight"],["b","font-weight","bold","fontWeight"],["strong","font-weight","700","fontWeight"],["em","font-style","italic","fontStyle"],["i","font-style","italic","fontStyle"],["u","text-decoration","underline","textDecoration"],["strike","text-decoration","line-through","textDecoration"]]; HTMLEditor.l4x=["DIV","P","TD","TR","TABLE","TBODY","LI","OL","UL","FORM","INPUT"]; HTMLEditor.I2g= function (l1p){for (var i=0; i<HTMLEditor.l4x.length; i++)if (HTMLEditor.l4x[i].toUpperCase()==l1p.tagName.toUpperCase()){return true; }if (HTMLEditor.is_ie && l1p.scopeName.toUpperCase()!="HTML")return true; return false; };HTMLEditor.o1j= function (i4x){if (typeof i4x!="number"){return i4x; }var I1g=i4x&0377; var O30=(i4x>>8)&0377; var b=(i4x>>020)&0377; return "rgb("+I1g+","+O30+","+b+")"; } ; HTMLEditor.I4x= function (i4x){function l2z(i2z){return (i2z<020)?("0"+i2z.toString(020)):i2z.toString(020); } ; if (typeof i4x=="number"){var I1g=i4x&0377; var O30=(i4x>>8)&0377; var b=(i4x>>020)&0377; return "#"+l2z(I1g)+l2z(O30)+l2z(b); }if (i4x.substr(0,3)=="rgb"){var i2j=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/; if (i4x.match(i2j)){var I1g=parseInt(RegExp.$1); var O30=parseInt(RegExp.$2); var b=parseInt(RegExp.$3); return "#"+l2z(I1g)+l2z(O30)+l2z(b); }return null; }if (i4x.substr(0,1)=="#"){return i4x; }return null; } ; HTMLEditor.iw= function (window,o4y){if (!/MSIE (5|6|7|8)/.test(navigator.userAgent))return; if ((/MSIE (7|8)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat")return; var O4y=/(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i,l4y,lx=window.document,i4y=[],I4y= {onhover:{o4z: "onmouseover",O4z: "onmouseout" } ,onactive:{o4z: "onmousedown",O4z: "onmouseup" }} ; var l4z=(typeof o4y=="undefined")?lx:o4y; function parseStylesheets(){window.attachEvent("onunload",i4z); var l2a=lx.styleSheets,i2a=l2a.length; for (var i=0; i<i2a; i++)o2b(l2a[i]); }function o2b(O2b){if (O2b.imports){try {var imports=O2b.imports,i2a=imports.length; for (var i=0; i<i2a; i++)o2b(O2b.imports[i]); }catch (I4z){}}try {var rules=(l4y=O2b).rules,i2a=rules.length; for (var Oh=0; Oh<i2a; Oh++)l2b(rules[Oh]); }catch (I4z){}}function l2b(rule){var select=rule.selectorText,style=rule.style.cssText; if (!O4y.test(select) || !style)return; var o50=select.replace(/[^:]+:([a-z-]+).*/i,"on$1"); var O50=select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi,".$2"+o50); var className=(/\.([a-z0-9_-]*on(hover|active))/i).exec(O50)[1]; var l50=select.replace(/:(hover|active).*$/,""); var elements=i50(l50); if (elements.length==0)return; l4y.addRule(O50,style); for (var i=0; i<elements.length; i++)new I50(elements[i],className,I4y[o50]); }function I50(O2f,className,o51){if (!O2f.hovers)O2f.hovers= {} ; if (O2f.hovers[className])return; O2f.hovers[className]= true; O51(O2f,o51.o4z, function (){O2f.className+=" "+className; } ); O51(O2f,o51.O4z, function (){O2f.className=O2f.className.replace(new RegExp("\\s+"+className,"g"),""); } ); }function O51(O2f,type,l51){O2f.attachEvent(type,l51); i4y[i4y.length]= {O2f:O2f,type:type,l51:l51 } ; }function i4z(){for (var t,i=0; i<i4y.length; i++){t=i4y[i]; t.O2f.detachEvent(t.type,t.l51); }}function i50(rule){var i51,I51=[l4z]; i51=rule.split(" "); for (var i=0; i<i51.length; i++){I51=o52(i51[i],I51); }return I51; }function o52(select,elements){var o1w,O2f,I51=[]; var O52=(/#([a-z0-9_-]+)/i).exec(select); if (O52)return [lx.getElementById(O52[1])]; var l52=(/\.([a-z0-9_-]+)/i).exec(select); var tagName=select.replace(/(\.|#|:)[a-z0-9_-]+/i,""); var i52=l52?new RegExp("\\b"+l52[1]+"\\b"): false; for (var i=0; i<elements.length; i++){o1w=tagName?elements[i].all.tags(tagName):elements[i].all; for (var Oh=0; Oh<o1w.length; Oh++){O2f=o1w[Oh]; if (i52 && !i52.test(O2f.className))continue; I51[I51.length]=O2f; }}return I51; }parseStylesheets(); };HTMLEditor.prototype.parseInt=parseInt; HTMLEditor.prototype.isNaN=isNaN; HTMLEditor.prototype.Object=Object; HTMLEditor.prototype.Math=Math; HTMLEditor.I52= function (s){return new String(s+"rnd="+Math.random()).replace(".",""); };function o2a(o53){ this.o53=(typeof o53!="undefined" && o53); this.text=[]; this.write= function (Ih){if (!this.o53 || (this.text.length==0 && Ih!="\n") || (this.text.length>0 && (this.text[this.text.length-1]!="\n" || Ih!="\n")))this.text[this.text.length]=Ih; };this.writeln= function (Ih){ this.text[this.text.length]=Ih+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}HTMLEditor.prototype.O53= function (X,l53,i1w,i53,I53,o54,O54){ this.X=X; this.I53=I53; this.o54=o54; this.enableEvents= function (){} ; this.disableEvents= function (){} ; if (!X.o2){X.o2=[]; HTMLEditor.o2=X.o2; }if (X.o2.length>0)X.o2[X.o2.length-1].disableEvents(); X.o2.push(this ); this.number=X.o2.length; X.i10=null; if (HTMLEditor.is_ie && (X.iq().type=="Text" || X.iq().type=="None"))try {X.i10=X.or(X.iq()).duplicate(); }catch (t){}if (HTMLEditor.is_Safari){var l54=X.iq(); var i54=X.or(l54); X.i10=i54.cloneRange(); } this.iframe=this.openPopup(l53,i1w,i53,o54,O54); };HTMLEditor.prototype.O53.prototype.middle= function (){var I54=this ; var X=this.X; var popup=this.iframe; var o55; var O9=parseInt(popup.clientWidth); var l9=parseInt(popup.clientHeight); if (O9==0)O9=parseInt(popup.offsetWidth); if (l9==0)l9=parseInt(popup.offsetHeight); var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var O55=O2s/2-l9/2+l55(X.O1.document); if (O55<=0)O55=024; popup.style.top=O55+"px"; popup.style.left=o2s/2-O9/2+_GetScrollLeft(X.O1.document)+"px"; };HTMLEditor.prototype.clearPopups= function (i55){var X=this ; var ie= false; while (X.o2!=null && X.o2.length>0){var I55=X.o2[X.o2.length-1]; if (typeof i55!="undefined"){if (typeof I55.I53=="function")I55.I53(); I55.o56(null);}else I55.O56(); ie= true; }function l56(){if (X.i56 && X.i56.length>0)while (X.i56.length>0){var il=X.i56.pop(); var popup=il[1]; popup.parentNode.removeChild(popup); }}if (typeof i55=="undefined")setTimeout(l56,ie?01750: 0); else l56(); HTMLEditor.i1e=null; if (I56!=null){I56.parentNode.removeChild(I56); I56=null; }if (o57!=null){o57.parentNode.removeChild(o57); o57=null; }return ie; };HTMLEditor.prototype.O53.prototype.openPopup= function (l53,i1w,i53,o54,O54){var I54=this ; var X=this.X; var popup; function O57(event){if (X.o2)if (I54.number==X.o2.length){if (I54.iframe.contentWindow.document.body.childNodes.item(0).childNodes.length>1)if (!I54.iframe.contentWindow.document.getElementById("closePopup").disabled){I54.o56(I54.I53); }}if (event)HTMLEditor._stopEvent(event); return false; } ; var l57; if (HTMLEditor.is_Safari)l57=i1w+"_safari"; else l57=i1w; if (!X.i56)X.i56=[]; if (typeof o54=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.Ok)){for (var i=0; i<X.i56.length; i++){if (X.i56[i][0]==l57){var lx; popup=X.i56[i][1]; popup.style.display=""; popup.style.zIndex=""+(045070+X.o2.length)+""; lx=popup.contentWindow.document; lx.getElementById("title").innerHTML=l53; HTMLEditor.Ik(lx.getElementById("closePopup"),"click",O57); I54.O56=O57; try {o54(popup); }catch (t){alert("Exception in open Popup("+l53+"): "+t.message); } ; return popup; }}}popup=X.A.ownerDocument.createElement("iframe"); if (typeof o54=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.Ok)){X.i56.push([l57,popup]); }if (HTMLEditor.is_ie)popup.src="javascript:false;"; popup.style.visibility="hidden"; if (HTMLEditor.is_Safari)popup.className=l57; else {if (HTMLEditor.is_ie)popup.className=l57+" "+l57+"_ie"; else popup.className=l57; }popup.style.borderColor="white black black white"; popup.style.borderWidth="1px"; popup.style.borderStyle="solid"; popup.style.zIndex=""+(045070+X.o2.length)+""; popup.style.display=""; popup.style.position="absolute"; popup.scrolling="no"; popup.style.margin="0px";popup.style.padding="0px";popup.marginHeight="0"; popup.marginWidth="0"; if (HTMLEditor.Ok)popup.name=X._hiddenContent+"_popup_"+l57; var o55; var O9=0144; var l9=0144; var i57=X.A; var il=X._textArea.parentNode.parentNode; if (!X._InsideOboutWindow)while (il!=X.A){if (HTMLEditor.oz(il,"position").toLowerCase()=="absolute"){i57=X._textArea.parentNode.parentNode; break; }il=il.parentNode; }var l2s=HTMLEditor.i2s(i57, false); var I1y=l2s.I1y,_top=l2s._top; var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var I57=O2s/2-l9/2+l55(X.O1.document); var o58=o2s/2-O9/2+_GetScrollLeft(X.O1.document); popup.style.top=(I57-_top)+"px"; popup.style.left=(o58-I1y)+"px"; i57.appendChild(popup); function o2c(){var lx=popup.contentWindow.document; if (!lx){if (!HTMLEditor.is_ie){window.setTimeout(o2c,012); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var o55; var O9=parseInt(popup.clientWidth); var l9=parseInt(popup.clientHeight); if (O9==0)O9=parseInt(popup.offsetWidth); if (l9==0)l9=parseInt(popup.offsetHeight); var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var I57=O2s/2-l9/2+l55(X.O1.document); var o58=o2s/2-O9/2+_GetScrollLeft(X.O1.document); popup.style.top=(I57-_top)+"px"; popup.style.left=(o58-I1y)+"px"; lx.open(); var html=new o2a(); html.write("<html style='height:100%'>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.Q[014]))?X.I7: "")+X.Q[014]+"\" media=\"all\" />"); html.write("</head>"); html.write("<body style='height:100%'>"); html.write("<div id='mainFrame' class='frame' style='height:100%'>"); html.write("<table id='header' class='header' style='width:100%;margin:0px;padding:0px;' border=0><tr><td nowrap align=left style='padding-left:4px;'><span id='title'>title</span></td><td align=right style='width:100%'><img id='closePopup' src='"+X.Q[7]+"' alt='' /></td></tr></table>"); html.write("</div>"); html.write("</body>"); html.write("\x3ca href=\""+X.I7+"\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); lx.write(html.toString()); lx.close(); popup.style.visibility="visible"; function ox(){var O58; var l58; var i58; var I58; try {O58=lx.getElementById("header"); l58=lx.getElementById("closePopup"); i58=lx.getElementById("title"); I58=lx.getElementById("mainFrame"); O58.className="header"; I58.className="frame"; i58.innerHTML=l53; HTMLEditor.Ik(l58,"click",O57); I54.O56=O57; HTMLEditor.Ik(O58,"mousedown", function (event){if (event.srcElement && event.srcElement.tagName.toUpperCase()=="IMG")return false; var ie=I54.o59(HTMLEditor.is_ie?popup.contentWindow.event:event); return ie; } ); if (HTMLEditor.is_Safari){lx.body.addEventListener("mouseup",O59, false); }function l59(t){if (t.target.tagName.toUpperCase()=="INPUT" || t.target.tagName.toUpperCase()=="TEXTAREA" || t.target.tagName.toUpperCase()=="SELECT")return true; if (HTMLEditor.is_Safari)if (t.target.tagName.toUpperCase()=="TABLE" || t.target.tagName.toUpperCase()=="TR" || t.target.tagName.toUpperCase()=="TD" || t.target.tagName.toUpperCase()=="DIV")return true; return false; }if (HTMLEditor.is_ie){lx.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {lx.onmousedown=l59; }if (!HTMLEditor.is_ie){setTimeout( function (){popup.style.top=parseInt(popup.style.top)-1+"px"; popup.style.left=parseInt(popup.style.left)-1+"px"; } ,2); setTimeout( function (){popup.style.top=parseInt(popup.style.top)+1+"px"; popup.style.left=parseInt(popup.style.left)+1+"px"; } ,5); }if (typeof i53=="function"){try {i53(popup); }catch (t){alert("Exception in open Popup("+l53+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var i59=lx.getElementsByTagName("input"); for (var i=0; i<i59.length; i++){i59[i].setAttribute("autocomplete","off"); }}}catch (t){try {HTMLEditor.od(l58,"click",O57); }catch (t){}setTimeout(ox,012); return false; }}setTimeout(ox,012); } ; setTimeout(o2c,024); return popup; } ; HTMLEditor.prototype.O53.prototype.o56= function (I53){var popup=this ; var X=this.X; var _iframe=this.iframe; var o1y=this.o1y; function I59(l2d,l1p){var ik; try {ik=l2d.removeChild(l1p); delete ik; }catch (t){}}if (X.o2==null)return false; var o5a=X.o2.pop(); if (X.o2.length>0)X.o2[X.o2.length-1].enableEvents(); setTimeout( function (){if (X.o2!=null)if (X.o2.length==0){X.o2=null; HTMLEditor.o2=null; ; X.popupClosed(); if (X.i10){if (HTMLEditor.is_Safari){X.o18(X.iq(),X.i10); X.i10=null; }if (HTMLEditor.is_ie){try {X.i10.select(); }catch (t){}}X.i10=null; }try {X.focusEditor(); }catch (t){}}if (typeof I53=="function"){try {I53(); }catch (t){} ; }try {HTMLEditor.od(_iframe.contentWindow.document.getElementById("closePopup"),"click",popup.O56); _iframe.style.display="none"; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (typeof popup.o54!="function" || (HTMLEditor.is_Safari && !HTMLEditor.Ok)){I59(_iframe.parentNode,_iframe); delete popup; }}catch (t){}} ,012); return false; };var O5a=null; var o57=null,I56=null; var l5a=0; var i5a=0; function I5a(){if (document.all && document.body.attachEvent){if (document.body.setCapture)document.body.setCapture(); document.body.attachEvent("onmousemove",o5b); document.body.attachEvent("onmouseup",O59); }else if (document.addEventListener){document.addEventListener("mousemove",o5b, false); document.addEventListener("mouseup",O59, false); }O5b(O5a); }function O59(){if (document.all && document.body.detachEvent){document.body.detachEvent("onmousemove",o5b); document.body.detachEvent("onmouseup",O59); if (document.body.releaseCapture)document.body.releaseCapture(); }else if (document.removeEventListener){document.removeEventListener("mousemove",o5b, false); document.removeEventListener("mouseup",O59, false); }l5b(O5a); O5a=null; }function o5b(t){try {i5b(t); HTMLEditor._stopEvent(t); l5a=t.clientX; i5a=t.clientY; }catch (w){O59(); }return false; }function O5b(I5b){if (I56!=null && I5b.iframe.parentNode!=I56.parentNode){I56.parentNode.removeChild(I56); I56=null; }if (o57!=null && I5b.iframe.parentNode!=o57.parentNode){o57.parentNode.removeChild(o57); o57=null; }if (I56==null){I56=document.createElement("div"); I56.style.display=""; I56.style.position="absolute";I56.style.margin="0px";I56.style.padding="0px";I56.style.top="0px"; I56.style.left="0px"; var o55=parseInt(document.body.clientHeight); if (o55<=0)o55=document.body.offsetHeight; I56.style.height=o55+"px"; o55=parseInt(document.body.clientWidth); if (o55<=0)o55=document.body.offsetWidth; I56.style.width=o55+"px"; I56.style.zIndex="20000"; I5b.iframe.parentNode.appendChild(I56); }if (o57==null){o57=document.createElement("SPAN"); o57.className="MoveSpan"; o57.style.position="absolute"; o57.style.zIndex=0141520; I5b.iframe.parentNode.appendChild(o57); }o57.style.visibility="visible"; I56.style.visibility="visible"; var o5c=parseInt(I5b.iframe.style.borderTopWidth)*2; o57.style.top=I5b.iframe.style.top; o57.style.left=I5b.iframe.style.left; var O9=I5b.iframe.clientWidth; var l9=I5b.iframe.clientHeight; if (O9==0)O9=I5b.iframe.offsetWidth; if (l9==0)l9=I5b.iframe.offsetHeight; o57.style.width=parseInt(O9)+((HTMLEditor.is_ie)?(parseInt(o5c)): (0-parseInt(o5c)))+"px"; o57.style.height=parseInt(l9)+((HTMLEditor.is_ie)?(parseInt(o5c)): (0-parseInt(o5c)))+"px"; o57.style.cursor="move"; I56.style.cursor="move"; }function l5b(I5b){try {I5b.iframe.style.top=o57.style.top; I5b.iframe.style.left=o57.style.left; o57.style.visibility="hidden"; I56.style.visibility="hidden"; }catch (t){}}function i5b(t){var O5c=O5a.l5c; var i5c=O5a.I5c; var il=o57; var left=0; var top=0; if (document.all){left=t.clientX*1+_GetScrollLeft(document)-O5c; top=t.clientY*1+l55(document)-i5c; }else {left=t.pageX*1-O5c; top=t.pageY*1-i5c; }if (left<0){left=0; }if (top<0){top=0; }il.style.left=(left-O5a.I1y)+"px"; il.style.top=(top-O5a._top)+"px"; if (HTMLEditor.is_Safari){O5a.iframe.style.top=o57.style.top; O5a.iframe.style.left=o57.style.left; }}HTMLEditor.prototype.O53.prototype.o59= function (t){if (!HTMLEditor.is_ie && t.target.tagName.toUpperCase()=="IMG" && t.target.id=="closePopup")return true; O5a=this ; this.l5c=(t.offsetX==null)?t.layerX:t.offsetX; this.I5c=(t.offsetY==null)?t.layerY:t.offsetY; if (HTMLEditor.is_ie){var il=t.srcElement; while (il && il.tagName.toUpperCase()!="BODY"){ this.l5c+=parseInt(il.offsetLeft); this.I5c+=parseInt(il.offsetTop); il=il.offsetParent; if (il){if (il.clientLeft)this.l5c+=parseInt(il.clientLeft); if (il.clientTop)this.I5c+=parseInt(il.clientTop); }}var o5c=parseInt(this.iframe.style.borderWidth)*2; this.l5c+=o5c; this.I5c+=o5c; }l5a=t.clientX; i5a=t.clientY; var l2s=HTMLEditor.i2s(this.iframe.parentNode, false); this._top=l2s._top; this.I1y=l2s.I1y; HTMLEditor._stopEvent(t); I5a(); return false; } ; HTMLEditor.i2s= function (i57,on){var position=HTMLEditor.o5d(i57); if (HTMLEditor.is_ie && !on){var borderTopWidth; var borderLeftWidth; if ((/MSIE (7)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat"){borderTopWidth=2; borderLeftWidth=2; }else {var O5d=(document.compatMode=="BackCompat")?document.body:document.documentElement; var top=HTMLEditor.oz(O5d,"border-top-width").toUpperCase(); borderTopWidth=parseInt(HTMLEditor.oz(O5d,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; if (borderTopWidth==0){if (top=="THIN")borderTopWidth=1; else if (top=="MEDIUM")borderTopWidth=2; else if (top=="THICK")borderTopWidth=4; }var left=HTMLEditor.oz(O5d,"border-left-width").toUpperCase(); borderLeftWidth=parseInt(HTMLEditor.oz(O5d,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; if (borderLeftWidth==0){if (left=="THIN")borderLeftWidth=1; else if (left=="MEDIUM")borderLeftWidth=2; else if (left=="THICK")borderLeftWidth=4; }if (borderLeftWidth==0 && borderTopWidth==0 && typeof O5d.border!="undefined" && O5d.border!=null && !isNaN(parseInt(O5d.border)))borderLeftWidth=borderTopWidth=parseInt(O5d.border); }position.y-=borderTopWidth; position.x-=borderLeftWidth; }else if (HTMLEditor.O11){position.y--; position.x--; }return {_top:position.y,I1y:position.x } ; };HTMLEditor.getOffset= function (l1p){var position=HTMLEditor.i2s(l1p, false); return {y:position._top,x:position.I1y } ; };function l55(l5d){if (l5d.documentElement && l5d.documentElement.scrollTop){return l5d.documentElement.scrollTop; }else {return l5d.body.scrollTop; }}function obout_scrollElement(Ic){try {var anchor; if (document.all)anchor=document.createElement("td"); else anchor=document.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; if (!document.all)Ic.parentNode.insertBefore(anchor,Ic); else {var i5d=document.createElement("td"); i5d.style.width="0px"; i5d.style.height="20px"; Ic.parentNode.insertBefore(i5d,Ic); i5d.focus(); Ic.parentNode.removeChild(i5d); var o1v=Ic.nextSibling; if (o1v==null)Ic.parentNode.appendChild(anchor); else Ic.parentNode.insertBefore(anchor,o1v); }anchor.focus(); if (!document.all)anchor.blur(); Ic.parentNode.removeChild(anchor); }catch (t){}}function _GetScrollDiffer(Ic,on){if (document.all && document.compatMode!="BackCompat")return true; do {Ic=Ic.parentNode; if (Ic.clientHeight>0 && Ic.scrollHeight && Ic.scrollHeight>0)if (Ic.scrollHeight>Ic.clientHeight){return true; }}while (Ic && Ic.tagName.toUpperCase()!="BODY");return false; }function _GetScrollLeft(l5d){if (l5d.documentElement && l5d.documentElement.scrollLeft){return l5d.documentElement.scrollLeft; }else {return l5d.body.scrollLeft; }}HTMLEditor.prototype._Mozilla= function (I5d){if (!HTMLEditor.is_ie && !I5d && HTMLEditor.o13(this.l1b()).length>0){var l37=this.I1.body.cloneNode( true); var lq=this.iq(); var I1b=this.or(lq); this.I17(lq); var il=I1b.startContainer; var o5e=I1b.startOffset; var O5e=[]; while (il.nodeType==3 || il.tagName.toUpperCase()!="BODY"){var I37=0; while (il.previousSibling){I37++; il=il.previousSibling; }O5e.push(I37); il=il.parentNode; }il=I1b.endContainer; var l5e=I1b.endOffset; var i5e=[]; while (il.nodeType==3 || il.tagName.toUpperCase()!="BODY"){var I37=0; while (il.previousSibling){I37++; il=il.previousSibling; }i5e.push(I37); il=il.parentNode; } this.I1.body.innerHTML=""; while (l37.firstChild){ this.I1.body.appendChild(l37.firstChild); }var I5e=this.I1.body; for (var i=O5e.length-1; i>=0; i--){I5e=I5e.childNodes.item(O5e[i]); }var o5f=this.I1.body; for (var i=i5e.length-1; i>=0; i--){o5f=o5f.childNodes.item(i5e[i]); }var X=this ; this.O1.setTimeout( function (){lq=X.iq(); I1b=X.or(); I1b.setStart(I5e,o5e); I1b.setEnd(o5f,l5e); X.o18(lq,I1b); } ,012); }};HTMLEditor.o5a= function (){ this.iframe=null; this.O5f=null; this.l5f=null; this.i5f=null; };HTMLEditor.prototype.openPopup= function (l53,i1w,i53,I53,O54){var X=this ; if (X.o2==null)if (HTMLEditor.is_Safari){var lq=X.iq(); var Iq=X.or(lq); X.i10=Iq.cloneRange(); }if (HTMLEditor.is_ie && (X.iq().type=="Text" || X.iq().type=="None"))try {X.i10=X.or(X.iq()).duplicate(); }catch (t){}function o2a(){ this.text=[]; this.write= function (Ih){ this.text[this.text.length]=Ih; };this.writeln= function (Ih){ this.text[this.text.length]=Ih+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}var popup=X.O1.document.createElement("iframe"); popup.id=X._hiddenContent+"_ifr_popup_"+i1w; if (HTMLEditor.is_ie)popup.src="javascript:false;"; var o5a=new HTMLEditor.o5a(); o5a.iframe=popup; o5a.enableEvents= function (){} ; o5a.disableEvents= function (){} ; if (!this.o2){ this.o2=[]; HTMLEditor.o2=this.o2; }if (this.o2.length>0)this.o2[X.o2.length-1].disableEvents(); this.o2.push(o5a); o5a.number=this.o2.length; o5a.I53=I53; if (typeof O54=="undefined")popup.className=i1w+"_safari"; else popup.className=i1w; popup.style.borderColor="white black black white"; popup.style.borderWidth="1px"; popup.style.borderStyle="solid"; popup.style.display=""; popup.style.position="absolute";popup.scrolling="no"; popup.style.margin="0px";popup.style.padding="0px";popup.marginHeight="0"; popup.marginWidth="0"; var o55; var O9=0144; var l9=0144; var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; popup.style.top=O2s/2-l9/2+X.A.scrollTop+"px"; popup.style.left=o2s/2-O9/2+X.A.scrollLeft+"px"; this.A.appendChild(popup); function O57(event){if (HTMLEditor.is_ie)event=popup.contentWindow.event; if (X.o2)if (o5a.number==X.o2.length)if (event.type=="click")X.o56(o5a.I53); HTMLEditor._stopEvent(event); return false; } ; function I5f(){popup=X.O1.document.getElementById(X._hiddenContent+"_ifr_popup_"+i1w); o5a.lx=popup.document; if (!o5a.lx){if (HTMLEditor.o29 || HTMLEditor.O11){X.O1.setTimeout(I5f,012); return false; }else {X.O1.alert("ERROR: IFRAME can't be initialized."); }}var o55; var O9=(typeof(popup.clientWidth)=="number")?(popup.clientWidth): (X.parseInt(popup.clientWidth)); var l9=(typeof(popup.clientHeight)=="number")?(popup.clientHeight): (X.parseInt(popup.clientHeight)); var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; popup.style.top=O2s/2-l9/2+X.A.scrollTop+"px"; popup.style.left=o2s/2-O9/2+X.A.scrollLeft+"px"; o5a.lx.open(); var html=new o2a(); html.write("<html>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.Q[014]))?X.I7: "")+X.Q[014]+"\" media=\"all\" />"); html.write("</head>"); html.write("<body>"); html.write("<div id='mainFrame' class='frame'>"); html.write("<div id='header' class='header'><img id='closePopup' src='"+X.Q[7]+"' alt='' /><span id='title'>Insert Image</span></div>"); html.write("</div>"); html.write("</body>"); html.write("\x3ca href=\""+X.I7+"/\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); o5a.lx.write(html.toString()); o5a.lx.close(); function ox(){var O58; var l58; var i58; var I58; try {O58=o5a.lx.getElementById("header"); l58=o5a.lx.getElementById("closePopup"); i58=o5a.lx.getElementById("title"); I58=o5a.lx.getElementById("mainFrame"); O58.className="header"; I58.className="frame"; i58.innerHTML=l53; l58.onclick=O57; X.O18(); function o5g(Ij){if (Ij)if (Ij.type=="mousedown" && Ij.button!=2){o5a.O5g=new X.Object; o5a.O5g.top=X.parseInt(popup.style.top)+"px"; o5a.O5g.left=X.parseInt(popup.style.left)+"px"; o5a.O5g.clientY=Ij.clientY; o5a.O5g.clientX=Ij.clientX; o5a.l5g= true; if (HTMLEditor.is_ie){popup.unselectable="on"; for (var i=0; i<o5a.lx.all.length; i++)o5a.lx.all(i).unselectable="on"; }}else if (Ij.type=="mouseup" || Ij.type=="mouseout"){o5a.l5g= false; delete o5a.O5g; o5a.O5g=null; if (HTMLEditor.is_ie){popup.unselectable="off"; for (var i=0; i<o5a.lx.all.length; i++)o5a.lx.all(i).unselectable="off"; }}else if (Ij.type=="mousemove"){if (o5a.l5g){o5a.O5g.top+=Ij.clientY-o5a.O5g.clientY; o5a.O5g.left+=Ij.clientX-o5a.O5g.clientX; o5a.iframe.style.top=o5a.O5g.top+"px"; o5a.iframe.style.left=o5a.O5g.left+"px"; }}return true; }HTMLEditor.ow(O58,["mousedown","mouseup","mousemove","mouseout"], function (event){return o5g(HTMLEditor.is_ie?popup.contentWindow.event:event); } ); function l59(t){if (t.target.tagName.toUpperCase()=="INPUT" || t.target.tagName.toUpperCase()=="TEXTAREA" || t.target.tagName.toUpperCase()=="SELECT")return true; if (HTMLEditor.is_Safari)if (t.target.tagName.toUpperCase()=="TABLE" || t.target.tagName.toUpperCase()=="TR" || t.target.tagName.toUpperCase()=="TD" || t.target.tagName.toUpperCase()=="DIV")return true; return false; }if (HTMLEditor.is_ie){o5a.lx.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {o5a.lx.onmousedown=l59; }if (!HTMLEditor.is_ie){X.O1.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)-1+"px"; popup.style.left=X.parseInt(popup.style.left)-1+"px"; } ,2); X.O1.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)+1+"px"; popup.style.left=X.parseInt(popup.style.left)+1+"px"; } ,5); }if (typeof i53=="function"){try {i53(o5a.iframe); }catch (t){X.O1.alert("Exception in open Popup("+l53+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var i59=o5a.lx.getElementsByTagName("input"); for (var i=0; i<i59.length; i++){i59[i].setAttribute("autocomplete","off"); i59[i].onfocus= function (){o5a.i5f=this ; } ; }}}catch (t){try {HTMLEditor.od(l58,"click",O57); }catch (t){}X.O1.setTimeout(ox,012); return false; }}X.O1.setTimeout(ox,012); } ; X.O1.setTimeout(I5f,024); return o5a.iframe; } ; HTMLEditor.prototype.o56= function (I53){var X=this ; function I59(l2d,l1p){var ik; try {ik=l2d.removeChild(l1p); delete ik; }catch (t){}}if (X.o2){var o5a=X.o2.pop(); if (X.o2.length>0)X.o2[X.o2.length-1].enableEvents(); if (HTMLEditor.is_Safari){X.O1.setTimeout( function (){if (X.o2==null || X.o2.length==0)if (HTMLEditor.is_Safari)if (X.i10){X.o18(X.iq(),X.i10); X.i10=null; }if (typeof I53=="function"){try {I53(); }catch (t){} ; }if (o5a.i5f){o5a.i5f.blur(); }var lq=X.iq(); var Iq=X.or(lq); X.o18(lq,Iq); X.focusEditor(); X.focusEditor(); I59(X.A,o5a.iframe); X.O1.setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq,Iq); X.focusEditor(); X.focusEditor(); } ,012); } ,012); }else {if (typeof I53=="function"){try {I53(); }catch (t){} ; }I59(X.A,o5a.iframe); }if (X.o2.length==0){X.o2=null; HTMLEditor.o2=null; X.popupClosed(); if (HTMLEditor.is_ie)if (X.i10){try {X.i10.select(); }catch (t){} ; }try {X.focusEditor(); }catch (t){}}}return false; };HTMLEditor.prototype._setClassName= function (name){try {if (this.l1 && this.mode()=="html" && !this.isPopup()){var O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(this.l1b()): ""; var lq=this.iq(); var Iq=this.or(lq); var I1b=null; var i5g= false; if (this.isControl())return; if ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0)){I1b=this.o1c(); }else if (!HTMLEditor.is_Safari){I1b=this.I3w(); i5g= true; }if (I1b!=null && I1b.length>0){var I5g= false; this.I10(); for (var i=0; i<I1b.length; i++){var par=I1b[i].parentNode; var o42= false; try {while (par && par.childNodes.length==1 && HTMLEditor.l1j(par.tagName)){var Il=par.tagName.toUpperCase(); var o5h=par.style?par.style.cssText: ""; var O5h=HTMLEditor.l3c(par,["class"]); if (Il=="SPAN" && par.className!=HTMLEditor.Om && O5h.length==0 && (par.className.length>0 || name.length>0)){I5g= true; par.className=name; if (name==""){par.removeAttribute("class"); if (o5h.length==0){var parent=par.parentNode; while (par.firstChild)parent.insertBefore(par.firstChild,par); parent.removeChild(par); }}o42= true; break; }par=par.parentNode; }}catch (t){ this.O1.alert(""+i+" "+I1b.length+" : "+t.message); }par=I1b[i].parentNode; if (!o42){if (name !== ""){I5g= true; var ik=this.I1.createElement("SPAN"); ik.className=name; par.insertBefore(ik,I1b[i]); ik.appendChild(I1b[i]); }}}if (i5g){if (HTMLEditor.is_ie && this.o3x!=null){var lq=this.iq(); var Iq=this.or(lq); Iq.moveToBookmark(this.o3x); Iq.select(); this.o3x=null; }else if (this.o3x!=null){if (this.o3x[0].nodeType==3){var lq=this.iq(); var Iq=this.I1.createRange(); Iq.setStart(this.o3x[0],this.o3x[1]); Iq.setEnd(this.o3x[0],this.o3x[1]); this.I17(lq); this.o18(lq,Iq); }else { this.O3x(this.o3x[0],this.o3x[0]); this.o3x[0].parentNode.removeChild(this.o3x[0]); } this.o3x=null; }}else {if (!HTMLEditor.is_ie){if (I1b.length>0){Iq=this.I1.createRange(); Iq.setStart(I1b[0],0); Iq.setEnd(I1b[I1b.length-1],(""+I1b[I1b.length-1].data+"").length); this.I17(lq); this.o18(lq,Iq); }}else {var lq=this.iq(); var l3l=this.or(lq); var i3l=this.or(lq); var o49=this.I1.createElement("span"); var O49=this.I1.createElement("span"); I1b[0].parentNode.insertBefore(o49,I1b[0]); if (I1b[I1b.length-1].nextSibling)I1b[I1b.length-1].parentNode.insertBefore(O49,I1b[I1b.length-1].nextSibling); else I1b[I1b.length-1].parentNode.appendChild(O49); try {l3l.moveToElementText(o49); i3l.moveToElementText(O49); l3l.setEndPoint("EndToEnd",i3l); l3l.select(); }catch (t){}I1b[0].parentNode.removeChild(o49); I1b[I1b.length-1].parentNode.removeChild(O49); }}var X=this ; this.O1.setTimeout( function (){X.updateToolbar(); } ,5); if (!I5g){return false; }return true; }else {var parent=this.Or(Iq); if (HTMLEditor.O11)this.f= true; if (parent.nodeType==3){parent=parent.parentNode; }var o4u=parent.style?parent.style.cssText: ""; var O2z=HTMLEditor.l3c(parent,["class"]); if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.Om && O2z.length==0){ this.I10(); parent.className=name; if (name==""){parent.removeAttribute("class"); if (o4u.length==0){var par=parent.parentNode; var l5h=null; var o38=0; var i5h,I5h; if (!HTMLEditor.is_ie){lq=this.iq(); Iq=this.or(lq); l5h=Iq.startContainer; o38=Iq.startOffset; }else {i5h=Iq.offsetLeft; I5h=Iq.offsetTop; }while (parent.firstChild)par.insertBefore(parent.firstChild,parent); par.removeChild(parent); if (!HTMLEditor.is_ie){var Iq=this.or(); Iq.setStart(l5h,o38); Iq.setEnd(l5h,o38); this.I17(lq); this.o18(lq,Iq); }else {if (lq.type.toLowerCase()!="control"){try {Iq.moveToPoint(i5h,I5h); }catch (t){}}Iq.select(); }}}var X=this ; this.O1.setTimeout( function (){X.updateToolbar(); } ,5); return true; }else if (HTMLEditor.O11)this.focusEditor(); }}return false; }catch (t){ this.O1.alert("setClass func: "+t.message); }};HTMLEditor.prototype.i45= function (l1p){if (this.relativeImages){var images=l1p.getElementsByTagName("IMG"); for (var i=0; i<images.length; i++){var o5i=images[i]; if (o5i.src.indexOf("http://")>=0){var l26=o5i.src; o5i.src="qwerty.gif"; var I37=o5i.src.indexOf("qwerty.gif"); if (l26.substr(0,I37)==o5i.src.substr(0,I37))l26=l26.substr(I37,l26.length-I37); o5i.src=l26; }}}};HTMLEditor.prototype._paste= function (on,O36){var X=this ; var lq=this.iq(); var Iq=this.or(lq); var I1y; var _top; if (!on){I1y=Iq.offsetLeft; _top=Iq.offsetTop; this.i11(this.i35()); X.i14(); return; }if (this._NoPaste)return; I1y=Iq.offsetLeft; _top=Iq.offsetTop; var ik=this.I1.createElement("span"); var O1y; var O5i=this.o36("", false ,O36); if ((/<[\/]*p[\s>]+/i.test(O5i)) || (/<[\/]*h/i.test(O5i))){O1y=this.l1y(); }else {O1y=this.I1.createElement("SPAN"); O1y.id=HTMLEditor.Om; if (!this.i11(HTMLEditor.getHTML(O1y, true)))return; O1y=this.I1.getElementById(HTMLEditor.Om); O1y.id=null; O1y.removeAttribute("id"); O1y.setAttribute("para","no"); }ik.innerHTML=O5i; if (!O1y){return; } this.i45(ik); var par=O1y.parentNode; var l4p=O1y.getAttribute("para"); if (l4p!="no"){if (l4p.indexOf("left")>=0 && ik.firstChild){if (ik.firstChild.tagName && ik.firstChild.tagName.toUpperCase()=="P"){while (ik.firstChild.firstChild)O1y.previousSibling.appendChild(ik.firstChild.firstChild); ik.removeChild(ik.firstChild); }}if (l4p.indexOf("right")>=0 && ik.lastChild){if (ik.lastChild.tagName && ik.lastChild.tagName.toUpperCase()=="P"){while (ik.lastChild.lastChild)O1y.nextSibling.insertBefore(ik.lastChild.lastChild,O1y.nextSibling.firstChild); ik.removeChild(ik.lastChild); }}}var l5i=O1y; var i5i=null; if (ik.childNodes.length==0 && l4p.indexOf("left")>=0 && l4p.indexOf("right")>=0){if (O1y.nextSibling.firstChild){i5i=this.I1.createElement("span"); l5i=i5i; i5i.innerHTML="111"; O1y.previousSibling.appendChild(i5i); }while (O1y.nextSibling.firstChild)O1y.previousSibling.appendChild(O1y.nextSibling.firstChild); par.removeChild(O1y.nextSibling); }else {while (ik.firstChild)par.insertBefore(ik.firstChild,O1y); }setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); if (lq.type.toLowerCase()=="control"){while (Iq.length>0)Iq.remove(0); }try {Iq.collapse( false); }catch (t){}X.focusEditor(); HTMLEditor.i1o(l5i,X); if (i5i)i5i.parentNode.removeChild(i5i); par.removeChild(O1y); HTMLEditor.l13(X.I1.body); X.i14(); Iq.select(); } ,0144); };HTMLEditor.I30= function (o32,X,I5i){for (var i=0; i<o32.childNodes.length; i++){var I1u=o32.childNodes.item(i); if (I1u.nodeType==1){var it=null; if (I5i)for (var Oh=0; Oh<HTMLEditor.O4x.length; Oh++){if (HTMLEditor.O4x[Oh][0].toLowerCase()==I1u.tagName.toLowerCase()){it=HTMLEditor.O4x[Oh]; break; }}if (it){var span=X.I1.createElement("SPAN"); span.style["cssText"]=I1u.style["cssText"]; if (HTMLEditor.is_ie)span.style[it[1]]=it[2]; else span.style[it[3]]=it[2]; while (I1u.firstChild){span.appendChild(I1u.firstChild); }o32.insertBefore(span,I1u); o32.removeChild(I1u); I1u=span; }else if (I1u.tagName.toLowerCase()=="font"){var span=X.I1.createElement("SPAN"); var save=I1u.size; span.style["cssText"]=I1u.style["cssText"]; if (I1u.color)span.style.color=I1u.color; if (I1u.face)span.style.fontFamily=I1u.face; while (I1u.firstChild){span.appendChild(I1u.firstChild); }o32.insertBefore(span,I1u); o32.removeChild(I1u); if (save){var font=X.I1.createElement("FONT"); font.size=save; o32.insertBefore(font,span); if (span.style["cssText"].length>0){font.appendChild(span); I1u=span; }else {while (span.firstChild){font.appendChild(span.firstChild); }o32.removeChild(span); I1u=font; }}else I1u=span; }HTMLEditor.I30(I1u,X,I5i); }}};HTMLEditor.restoreOldTags= function (o32,lx,X){for (var i=0; i<o32.childNodes.length; i++){var I1u=o32.childNodes.item(i); if (I1u.nodeType==1){if (I1u.tagName.toUpperCase()=="BR"){if (I1u.style && I1u.style.cssText && I1u.style.cssText.length>0){I1u.style.cssText=""; I1u.removeAttribute("style"); }continue; }if (!HTMLEditor.I2g(I1u) && I1u.tagName.toUpperCase()!="IMG"){var o4u=HTMLEditor.O4u(I1u); var o5j=o32; var O5j=HTMLEditor.I2g(I1u); for (var i2c=0; i2c<o4u.length; i2c++){var l5j=null; if (o4u[i2c][0].toLowerCase()=="color" && o4u[i2c][1])l5j=["color",o4u[i2c][1]];if (o4u[i2c][0].toLowerCase()=="backgroundcolor" && o4u[i2c][1])l5j=["backgroundColor",o4u[i2c][1]];if (o4u[i2c][0].toLowerCase()=="fontfamily" && o4u[i2c][1])l5j=["face",o4u[i2c][1]];var I37=HTMLEditor.O4x.length; if (l5j)I37=1; for (var Oh=0; Oh<I37; Oh++){if (HTMLEditor.O4x[Oh][3].toLowerCase()==o4u[i2c][0].toLowerCase() && HTMLEditor.O4x[Oh][2].toLowerCase()==o4u[i2c][1].toLowerCase() || l5j){if (O5j){if (l5j){HTMLEditor.i5j(I1u,l5j[0],l5j[1],lx); I1u.style[l5j[0]]=""; }else if (o4u[i2c][1]){HTMLEditor.i5j(I1u,o4u[i2c][0],o4u[i2c][1],lx); I1u.style[o4u[i2c][0]]=""; }}else {var tagName=(l5j)?"FONT":HTMLEditor.O4x[Oh][0].toUpperCase(); var I5j=lx.createElement(tagName); if (l5j){if (l5j[0]=="color")I5j.color=l5j[1]; else if (l5j[0]=="face")I5j.face=l5j[1]; else I5j.style.cssText="background-color: "+l5j[1]; }o5j.insertBefore(I5j,I1u); I5j.appendChild(I1u); I1u.style.cssText=""; o4u[i2c][1]=null; for (var o5k=0; o5k<o4u.length; o5k++)if (o4u[o5k][1] && o4u[o5k][0].toLowerCase()!="textdecorationlinethrough" && o4u[o5k][0].toLowerCase()!="textdecorationunderline")I1u.style[o4u[o5k][0]]=o4u[o5k][1]; if (I1u.tagName.toLowerCase()=="span" && I1u.style.cssText=="" && HTMLEditor.l4v(I1u, false)==0){while (I1u.firstChild){I5j.appendChild(I1u.firstChild); }I5j.removeChild(I1u); I1u=I5j; }o5j=I5j; Oh=I37; }}}}}HTMLEditor.restoreOldTags(I1u,lx,X); }else if (I1u.nodeType==8){}}};HTMLEditor.i5j= function (o32,style,value,lx){if (o32.childNodes.length==0){var I5j=lx.createElement("SPAN"); o32.appendChild(I5j); I5j.style[style]=value; }else for (var i=0; i<o32.childNodes.length; i++){var I1u=o32.childNodes.item(i); if (I1u.nodeType==1){if (!I1u.style[style])I1u.style[style]=value; }else if (I1u.nodeType==3){var I5j=lx.createElement("SPAN"); o32.insertBefore(I5j,I1u); I5j.appendChild(I1u); I5j.style[style]=value; }}};function oz(O5k,l5k){var i5k=""; try {if (O5k.nodeType==1)if (O5k.ownerDocument.defaultView && O5k.ownerDocument.defaultView.getComputedStyle)i5k=O5k.ownerDocument.defaultView.getComputedStyle(O5k,"").getPropertyValue(l5k); else if (O5k.currentStyle){try {l5k=l5k.replace(/-(\w)/g, function (O3z,O22){return O22.toUpperCase(); } ); i5k=O5k.currentStyle[l5k]; }catch (w){}}}catch (t){}return i5k; }HTMLEditor.oz=oz; HTMLEditor.I5k= function (o5l){function O5l(){var l9=o5l.offsetHeight; var O9=o5l.offsetWidth; if (!document.all){l9-=6; O9-=2; }if (l9>parseInt(o5l.style.height) || O9>parseInt(o5l.style.width))return false; return true; }var l5l=o5l.innerHTML; var i=0; while (!O5l()){i++; o5l.innerHTML=l5l.substr(0,l5l.length-i-1)+"..."; }};HTMLEditor.i5l= function (event){HTMLEditor._stopEvent(event); return false; };HTMLEditor.I5l= function (X,o5m){if (o5m.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.Ik(o5m,"dragstart",HTMLEditor.i5l); else HTMLEditor.Ik(o5m,"draggesture",HTMLEditor.i5l); var O23,cell,O5m,div; var lx=X.getDocument(); var l5m=lx.createElement("TABLE"); if (o5m.tagName && o5m.tagName.toUpperCase()=="IMG"){l5m.style.display="inline"; }l5m.border="0"; l5m.cellSpacing="0"; l5m.cellPadding="0"; l5m.style.borderWidth="0px"; l5m.setAttribute(X.noContextMenuAttributeName(),"yes"); O23=l5m.insertRow(l5m.rows.length); O5m=O23.insertCell(O23.cells.length); O5m.style.fontSize="0px"; O5m.style.fontFamily="verdana"; O5m.style.padding="0px"; O5m.style.margin="0px"; O5m.style.borderWidth="0px"; O5m.setAttribute(X.noContextMenuAttributeName(),"yes"); cell=O23.insertCell(O23.cells.length); cell.vAlign="top"; cell.align="left"; cell.style.padding="0px"; cell.style.margin="0px"; cell.style.fontSize="0px"; cell.style.fontFamily="verdana"; cell.style.borderWidth="0px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.I7+"/pagebgright.jpg)"; cell.style.backgroundRepeat="repeat-y"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=lx.createElement("DIV"); div.style.width="10px"; div.style.height="10px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.I7+"/pagebgtopright.jpg)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); O23=l5m.insertRow(l5m.rows.length); cell=O23.insertCell(O23.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.vAlign="top"; cell.align="left"; cell.style.backgroundImage="url("+X.I7+"/pagebgbottomwhite.gif)"; cell.style.backgroundRepeat="repeat-x"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=lx.createElement("DIV"); div.style.width="10px"; div.style.height="8px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.I7+"/pagebgbottomleftwhite.gif)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); cell=O23.insertCell(O23.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.I7+"/pagebgbottomright.gif)"; cell.style.backgroundRepeat="no-repeat"; cell.style.borderWidth="0px"; cell.innerHTML="&nbsp;"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); if (o5m.tagName && o5m.tagName.toUpperCase()!="IMG"){var O1y=X.l1y(o5m); if (O1y){var parent=O1y.parentNode; parent.insertBefore(o5m,O1y); parent.removeChild(O1y); }}o5m.parentNode.insertBefore(l5m,o5m); O5m.appendChild(o5m); o5m.setAttribute(X.attachedIdAttributeName(),"yes"); };HTMLEditor.i5m= function (X,o5m){if (o5m.getAttribute(X.attachedIdAttributeName()) && o5m.getAttribute(X.attachedIdAttributeName()).length>0)return true; else return false; };HTMLEditor.I5m= function (X,o5m){if (o5m.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.od(o5m,"dragstart",HTMLEditor.i5l); else HTMLEditor.od(o5m,"draggesture",HTMLEditor.i5l); var i4g=X.lt(o5m); if (i4g!=null){i4g.parentNode.insertBefore(o5m,i4g); i4g.parentNode.removeChild(i4g); o5m.removeAttribute(X.attachedIdAttributeName()); }};HTMLEditor.prototype.o5n= function (){var O5n=[]; var l5n=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>"()$%#*@&\-+=\/\\|><]/; var i5n=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>()$%#*@&\-+=\/\\|><]/; if (this.l1 && this.mode()=="html" && !this.isPopup()){var O1b=(!HTMLEditor.is_ie)?HTMLEditor.o13(this.l1b()): ""; var lq=this.iq(); var Iq=this.or(lq); var I1b; if (!this.isControl() && ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && O1b.length>0)))I1b=this.o1c(); else I1b=this.o1c( true); for (var i=0; i<I1b.length; i++){var par=I1b[i].parentNode; var I5n=-1; var o5o=-1; var O5o=""+I1b[i].data+""; var l5o=O5o.length; var i5o=""; var I5o= false; if (l5o==0){par.removeChild(I1b[i]); }else {for (var Oh=0; Oh<l5o; Oh++){var o5p=O5o.substr(Oh,1); if (o5p.charCodeAt(0)>=02620 && o5p.charCodeAt(0)<=02777)I5o= true; o5o=((I5o?i5n:l5n).test(o5p) || (o5p.charCodeAt(0)&0170000)==020000)?0: 1; if (o5o!=I5n){if (I5n>=0 && i5o.length>0){var O5p=this.I1.createTextNode(i5o); par.insertBefore(O5p,I1b[i]); if (isNaN(parseInt(i5o,012)) && I5n==1){O5n.push( {l5p: -1,i5p: (""+O5p.data+""),ref:O5p,I5g: false } ); }}i5o=""; I5n=o5o; }i5o+=o5p; }if (I5n>=0 && i5o.length>0){I1b[i].data=i5o; if (isNaN(parseInt(i5o,012)) && I5n==1)O5n.push( {l5p: -1,i5p: (""+I1b[i].data+""),ref:I1b[i],I5g: false } ); }}}lq=this.iq(); if (I1b.length>0){if (!HTMLEditor.is_ie){Iq=this.I1.createRange(); Iq.setStart(I1b[I1b.length-1],(""+I1b[I1b.length-1].data+"").length); Iq.setEnd(I1b[I1b.length-1],(""+I1b[I1b.length-1].data+"").length); this.I17(lq); this.o18(lq,Iq); }else {var l3l=this.or(lq); var o49=this.I1.createElement("span"); if (I1b[I1b.length-1].nextSibling)I1b[I1b.length-1].parentNode.insertBefore(o49,I1b[I1b.length-1].nextSibling); else I1b[I1b.length-1].parentNode.appendChild(o49); try {l3l.moveToElementText(o49); l3l.setEndPoint("EndToStart",l3l); l3l.select(); }catch (t){}I1b[I1b.length-1].parentNode.removeChild(o49); }}}var I5p=[]; for (var i=0; i<O5n.length; i++){var o5q=O5n[i]; var O5q= {l5p: -1,i5p:o5q.i5p,ref: [o5q.ref],I5g: false } ; while (i+1<O5n.length){var l5q=O5n[i+1]; var par=HTMLEditor.I44(o5q.ref,l5q.ref); if (par!=null){var i5q=par.parent.childNodes.item(par.i25); var I5q=par.parent.childNodes.item(par.o26); if (i5q.nextSibling==I5q){var o1o= true; var current; current=o5q.ref; while (current!=i5q){if (current.nextSibling!=null){o1o= false; break; }current=current.parentNode; }if (!o1o){break; }current=l5q.ref; while (current!=I5q){if (current.previousSibling!=null){o1o= false; break; }current=current.parentNode; }if (!o1o){break; }O5q.i5p+=l5q.i5p; O5q.ref.push(l5q.ref); o5q=l5q; i++; continue; }}break; }I5p.push(O5q); }return I5p; };HTMLEditor.prototype.O1w= function (Op){var X=this ; X.openWait(); setTimeout( function (){Op(X.o5n()); } ,0); };HTMLEditor.prototype.i1j= function (I1b){var lq=this.iq(); if (!HTMLEditor.is_ie){var Iq=this.I1.createRange(); Iq.setStart(I1b[0],0); Iq.setEnd(I1b[I1b.length-1],(""+I1b[I1b.length-1].data+"").length); this.I17(lq); this.o18(lq,Iq); }else {var l3l=this.or(lq); var i3l=this.or(lq); var o49=this.I1.createElement("span"); var O49=this.I1.createElement("span"); I1b[0].parentNode.insertBefore(o49,I1b[0]); if (I1b[I1b.length-1].nextSibling)I1b[I1b.length-1].parentNode.insertBefore(O49,I1b[I1b.length-1].nextSibling); else I1b[I1b.length-1].parentNode.appendChild(O49); try {l3l.moveToElementText(o49); var o5r=l3l.moveStart("character",1); l3l.moveStart("character",-o5r); i3l.moveToElementText(O49); o5r=i3l.moveEnd("character",-1); i3l.moveEnd("character",-o5r); l3l.setEndPoint("EndToEnd",i3l); l3l.select(); }catch (t){}I1b[0].parentNode.removeChild(o49); I1b[I1b.length-1].parentNode.removeChild(O49); }};HTMLEditor.prototype.O5r= function (i4d){var I1b=this.o1c(); var X=this ; var i5g= false; if (I1b.length==0)if (!HTMLEditor.is_Safari){I1b=this.I3w( true); i5g= true; }if (I1b!=null && I1b.length>0){ this.I10(); for (var i=0; i<I1b.length; i++){if (i4d)I1b[i].data=(""+I1b[i].data+"").toUpperCase(); else I1b[i].data=(""+I1b[i].data+"").toLowerCase(); }if (i5g){if (HTMLEditor.is_ie && this.o3x!=null){var lq=this.iq(); var Iq=this.or(lq); Iq.moveToElementText(this.o3x); Iq.select(); this.o3x.parentNode.removeChild(this.o3x); this.o3x=null; }else if (this.o3x!=null){if (this.o3x[0].nodeType==3){var lq=this.iq(); var Iq=this.I1.createRange(); Iq.setStart(this.o3x[0],this.o3x[1]); Iq.setEnd(this.o3x[0],this.o3x[1]); this.I17(lq); this.o18(lq,Iq); }else { this.O3x(this.o3x[0],this.o3x[0]); this.o3x[0].parentNode.removeChild(this.o3x[0]); } this.o3x=null; }}else this.i1j(I1b); this.O1.setTimeout( function (){X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); }};HTMLEditor.prototype.toUpperCase= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (this.isControl())return; this.O5r( true); };HTMLEditor.prototype.toLowerCase= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (this.isControl())return; this.O5r( false); };HTMLEditor.O37= function (il){var i1n=il.all; var I11=[]; var o3q=[];for (var i=0; i<i1n.length; i++){var a=i1n[i]; if (a.name && a.name.length>0){var Il=a.tagName; var l5r=il.getElementsByTagName(Il); var I37=0; for (var Oh=0; Oh<l5r.length; Oh++){if (l5r[Oh]==a){I37=Oh; break; }}o3q[Il]=I37; I11.push([Il,o3q[Il],a.name]); }}return I11; };HTMLEditor.l39= function (il,I11){for (var i=0; i<I11.length; i++){if (il.getElementsByTagName(I11[i][0]).length>I11[i][1])il.getElementsByTagName(I11[i][0])[I11[i][1]].name=I11[i][2]; }};HTMLEditor.i5r= function (il){var i1n=il.all; var I11=[]; var o3q=[];for (var i=0; i<i1n.length; i++){var a=i1n[i]; if (a.href && a.href.length>0 && !(a.src && a.src.length>0)){var Il=a.tagName; var l5r=il.getElementsByTagName(Il); var I37=0; for (var Oh=0; Oh<l5r.length; Oh++){if (l5r[Oh]==a){I37=Oh; break; }}o3q[Il]=I37; I11.push([Il,o3q[Il],a.href]); }}return I11; };HTMLEditor.o12= function (i1g){var o3q=[];function I5r(I29,O22,l22,I2u,o39,o5s,O5s,l5s){var Il=O22.replace(/^<([^\s>]+)/,"$1"); var i5s= true; var i=0; for ( ; i<o3q.length; i++){if (o3q[i][0]==Il){i5s= false; break; }}if (i5s){o3q[i]=[Il]; }o3q[i].push(o5s); }var l2o=new RegExp("(\x3c[^\\s>\x3c]+)([^>\x3c]*?)(href=)(\"|\')([^\\4]*?)(\\4)((?:[^>\x3c]*?)>)","ig"); i1g.replace(l2o,I5r); return o3q; };HTMLEditor.I5s= function (il,I11){for (var i=0; i<I11.length; i++){il.getElementsByTagName(I11[i][0])[I11[i][1]].href=I11[i][2]; }};HTMLEditor.i12= function (il,I11){for (var Oh=0; Oh<I11.length; Oh++){var i1n=il.getElementsByTagName(I11[Oh][0]); var i2c=1; for (var i=0; i<i1n.length; i++){try {if (!i1n[i].href)continue; if (I11[Oh][i2c] && I11[Oh][i2c].length>0){var o5t; if (HTMLEditor.is_ie){o5t=i1n[i].innerHTML; }i1n[i].href=I11[Oh][i2c].replace(/&amp;/ig,"&"); if (HTMLEditor.is_ie){i1n[i].innerHTML=o5t; }}i2c++; }catch (w){}}}};HTMLEditor.O5t= function (il){var i1n=il.getElementsByTagName("IMG"); var I11=[]; for (var i=0; i<i1n.length; i++){var a=i1n[i]; I11.push((a.src && a.src.length>0)?a.src:null); }return I11; };HTMLEditor.l5t= function (i1g){var I11=[]; function I5r(I29,O22,l22,I2u,o39,o5s){I11.push(I29); return I29; }i1g.replace(/(<img(?:.*?)>)/ig,I5r); return I11; };HTMLEditor.i5t= function (i1g,I11){var i=-1; function I5r(I29,O22,l22,I2u,o39,o5s){i++; return I11[i]; }return i1g.replace(/(<img(?:.*?)>)/ig,I5r); };HTMLEditor.l12= function (i1g){var I11=[]; function I5r(I29,O22,l22,I2u,o39,o5s){I11.push(I2u); return I29; }i1g.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,I5r); return I11; };HTMLEditor.I5t= function (i1g){var I11=[[],[]]; function I5r(I29,O22,l22,I2u,o39,o5s){I11[0].push(I2u); return I29; }function i2b(I29,O22,l22,I2u,o39,o5s){I11[1].push(I2u); return I29; }i1g.replace(/(<img(?:.*?))(width=)([^\s>]+)(\s*)((?:.*?)>)/ig,I5r); i1g.replace(/(<img(?:.*?))(height=)([^\s>]+)(\s*)((?:.*?)>)/ig,i2b); return I11; };HTMLEditor.o5u= function (i1g,I11){var i=-1; var Oh=-1; function I5r(I29,O22,l22,I2u,o39,o5s){i++; return O22+l22+I11[0][i]+o39+o5s; }function i2b(I29,O22,l22,I2u,o39,o5s){Oh++; return O22+l22+I11[1][Oh]+o39+o5s; }return i1g.replace(/(<img(?:.*?))(width=")([^\s>]+)(")((?:.*?)>)/ig,I5r).replace(/(<img(?:.*?))(height=")([^\s>]+)(")((?:.*?)>)/ig,i2b); };HTMLEditor.O5u= function (i1g){var I11=[]; function I5r(I29,O22){I11.push(O22); return I29; }i1g.replace(/(<area[^>]*?>)/ig,I5r); return I11; };HTMLEditor.l5u= function (i1g,I11){var i=-1; function I5r(I29,O22){i++; return I11[i]; }return i1g.replace(/(<area[^>]*?>)/ig,I5r); };HTMLEditor.I12= function (il,I11){var i1n=il.getElementsByTagName("IMG"); var i2c=0; for (var i=0; i<i1n.length; i++){if (!i1n[i].src)continue; if (I11[i2c] && I11[i2c].length>0){i1n[i].src=I11[i2c].replace(/&amp;/ig,"&"); }i2c++; }};HTMLEditor.i5u= function (i1g,I11){var i=-1; function I5r(I29,O22,l22,I2u,o39,o5s){i++; return O22+l22+I11[i]+o39+o5s; }return i1g.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,I5r); };HTMLEditor.l13= function (il){var i1n=il.getElementsByTagName("IMG"); for (var i=0; i<i1n.length; i++){if (i1n[i].getAttribute(HTMLEditor.Ot) && i1n[i].getAttribute(HTMLEditor.Ot).length>0){try {if (HTMLEditor.is_ie)HTMLEditor.od(i1n[i],"dragstart",HTMLEditor.i5l); else HTMLEditor.od(i1n[i],"draggesture",HTMLEditor.i5l); }catch (t){}if (HTMLEditor.is_ie)HTMLEditor.Ik(i1n[i],"dragstart",HTMLEditor.i5l); else HTMLEditor.Ik(i1n[i],"draggesture",HTMLEditor.i5l); }}};HTMLEditor.o15= function (id,on){var I5u=document.getElementById(id); if (!I5u)return null; if (!HTMLEditor.is_Safari && I5u.className=="ST_div" && (typeof on=="undefined" || on=="undefined")){I5u.parentNode.style.display="none"; return null; }return null; var o5v=document.getElementById(id+"__disabling"); var I1y=0,_top=0; var il=I5u; var parent=HTMLEditor.O5v(I5u); if (parent==null)parent=document.body; var O4z=HTMLEditor.l5v(il,(HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)?document.body:parent, false); var O4z=HTMLEditor.l5v(il,parent, false); I1y=O4z.I1y; _top=O4z._top; var i5v; if (o5v!=null)i5v=o5v; else {i5v=document.createElement("DIV"); i5v.className="DisableSpan"; i5v.id=id+"__disabling"; i5v.style.position="absolute"; i5v.style.zIndex=01750; i5v.style.visibility="visible"; }if (!HTMLEditor.is_ie || (HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)){il=parent; if (o5v==null)i5v.I5v=[]; while (il && il.tagName && il.tagName.toUpperCase()!="BODY"){if (il.scrollTop)_top-=parseInt(il.scrollTop); if (il.scrollLeft)I1y-=parseInt(il.scrollLeft); if (o5v==null && HTMLEditor.o5w(il)){var O5w= {l5w:il.scrollTop,i5w:il.scrollLeft } ; var I5w=i5v.I5v.length; var l51=new Function("event","HTMLEditor_onParentScroll(event,\""+id+"__disabling"+"\",this,"+I5w+")"); i5v.I5v.push( {l51:l51,parent:il,I16:O5w } ); HTMLEditor.Ik(il,"scroll",l51); }il=il.parentNode; }if (HTMLEditor.is_ie)parent=document.body; }if (o5v==null)parent.appendChild(i5v); i5v.style.top=_top+"px"; i5v.style.left=I1y+"px"; var O9=0; var l9=0; if (O9==0)O9=I5u.offsetWidth; if (l9==0)l9=I5u.offsetHeight; i5v.style.width=parseInt(O9)+"px"; i5v.style.height=parseInt(l9)+"px"; return id+"__disabling"; };HTMLEditor.l5v= function (i57,parent,on){var il=i57; var _top=0,I1y=0; while (il && typeof il!="undefined" && il!=parent && il.tagName.toUpperCase()!="HTML"){var borderTopWidth; var borderLeftWidth; I1y+=parseInt(il.offsetLeft); _top+=parseInt(il.offsetTop); il=il.offsetParent; if (il && typeof il!="undefined"){if (il.clientLeft)I1y+=parseInt(il.clientLeft); if (il.clientTop)_top+=parseInt(il.clientTop); if (!HTMLEditor.is_ie && ((on && il.tagName.toUpperCase()!="BODY") || (!on && (il.tagName.toUpperCase()=="BODY" || HTMLEditor.O11)))){borderTopWidth=parseInt(HTMLEditor.oz(il,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; borderLeftWidth=parseInt(HTMLEditor.oz(il,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; I1y+=borderLeftWidth; _top+=borderTopWidth; }if (HTMLEditor.is_ie && !on && (il.tagName.toUpperCase()=="TABLE" || (il.tagName.toUpperCase()=="BODY" && document.compatMode=="BackCompat"))){var top=il.tagName.toUpperCase()=="BODY"?HTMLEditor.oz(il,"border-top-width").toUpperCase(): ""; borderTopWidth=parseInt(HTMLEditor.oz(il,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; if (borderTopWidth==0){if (top=="THIN")borderTopWidth=1; else if (top=="MEDIUM")borderTopWidth=2; else if (top=="THICK")borderTopWidth=4; }var left=il.tagName.toUpperCase()=="BODY"?HTMLEditor.oz(il,"border-left-width").toUpperCase(): ""; borderLeftWidth=parseInt(HTMLEditor.oz(il,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; if (borderLeftWidth==0){if (left=="THIN")borderLeftWidth=1; else if (left=="MEDIUM")borderLeftWidth=2; else if (left=="THICK")borderLeftWidth=4; }if (borderLeftWidth==0 && borderTopWidth==0 && typeof il.border!="undefined" && il.border!=null && !isNaN(parseInt(il.border)))borderLeftWidth=borderTopWidth=parseInt(il.border); I1y-=borderLeftWidth; _top-=borderTopWidth; }}}if (il && typeof il!="undefined" && HTMLEditor.is_ie && document.compatMode!="BackCompat"){var marginTop=parseInt(HTMLEditor.oz(il,"margin-top")); if (isNaN(marginTop))marginTop=0; var marginLeft=parseInt(HTMLEditor.oz(il,"margin-left")); if (isNaN(marginLeft))marginLeft=0; I1y+=marginLeft; _top+=marginTop; }if (!HTMLEditor.O11){il=i57; while (il && il!=parent){if (il.scrollTop)_top-=parseInt(il.scrollTop); if (il.scrollLeft)I1y-=parseInt(il.scrollLeft); il=il.parentNode; }}return {_top:_top,I1y:I1y } ; };function HTMLEditor_onParentScroll(event,o5x,parent,i){var l1p=document.getElementById(o5x); var I16=l1p.I5v[i].I16; if (HTMLEditor.is_ie)parent=event.srcElement; l1p.style.top=parseInt(l1p.style.top)-(parent.scrollTop-I16.l5w)+"px"; l1p.style.left=parseInt(l1p.style.left)-(parent.scrollLeft-I16.i5w)+"px"; I16.l5w=parent.scrollTop; I16.i5w=parent.scrollLeft; }HTMLEditor.I18= function (id,on){var I5u=document.getElementById(id); if (!I5u)return null; if (!HTMLEditor.is_Safari && I5u.className=="ST_div" && (typeof on=="undefined" || on=="undefined")){I5u.parentNode.style.display=""; return null; }var il=document.getElementById(id+"__disabling"); if (il){if (typeof il.I5v!=undefined && il.I5v!=null && il.I5v.length>0){for (var i=0; i<il.I5v.length; i++)HTMLEditor.od(il.I5v[i].parent,"scroll",il.I5v[i].l51); }il.parentNode.removeChild(il); }};HTMLEditor.o5w= function (Ic){if (Ic.clientHeight>0 && Ic.scrollHeight && Ic.scrollHeight>0){var clientHeight=Ic.clientHeight; if (!HTMLEditor.is_ie){var borderTopWidth=parseInt(oz(Ic,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; var borderBottomWidth=parseInt(oz(Ic,"border-bottom-width")); if (isNaN(borderBottomWidth))borderBottomWidth=0; clientHeight+=(borderTopWidth+borderBottomWidth); }if (Ic.scrollHeight>clientHeight){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientHeight<Ic.offsetHeight)return true; }else return true; }}if (Ic.clientWidth>0 && Ic.scrollWidth && Ic.scrollWidth>0){var clientWidth=Ic.clientWidth; if (!HTMLEditor.is_ie){var borderLeftWidth=parseInt(oz(Ic,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; var borderRightWidth=parseInt(oz(Ic,"border-right-width")); if (isNaN(borderRightWidth))borderRightWidth=0; clientWidth+=(borderLeftWidth+borderRightWidth); }if (Ic.scrollWidth>clientWidth){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientWidth<Ic.offsetWidth)return true; }else return true; }}return false; };HTMLEditor.O5v= function (l1p){var Ic=l1p; do {Ic=Ic.parentNode; if (HTMLEditor.o5w(Ic))return Ic; }while (Ic && Ic.tagName.toUpperCase()!="BODY");return Ic; };if (typeof HTMLEditor.z!="function"){HTMLEditor.O5x=null; try {HTMLEditor.O5x=(document.all)?document.body.onload:window.onload; }catch (w){}HTMLEditor.z= function (t,i5h){if (typeof i5h=="undefined"){if (document.all)document.body.onload=HTMLEditor.O5x; else window.onload=HTMLEditor.O5x; if (HTMLEditor.O5x!=null && typeof HTMLEditor.O5x=="function")HTMLEditor.O5x(t); }HTMLEditor.Z= function (Ij){if (Ij){for (var i=0; i<HTMLEditor.i9.length; i++){if (HTMLEditor.i9[i].Oa){var X=HTMLEditor.i9[i].X; if (X.oe && X.oe!=null){var il; if (HTMLEditor.is_ie){Ij=window.event; il=Ij.srcElement; }else {il=Ij.target; }while (il && il!=X.oe)il=il.parentNode; if (il==null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; if (X.l10){X.l10.select(); X.l10=null; }}}}}}return true; };setTimeout( function (){HTMLEditor.Ik(document.body,"mousedown", function (event){var ie= false; try {ie=HTMLEditor.Z(HTMLEditor.is_ie?window.event:event); }catch (t){}return ie; } ); } ,0454); if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (typeof window.Sys.WebForms.PageRequestManager.getInstance()._updateControls=="function")){var l5x=window.Sys.WebForms.PageRequestManager.getInstance()._updateControls; var i5x=window.Sys.WebForms.PageRequestManager.getInstance(); window.Sys.WebForms.PageRequestManager.getInstance()._updateControls= function (){var I5x=[]; for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; var o5y=document.getElementById(X.mainDivId); var O5y= false; var l5y; if (o5y==null){O5y= true; }else {if (arguments && arguments.length && arguments.length>0 && arguments[0] && arguments[0].length){for (var i=0; i<arguments[0].length; i++){l5y=arguments[0][i].substr(1).replace(/\$/g,"_"); var i5y=document.getElementById(l5y); if (i5y!=null){var Ic=o5y.parentNode; while (Ic && Ic!=i5y && Ic.tagName.toUpperCase()!="BODY"){Ic=Ic.parentNode; }if (Ic==i5y){O5y= true; break; }}}}}HTMLEditor.i9[Oh].oa=O5y; if (O5y){try {X.On(); }catch (I4u){} ; if (typeof X.lb=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.lb); X.lb=null; }HTMLEditor.i9[Oh].Oa= false; if (!X._autoFocus && !X._wasFocused && o5y!=null){X.focusEditor(); HTMLEditor.I18(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I18(X.ShowQuickFormatDivId); }if (o5y!=null)X.UnlinkEditorOject(); if (X.n!=null){I5x.push(X.n); }}}}var I5y=l5x.apply(i5x,arguments); while (I5x.length>0){try {var o5z=I5x.pop(); var ik=o5z.parentNode.removeChild(o5z); delete ik; }catch (w){}}setTimeout( function (){var O5z=[]; for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){var X=HTMLEditor.i9[Oh].X; var o5y=document.getElementById(X.mainDivId); if (o5y==null){O5z.push(X); }else {if (X.isActivated && X.mainDivVisible && X.i1=="html"){HTMLEditor.iy(X,X.I1,!X.showAnchors); HTMLEditor.Iy(X,X.I1,!X.showPlaceHolders); X.updateToolbar(); }try {X.o2t(); }catch (t){}}}for (var Oh=0; Oh<O5z.length; Oh++){var X=O5z[Oh]; try {X.o2t(); }catch (t){}X.UnlinkEditorOject(); HTMLEditor.Oc(X); }} ,0); return I5y; } ; }if (typeof window.__doPostBack=="function"){var l5z=window.__doPostBack; window.__doPostBack= function (O4s,l4s){for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; if (document.getElementById(X.mainDivId)==null)continue; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X))return; }if (!(!X.AjaxCurrentContent && !X.O0))try {X.openWait(); }catch (t){} ; }}setTimeout( function (){for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; if (document.getElementById(X.mainDivId)==null)continue; if (HTMLEditor.is_Safari){try {X.Im(); }catch (t){} ; }}}l5z(O4s,l4s); } ,0); } ; }if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){var Ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (Ip._oboutEditor_onFormSubmit==null || typeof Ip._oboutEditor_onFormSubmit=="undefined"){Ip._oboutEditor_onFormSubmit=Ip._onsubmit; Ip._onsubmit= function (){for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){HTMLEditor.i9[Oh].X.oq= false; }}var ie= true; if (Ip._oboutEditor_onFormSubmit!=null && typeof Ip._oboutEditor_onFormSubmit!="undefined")ie=Ip._oboutEditor_onFormSubmit(); for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; if (!X.oq){try {ie=ie && X.__submit(); }catch (w){}}X.oq= false; }}return ie; } ; }}if (HTMLEditor.S())if (window.Sys && typeof window.Sys!="undefined")if (window.Sys.UI && typeof window.Sys.UI!="undefined")if (window.Sys.UI.DomElement && typeof window.Sys.UI.DomElement!="undefined")if (typeof window.Sys.UI.DomElement.setVisible=="function"){var G=window.Sys.UI.DomElement.setVisible; window.Sys.UI.DomElement.setVisible= function (il,value){G(il,value); for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; if (document.getElementById(X.mainDivId)!=null){var Ic=document.getElementById(X.mainDivId).parentNode; while (Ic && Ic!=il && Ic.tagName && Ic.tagName.toUpperCase()!="BODY")Ic=Ic.parentNode; if (Ic==il){if (!value){if (X.mainDivVisible && X.os){X.setVisibility( false); }}else {if (X.It() && !X.mainDivVisible && X.os){X.setVisibility( true); }}}}}}};}if (typeof window.Page_ClientValidate=="function"){var i5z=window.Page_ClientValidate; window.Page_ClientValidate= function (O22){for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; var ob=X.clientID; var la=document.getElementById(ob); var o19=""; if (la==null){if (document.getElementsByName(ob) && document.getElementsByName(ob).length && document.getElementsByName(ob).length>0)la=document.getElementsByName(ob)[0]; }if (la!=null){if (X.clientValidation){o19=X.getContent(); }else {if (X.i1=="preview"){if (X.I15=="html")o19=X.l19; else o19=X.O15.value; }else if (HTMLEditor.is_ie){if (X.i1=="html"){o19=X.I1.body.innerHTML; }else {if (X.O15)o19=X.O15.value; }}else {o19=X.getHTML(); }o19=HTMLEditor.o13(o19); if (o19.length>0)if (o19.toLowerCase()=="<br />" || o19.toLowerCase()=="<br/>" || o19.toLowerCase()=="<br>")o19=""; else o19="content"; }la.value=o19; }HTMLEditor.i9[Oh].la=la; }}var ie=i5z(O22); for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; var la=HTMLEditor.i9[Oh].la; if (la!=null){la.value=""; }}}return ie; } ; }};try {if (document.all)document.body.onload=HTMLEditor.z; else window.onload=HTMLEditor.z; }catch (w){setTimeout( function (){HTMLEditor.z(null, true); } ,0); }}HTMLEditor.I5z=["img","strong","p","b","i","u","a","h1","h2","h3","h4","h5","h6","table","tbody","tr","td","ul","ol","li","span","div","font","xml","del","ins","em","sub","sup","hr","br"];HTMLEditor.O2q= function (html){var ie=HTMLEditor.o13(html.replace(/[\0-\x1f]+/g," ")); var o60; ie=ie.replace(/^[^\0]+?<html(?:[^>]*?)>/gi,""); ie=ie.replace(/<\/html(?:[^>]*?)>[^\0]*$/gi,""); ie=ie.replace(/<head(?:[^>]*?)>[^\0]*?<\/head(?:[^>]*?)>/gi,""); ie=ie.replace(/<body[^>]*?>([^\0]*?)<\/body(?:[^>]*?)>/gi,"$1"); ie=ie.replace(/<\/?html(?:[^>]*?)>/gi,""); ie=ie.replace(/<\/?head(?:[^>]*?)>/gi,""); ie=ie.replace(/<\/?body(?:[^>]*?)>/gi,""); ie=ie.replace(/<!--(\w|\W)+?-->/ig,""); ie=ie.replace(/(<[\/]?)(?:o|v|x|p|w|\?xml):(\w+)([^>]*?>)/ig,"$1$2$3"); ie=ie.replace(/<(IMAGEDATA)([^>]*?)>/ig,"<img$2>"); ie=ie.replace(/<p[^>]*><p>&nbsp;<\/p><\/p>/ig,"<br>"); ie=ie.replace(/<p[^>]*?\/>/ig,"").replace(/<(p|div)[^>]*?>&nbsp;<\/(\1)[^>]*?>/ig,"").replace(/<(p|div)[^>]*?><\/(\1)[^>]*?>/ig,""); do {o60=ie; ie=ie.replace(/<([^>]*)(?:class|size|lang|face|start|type|border|[ovwxp]:\w+)=(?:'[^']*'|"[^"]*"|[^> ]+)([^>]*)>/ig,"<$1$2>"); }while (ie!=o60);var div=document.createElement("div"); div.innerHTML=ie; function o21(Ic){var I37=Ic.childNodes.length; for (var i=0; i<Ic.childNodes.length; i++){var I1u=Ic.childNodes.item(i); if (I1u.nodeType==1){if (I1u.tagName.indexOf("/")>=0){i--; I1u.parentNode.removeChild(I1u); }else {var search=I1u.tagName.toLowerCase(); var it= false; var O60=HTMLEditor.I5z.length; for (var Oh=0; Oh<O60; Oh++)if (HTMLEditor.I5z[Oh]==search){it= true; break; }o21(I1u); if (!it){i+=I1u.childNodes.length; while (I1u.firstChild)I1u.parentNode.insertBefore(I1u.firstChild,I1u); I1u.parentNode.removeChild(I1u); i--; }else {var l60=I1u.style.backgroundColor; var i60=I1u.style.color; I1u.style.cssText=""; I1u.removeAttribute("style"); if (I1u.getAttribute("width") && I1u.getAttribute("width").length>0)I1u.style.width=I1u.getAttribute("width"); if (I1u.width && I1u.width.length>0)I1u.style.width=I1u.width; I1u.width=""; try {I1u.removeAttribute("width"); }catch (t){}if (I1u.getAttribute("height") && I1u.getAttribute("height").length>0)I1u.style.height=I1u.getAttribute("height"); if (I1u.height && I1u.height.length>0)I1u.style.height=I1u.height; I1u.height=""; try {I1u.removeAttribute("height"); }catch (t){}if (search=="table"){I1u.style.borderLeftWidth="1px"; I1u.style.borderLeftColor="black"; I1u.style.borderLeftStyle="solid"; I1u.style.borderTopWidth="1px"; I1u.style.borderTopColor="black"; I1u.style.borderTopStyle="solid"; I1u.style.backgroundColor=l60; I1u.style.color=i60; }if (search=="td"){I1u.style.borderRightWidth="1px"; I1u.style.borderRightColor="black"; I1u.style.borderRightStyle="solid"; I1u.style.borderBottomWidth="1px"; I1u.style.borderBottomColor="black"; I1u.style.borderBottomStyle="solid"; I1u.style.backgroundColor=l60; I1u.style.color=i60; }if (search=="font" || search=="span"){I1u.style.backgroundColor=l60; I1u.style.color=i60; var O2z=I1u.attributes; var I37=0; for (var o5k=0; o5k<O2z.length; ++o5k){var a=O2z.item(o5k); if (!a.specified)continue; I37++; }if (I37==0 && I1u.style.cssText==""){i+=I1u.childNodes.length; while (I1u.firstChild)I1u.parentNode.insertBefore(I1u.firstChild,I1u); I1u.parentNode.removeChild(I1u); i--; }}}}}}}o21(div); ie=HTMLEditor.o13(div.innerHTML); delete div; ie=ie.replace(/<[\/]?(xml|del|ins)[^>]*?>/ig,""); ie=ie.replace(/<(p|div)[^>]*?>/ig,""); ie=ie.replace(/<\/(p|div)[^>]*?>/ig,"<br>"); do {o60=ie; ie=ie.replace(/<b><\/b>/ig,"").replace(/<i><\/i>/ig,"").replace(/<u><\/u>/ig,"").replace(/<strong><\/strong>/ig,"").replace(/<em><\/em>/ig,"").replace(/<sub><\/sub>/ig,"").replace(/<sup><\/sup>/ig,""); ie=ie.replace(/<span[^>]*?><\/span>/ig,"").replace(/<span>([^<]+?)<\/span>/ig,"$1"); ie=ie.replace(/<font[^>]*?><\/font>/ig,"").replace(/<font>([^<]+?)<\/font>/ig,"$1"); }while (ie!=o60);ie=ie.replace(/&rsquo;/g,"'"); ie=ie.replace(/&lsquo;/g,"'"); ie=ie.replace(/&ndash;/g,"-"); ie=ie.replace(/&mdash;/g,"-"); ie=ie.replace(/&hellip;/g,"..."); ie=ie.replace(/&quot;/g,"\""); ie=ie.replace(/&ldquo;/g,"\""); ie=ie.replace(/&rdquo;/g,"\""); ie=ie.replace(/\cA/g,""); ie=ie.replace(/&bull;/g,""); ie=ie.replace(/[ ]+/g," ").replace(/(&nbsp;)+/g,"&nbsp;"); if (document.all)ie=ie.replace(/^[\0-\x1f]*&nbsp;/,""); return ie; };HTMLEditor.prototype.O10= function (Ij,clientX,clientY){var lq; var Iq; var parent; var X=this ; if (HTMLEditor.O11)this.f= true; X.I1f(); if (HTMLEditor.is_Safari && Ij!=null){parent=Ij.target; }else {lq=X.iq(); Iq=X.or(lq); parent=HTMLEditor.getSelParent(X); }var I60= false; var o61=parent; var O61=parent; X.l61=[]; X.l10=null; while (O61.nodeType==3 || (O61.tagName && O61.tagName.toUpperCase()!="BODY")){var par=O61.parentNode; var i61=0; for ( ; i61<par.childNodes.length; i61++)if (par.childNodes.item(i61)==O61)break; X.l61.push(i61); O61=O61.parentNode; }setTimeout( function (){var I61=document.createElement("DIV"); I61.className="CNTXT_div"; var html=new o2a(); var o62=0; html.write("<table>"); X.le=[]; var O62=X._ContextMenu; for (var Oh=0; Oh<O62.length; Oh++){O62[Oh][3]= false; }while (parent!=null){if (parent.tagName){if (parent.getAttribute(HTMLEditor.ot) && parent.getAttribute(HTMLEditor.ot).length>0){}else {var oa=(o62>0); for (var Oh=0; Oh<O62.length; Oh++){var l62=O62[Oh][0].toUpperCase().split(" "); var i62= true; var tagName=parent.tagName; if (parent.getAttribute("dummytag") && parent.getAttribute("dummytag").length>0)tagName=parent.getAttribute("dummytag"); if (l62[0]==tagName.toUpperCase() && l62.length>1){var O2z=parent.attributes; var value=""; var name=""; i62= false; for (var i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; name=a.name.toUpperCase(); value=a.value.toUpperCase(); if (name==l62[1]){i62= true; break; }}if (i62 && l62.length>2){if (l62[2]!=value){i62= false; }else {if (value.toLowerCase()=="application/x-mplayer2")I60= true; }}}if (parent.className && parent.className==HTMLEditor.Om)i62= false; if (((l62[0]==tagName.toUpperCase()) || (HTMLEditor.contentEditable(parent, true) && l62[0].toLowerCase()=="#contenteditable#")) && !O62[Oh][3] && !O62[Oh][6] && i62){if (HTMLEditor.contentEditable(parent, true) && l62[0].toLowerCase()=="#contenteditable#"){oa= false; o62=0; html.clear(); html.write("<table>"); X.le=[]; for (var I62=0; I62<O62.length; I62++){O62[I62][3]= false; }}if (oa){X.le.push([null,null]); html.write("<tr><td nowrap><hr></td></tr>"); o62++; oa= false; }O62[Oh][3]= true; var o63=HTMLEditor.is_ie || O62[Oh][4]; if (O62[Oh][5] && typeof O62[Oh][5]=="function"){o63 &= O62[Oh][5](X,parent); }if (o63){var O61=parent; var ig=[]; while (O61.tagName.toUpperCase()!="BODY"){var par=O61.parentNode; var i61=0; for ( ; i61<par.childNodes.length; i61++)if (par.childNodes.item(i61)==O61)break; ig.push(i61); O61=O61.parentNode; }X.le.push([O62[Oh][1],ig,(O62[Oh][5] && typeof O62[Oh][5]=="string")]); }else {X.le.push([null,[]]); }if (O62[Oh][1]==null)html.write("<tr><td nowrap><hr></td></tr>"); else html.write("<tr><td nowrap>&nbsp;&nbsp;&nbsp;"+O62[Oh][2]+"</td></tr>"); o62++; }}}}parent=parent.parentNode; }html.write("</table>"); if (o62>0){if (HTMLEditor.is_ie){if (lq.type.toLowerCase()=="control"){try {X.l10=X.I1.body.createControlRange(); while (Iq.length>0){X.l10.add(Iq.item(0)); Iq.remove(0); try {Iq.collapse( false); }catch (t){}}lq.empty(); }catch (t){}}}var o1y=document.createElement("div"); o1y.innerHTML=html.toString(); var O63=o1y.firstChild; O63.className="CNTXT_menu"; for (var i=0; i<o62; i++){var l63=O63.rows.item(i); if (X.le[i][0])l63.className="CNTXT_item"; else l63.className="CNTXT_item_disable"; }function i63(){for (var i=0; i<o62; i++){var l63=O63.rows.item(i); var I63=l63.cells.item(0); I63.style.width="auto"; I63.style.verticalAlign="top"; I63.style.borderWidth="0px"; I63.style.margin="0px"; I63.style.padding="0px"; I63.style.fontWeight="normal"; if (X.le[i][0]){l63.className="CNTXT_item"; HTMLEditor.ow([l63],["mouseover"], function (t){var il; if (HTMLEditor.is_ie){t=window.event; il=t.srcElement; }else {il=t.target; }while (il && (!il.tagName || il.tagName.toUpperCase()!="TR"))il=il.parentNode; il.className="CNTXT_item_over"; return true; } ); HTMLEditor.ow([l63],["mouseout"], function (t){var il; if (HTMLEditor.is_ie){t=window.event; il=t.srcElement; }else {il=t.target; }while (il && (!il.tagName || il.tagName.toUpperCase()!="TR"))il=il.parentNode; il.className="CNTXT_item"; HTMLEditor._stopEvent(t); } ); HTMLEditor.ow([l63],["mousedown"], function (t){var il; if (HTMLEditor.is_ie){t=window.event; il=t.srcElement; }else {il=t.target; }while (il && (!il.tagName || il.tagName.toUpperCase()!="TR"))il=il.parentNode; HTMLEditor._stopEvent(t); setTimeout( function (){var O2e= false; try {if (X.l10){if (X.l10.item(0).tagName.toUpperCase()!="EMBED"){X.l10.select(); X.l10=null; }else {while (X.l10.length>0){while (X.l10.length>0)X.l10.remove(0); try {X.l10.collapse( false); }catch (t){}}X.l10=null; }}else if (HTMLEditor.is_ie)if (Iq!=null)try {Iq.select(); }catch (t){}var o64=X.le[il.rowIndex][0]; var O64=X.I1.body; var l64=X.I1.body; var i64=!(X.le[il.rowIndex][2]); var ig=X.le[il.rowIndex][1]; var Oe=X.oe.parentNode.removeChild(X.oe); while (ig.length>0)O64=O64.childNodes.item(ig.pop()); while (X.l61.length>0)l64=l64.childNodes.item(X.l61.pop()); delete Oe; if (HTMLEditor.is_Safari)if (X.i10){var I64=X.iq(); var I1b=X.i10; X.o18(I64,I1b); X.i10=null; }if (i64){X.I10(); O2e= true; }o64(X,O64,l64); X.oe=null; HTMLEditor.oe=null; X.le=null; }catch (w){try {if (O2e)X.o1f( false); if (HTMLEditor.is_ie){HTMLEditor.i1o(il,X); }}catch (o14){}}} ,012); } ); }else {l63.className="CNTXT_item_disable"; }}}if (HTMLEditor.is_ie && I60)setTimeout( function (){X.l10=null; Iq=null; X.I2e(null,i63);} ,0); else i63(); HTMLEditor.ow([I61],["contextmenu"], function (t){try {if (HTMLEditor.is_ie)Iq.select(); else X.o18(lq,Iq); }catch (o65){}HTMLEditor._stopEvent(t); return false; } ); I61.style.position="absolute"; I61.style.display=""; I61.appendChild(O63); I61.style.visibility="hidden"; var i57=X.A; var il=X._textArea.parentNode.parentNode; var I1y=0,_top=0; if (!X._InsideOboutWindow)while (il!=X.A){if (HTMLEditor.oz(il,"position").toLowerCase()=="absolute"){i57=X._textArea.parentNode.parentNode; var l2s=HTMLEditor.i2s((X.O1.document.compatMode=="BackCompat" && HTMLEditor.is_ie)?i57:il, false); I1y=l2s.I1y; _top=l2s._top; break; }il=il.parentNode; }i57.appendChild(I61); var y; var x; var o55; var zIndex=045070; il=X._iframe; var O65=HTMLEditor.i2s(X._iframe, false); while (il && typeof il!="undefined" && il!=i57){var l65=parseInt(HTMLEditor.oz(il,"z-index")); if (!isNaN(l65) && l65>zIndex)zIndex=l65+1; il=il.parentNode; }y=clientY+O65._top-_top; x=clientX+O65.I1y-I1y; var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var Height=O2s+l55(X.O1.document); var Width=o2s+_GetScrollLeft(X.O1.document); var i65=I61.offsetHeight; var I65=I61.offsetWidth; var o66=y; var O66=x; if (o66+i65>Height)y-=o66+i65-Height; if (O66+I65>Width)x-=O66+I65-Width; I61.style.top=y+"px"; I61.style.left=x+"px"; X.oe=I61; HTMLEditor.oe=I61; I61.style.visibility="visible"; I61.style.zIndex=zIndex; }else { delete I61; X.oe=null; HTMLEditor.oe=null; }} ,0); if (Ij!=null)HTMLEditor._stopEvent(Ij); return false; };HTMLEditor.prototype.O1g= function (){var lq; var Iq; var parent; var X=this ; lq=X.iq(); Iq=X.or(lq); parent=HTMLEditor.getSelParent(X); var o2s=X.I1.body.offsetWidth; var O2s=X.I1.body.offsetHeight; var O55=O2s/2; if (O55<=0)O55=024; var clientY=O55; var clientX=o2s/2; X.O10(null,clientX,clientY); };HTMLEditor.I21= function (il,lx,on){var o22; if (HTMLEditor.is_ie && il.tagName && (il.tagName.toUpperCase()=="EMBED" || il.tagName.toUpperCase()=="OBJECT")){var div=lx.createElement("DIV"); try {div.innerHTML=il.outerHTML; o22=div.firstChild; }catch (t){o22=il; } delete div; }else o22=il.cloneNode(on); return o22; };HTMLEditor.o34= function (l66){var value; var I37; try {I37=parseInt(l66)-1; }catch (t){return l66; }switch (I37){case 1:value="Left"; break; case 2:value="Right"; break; case 3:value="Texttop"; break; case 4:value="Absmiddle"; break; case 5:value="Baseline"; break; case 6:value="Absbottom"; break; case 7:value="Bottom"; break; case 8:value="Middle"; break; case 011:value="Top"; break; default:value=l66.replace(/"/g,"&quot;"); }return value; };HTMLEditor.Od= function (Ij){if (Ij.propertyName=="style.display")if (HTMLEditor.i66==null || typeof HTMLEditor.i66=="undefined"){HTMLEditor.i66= function (){for (var i=0; i<HTMLEditor.iv.length; i++){var parent=HTMLEditor.iv[i]; if (parent.lv!=null)if (parent.lv!=""+parent.style.display+""){if (typeof parent.ld=="function"){parent.ld( {srcElement:parent,propertyName: "style.display" } ); }}parent.lv=parent.style.display; }setTimeout( function (){HTMLEditor.i66=null; } ,0); } ; setTimeout(HTMLEditor.i66,024); }};if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari)try {CSSStyleDeclaration.prototype.__defineSetter__("display", function (value){HTMLEditor.Od( {srcElement:parent,propertyName: "style.display" } ); this.setProperty("display",value,"important"); } ); }catch (w){}HTMLEditor.iv=[]; HTMLEditor.Id= function (l1p){var ie=[]; for (var i=0; i<HTMLEditor.iv.length; i++){var I16=HTMLEditor.iv[i]; if (I16!=l1p){ie.push(I16); }}HTMLEditor.iv=ie; };if (!HTMLEditor.is_ie)try {HTMLElement.prototype.__defineGetter__("innerText", function (){var html=new o2a( true); HTMLEditor.I66(this,html); return html.toString(); } );}catch (w){}HTMLEditor.I66= function (O2f,html){var i36=O2f.childNodes; for (var i=0; i<i36.length; i++){var Ic=i36[i]; if (Ic.nodeType==3)html.write(Ic.nodeValue.replace("\n","")); if (Ic.nodeType==1){var display=HTMLEditor.oz(Ic,"display"); var visibility=HTMLEditor.oz(Ic,"visibility"); if (HTMLEditor.o67(Ic))html.write("\n"); if (HTMLEditor.O67(Ic))html.write("\t"); if (display!="none" && visibility!="hidden")HTMLEditor.I66(Ic,html); if (HTMLEditor.l67(Ic))html.write("\n"); }}};HTMLEditor.o67= function (il){var i67=" div table p pre ol ul blockquote form fieldset "; return (i67.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.l67= function (il){var i67=" br div table tr p pre ol ul li hr blockquote form fieldset legend "; return (i67.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.O67= function (il){var i67=" td li "; return (i67.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.canHaveChildren= function (Ic){if (HTMLEditor.is_ie)return Ic.canHaveChildren; else return !/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(Ic.tagName.toLowerCase()); };HTMLEditor.contentEditable= function (il,on){while (il!=null){try {var I67=null; if (il.contentEditable!=null && typeof il.contentEditable!="undefined" && !(HTMLEditor.is_Safari || HTMLEditor.O11)){if (!il.contentEditable || il.contentEditable=="false")I67= false; else I67= true; }else {var value=il.getAttribute("contenteditable"); if (typeof value=="boolean")I67=value; else if (typeof value=="string" && value.toLowerCase()=="false")I67= false; }if (I67!=null && typeof I67=="boolean"){if (!I67){return il; }}}catch (w){}if (typeof on!="undefined" && on)return null; if (il.tagName!=null && typeof il.tagName!="undefined" && (il.tagName.toUpperCase()=="BODY" || il.tagName.toUpperCase()=="HTML"))break; il=il.parentNode; }return null; };HTMLEditor.prototype.i47= function (){var X=this ; var I47=this.iq(); var Iq; try {Iq=this.or(I47); }catch (w){return false; }var il; if (!HTMLEditor.is_ie){il=HTMLEditor.contentEditable(Iq.startContainer); if (il==null)il=HTMLEditor.contentEditable(Iq.endContainer); }else il=HTMLEditor.contentEditable(HTMLEditor.getSelParent(X)); if (HTMLEditor.is_ie && il!=null){try {Iq.remove(il); }catch (t){}Iq=X.I1.body.createControlRange(); Iq.add(il); Iq.select(); }else if (!HTMLEditor.is_ie && il!=null){var lq=X.iq(); var i17; if (il.nextSibling!=null && il.nextSibling.nodeType==3){i17=il.nextSibling; }else {i17=X.I1.createTextNode(""); if (il.nextSibling!=null)il.parentNode.insertBefore(i17,il.nextSibling); else il.parentNode.appendChild(i17); }X.I17(lq); var Iq=X.or(lq); Iq.setStart(i17,0); Iq.setEnd(i17,0); X.o18(lq,Iq); }return true; };HTMLEditor.l4d= function (t){var o68=t.keyCode?t.keyCode:t.which; var O68=t.shiftKey?t.shiftKey: ((o68==020)? true : false); if (((o68>=0101 && o68<=0132) && !O68) || ((o68>=0141 && o68<=0172) && O68))return true; else return false; };HTMLEditor.l68= {i68: 1,I68: 2,o69: 3,O69: 4,l69: 5,i69: 6,I69: 7,o6a: 8,O6a: 011,l6a: 012,i6a: 013,I6a: 014 } ; HTMLEditor.o6b= function (O2f){return O2f.nodeType==HTMLEditor.l68.O6a?O2f:O2f.ownerDocument || O2f.document; } ; HTMLEditor.O6b= function (l6b){var lx; if (l6b.nodeType==HTMLEditor.l68.O6a){lx=l6b; }else {lx=HTMLEditor.o6b(l6b); }if (HTMLEditor.is_ie && lx.compatMode!="CSS1Compat"){return lx.body; }return lx.documentElement; };HTMLEditor.o5d= function (il){var lx=HTMLEditor.o6b(il); var i6b=HTMLEditor.o29 && lx.getBoxObjectFor && HTMLEditor.oz(il,"position")=="absolute" && (il.style.top=="" || il.style.left==""); var I6b=HTMLEditor.l2i && !HTMLEditor.i2n.i2n("1.8.0.11"); var l4p= {x: 0,y: 0 } ; var o6c=HTMLEditor.O6b(lx); if (il==o6c){return l4p; }var parent=null; var O6c; if (lx.getBoxObjectFor && !i6b && !I6b){O6c=lx.getBoxObjectFor(il); var l6c=lx.getBoxObjectFor(o6c); l4p.x=O6c.screenX-l6c.screenX; l4p.y=O6c.screenY-l6c.screenY; }else if (il.getBoundingClientRect){O6c=il.getBoundingClientRect(); var scrollTop=o6c.scrollTop; var scrollLeft=o6c.scrollLeft; l4p.x=O6c.left+scrollLeft; l4p.y=O6c.top+scrollTop; }else {var i6c=il; while (il && typeof il!="undefined" && il.tagName.toUpperCase()!="BODY" && il.tagName.toUpperCase()!="HTML"){l4p.x+=parseInt(il.offsetLeft); l4p.y+=parseInt(il.offsetTop); il=il.offsetParent; if (il && typeof il!="undefined"){if (il.clientLeft)l4p.x+=parseInt(il.clientLeft); if (il.clientTop)l4p.y+=parseInt(il.clientTop); }}il=i6c; if (HTMLEditor.O11 || (HTMLEditor.o2i && HTMLEditor.oz(il,"position")=="absolute")){l4p.y-=lx.body.offsetTop; }parent=il.offsetParent; while (parent && parent!=lx.body){l4p.x-=parent.scrollLeft; if (!HTMLEditor.O11 || parent.tagName!="TR"){l4p.y-=parent.scrollTop; }parent=parent.offsetParent; }}return l4p; } ; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.Application && typeof window.Sys.Application!="undefined") && (window.Sys.Application.notifyScriptLoaded && typeof window.Sys.Application.notifyScriptLoaded!="undefined"))Sys.Application.notifyScriptLoaded();
