function HTMLEditor(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.ClientCancel=null; this.O0=(document.getElementById("propertiesScript_"+this.W)!=null); this.onDrop=null; this._remainLf= false; this.onClientContentChanged=null; this.l0=null; 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.i0(); else this.I=I; if ((typeof A=="undefined") || A==null)this.A=document.body; else this.A=A; this.I0=window; this.o1=null; this.O1="html"; this.l1=null; this.i1=null; this._CSSfile=""; this._StartEnd= false; this.HTMLEditor=HTMLEditor; this._ContextMenu=[["#contenteditable#",HTMLEditor.I1,"Make editable", false , true ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.o2,"Flash properties", false , true ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.O2,"Copy Flash", false , false ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.l2,"Cut Flash", false , false ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.i2,"Delete Flash", false , true ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.I2,"Media properties", false , true ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.O2,"Copy Media", false , false ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.l2,"Cut Media", false , false ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.i2,"Delete Media", false , true ,"inner", false],["INPUT",HTMLEditor.o3,"INPUT properties", false , true ,"inner", false],["INPUT",HTMLEditor.i2,"Delete INPUT", false , true ,"inner", false],["PLACEHOLDER",HTMLEditor.O3,"PlaceHolder properties", false , true ,"inner", false],["PLACEHOLDER",HTMLEditor.i2,"Delete PlaceHolder", false , true ,"inner", false],["IMG",HTMLEditor.l3,"Image properties", false , true ,"inner", false],["IMG",HTMLEditor.O2,"Copy Image", false , false ,"inner", false],["IMG",HTMLEditor.l2,"Cut Image", false , false ,"inner", false],["IMG",HTMLEditor.i2,"Delete Image", false , true ,"inner", false],["DIV",HTMLEditor.i3,"DIV properties", false , true ,"inner", false],["DIV",HTMLEditor.i2,"Remove DIV", false , true ,"inner", false],["DIV",HTMLEditor.I3,"Remove DIV tag", false , true ,"inner", false],["A href",HTMLEditor.o4,"URL Link properties", false , true ,"inner", false],["A href",HTMLEditor.I3,"Remove URL Link", false , true ,"inner", false],["A name",HTMLEditor.O4,"Anchor properties", false , true ,"inner", false],["A name",HTMLEditor.i2,"Delete Anchor", false , true ,"inner", false],["TD",HTMLEditor.l4,"Cell properties", false , true ,"inner", false],["TABLE",HTMLEditor.i4,"Table properties", false , true ,"inner", false],["TABLE",HTMLEditor.O2,"Copy Table", false , false ,"inner", false],["TABLE",HTMLEditor.l2,"Cut Table", false , false ,"inner", false],["TABLE",HTMLEditor.i2,"Delete Table", false , true ,"inner", false],["FORM",HTMLEditor.I4,"Form properties", false , true ,"inner", false],["FORM",HTMLEditor.i2,"Remove FORM", false , true ,"inner", false],["FORM",HTMLEditor.I3,"Remove FORM tag", false , true ,"inner", false],["BODY",HTMLEditor.o5,"Cut", false , false ,HTMLEditor.O5, false],["BODY",HTMLEditor.l5,"Copy", false , false ,HTMLEditor.O5, false],["BODY",HTMLEditor.i5,"Paste", false , false ,HTMLEditor.I5, false],["BODY",HTMLEditor.o6,"Paste Plain Text", false , true ,HTMLEditor.I5, false],["BODY",HTMLEditor.O6,"Delete", false , true ,HTMLEditor.O5, false],["BODY",null,"", false , true ,"inner", false],["BODY",HTMLEditor.l6,"Select All", false , true ,"inner", false]]; try {var i6="?"+document.getElementsByName("OboutEditorVersion")[0].value; this.i6=i6; var I6=document.getElementsByName("FolderScript")[0].value; var o7=document.getElementsByName("FolderScriptSession")[0].value; this.O7=document.getElementsByName("FolderStyle")[0].value; this.l7=document.getElementsByName("FolderIcon")[0].value; this._FolderScript=I6; this.i7=o7; this.I7=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.o8=0; this.O8=null; if (HTMLEditor.l8(".HE_editPanel"))this.O8= {i8: this._textArea.offsetWidth,I8: this._textArea.offsetHeight } ; this.o1=null; }catch (t){alert("Init : "+t.message); }}else { this.scriptVersion="notsupported"; }} ; HTMLEditor.o9=[]; HTMLEditor.O9= function (X){ this.X=X; this.id=X.W; this.O=X.O; this.l9= false; this.i9= true; this.I9=null; } ; HTMLEditor.oa= function (O){for (var i=0; i<HTMLEditor.o9.length; i++){if (O==HTMLEditor.o9[i].O){return HTMLEditor.o9[i].X; }}return null; };HTMLEditor.Oa= function (clientID){for (var i=0; i<HTMLEditor.o9.length; i++){if (clientID==HTMLEditor.o9[i].id){return HTMLEditor.o9[i].X; }}return null; };function oboutGetEditor(la){return HTMLEditor.oa(la); }function oboutGetEditorByClientId(la){return HTMLEditor.Oa(la); }HTMLEditor.ia= function (id){for (var i=0; i<HTMLEditor.o9.length; i++){if (id==HTMLEditor.o9[i].id){return HTMLEditor.o9[i].X; }}return null; };HTMLEditor.R= function (X){var id=X.W; var index=-1; for (var i=0; i<HTMLEditor.o9.length; i++){if (id==HTMLEditor.o9[i].id){if (HTMLEditor.S()){if (typeof X.Ia=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.Ia); X.Ia=null; }}index=i; break; }}if (index>=0)HTMLEditor.o9[index]=new HTMLEditor.O9(X); else HTMLEditor.o9.push(new HTMLEditor.O9(X)); if (HTMLEditor.S()){X.Ia= function (ob,Ob){try {if (X._AjaxWait){X.UnlinkEditorOject(); X.lb(); }}catch (t){}} ; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(X.Ia); }};HTMLEditor.ib= function (X){var id=X.W; var index= false; var Ib=[]; for (var i=0; i<HTMLEditor.o9.length; i++){if (id!=HTMLEditor.o9[i].id){Ib.push(HTMLEditor.o9[i]); }}HTMLEditor.o9=Ib; };HTMLEditor.prototype.oc= function (){HTMLEditor.R(this ); };HTMLEditor.prototype.UnlinkEditorOject= function (){var X=this ; if (typeof X.g=="function"){if (document.getElementById(this.mainDivId)==null)return; var Oc=document.getElementById(this.mainDivId).parentNode; while (Oc && Oc.tagName && Oc.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.lc(Oc,"propertychange",HTMLEditor.ic); Oc.Ic=null; HTMLEditor.od(Oc); }else {Oc.Ic=null; HTMLEditor.od(Oc); }Oc=Oc.parentNode; }X.J= false; }try {X.clearPopups( true); }catch (w){}try {if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=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 oe=document.getElementById(name); if (oe==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"){oe=item; break; }}}if (oe!=null){var text=oe.text; if (typeof text=="undefined" || text=="")text=oe.innerHTML; var Oe="try{null}catch(ex){}"; var le=text.indexOf(Oe); var ie=text.lastIndexOf(Oe); if (le>=0 && ie>=0){text=text.substring(le+Oe.length,ie); oe=new Object(); oe.text=text; }}return oe; };HTMLEditor.prototype.Ie= function (name,of){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 of; };HTMLEditor.prototype.Of= function (name,of){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 of; };HTMLEditor.prototype.If= function (name,of){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 of; };HTMLEditor.prototype._context_menu_loc= function (og){for (var i=0; i<this._ContextMenu.length; i++){var Og=this._ContextMenu[i]; var lg=Og[2].toLowerCase().replace(/\s/g,"-"); for (var ig=0; ig<og.length; ig++){var Ig=og[ig]; var oh=Ig[0].toLowerCase(); if (lg==oh){Og[2]=Ig[1]; break; }}}};HTMLEditor.prototype.RemoveContextMenuItem= function (Oh){var lh=Oh.toLowerCase(); for (var i=0; i<this._ContextMenu.length; i++){var Og=this._ContextMenu[i]; var lg=Og[2].toLowerCase().replace(/\s/g,"_"); if (lg==lh){Og[6]= true; break; }}};HTMLEditor._CUROBJ_=null; HTMLEditor.restoreOldTags=null; HTMLEditor.Od=null; HTMLEditor.o8=0; HTMLEditor.prototype.ih= function (Ih){if (this.k==0 && typeof this.onLoadingStart=="function")this.onLoadingStart((typeof Ih=="string")?Ih: "popup"); this.k++; };HTMLEditor.prototype.oi= function (Ih){if (this.k>0){ this.k--; if (this.k==0 && typeof this.onLoadingEnd=="function")this.onLoadingEnd((typeof Ih=="string")?Ih: "popup"); }};HTMLEditor.prototype.Oi= function (name){var og=[]; var X=this ; var ii; for (var i=1; i<arguments.length; i++)og.push(arguments[i]); function Ii(){X[name].apply(X,og); }function oj(Oj){try {Ii(); }catch (t){alert(t.message+"- Script loading failed..."); }if (!HTMLEditor.lj && !(/MSIE (8)/.test(navigator.userAgent)))setTimeout( function (){try {if (HTMLEditor.ij)HTMLEditor.lc(ii,"load",oj); document.body.removeChild(ii); }catch (t){alert("Late loaded function ("+name+"): "+t.message); }} ,5); HTMLEditor.o8--; if (HTMLEditor.o8==0)HTMLEditor._CUROBJ_=null; X.oi("script"); }try {Ii(); }catch (t){if (typeof X[name]=="string"){function Ij(){if (HTMLEditor._CUROBJ_!=null)setTimeout(Ij,0144); HTMLEditor._CUROBJ_=X; HTMLEditor.o8=0; var la=X[name]; X[name]=null; X.ih("script"); if (HTMLEditor.is_Safari && !HTMLEditor.ij){var ok=document.getElementById(X._hiddenContent+"_ifr_"+name); if (ok!=null){HTMLEditor.lc(ok,"load",oj); document.body.removeChild(ok); }ii=document.createElement("IFRAME"); ii.style.width="0px"; ii.style.height="0px"; ii.id=X._hiddenContent+"_ifr_"+name; HTMLEditor.Ok(ii,"load",oj); document.body.appendChild(ii); ok=document.getElementById(X._hiddenContent+"_ifr_"+name); ok.src=la; }else {ii=document.createElement("IFRAME"); ii.width="0"; ii.height="0"; ii.style.display="none"; if (HTMLEditor.is_Safari){ii.name=X._hiddenContent+"_ifr_"+name; }HTMLEditor.Ok(ii,"load",oj); ii.src=la; document.body.appendChild(ii); }HTMLEditor.o8++; }Ij(); }}};HTMLEditor.prototype.lk= function (Oj){var ik=Oj.target; var Ik=ik.tagName.toUpperCase(); if (!this.mainDivVisible)return true; if (Ik=="INPUT" || Ik=="TEXTAREA")return true; if (Oj.keyCode==8){HTMLEditor._stopEvent(Oj); return false; }var X=this ; setTimeout( function (){if (X.l1.body.offsetWidth==0 && X.mode()=="html" && X.mainDivVisible && X._iframe){X._textArea.value=X.getHTML(); var ll=X._textArea.parentNode.removeChild(X.o1); X.o1=null; delete ll; X.activate(); }} ,024); };HTMLEditor.il="OboutMSIEparagraph"; HTMLEditor.prototype.Il= function (om){if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (this.j>0){try { this.Om(); }catch (t){} ; return true; }else this.j=1; if (HTMLEditor.S()){if (!this.AjaxCurrentContent && !this.o0){if (this._hiddenContent){try {var Im="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(Im) && document.getElementsByName(Im).length && document.getElementsByName(Im).length>0){document.getElementsByName(Im)[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 on=null;if (this._hiddenContent){try {var Im="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(Im) && document.getElementsByName(Im).length && document.getElementsByName(Im).length>0){document.getElementsByName(Im)[0].value=this.ContentChanged()?"1": ""; }}catch (t){} this.UnlinkEditorOject(); var On=this._formSubmit(); var In=On[0]; on=On[1]; if (this._textArea.form){document.getElementsByName(this._hiddenContent)[0].value=In; }}if (this._hiddenCSS){document.getElementsByName(this._hiddenCSS)[0].value=this._CSSfile; }X.setOriginal(on); }else {if (this._hiddenContent){try {var Im="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(Im) && document.getElementsByName(Im).length && document.getElementsByName(Im).length>0){document.getElementsByName(Im)[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.oo && this.mainDivVisible)return false; try { this.Om(); }catch (t){} ; if (!this._textArea.form){try { this.Om(); }catch (t){} ; return true; }if (typeof om!="undefined" && om== true){ this._textArea.form.submit(); }return true; };HTMLEditor.prototype.__cancel= function (){var X=this ; var oe= true; if (typeof this.ClientCancel=="function"){oe= false; var Oo=this.ClientCancel; try {oe=Oo(this ); }catch (t){alert("ClientCancel function call error: "+t.message); }}if (oe)if (this.content_canceled_event){X.j=0; var Io= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Io=Page_ClientValidate(X._validationGroup); }else {Io=Page_ClientValidate(); }}}catch (w){}}if (Io){X.h= true; X.openWait(); var op= 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 Op=window.Sys.WebForms.PageRequestManager.getInstance(); if (Op._updatePanelIDs && Op._updatePanelIDs.length && Op._updatePanelIDs.length>0)op= true; }catch (w){}}if (op){setTimeout( function (){var Op=window.Sys.WebForms.PageRequestManager.getInstance(); var form=Op._form; Op._postBackSettings=Op._createPostBackSettings( true ,null,null); Op._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.o0= true; Op._onFormSubmit(); Function._validateParams=save; try {X.Om(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Il( true); } ,0); }}}};HTMLEditor.prototype.__submit= function (om){ this.lp= true; if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X,om))return false; }X.j=0; if (typeof om!="undefined"){var Io= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Io=Page_ClientValidate(X._validationGroup); }else {Io=Page_ClientValidate(); }}}catch (w){}}if (Io){X.H= true; X.openWait(); var op= 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 Op=window.Sys.WebForms.PageRequestManager.getInstance(); if (Op._updatePanelIDs && Op._updatePanelIDs.length && Op._updatePanelIDs.length>0)op= true; }catch (w){}}if (op){setTimeout( function (){var Op=window.Sys.WebForms.PageRequestManager.getInstance(); var form=Op._form; Op._postBackSettings=Op._createPostBackSettings( true ,null,null); Op._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.o0= true; Op._onFormSubmit(); Function._validateParams=save; try {X.Om(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Il(om); } ,0); }}}else {X.Il(om); }return true; };HTMLEditor.prototype.submit= function (ip){var X=this ; var Io= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Io=Page_ClientValidate(X._validationGroup); }else {Io=Page_ClientValidate(); }}}catch (w){}}if (Io){X.openWait(); setTimeout( function (){X.Il(typeof ip!="function"); if (typeof ip=="function")ip(); } ,0); }};HTMLEditor.getSelParent= function (X){var Ip=X.oq(); var Oq=X.lq(Ip); var parent=null; if (HTMLEditor.is_ie){if (Ip.type.toLowerCase()=="control")parent=Oq.item(0); else parent=X.iq(Oq); }else {parent=X.iq(Oq); if (parent.nodeType!=3 && Oq.startContainer==Oq.endContainer){var p=parent; parent=parent.childNodes.item(Oq.startOffset); if (parent==null)parent=p; }}return parent; };HTMLEditor.Iq= function (ik){var or=" legend fieldset "; return (or.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.prototype.Or= function (){var ik=HTMLEditor.getSelParent(this ); while (ik && ik.tagName && ik.tagName.toUpperCase()!="BODY"){if (HTMLEditor.Iq(ik)){return true; }ik=ik.parentNode; }return false; };HTMLEditor.prototype.Iq= function (){try {var Ip=this.oq(); if (HTMLEditor.is_ie){if (Ip.type.toLowerCase()=="control")return true; else return false; }else {var Oq=this.lq(Ip); var parent=this.iq(Oq); if (parent.nodeType!=3 && Oq.startContainer==Oq.endContainer){if (!parent.tagName)return false; if (Oq.startContainer.childNodes.item(Oq.startOffset)==null)return false; if (Oq.startOffset==Oq.endOffset && Oq.startContainer.childNodes.item(Oq.startOffset).tagName && Oq.startContainer.childNodes.item(Oq.startOffset).tagName.toUpperCase()=="BR")return false; if (parent.tagName.toUpperCase()=="BODY" && Oq.startOffset==0 && Oq.endOffset>0 && Oq.endOffset==parent.childNodes.length)return false; if (Oq.startOffset==Oq.endOffset && Oq.startContainer.childNodes.item(Oq.startOffset).nodeType==3){return false; }return true; }else return false; }}catch (t){return true; }};HTMLEditor.prototype.lr=0; HTMLEditor.prototype.ir= false; HTMLEditor.prototype.oo= false; HTMLEditor.prototype.Ir= false; HTMLEditor.prototype.os= false; HTMLEditor.prototype.Os= false; HTMLEditor.prototype.isActivated= false; HTMLEditor.prototype.ls= false; HTMLEditor.is="obout-no-contextmenu"; HTMLEditor.prototype.noContextMenuAttributeName= function (){return HTMLEditor.is; };HTMLEditor.Is="obout-attached-id"; HTMLEditor.prototype.attachedIdAttributeName= function (){return HTMLEditor.Is; };HTMLEditor.prototype.ot= function (ik){var Ot=null; if (ik.getAttribute(HTMLEditor.Is) && ik.getAttribute(HTMLEditor.Is).length>0){var par=ik.parentNode; while (par && par.tagName.toUpperCase()!="BODY"){if (par.tagName.toUpperCase()=="TABLE"){Ot=par; break; }par=par.parentNode; }}return Ot; };HTMLEditor.prototype.lt= function (){if (document.getElementById(this.mainDivId)==null)return false; var Oc=document.getElementById(this.mainDivId).parentNode; var it= true; while (Oc){if (Oc.style && Oc.style.display=="none"){it= false; break; }Oc=Oc.parentNode; }return it; };HTMLEditor.prototype.v=null; HTMLEditor.prototype.setTimeout= function (Oo,It){if (this.v!=null){try {var X=this ; var id=window.setTimeout( function (){Oo( true);} ,It); X.v.push([Oo,id]); }catch (t){alert("setTimeout: "+t.message);}}else {window.setTimeout(Oo,It); }};HTMLEditor.prototype.ou= 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.ou.caller){ this.v[i][0]="none"; break; }}if (!this.lt() || !this.mainDivVisible){try { this.Om(); }catch (t){} ; this.O1="undef"; return true; }return false; };HTMLEditor.prototype.activate= function (Ou){if (!this.os){if (typeof EditorBeforeActivate=="function"){ this.os= true; try {EditorBeforeActivate(this ); }catch (w){setTimeout( function (){alert("EditorBeforeActivate exception: "+w.message); } ,0); }}}var X=this ; var Oc=document.getElementById(this.mainDivId).parentNode; var it= true; X.v=null; this.M=null; if (this.lu && 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.lc(event.srcElement,"propertychange",HTMLEditor.ic); event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }else {event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }return true; }var Oc=X._textArea; while (Oc!=null){if (Oc.nodeType!=1)break; if (Oc.tagName.toUpperCase()=="BODY")break; Oc=Oc.parentNode; }if (Oc==null || Oc.nodeType!=1){if (HTMLEditor.is_ie){HTMLEditor.lc(event.srcElement,"propertychange",HTMLEditor.ic); event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }else {event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }X.J= false; return true; }if (X._textArea.form==null){setTimeout( function (){eval(X.W+"_start()"); } ,0); if (HTMLEditor.is_ie){HTMLEditor.lc(event.srcElement,"propertychange",HTMLEditor.ic); event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }else {event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }X.J= false; try {var Im="content_changed_"+X.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(Im) && document.getElementsByName(Im).length && document.getElementsByName(Im).length>0){document.getElementsByName(Im)[0].value=X.ContentChanged()?"1": ""; }}catch (t){}var In=X._formSubmit()[0]; document.getElementsByName(X._hiddenContent)[0].value=In; return true; }if (event.propertyName=="style.display"){X.iu=null; if (event.srcElement.style.display=="none"){if (X.mainDivVisible){X.iu= false; }}else {if (X.lt() && !X.mainDivVisible){X.iu= true; }}if (X._isCallBackPanel){try {X.clearPopups( true); }catch (w){}try {if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; }}catch (w){}if (HTMLEditor.is_ie){HTMLEditor.lc(event.srcElement,"propertychange",HTMLEditor.ic); event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }else {event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }X.J= false; }else setTimeout( function (){if (X.iu!=null){var Oc=X._textArea; while (Oc!=null){if (Oc.nodeType!=1)break; if (Oc.tagName.toUpperCase()=="BODY")break; Oc=Oc.parentNode; }if (Oc.nodeType==1)try {X.setVisibility(X.iu); }catch (w){}}X.iu=null; } ,024); }} ; X.iu=null; while (Oc && Oc.tagName && Oc.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.Ok(Oc,"propertychange",HTMLEditor.ic); }X.Ic=Oc.Ic; Oc.Ic= function (Oj){if (X.Ic!=null && typeof X.Ic=="function")X.Ic(Oj); X.g(Oj); };Oc.Iu=Oc.style.display; HTMLEditor.ov.push(Oc); Oc=Oc.parentNode; }}else {}}HTMLEditor._CUROBJ_=null; if (this.lu && !HTMLEditor.S()){ this.Om(); this._textArea.style.display="none"; this.lu= false; if (HTMLEditor.is_ie){if (this.O1=="html"){ this._iframe.style.visibility="hidden"; this._iframe.style.visibility="visible"; this.focusEditor(); }else if (this.O1=="preview"){ this.Ov.style.visibility="hidden"; this.Ov.style.visibility="visible"; }}if (!X.Os){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.lv([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var oe= false; try {oe=iv(HTMLEditor.is_ie?X.I0.event:event); }catch (t){}return oe; } ); X.Os= true; }}return; } this.oo= false; this.ir= true; this.isActivated= false; this._wasFocused= false; if (!X.Os){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.lv([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var oe= false; try {oe=iv(HTMLEditor.is_ie?X.I0.event:event); }catch (t){}return oe; } ); X.Os= true; }}if (!X.Ir){if (!HTMLEditor.is_ie){ this.Iv=this.updateToolbar; this.updateToolbar= function (){try { this.Iv(); }catch (t){return; }} ; }}if (X.lt() && !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.O8= {i8: this._textArea.offsetWidth,I8: this._textArea.offsetHeight } ; }if (!X.lt() || !this.mainDivVisible){ this.Om(); this.O1="text"; this.mainDivVisible= false; if (!this.Ir){ this.Ir= 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.ow(window,document.getElementById(this.mainDivId)); function iv(Oj){if (Oj){if (X.isPopup()){HTMLEditor._stopEvent(Oj); return false; }}return true; }X.v=[]; try { this.Ow(); }catch (t){alert("activate: "+t.message); }function lw(iw){if (X.ou(iw))return; var Iw; try {Iw=X._iframe.contentWindow.document; }catch (t){X.setTimeout(lw,012); return false; }try {if (!HTMLEditor.is_ie)X.l1.queryCommandValue("forecolor"); if (!Iw || !Iw.body || !X.l1 || !X.l1.body){X.setTimeout(lw,012); return false; }}catch (t){if (!HTMLEditor.is_ie){X.setTimeout(lw,012); }return false; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){if (X.ShowQuickFormatDivId!=null){X.ox=document.getElementById(X.ShowQuickFormatDivId).offsetWidth; X.Ox=document.getElementById(X.ShowQuickFormatDivId).offsetHeight; }else {X.ox=0; X.Ox=0; }X.lx=document.getElementById(X.panelDivId).offsetWidth; }if (!HTMLEditor.is_ie){function ix(ik){for (var i=0; i<ik.childNodes.length; i++){if (ik.childNodes.item(i).nodeType==1){if (ik.childNodes.item(i).tagName.toUpperCase()=="SCRIPT"){ik.childNodes.item(i).innerHTML=ik.childNodes.item(i).innerHTML.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }else ix(ik.childNodes.item(i)); }}}ix(X.l1.body); }if (HTMLEditor.is_ie)HTMLEditor.Ix(X.l1.body,X.l1); HTMLEditor.oy(X,X.l1,!X.showAnchors); HTMLEditor.Oy(X,X.l1,!X.showPlaceHolders); if (X.rtlSet && !X.rtlState())X.rtl(); var body=Iw.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 && ly(body.firstChild,"position")!="absolute"){body.style.cssText=body.firstChild.style.cssText; var iy=body.firstChild; while (iy.firstChild)body.insertBefore(iy.firstChild,iy); body.removeChild(iy); }if (X.Iy){body.style.cssText=X.Iy; X.Iy=null; }function oz(Oj){if (Oj && Oj.type=="contextmenu"){if (!X.isPopup() && HTMLEditor.Od==null){if (HTMLEditor.is_ie){try {var Oz=X.l1.selection; var lz=X.lq(Oz); }catch (t){HTMLEditor._stopEvent(Oj); return false; }}return X.iz(Oj,Oj.clientX,Oj.clientY); }else {HTMLEditor._stopEvent(Oj); return false; }}}HTMLEditor.lv([body,X._iframe.contentWindow],["contextmenu"], function (event){var oe= false; if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; if (X.Iz){X.Iz.select(); X.Iz=null; }}if (HTMLEditor.is_Safari){var Ip=X.oq(); var Oq=X.lq(Ip); X.o10=Oq.cloneRange(); }try {oe=oz(HTMLEditor.is_ie?X._iframe.contentWindow.event:event); }catch (t){}return oe; } ); HTMLEditor.Ok(body,HTMLEditor.is_ie?"drop": "dragdrop", function (event){X.O10(); if (typeof X.onDrop=="function")setTimeout( function (){X.onDrop(X); } ,0); return true; } ); X.l10(); if (HTMLEditor.i10)X.f= true; if (!HTMLEditor.is_Safari)X.setTimeout( function (iw){if (X.ou(iw))return; if (!HTMLEditor.is_ie){if (X.I10!=null){X.selectAll(); X.o11(X.I10); X.I10=null; }}if (HTMLEditor.is_ie && !X._autoFocus){var O11=HTMLEditor.l11(X.l1.body.innerHTML); var i11=HTMLEditor.I11(X.l1.body.innerHTML); X.l1.body.innerHTML=X.l1.body.innerHTML; HTMLEditor.o12(X.l1.body,O11); HTMLEditor.O12(X.l1.body,i11); if (document.compatMode=="BackCompat")Iw.body.contentEditable= true; X._iframe.style.visibility="visible"; X.oq().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.i10){var anchor=X.l1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.l1.body.insertBefore(anchor,X.l1.body.firstChild); anchor.focus(); anchor.blur(); X.focusEditor(); X.l1.body.removeChild(anchor); }}}if (!HTMLEditor.is_ie)X.l1.body.innerHTML=HTMLEditor.l12(HTMLEditor.getHTML(X.l1.body, false , true)); if (!HTMLEditor.is_Safari || X.lr>0)X.isActivated= true; if ((!X._StartEnd || !HTMLEditor.is_ie) && X._autoFocus){if (X.mode()=="html" && X.mainDivVisible && X._iframe && typeof Ou!="function"){if (HTMLEditor.is_ie){X.setTimeout( function (iw){if (X.ou(iw))return; X.focusEditor(); var Ip=X.oq(); var Oq=X.lq(Ip); if (Ip.type.toLowerCase()!="control"){Oq.moveEnd("textedit",1); Oq.collapse( false); }Oq.select(); X.updateToolbar(); X.focusEditor(); } ,0144); }else {X.i12( false); }}}HTMLEditor._CUROBJ_=null; if (X.scrollIntoView && !HTMLEditor.is_Safari)document.getElementById(X.mainDivId).scrollIntoView( false); if (X._autoFocus)X.focusEditor(); HTMLEditor.I12(X.l1.body); if (typeof Ou=="function")Ou(); X.oo= true; } ,HTMLEditor.is_ie?012: 0144); if (HTMLEditor.is_Safari){HTMLEditor.I12(X.l1.body); X.isActivated= true; HTMLEditor._CUROBJ_=null; if (X.o13) delete X.o13; X.o13=new Object(); X.setTimeout( function (iw){if (X.ou(iw))return; if (X.I10!=null){X.selectAll(); X.o11(X.I10); X.I10=null; }if (!X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe){X.i12( false); }}X.oo= true; } ,0144); }X.lr++; X.Om(); if (!X.Ir){if (typeof EditorOnLoad=="function")X.setTimeout( function (iw){if (X.ou(iw))return; EditorOnLoad(X); } ,0310); }if (!X.ls){if (X._autoFocus){if (X._ModeHTML){if (X.l){X.l= false; X.O13=HTMLEditor.l12(HTMLEditor.getHTML(X.l1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l13(); }}X.setTimeout( function (iw){if (X.ou(iw))return; X.chMode("text"); } ,0764); }}}if (!X._autoFocus){X.i13=X.ls; X.setTimeout( function (iw){if (X.ou(iw))return; if (!X.i13 && X._ModeHTML){if (X.l){X.l= false; X.O13=HTMLEditor.l12(HTMLEditor.getHTML(X.l1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l13(); }}X.setTimeout( function (iw){if (X.ou(iw))return; X.chMode("text"); } ,0764); }else {HTMLEditor.I13(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I13(X.ShowQuickFormatDivId, true); }} ,HTMLEditor.is_ie?0144: 012); }X.Ir= true; X.ls= true; if (X.l){X.setTimeout( function (iw){if (X.ou(iw))return; X.l= false; X.O13=HTMLEditor.l12(HTMLEditor.getHTML(X.l1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l13(); }} ,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.Ov.style.height=height+"px"; if (HTMLEditor.is_ie)height-=2; X.o14.style.height=height+"px"; X.O8.I8=X._textArea.offsetHeight;X._textArea.style.display="none"; X._setRealSize=null; }}X.setTimeout(lw,012); };HTMLEditor.prototype.ContentChanged= function (om){var O14=this.mode(); var l14=(typeof om=="undefined")? true :om;if (O14=="preview")O14=this.i14; try {if (this.o1 && O14=="html"){if (this.l)return false; if (this.O13){if (this.mode()=="preview"){return (!(this.O13==HTMLEditor.l12(this.I14))) && l14; }else {return !(this.O13==HTMLEditor.l12(HTMLEditor.getHTML(this.l1.body, false , true))); }}else return false; }else {if (this.o14 && this.o15!=null){return (!(HTMLEditor.l12(this.o15)==HTMLEditor.l12(this.o14.value)) || (this.O15 && l14)); }else {return false; }}}catch (t){return false; }};HTMLEditor.prototype.l13= function (){var X=this ; if (this.onClientContentChanged==null || typeof this.onClientContentChanged!="function")return; try {if (this.o1 && this.mode()=="html"){var l15=HTMLEditor.l12(this.l1.body.innerHTML); if (this.l0!=null){if (this.l0!=l15){var i15= {previous:{} ,current:{}} ; var div=document.createElement("div"); div.innerHTML=this.l0; i15.previous.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; i15.previous.htmlTextLength=HTMLEditor.l12(div.innerHTML).length; this.l0=l15; div.innerHTML=this.l0; i15.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; i15.current.htmlTextLength=HTMLEditor.l12(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(i15); }catch (t){}} ,0); delete div; }}else {var i15= {previous:{} ,current:{}} ; var div=document.createElement("div"); i15.previous.plainTextLength=0; i15.previous.htmlTextLength=0; this.l0=l15; div.innerHTML=this.l0; i15.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; i15.current.htmlTextLength=HTMLEditor.l12(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(i15); }catch (t){}} ,0); delete div; }}}catch (t){}};HTMLEditor.prototype.i12= function (I15){var X=this ; X.setTimeout( function (iw){if (X.ou(iw))return; var index=0; var o16=X.l1.body; var anchor=null; if (!X._StartEnd || I15){if (o16.lastChild && o16.lastChild.nodeType==3){o16=o16.lastChild; index=(""+o16.data+"").length; }else if (o16.lastChild && o16.lastChild.nodeType==1 && o16.lastChild.tagName.toUpperCase()=="BR"){index=HTMLEditor.O16(o16.lastChild); var l16=X.l1.createTextNode(""); o16.insertBefore(l16,o16.lastChild); o16=l16; index=0; }else {var l16=X.l1.createTextNode(""); o16.appendChild(l16); o16=l16; index=0; }}if (HTMLEditor.is_Safari){X.o13.type="Caret"; X.o13.focusNode=o16; X.o13.focusOffset=index; }else {var Ip=X.oq(); X.i16(Ip); var Oq=X.lq(); Oq.setStart(o16,index); Oq.setEnd(o16,index); X.I16(Ip,Oq); }if (anchor!=null){X.l1.body.removeChild(anchor); }X.updateToolbar(); X.focusEditor(); if (!X._StartEnd || I15)if (!HTMLEditor.is_Safari && !HTMLEditor.i10){try {var anchor=X.l1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.l1.body.appendChild(anchor); anchor.focus(); anchor.blur(); X.focusEditor(); X.l1.body.removeChild(anchor); }catch (t){}}} ,012); };HTMLEditor.prototype.o17= function (){} ; HTMLEditor.prototype.popupClosed= function (){} ; HTMLEditor.prototype.updateToolbar= function (){} ; HTMLEditor.prototype.O17= function (){var X=this ; var ok=HTMLEditor.getHTML(X.l1.body, false , true); var oe=[HTMLEditor.l12(ok),ok]; return oe; };HTMLEditor.prototype.setMode= function (mode,l17){var X=this ; switch (mode){case "preview":if (!this._autoFocus && !this._wasFocused){HTMLEditor.i17(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i17(this.ShowQuickFormatDivId); }X.openWait(); X._waitSetMode= true; setTimeout( function (){var I17=""; X.i14=X.O1; if (X.O1=="html"){X.O10(); var o18=X.O17(); X.I14=o18[0]; I17=X.getHTML( false ,o18[1]); X.O18=I17; X.Iy=X.l1.body.style.cssText; try {if (HTMLEditor.is_ie)X.oq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var ll=X.o1.removeChild(X._iframe); X._iframe=null; delete ll; }catch (t){}if (!HTMLEditor.is_Safari){X.Ox=X.O8.I8; X.l18=X.O8.i18; }if (X.ShowQuickFormatDivId!=null){HTMLEditor.I13(X.ShowQuickFormatDivId); }}else {if (X.o14){I17=X.o14.value; X.o14.style.display="none"; if (HTMLEditor.is_ie)X.o14.style.visibility="hidden"; if (!HTMLEditor.is_Safari){X.O8.I8=X.Ox; X.O8.i18=X.l18; X.Ov.style.height=X.O8.I8; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){}}}X.Ov.style.display=""; X.O1=mode; setTimeout( function (){X.I18(I17); if (typeof l17=="function")try {l17(); }catch (t){} ; X._waitSetMode= false; try {X.Ov.focus(); }catch (t){}} ,0); } ,0); break; case "text":if (X.O1=="preview"){var o19; X.Ov.style.display="none"; X.Ov.src=HTMLEditor.is_ie?"javascript:false;": ""; if (HTMLEditor.is_ie)X.Ov.style.visibility="hidden"; X.o14.style.display=""; if (X.i14=="html"){o19=X.O18; X.o15=o19; }else {o19=X.o14.value; }X._waitSetMode= true; X.o14.value=""; X.O1=mode; setTimeout( function (){setTimeout( function (){X.o14.value=o19; X.focusEditor(); X._waitSetMode= false; } ,0144); if (typeof l17=="function")try {l17(); }catch (t){} ; if (!HTMLEditor.is_Safari){X.O8.I8=X.Ox; X.O8.i18=X.l18; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.o14.style.height=parseInt(X.O8.I8)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.o14.style.width="100%"; setTimeout( function (){X.o14.style.width=X.o14.offsetWidth+"px"; } ,0); }}if (HTMLEditor.is_ie)X.o14.style.visibility="visible"; } ,0); return; }else X.Iy=X.l1.body.style.cssText; if (!this._autoFocus && !this._wasFocused){HTMLEditor.i17(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i17(this.ShowQuickFormatDivId); }try {X.O10(); }catch (t){} ; X.openWait(); X._waitSetMode= true; var O19=HTMLEditor.il+"_right"; var l19=HTMLEditor.il+"_left"; var i19=this.l1.createElement("SPAN"); i19.id=l19; var I19=this.l1.createElement("SPAN"); I19.id=O19; try {if (!this.Iq()){var o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(this.O1a()): ""; var Ip=this.oq(); var Oq=this.lq(Ip); var l1a=(HTMLEditor.is_ie && Oq.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0); if (l1a){var i1a=this.I1a(); i1a[0].parentNode.insertBefore(i19,i1a[0]); if (i1a[i1a.length-1].nextSibling!=null)i1a[i1a.length-1].parentNode.insertBefore(I19,i1a[i1a.length-1].nextSibling); else i1a[i1a.length-1].parentNode.appendChild(I19); }else {var o1b=this.l1.createElement("DIV"); o1b.appendChild(i19); o1b.appendChild(I19); this.o11(o1b.innerHTML); delete o1b; }}else {var O1b=HTMLEditor.getSelParent(this ); O1b.parentNode.insertBefore(i19,O1b); if (O1b.nextSibling!=null)O1b.parentNode.insertBefore(I19,O1b.nextSibling); else O1b.parentNode.appendChild(I19); }}catch (w){var l1b=this.l1.getElementById(l19); if (l1b!=null)l1b.parentNode.removeChild(l1b); l1b=this.l1.getElementById(O19); if (l1b!=null)l1b.parentNode.removeChild(l1b); }setTimeout( function (){var o18=X.O17(); X.I14=o18[0].replace(/<span id="OboutMSIEparagraph_left"><\/span>/,"").replace(/<span id="OboutMSIEparagraph_right"><\/span>/,""); var I17=X.getHTML( false ,o18[1]); var i1b=0; var I1b=0; var o1c; o1c=I17.indexOf("\x3cspan id=\"OboutMSIEparagraph_left\">\x3c/span>"); if (o1c>=0)i1b=o1c; I17=I17.replace(/<span id="OboutMSIEparagraph_left"><\/span>/,""); o1c=I17.indexOf("\x3cspan id=\"OboutMSIEparagraph_right\">\x3c/span>"); if (o1c>=0)I1b=o1c; I17=I17.replace(/<span id="OboutMSIEparagraph_right"><\/span>/,""); if (HTMLEditor.i10){var O1c=0; for (var i=0; i<i1b; i++)if (I17[i]=="\n")O1c++; i1b+=O1c; O1c=0; for (var i=0; i<I1b; i++)if (I17[i]=="\n")O1c++; I1b+=O1c; }X.Ov.style.display="none"; if (HTMLEditor.is_ie)X.Ov.style.visibility="hidden"; X.o15=I17; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.oq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var ll=X.o1.removeChild(X._iframe); X._iframe=null; delete ll; }catch (t){}X.o14.value=""; X.o14.style.display=""; X.O1=mode; setTimeout( function (){setTimeout( function (){X.o14.value=I17; X.focusEditor(); X._waitSetMode= false; if (X.o14.setSelectionRange && I1b>0){X.o14.setSelectionRange(I1b-1,I1b); var Oj=null; try {Oj=document.createEvent("KeyEvents"); Oj.initKeyEvent("keypress", true , true ,window, false , false , false , false ,0,X.o14.value.charCodeAt(I1b-1)); }catch (w){try {Oj=document.createEvent("Events"); }catch (l1c){Oj=document.createEvent("UIEvents"); } finally {Oj.initEvent("keypress", true , true); Oj.i1c=window; Oj.altKey= false; Oj.ctrlKey= false; Oj.shiftKey= false; Oj.I1c= false; Oj.keyCode=X.o14.value.charCodeAt(I1b-1); Oj.charCode=X.o14.value.charCodeAt(I1b-1); }}X.o14.focus(); X.o14.dispatchEvent(Oj); X.o14.setSelectionRange(i1b,I1b); }else HTMLEditor.setSelectionRange(X.o14,i1b,I1b); } ,0144); if (typeof l17=="function")try {l17(); }catch (t){} ; if (!HTMLEditor.is_Safari && (X.lt() || !HTMLEditor.is_ie)){var o1d=document.getElementById(X.panelDivId); o1d.style.display="none"; }if (X.ShowQuickFormatDivId!=null){setTimeout( function (){HTMLEditor.I13(X.ShowQuickFormatDivId); } ,0); }if (!HTMLEditor.is_Safari){X.Ox=X.O8.I8; X.l18=X.O8.i18; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.o14.style.height=parseInt(X.O8.I8)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.o14.style.width="100%"; setTimeout( function (){X.o14.style.width=X.o14.offsetWidth+"px"; } ,0); }}else {if (!HTMLEditor.is_Safari){X.o14.style.height=parseInt(X.O8.I8)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+parseInt(X.l18)+"px";}}X.Om(); if (HTMLEditor.is_ie)X.o14.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.oq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var ll=X.o1.removeChild(X._iframe); X._iframe=null; delete ll; }catch (t){}if (HTMLEditor.is_ie)if (this.ShowQuickFormatDivId!=null)HTMLEditor.i17(this.ShowQuickFormatDivId); X.openWait(); X._waitSetMode= true; if (HTMLEditor.is_Safari)X._textArea.style.display=""; X.setTimeout( function (iw){if (X.ou(iw)){if (typeof l17=="function")try {l17(); }catch (t){} ; return; }if (X.ContentChanged( false) || X.l || X.I14==null || typeof X.I14=="undefined"){X.F=null; X._textArea.value=X.getHTML(); X.Iy=null; if (X.Ov!=null)X.Ov.src=HTMLEditor.is_ie?"javascript:false;": ""; }else {X._textArea.value=X.I14; }if (HTMLEditor.is_Safari)X._textArea.style.display="none"; if (HTMLEditor.is_Safari)X._textArea.style.visibility="hidden"; if (HTMLEditor.is_Safari)if (X.o14!=null)X.o14.style.visibility="hidden"; if (X.ShowQuickFormatDivId!=null)HTMLEditor.i17(X.ShowQuickFormatDivId); if (!X.ContentChanged( false)){if (X.K)if (X.O1d>0)X.O1d--; }if (!HTMLEditor.is_Safari){if (typeof X.Ox!="undefined")X.O8.I8=X.Ox; if (typeof X.l18!="undefined")X.O8.i18=X.l18; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X.o14!=null){X.o14.style.width=parseInt(X.o14.style.width)-X.ox+"px"; X.O8.i8=parseInt(X.o14.style.width)+(document.compatMode!="BackCompat"?4: 2)+"px"; }X.setTimeout( function (iw){if (X.ou(iw))return; try {var ll=X._textArea.parentNode.removeChild(X.o1); X.o1=null; delete ll; }catch (t){}var o1d=document.getElementById(X.panelDivId); o1d.style.display=""; X.activate(); X.O1=mode; if (typeof l17=="function")try {l17(); }catch (t){} ; if (!(HTMLEditor.is_Safari && X.__NoToolBar__))if (X.mainDivVisible){X.setTimeout( function (iw){if (X.ou(iw))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.i1=null; HTMLEditor.prototype.isPopup= function (){return (this.i1!=null || HTMLEditor.i1!=null || HTMLEditor.l1d!=null); };HTMLEditor.prototype.i1d= function (name){if (this.o1 && this.mode()=="html" && !this.isPopup()){ this._CSSfile=name; var ll=this._textArea.parentNode.removeChild(this.o1); var save=this.l1.body.innerHTML; this.o1=null; delete ll; this._textArea.value=save; this.activate(); return true; }return false; };HTMLEditor.prototype.undo= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.I1d( true); this.l13(); };HTMLEditor.prototype.redo= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1e(); this.l13(); };HTMLEditor.prototype.copy= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X.O1e(); X.l1e("c", true); X.Om(); X.i1e(); } ,0);}else this.l1e("c", true); };HTMLEditor.prototype.cut= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X.O1e(); X.l1e("x", true); X.Om(); } ,0);}else this.l1e("x", true); };HTMLEditor.prototype.deleteSelection= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){var Ip=this.oq(); this.O10(); Ip.clear(); this.l10(); }else this.l1e("x", true); };HTMLEditor.prototype.paste= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.O10(); this.openWait(); setTimeout( function (){X._paste( true); X.Om(); } ,0);}else {var Ip=this.oq(); var Oq=this.lq(Ip); this.i16(Ip); if (HTMLEditor.is_Safari)alert(this.Ie("safari-v","Use Apple-V")); else alert(this.Ie("moz-v","Use Ctrl-V")); if (HTMLEditor.i10)this.f= true; this.I16(Ip,Oq); this.isWord= false; }};HTMLEditor.prototype.pasteWord= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.O10(); this.openWait(); setTimeout( function (){X._paste( true , true); X.Om(); } ,0);}else {var Ip=this.oq(); var Oq=this.lq(Ip); var I1e=this.Ie("msword-switched","Pasting from MS Word is switched on. Just now:")+" "; I1e+=(HTMLEditor.is_Safari)?this.Ie("safari-v","Use Apple-V"): this.Ie("moz-v","Use Ctrl-V"); this.i16(Ip); alert(I1e); if (HTMLEditor.i10)this.f= true; this.I16(Ip,Oq); this.isWord= true; }};HTMLEditor.prototype.contextMenu= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; setTimeout( function (){X.o1f(); } ,0); };HTMLEditor.prototype.pasteText= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.O10(); this.openWait(); setTimeout( function (){X._paste( false); X.Om(); } ,0);}else {var Ip=this.oq(); var Oq=this.lq(Ip); var X=this ; var Iw=X.l1; function O1f(l1f){if (l1f.length>0){X.O10(); X.o11(l1f); X.l13(); }X.focusEditor(); return true; } this.Oi("_mozPastePlain",O1f,this.Of("paste-plain","Paste Plain Text")); }};HTMLEditor.prototype.selectAll= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_ie){var i1f=this.l1.body.createTextRange(); i1f.select(); }else {if (HTMLEditor.i10){ this.f= true; this.focusEditor(); }var Ip=this.oq(); this.i16(Ip); var Oq=this.lq(); Oq.selectNodeContents(this.l1.body); if (HTMLEditor.i10)this.f= true; this.I16(Ip,Oq); } this.updateToolbar(); };HTMLEditor.prototype.selectNone= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var Ip=this.oq(); var Oq=this.lq(Ip); if (HTMLEditor.is_ie){Oq.setEndPoint("StartToEnd",Oq); Oq.select(); }else {if (HTMLEditor.i10){ this.f= true; this.focusEditor(); } this.i16(Ip); Oq.setStart(Oq.endContainer,Oq.endOffset); this.I16(Ip,Oq); }setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,0144); };HTMLEditor.prototype.rtl= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.l1.body.style.direction=(!this.rtlState())?"rtl": ""; this.updateToolbar(); };HTMLEditor.prototype.rtlState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; if (this.l1.body.style.direction && this.l1.body.style.direction=="rtl")return true; return false; };HTMLEditor.prototype.ltr= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.l1.body.style.direction=(!this.ltrState())?"": "rtl"; this.updateToolbar(); };HTMLEditor.prototype.ltrState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return true; if (!(this.l1.body.style.direction && this.l1.body.style.direction=="rtl"))return true; return false; };HTMLEditor.prototype.I1f= false; HTMLEditor.prototype.bold= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1g("bold"); };HTMLEditor.prototype.boldState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1g("bold"); };HTMLEditor.prototype.l1g= false; HTMLEditor.prototype.italic= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; this.o1g("italic"); };HTMLEditor.prototype.italicState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1g("italic"); };HTMLEditor.prototype.i1g= false; HTMLEditor.prototype.underline= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; this.o1g("underline"); };HTMLEditor.prototype.underlineState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1g("underline"); };HTMLEditor.prototype.I1g= false; HTMLEditor.prototype.strikeThrough= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1g("strikeThrough"); };HTMLEditor.prototype.strikeThroughState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1g("strikeThrough"); };HTMLEditor.prototype.o1h= false; HTMLEditor.prototype.subScript= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; this.o1g("subScript"); };HTMLEditor.prototype.subScriptState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1g("subScript"); };HTMLEditor.prototype.O1h= false; HTMLEditor.prototype.superScript= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1g("superScript"); };HTMLEditor.prototype.superScriptState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1g("superScript"); };HTMLEditor.prototype.foreColor= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1h(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.i1h("forecolor", false ,par); } ,0144); }else X.i1h("forecolor", false ,par); }if (HTMLEditor.is_Safari)this.lq(this.oq()); setTimeout( function (){try {X.Oi("_selectColor",X.If("color","Font Color"),l1h); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.foreColorValue= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.Iq())return "#000000"; var oe=HTMLEditor.I1h(this.o1i("forecolor")); return oe; };HTMLEditor.prototype.foreColorClear= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.lq(this.oq()); this.i1h("forecolor", false ,""); };HTMLEditor.prototype.backColor= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1h(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.i1h("backcolor", false ,par); } ,0144); }else X.i1h("backcolor", false ,par); }if (HTMLEditor.is_Safari)this.lq(this.oq()); setTimeout( function (){try {X.Oi("_selectColor",X.Of("color","Background Color"),l1h); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.backColorValue= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.Iq())return "#FFFFFF"; return HTMLEditor.I1h(this.o1i("backcolor")); };HTMLEditor.prototype.backColorClear= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.lq(this.oq()); this.i1h("backcolor", false ,""); };HTMLEditor._styleTags=["strong","em","u","strike","s","span","font","b","sub","sup","a","i"]; HTMLEditor.O1i= function (Ik){if (!Ik)return false; for (var i=0; i<HTMLEditor._styleTags.length; i++)if (HTMLEditor._styleTags[i].toLowerCase()==Ik.toLowerCase())return true; return false; };HTMLEditor.prototype.clearStyles= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari)this.lq(this.oq()); setTimeout( function (){try {X.Oi("_clearStyles"); X.l13(); }catch (t){}} ,012); };HTMLEditor.prototype.setClassName= function (name){var X=this ; if (!this._wasFocused)return; this.focusEditor(); if (HTMLEditor.is_Safari)this.lq(this.oq()); try {var oe=this._setClassName(name); this.l13(); return oe; }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.lq(this.oq()); if (this.Iq()){ this.O10(); try {HTMLEditor.getSelParent(this ).className=name; }catch (t){ this.I1d( false); }}else this.setClassName(name); return true; };HTMLEditor.prototype.SelectedTextNodes= function (){if (this.mode()!="html")return []; this.focusEditor(); if (HTMLEditor.is_Safari)this.lq(this.oq()); var i1a=this.I1a(); if (i1a.length>0)this.l1i(i1a); return i1a; };HTMLEditor.prototype.i1i= function (){if (this.mode()!="html")return null; this.focusEditor(); var Ip=this.oq(); var Oq=this.lq(Ip); var parent=null; if (HTMLEditor.is_ie){if (Ip.type.toLowerCase()=="control")parent=Oq.item(0); else parent=null; }else {parent=this.iq(Oq); if (parent.nodeType!=3 && Oq.startContainer==Oq.endContainer){if (!parent.tagName)return null; if (Oq.startContainer.childNodes.item(Oq.startOffset)==null)return null; if (Oq.startOffset==Oq.endOffset && Oq.startContainer.childNodes.item(Oq.startOffset).tagName && Oq.startContainer.childNodes.item(Oq.startOffset).tagName.toUpperCase()=="BR")return null; if (parent.tagName.toUpperCase()=="BODY" && Oq.startOffset==0 && Oq.endOffset>0 && Oq.endOffset==parent.childNodes.length)return null; parent=Oq.startContainer.childNodes.item(Oq.startOffset); }else return null; }return parent; };HTMLEditor.prototype.getClassName= function (){try {var Ip=this.oq(); var Oq=this.lq(Ip); var parent; if (HTMLEditor.is_ie && Ip.type.toLowerCase()=="control")parent=Oq.item(0); else parent=this.iq(Oq); if (parent.nodeType==3){parent=parent.parentNode; }while ( true){if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.il && parent.className.length>0){return parent.className; }else {if (parent && parent.tagName && HTMLEditor.O1i(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.lq(this.oq()); this.o1g("fontname",select.options.item(select.selectedIndex).value); }catch (t){alert("FontName: "+t.message); } ; };HTMLEditor.prototype.I1i=0; HTMLEditor.prototype.fontNameState= function (o1j){var param=null; try {param=this.o1i("fontname"); }catch (t){}if (!this._FontNotSet)if (!param || param.length==0){if (!this.O1j)this.O1j=HTMLEditor.ly(this.l1.body,"font-family"); param=this.O1j; }if (typeof o1j!="undefined"){var ik=document.getElementById(o1j); ik=ik.childNodes.item(1); var i=0; if (param && param.length>0){var Oe=param.toLowerCase().split(",")[0]; for (i=0; i<ik.options.length; i++){var l15=ik.options.item(i).value.toLowerCase().split(",")[0]; if (l15==Oe)break; }if (i==ik.options.length){try {var l1j=document.createElement("OPTION"); l1j.value=param; l1j.text=param.split(",")[0]; ik.add(l1j,HTMLEditor.is_ie?i:null); X.I1i=0; }catch (t){var X=this ; if (X.I1i<012){setTimeout( function (){X.fontNameState(o1j); } ,0144); X.I1i++; }i=0; }}}ik.selectedIndex=i; }return param; };HTMLEditor.i1j= function (I1j){var Oe=I1j.toString(); switch (Oe){case "1":Oe="8pt"; break; case "2":Oe="10pt"; break; case "3":Oe="12pt"; break; case "4":Oe="14pt"; break; case "5":Oe="18pt"; break; case "6":Oe="24pt"; break; case "7":Oe="36pt"; break; }return Oe; };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.lq(this.oq()); this.o1g("fontsize",HTMLEditor.i1j(select.options.item(select.selectedIndex).value)); };HTMLEditor.prototype.o1k=0; HTMLEditor.prototype.fontSizeState= function (o1j){var param=null; try {param=this.o1i("fontsize",o1j); }catch (t){}if (param)param=param.toString(); if (!this._FontNotSet)if (!param || param.length==0){if (!this.O1k){ this.O1k=HTMLEditor.ly(this.l1.body,"font-size"); this.O1k=HTMLEditor.l1k(this.O1k,this,o1j); }param=this.O1k; }if (typeof o1j!="undefined"){try {var ik=document.getElementById(o1j); ik=ik.childNodes.item(1); var i=0; if (param && param.length>0){var Oe=param.toLowerCase().split(",")[0]; for (i=0; i<ik.options.length; i++){var l15=HTMLEditor.i1j(ik.options.item(i).value.toLowerCase().split(",")[0]); if (l15==Oe)break; }if (i==ik.options.length){try {var l1j=document.createElement("OPTION"); l1j.value=param; l1j.text=param; ik.add(l1j,HTMLEditor.is_ie?i:null); X.o1k=0; }catch (t){var X=this ; if (X.o1k<012){setTimeout( function (){X.fontSizeState(o1j); } ,0144); X.o1k++; }i=0; }}}ik.selectedIndex=i; }catch (t){alert("fontSizeState: "+t.message); }}return param; };HTMLEditor.prototype.justifyLeft= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1g("justifyLeft",value); };HTMLEditor.prototype.justifyFull= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1g("justifyFull",null); };HTMLEditor.prototype.justifyCenter= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1g("justifyCenter",value); };HTMLEditor.prototype.justifyRight= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1g("justifyRight",value); };HTMLEditor.prototype.paragraph= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1g("paragraph",value); };HTMLEditor.prototype.orderedList= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1g("InsertOrderedList",value); };HTMLEditor.prototype.bulletedList= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1g("InsertUnorderedList",value); };HTMLEditor.prototype.decreaseIndent= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1g("Outdent",value); };HTMLEditor.prototype.increaseIndent= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1g("Indent",value); };HTMLEditor.prototype.createLink= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari && !HTMLEditor.ij){param=prompt("Enter URL"); this.SurroundHTML("<a href='"+param+"'>","</a>"); return; }try {if (this.o1 && this.mode()=="html" && !this.isPopup()){var o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(this.O1a()): ""; var Ip=this.oq(); var Oq=this.lq(Ip); var i1k=null; if (!(this.Iq() && HTMLEditor.getSelParent(this ).tagName && (HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="EMBED" || HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG")) && !(!this.Iq() && ((HTMLEditor.is_ie && Oq.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0)))){ this.O10(); var I1k=this.l1.createElement("span"); I1k.innerHTML="new link"; I1k.id=HTMLEditor.il; var o1l= true; if (HTMLEditor.is_ie && this.Iq()){var O1b=Oq.item(0); var O1l=this.l1.createElement("span"); O1b.parentNode.insertBefore(O1l,O1b); i1k=I1k.firstChild; O1b.parentNode.insertBefore(i1k,O1b); var l1l=this.l1.createElement("span"); O1b.parentNode.insertBefore(l1l,O1b); O1b.parentNode.removeChild(O1b); this.i1l([O1l,l1l], false); o1l= false; }else { this.o11(HTMLEditor.getHTML(I1k, true)); var ik=this.l1.getElementById(HTMLEditor.il); i1k=ik.firstChild; ik.parentNode.insertBefore(ik.firstChild,ik); ik.parentNode.removeChild(ik); }if (!HTMLEditor.is_ie){Oq=this.lq(); Oq.setStart(i1k,0); Oq.setEnd(i1k,(""+i1k.data+"").length); this.i16(Ip); this.I16(Ip,Oq); }else {if (o1l)Oq.select(); }o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(this.O1a()): ""; Ip=this.oq(); Oq=this.lq(Ip); }if ((this.Iq() && HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG") || (!this.Iq() && ((HTMLEditor.is_ie && Oq.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0)))){ this.O10(); var I1l=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); var i15= {target: "default",href:I1l,title: "" } ; var o1m; function O1f(O1m){try {if (O1m){var l1m=X.l1.getElementsByTagName("A"); var i1m=0; for (var i=0; i<l1m.length; i++){var I1m= true; var a=l1m[i]; for (var ig=0; ig<o1m.length; ig++)if (a==o1m[ig]){I1m= false; break; }if (!I1m)continue; try {var o1n=a.href; a.href=i15.href; if (i15.target)a.target=i15.target; if (i15.title.length>0)a.title=i15.title; i1m=i; }catch (w){}}if (i1k)i1k.data=i15.href; if (HTMLEditor.i10)X.f= true; if (l1m.length>0){var O1n=l1m[i1m]; var I1k=X.l1.createElement("span"); I1k.innerHTML="&nbsp;"; if (O1n.nextSibling!=null)O1n.parentNode.insertBefore(I1k,O1n.nextSibling); else O1n.parentNode.appendChild(I1k); setTimeout( function (){HTMLEditor.l1n(I1k,X); setTimeout( function (){O1n.parentNode.removeChild(I1k); } ,0); } ,0); }setTimeout( function (){X.updateToolbar(); X.l13(); } ,5); }else {X.I1d( false); X.K.pop(); if (i1k){X.I1d( false); X.K.pop(); }}X.focusEditor(); }catch (t){alert("URL Link create: "+t.message); }return true; }var ok=X.l1.getElementsByTagName("A"); var l1m=[]; for (var i=0; i<ok.length; i++){try {var hr=ok[i].href; l1m.push([ok[i],""+hr+""]); }catch (w){}} this.i1h("createLink", false ,I1l); o1m=[]; for (var i=0; i<l1m.length; i++){var a=l1m[i][0]; var href=l1m[i][1]; if (a.href==href)o1m.push(a); } this.Oi("_urlProperties",this.Of("link","Create an URL Link"),i15,O1f); }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.o4= function (X,link){function O1f(O1m){if (!O1m){setTimeout( function (){X.I1d( false); } ,012); }else {if (link.title.length==0){link.title=null; link.removeAttribute("title"); }if (HTMLEditor.i10){X.f= true; X.focusEditor(); }X.l13(); }return true; }X.O10(); X.Oi("_urlProperties",X.If("link","Edit an URL Link"),link,O1f); };HTMLEditor.i1n=/^(([0-9]+(px|%|$))|$)/i; HTMLEditor.setSelectionRange= function (input,I1n,o1o){try {var start=(typeof I1n=="undefined")?0:I1n; var end=(typeof o1o=="undefined")?input.value.length:o1o; input.focus(); if (input.setSelectionRange){input.setSelectionRange(start,end); }else if (input.createTextRange){var Oq=input.createTextRange(); Oq.collapse( true); Oq.moveEnd("character",end); Oq.moveStart("character",start); Oq.select(); }}catch (t){}};HTMLEditor.prototype.insertDiv= function (){var X=this ; var O1o; var id=HTMLEditor.il; var innerHTML="<div id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Div"; innerHTML+="</div>"; if (X.InsertHTML(innerHTML)){O1o=X.getDocument().getElementById(id); O1o.id=null; O1o.removeAttribute("id"); X.l1o(O1o, false); }};HTMLEditor.i3= function (X,O1o){X.SaveContent(); X.l1o(O1o, true); };HTMLEditor.prototype.l1o= function (O1o,i1o){var X=this ; function disableEvents(Iw){Iw.getElementById("idField").disabled= true; Iw.getElementById("widthField").disabled= true; Iw.getElementById("heightField").disabled= true; Iw.getElementById("borderWidth").disabled= true; Iw.getElementById("borderColor").disabled= true; Iw.getElementById("borderStyle").disabled= true; Iw.getElementById("bgColor").disabled= true; Iw.getElementById("clearColor").disabled= true; Iw.getElementById("clearColor").className="dbutton"; Iw.getElementById("bgImage").disabled= true; Iw.getElementById("clearImage").disabled= true; Iw.getElementById("clearImage").className="dbutton"; }function enableEvents(Iw){Iw.getElementById("idField").disabled= false; Iw.getElementById("widthField").disabled= false; Iw.getElementById("heightField").disabled= false; Iw.getElementById("borderWidth").disabled= false; Iw.getElementById("borderColor").disabled= false; Iw.getElementById("borderStyle").disabled= false; Iw.getElementById("bgColor").disabled= false; Iw.getElementById("clearColor").disabled= false; Iw.getElementById("clearColor").className="button"; Iw.getElementById("bgImage").disabled= false; Iw.getElementById("clearImage").disabled= false; Iw.getElementById("clearImage").className="dbutton"; }function color(){function I1o(par){X.o1p.getElementById("borderColor").style.backgroundColor=par; }X.Oi("_selectColor",X.o1p.getElementById("borderColor").title,I1o); }function bgColor(){function O1p(par){X.o1p.getElementById("bgColor").value=""; X.o1p.getElementById("bgColor").style.backgroundColor=par; }X.Oi("_selectColor",X.o1p.getElementById("bgColor").title,O1p); }function l1p(){X.o1p.getElementById("bgColor").value=X.i1p; X.o1p.getElementById("bgColor").style.backgroundColor=""; }function I1p(){var o1q=new Object(); var Iw=X.o1p; o1q.src=""; o1q.O1q="LEFT"; o1q.l1q="TOP"; o1q.repeat="REPEAT"; o1q.i1q="FIXED"; if (Iw.getElementById("bgImage").style.backgroundImage && Iw.getElementById("bgImage").style.backgroundImage.length>0){var ok=Iw.getElementById("bgImage").style.backgroundImage; ok=ok.replace(/^url\(["']?(.+)["']?\)$/i,"$1"); o1q.src=ok.replace(/(\s)/g,"%20"); }if (Iw.getElementById("bgImage").style.backgroundPosition && Iw.getElementById("bgImage").style.backgroundPosition.length>0){var ok=Iw.getElementById("bgImage").style.backgroundPosition; ok=ok.split(" "); if (ok.length>0)o1q.O1q=ok[0]; if (ok.length>1)o1q.l1q=ok[1]; }if (Iw.getElementById("bgImage").style.backgroundRepeat && Iw.getElementById("bgImage").style.backgroundRepeat.length>0)o1q.repeat=Iw.getElementById("bgImage").style.backgroundRepeat; if (Iw.getElementById("bgImage").style.backgroundAttachment && Iw.getElementById("bgImage").style.backgroundAttachment.length>0)o1q.i1q=Iw.getElementById("bgImage").style.backgroundAttachment; function l1h(O1m){if (O1m){var save=Iw.getElementById("bgImage").style.backgroundImage; Iw.getElementById("bgImage").value=""; var I1q=(o1q.src.indexOf("'")>=0)?"\"": "'"; Iw.getElementById("bgImage").style.backgroundImage=""; Iw.getElementById("bgImage").style.backgroundImage="url("+I1q+o1q.src.replace(/(\s)/g,"%20")+I1q+")"; Iw.getElementById("bgImage").style.backgroundRepeat=o1q.repeat; Iw.getElementById("bgImage").style.backgroundAttachment=o1q.i1q; Iw.getElementById("bgImage").style.backgroundPosition=o1q.O1q+" "+o1q.l1q; if (Iw.getElementById("bgImage").style.backgroundImage.length==0){X.I0.setTimeout( function (){Iw.getElementById("bgImage").style.backgroundImage=save; if (save.length==0)o1r(); X.I0.alert(X.Ie("bad-bg-img","Incorrect Image file for Background.")); } ,0); }}}X.Oi("_bgImageProperties",Iw.getElementById("bgImage").title,o1q,l1h); }function o1r(){X.o1p.getElementById("bgImage").value=X.O1r; X.o1p.getElementById("bgImage").style.backgroundImage=""; X.o1p.getElementById("bgImage").style.backgroundRepeat=""; X.o1p.getElementById("bgImage").style.backgroundAttachment=""; }function l1h(Iw,l1r){if (Iw!=null){var i1r=Iw.getElementById("overflow").value.replace(/^[\s]+/,""); var width=Iw.getElementById("widthField").value.replace(/^[\s]+/,""); var height=Iw.getElementById("heightField").value.replace(/^[\s]+/,""); var borderWidth=Iw.getElementById("borderWidth").value.replace(/^[\s]+/,""); var borderStyle=Iw.getElementById("borderStyle").value.replace(/^[\s]+/,""); var borderColor=Iw.getElementById("borderColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundColor=Iw.getElementById("bgColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundImage=Iw.getElementById("bgImage").style.backgroundImage.replace(/^[\s]+/,""); var backgroundRepeat=Iw.getElementById("bgImage").style.backgroundRepeat.replace(/^[\s]+/,""); var backgroundAttachment=Iw.getElementById("bgImage").style.backgroundAttachment.replace(/^[\s]+/,""); var backgroundPosition=Iw.getElementById("bgImage").style.backgroundPosition.replace(/^[\s]+/,""); var id=Iw.getElementById("idField").value.replace(/^[\s]+/,""); if (!HTMLEditor.i1n.test(width)){HTMLEditor.setSelectionRange(Iw.getElementById("widthField")); return false; }if (!HTMLEditor.i1n.test(height)){HTMLEditor.setSelectionRange(Iw.getElementById("heightField")); return false; }if (!HTMLEditor.i1n.test(borderWidth)){HTMLEditor.setSelectionRange(Iw.getElementById("borderWidth")); return false; }if (id.length>0 && X.l1.getElementById(id)!=null && X.l1.getElementById(id)!=O1o){HTMLEditor.setSelectionRange(Iw.getElementById("idField")); return false; }O1o.style.width=width; O1o.style.height=height; O1o.style.borderWidth=borderWidth; if (id.length>0)O1o.id=id; else {O1o.id=null; O1o.removeAttribute("id"); }O1o.style.overflow=i1r; if (borderStyle.length>0 && borderStyle!="none" && borderWidth.length>0)O1o.style.borderStyle=borderStyle; else O1o.style.borderStyle=""; O1o.style.borderColor=(borderWidth.length>0)?borderColor: ""; O1o.style.backgroundColor=backgroundColor; O1o.style.backgroundImage=backgroundImage; O1o.style.backgroundRepeat=backgroundRepeat; O1o.style.backgroundAttachment=backgroundAttachment; O1o.style.backgroundPosition=backgroundPosition; setTimeout( function (){if (HTMLEditor.is_Safari){O1o=(ik.nextSibling)?O1o.nextSibling:O1o; setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.i16(Ip); X.I16(Ip,Oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1a=X.l1.body.createControlRange(); i1a.add(O1o); i1a.select(); }catch (t){}}else {if (HTMLEditor.i10)X.f= true; O1o=(O1o.nextSibling)?O1o.nextSibling:O1o; HTMLEditor.l1n(O1o,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1r(Iw,l1r){if (Iw!=null){var o1s=l1r.contentWindow.document.getElementById("realStylesFolder").href; X.i1p=Iw.getElementById("bgColor").value; X.O1r=Iw.getElementById("bgImage").value; Iw.getElementById("idField").value=(O1o.id)?O1o.id: ""; Iw.getElementById("widthField").value=(O1o.style.width)?O1o.style.width: ""; Iw.getElementById("heightField").value=(O1o.style.height)?O1o.style.height: ""; Iw.getElementById("borderWidth").value=(O1o.style.borderLeftWidth)?O1o.style.borderLeftWidth: ""; Iw.getElementById("borderStyle").value=(O1o.style.borderLeftStyle)?O1o.style.borderLeftStyle: ""; Iw.getElementById("overflow").value=(O1o.style.overflow)?O1o.style.overflow: ""; Iw.getElementById("borderColor").style.backgroundColor=(O1o.style.borderLeftColor)?O1o.style.borderLeftColor: ""; Iw.getElementById("bgColor").style.backgroundColor=(O1o.style.backgroundColor)?O1o.style.backgroundColor: ""; Iw.getElementById("bgImage").style.backgroundImage=(O1o.style.backgroundImage)?O1o.style.backgroundImage: ""; Iw.getElementById("bgImage").style.backgroundRepeat=(O1o.style.backgroundRepeat)?O1o.style.backgroundRepeat: ""; Iw.getElementById("bgImage").style.backgroundAttachment=(O1o.style.backgroundAttachment)?O1o.style.backgroundAttachment: ""; Iw.getElementById("bgImage").style.backgroundPosition=(O1o.style.backgroundPosition)?O1o.style.backgroundPosition: ""; if (Iw.getElementById("bgColor").style.backgroundColor.length>0)Iw.getElementById("bgColor").value=""; if (Iw.getElementById("bgImage").style.backgroundImage.length>0)Iw.getElementById("bgImage").value=""; HTMLEditor.lv(Iw.getElementById("borderColor"),["click"],color); HTMLEditor.lv(Iw.getElementById("bgColor"),["click"],bgColor); HTMLEditor.lv(Iw.getElementById("clearColor"),["click"],l1p); HTMLEditor.lv(Iw.getElementById("bgImage"),["click"],I1p); HTMLEditor.lv(Iw.getElementById("clearImage"),["click"],o1r); X.o1p=Iw; }}var O1s=(X.P[032].length>0)?(X.P[032]): ("__div.aspx"); X.customPopup("popup_div","div",O1s,l1h,I1r, true ,i1o,enableEvents,disableEvents); };HTMLEditor.prototype.insertForm= function (){var X=this ; var O1o; var id=HTMLEditor.il; var innerHTML="<form id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Form"; innerHTML+="</form>"; if (X.InsertHTML(innerHTML)){O1o=X.getDocument().getElementById(id); O1o.id=null; O1o.removeAttribute("id"); X.l1s(O1o, false); }};HTMLEditor.I4= function (X,O1o){X.SaveContent(); X.l1s(O1o, true); };HTMLEditor.prototype.l1s= function (O1o,i1o){var X=this ; function l1h(Iw,l1r){if (Iw!=null){var width=Iw.getElementById("widthField").value.replace(/^[\s]+/,""); var height=Iw.getElementById("heightField").value.replace(/^[\s]+/,""); var id=Iw.getElementById("idField").value.replace(/^[\s]+/,""); var name=Iw.getElementById("nameField").value.replace(/^[\s]+/,""); var action=Iw.getElementById("actionField").value.replace(/^[\s]+/,""); var method=Iw.getElementById("methodField").value.replace(/^[\s]+/,""); if (!HTMLEditor.i1n.test(width)){HTMLEditor.setSelectionRange(Iw.getElementById("widthField")); return false; }if (!HTMLEditor.i1n.test(height)){HTMLEditor.setSelectionRange(Iw.getElementById("heightField")); return false; }var i1s=X.l1.getElementsByTagName("FORM"); if (name.length>0)for (var i=0; i<i1s.length; i++){if (i1s[i].name==name && i1s[i]!=O1o){HTMLEditor.setSelectionRange(Iw.getElementById("nameField")); return false; }}if (id.length>0 && X.l1.getElementById(id)!=null && X.l1.getElementById(id)!=O1o){HTMLEditor.setSelectionRange(Iw.getElementById("idField")); return false; }O1o.style.width=width; O1o.style.height=height; if (id.length>0)O1o.id=id; else {O1o.id=null; O1o.removeAttribute("id"); }if (name.length>0){O1o.name=name; O1o.setAttribute("name",name); }else {O1o.name=""; O1o.removeAttribute("name"); }if (action.length>0)O1o.action=action; else {O1o.action=null; O1o.removeAttribute("action"); }try {if (method.length>0)O1o.method=method; else {O1o.removeAttribute("method"); }}catch (t){}setTimeout( function (){if (HTMLEditor.is_Safari){O1o=(ik.nextSibling)?O1o.nextSibling:O1o; setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.i16(Ip); X.I16(Ip,Oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1a=X.l1.body.createControlRange(); i1a.add(O1o); i1a.select(); }catch (t){}}else {if (HTMLEditor.i10)X.f= true; O1o=(O1o.nextSibling)?O1o.nextSibling:O1o; HTMLEditor.l1n(O1o,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1r(Iw,l1r){if (Iw!=null){Iw.getElementById("widthField").value=(O1o.style.width)?O1o.style.width: ""; Iw.getElementById("heightField").value=(O1o.style.height)?O1o.style.height: ""; Iw.getElementById("idField").value=(O1o.id)?O1o.id: ""; Iw.getElementById("nameField").value=(O1o.name)?O1o.name: ""; Iw.getElementById("actionField").value=(O1o.action)?O1o.action: ""; Iw.getElementById("methodField").value=(O1o.method)?O1o.method: ""; }}var O1s=(X.P[035].length>0)?(X.P[035]): ("__form.aspx"); X.customPopup("popup_form","form",O1s,l1h,I1r, true ,i1o); };HTMLEditor.prototype.insertCheckBox= function (){ this.I1s("type='checkbox'"); };HTMLEditor.prototype.insertRadio= function (){ this.I1s("type='radio'"); };HTMLEditor.prototype.insertTextBox= function (){ this.I1s("type='text' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertPassword= function (){ this.I1s("type='password' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertHidden= function (){var X=this ; if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)setTimeout( function (){alert(X.Ie("safari-no-support","Not supported in Safari")); } ,0764); else if (!HTMLEditor.is_ie)setTimeout( function (){alert(X.Ie("mozilla-no-support","Not supported in Mozilla")); } ,0764); else this.I1s("type='hidden' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertButton= function (){ this.I1s("type='button' style='width:50px;height:22px;'"); };HTMLEditor.prototype.insertSubmit= function (){ this.I1s("type='submit' style='width:50px;height:22px;' value='Submit'"); };HTMLEditor.prototype.insertReset= function (){ this.I1s("type='reset' style='width:50px;height:22px;' value='Reset'"); };HTMLEditor.prototype.I1s= function (o1t){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var O1o=null; var id=HTMLEditor.il; if (X.Iq() && HTMLEditor.getSelParent(X).tagName.toUpperCase()=="INPUT"){O1o=HTMLEditor.getSelParent(X); X.SaveContent(); X.O1t(O1o, true); }else if (X.InsertHTML("<input id='"+id+"' "+o1t+" />")){O1o=X.getDocument().getElementById(id); O1o.id=null; O1o.removeAttribute("id"); X.O1t(O1o, false); if (HTMLEditor.is_Safari)setTimeout( function (){try {O1o.blur();}catch (t){}} ,0144); }return O1o; };HTMLEditor.o3= function (X,O1o){if (O1o.type=="image" || O1o.type=="file")return; X.SaveContent(); X.O1t(O1o, true); };HTMLEditor.prototype.O1t= function (O1o,i1o){var X=this ; function l1h(Iw,l1r){if (Iw!=null){var width=Iw.getElementById("widthField").value.replace(/^[\s]+/,""); var height=Iw.getElementById("heightField").value.replace(/^[\s]+/,""); var id=Iw.getElementById("idField").value.replace(/^[\s]+/,""); var name=Iw.getElementById("nameField").value.replace(/^[\s]+/,""); var value=Iw.getElementById("valueField").value.replace(/^[\s]+/,""); var title=Iw.getElementById("titleField").value.replace(/^[\s]+/,""); var type=((O1o.type && O1o.type.length>0)?O1o.type: "text").toLowerCase(); if (!HTMLEditor.i1n.test(width)){HTMLEditor.setSelectionRange(Iw.getElementById("widthField")); return false; }if (!HTMLEditor.i1n.test(height)){HTMLEditor.setSelectionRange(Iw.getElementById("heightField")); return false; }if (id.length>0 && X.l1.getElementById(id)!=null && X.l1.getElementById(id)!=O1o){HTMLEditor.setSelectionRange(Iw.getElementById("idField")); return false; }O1o.style.width=width; O1o.style.height=height; if (id.length>0)O1o.id=id; else {O1o.id=null; O1o.removeAttribute("id"); }if (name.length>0){O1o.name=name; O1o.setAttribute("name",name); }else {O1o.name=""; O1o.removeAttribute("name"); }if (value.length>0){O1o.value=value; O1o.setAttribute("value",value); }else {O1o.value=""; O1o.removeAttribute("value"); }if (title.length>0)O1o.title=title; else {O1o.title=""; O1o.removeAttribute("title"); }if (type=="checkbox" || type=="radio"){O1o.checked=Iw.getElementById("checkField").checked; if (!HTMLEditor.is_ie){if (O1o.checked)O1o.setAttribute("checked","true"); else O1o.removeAttribute("checked"); }}setTimeout( function (){if (HTMLEditor.is_Safari){O1o=(ik.nextSibling)?O1o.nextSibling:O1o; setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.i16(Ip); X.I16(Ip,Oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1a=X.l1.body.createControlRange(); i1a.add(O1o); i1a.select(); }catch (t){}}else {if (HTMLEditor.i10)X.f= true; O1o=(O1o.nextSibling)?O1o.nextSibling:O1o; HTMLEditor.l1n(O1o,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1r(Iw,l1r){if (Iw!=null){var type=((O1o.type && O1o.type.length>0)?O1o.type: "text").toLowerCase(); if (type=="checkbox" || type=="radio")Iw.getElementById("checkField").checked=O1o.checked; else Iw.getElementById("checkField").style.display="none"; Iw.getElementById("widthField").value=(O1o.style.width)?O1o.style.width: ""; Iw.getElementById("heightField").value=(O1o.style.height)?O1o.style.height: ""; Iw.getElementById("idField").value=(O1o.id)?O1o.id: ""; Iw.getElementById("nameField").value=(O1o.name)?O1o.name: ""; Iw.getElementById("valueField").value=(O1o.value)?O1o.value: ""; Iw.getElementById("titleField").value=(O1o.title)?O1o.title: ""; Iw.getElementById("inputType").innerHTML=""; try {Iw.getElementById("inputType").innerHTML=Iw.getElementById("input_"+type).value; }catch (t){alert(t.message);}}}var O1s=(X.P[041].length>0)?(X.P[041]): ("__input.aspx"); X.customPopup("popup_input","input",O1s,l1h,I1r, true ,i1o); };HTMLEditor.I3= function (X,link){X.O10(); var ik=link.firstChild; while (link.firstChild)link.parentNode.insertBefore(link.firstChild,link); link.parentNode.removeChild(link); if (ik)HTMLEditor.l1n(ik,X); setTimeout( function (){X.updateToolbar(); } ,5); X.l13(); };HTMLEditor.prototype.insertIcon= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1f(O1m,html){if (!O1m){X.I1d( false); }else {if (!X.o11("<img src='"+html+"' id="+HTMLEditor.il+">")){X.I1d( false); }else {var ik=X.l1.getElementById(HTMLEditor.il); ik.id=null; ik.removeAttribute("id"); if (X.relativeImages)ik.src=html; if (!HTMLEditor.is_ie){setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.i16(Ip); if (HTMLEditor.i10)X.f= true; X.I16(Ip,Oq); X.updateToolbar(); X.focusEditor(); } ,0); }X.l13(); }}return true; }X.O10(); X.Oi("_insertIcon",X.Of("icons","Insert an Icon"),O1f); };HTMLEditor.prototype.insertAnchor= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1f(O1m,text){if (!O1m || text.length==0){X.I1d( false); }else {if (!X.o11("<a name='"+text+"'>"+(X.showAnchors?("<img "+X.noContextMenuAttributeName()+"='yes' title='"+text+"' src='"+X.Q[0]+"'>"): "")+"</a>")){X.I1d( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.i16(Ip); if (HTMLEditor.i10)X.f= true; X.I16(Ip,Oq); X.updateToolbar(); X.focusEditor(); } ,0); }X.l13(); }}return true; }X.O10(); X.Oi("_insertAnchor",X.Of("anchor","Insert Anchor"),O1f,""); };HTMLEditor.prototype.anchorsOn= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.showAnchors=!this.showAnchors; HTMLEditor.oy(this,this.l1,!this.showAnchors);this.updateToolbar(); };HTMLEditor.prototype.anchorsOnState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.showAnchors; };HTMLEditor.oy= function (X,l1,l1t){var l1m=l1.getElementsByTagName("A"); var oe= false; for (var i=0; i<l1m.length; i++){var a=l1m[i]; if (a.name && a.name.length>0){while (a.firstChild){a.removeChild(a.firstChild); oe= true; }if (!l1t){var img=l1.createElement("IMG"); img.title=a.name; img.src=X.Q[0]; img.setAttribute(X.noContextMenuAttributeName(),"yes"); a.appendChild(img); }}}return oe; };HTMLEditor.O4= function (X,link){function O1f(O1m,text){if (!O1m || text.length==0){setTimeout( function (){X.I1d( false); } ,012); }else {link.name=text; try {link.firstChild.title=text; }catch (t){}if (HTMLEditor.is_ie){setTimeout( function (){try {var i1a=X.l1.body.createControlRange(); i1a.add(link.firstChild); i1a.select(); }catch (t){}} ,0); }else if (HTMLEditor.i10){X.f= true; X.focusEditor(); }X.l13(); }return true; }X.O10(); X.Oi("_insertAnchor",X.If("anchor","Edit Anchor"),O1f,link.name); };HTMLEditor.prototype.insertPlaceHolder= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1f(O1m,text){if (!O1m || text.length==0){X.I1d( false); }else {var Oh; if (X.showPlaceHolders || HTMLEditor.is_ie)Oh="\x3cimg dummytag=\"placeholder\" title=\'"+text+"' src='"+X.Q[4]+"'>"; else Oh="<placeholder name='"+text+"'/>"; if (!X.o11(Oh)){X.I1d( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.i16(Ip); if (HTMLEditor.i10)X.f= true; X.I16(Ip,Oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (!X.showPlaceHolders)HTMLEditor.Oy(X,X.l1, true); }X.l13(); }}return true; }X.O10(); X.Oi("_insertPlaceHolder",X.Of("placeholder","Insert PlaceHolder"),O1f,""); };HTMLEditor.prototype.placeHoldersOn= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.showPlaceHolders=!this.showPlaceHolders; HTMLEditor.Oy(this,this.l1,!this.showPlaceHolders);this.updateToolbar(); };HTMLEditor.prototype.placeHoldersOnState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.showPlaceHolders; };HTMLEditor.Oy= function (X,l1,l1t){var oe= false; if (l1t){var i1t=l1.getElementsByTagName("IMG"); var l1m=[]; for (var i=0; i<i1t.length; i++)l1m.push(i1t[i]); for (var i=0; i<l1m.length; i++){var a=l1m[i]; var I1t=a.getAttribute("dummytag"); if (I1t && I1t.length>0 && I1t.toLowerCase()=="placeholder"){var o1u=l1.createElement("PLACEHOLDER"); var title=a.title; if (title==null || typeof title=="undefined")title=a.getAttribute("title"); o1u.name=title; o1u.setAttribute("name",title); a.parentNode.insertBefore(o1u,a); a.parentNode.removeChild(a); oe= true; }}}else {var i1t=l1.getElementsByTagName("PLACEHOLDER"); var l1m=[]; for (var i=0; i<i1t.length; i++)l1m.push(i1t[i]); for (var i=0; i<l1m.length; i++){var a=l1m[i]; var O1u= true; try {if (a.childNodes.length>0)O1u= false; }catch (w){}if (O1u){var name=a.name; if (name==null || typeof name=="undefined")name=a.getAttribute("name"); var img=l1.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 oe; };HTMLEditor.O3= function (X,link){function O1f(O1m,text){if (!O1m || text.length==0){setTimeout( function (){X.I1d( false); } ,012); }else {link.title=text; link.setAttribute("title",text); if (HTMLEditor.is_ie){setTimeout( function (){var i1a=X.l1.body.createControlRange(); i1a.add(link); i1a.select(); } ,0); }else if (HTMLEditor.i10){X.f= true; X.focusEditor(); }X.l13(); }return true; }X.O10(); var title=link.title; if (title==null || typeof title=="undefined")title=link.getAttribute("title"); X.Oi("_insertPlaceHolder",X.If("placeholder","Edit PlaceHolder"),O1f,title); };HTMLEditor.prototype.insertSpec= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1f(O1m,html){if (!O1m){X.I1d( false); }else {if (!X.o11(html)){X.I1d( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.i16(Ip); if (HTMLEditor.i10)X.f= true; X.I16(Ip,Oq); X.updateToolbar(); X.focusEditor(); } ,0); }X.l13(); }}return true; }X.O10(); X.Oi("_insertSpec",X.Of("special-characters","Insert a special character"),O1f); };HTMLEditor.prototype.spellCheck= function (ip){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1f(O1m,l1u){if (!O1m){X.I1d( false); }else {if (HTMLEditor.i10){X.f= true; X.focusEditor(); }X.updateToolbar(); X.focusEditor(); }if (typeof ip=="function")setTimeout( function (){ip(O1m); X.l13(); } ,0); X.l13(); return true; }X.O10(); X.i1u( function (I1u){X.Om(); X.updateToolbar(); X.Oi("_spellCheck",X.Of("spell-checker","Spell checker"),I1u,O1f); } ); };HTMLEditor.prototype.customPopup= function (o1v,O1v,l1v,l1h,I1r,i1v,i1o,I1v,o1w){var X=this ; var O1w=l1h; if (l1h!=null && typeof l1h=="function"){O1w= function (Iw,l1r){var oe=l1h(Iw,l1r); if (Iw!=null){setTimeout( function (){X.l13(); } ,0144); }return oe; } ; }X.Oi("_customPopup",o1v,O1v,l1v,O1w,I1r,i1v,i1o,I1v,o1w); };HTMLEditor.prototype.insertHR= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; try { this.O10(); if (HTMLEditor.is_Safari)this.lq(this.oq()); var l1w=this.l1.createElement("div"); l1w.innerHTML="<hr>"; var ik=l1w.firstChild; var X=this ; var i1w=this.I1w(); if (!i1w)return; var parent=i1w.parentNode; parent.insertBefore(ik,i1w); parent.removeChild(i1w); ik=(ik.nextSibling)?ik.nextSibling:ik; HTMLEditor.l1n(ik,X); setTimeout( function (){X.l13(); X.updateToolbar(); } ,5); X.focusEditor(); return true; }catch (t){alert("HR: "+t.message); }};HTMLEditor.l1n= function (o1x,X){var ik=o1x; if (HTMLEditor.is_ie){var Ip=X.oq(); var Oq=X.lq(Ip); var O1x=0,_top=0; var l1x=(ik.nodeType==3); var span; if (l1x){span=X.l1.createElement("SPAN"); ik.parentNode.insertBefore(span,ik); ik=span; }while (ik){if (ik.tagName.toUpperCase()=="BODY")break; O1x+=ik.offsetLeft; _top+=ik.offsetTop; ik=ik.offsetParent; if (ik){O1x+=ik.clientLeft; _top+=ik.clientTop; }}if (l1x){span.parentNode.removeChild(span); }if (Ip.type.toLowerCase()!="control"){try {Oq.moveToPoint(O1x,_top); }catch (t){}}Oq.select(); }else {var Ip=X.oq(); var Oq=X.lq(); Oq.setStart(ik,0); Oq.setEnd(ik,0); X.i16(Ip); if (HTMLEditor.i10)X.f= true; X.I16(Ip,Oq); X.focusEditor(); }};HTMLEditor.prototype.getRange= function (){return this.lq(this.oq()); };HTMLEditor.prototype.setRange= function (Oq){try {if (HTMLEditor.is_ie){Oq.select(); }else {var Ip=this.oq(); this.i16(Ip); this.I16(Ip,Oq); } this.focusEditor(); }catch (t){}};HTMLEditor.prototype._butState= function (i1x,I1x){var id=document.getElementById(i1x); var ik=id; this.o1y=I1x; var status=this.o1y(); if (ik.tagName.toUpperCase()=="IMG"){var ll=ik.getAttribute("but_status"); if (ll && ll.length>0){if (ll!=((status)?"_a": "_n")){ik.setAttribute("but_status",((status)?"_a": "_n")); ik.src=((status)?ik.getAttribute("active_src"):ik.getAttribute("passive_src")); }return; }var ok=ik.src; var o1c=ok.search(/_[nahp]\.gif/i); if (o1c>0 && ok.substring(o1c,2).toLowerCase()!=((status)?"_a": "_n")){ok=ok.substring(0,o1c)+((status)?"_a.gif": "_n.gif"); ik.src=ok; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.O1y(ik,ok);} ,0144); return; }}};HTMLEditor.prototype._butOver= function (ik){return; if (this.isPopup())return; if (ik.tagName.toUpperCase()=="IMG"){var ok=ik.src; var o1c=ok.search(/_[nahp]\.gif/i); if (o1c>0){ik.setAttribute("save_src",ok); if (ok.search(/_a\.gif/i)>0)ok=ok.substring(0,o1c)+"_p.gif"; else ok=ok.substring(0,o1c)+"_h.gif"; ik.src=ok; ik.setAttribute("save_over","1"); return; }}if (ik.className=="HE_button")ik.className="HE_button_over"; };HTMLEditor.prototype._butOut= function (ik){return; if (ik.tagName.toUpperCase()=="IMG"){var ok=ik.src; var o1c=ok.search(/_[nahp]\.gif/i); if (o1c>0){var ll=ik.getAttribute("save_src"); if (ll && ll.length>0)ik.src=ll; ik.setAttribute("save_over",""); return; }}if (ik.className=="HE_button_over")ik.className="HE_button"; };HTMLEditor.prototype._butDown= function (ik){var X=this ; if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; if (X.Iz){X.Iz.select(); X.Iz=null; }}if (this.isPopup())return; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (ik.tagName.toUpperCase()=="IMG"){var X=this ; var ll=ik.getAttribute("but_status"); if (ll && ll.length>0){if (ll!="_a"){ik.setAttribute("but_status","_a"); ik.src=ik.getAttribute("active_src"); X.l1y=setTimeout( function (){X._butUp(ik); X.l1y=null; } ,03720); }return; }var ok=ik.src; var o1c=ok.search(/_[nahp]\.gif/i); if (o1c>0 && ok.substring(o1c,2).toLowerCase()!="_a"){ok=ok.substring(0,o1c)+"_a.gif"; ik.src=ok; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.O1y(ik,ok);} ,0144); X.l1y=setTimeout( function (){X._butUp(ik); X.l1y=null; } ,03720); return; }}};HTMLEditor.O1y= function (ik,i1y){var I1y=ik.src.search(/_[nahp]\.gif/i); var o1z=i1y.search(/_[nahp]\.gif/i); if (I1y>0 && o1z>0 && ik.src.substring(0,I1y).toLowerCase()==i1y.substring(0,o1z).toLowerCase())return; ik.src=i1y; setTimeout( function (){HTMLEditor.O1y(ik,i1y);} ,0144); };HTMLEditor.prototype._butUp= function (ik){if (ik.tagName.toUpperCase()=="IMG"){var X=this ; var ll=ik.getAttribute("but_status"); if (ll && ll.length>0){if (ll!="_n"){if (X.l1y){clearTimeout(X.l1y); X.l1y=null; }ik.setAttribute("but_status","_n"); ik.src=ik.getAttribute("passive_src"); }return; }var ok=ik.src; var o1c=ok.search(/_[nahp]\.gif/i); if (o1c>0 && ok.substring(o1c,2).toLowerCase()!="_n"){if (X.l1y){clearTimeout(X.l1y); X.l1y=null; }ok=ok.substring(0,o1c)+"_n.gif"; ik.src=ok; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.O1y(ik,ok);} ,0144); }}return true; };HTMLEditor.prototype.I1w= function (O1z){var ik=this.l1.createElement("SPAN"); var X=this ; ik.id=HTMLEditor.il; if (typeof O1z=="undefined"){if (!this.o11(HTMLEditor.getHTML(ik, true)))return null; }else {if (O1z.nextSibling==null)O1z.parentNode.appendChild(ik); else O1z.parentNode.insertBefore(ik,O1z.nextSibling); O1z.parentNode.removeChild(O1z); }ik=this.l1.getElementById(HTMLEditor.il); ik.id=null; ik.removeAttribute("id"); ik.setAttribute("para","no"); var parent=ik.parentNode; while (parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="TD" && parent.tagName.toUpperCase()!="P" && parent.tagName.toUpperCase()!="DIV"){if (HTMLEditor.O1i(parent.tagName))parent=parent.parentNode; else break; }if (parent.tagName.toUpperCase()=="P"){ik.setAttribute("para",""); function l1z(add,ik,i1z,I1z){var o20; var par=HTMLEditor.O20(i1z,X.l1, false); if (add)par.appendChild(add); while (ik){if (ik.nodeType==1 || (ik.nodeType==3 && HTMLEditor.l12(""+ik.data+"").length>0)){var text=null; if (ik.tagName && ik.tagName.toUpperCase()=="SCRIPT")text=ik.text; var l20=HTMLEditor.O20(ik,X.l1, true); if (par.childNodes.length==0 || !I1z)par.appendChild(l20); else par.insertBefore(l20,par.firstChild); if (text!=null)l20.text=text; }ik=I1z?ik.previousSibling:ik.nextSibling;}if (par.childNodes.length==0){ delete par; par=null; }if (i1z==parent)return par; else return l1z(par,I1z?i1z.previousSibling:i1z.nextSibling,i1z.parentNode,I1z); } ; var i20=l1z(null,ik.previousSibling,ik.parentNode, true); var I20=l1z(null,ik.nextSibling,ik.parentNode, false); var par=parent.parentNode; if (i20){par.insertBefore(i20,parent); ik.setAttribute("para",ik.getAttribute("para")+" left"); }par.insertBefore(ik,parent); if (I20){par.insertBefore(I20,parent); ik.setAttribute("para",ik.getAttribute("para")+" right"); }par.removeChild(parent); }return ik; };HTMLEditor.prototype.mode= function (){return this.O1; };HTMLEditor.prototype.o1g= function (o21,value){ this.i1h(o21, false ,value); };HTMLEditor.prototype.O21= function (o21){return this.O1g(o21); };HTMLEditor.prototype.l21= function (){if (HTMLEditor.is_ie)return "&nbsp;"; else return "<br/>"; };HTMLEditor.prototype.insertTable= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var Ip=this.oq(); var Oq; try {Oq=this.lq(Ip); }catch (Oj){alert(this.Ie("click-to-editor","Click to editing panel.")); X.i16(Ip); return; }if (HTMLEditor.getSelParent(this ).ownerDocument.id!="EditorDocument"){alert(this.Ie("click-to-editor","Click to editing panel.")); return false; }var X=this ; var Iw=X.l1; this.O10(); var l1w=this.l1.createElement("div"); l1w.innerHTML="<table></table>"; var table=l1w.firstChild; function O1f(O1m){var ik=table; if (O1m){ik=ik.firstChild.firstChild.firstChild; HTMLEditor.l1n(ik,X); setTimeout( function (){X.updateToolbar(); X.l13(); } ,5); }else {X.I1d( 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 i21=table.insertRow(table.rows.length); for (var ig=0; ig<this.defaultTable.columns; ig++){var cell=i21.insertCell(i21.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.l21(); }}var i1w=this.I1w(); if (!i1w){X.I1d( false); return; }var parent=i1w.parentNode; parent.insertBefore(table,i1w); parent.removeChild(i1w); X.Oi("_tableProperties",X.Of("table","Insert a Table"),table,O1f,0,0); };HTMLEditor.prototype.makeNotEditable= function (){var X=this ; if (!(X.o1 && X.mode()=="html" && !X.isPopup()))return; var o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(X.O1a()): ""; var Ip=X.oq(); var Oq=X.lq(Ip); if (X.Iq())return; if (!((HTMLEditor.is_ie && Oq.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0)))return; var Ip=X.oq(); var Oq=X.lq(Ip); var I21=HTMLEditor.il+"_right"; var o22=HTMLEditor.il+"_left"; var O22=null; var l22=null; if (HTMLEditor.is_ie){O22=Oq.duplicate(); l22=Oq.duplicate(); O22.setEndPoint("EndToStart",Oq); l22.setEndPoint("StartToEnd",Oq); }else {O22=Oq.cloneRange(); l22=Oq.cloneRange(); O22.setEnd(O22.startContainer,O22.startOffset); l22.setStart(l22.endContainer,l22.endOffset); }var i19=null; var I19=null; X.O10(); if (!X.o11("<span id='"+I21+"'/>",l22))return []; if (!X.o11("<span id='"+o22+"'/>",O22)){var i22=X.l1.getElementById(I21); if (i22!=null){ok=i22.parentNode; ok.removeChild(i22); }X.I1d( false); return; }i19=X.l1.getElementById(o22); I19=X.l1.getElementById(I21); if (i19==null){var span=X.l1.createElement("SPAN"); span.id=o22; I19.parentNode.insertBefore(span,I19); i19=span; }if (I19==null){var span=X.l1.createElement("SPAN"); span.id=I21; if (i19.nextSibling)i19.parentNode.insertBefore(span,i19.nextSibling); else i19.parentNode.appendChild(span); I19=span; }HTMLEditor.I22(i19); HTMLEditor.I22(I19); var o23=HTMLEditor.O23(i19,I19); var l23=null; if (o23!=null){var parent=o23.parent; var i23=parent.tagName.toUpperCase(); var ik=null; if (i23=="TR" || i23=="TBODY" || i23=="TABLE"){var ik=parent; while (ik && ik.tagName.toUpperCase()!="TABLE")ik=ik.parentNode; }else if (i23=="OL" || i23=="UL" || i23=="DL"){var ik=parent; }if (ik!=null){ik.parentNode.insertBefore(i19,ik); if (ik.nextSibling)ik.parentNode.insertBefore(I19,ik.nextSibling); else ik.parentNode.appendChild(I19); o23=HTMLEditor.O23(i19,I19); parent=o23.parent;}var I23=o23.parent.childNodes.item(o23.o24); var O24=o23.parent.childNodes.item(o23.l24); var i24="SPAN"; l23=X.l1.createElement(i24); if (HTMLEditor.is_ie)l23.contentEditable="false"; else l23.setAttribute("contenteditable","false"); parent.insertBefore(l23,I23);while (I23!=null){var I24=I23.nextSibling; l23.appendChild(I23); if (I23==O24)break; I23=I24; }if (HTMLEditor.is_ie){Oq=X.l1.body.createControlRange(); Oq.add(l23); Oq.select(); }else {Ip=X.oq(); var l16; if (l23.nextSibling!=null && l23.nextSibling.nodeType==3){l16=l23.nextSibling; }else {l16=X.l1.createTextNode(""); if (l23.nextSibling!=null)l23.parentNode.insertBefore(l16,l23.nextSibling); else l23.parentNode.appendChild(l16); }X.i16(Ip); Oq=X.lq(Ip); Oq.setStart(l16,0); Oq.setEnd(l16,0); X.I16(Ip,Oq); }}if (i19!=null)i19.parentNode.removeChild(i19); if (I19!=null)I19.parentNode.removeChild(I19); if (l23!=null){var index=HTMLEditor.O16(l23); HTMLEditor.o25(l23.parentNode,this.l1,index,index+1); }};HTMLEditor.prototype.insertIMG= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var Ip=this.oq(); var Oq=this.lq(Ip); var X=this ; var Iw=X.l1; this.O10(); function O1f(O1m){try {var ik=Iw.getElementById(HTMLEditor.il); ik.id=null; ik.removeAttribute("id"); if (O1m){if (HTMLEditor.is_Safari){ik=(ik.nextSibling)?ik.nextSibling:ik; setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.i16(Ip); X.I16(Ip,Oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){var i1a=Iw.body.createControlRange(); i1a.add(ik); i1a.select(); }else {if (HTMLEditor.i10)X.f= true; ik=(ik.nextSibling)?ik.nextSibling:ik; HTMLEditor.l1n(ik,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.l13(); }else {X.I1d( false); }X.focusEditor(); }catch (t){alert("IMG create: "+t.message); }return true; }var l1w=this.l1.createElement("div"); l1w.innerHTML="<img>"; var img=l1w.firstChild; img.id=HTMLEditor.il; img.src=""; img.alt=""; img.border=0; img.align=""; img.vspace=0; img.hspace=0; if (!HTMLEditor.is_ie){}if (this.o11(HTMLEditor.getHTML(img, true))){var ik=Iw.getElementById(HTMLEditor.il); this.Oi("_imageProperties",this.Of("image","Insert Image"),ik,O1f, true); }else {X.I1d( false); }};HTMLEditor.prototype.insertFlash= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var Ip=this.oq(); var Oq=this.lq(Ip); var X=this ; var Iw=X.l1; this.O10(); function O1f(O1m){try {var ik=Iw.getElementById(HTMLEditor.il); ik.id=null; ik.removeAttribute("id"); if (O1m){if (HTMLEditor.is_Safari){ik=(ik.nextSibling)?ik.nextSibling:ik; setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.i16(Ip); X.I16(Ip,Oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){ik.id=HTMLEditor.il; this.O10(); setTimeout( function (){X.I1d( false); var l1b=X.l1.getElementById(HTMLEditor.il); l1b.id=null; l1b.removeAttribute("id"); var i1a=X.l1.body.createControlRange(); i1a.add(l1b); i1a.select(); } ,0); }else {if (HTMLEditor.i10)X.f= true; ik=(ik.nextSibling)?ik.nextSibling:ik; HTMLEditor.l1n(ik,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.l13(); }else {X.I1d( false); }X.focusEditor(); }catch (t){alert("Flash create: "+t.message); }return true; }var l1w=this.l1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); l1w.innerHTML="\x3cembed src=\""+src+"\" type=\"application/x-shockwave-flash\" id=\""+HTMLEditor.il+"\" quality=\"high\" wmode=\"transparent\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" >"; }else {l1w.innerHTML="\x3cimg type=\"application/x-shockwave-flash\" dummytag=\"embed\" id=\""+HTMLEditor.il+"\" 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;\""+"/>"; l1w.firstChild.style.backgroundImage="url('"+X.Q[2]+"')"; }var O25=l1w.firstChild; var l25=HTMLEditor.getHTML(O25, true); if (this.o11(l25)){var ik=Iw.getElementById(HTMLEditor.il); this.Oi("_flashProperties",this.Of("flash","Insert Flash"),ik,O1f); }else {X.I1d( false); }};HTMLEditor.prototype.insertMedia= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var Ip=this.oq(); var Oq=this.lq(Ip); var X=this ; var Iw=X.l1; this.O10(); function O1f(O1m){try {var ik=Iw.getElementById(HTMLEditor.il); ik.id=null; ik.removeAttribute("id"); if (O1m){if (HTMLEditor.is_Safari){ik=(ik.nextSibling)?ik.nextSibling:ik; setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.i16(Ip); X.I16(Ip,Oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){ik.id=HTMLEditor.il; this.O10(); setTimeout( function (){X.I1d( false , function (){var l1b=X.l1.getElementById(HTMLEditor.il); l1b.id=null; l1b.removeAttribute("id"); var i1a=X.l1.body.createControlRange(); i1a.add(l1b); i1a.select(); } ); } ,0); }else {if (HTMLEditor.i10)X.f= true; ik=(ik.nextSibling)?ik.nextSibling:ik; HTMLEditor.l1n(ik,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.l13(); }else {X.I1d( false); }X.focusEditor(); }catch (t){alert("Media create: "+t.message); }return true; }var l1w=this.l1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); l1w.innerHTML="\x3cembed src=\""+src+"\" type=\"application/x-mplayer2\" id=\""+HTMLEditor.il+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\" >"; }else {l1w.innerHTML="\x3cimg type=\"application/x-mplayer2\" dummytag=\"embed\" id=\""+HTMLEditor.il+"\" 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;\""+"/>"; l1w.firstChild.style.backgroundImage="url('"+X.Q[3]+"')"; }var O25=l1w.firstChild; if (this.o11(HTMLEditor.getHTML(O25, true))){var ik=Iw.getElementById(HTMLEditor.il); this.Oi("_mediaProperties",this.Of("media","Insert Media"),ik,O1f); }else {X.I1d( false); }};HTMLEditor.i0= function (){ this.width="auto"; this.height="auto"; this.i25="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.I25=050; HTMLEditor.prototype._changeHeight= function (o26){var X=this ; var I24=document.getElementById(X.mainDivId); var O26=null; var height; if (this.ShowQuickFormatDivId!=null)O26=document.getElementById(X.ShowQuickFormatDivId); if (parseInt(X.o14.style.height)+o26<0)return; if (this.O1=="text"){if (this.ShowQuickFormatDivId!=null)HTMLEditor.i17(this.ShowQuickFormatDivId); }else {if (!this._autoFocus && !this._wasFocused){HTMLEditor.i17(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i17(this.ShowQuickFormatDivId); }}var I17=I24.offsetWidth; try {height=parseInt(X._textArea.style.height)+o26+"px"; X._textArea.style.height=height; }catch (t){}height=parseInt(X.o14.style.height)+o26+"px"; X.o14.style.height=height; X.O8.I8=height; if (HTMLEditor.is_ie && document.compatMode!="BackCompat")X.O8.I8=parseInt(height)+2+"px"; if (!HTMLEditor.is_Safari){if (typeof X.Ox!="undefined"){X.Ox=parseInt(X.Ox)+o26; }}if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+o26+"px"; }if (X.Ov){X.Ov.style.height=parseInt(X.Ov.style.height)+o26+"px"; }if (O26){height=parseInt(O26.childNodes.item(1).style.height)+o26+"px"; O26.childNodes.item(1).style.height=height; }if (!HTMLEditor.is_ie){if (I17!=I24.offsetWidth){X._onresize(); }}if (X.O1=="text"){if (X.ShowQuickFormatDivId!=null)HTMLEditor.I13(X.ShowQuickFormatDivId); }else {if (!X._autoFocus && !X._wasFocused){HTMLEditor.I13(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I13(X.ShowQuickFormatDivId, true); }}};HTMLEditor.prototype.increaseHeight= function (){ this._changeHeight(HTMLEditor.I25); };HTMLEditor.prototype.decreaseHeight= function (){ this._changeHeight(0-HTMLEditor.I25); };HTMLEditor.prototype.setHeight= function (size){try { this._changeHeight(size-document.getElementById(this.mainDivId).offsetHeight); }catch (t){}};HTMLEditor.prototype._onresize= function (t){var X=this ; if (typeof t!="undefined"){if (!X._autoFocus && !X._wasFocused){HTMLEditor.i17(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.i17(X.ShowQuickFormatDivId); }}var I24=document.getElementById(X.mainDivId); var o1d=document.getElementById(X.panelDivId); if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.l26 && typeof X.l26!="undefined"){X.o14.style.visibility="hidden"; }try {if (X.O8.i26!=I24.offsetWidth){var width=I24.offsetWidth-X.O8.i26; if (!HTMLEditor.is_ie){if (X.O8.i18!=o1d.offsetHeight)width-=2; X.o14.style.width=parseInt(X.o14.style.width)+width+"px"; X.O8.i8=X.o14.style.width; if (X._iframe){X._iframe.style.width=X.o14.style.width; }if (X.Ov){X.Ov.style.width=X.o14.style.width; }}X.O8.i26=I24.offsetWidth; X.O8.I26=o1d.offsetWidth; }if (X.O8.i18!=o1d.offsetHeight){var height=X.O8.i18-((o1d.style.display=="none")?0:o1d.offsetHeight); X.o14.style.height=parseInt(X.o14.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 o27=(o1d.offsetWidth>0)?o1d.offsetWidth:X.lx; if (!HTMLEditor.is_ie){X._iframe.style.width=o27-2+"px"; }}if (X.Ov && X.Ov.style.display!="none"){X.Ov.style.height=parseInt(X.Ov.style.height)+height+"px"; if (!HTMLEditor.is_ie){X.Ov.style.width=o27-2+"px"; }}X.O8.I8=parseInt(X.O8.I8)+height+"px"; if (X.Ov!=null && X.Ov.style.display=="none")X.Ov.style.height=X.O8.I8; if (!HTMLEditor.is_ie){X.O8.i8=o27-2+"px"; X.o14.style.width=o27-2+"px"; X.lx=o27; }X.O8.i18=o1d.offsetHeight; }}catch (t){}if (typeof t!="undefined"){if (!X._autoFocus && !X._wasFocused){HTMLEditor.I13(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I13(X.ShowQuickFormatDivId, true); }}if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.l26 && typeof X.l26!="undefined"){X.l26=X.o14.value; X.o14.value=""; X.o14.style.visibility="hidden"; X.setTimeout( function (iw){if (X.ou(iw))return; X.o14.value=X.l26; X.l26=null;X.o14.style.visibility="visible"; X.focusEditor(); } ,036); }};HTMLEditor.prototype.I18= function (I17){var X=this ; function O27(){var Iw; if (HTMLEditor.is_Safari)Iw=document.getElementById(X._hiddenContent+"_inner_iframePreview").contentWindow.document; else Iw=X.Ov.contentWindow.document; if (!Iw){if (HTMLEditor.l27 || HTMLEditor.i10){setTimeout( function (){O27(); } ,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var i27=I17; var I27= false; function o28(O28,i20,I20){i27=I20; I27= true; }I17.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,o28); I17=i27; Iw.open(); var html=new l28(); 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 i28=0; i28<X._addCssFiles.length; i28++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[i28]+"\" 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(I17); html.write("</body>"); html.write("</html>"); Iw.write(html.toString()); Iw.close(); if (HTMLEditor.is_ie)X.Ov.style.visibility="visible"; setTimeout( function (){if (!HTMLEditor.is_Safari){var o1d=document.getElementById(X.panelDivId); o1d.style.display="none"; }if (X.ShowQuickFormatDivId!=null){}if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_ie){X.Ov.style.width="100%"; setTimeout( function (){X.Ov.style.width=X.Ov.offsetWidth+"px"; X.o14.style.width=X.Ov.offsetWidth+"px"; } ,0); X.Ov.style.height=X.O8.I8; }}} ,0); X.Om(); }setTimeout(O27,(HTMLEditor.l27 || HTMLEditor.i10)?0144: 0); };HTMLEditor.l8= function (className){if (HTMLEditor.is_Safari)return true; var I28=document.styleSheets,o29=I28.length; var O29= false; var l1u=[]; function l29(i29){if (i29.imports){try {var imports=i29.imports,o29=imports.length; for (var i=0; i<o29; i++)l29(i29.imports[i]); }catch (t){}}try {var rules=HTMLEditor.is_ie?i29.rules:i29.cssRules,o29=rules.length; for (var ig=0; ig<o29; ig++)I29(rules[ig]); }catch (t){}}function I29(rule){try {var select=rule.selectorText,style=rule.style; l1u.push( {select:select,style:style } ); }catch (w){}}for (var i=0; i<o29; i++)l29(I28[i]); for (var i=0; i<l1u.length; i++){try {var item=l1u[i]; if (item.select.indexOf(className)>=0)return true; }catch (w){}}return O29; };HTMLEditor.prototype.Ow= function (){var X=this ; var Y=this._textArea; if (X.O8==null){if (HTMLEditor.l8(".HE_editPanel")){X.O8= {i8:X._textArea.offsetWidth,I8:X._textArea.offsetHeight } ; }else {setTimeout( function (){X.Ow(); } ,062); return; }}var height=(this.I.height=="auto"?(parseInt(this.O8.I8)+"px"): this.I.height); height=parseInt(height); var width=(this.I.width=="auto"?(parseInt(this.O8.i8)+"px"): this.I.width); width=parseInt(width); var Oh=HTMLEditor.l12(X._textArea.value); if (X.F==null){X.F=[]; function o2a(O28,i20){X.F.push(O28); return ""; }Oh=Oh.replace(/(<style(?:[^>]*?)>(?:[^<]*?)<\/style(?:[^>]*?)>)/gi,o2a); X._textArea.value=Oh; }Y.style.display="none"; var O2a=document.createElement("div"); O2a.className="inner_htmlarea"; this.o1=O2a; Y.parentNode.insertBefore(O2a,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"; O2a.appendChild(iframe); this._iframe=iframe; iframe.marginHeight="0"; iframe.marginWidth="0"; iframe.style.borderWidth="0px"; if (HTMLEditor.is_ie)iframe.style.width="100%"; else {if (!HTMLEditor.i10 && document.compatMode!="BackCompat")width-=2; iframe.style.width=width+"px"; }iframe.style.height=height+"px"; this.Ov=document.createElement("iframe"); this.Ov.style.display="none";if (HTMLEditor.is_ie)this.Ov.style.visibility="hidden"; this.Ov.id=X._hiddenContent+"_inner_iframePreview"; this.Ov.name=X._hiddenContent+"_inner_iframePreview"; if (this.ignoreTab)this.Ov.tabIndex=-1; if (HTMLEditor.is_ie)this.Ov.src="javascript:false;"; this.Ov.className="inner_iframe"; O2a.appendChild(this.Ov); this.Ov.marginHeight="0"; this.Ov.marginWidth="0"; this.Ov.style.borderWidth="0px"; if (HTMLEditor.is_ie)this.Ov.style.width="100%"; else { this.Ov.style.width=width+"px"; } this.Ov.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"; O2a.appendChild(Y); this.o14=Y; function l2a(iw){if (X.ou(iw))return; var Iw; if (HTMLEditor.is_Safari)Iw=document.getElementById(X._hiddenContent+"_inner_iframe").contentWindow.document; else Iw=X._iframe.contentWindow.document; if (!Iw){if (HTMLEditor.l27 || HTMLEditor.i10){X.setTimeout(l2a,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}try {if (HTMLEditor.l27 || HTMLEditor.i10){Iw.designMode="on"; }}catch (t){document.location.reload( true); return false; }X.l1=Iw; Iw.open(); var html=new l28(); 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.il: "")+">"); 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 i2a=0; i2a<X.F.length; i2a++)html.write(X.F[i2a]); html.write("\x3cstyle>\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var i28=0; i28<X._addCssFiles.length; i28++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[i28]+"\" 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 Oh=Oh.replace(/&amp;/ig,"&"); if (Oh.length==0){if (HTMLEditor.is_ie){}else {Oh="<br/>"; }}if (!HTMLEditor.is_ie){if (/<iframe/.test(Oh)){X.I10=Oh; Oh="";}else {X.I10=null; }}html.write(Oh); html.write("</body>"); html.write("</html>"); Iw.write(html.toString()); Iw.close(); if (HTMLEditor.is_ie && X._autoFocus)X._iframe.style.visibility="visible"; Iw.id="EditorDocument"; if (HTMLEditor.is_ie){function I2a(ik){if (ik.nodeType==1 && ik.tagName){var Ik=ik.tagName.toUpperCase(); if (Ik!="INPUT" && Ik!="TEXTAREA" && Ik!="IFRAME"){ik.unselectable="on"; }for (var o2b=0; o2b<ik.childNodes.length; o2b++)I2a(ik.childNodes.item(o2b)); }}I2a(document.getElementById(X.mainDivId)); Iw.body.unselectable="off"; Y.unselectable="off"; if (X._autoFocus)Iw.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.lv(Iw,["keydown","keypress","mousedown","mouseup","dblclick"], function (event){return X.O2b(event); } ); if (HTMLEditor.i10)HTMLEditor.Ok(X._iframe,"blur", function (event){X.f= false; HTMLEditor._stopEvent(event); return true; } ); if (HTMLEditor.i10)HTMLEditor.Ok(X._iframe,"focus", function (event){X.f= true; HTMLEditor._stopEvent(event); return true; } ); if (X._NoDrop){if (HTMLEditor.is_ie){HTMLEditor.lv(Iw.body,["drop"], function (event){HTMLEditor._stopEvent(event); return false; } ); HTMLEditor.lv(Iw.body,["dragenter","dragover"], function (event){HTMLEditor._stopEvent(event); return false; } ); }else {HTMLEditor.lv(Iw,["dragdrop"], function (event){HTMLEditor._stopEvent(event); return false; } ); }}if (X._NoPaste && HTMLEditor.is_ie){HTMLEditor.lv(Iw.body,["beforepaste","paste"], function (event){HTMLEditor._stopEvent(event); return false; } ); }if (!X.l2b){var o1d=document.getElementById(X.mainDivId); X.O8.i26=o1d.offsetWidth; o1d=document.getElementById(X.panelDivId); X.O8.i18=o1d.offsetHeight; X.O8.I26=o1d.offsetWidth; if (!o1d.style.width || o1d.style.width.indexOf("px")<0){X.l2b= true; HTMLEditor.Ok(X.I0,"resize", function (event){X._onresize(event); } ); }if (X.__NoToolBar__ || HTMLEditor.i10){if (X.__NoToolBar__)o1d.style.display="none"; X.setTimeout( function (iw){if (X.ou(iw))return; X._onresize(); if (HTMLEditor.is_Safari || HTMLEditor.i10){X._iframe.style.width="100%"; X.setTimeout( function (iw){if (X.ou(iw))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.o14.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }}else {X.setTimeout( function (iw){if (X.ou(iw))return; if (X.__NoToolBar__){var o1d=document.getElementById(X.panelDivId); o1d.style.display="none"; }if (HTMLEditor.is_Safari)X.setTimeout( function (iw){if (X.ou(iw))return; X._onresize(); } ,0); else {X._onresize(); }if (!HTMLEditor.is_ie){X._iframe.style.width="100%"; X.setTimeout( function (iw){if (X.ou(iw))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.o14.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }} ; X.setTimeout(l2a,(HTMLEditor.l27 || HTMLEditor.i10)?0144: 0); this.i2b= true; } ; HTMLEditor.i4= function (X,table,I2b){function O1f(O1m){if (!O1m){X.I1d( false); }else {if (HTMLEditor.i10){X.f= true; X.focusEditor(); }setTimeout( function (){X.updateToolbar(); X.l13(); } ,012); }return true; }var o2c=0,O2c=0; while (I2b!=null){if (I2b.tagName){if (I2b.tagName.toUpperCase()=="TD"){if (HTMLEditor.is_Safari){var l2c=I2b.parentNode; for (var i=0; i<l2c.cells.length; i++)if (l2c.cells.item(i)==I2b){O2c=i; break; }}else O2c=I2b.cellIndex; o2c=I2b.parentNode.rowIndex; break; }}I2b=I2b.parentNode; }X.O10(); 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.Oi("_tableProperties",X.If("table","Edit a Table"),table,O1f,o2c,O2c); };HTMLEditor.l4= function (X,cell){function O1f(O1m){if (!O1m){X.I1d( false); }else {if (HTMLEditor.i10){X.f= true; X.focusEditor(); }X.updateToolbar(); X.l13(); }return true; }X.O10(); X.Oi("_cellProperties",X.If("cell","Edit a Cell"),cell,O1f); };HTMLEditor.l3= function (X,img){function O1f(O1m){if (!O1m){setTimeout( function (){X.I1d( false); } ,012); }else {if (HTMLEditor.is_ie){setTimeout( function (){var i1a=X.l1.body.createControlRange(); i1a.add(img); i1a.select(); } ,0); }else if (HTMLEditor.i10){X.f= true; X.focusEditor(); }X.l13(); }return true; }X.O10(); X.Oi("_imageProperties",X.If("image","Edit an Image"),img,O1f); };HTMLEditor.prototype.editImage= function (img){if (img.tagName && img.tagName.toUpperCase()=="IMG")HTMLEditor.l3(this,img); };HTMLEditor.I1= function (X,ik){var i2c= false; try {X.O10(); i2c= true; if (!HTMLEditor.is_ie)ik=HTMLEditor.contentEditable(ik); ik.contentEditable="inherit"; ik.removeAttribute("contenteditable"); if (ik.tagName && (ik.tagName.toUpperCase()=="SPAN" || ik.tagName.toUpperCase()=="DIV")){var count=0; if (ik.attributes)for (var i=0; i<ik.attributes.length; i++){var I2c=ik.attributes[i]; if (I2c.name.toUpperCase()=="STYLE")continue; if (I2c.specified)count++; }var o2d=(ik.style)?ik.style.cssText: ""; var par=ik.parentNode; if (count==0 && o2d.length==0){while (ik.firstChild!=null)par.insertBefore(ik.firstChild,ik); par.removeChild(ik); }HTMLEditor.o25(par,X.l1); }}catch (w){try {if (i2c)X.I1d( false); if (HTMLEditor.is_ie){HTMLEditor.l1n(ik,X); }}catch (O2d){}}};HTMLEditor.o2= function (X,O25){function O1f(O1m){if (!O1m){setTimeout( function (){X.I1d( false); } ,0); }else {if (HTMLEditor.is_ie){O25.id=HTMLEditor.il; X.O10(); setTimeout( function (){X.I1d( false); var l1b=X.l1.getElementById(HTMLEditor.il); l1b.id=null; l1b.removeAttribute("id"); var i1a=X.l1.body.createControlRange(); i1a.add(l1b); i1a.select(); } ,0); }else if (HTMLEditor.i10){X.f= true; X.focusEditor(); }X.l13(); }return true; }X.O10(); X.Oi("_flashProperties",X.If("flash","Edit a Flash"),O25,O1f); };HTMLEditor.I2= function (X,media){function O1f(O1m){if (!O1m){setTimeout( function (){X.I1d( false); } ,012); }else {if (HTMLEditor.is_ie){X.O10(); setTimeout( function (){X.I1d( false); } ,012); }else if (HTMLEditor.i10){X.f= true; X.focusEditor(); }X.l13(); }return true; }X.O10(); X.Oi("_mediaProperties",X.If("media","Edit Media"),media,O1f); };HTMLEditor.prototype.l2d= function (media,Oo){var X=this;if (media!=null){media.id=HTMLEditor.il; }X.O10(); X.Ov.style.display="none"; if (HTMLEditor.is_ie)X.Ov.style.visibility="hidden"; try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); if (HTMLEditor.is_ie)X.oq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var ll=X.o1.removeChild(X._iframe); X._textArea.value=""; X._textArea.style.visibility="hidden"; X._textArea.style.display=""; X._iframe=null; delete ll; }catch (t){}setTimeout( function (){X.activate( function (){X.i2d( false); if (media!=null){var l1b=X.l1.getElementById(HTMLEditor.il); l1b.id=null; l1b.removeAttribute("id"); media=l1b; }if (typeof Oo=="function")Oo(media); } ); } ,0); };HTMLEditor.i2= function (X,I2d){X.O10(); var o2e=I2d; if (o2e.getAttribute(HTMLEditor.Is) && o2e.getAttribute(HTMLEditor.Is).length>0){var ok=X.ot(o2e); if (ok!=null)o2e=ok; }setTimeout( function (){if (HTMLEditor.is_ie){var Ip=X.oq(); Ip.empty(); }var par=o2e.parentNode; if (par!=null){par.removeChild(o2e); if (par.tagName && par.tagName.toUpperCase()=="TD" && par.childNodes.length==0){par.innerHTML=X.l21(); }}if (HTMLEditor.is_ie){var i15=X.K[X.O1d-1]; var Ip=X.oq(); Ip.empty(); var Oq=X.l1.body.createTextRange(); try {Oq.moveToPoint(i15.O2e,i15.l2e); }catch (t){}Oq.select(); Oq.execCommand("refresh", false , false); }X.l13(); } ,012); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.DeleteNode= function (I2d){HTMLEditor.i2(this,I2d); };HTMLEditor.o5= function (X,I2d){X.cut(); };HTMLEditor.l5= function (X,I2d){X.copy(); };HTMLEditor.i5= function (X,I2d){X.paste(); };HTMLEditor.o6= function (X,I2d){X.pasteText(); };HTMLEditor.O6= function (X,I2d){X.deleteSelection(); };HTMLEditor.l6= function (X,I2d){X.selectAll(); };HTMLEditor.O5= function (X,I2d){var o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(X.O1a()): ""; var Ip=X.oq(); var Oq=X.lq(Ip); if (HTMLEditor.is_ie)if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; if (!X.Iq() && ((HTMLEditor.is_ie && Oq.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0)))return true; return false; };HTMLEditor.I5= function (X,I2d){if (!X.Iq()){if (!HTMLEditor.is_ie){var Oq=X.lq(X.oq()); var i20=Oq.startContainer; var I20=Oq.endContainer; var ik=HTMLEditor.contentEditable(i20); if (ik==null)ik=HTMLEditor.contentEditable(I20); if (ik!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return true; }return false; };HTMLEditor.O2= function (X,I2d){var o2e=I2d; if (o2e.getAttribute(HTMLEditor.Is) && o2e.getAttribute(HTMLEditor.Is).length>0){var ok=X.ot(o2e); if (ok!=null)o2e=ok; }setTimeout( function (){var i2e=X.l1.body.createControlRange(); i2e.add(o2e); i2e.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.O1e(); X.l1e("c", false); X.Om(); X.i1e(); } ,0);}else {X.l1e("c", false); setTimeout( function (){X.oq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.l2= function (X,I2d){var o2e=I2d; if (o2e.getAttribute(HTMLEditor.Is) && o2e.getAttribute(HTMLEditor.Is).length>0){var ok=X.ot(o2e); if (ok!=null)o2e=ok; }setTimeout( function (){var i2e=X.l1.body.createControlRange(); i2e.add(o2e); i2e.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.O1e(); X.l1e("x", false); X.Om(); } ,0);}else {X.l1e("x", false); setTimeout( function (){X.oq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.l10= function (par){try {var ik=this.l1.body; if (ik.firstChild)if (ik.firstChild.nodeType==3){var Oh=HTMLEditor.l12(""+ik.firstChild.data+""); if (Oh.length==0)ik.removeChild(ik.firstChild); else if (Oh!=(""+ik.firstChild.data+""))ik.firstChild.data=Oh; }if (HTMLEditor.is_ie)if (ik.childNodes.length==1){ik=ik.firstChild; if (ik.nodeType==1)if (ik.tagName.toLowerCase()=="p" || ik.tagName.toLowerCase()=="ul" || ik.tagName.toLowerCase()=="ol"){var I2e= false; var o2f=(ik.tagName.toLowerCase()=="ul" || ik.tagName.toLowerCase()=="ol")? true : false; function O2f(Oc){var oe= false; if (Oc.nodeType==1){if (!(o2f && Oc.tagName.toUpperCase()=="LI"))if (HTMLEditor.l2f(Oc) || Oc.tagName.toUpperCase()=="IMG" || Oc.tagName.toUpperCase()=="IFRAME" || Oc.tagName.toUpperCase()=="EMBED" || Oc.tagName.toUpperCase()=="SCRIPT")return true; if (Oc.childNodes.length>1)return true; if (Oc.childNodes.length==0)return false; oe |= O2f(Oc.firstChild); }else if (Oc.nodeType==3){oe |= true; }return oe; }if (ik.childNodes.length==1){if (!O2f(ik.firstChild)){ik.removeChild(ik.firstChild); I2e= true; }}if (I2e || ik.parentNode.innerHTML.toLowerCase()=="<p>&nbsp;</p>")this.l1.body.removeChild(ik); }} this.l13(); }catch (t){}};HTMLEditor.i2f=navigator.userAgent.toLowerCase(); HTMLEditor.is_ie=((HTMLEditor.i2f.indexOf("msie")!=-1) && (HTMLEditor.i2f.indexOf("opera")==-1)) && window.opera==null; HTMLEditor.i10=(HTMLEditor.i2f.indexOf("opera")!=-1) || window.opera; HTMLEditor.I2f=(HTMLEditor.i2f.indexOf("mac")!=-1); HTMLEditor.o2g=(HTMLEditor.is_ie && HTMLEditor.I2f); HTMLEditor.O2g=(HTMLEditor.is_ie && !HTMLEditor.I2f); HTMLEditor.l27=(navigator.product=="Gecko"); HTMLEditor.is_Safari=(HTMLEditor.i2f.indexOf("safari")!=-1); HTMLEditor.l2g=(HTMLEditor.i2f.indexOf("firefox")!=-1); HTMLEditor.i2g=(HTMLEditor.i2f.indexOf("safari")!=-1); HTMLEditor.I2g=(HTMLEditor.i2f.indexOf("firefox")!=-1); HTMLEditor.o2h=HTMLEditor.l27 && navigator.O2h=="Camino"; HTMLEditor.l2h=!HTMLEditor.i10 && navigator.userAgent.indexOf("Konqueror")!=-1; HTMLEditor.i2h=HTMLEditor.l2h || HTMLEditor.i2g; HTMLEditor.ij=(/[^12]\.(\d+)\.(\d+) safari/i).test(HTMLEditor.i2f); HTMLEditor.lj=(HTMLEditor.i2f.indexOf("netscape")!=-1 && navigator.vendorSub.replace(/^(\d+)\.\d*/,"$1")<8) || (HTMLEditor.l27 && navigator.productSub<0114371117) || (HTMLEditor.is_Safari && !HTMLEditor.ij); HTMLEditor.I2h= function (){var o2i="",O2i; if (HTMLEditor.i10){o2i=opera.o2i(); }else {if (HTMLEditor.l27){O2i=/rv:([^);]+)(\)|;)/; }else if (HTMLEditor.is_ie){O2i=/MSIE\s+([^);]+)(\)|;)/; }else if (HTMLEditor.i2g){O2i=/WebKit\/(\S+)/; }else if (HTMLEditor.l2h){O2i=/Konqueror\/([^);]+)(\)|;)/; }if (O2i){O2i.test(navigator.userAgent); o2i=RegExp.$1; }}return o2i; };HTMLEditor.compareVersions= function (l2i,i2i){var I2i=0,o2j=String(l2i).split("."),O2j=String(i2i).split("."),l2j=Math.max(o2j.length,O2j.length); for (var i2j=0; I2i==0 && i2j<l2j; i2j++){var I2j=o2j[i2j] || "",o2k=O2j[i2j] || "",O2k=new RegExp("(\\d*)(\\D*)","g"),l2k=new RegExp("(\\d*)(\\D*)","g"); do {var i2k=O2k.exec(I2j) || ["","",""],I2k=l2k.exec(o2k) || ["","",""]; if (i2k[0].length==0 && I2k[0].length==0){break; }var o2l=i2k[1].length==0?0:parseInt(i2k[1],012),O2l=I2k[1].length==0?0:parseInt(I2k[1],012); I2i=HTMLEditor.l2l(o2l,O2l) || HTMLEditor.l2l(i2k[2].length==0,I2k[2].length==0) || HTMLEditor.l2l(i2k[2],I2k[2]);}while (I2i==0);}return I2i;} ; HTMLEditor.l2l= function (left,right){if (left<right){return -1;}else if (left>right){return 1;}return 0;} ; HTMLEditor.i2l= function (I2l,o2m){return HTMLEditor.compareVersions(I2l,o2m); } ; HTMLEditor.O2m= function (o2i){return HTMLEditor.i2l(HTMLEditor.I2h(),o2i)>=0; } ; if (HTMLEditor.is_Safari && !HTMLEditor.ij)( function (){var l2m=String.prototype.replace; String.prototype.replace= function (search,replace){if (typeof replace!="function"){return l2m.apply(this,arguments);}var Oh=""+this ; var i2m=replace; if (!(search instanceof RegExp)){var I2m=Oh.indexOf(search); return (I2m==-1?Oh:l2m.apply(Oh,[search,i2m(search,I2m,Oh)]));}var o2n=search; var l1u=[]; var O2n=o2n.lastIndex; var O2i; while ((O2i=o2n.exec(Oh))!=null){var I2m=O2i.index; var Ob=O2i.concat(I2m,Oh); l1u.push(Oh.slice(O2n,I2m),i2m.apply(null,Ob).toString()); if (!o2n.global){O2n+=RegExp.lastMatch.length; break; }else {O2n=o2n.lastIndex; }}l1u.push(Oh.slice(O2n)); return l1u.join(""); };} )(); HTMLEditor.r= function (){if (HTMLEditor.l27){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.I2f && !(HTMLEditor.is_Safari || HTMLEditor.l2g)){alert(this.Ie("mac-using","Use Safari or FireFox...")); return false; }if (HTMLEditor.i10){var o2i=0; var l2n=0; function test(O28,i20,I20){o2i=parseInt(i20); l2n=parseInt(I20); }HTMLEditor.i2f.replace(/opera\/(\d+)\.(\d+)/ig,test); if (!(o2i*0144+l2n>=01630)){alert("Opera < 9.20 is not supported"); return false; }}return HTMLEditor.l27 || HTMLEditor.is_ie || HTMLEditor.i10; } ; HTMLEditor.Ok= function (ik,i2n,Oo){if (!ik){return; }if (ik.attachEvent)ik.attachEvent("on"+i2n,Oo); else {if (ik.addEventListener)ik.addEventListener(i2n,Oo, true); }} ; HTMLEditor.lv= function (ik,I2n,Oo){if (!ik){return; }try {if (typeof ik.push=="function"){for (var i=0; i<I2n.length; i++)for (var ig=0; ig<ik.length; ig++)HTMLEditor.Ok(ik[ig],I2n[i],Oo); }else {for (var i=0; i<I2n.length; i++)HTMLEditor.Ok(ik,I2n[i],Oo); }}catch (t){ throw t; }} ; HTMLEditor.lc= function (ik,i2n,Oo){if (ik.detachEvent)ik.detachEvent("on"+i2n,Oo); else {if (ik.removeEventListener)ik.removeEventListener(i2n,Oo, true); }} ; HTMLEditor.o2o= function (ik,I2n,Oo){if (ik.push){for (var i=0; i<I2n.length; i++)for (var ig=0; ig<ik.length; ig++)HTMLEditor.lc(ik[ig],I2n[i],Oo); }else {for (var i=0; i<I2n.length; i++)HTMLEditor.lc(ik,I2n[i],Oo); }} ; HTMLEditor._stopEvent= function (Oj){if (Oj)if (HTMLEditor.is_ie){Oj.cancelBubble= true; Oj.returnValue= false; }else {Oj.preventDefault(); Oj.stopPropagation(); }} ; HTMLEditor.prototype._stopEvent= function (Oj){HTMLEditor._stopEvent(Oj); };HTMLEditor.prototype._formSubmit= function (Oj){if (!this.oo && this.mainDivVisible){try {return [document.getElementsByName(this._hiddenContent)[0].value,document.getElementsByName(this._hiddenContent)[0].value]; }catch (w){return ["",""]; }}var I17=""; if (this.O1=="preview"){I17=""; if (this.i14=="html")I17=this.O18; else I17=this.o14.value; if (HTMLEditor.is_Safari){}}else {if (this.O1=="html"){I17=this.getHTML(); }else {if (this.o14)I17=this.o14.value; else I17=this._textArea.value; }}if (this.NoScript){ this._textArea.value=this._textArea.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); I17=I17.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); }var O2o=I17.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"); if (!this._remainLf)O2o=HTMLEditor.l12(O2o); this._textArea.value=O2o; return [O2o,I17]; } ; HTMLEditor.prototype._prepareHTML= function (Oh){var save=this.O1; this.O1="text"; var l2o=(this.o14)? true : false; if (!l2o){var Y=document.createElement("textarea"); this.o14=Y; if (HTMLEditor.is_Safari)document.body.appendChild(Y); }if (!(this.lu && !HTMLEditor.S())){ this.o14.value=(this._textArea.value.length>0)?(this._textArea.value.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,"\"").replace(/&amp;/g,"&")): ((typeof Oh=="string")?Oh.replace(/&quot;/g,"\""):Oh.value); function i2o(O28,i20){if (i20=="\\n")return "\n"; return i20.replace("\\\\","\\"); } this.o14.value=this.o14.value.replace(/([\\]+n)/g,i2o); if (this.InitialCleanUp)this.o14.value=HTMLEditor.I2o(HTMLEditor.l12(this.o14.value.replace(/[\n\r]+/g," "))); if (typeof Oh!="string")Oh.value=""; document.getElementsByName(this._hiddenContent)[0].value=HTMLEditor.l12(this.o14.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")); if (document.getElementsByName(this._hiddenContent+"_modified").length==0){var ok=document.createElement("input"); ok.type="hidden"; ok.name=this._hiddenContent+"_modified"; document.getElementsByName(this._hiddenContent)[0].parentNode.insertBefore(ok,document.getElementsByName(this._hiddenContent)[0]); }}if (this._textArea.style.visibility=="hidden")this._textArea.style.visibility="visible"; this.F=null; var oe=this.getHTML(); if (!l2o){ this.o14=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; } this.O1=save; return oe; };HTMLEditor.prototype.setOriginal= function (on){var X=this ; if (X.mode()=="preview"){X.O15= false; X.l= true; }else if (X.mode()=="text"){X.o15=X.o14.value; X.O15= false; X.l= true; }else {X.O13=HTMLEditor.l12((typeof on!="undefined" && on!=null)?on:HTMLEditor.getHTML(X.l1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l13(); }X.l= false; }return true; };HTMLEditor.prototype.setContent= function (Oh,o2p,O2p){if (this.mode()=="preview")return false; var X=this ; if (typeof O2p=="function"){ this.L=O2p; }function l2p(){if (typeof Oh=="string"){if (!X.lt() || !X.mainDivVisible){X._textArea.value=""; X._textArea.value=X._prepareHTML(Oh.replace(/"/g,"&quot;")); X.Om(); X.l13(); return false; }try {try {if (X.mode()=="html")X.O10(); }catch (t){}var ll=X._textArea.parentNode.removeChild(X.o1); X.o1=null; delete ll; }catch (t){}try {X._textArea.value=""; X._textArea.value=X._prepareHTML(Oh.replace(/"/g,"&quot;")); if ((typeof o2p!="undefined") && o2p){X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O1d=-1; }}X.activate(); if (X.mainDivVisible)setTimeout( function (){X.focusEditor(); } ,0454); }catch (t){X.Om(); return false; }X.l13(); }else {if ((typeof o2p!="undefined") && o2p){X.O13=HTMLEditor.l12(HTMLEditor.getHTML(X.l1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l13(); }if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O1d=-1; }}X.Om(); }return true; }if (this.mode()=="text"){if (this.mainDivVisible){try {if (typeof Oh=="string")X.o14.value=Oh; if ((typeof o2p!="undefined") && o2p){X.o15=X.o14.value; X.O15= false; X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O1d=-1; }}}catch (t){return false; }return true; }else {if (typeof Oh=="string"){X._textArea.value=""; X._textArea.value=X._prepareHTML(Oh.replace(/"/g,"&quot;")); if (X.o14!=null && X.o14!="undefined")X.o14.value=X._textArea.value; }return true; }}if (this.mode()=="html"){if (this.mainDivVisible){function i2p(){if (X.oo){X.openWait(); setTimeout(l2p,0); }else {setTimeout(i2p,0144); }}i2p(); }return true; }return false; };HTMLEditor.prototype.getContent= function (I2p){var oe; if (this.O1=="preview"){if (this.i14=="html")oe=this.O18; else oe=this.o14.value; }else if (HTMLEditor.is_ie){if (this.O1=="html"){oe=this.getHTML(); }else {var l2o=(this.o14)? true : false; if (!l2o){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.o14=Y; this.o14.value=document.getElementsByName(this._hiddenContent)[0].value.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }oe=HTMLEditor.o2q(this.o14.value); if (!l2o){ this.o14=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }}}else {oe=this.getHTML(); }if (!(typeof I2p!="undefined" && I2p)){oe=HTMLEditor.l12(oe); oe=oe.replace(/[\0-\x1f]+$/,""); }if (oe.length>=6)if (oe.substr(oe.length-5,5)=="<br/>")oe=oe.substr(0,oe.length-5); else if (oe.substr(oe.length-6,6)=="<br />")oe=oe.substr(0,oe.length-6); else if (oe.substr(oe.length-4,4)=="<br>")oe=oe.substr(0,oe.length-4); return oe; } ; HTMLEditor.prototype.TextSelected= function (){if (this.mode()!="html")return false; var o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(this.O1a()): ""; var Ip=this.oq(); var Oq=this.lq(Ip); if (!this.Iq() && ((HTMLEditor.is_ie && Oq.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0)))return true; else return false; };HTMLEditor.prototype.getContentWait= function (ip,I2p){if (typeof ip=="function"){var X=this ; X.openWait(); setTimeout( function (){ip(X.getContent(I2p)); X.Om(); } ,0); }} ; HTMLEditor.prototype.openWait= function (O2p){if (!this._pleaseWait)return; try {var Oc=document.getElementById(this.mainDivId).parentNode; var it= true; while (Oc){if (Oc.style && Oc.style.display=="none"){it= false; break; }Oc=Oc.parentNode; }if (this.N!=null || !it || !this.mainDivVisible)return; if (typeof O2p=="function"){ this.L=O2p; }var popup; var X=this ; popup=X.A.ownerDocument.createElement("div"); popup.className="popup_wait"; popup.innerHTML="<div><center><nobr>"+X.Ie("wait","Please wait...")+"<nobr></center></div>"; X.A.appendChild(popup); var i8=parseInt(popup.offsetWidth); var I8=parseInt(popup.offsetHeight); popup.style.display="none"; var y; var x; var O2q=(X.O1=="text")?(X.o1==null?null:X.o14): ((X.O1=="preview")?X.Ov:X._iframe); if (O2q==null && X._textArea && X._textArea.style.l2q!="none" && X._textArea.style.visibility!="hidden")O2q=X._textArea; if (O2q==null || typeof O2q=="undefined")O2q=document.getElementById(X.mainDivId); var i2q=parseInt(O2q.offsetWidth); var I2q=parseInt(O2q.offsetHeight); var o2r=HTMLEditor.O2r(O2q, false); y=I2q/2-I8/2+o2r._top; x=i2q/2-i8/2+o2r.O1x; popup.style.top=y+"px"; popup.style.left=x+"px"; this.N=popup; popup.style.display=""; }catch (t){alert("openWait: "+t.message); }};HTMLEditor.prototype.Om= function (){if (this.L!=null){var l2r=this.L; setTimeout(l2r,0764); this.L=null; }if (HTMLEditor.is_ie && this.mainDivVisible && this.lt() && this.O1=="html" && document.getElementById(this.mainDivId)!=null){try { this.updateToolbar(); }catch (t){} ; }if (this.N==null)return; var ok; try {ok=this.A.removeChild(this.N); delete ok; }catch (t){} this.N=null; };HTMLEditor.prototype.lb= function (O2p){try {if (document.getElementById(this.mainDivId)==null)return; var Oc=document.getElementById(this.mainDivId).parentNode; var it= true; while (Oc){if (Oc.style && Oc.style.display=="none"){it= false; break; }Oc=Oc.parentNode; }if (this.n!=null || !it || !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 i8=parseInt(popup.clientWidth); var I8=parseInt(popup.clientHeight); popup.style.display="none"; var y; var x; var O2q=(X.O1=="text")?(X.o1==null?null:X.o14): ((X.O1=="preview")?X.Ov:X._iframe); if (O2q==null && X._textArea && X._textArea.style.l2q!="none" && X._textArea.style.visibility!="hidden")O2q=X._textArea; if (O2q==null || typeof O2q=="undefined")O2q=document.getElementById(X.mainDivId); var i2q=parseInt(O2q.clientWidth); var I2q=parseInt(O2q.clientHeight); var o2r=HTMLEditor.O2r(O2q, false); y=I2q/2-I8/2+o2r._top; x=i2q/2-i8/2+o2r.O1x; popup.style.top=y+"px"; popup.style.left=x+"px"; this.n=popup; popup.style.display=""; }catch (t){}};HTMLEditor.prototype.i2r= function (){if (this.n==null)return; var ok=this.A.removeChild(this.n); delete ok; this.n=null; };HTMLEditor.prototype.setVisibility= function (p){if (!this.ir)return false; var X=this ; if (p){if (!X.mainDivVisible){X.mainDivVisible= true; document.getElementById(X.mainDivId).style.display="block"; if (X.lr==0){if (X._setRealSize && typeof X._setRealSize=="function"){X._setRealSize(); }X.O8= {i8:X._textArea.offsetWidth,I8:X._textArea.offsetHeight } ; X.O1="html"; X.openWait(); X._textArea.style.visibility="hidden"; X.setTimeout( function (iw){if (X.ou(iw))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.Om();}catch (w){} ; var I2r=X.clearPopups(); if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; }if (V>0)X.O1="undef"; var o2s= false; if (X.O1=="html" || X.O1=="preview"){if (I2r)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.O1=="undef"){X.O1="text"; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.oq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; try {X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; }catch (t){} ; var ll=null; try {ll=X.o1.removeChild(X._iframe); }catch (t){} ; X._iframe=null; if (ll!=null) delete ll; ll=null; try {ll=X.o1.removeChild(X.Ov); }catch (t){} ; X.Ov=null; if (ll!=null) delete ll; ll=null; try {ll=X.o1.removeChild(X.o14); }catch (t){} ; X.o14=null; if (ll!=null) delete ll; ll=null; try {ll=X.o1.parentNode.removeChild(X.o1); }catch (t){} ; X.o1=null; if (ll!=null) delete ll; if (!HTMLEditor.is_Safari){X.Ox=X.O8.I8; X.l18=X.O8.i18; }X._textArea.style.display="block"; }catch (t){}o2s= true; }else if (X.O1=="text")o2s= true; if (X.ShowQuickFormatDivId!=null)HTMLEditor.i17(X.ShowQuickFormatDivId); if (o2s)setTimeout( function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ,024); }}document.getElementsByName(X.mainDivVisibleName)[0].value=(X.mainDivVisible)?"true": "false"; };HTMLEditor.o2q= function (Oh){return Oh.replace(/<br>/ig,"<br/>"); };HTMLEditor.prototype.getHTML= function (om,O2s){try {var O14=this.O1; if (O14=="preview"){O14=this.i14; if (O14=="html"){return this.O18; }}function l2s(O28,i20){return "&#"+i20.charCodeAt(0).toString(012)+";"; }function i2s(O28,i20){return "\x3cspan class=\""+HTMLEditor.il+"_script\" style=\'display:none;visibility:hidden;\'>"+i20.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }var I2s=[]; function o2t(O28,i20){I2s.push(i20); return "";}function O2t(O28,i20,I20,l2t){return i20.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var i2t=-1; function I2t(O28,i20,I20,l2t){i2t++; var o2u; if (!HTMLEditor.is_ie)o2u=I2s[i2t].replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); else o2u=I2s[i2t]; return i20+o2u+l2t; }function O2u(O28,i20){X.c=i20; return O28; } ; function l2u(O28,i20){X.d=i20; return ""; } ; function i2u(O28,i20){X.D=i20; return ""; } ; function o28(O28,i20,I20){X.C=i20; return I20; } ; function I2u(O28,i20){X.B=i20; return O28; } ; switch (O14){case "html": this.l10(); var on=(typeof O2s!="undefined"); if (typeof om=="undefined" || om== false){var o2v=!HTMLEditor.oy(this,this.l1, true); var O2v=!HTMLEditor.Oy(this,this.l1, true); on=on && o2v && O2v; }var l2v=""; if (this.F!=null)for (var i=0; i<this.F.length; i++){l2v+=this.F[i].replace(new RegExp("}\\s*","g"),"}\n").replace(/(<style(?:[^>]*?)>)/ig,"$1\n")+"\n"; }if (HTMLEditor.is_ie){var ok=(on && typeof O2s!="undefined")?O2s:HTMLEditor.getHTML(this.l1.body, false , true); this.O15=!(this.O13==ok); ok=ok.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); ok=ok.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); ok=ok.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); if (!(this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML)){ok=((this.l1.body.style.cssText.length>0)?"\x3cdiv style=\""+this.l1.body.style.cssText.replace("\"","'")+"\">": "")+ok+((this.l1.body.style.cssText.length>0)?"</div>": ""); }if (this.predicatedTags)ok=ok.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); if (this.NoScript)ok=ok.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); if (/<embed/ig.test(ok)){ok=ok.replace(/(<embed(?:.*?))(\sloop="true")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\splay="true")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\sbgcolor="")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\sscale="")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\shspace="0")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\svspace="0")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\swmode="[^"]+")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(pseudomode=)("[^"]*")((?:.*?)>)/ig,"$1wmode=$3$4"); ok=ok.replace(/(<embed(?:.*?))(\swmode="")((?:.*?)>)/ig,"$1$3"); }var i2v=l2v+HTMLEditor.o2q(ok); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var I2v=""; if (this.d!=null)I2v+=this.d; I2v+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">"; if (this.l1.getElementById("oboutEditorDefaultStyle")==null){I2v+="\n\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; I2v+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"; }if (this._addCssFiles!=null){I2v+="\n"; for (var i28=0; i28<this._addCssFiles.length; i28++){var o2w= true; if (this.D!=null && this.D.length>0){var O2w=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[i28]+"\"","ig");if (O2w.test(this.D))o2w= false; }if (o2w)I2v+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[i28]+"\" media=\"all\" />\n"; }}if (this.D!=null)I2v+=this.D; I2v+="\x3c/head>\n"; if (this.l1.body.style.cssText.length>0){var l2w="<div"+(this.C!=null?this.C: "")+"></div>"; var i2w=document.createElement("DIV"); i2w.innerHTML=l2w; i2w.firstChild.style.cssText+=";"+this.l1.body.style.cssText; l2w=HTMLEditor.getHTML(i2w, false , true); l2w=l2w.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");I2v+="<body"+l2w+">\n"; }else {I2v+="<body"+(this.C!=null?this.C: "")+">\n"; }I2v+=i2v+"\n"; I2v+="\x3c/body>\n\x3c/html>"; i2v=I2v; }if (this.NoUnicode)i2v=i2v.replace(/([\x80-\uffff])/g,l2s);if (HTMLEditor.l12(i2v)=="<br />")i2v=""; i2v=i2v.replace(/^([\n|\r]+)/,""); var I2w=new RegExp("(<[/]?)(teo"+HTMLEditor.il+":)","ig"); i2v=i2v.replace(I2w,"$1"); return i2v; }var o2x=this.l1.createElement("DIV"); o2x.style.cssText=this.l1.body.style.cssText; if (!this.NoScript)this.l1.body.innerHTML.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,o2t); o2x.innerHTML=HTMLEditor.l12(this.l1.body.innerHTML); var On=(on && typeof O2s!="undefined")?O2s:HTMLEditor.getHTML(this.l1.body, false , true); this.O15=!(this.O13==HTMLEditor.l12(On)); var i1t=o2x.getElementsByTagName("IMG"); var O2x=[]; for (var i=0; i<i1t.length; i++)O2x.push(i1t[i]); for (var ig=0; ig<O2x.length; ig++){var img=O2x[ig]; var I2c; I2c=img.getAttribute("dummytag"); if (I2c && I2c.length>0 && I2c.toLowerCase()=="embed"){var src=img.getAttribute("dummysrc"); var l2x=img.getAttribute("dummybgcolor"); var wmode=img.getAttribute("pseudomode"); var i2x=img.attributes; var embed=this.l1.createElement("EMBED"); var O2i=/(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 (l2x && l2x.length>0){function I2x(o2y){return (o2y<020)?("0"+o2y.toString(020)):o2y.toString(020); } ; function O2y(l2y,$1,$2,$3,$4){var i1f=parseInt($2); var i2y=parseInt($3); var b=parseInt($4); return "#"+I2x(i1f)+I2x(i2y)+I2x(b); }try {l2x=l2x.replace(O2i,O2y); }catch (t){}embed.setAttribute("bgcolor",l2x); }if (wmode && wmode.length>0)embed.setAttribute("wmode",wmode); for (var i=0; i<i2x.length; ++i){var a=i2x.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(o2x,document,this ); HTMLEditor.o25(o2x,document); var ok=HTMLEditor.getHTML(o2x,(o2x.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)ok=ok.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,I2t); else ok=ok.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); delete o2x; if (this.predicatedTags)ok=ok.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); var i2v=l2v+HTMLEditor.o2q(ok); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var I2v=""; if (this.d!=null)I2v+=this.d; I2v+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">\n"; if (this.l1.getElementById("oboutEditorDefaultStyle")==null){I2v+="\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; I2v+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; }if (this._addCssFiles!=null){for (var i28=0; i28<this._addCssFiles.length; i28++){var o2w= true; if (this.D!=null && this.D.length>0){var O2w=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[i28]+"\"","ig");if (O2w.test(this.D))o2w= false; }if (o2w)I2v+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[i28]+"\" media=\"all\" />\n"; }}if (this.D!=null)I2v+=this.D; I2v+="\x3c/head>\n"; if (this.l1.body.style.cssText.length>0){var l2w="<div"+(this.C!=null?this.C: "")+"></div>"; var i2w=document.createElement("DIV"); i2w.innerHTML=l2w; i2w.firstChild.style.cssText+=";"+this.l1.body.style.cssText; l2w=HTMLEditor.getHTML(i2w, false , true); l2w=l2w.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");I2v+="<body"+l2w+">\n"; }else {I2v+="<body"+(this.C!=null?this.C: "")+">\n"; }I2v+=i2v+"\n"; I2v+="\x3c/body>\n\x3c/html>"; i2v=I2v; }if (this.NoUnicode)i2v=i2v.replace(/([\x80-\uffff])/g,l2s);if (HTMLEditor.l12(i2v)=="<br />")i2v=""; i2v=i2v.replace(/^([\n|\r]+)/,""); return i2v; case "text":var l2o=(this.o14)? true : false; var oe; if (!l2o){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.o14=Y; this.o14.value=this._textArea.value; }if (this.NoScript)this.o14.value=this.o14.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/ig,""); this.D=null; this.C=null; this.c=null; this.B=null; this.d=null; var X=this ; this.o14.value=this.o14.value.replace(/<html(?=\s|>)([^>]*?)>/gi,I2u); this.o14.value=this.o14.value.replace(/<head(?=\s|>)([^>]*?)>/gi,O2u); this.o14.value=this.o14.value.replace(/^([^\0]+?)<html(?=\s|>)(?:[^>]*?)>/gi,l2u); this.o14.value=this.o14.value.replace(/<\/html(?=\s|>)(?:[^>]*?)>[^\0]*$/gi,""); this.o14.value=this.o14.value.replace(/<head(?=\s|>)(?:[^>]*?)>([^\0]*?)<\/head(?=\s|>)(?:[^>]*?)>/gi,i2u); this.o14.value=this.o14.value.replace(/<body(?=\s|>)([^>]*?)>([^\0]*?)<\/body(?=\s|>)(?:[^>]*?)>/gi,o28); this.o14.value=this.o14.value.replace(/<\/?html(?=\s|>)(?:[^>]*?)>/gi,""); this.o14.value=this.o14.value.replace(/<\/?head(?=\s|>)(?:[^>]*?)>/gi,""); this.o14.value=this.o14.value.replace(/<\/?body(?=\s|>)(?:[^>]*?)>/gi,""); this.o14.value=this.o14.value.replace(/<object(?:[^>]*?)>(?:[^\0]*?)(<embed(?:[^>]*?)>)(?:[^\0]*?)<\/object(?:[^>]*?)>/gi,"$1"); if (HTMLEditor.is_ie){var I2y=this.o14.value.replace(/([\n\r]+<)/g,"<"); I2y=HTMLEditor.l12(I2y.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); I2y=I2y.replace(/(&amp;)/g,"&amp;amp;"); I2y=I2y.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); I2y=I2y.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); I2y=I2y.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); if (/<embed/ig.test(I2y)){I2y=I2y.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); I2y=I2y.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); }oe=I2y; }else {var src=document.createElement("DIV"); if (!this.NoScript)this.o14.value.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,o2t); src.innerHTML=HTMLEditor.l12(this.o14.value.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); var i1t=src.getElementsByTagName("EMBED"); var o2z=[]; for (var i=0; i<i1t.length; i++)o2z.push(i1t[i]); for (var ig=0; ig<o2z.length; ig++){var embed=o2z[ig]; var img=document.createElement("IMG"); var i2x=embed.attributes; img.src=this.Q[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<i2x.length; ++i){var a=i2x.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.O2z(src,this, true); HTMLEditor.o25(src,document); var ok=HTMLEditor.l12(HTMLEditor.getHTML(src, false , true)); if (!this.NoScript)ok=ok.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,I2t); if (I2s.length>0){} delete src; oe=HTMLEditor.o2q(ok); }if (!l2o){ this.o14=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }return oe; break; default:alert("Mode <"+mode+"> not defined"); return false; }}catch (t){ this.Om(); return ""; }} ; HTMLEditor.prototype.l2z= function (html){switch (this.O1){case "html": this.l1.body.innerHTML=html; break; case "text": this.o14.value=html; break; default:alert("Mode <"+mode+"> not defined"); }return false; } ; HTMLEditor.i2z= function (ik){var or=" script style div span a del strong em u strike font b sub sup p iframe li ul ol placeholder textarea td tr "; return (or.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.I2z= function (ik){var or=" hr br "; return (or.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.o30= function (Oh){return Oh.replace(/&/ig,"&amp;").replace(/</ig,"&lt;").replace(/>/ig,"&gt;").replace(/"/ig,"&quot;").replace(/\xa0/ig,"&nbsp;"); } ; HTMLEditor.Ix= function (O1o,Iw){var O30; for (var l30=O1o.firstChild; l30; l30=O30){if (l30.nodeType==1 || l30.nodeType==013){if (l30.tagName.length>0){if (l30.tagName.indexOf("/")>=0 && l30.tagName.toLowerCase().substr(l30.tagName.indexOf("/")+1)=="embed"){var O30=l30.nextSibling; l30.parentNode.removeChild(l30); continue; }var closed=(!(l30.hasChildNodes() || HTMLEditor.i2z(l30))); if ((closed || l30.tagName.toLowerCase()=="placeholder") && !HTMLEditor.I2z(l30) && l30.tagName.toLowerCase()!="embed"){var Ik=l30.tagName.toLowerCase(); var i30=l30.nextSibling; var og=[]; while (i30!=null){if (i30.nodeType==l30.nodeType && i30.tagName)if (i30.tagName.indexOf("/")>=0)if (i30.tagName.toLowerCase().substr(i30.tagName.indexOf("/")+1)==Ik){i30.parentNode.removeChild(i30); Ik="teo"+HTMLEditor.il+":"+l30.tagName; var I30=Iw.createElement(Ik); var i2x=l30.attributes; for (var i=0; i<i2x.length; ++i){var a=i2x.item(i); if (!a.specified)continue; I30.setAttribute(a.name,a.value); }I30.style.cssText=l30.style.cssText; if (l30.className.length>0)I30.className=l30.className; l30.parentNode.insertBefore(I30,l30); l30.parentNode.removeChild(l30); for (var i=0; i<og.length; i++){I30.appendChild(og[i]); }l30=I30; break; }og.push(i30); i30=i30.nextSibling; } delete og; }}HTMLEditor.Ix(l30,Iw); }O30=l30.nextSibling; }};HTMLEditor.getHTML= function (l30,o31,O31){try {if (typeof O31=="undefined"){if (!o31 && l30.nodeType==1){return l30.innerHTML; }else if (o31 && l30.nodeType==1 && HTMLEditor.is_ie){return l30.outerHTML; }}}catch (t){}var html=new l28( true); HTMLEditor.l31(html,l30,o31); return html.toString(); };HTMLEditor.l31= function (html,l30,o31,O31){switch (l30.nodeType){case 1:case 013:if (l30.tagName && l30.tagName.indexOf("/")>=0){if (HTMLEditor.is_ie){var Ik=l30.tagName.toLowerCase().substr(l30.tagName.indexOf("/")+1); var i31=l30.previousSibling; if (Ik=="embed")return; while (i31!=null){if (i31.nodeType==l30.nodeType && i31.tagName && i31.tagName.toLowerCase()==Ik){html.write("</teo"+HTMLEditor.il+":"+l30.tagName.toLowerCase().substr(l30.tagName.indexOf("/")+1)+">"); return; }i31=i31.previousSibling; }}return; }var closed; var I31; var i; if (o31 && l30.tagName.length>0){closed=(!(l30.hasChildNodes() || HTMLEditor.i2z(l30))); I31= true; var o32=""; if (HTMLEditor.is_ie && l30.scopeName && typeof l30.scopeName!="undefined"){o32=(l30.scopeName.toUpperCase()=="HTML")?"": (l30.scopeName+":"); }if (HTMLEditor.is_ie && (closed || l30.tagName.toLowerCase()=="placeholder") && !HTMLEditor.I2z(l30) && l30.tagName.toLowerCase()!="embed"){var Ik=l30.tagName.toLowerCase(); var i30=l30.nextSibling; while (i30!=null){if (i30.nodeType==l30.nodeType && i30.tagName)if (i30.tagName.indexOf("/")>=0)if (i30.tagName.toLowerCase().substr(i30.tagName.indexOf("/")+1)==Ik){closed= false; I31= false; break; }i30=i30.nextSibling; }}if (!HTMLEditor.O32(l30)){html.write("\n"); }html.write("<"+((!closed && !I31)?"teo"+HTMLEditor.il+":":o32)+l30.tagName.toLowerCase()); if (HTMLEditor.is_ie && l30.name && l30.name.length>0){html.write(" name"+"=\""+l30.name.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && l30.value && l30.value.length>0 && l30.tagName.toLowerCase()!="textarea"){html.write(" value"+"=\""+l30.value.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && l30.className && l30.className.length>0){html.write(" class"+"=\""+l30.className.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && l30.align && l30.align.length>0){html.write(" align"+"=\""+l30.align.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && l30.color && l30.color.length>0){html.write(" color"+"=\""+l30.color.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && l30.size && l30.size.length>0){html.write(" size"+"=\""+l30.size.replace(/"/g,"&quot;")+"\""); }var i2x=l30.attributes; for (i=0; i<i2x.length; ++i){var a=i2x.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=l30.width; if (HTMLEditor.is_ie && value==0){var l32=0; l30.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?width=)([\\d]+)","ig"), function (O28,i20){l32=i20; } ); if (value!=l32)value=l32; }}else if (name=="height"){value=l30.height; if (HTMLEditor.is_ie && value==0){var l32=0; l30.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?height=)([\\d]+)","ig"), function (O28,i20){l32=i20; } ); if (value!=l32)value=l32; }}else if (HTMLEditor.is_ie && name=="name" && l30.name && l30.name.length>0)continue; else if (HTMLEditor.is_ie && name=="value" && l30.value && l30.value.length>0)continue; else if (HTMLEditor.is_ie && name=="align" && l30.align && l30.align.length>0)continue; else if (HTMLEditor.is_ie && name=="class" && l30.className && l30.className.length>0)continue; else if (HTMLEditor.is_ie && name=="color" && l30.color && l30.color.length>0)continue; else if (HTMLEditor.is_ie && name=="size" && l30.size && l30.size.length>0)continue; else {if (l30.tagName.toLowerCase()=="embed" && name=="align" && HTMLEditor.is_ie){value=HTMLEditor.i32(a.value); }else {value=a.value; if (name=="src" || name=="href"){if (HTMLEditor.is_ie){var l32=""; l30.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=\")([^\"]*?)\"","ig"), function (O28,i20){l32=i20; } ); if (l32=="")l30.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=')([^']*?)'","ig"), function (O28,i20){l32=i20; } ); if (l32=="")l30.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=)([^s>]*?)","ig"), function (O28,i20){l32=i20; } ); if (value!=l32 && l32!=""){value=l32; value=value.replace(/&amp;/g,"&"); }}value=value.replace(/(\(S\([A-Za-z0-9_]+\)\)\/)/,""); }value=value.replace(/"/g,"&quot;"); }}}else {continue; }var I32="\""; if ((""+value+"").indexOf("\"")>=0)I32="'"; if (name!=null)html.write(" "+name+"="+I32+value+I32); }if (l30.style.cssText.length>0){var name="style"; var O2i=/(rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\))/ig; var o33=/(url\((?:[^)]*)\))/ig; var O33=[]; function l33(l2y,$1){O33.push($1); }l30.style.cssText.replace(o33,l33); var value=l30.style.cssText.toLowerCase(); var i33=0; function I33(){var ok=O33[i33]; i33++; return ok; }value=value.replace(o33,I33); function I2x(o2y){return (o2y<020)?("0"+o2y.toString(020)):o2y.toString(020); } ; function O2y(l2y,$1,$2,$3,$4){var i1f=parseInt($2); var i2y=parseInt($3); var b=parseInt($4); return "#"+I2x(i1f)+I2x(i2y)+I2x(b); }try {value=value.replace(O2i,O2y); 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 I32="\""; if ((""+value+"").indexOf("\"")>=0)I32="'"; html.write(" "+name+"="+I32+value+I32); }}html.write(closed?" />": ">"); if (l30.tagName.toUpperCase()=="BR")html.write("\n"); }if (l30.tagName && l30.tagName.toUpperCase()=="SCRIPT")html.write(l30.text); for (i=l30.firstChild; i; i=i.nextSibling){HTMLEditor.l31(html,i, true);}if (o31 && l30.tagName.length>0 && !closed && I31){html.write("</"+o32+l30.tagName.toLowerCase()+">"); }break; case 3:html.write(HTMLEditor.o30(""+l30.data+"")); break; case 8:if (l30.length>0){html.write("<!--"+l30.data+"-->"); }else {html.write("<!---->"); }break; }} ; HTMLEditor.prototype.focusEditor= function (){switch (this.O1){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.l1.body.contentEditable+"")!="true")this.l1.body.contentEditable= true; HTMLEditor.i17(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i17(this.ShowQuickFormatDivId, true); } this._wasFocused= true; this.o34=0; try {if (!HTMLEditor.i10)this._iframe.contentWindow.focus(); if (HTMLEditor.i10 && this.f){ this._iframe.focus(); }}catch (t){} ; if (HTMLEditor.is_ie)this.updateToolbar(); }break; case "text":if (this._autoFocus)try { this.o14.focus(); }catch (t){} ; break; default:break; }return this.l1; } ; HTMLEditor.prototype.O34= function (){var area=this.l1.createElement("textarea"); area.width="0"; area.height="0"; this.l1.appendChild(area); var i1f=area.createTextRange(); i1f.execCommand("paste"); var l34=area.value; l34=l34.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>"); this.l1.removeChild(area); return l34; } ; HTMLEditor.prototype.i34= function (text,om,I34){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.l1.createElement("iframe"); iframe.width="0"; iframe.height="0"; if (HTMLEditor.is_ie)iframe.src="javascript:false;"; this.l1.appendChild(iframe); var Iw=iframe.contentWindow.document; var html=new l28(); html.write("<html>"); html.write("<head>"); html.write("<style> body { "+this.I.i25+" } </style>"); html.write("</head>"); html.write("<body>"); html.write(text); html.write("</body>"); html.write("</html>"); Iw.write(html.toString()); Iw.close(); Iw.body.contentEditable= true; var i1f=Iw.body.createTextRange(); var o35= false; if (text==""){i1f.execCommand("paste"); var o2x=Iw.createElement("DIV"); for (var i=0; i<Iw.body.childNodes.length; i++){var O35=Iw.body.childNodes.item(i); if (O35.nodeType==8){var Oh=""+O35.data+""; if (Oh.search(/StartFragment/i)>=0){if (O35.nextSibling && O35.nextSibling.nodeType==3){var Oh=""+O35.nextSibling.data+""; if (Oh.length)if (Oh.charCodeAt(0)==0240){Oh=Oh.substr(1); O35.nextSibling.data=Oh; o35= true; break; }}}}}if (typeof I34!="undefined" && I34)Iw.body.innerHTML=HTMLEditor.I2o(Iw.body.innerHTML); var Oh=HTMLEditor.l12(HTMLEditor.getHTML(Iw.body, false , true)); Oh=Oh.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); Iw.body.innerHTML=Oh; if (!om){HTMLEditor.oy(this,Iw,!this.showAnchors); HTMLEditor.Oy(this,Iw,!this.showPlaceHolders); var i1t=Iw.body.getElementsByTagName("EMBED"); var l35=[]; for (var i=0; i<i1t.length; i++)l35.push(i1t[i]); for (var i2a=0; i2a<l35.length; i2a++)l35[i2a].parentNode.removeChild(l35[i2a]); } delete i1f; delete o2x; if (om && HTMLEditor.is_ie)i1f=Iw.body.createTextRange(); }if (om && HTMLEditor.is_ie){if (text!=""){HTMLEditor.oy(this,Iw, true); HTMLEditor.Oy(this,Iw, true); }i1f.select(); i1f.execCommand("copy"); }var oe=HTMLEditor.l12(Iw.body.innerHTML); oe=oe.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); oe=oe.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); oe=oe.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); oe=oe.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); oe=oe.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); var i1t=Iw.body.getElementsByTagName("EMBED"); var l35=[]; for (var i=0; i<i1t.length; i++)l35.push(i1t[i]); for (var i2a=0; i2a<l35.length; i2a++)l35[i2a].parentNode.removeChild(l35[i2a]); iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var X=this ; X.l1.removeChild(iframe); delete iframe; return oe; };HTMLEditor.l12= function (Oh){return Oh.replace(/[\0-\x1f]/g,""); };HTMLEditor.i35= function (X,i1a,Ip){ this.D=X.D; this.d=X.d; this.C=X.C; if (HTMLEditor.is_ie){ this.I35=HTMLEditor.o36(X.l1.body); this.O36=X.l1.body.innerHTML; this.l36=null; if (Ip.type.toLowerCase()=="control"){try {var ik=i1a.item(0); this.l36=[]; while (ik && (ik.nodeType==3 || !ik.tagName || ik.tagName.toUpperCase()!="BODY")){var i36=0; while (ik.previousSibling){i36++; ik=ik.previousSibling; } this.l36.push(i36); ik=ik.parentNode; }}catch (t){}}else { this.O2e=i1a.offsetLeft; this.l2e=i1a.offsetTop; }}else {if (HTMLEditor.i10)this.O36=HTMLEditor.l12(X.l1.body.innerHTML); else this.O36=X.l1.body.cloneNode( true); this.l36=[]; this.I36=0; try {var ik=i1a.startContainer; this.I36=i1a.startOffset; if (ik && ik.nodeType==1 && ik.tagName.toUpperCase()=="HTML"){ik=X.l1.body; setTimeout( function (){try {Ip=X.oq(); i1a=X.lq(); X.i16(Ip); i1a.setStart(ik,0); i1a.setEnd(ik,0); X.I16(Ip,i1a); }catch (t){}} ,012); }while (ik && ik.nodeType && (ik.nodeType==3 || !ik.tagName || ik.tagName.toUpperCase()!="BODY")){var i36=0; while (ik.previousSibling){i36++; if (HTMLEditor.i10){if (ik.nodeType==3 && ik.previousSibling!=null && ik.previousSibling.nodeType==3)i36--; }ik=ik.previousSibling; } this.l36.push(i36); ik=ik.parentNode; }}catch (t){}}};HTMLEditor.o37=036; HTMLEditor.prototype.O10= function (){var Ip; var Oq; var O37; try {try {Ip=this.oq(); Oq=this.lq(Ip); }catch (t){}O37=new HTMLEditor.i35(this,Oq,Ip); }catch (t){return; }if (!this.K){ this.K=[]; this.O1d=0; }while (this.O1d<this.K.length)this.K.pop(); if (this.K.length==HTMLEditor.o37){ this.K.reverse(); this.K.pop(); this.K.reverse(); } this.K.push(O37); this.O1d=this.K.length; };HTMLEditor.prototype.l37= function (){if (this.O1d>=0 && this.O1d<this.K.length){var i15=this.K[this.O1d]; var Ip; var Oq; this.D=i15.D; this.d=i15.d; this.C=i15.C; if (HTMLEditor.is_ie){function i37(O28,i20,I20,l2t,I37){return i20.replace(/\salign=[^\s>]*/ig,"")+((l2t=="\"X\"")?"": ("align="+l2t))+I37.replace(/\salign=[^\s>]*/ig,""); }var i1t=this.l1.body.getElementsByTagName("EMBED"); var l35=[]; for (var i=0; i<i1t.length; i++)l35.push(i1t[i]); for (var i2a=0; i2a<l35.length; i2a++)l35[i2a].parentNode.removeChild(l35[i2a]); var o38=i15.O36.replace(/&amp;/ig,"&"); o38=o38.replace(/(<embed(?:.*?))(teoalign=)("[^"]*")((?:.*?)>)/ig,i37); this.l1.body.innerHTML="!!!<span></span>"+HTMLEditor.l12(o38); if (this.l1.body.firstChild)this.l1.body.removeChild(this.l1.body.firstChild); if (this.l1.body.firstChild)this.l1.body.removeChild(this.l1.body.firstChild); var O11=HTMLEditor.l11(o38); HTMLEditor.o12(this.l1.body,O11); if (this.relativeImages){O11=HTMLEditor.I11(o38); HTMLEditor.O12(this.l1.body,O11); }HTMLEditor.O38(this.l1.body,i15.I35); HTMLEditor.oy(this,this.l1,!this.showAnchors); HTMLEditor.Oy(this,this.l1,!this.showPlaceHolders); if (i15.l36!=null){var ik=this.l1.body; var i; try {for (i=i15.l36.length-1; i>=0; i--){ik=ik.childNodes.item(i15.l36[i]); }}catch (t){if (this.O1d>0){ this.O1d--; this.l37(); this.O1d++; }return; }try {var i1a=this.l1.body.createControlRange(); i1a.add(ik); i1a.select(); }catch (t){}}else {var X=this ; setTimeout( function (){try {Ip=X.oq(); Oq=X.lq(Ip); if (Ip.type.toLowerCase()!="control"){try {Oq.moveToPoint(i15.O2e,i15.l2e); }catch (t){}}Oq.select(); }catch (t){}} ,0); }}else {if (HTMLEditor.i10){ this.l1.body.innerHTML=HTMLEditor.l12(i15.O36); }else { this.l1.body.innerHTML=""; for (var i=0; i<i15.O36.childNodes.length; i++){ this.l1.body.appendChild(i15.O36.childNodes.item(i).cloneNode( true)); }}HTMLEditor.oy(this,this.l1,!this.showAnchors); HTMLEditor.Oy(this,this.l1,!this.showPlaceHolders); try {Ip=this.oq(); Oq=this.lq(); this.i16(Ip); }catch (t){}var Oh=""; var ik=this.l1.body; for (var i=i15.l36.length-1; i>=0; i--){Oh+=" "+i15.l36[i]; ik=ik.childNodes.item(i15.l36[i]); }var l38=i15.I36; try {Oq.setStart(ik,l38); Oq.setEnd(ik,l38); }catch (t){HTMLEditor.I12(this.l1.body); return; }if (HTMLEditor.i10)this.f= true; try { this.I16(Ip,Oq); }catch (t){}}try {HTMLEditor.I12(this.l1.body); }catch (t){}}};HTMLEditor.prototype.SaveContent= function (){ this.O10(); };HTMLEditor.prototype.RestoreContent= function (){ this.I1d( false); };HTMLEditor.prototype.I1d= function (I15,i38){if (HTMLEditor.is_ie){var I38=this.l1.body.getElementsByTagName("EMBED"); var o39= false; if (I38.length>0){for (var i=0; i<I38.length; i++){var value=""; var i2x=I38[i].attributes; for (var ig=0; ig<i2x.length; ++ig){var a=i2x.item(ig); if (!a.specified)continue; var name=a.name.toLowerCase(); if (name=="type"){value=a.value; break; }}if (value.toLowerCase()=="application/x-mplayer2"){o39= true; break; }}}if (o39){var X=this ; X.l2d(null, function (ik){X.i2d(I15); if (typeof i38=="function")i38(); } ); }else this.i2d(I15); }else this.i2d(I15); };HTMLEditor.prototype.i2d= function (I15){if (this.K){if (this.O1d>0){if (this.O1d==this.K.length && I15){ this.O10(); } do {var I24=HTMLEditor.l12(this.l1.body.innerHTML); this.O1d--; this.l37(); }while (HTMLEditor.l12(this.l1.body.innerHTML)==I24 && this.O1d>0 && I15);var X=this ; setTimeout( function (){try {X.i1e(); X.updateToolbar(); }catch (t){}if (!I15)X.l13(); } ,5); }}};HTMLEditor.prototype.o1e= function (){if (this.K){if (this.O1d<this.K.length-1){ this.O1d++; var X=this ; var O39; if (HTMLEditor.is_ie){O39=X.l1.body.getElementsByTagName("EMBED").length; if (O39>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); setTimeout( function (){X.A.removeChild(popup); } ,0); }} this.l37(); var X=this ; setTimeout( function (){X.i1e(); X.updateToolbar(); } ,5); }}};HTMLEditor.l39= function (ik){if (ik.id && ik.id.length>0 && ik.id.indexOf(HTMLEditor.il)>=0)return true; return false;};HTMLEditor.I22= function (ik){var i39=null; try {i39=ik.parentNode; }catch (t){}if (i39){var I39=null; while (i39 && i39.tagName && i39.tagName.toUpperCase()!="BODY" && HTMLEditor.O1i(i39.tagName) && (i39.tagName.toUpperCase()!="A")){I39=i39; i39=i39.parentNode; }if (I39){function l1z(add,ik,i1z,I1z,om){var par=i1z.cloneNode( false); if (add){if (add.push && typeof add.push=="function"){for (var o3a=0; o3a<add.length; o3a++){par.appendChild(add[o3a]); }}else par.appendChild(add); }if (om)par.appendChild(ik); else while (ik){var O3a=I1z?ik.previousSibling:ik.nextSibling; if (ik.nodeType==1 || (ik.nodeType==3 && HTMLEditor.l12(""+ik.data+"").length>0)){if (ik.nodeType==1){if (ik.tagName && HTMLEditor.O1i(ik.tagName) && ik.childNodes.length==0 && !HTMLEditor.l39(ik))ik=null; }if (ik){if (par.childNodes.length==0 || !I1z)par.appendChild(ik); else par.insertBefore(ik,par.firstChild); }}ik=O3a; }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 (!om && par.tagName && HTMLEditor.O1i(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.l39(par)){var l3a=par.childNodes.length; for (var i3a=0; i3a<par.childNodes.length; i3a++){var I3a=par.childNodes.item(i3a); if (I3a.nodeType==1 && I3a.tagName && !HTMLEditor.O1i(I3a.tagName) && (I3a.tagName.toUpperCase()=="BR" || I3a.tagName.toUpperCase()=="TABLE" || HTMLEditor.l39(I3a)))l3a--; }if (l3a==0){var o3b=[]; while (par.firstChild){var I3a=par.removeChild(par.firstChild); o3b.push(I3a); }par=o3b; }}}if (i1z==I39)return par; else {if (!om)return l1z(par,I1z?i1z.previousSibling:i1z.nextSibling,i1z.parentNode,I1z,om); else return l1z(null,par,i1z.parentNode,I1z,om); }} ; i39=ik.parentNode; if (ik.previousSibling==null && ik.nextSibling==null && i39 && i39.tagName && i39.tagName.toUpperCase()!="BODY" && HTMLEditor.O1i(i39.tagName) && HTMLEditor.O3b(i39,["class","color","face","size"]).length>0)ik=i39; var i20=l1z(null,ik.previousSibling,ik.parentNode, true , false); var I20=l1z(null,ik.nextSibling,ik.parentNode, false , false); var par=I39.parentNode; if (i20){if (i20.push && typeof i20.push=="function"){for (var o3a=0; o3a<i20.length; o3a++){par.insertBefore(i20[o3a],I39); }}else par.insertBefore(i20,I39); }if (ik.nodeType==1 && ik.tagName && (ik.tagName.toUpperCase()=="BR" || ik.tagName.toUpperCase()=="TABLE" || HTMLEditor.l39(ik)))par.insertBefore(ik,I39); else {var l2t=l1z(null,ik,ik.parentNode, false , true); par.insertBefore(l2t,I39); }if (I20){if (I20.push && typeof I20.push=="function"){for (var o3a=0; o3a<I20.length; o3a++){par.insertBefore(I20[o3a],I39); }}else par.insertBefore(I20,I39); }par.removeChild(I39); }}};HTMLEditor.l3b= function (ik){if (ik.nodeType==3)return true; if (ik.nodeType!=1)return false; if (!ik.tagName || ik.tagName.length==0)return false; if (ik && ik.style && ik.style.display && ik.style.display.toLowerCase()=="inline")return true; var name=ik.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.i3b= function (O37,ik,left,I3b){while (ik){var O3a=left?ik.previousSibling:ik.nextSibling; if (!HTMLEditor.l3b(ik)){var par=ik.parentNode; if (!left)par.insertBefore(O37,ik); else {if (ik.nextSibling)par.insertBefore(O37,ik.nextSibling); else par.appendChild(O37); }return O37; }else if (typeof I3b=="function" && ik.nodeType==3){var ig; var Oh=""+ik.data+""; if (left){for (ig=Oh.length-1; ig>=0; ig--){if (I3b(Oh.substr(ig,1)))break; }}else {for (ig=0; ig<Oh.length; ig++){if (I3b(Oh.substr(ig,1)))break; }}if (ig>=0 && ig<Oh.length){var par=ik.parentNode; var o3c; if ((ig>0 || (left && ig==0)) && (ig<Oh.length-1 || (!left && ig==Oh.length-1))){if (left)o3c=ik.splitText(ig+1); else o3c=ik.splitText(ig); par.insertBefore(O37,o3c); }else {if (!left)par.insertBefore(O37,ik); else {if (ik.nextSibling)par.insertBefore(O37,ik.nextSibling); else par.appendChild(O37); }}return O37; }}ik=left?ik.lastChild:ik.firstChild; if (ik){var l1u=HTMLEditor.i3b(O37,ik,left,I3b); if (l1u!=null)return l1u; }ik=O3a; }return null; };HTMLEditor.O3c= function (O37,ik,left,par,I3b){while ( true){var l1u=HTMLEditor.i3b(O37,ik,left,I3b); if (l1u!=null)return l1u; if (par.tagName && HTMLEditor.O1i(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.l39(par)){ik=left?par.previousSibling:par.nextSibling; par=par.parentNode; }else {if (!left || par.firstChild==null)par.appendChild(O37); else par.insertBefore(O37,par.firstChild); return O37; }}};HTMLEditor.l3c= function (o16,ik){if (ik==o16)return o16; if (o16.nodeType==1){for (var i=0; i<o16.childNodes.length; i++){var O35=o16.childNodes.item(i); if (ik==O35)return O35; if (O35.nodeType==1){var o1c=HTMLEditor.i3c(O35,ik); if (o1c>=0){if (O35.tagName && HTMLEditor.O1i(O35.tagName) && (O35.tagName.toUpperCase()!="A") && !HTMLEditor.l39(O35))return HTMLEditor.l3c(O35,ik); else return O35; }}}}return null; };HTMLEditor.I3c= function (o3d,O3d){function l3d(i30){if (!HTMLEditor.l3b(i30)){HTMLEditor.I22(i30); }else if (i30.tagName && HTMLEditor.O1i(i30.tagName) && (i30.tagName.toUpperCase()!="A") && !HTMLEditor.l39(i30)){var i3d=i30.firstChild; while (i3d!=null){var I3d=i3d.nextSibling; l3d(i3d); i3d=I3d; }}}var i30=o3d; while (i30!=null && i30!=O3d){var nextSibling=i30.nextSibling; l3d(i30); i30=nextSibling; }};HTMLEditor.prototype.o3e= function (i19,I19,O3e){var l1u=[]; var o3d=i19; var O3d=(I19.nextSibling!=null && I19.nextSibling.tagName && I19.nextSibling.tagName.toUpperCase()=="BR")?I19.nextSibling:I19; var o23=null; if (o3d==null || O3d==null){if (o3d!=null){o23=HTMLEditor.O23(o3d,o3d); }if (O3d!=null){o23=HTMLEditor.O23(O3d,O3d); }}else o23=HTMLEditor.O23(o3d,O3d); if (o23!=null){o3d=HTMLEditor.l3c(o23.parent.childNodes.item(o23.o24),o3d); O3d=HTMLEditor.l3c(o23.parent.childNodes.item(o23.l24),O3d); HTMLEditor.I22(o3d); HTMLEditor.I22(O3d); while (o3d.parentNode!=o23.parent)o3d=o3d.parentNode; while (O3d.parentNode!=o23.parent)O3d=O3d.parentNode; HTMLEditor.I3c(o3d.nextSibling,O3d); o23=null; if (i19==null || I19==null){if (i19!=null){o23=HTMLEditor.O23(i19,i19); }if (I19!=null){o23=HTMLEditor.O23(I19,I19); }}else o23=HTMLEditor.O23(i19,I19); if (o23!=null){HTMLEditor.o25(o23.parent,this.l1,o23.o24,o23.l24+1, true); }function l3e(i30){if (!HTMLEditor.l3b(i30)){return true; }else if (i30.tagName && HTMLEditor.O1i(i30.tagName) && (i30.tagName.toUpperCase()!="A") && !HTMLEditor.l39(i30)){var i3d=i30.firstChild; while (i3d!=null){I3d=i3d.nextSibling; var ok=l3e(i3d); if (ok)return true; i3d=I3d; }}return false; }var i3e=0; var I3e=[]; var o3f=0; if (o3d.tagName && O3d.tagName){if ((o3d.tagName.toUpperCase()=="TD" || o3d.tagName.toUpperCase()=="TR") && (O3d.tagName.toUpperCase()=="TD" || O3d.tagName.toUpperCase()=="TR")){while (o3d.tagName.toUpperCase()!="TABLE")o3d=o3d.parentNode; O3d=o3d; }else if ((o3d.tagName.toUpperCase()=="DD" || o3d.tagName.toUpperCase()=="DT") && (O3d.tagName.toUpperCase()=="DD" || O3d.tagName.toUpperCase()=="DT")){while (o3d.tagName && o3d.tagName.toUpperCase()!="DL")o3d=o3d.parentNode; O3d=o3d; }else if ((o3d.tagName.toUpperCase()=="LI") && (O3d.tagName.toUpperCase()=="LI")){while (o3d.tagName && o3d.tagName.toUpperCase()!="UL" && o3d.tagName.toUpperCase()!="OL"){o3d=o3d.parentNode; }O3d=o3d; }}var O3f=i19?i19:I19; var l3f=I19?I19:i19; var i30=o3d; while ( true){if (!HTMLEditor.l39(i30)){var i3f=l3e(i30); if (!i3f){if (i30.nodeType && i30.nodeType==3){var Oh=""+i30.data+""; if (Oh.length==0 ||/^[\n\r]+$/.test(Oh)){var I3f=i30.nextSibling; i30.parentNode.removeChild(i30); if (i30==O3d)break; i30=I3f; continue; }}I3e[o3f]=i30; o3f++; }else {if (i30.tagName && i30.tagName.toUpperCase()=="BR"){I3e[o3f]=i30; l1u[i3e]=I3e; i3e++; I3e=[]; o3f=0; }else if ((i30==O3d || i30==o3d) && !((i30==O3d && i30==o3d)?(HTMLEditor.o3g(i30,O3f) && HTMLEditor.O3g(i30,l3f)): (HTMLEditor.o3g(i30,O3f) || HTMLEditor.O3g(i30,l3f)))){if (i30.tagName && (i30.tagName.toUpperCase()=="TABLE" || i30.tagName.toUpperCase()=="TBODY")){var table=i30; while (table.tagName.toUpperCase()!="TABLE")table=table.parentNode; var l3g=0; var i3g=0; var I3g=table.rows.item(table.rows.length-1).cells.length-1; var o3h=table.rows.length-1; for (var i=0; i<table.rows.length; i++){var i21=table.rows.item(i); var ig=0; for ( ; ig<i21.cells.length; ig++){var cell=i21.cells.item(ig); if (HTMLEditor.i3c(cell,O3f)>=0){l3g=ig; i3g=i; }if (HTMLEditor.i3c(cell,l3f)>=0){I3g=ig; o3h=i; }}}for (var i=i3g; i<=o3h; i++)for (var ig=((i==i3g)?l3g: 0); ig<=((i==o3h)?I3g: (table.rows.item(i).cells.length-1)); ig++){var cell=table.rows.item(i).cells.item(ig); if (o3f>0){l1u[i3e]=I3e; i3e++; I3e=[]; o3f=0; }var O3h=(HTMLEditor.i3c(cell,O3f)>=0); var l3h=(HTMLEditor.i3c(cell,l3f)>=0); if (O3h || l3h){var i3h=O3f; var I3h=l3f; var I21=HTMLEditor.il+"_right_"+O3e; var o22=HTMLEditor.il+"_left_"+O3e; if (O3h){I3h=this.l1.createElement("span"); I3h.id=I21; cell.appendChild(I3h); }if (l3h){i3h=this.l1.createElement("span"); i3h.id=o22; if (cell.firstChild)cell.insertBefore(i3h,cell.firstChild); else cell.appendChild(i3h); }var o3i=this.o3e(i3h,I3h,O3e+1); for (var i3a=0; i3a<o3i.length; i3a++){l1u[i3e]=o3i[i3a]; i3e++; }if (i3h!=O3f)i3h.parentNode.removeChild(i3h); if (I3h!=l3f)I3h.parentNode.removeChild(I3h); }else {var O3i=0; var l3i=cell.childNodes.length; for (var o2b=O3i; o2b<l3i; o2b++){var ik=cell.childNodes.item(o2b); if (!HTMLEditor.l39(ik)){I3e[o3f]=ik; o3f++; }}if (I3e.length>0){l1u[i3e]=I3e; i3e++; I3e=[]; o3f=0; }}}}else if (i30.tagName && (i30.tagName.toUpperCase()=="UL" || i30.tagName.toUpperCase()=="OL" || i30.tagName.toUpperCase()=="DL")){var o2f=i30; var i3i=0; var I3i=o2f.childNodes.length-1; for (var i=0; i<o2f.childNodes.length; i++){var o3j=o2f.childNodes.item(i); if (o3j.nodeType==1){if (o3j==O3f || HTMLEditor.i3c(o3j,O3f)>=0){i3i=i; }if (o3j==l3f || HTMLEditor.i3c(o3j,l3f)>=0){I3i=i; }}}for (var i=i3i; i<=I3i; i++){var o3j=o2f.childNodes.item(i); if (o3f>0){l1u[i3e]=I3e; i3e++; I3e=[]; o3f=0; }var O3h=(HTMLEditor.i3c(o3j,O3f)>=0); var l3h=(HTMLEditor.i3c(o3j,l3f)>=0); if (O3h || l3h){var i3h=O3f; var I3h=l3f; var I21=HTMLEditor.il+"_right_"+O3e; var o22=HTMLEditor.il+"_left_"+O3e; if (O3h){I3h=this.l1.createElement("span"); I3h.id=I21; o3j.appendChild(I3h); }if (l3h){i3h=this.l1.createElement("span"); i3h.id=o22; if (o3j.firstChild)o3j.insertBefore(i3h,o3j.firstChild); else o3j.appendChild(i3h); }var o3i=this.o3e(i3h,I3h,O3e+1); for (var i3a=0; i3a<o3i.length; i3a++){l1u[i3e]=o3i[i3a]; i3e++; }if (i3h!=O3f)i3h.parentNode.removeChild(i3h); if (I3h!=l3f)I3h.parentNode.removeChild(I3h); }else {var O3i=0; var l3i=o3j.childNodes.length; for (var o2b=O3i; o2b<l3i; o2b++){var ik=o3j.childNodes.item(o2b); if (!HTMLEditor.l39(ik)){I3e[o3f]=ik; o3f++; }}if (I3e.length>0){l1u[i3e]=I3e; i3e++; I3e=[]; o3f=0; }}}}else {var O3h=(HTMLEditor.i3c(i30,O3f)>=0); var l3h=(HTMLEditor.i3c(i30,l3f)>=0); if (o3f>0){l1u[i3e]=I3e; i3e++; I3e=[]; o3f=0; }if (O3h || l3h){var i3h=O3f; var I3h=l3f; var I21=HTMLEditor.il+"_right_"+O3e; var o22=HTMLEditor.il+"_left_"+O3e; if (O3h){I3h=this.l1.createElement("span"); I3h.id=I21; i30.appendChild(I3h); }if (l3h){i3h=this.l1.createElement("span"); i3h.id=o22; if (i30.firstChild)i30.insertBefore(i3h,i30.firstChild); else i30.appendChild(i3h); }var o3i=this.o3e(i3h,I3h,O3e+1); for (var i3a=0; i3a<o3i.length; i3a++){l1u[i3e]=o3i[i3a]; i3e++; }if (i3h!=O3f)i3h.parentNode.removeChild(i3h); if (I3h!=l3f)I3h.parentNode.removeChild(I3h); }else {var O3i=0; var l3i=i30.childNodes.length; for (var o2b=O3i; o2b<l3i; o2b++){var ik=i30.childNodes.item(o2b); if (!HTMLEditor.l39(ik)){I3e[o3f]=ik; o3f++; }}if (I3e.length>0){l1u[i3e]=I3e; i3e++; I3e=[]; o3f=0; }}}}else {if (o3f>0){l1u[i3e]=I3e; i3e++; I3e=[]; o3f=0; }I3e[o3f]=i30; l1u[i3e]=I3e; i3e++; I3e=[]; o3f=0; }}}if (i30==O3d)break; i30=i30.nextSibling; }if (o3f>0){l1u[i3e]=I3e; }}return l1u; };HTMLEditor.prototype.getPseudoP= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return []; var l1u=[]; try {var Ip=this.oq(); var Oq=this.lq(Ip); var I21=HTMLEditor.il+"_right"; var o22=HTMLEditor.il+"_left"; var O22=null; var l22=null; if (HTMLEditor.is_ie){if (Ip.type.toLowerCase()!="control"){O22=Oq.duplicate(); l22=Oq.duplicate(); O22.setEndPoint("EndToStart",Oq); l22.setEndPoint("StartToEnd",Oq); }}else {O22=Oq.cloneRange(); l22=Oq.cloneRange(); O22.setEnd(O22.startContainer,O22.startOffset); l22.setStart(l22.endContainer,l22.endOffset); }var i19=null; var I19=null; if (HTMLEditor.is_ie && Ip.type.toLowerCase()=="control"){var O1b=Oq.item(0); var O3j; O3j=this.l1.createElement("SPAN"); O3j.id=o22; O1b.parentNode.insertBefore(O3j,O1b); O3j=this.l1.createElement("SPAN"); O3j.id=I21; if (O1b.nextSibling==null)O1b.parentNode.appendChild(O3j); else O1b.parentNode.insertBefore(O3j,O1b.nextSibling); }else {if (!this.o11("<span id='"+I21+"'/>",l22))return []; if (!this.o11("<span id='"+o22+"'/>",O22)){var i22=this.l1.getElementById(I21); if (i22!=null){ok=i22.parentNode; ok.removeChild(i22); }return []; }}i19=this.l1.getElementById(o22); I19=this.l1.getElementById(I21); if (i19!=null && I19!=null){while (i19.nextSibling==null){if (i19.parentNode.nextSibling)i19.parentNode.parentNode.insertBefore(i19,i19.parentNode.nextSibling); else i19.parentNode.parentNode.appendChild(i19); }}if (i19!=null && I19!=null){while (I19.previousSibling==null)I19.parentNode.parentNode.insertBefore(I19,I19.parentNode); if (I19.previousSibling.nodeType==1 && I19.previousSibling.tagName.toUpperCase()!="BR" && I19.previousSibling.tagName.toUpperCase()!="IMG"){var O24=HTMLEditor.l3j(I19.previousSibling); if (O24.nodeType==1 && HTMLEditor.canHaveChildren(O24))O24.appendChild(I19); else O24.parentNode.appendChild(I19); }if (I19.previousSibling && I19.previousSibling.nodeType==1 && I19.previousSibling.tagName.toUpperCase()=="BR")I19.parentNode.insertBefore(I19,I19.previousSibling); }if (i19==null){var span=this.l1.createElement("SPAN"); span.id=o22; I19.parentNode.insertBefore(span,I19); i19=span; }if (I19==null){var span=this.l1.createElement("SPAN"); span.id=I21; if (i19.nextSibling)i19.parentNode.insertBefore(span,i19.nextSibling); else i19.parentNode.appendChild(span); I19=span; }if (i19!=null && I19!=null){if (i19.parentNode==I19){I19.parentNode.insertBefore(i19,I19); }else if (I19.parentNode==i19){if (i19.nextSibling!=null)i19.parentNode.insertBefore(I19,i19.nextSibling); else i19.parentNode.appendChild(I19); }}while (i19.nextSibling!=null && i19.nextSibling.nodeType==3 && (""+i19.nextSibling.data+"").length==0)i19.parentNode.removeChild(i19.nextSibling); if (this.i3j==null && i19!=null && I19!=null && i19.nextSibling==I19){var par=I19.parentNode; this.i3j=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1i(par.tagName)){if (par.tagName.toUpperCase()!="A"){var ok=par.cloneNode( false); if (this.i3j==null){ this.i3j=ok; }else {ok.appendChild(this.i3j); this.i3j=ok; }}par=par.parentNode; }if (this.i3j){var I3j=this.l1.createElement("span"); I3j.appendChild(this.i3j); this.i3j=I3j.innerHTML; }}var o3k=i19; while (o3k && o3k.tagName && HTMLEditor.O1i(o3k.tagName) && (o3k.tagName.toUpperCase()!="A")){o3k=o3k.parentNode; }if (o3k!=null && (o3k.tagName.toUpperCase()=="P" || (o3k.tagName.length==2 && o3k.tagName.toUpperCase().substr(0,1)=="H" && parseInt(o3k.tagName.substr(1,1))>0))){if (o3k.firstChild!=null)o3k.insertBefore(i19,o3k.firstChild); else o3k.appendChild(i19); }else HTMLEditor.O3c(i19,i19.previousSibling, true ,i19.parentNode); o3k=I19; while (o3k && o3k.tagName && HTMLEditor.O1i(o3k.tagName) && (o3k.tagName.toUpperCase()!="A")){o3k=o3k.parentNode; }if (o3k!=null && (o3k.tagName.toUpperCase()=="P" || (o3k.tagName.length==2 && o3k.tagName.toUpperCase().substr(0,1)=="H" && parseInt(o3k.tagName.substr(1,1))>0))){o3k.appendChild(I19); }else HTMLEditor.O3c(I19,I19.nextSibling, false ,I19.parentNode); l1u=this.o3e(i19,I19,0); if (l1u.length==0 && i19.previousSibling==null && I19.nextSibling==null && i19.nextSibling==I19 && (i19.parentNode.tagName.toUpperCase()=="P" || i19.parentNode.tagName.toUpperCase()=="DIV" || i19.parentNode.tagName.toUpperCase()=="LI" || (i19.parentNode.tagName.length==2 && i19.parentNode.tagName.toUpperCase().substr(0,1)=="H" && parseInt(i19.parentNode.tagName.substr(1,1))>0)))l1u=[[i19.parentNode]]; if (HTMLEditor.is_ie){Ip.empty(); Ip=this.oq(); var O3k=this.lq(Ip); var l3k=this.lq(Ip); try {if (i19!=null)O3k.moveToElementText(i19); if (I19!=null)l3k.moveToElementText(I19); if (i19!=null && I19!=null){O3k.setEndPoint("EndToEnd",l3k); O3k.select(); }else if (i19!=null)O3k.select(); else if (I19!=null)l3k.select(); }catch (t){}}if (i19!=null)i19.parentNode.removeChild(i19); if (I19!=null)I19.parentNode.removeChild(I19); }catch (t){alert("getPseudoP: "+t.message); var i3k=this.l1.getElementsByTagName("SPAN"); var del=[]; for (var i=0; i<i3k.length; i++){var span=i3k[i]; if (span.id && span.id.length>0){var o2n=new RegExp(HTMLEditor.il,"ig"); if (o2n.test(span.id))del.push(span); }}for (var i=0; i<del.length; i++)del[i].parentNode.removeChild(del[i]); }return l1u; } ; HTMLEditor.prototype.I3k= function (O1o,o3l){var X=this ; if (O1o.firstChild){while (O1o.firstChild && O1o.firstChild.nodeType==3 && (""+O1o.firstChild.data+"")=="")O1o.removeChild(O1o.firstChild); var O3l=[]; while (O1o.firstChild){if (O1o.firstChild!=o3l[0] && O1o.firstChild!=o3l[1])O3l.push(O1o.firstChild); O1o.parentNode.insertBefore(O1o.firstChild,O1o); }if (O3l.length==0){var br=X.l1.createElement("BR"); O1o.parentNode.insertBefore(br,O1o); }if (HTMLEditor.is_ie && O3l.length==1 && O3l[0].nodeType==3){var Oh=""+O3l[0].data+""; if (Oh.length==1 && Oh.charCodeAt(0)==0240){var br=X.l1.createElement("BR"); O3l[0].parentNode.insertBefore(br,O3l[0]); O3l[0].parentNode.removeChild(O3l[0]); }}while (O1o.nextSibling && O1o.nextSibling.nodeType==3 && (""+O1o.nextSibling.data+"")=="")O1o.parentNode.removeChild(O1o.nextSibling); var previousSibling=(O1o.previousSibling && o3l[1]==O1o.previousSibling)?o3l[1].previousSibling:O1o.previousSibling; if (previousSibling && HTMLEditor.l3b(previousSibling))if (previousSibling.nodeType==1 && previousSibling.childNodes.length>0)previousSibling=HTMLEditor.l3j(previousSibling); if (HTMLEditor.l3b(previousSibling) && O1o.nextSibling!=null){var br=X.l1.createElement("BR"); O1o.parentNode.insertBefore(br,O1o); }}else {var br=X.l1.createElement("BR"); O1o.parentNode.insertBefore(br,O1o); }O1o.parentNode.removeChild(O1o); };HTMLEditor.prototype.l3l= function (O1o,o3l,i3l){var X=this ; O1o.style.textAlign=""; var I3l=0; var i2x=O1o.attributes; for (var o2b=0; o2b<i2x.length; ++o2b){var a=i2x.item(o2b); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; I3l++; }var o3m=O1o.style.cssText; var margin=0; var O3m; if (!(typeof i3l!="undefined" && i3l))if (O1o.tagName.toUpperCase()!="LI")try {O3m=parseInt(HTMLEditor.ly(O1o,"margin-top")); if (isNaN(O3m))O3m=O1o.tagName.toUpperCase()=="P"?1: 0; margin+=O3m; O3m=parseInt(HTMLEditor.ly(O1o,"margin-bottom")); if (isNaN(O3m))O3m=O1o.tagName.toUpperCase()=="P"?1: 0; margin+=O3m; O3m=parseInt(HTMLEditor.ly(O1o,"margin-right")); if (isNaN(O3m))O3m=O1o.tagName.toUpperCase()=="P"?1: 0; margin+=O3m; O3m=parseInt(HTMLEditor.ly(O1o,"margin-left")); if (isNaN(O3m))O3m=O1o.tagName.toUpperCase()=="P"?1: 0; margin+=O3m; }catch (t){margin=1; }O1o.style.margin=""; if ((I3l==0 && O1o.style.cssText.length==0 && margin==0) || (typeof i3l!="undefined" && i3l && O1o.tagName.toUpperCase()!="LI")){X.I3k(O1o,o3l); return true; }else {O1o.style.cssText=o3m; return false; }};HTMLEditor.l3m= function (ik){var name=ik.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return true; }}return false; };HTMLEditor.prototype.i3m= function (textAlign,I3m,o3n){var O3n=this.l3n(); var o3l=this.i3n(O3n); var I3n=null; var o3o=[]; var X=this ; var i3l=(typeof I3m!="undefined" && I3m)? true : false; var O3o=(typeof o3n=="string")? true : false; var l3o=(typeof o3n=="string")?o3n: ""; var i3o= false; var I3o= false; function o3p(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==o3l[0] || div.firstChild==o3l[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function O3p(){var firstChild=I3n.firstChild; var lastChild=I3n.lastChild; if (I3n.tagName && !HTMLEditor.l3b(I3n) && o3o[0][0]==firstChild && o3o[o3o.length-1][o3o[o3o.length-1].length-1]==lastChild && I3n.tagName.toUpperCase()!="TD" && I3n.tagName.toUpperCase()!="TH" && I3n.tagName.toUpperCase()!="FIELDSET" && I3n.tagName.toUpperCase()!="LEGEND"){var align=""; if (I3n.getAttribute("align") && I3n.getAttribute("align").length>0)align=I3n.getAttribute("align"); if (I3n.align && I3n.align.length>0)align=I3n.align; if (I3n.style.textAlign && I3n.style.textAlign.length>0)align=I3n.style.textAlign; I3n.align=""; I3n.setAttribute("align",""); I3n.removeAttribute("align"); if ((I3n.tagName.toUpperCase()=="DIV" || I3n.tagName.toUpperCase()=="P" || HTMLEditor.l3m(I3n)) && textAlign=="left" && i3l){if (X.l3l(I3n,o3l,i3l))i3o= true; }else {if (textAlign!="remain"){if (!(textAlign=="left" && i3l) || (I3n.tagName.toUpperCase()=="LI" && I3n.parentNode.style.textAlign.length>0))I3n.style.textAlign=textAlign; else I3n.style.textAlign=""; }if (i3l)I3n.style.margin=(I3n.tagName.toUpperCase()=="P")?"0px": ""; if (I3n.tagName.toUpperCase()=="LI"){var o2f=I3n.parentNode; var l3p=[]; for (var i3p=0; i3p<o2f.childNodes.length; i3p++)if (o2f.childNodes.item(i3p).nodeType==1)l3p.push(o2f.childNodes.item(i3p).style.textAlign); var I3p=1; for ( ; I3p<l3p.length; I3p++)if (l3p[I3p-1]!=l3p[I3p])break; if (I3p==l3p.length){var align=(l3p[0]=="left" && i3l)?"":l3p[0]; for (var ig=0; ig<o2f.childNodes.length; ig++)if (o2f.childNodes.item(ig).nodeType==1){o2f.childNodes.item(ig).style.textAlign=""; if (i3l)o2f.childNodes.item(ig).style.margin=(o2f.childNodes.item(ig).tagName.toUpperCase()=="P")?"0px": ""; }o2f.style.textAlign=align; }}if ((I3n.tagName.toUpperCase()=="DIV" || I3n.tagName.toUpperCase()=="P" || HTMLEditor.l3m(I3n)) && O3o && l3o.toUpperCase()!=I3n.tagName.toUpperCase()){var o3q=X.l1.createElement(l3o); var i2x=I3n.attributes; for (var o2b=0; o2b<i2x.length; ++o2b){var a=i2x.item(o2b); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; o3q.setAttribute(a.name,a.value); }o3q.style.cssText=I3n.style.cssText; while (I3n.firstChild)o3q.appendChild(I3n.firstChild); I3n.parentNode.insertBefore(o3q,I3n); I3n.parentNode.removeChild(I3n); }}}else {var div=null; for (var i=0; i<o3o.length; i++){if (!O3o)div=null; var paragraph=o3o[i]; for (var ig=0; ig<paragraph.length; ig++){var O1o=paragraph[ig]; if (O1o.nodeType==1 && O1o.tagName && (O1o.tagName.toUpperCase()=="UL" || O1o.tagName.toUpperCase()=="OL" || O1o.tagName.toUpperCase()=="DL" || O1o.tagName.toUpperCase()=="DIV" || HTMLEditor.l3m(O1o) || O1o.tagName.toUpperCase()=="P" || O1o.tagName.toUpperCase()=="LI" || O1o.tagName.toUpperCase()=="TABLE")){o3p(div); div=null; if (textAlign!="remain")if (O1o.tagName.toUpperCase()!="TABLE" && !i3l)O1o.style.textAlign=textAlign; if (i3l)O1o.style.margin=(O1o.tagName.toUpperCase()=="P")?"0px": ""; if ((O1o.tagName.toUpperCase()=="UL" || O1o.tagName.toUpperCase()=="OL" || O1o.tagName.toUpperCase()=="DL")){for (var i2a=0; i2a<O1o.childNodes.length; i2a++){var li=O1o.childNodes.item(i2a); if (li.nodeType==1){li.style.textAlign=""; if (i3l)li.style.margin=(li.tagName.toUpperCase()=="P")?"0px": ""; for (var O3q=0; O3q<li.childNodes.length; O3q++){var O35=li.childNodes.item(O3q); if (O35.nodeType==1 && i3l)O35.style.margin=(O35.tagName.toUpperCase()=="P")?"0px": ""; if (O35.nodeType==1 && O35.tagName && (O35.tagName.toUpperCase()=="DIV" || O35.tagName.toUpperCase()=="P" || HTMLEditor.l3m(O35))){if (X.l3l(O35,o3l,i3l))i3o= true; }}}}if (textAlign=="left" && i3l)O1o.style.textAlign=""; continue; }else if (O1o.tagName.toUpperCase()=="LI"){if (textAlign!="remain"){if (!(textAlign=="left" && i3l) || O1o.parentNode.style.textAlign.length>0)O1o.style.textAlign=textAlign; else O1o.style.textAlign=""; }if (i3l)O1o.style.margin=(O1o.tagName.toUpperCase()=="P")?"0px": ""; var o2f=O1o.parentNode; var l3p=[]; for (var i3p=0; i3p<o2f.childNodes.length; i3p++)if (o2f.childNodes.item(i3p).nodeType==1)l3p.push(o2f.childNodes.item(i3p).style.textAlign); var I3p=1; for ( ; I3p<l3p.length; I3p++)if (l3p[I3p-1]!=l3p[I3p])break; if (I3p==l3p.length){var align=(l3p[0]=="left" && i3l)?"":l3p[0]; for (var ig=0; ig<o2f.childNodes.length; ig++)if (o2f.childNodes.item(ig).nodeType==1){o2f.childNodes.item(ig).style.textAlign=""; if (i3l)o2f.childNodes.item(ig).style.margin=(o2f.childNodes.item(ig).tagName.toUpperCase()=="P")?"0px": ""; }o2f.style.textAlign=align; }continue; }else if (O1o.tagName.toUpperCase()=="TABLE"){if (textAlign!="remain"){if (!(textAlign=="left" && i3l))O1o.align=textAlign; else {O1o.align=""; O1o.removeAttribute("align"); }}}if ((O1o.tagName.toUpperCase()=="DIV" || O1o.tagName.toUpperCase()=="P" || HTMLEditor.l3m(O1o)) && textAlign=="left" && i3l){if (X.l3l(O1o,o3l,i3l))i3o= true; }if ((O1o.tagName.toUpperCase()=="DIV" || O1o.tagName.toUpperCase()=="P" || HTMLEditor.l3m(O1o)) && O3o && l3o.toUpperCase()!=O1o.tagName.toUpperCase()){var o3q=X.l1.createElement(l3o); var i2x=O1o.attributes; for (var o2b=0; o2b<i2x.length; ++o2b){var a=i2x.item(o2b); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; o3q.setAttribute(a.name,a.value); }o3q.style.cssText=O1o.style.cssText; while (O1o.firstChild)o3q.appendChild(O1o.firstChild); O1o.parentNode.insertBefore(o3q,O1o); O1o.parentNode.removeChild(O1o); }}else {if (!(textAlign=="left" && i3l) || O3o){if (div==null){div=X.l1.createElement(O3o?l3o:X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P" && !O3o)div.style.margin="0px"; if (!O3o)div.style.textAlign=textAlign; O1o.parentNode.insertBefore(div,O1o); if (X.l1.body.firstChild==div)I3o= true; }var l3q=(paragraph[paragraph.length-1]==o3l[1])?paragraph.length-1:paragraph.length; var i3q=(paragraph[0]==o3l[0])?1: 0; if (O1o.tagName && O1o.tagName.toUpperCase()=="BR" && ig==l3q-1 && ig==i3q){if (HTMLEditor.is_ie){div.appendChild(X.l1.createTextNode(String.fromCharCode(0240))); O1o.parentNode.removeChild(O1o); }else div.appendChild(O1o); }else if (O1o.tagName && O1o.tagName.toUpperCase()=="BR" && ig==l3q-1 && ig>i3q && (!O3o || (O1o.nextSibling!=null && O1o.nextSibling==o3l[1])))O1o.parentNode.removeChild(O1o); else div.appendChild(O1o); if (O1o.tagName && O1o.tagName.toUpperCase()=="BR" && ig==paragraph.length-1 && !O3o){o3p(div); div=null; }if (O1o==o3l[1] && ig==paragraph.length-1){o3p(div); div=null; }}}}}}}for (var i=0; i<O3n.length; i++){var paragraph=O3n[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=I3n){if (o3o.length>0)O3p(); o3o=[]; I3n=paragraph[0].parentNode; }o3o.push(paragraph); }}if (o3o.length>0)O3p(); this.i1l(o3l,i3o); };HTMLEditor.prototype.l3n= function (){ this.i3j=null; var O3n=this.getPseudoP(); if (O3n.length==0){try {var Oh="<span id='"+HTMLEditor.il+"_ll'></span><span id='"+HTMLEditor.il+"_rr'></span><br>"; this.o11(Oh); var i19=this.l1.getElementById(HTMLEditor.il+"_ll"); var I19=this.l1.getElementById(HTMLEditor.il+"_rr"); var I17=this.i3j; this.i3j=null; this.i1l([i19,I19], false); this.i3j=I17; O3n=this.getPseudoP(); }catch (w){} ; }return O3n; };HTMLEditor.prototype.I3q= function (o3r){var O3n=this.l3n(); var o3l=this.i3n(O3n); var I3n=null; var o3o=[]; var X=this ; var O3r=null; var l3r=[]; var i3r=o3r.toUpperCase(); var i3o= false; function I3r(){if (O3r!=null){var o3s; o3s=O3r.cloneNode( false); O3r.parentNode.insertBefore(o3s,O3r); while (O3r.firstChild!=l3r[0])o3s.appendChild(O3r.firstChild); if (o3s.firstChild==null)o3s.parentNode.removeChild(o3s); if (O3r.tagName.toUpperCase()==i3r){for (var i=0; i<l3r.length; i++){var O1o=l3r[i]; if (O1o.nodeType==1 && O1o.tagName && O1o.tagName.toUpperCase()=="LI"){var I1m= false; O3r.parentNode.insertBefore(O1o,O3r); if (O1o.style.textAlign=="")O1o.style.textAlign=O3r.style.textAlign; if (O3r.childNodes.length==0 && i==l3r.length-1){O3r.parentNode.removeChild(O3r); O3r=null; }if (O1o.style.textAlign=="" || (O1o.style.textAlign.toLowerCase()=="left" && !X.rtlState()) || (O1o.style.textAlign.toLowerCase()=="right" && X.rtlState())){I1m=X.l3l(O1o,o3l); if (I1m)i3o= true; }if (!I1m){var O3s=X.l1.createElement(X.dfltBlockElement); var i2x=O1o.attributes; for (var l3s=0; l3s<i2x.length; ++l3s){var a=i2x.item(l3s); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; O3s.setAttribute(a.name,a.value); }O3s.style.cssText=O1o.style.cssText; if (O3s.tagName.toUpperCase()=="P")O3s.style.margin="0px"; while (O1o.firstChild)O3s.appendChild(O1o.firstChild); O1o.parentNode.insertBefore(O3s,O1o); O1o.parentNode.removeChild(O1o); }}else O3r.parentNode.insertBefore(O1o,O3r); }}else {var o3s=X.l1.createElement(i3r); var i2x=O3r.attributes; for (var l3s=0; l3s<i2x.length; ++l3s){var a=i2x.item(l3s); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; o3s.setAttribute(a.name,a.value); }o3s.style.cssText=O3r.style.cssText; O3r.parentNode.insertBefore(o3s,O3r); for (var i=0; i<l3r.length; i++){var O1o=l3r[i]; o3s.appendChild(O1o); }}if (O3r!=null){o3s=O3r.cloneNode( false); O3r.parentNode.insertBefore(o3s,O3r); while (O3r.firstChild)o3s.appendChild(O3r.firstChild); if (o3s.firstChild==null)o3s.parentNode.removeChild(o3s); O3r.parentNode.removeChild(O3r); }}O3r=null; l3r=[]; }function O3p(){var firstChild=I3n.firstChild; var lastChild=I3n.lastChild; if (I3n.tagName && !HTMLEditor.l3b(I3n) && o3o[0][0]==firstChild && o3o[o3o.length-1][o3o[o3o.length-1].length-1]==lastChild && (I3n.tagName.toUpperCase()=="OL" || I3n.tagName.toUpperCase()=="UL" || I3n.tagName.toUpperCase()=="DL" || I3n.tagName.toUpperCase()=="LI" || ((I3n.tagName.toUpperCase()=="P" || I3n.tagName.toUpperCase()=="DIV" || HTMLEditor.l3m(I3n)) && I3n.parentNode.tagName.toUpperCase()=="LI"))){I3r(); l3r=[]; if (I3n.tagName.toUpperCase()=="LI"){O3r=I3n.parentNode; l3r.push(I3n); }else if (I3n.tagName.toUpperCase()=="P" || I3n.tagName.toUpperCase()=="DIV" || HTMLEditor.l3m(I3n)){O3r=I3n.parentNode.parentNode; l3r.push(I3n.parentNode); }else {O3r=I3n; for (var i=0; i<o3o.length; i++){var paragraph=o3o[i]; for (var ig=0; ig<paragraph.length; ig++){l3r.push(paragraph[ig]); }}}I3r(); }else {var i3s=I3n.tagName.toUpperCase(); if (i3s=="LI" && (o3o.length<O3n.length)){if (O3r!=I3n.parentNode){I3r(); O3r=I3n.parentNode; l3r=[]; }l3r.push(I3n); }else if (i3s=="OL" || i3s=="UL" || i3s=="DL"){I3r(); O3r=I3n; l3r=[]; for (var i=0; i<o3o.length; i++){var paragraph=o3o[i]; for (var ig=0; ig<paragraph.length; ig++){l3r.push(paragraph[ig]); }}I3r(); }else {var li=null; var o2f=null; function I3s(){if (li!=null)if (li.childNodes==1 && (li.firstChild==o3l[0] || li.firstChild==o3l[1])){li.parentNode.insertBefore(li.firstChild,li); li.parentNode.removeChild(li); }li=null; }if (O3r!=null){I3r(); }if (o3o.length==1 && o3o[0].length==1 && o3o[0][0].nodeType==1 && o3o[0][0].tagName && (o3o[0][0].tagName.toUpperCase()=="OL" || o3o[0][0].tagName.toUpperCase()=="UL" || o3o[0][0].tagName.toUpperCase()=="DL")){var O1o=o3o[0][0]; O3r=O1o; l3r=[]; for (var i=0; i<O1o.childNodes.length; i++){var ik=O1o.childNodes.item(i); l3r.push(ik); }I3r(); }else for (var i=0; i<o3o.length; i++){var paragraph=o3o[i]; for (var ig=0; ig<paragraph.length; ig++){var O1o=paragraph[ig]; if (o2f==null){o2f=X.l1.createElement(i3r); O1o.parentNode.insertBefore(o2f,O1o); }if (!HTMLEditor.l3b(O1o) && !(O1o.tagName && O1o.tagName.toUpperCase()=="BR")){if (li && li.firstChild)I3s(); if (li==null){li=X.l1.createElement("LI"); o2f.appendChild(li); }li.appendChild(O1o); I3s(); }else {if (li==null){li=X.l1.createElement("LI"); o2f.appendChild(li); }var l3q=(paragraph[paragraph.length-1]==o3l[1])?paragraph.length-1:paragraph.length; var i3q=(paragraph[0]==o3l[0])?1: 0; if (O1o.tagName && O1o.tagName.toUpperCase()=="BR" && ig==l3q-1 && ig==i3q){if (HTMLEditor.is_ie){li.appendChild(X.l1.createTextNode(String.fromCharCode(0240))); O1o.parentNode.removeChild(O1o); }else li.appendChild(O1o); }else if (O1o.tagName && O1o.tagName.toUpperCase()=="BR" && ig==l3q-1 && ig>i3q)O1o.parentNode.removeChild(O1o); else li.appendChild(O1o); if (O1o.tagName && O1o.tagName.toUpperCase()=="BR" && ig==paragraph.length-1){I3s(); li=null; }if (O1o==o3l[1] && ig==paragraph.length-1){I3s(); li=null; }}}if (li && li.firstChild)I3s(); }if (o2f!=null){var l3p=[]; for (var ig=0; ig<o2f.childNodes.length; ig++)l3p.push(o2f.childNodes.item(ig).style.textAlign); var I3p=1; for ( ; I3p<l3p.length; I3p++)if (l3p[I3p-1]!=l3p[I3p])break; if (I3p==l3p.length){var align=((l3p[0]=="left" && !X.rtlState()) || (l3p[0]=="right" && X.rtlState()))?"":l3p[0]; for (var ig=0; ig<o2f.childNodes.length; ig++)o2f.childNodes.item(ig).style.textAlign=""; o2f.style.textAlign=align; }}if (o2f!=null)if (o2f.parentNode.tagName.toUpperCase()=="P" && o2f.parentNode.childNodes.length==1){var o3t=o2f.parentNode; var O3t=o3t.cloneNode( false); o3t.parentNode.insertBefore(o2f,o3t); o3t.parentNode.removeChild(o3t); if (o2f.childNodes.length==1){var item=o2f.firstChild; while (item.firstChild)O3t.appendChild(item.firstChild); item.appendChild(O3t); }else delete O3t; }}}}for (var i=0; i<O3n.length; i++){var paragraph=O3n[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=I3n){if (o3o.length>0)O3p(); o3o=[]; I3n=paragraph[0].parentNode; }o3o.push(paragraph); }}if (o3o.length>0)O3p(); if (O3r!=null){I3r(); } this.i1l(o3l,i3o); };HTMLEditor.prototype.l3t= function (i3t){var O3n=this.l3n(); var o3l=this.i3n(O3n); var I3n=null; var o3o=[]; var X=this ; var i3o= false; function I3t(ik){if (ik.nodeType==1){var o3u=(!X.rtlState())?ik.style.marginLeft:ik.style.marginRight; if (o3u.length>0)return parseInt(o3u); }return 0; }function O3u(ik,value){if (ik.nodeType==1){if (ik.tagName.toUpperCase()=="P" && value=="")value="0px"; if (!X.rtlState())ik.style.marginLeft=value; else ik.style.marginRight=value; }}function l3u(ik){if (i3t)O3u(ik,(I3t(ik)+050)+"px"); else {if (ik.tagName.toUpperCase()=="P"){if (I3t(ik)>=050)O3u(ik,(I3t(ik)-050)+"px"); else O3u(ik,"0px"); }else {if (I3t(ik)>050)O3u(ik,(I3t(ik)-050)+"px"); else O3u(ik,""); }}}function o3p(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==o3l[0] || div.firstChild==o3l[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function O3p(){var firstChild=I3n.firstChild; var lastChild=I3n.lastChild; if (I3n.tagName && !HTMLEditor.l3b(I3n) && o3o[0][0]==firstChild && o3o[o3o.length-1][o3o[o3o.length-1].length-1]==lastChild){var textAlign=""; if (I3n.getAttribute("align") && I3n.getAttribute("align").length>0)textAlign=I3n.getAttribute("align"); if (I3n.align && I3n.align.length>0)textAlign=I3n.align; if (I3n.style.textAlign && I3n.style.textAlign.length>0)textAlign=I3n.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; I3n.align=""; I3n.setAttribute("align",""); I3n.removeAttribute("align"); l3u(I3n); if ((I3n.tagName.toUpperCase()=="DIV" || I3n.tagName.toUpperCase()=="P" || HTMLEditor.l3m(I3n)) && textAlign==""){if (X.l3l(I3n,o3l))i3o= true; }else {if (textAlign!="" || (I3n.tagName.toUpperCase()=="LI" && I3n.parentNode.style.textAlign.length>0))I3n.style.textAlign=textAlign; else I3n.style.textAlign=""; if (I3n.tagName.toUpperCase()=="LI"){var o2f=I3n.parentNode; var margins=[]; for (var i3p=0; i3p<o2f.childNodes.length; i3p++)margins.push(I3t(o2f.childNodes.item(i3p))); var I3p=1; for ( ; I3p<margins.length; I3p++)if (margins[I3p-1]!=margins[I3p])break; if (I3p==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var ig=0; ig<o2f.childNodes.length; ig++)O3u(o2f.childNodes.item(ig),""); O3u(o2f,margin); }}}}else {for (var i=0; i<o3o.length; i++){var div=null; var paragraph=o3o[i]; for (var ig=0; ig<paragraph.length; ig++){var O1o=paragraph[ig]; if (O1o.nodeType==1 && O1o.tagName && (O1o.tagName.toUpperCase()=="UL" || O1o.tagName.toUpperCase()=="OL" || O1o.tagName.toUpperCase()=="DL" || O1o.tagName.toUpperCase()=="DIV" || HTMLEditor.l3m(O1o) || O1o.tagName.toUpperCase()=="P" || O1o.tagName.toUpperCase()=="LI")){o3p(div); div=null; l3u(O1o);if ((O1o.tagName.toUpperCase()=="UL" || O1o.tagName.toUpperCase()=="OL" || O1o.tagName.toUpperCase()=="DL")){for (var i2a=0; i2a<O1o.childNodes.length; i2a++){var li=O1o.childNodes.item(i2a); if (li.nodeType==1){O3u(li,""); for (var O3q=0; O3q<li.childNodes.length; O3q++){var O35=li.childNodes.item(O3q); var textAlign=(O35.nodeType==1)?O1o.style.textAlign: ""; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if (O35.nodeType==1){O3u(O35,""); if (textAlign=="" && O35.tagName && (O35.tagName.toUpperCase()=="DIV" || O35.tagName.toUpperCase()=="P")){if (X.l3l(O35,o3l))i3o= true; }}}}}continue; }else if (O1o.tagName.toUpperCase()=="LI"){var o2f=O1o.parentNode; var margins=[]; for (var i3p=0; i3p<o2f.childNodes.length; i3p++)margins.push(I3t(o2f.childNodes.item(i3p))); var I3p=1; for ( ; I3p<margins.length; I3p++)if (margins[I3p-1]!=margins[I3p])break; if (I3p==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var ig=0; ig<o2f.childNodes.length; ig++)O3u(o2f.childNodes.item(ig),""); O3u(o2f,margin); }continue; }var textAlign=O1o.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if ((O1o.tagName.toUpperCase()=="DIV" || O1o.tagName.toUpperCase()=="P" || HTMLEditor.l3m(O1o)) && textAlign==""){if (X.l3l(O1o,o3l))i3o= true; }}else {if (i3t){if (div==null){div=X.l1.createElement(X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P")div.style.margin="0px"; l3u(div); O1o.parentNode.insertBefore(div,O1o); }var l3q=(paragraph[paragraph.length-1]==o3l[1])?paragraph.length-1:paragraph.length; var i3q=(paragraph[0]==o3l[0])?1: 0; if (O1o.tagName && O1o.tagName.toUpperCase()=="BR" && ig==l3q-1 && ig==i3q){if (HTMLEditor.is_ie){div.appendChild(X.l1.createTextNode(String.fromCharCode(0240))); O1o.parentNode.removeChild(O1o); }else div.appendChild(O1o); }else if (O1o.tagName && O1o.tagName.toUpperCase()=="BR" && ig==l3q-1 && ig>i3q)O1o.parentNode.removeChild(O1o); else div.appendChild(O1o); if (O1o.tagName && O1o.tagName.toUpperCase()=="BR" && ig==paragraph.length-1){o3p(div); div=null; }if (O1o==o3l[1] && ig==paragraph.length-1){o3p(div); div=null; }}}}}}}for (var i=0; i<O3n.length; i++){var paragraph=O3n[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=I3n){if (o3o.length>0)O3p(); o3o=[]; I3n=paragraph[0].parentNode; }o3o.push(paragraph); }}if (o3o.length>0)O3p(); this.i1l(o3l,i3o); };HTMLEditor.prototype.i3u= function (o21,par){var o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(this.O1a()): ""; if (this.Iq())return; var Ip=this.oq(); var Oq=this.lq(Ip); var I3u=HTMLEditor.is_ie?[Oq.boundingLeft,Oq.boundingTop]: [Oq.startContainer,Oq.startOffset]; var l1a=(HTMLEditor.is_ie && Oq.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0); var o3v= {name: "none",value: "none" } ; switch (o21.toLowerCase()){case "bold":o3v= {name: "font-weight",value: "bold",O3v: false } ; break; case "italic":o3v= {name: "font-style",value: "italic",O3v: false } ; break; case "underline":o3v= {name: "text-decoration",value: "underline",O3v: false } ; break; case "strikethrough":o3v= {name: "text-decoration",value: "line-through",O3v: false } ; break; case "superscript":o3v= {name: "vertical-align",value: "super",O3v: false } ; break; case "subscript":o3v= {name: "vertical-align",value: "sub",O3v: false } ; break; case "forecolor":o3v= {name: "color",value:par,O3v: false } ; break; case "backcolor":o3v= {name: "background-color",value:par,O3v: false } ; break; case "fontname":o3v= {name: "font-family",value:par,O3v: false } ; break; case "fontsize":o3v= {name: "font-size",value:par,O3v: false } ; break; }if (l1a){var i1a=this.I1a(); this.l3v(o3v,i1a, true); }else if (!HTMLEditor.is_Safari){if (this.Iq())return; var i1a=this.i3v(); if (i1a.length>0){ this.l3v(o3v,i1a, false); if (HTMLEditor.is_ie && this.I3v!=null){Ip=this.oq(); Oq=this.lq(Ip); Oq.moveToBookmark(this.I3v); Oq.select(); this.I3v=null; }else if (this.I3v!=null){if (this.I3v[0].nodeType==3){Ip=this.oq(); Oq=this.l1.createRange(); Oq.setStart(this.I3v[0],this.I3v[1]); Oq.setEnd(this.I3v[0],this.I3v[1]); this.i16(Ip); this.I16(Ip,Oq); }else { this.o3w(this.I3v[0],this.I3v[0]); this.I3v[0].parentNode.removeChild(this.I3v[0]); } this.I3v=null; }}else { this.O3w(o3v); }}};HTMLEditor.prototype.i3v= function (om){var l1u=[]; var o1a; var l1a; var Ip=this.oq(); var Oq=this.lq(Ip); var l3w; var O3k; var I21=HTMLEditor.il+"_right_add"; var o22=HTMLEditor.il+"_left_add"; var i3w=HTMLEditor.il+"_middle_add"; if (HTMLEditor.is_ie && typeof om=="undefined"){Oq.execCommand("bold"); this.I3v=Oq.getBookmark(); Oq.execCommand("bold"); }if (HTMLEditor.is_ie){var I3w=null; var o3x="<span id="+i3w+"></span>"; var O3x=Oq.duplicate(); try {Oq.pasteHTML(o3x); }catch (w){}I3w=this.l1.getElementById(i3w); if (I3w==null)return []; if (typeof om!="undefined")this.I3v=I3w; if (I3w.nextSibling!=null && !HTMLEditor.l3b(I3w.nextSibling)){I3w.parentNode.removeChild(I3w); return []; }Oq.expand("word"); Oq.select(); if (Oq.text.length==0){I3w.parentNode.removeChild(I3w); O3x.select(); return []; }var O2i=new RegExp(o3x,"ig"); if (!O2i.test(Oq.htmlText.replace(/[\n\r]/g,""))){I3w.parentNode.removeChild(I3w); O3x.select(); return []; }O2i=new RegExp(o3x+"(\x3c/span>|&nbsp;|[\\s])*$","ig"); if (O2i.test(Oq.htmlText.replace(/[\n\r]/g,""))){I3w.parentNode.removeChild(I3w); O3x.select(); return []; }while (Oq.text.length>0 && Oq.text.substr(Oq.text.length-1,1)==" "){Oq.moveEnd("character",-1); Oq.select(); if (Oq.text.length==0){I3w.parentNode.removeChild(I3w); O3x.select(); return []; }}if (typeof om=="undefined")I3w.parentNode.removeChild(I3w); return this.I1a(); }function I3b(l3x){var O2i=/[\d\w]/; if (O2i.test(l3x))return false; O2i=/[\x80-\u024f]/; if (O2i.test(l3x))return false; O2i=/[\u0370-\u2000]/; if (O2i.test(l3x))return false; return true; }if (!this.o11("<span id='"+o22+"'></span><span id='"+i3w+"'></span><span id='"+I21+"'></span>"))return []; var i19=this.l1.getElementById(o22); var I19=this.l1.getElementById(I21); var i3x=this.l1.getElementById(i3w); HTMLEditor.O3c(i19,i19.previousSibling, true ,i19.parentNode,I3b); try { this.o3w(i19,I19); }catch (w){}l3w=this.oq(); O3k=this.lq(l3w); o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(this.O1a()): ""; l1a=(HTMLEditor.is_ie && O3k.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0); if (!l1a || this.I1a().length==0){var I3x=this.l1.createTextNode(""); i19.parentNode.insertBefore(I3x,i19); i19.parentNode.removeChild(i19); I19.parentNode.removeChild(I19); i3x.parentNode.removeChild(i3x); var Oq=this.l1.createRange(); Oq.setStart(I3x,0); Oq.setEnd(I3x,0); Oq.setStart(I3x,0); Oq.setEnd(I3x,0); this.i16(Ip); this.I16(Ip,Oq); return []; }I19.parentNode.insertBefore(i19,i3x); HTMLEditor.O3c(I19,I19.nextSibling, false ,I19.parentNode,I3b); this.o3w(i19,I19); l3w=this.oq(); O3k=this.lq(l3w); o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(this.O1a()): ""; l1a=(HTMLEditor.is_ie && O3k.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0); if (!l1a || this.I1a().length==0){var I3x=this.l1.createTextNode(""); i19.parentNode.insertBefore(I3x,i19); i19.parentNode.removeChild(i19); I19.parentNode.removeChild(I19); i3x.parentNode.removeChild(i3x); var Oq=this.l1.createRange(); Oq.setStart(I3x,0); Oq.setEnd(I3x,0); Oq.setStart(I3x,0); Oq.setEnd(I3x,0); this.i16(Ip); this.I16(Ip,Oq); return []; }HTMLEditor.O3c(i19,i19.previousSibling, true ,i19.parentNode,I3b); this.o3w(i19,I19); l3w=this.oq(); O3k=this.lq(l3w); o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(this.O1a()): ""; l1a=(HTMLEditor.is_ie && O3k.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0); if (HTMLEditor.is_ie){if (typeof om!="undefined")this.I3v=i3x; else i3x.parentNode.removeChild(i3x); }else this.I3v=[i3x,0]; if (l1a){l1u=this.I1a(); }i19.parentNode.removeChild(i19); I19.parentNode.removeChild(I19); return l1u; };HTMLEditor.prototype.O3w= function (o3v){var name=o3v.name.replace(/-(\w)/g, function (o3y,i20){return i20.toUpperCase(); } ); var value=o3v.value; var O3v=o3v.O3v; if (this.M==null)this.M=[]; var O3y=[];var l3y= true; for (var i=0; i<this.M.length; i++){var i3y=this.M[i].name.replace(/-(\w)/g, function (o3y,i20){return i20.toUpperCase(); } ); var I3y=this.M[i].value; if (!(i3y==name && (I3y==value || O3v)))O3y.push(this.M[i]); else l3y= false; } this.M=O3y; if (l3y)this.M.push(o3v); };HTMLEditor.prototype.o3w= function (i19,I19){var Ip=this.oq(); var I3x=null; var o3z=null; if (HTMLEditor.is_ie){Ip.empty(); Ip=this.oq(); var O3k=this.lq(Ip); var l3k=this.lq(Ip); try {if (i19!=null)O3k.moveToElementText(i19); if (I19!=null)l3k.moveToElementText(I19); if (i19!=null && I19!=null){O3k.setEndPoint("EndToEnd",l3k); O3k.select(); }else if (i19!=null)O3k.select(); else if (I19!=null)l3k.select(); }catch (t){}}else {try {I3x=this.l1.createTextNode(""); o3z=this.l1.createTextNode(""); i19.parentNode.insertBefore(I3x,i19); I19.parentNode.insertBefore(o3z,I19); var Oq=this.l1.createRange(); Oq.setStart(I3x,0); Oq.setEnd(o3z,0); this.i16(Ip); this.I16(Ip,Oq); }catch (t){}}};HTMLEditor.prototype.l3v= function (o3v,i1a,O3z){var name=o3v.name.replace(/-(\w)/g, function (o3y,i20){return i20.toUpperCase(); } ); var value=o3v.value; var O3v=o3v.O3v; var l3z= false; var i3z= false; this.O10(); var I21=HTMLEditor.il+"_right"; var o22=HTMLEditor.il+"_left"; var i19=this.l1.createElement("SPAN"); i19.id=o22; var I19=this.l1.createElement("SPAN"); I19.id=I21; i1a[0].parentNode.insertBefore(i19,i1a[0]); if (i1a[i1a.length-1].nextSibling!=null)i1a[i1a.length-1].parentNode.insertBefore(I19,i1a[i1a.length-1].nextSibling); else i1a[i1a.length-1].parentNode.appendChild(I19); HTMLEditor.I22(i19); HTMLEditor.I22(I19); var I3z=[]; for (var i=0; i<i1a.length; i++){var o40=i1a[i]; var par=o40.parentNode; var ig; for (ig=0; ig<I3z.length; ig++){var parent=I3z[ig]; if (parent.parent==par){parent.O40.push(o40); break; }}if (ig==I3z.length){I3z.push( {parent:par,O40: [o40] } ); }}for (var i=0; i<I3z.length; i++){var parent=I3z[i]; if (parent.O40.length>1){var O40=parent.O40; var l40=this.l1.createElement("SPAN"); var i40=this.l1.createElement("SPAN"); O40[0].parentNode.insertBefore(l40,O40[0]); if (O40[O40.length-1].nextSibling!=null)O40[O40.length-1].parentNode.insertBefore(i40,O40[O40.length-1].nextSibling); else O40[O40.length-1].parentNode.appendChild(i40); HTMLEditor.I3c(l40,i40); l40.parentNode.removeChild(l40); i40.parentNode.removeChild(i40); }}for (var i=0; i<i1a.length; i++){var o40=i1a[i]; var par=o40.parentNode; var I40= false; while (par && par.tagName && par.childNodes.length==1 && HTMLEditor.O1i(par.tagName)){var o41=par.tagName.toUpperCase(); if (((o41=="I" || o41=="EM") && o3v.name=="font-style") || ((o41=="B" || o41=="STRONG") && o3v.name=="font-weight") || ((o41=="S" || o41=="STRIKE") && o3v.name=="text-decoration") || ((o41=="U") && o3v.name=="text-decoration") || ((o41=="SUB" || o41=="SUP") && o3v.name=="vertical-align")){var O41=par; par=par.parentNode; while (O41.firstChild)par.insertBefore(O41.firstChild,O41); par.removeChild(O41); I40= true; continue; }else if (par.style && par.style[name] && par.style[name].length>0){var l41=par.style[name]; if (name.toLowerCase().indexOf("color")>=0 || name=="fontFamily" || name=="fontSize"){par.style[name]=value; }else {if (O3v){try {par.style[name]=par.style[name]+" "+value; if (l41==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {if (!l3z){var I17=l41.replace(value,""); if (name=="fontWeight" && l41.toString()=="700")I17=""; if (I17==l41){try {par.style[name]=par.style[name]+" "+value; if (l41==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {par.style[name]=I17; i3z= true; }l3z= true; }else {if (i3z){par.style[name]=l41.replace(value,""); }else {try {par.style[name]=par.style[name]+" "+value; if (l41==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}}}}I40= true; }par=par.parentNode; }if (!I40 && !i3z){var span; span=this.l1.createElement("SPAN"); span.style[name]=value; var i41=o40.parentNode; i41.insertBefore(span,o40); span.appendChild(o40); l3z= true; }}var I41=HTMLEditor.O23(i19,I19); var o42=I41.parent.childNodes.item(I41.o24).previousSibling; var O42=I41.parent.childNodes.item(I41.l24).nextSibling; i19.parentNode.removeChild(i19); I19.parentNode.removeChild(I19); var o24=0; var l24=I41.parent.childNodes.length; if (o42!=null){o24=HTMLEditor.O16(o42); }if (O42!=null){l24=HTMLEditor.O16(O42)+1; if (l24<I41.parent.childNodes.length){if (O42.nodeType==3)l24++; else if (O42.nodeType==1){var Ik=O42.tagName.toUpperCase(); if (Ik!="TR" && Ik!="TD" && Ik!="LI")l24++; }}}HTMLEditor.o25(I41.parent,this.l1,o24,l24); var X=this ; if (O3z)X.l1i(i1a); this.I0.setTimeout( function (){if (!HTMLEditor.is_ie)X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.i3n= function (O3n){if (O3n.length==0)return []; var i19=this.l1.createElement("SPAN"); var I19=this.l1.createElement("SPAN"); var l42=O3n[0][0]; var i42=O3n[O3n.length-1][O3n[O3n.length-1].length-1]; if (l42==i42 && i42.nodeType==1 && i42.childNodes.length==0 && HTMLEditor.canHaveChildren(i42)){i42.appendChild(i19); i42.appendChild(I19); }else {var I42=HTMLEditor.o43(l42); I42.parentNode.insertBefore(i19,I42); if (I42==l42){var I17=[]; I17.push(i19); for (var i=0; i<O3n[0].length; i++)I17.push(O3n[0][i]); O3n[0]=I17; }var O43=HTMLEditor.l3j(i42); if (O43.nextSibling)O43.parentNode.insertBefore(I19,O43.nextSibling); else O43.parentNode.appendChild(I19); if (O43==i42){O3n[O3n.length-1].push(I19);}}return [i19,I19]; };HTMLEditor.prototype.i1l= function (o3l,i3o){if (o3l.length==0)return; var i19=o3l[0]; var I19=o3l[1]; var Ip=this.oq(); var I3x=null; var o3z=null; if (HTMLEditor.is_ie){Ip.empty(); Ip=this.oq(); var O3k=this.lq(Ip); var l3k=this.lq(Ip); try {if (i19!=null && I19!=null && i19.nextSibling==I19){I3x=this.l1.createTextNode(" "); I19.parentNode.insertBefore(I3x,I19); } this.i3j=null; if (i19!=null){O3k.moveToElementText(i19); }if (I19!=null){l3k.moveToElementText(I19); }if (i19!=null && I19!=null){O3k.setEndPoint("EndToStart",l3k); O3k.select(); if (I3x!=null){O3k.collapse( false); O3k.select(); I3x.parentNode.removeChild(I3x); }}else if (i19!=null)O3k.select(); else if (I19!=null)l3k.select(); }catch (w){}}else {try {var Oq; var i30=i19.nextSibling; var i31=I19.previousSibling;this.i3j=null; if (i30==i31 && i30.nodeType==1 && i30.tagName.toUpperCase()=="BR"){var o1c=HTMLEditor.O16(i30); Oq=this.l1.createRange(); Oq.setStart(i30.parentNode,o1c); Oq.setEnd(i30.parentNode,o1c); }else {I3x=this.l1.createTextNode(""); o3z=this.l1.createTextNode(""); i19.parentNode.insertBefore(I3x,i19); I19.parentNode.insertBefore(o3z,I19); Oq=this.l1.createRange(); Oq.setStart(I3x,0); Oq.setEnd(o3z,0); } this.i16(Ip); this.I16(Ip,Oq); }catch (w){}}var o23=HTMLEditor.O23((i19==null)?I19:i19,(I19==null)?i19:I19); var parent=null; if (o23!=null){parent=o23.parent; }if (i19!=null)i19.parentNode.removeChild(i19); if (I19!=null)I19.parentNode.removeChild(I19); if (i3o && parent!=null){HTMLEditor.o25(parent,this.l1); if (!HTMLEditor.is_ie && I3x!=null && o3z!=null){var Oq=this.l1.createRange(); Oq.setStart(I3x,0); Oq.setEnd(o3z,0); this.i16(Ip); this.I16(Ip,Oq); }}};HTMLEditor.i3c= function (l30,Oe){for (var i=0; i<l30.childNodes.length; i++){var O35=l30.childNodes.item(i); if (O35==Oe)return i; if (O35.nodeType==1){if (HTMLEditor.i3c(O35,Oe)>=0)return i; }}return -1; };HTMLEditor.o43= function (l30){if (typeof l30.firstChild!="undefined" && l30.firstChild!=null){if (typeof l30.firstChild.childNodes!="undefined" && l30.firstChild.childNodes!=null){return HTMLEditor.o43(l30.firstChild);}}return l30; };HTMLEditor.l3j= function (l30){if (typeof l30.lastChild!="undefined" && l30.lastChild!=null){if (typeof l30.lastChild.childNodes!="undefined" && l30.lastChild.childNodes!=null){return HTMLEditor.l3j(l30.lastChild);}}return l30; };HTMLEditor.o3g= function (l30,Oe){if (l30.firstChild){if (l30.firstChild==Oe)return true; if (l30.firstChild.childNodes)if (HTMLEditor.i3c(l30.firstChild,Oe)==0){return HTMLEditor.o3g(l30.firstChild,Oe);}}return false; };HTMLEditor.O3g= function (l30,Oe){if (l30.lastChild){if (l30.lastChild==Oe)return true; if (l30.lastChild.childNodes)if (HTMLEditor.i3c(l30.lastChild,Oe)==l30.lastChild.childNodes.length-1){return HTMLEditor.O3g(l30.lastChild,Oe);}}return false; };HTMLEditor.O23= function (I23,O24){var oe=null; var par=I23.parentNode; var l43=I23; while (par){if (par.tagName && !HTMLEditor.O1i(par.tagName)){var l24=HTMLEditor.i3c(par,O24); if (l24>=0){var o24=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==l43){o24=i; break; }}return {parent:par,o24:o24,l24:l24 } ; }}l43=par; par=par.parentNode; }return oe; };HTMLEditor.prototype.removeAlignment= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.O10(); this.i3m("left", true); this.l13(); var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); } ; HTMLEditor.i43= function (I23,O24){var oe=null; var par=I23.parentNode; var l43=I23; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1i(par.tagName)){var l24=HTMLEditor.i3c(par,O24); if (l24>=0){var o24=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==l43){o24=i; break; }}return {parent:par,o24:o24,l24:l24 } ; }l43=par; par=par.parentNode; }return oe; };HTMLEditor.prototype.l1e= function (I43,om){var X=this ; if (HTMLEditor.is_ie){var Ip=this.oq(); var Oq=this.lq(Ip); var i2c= false; var html=""; if (I43=="x")this.O10(); if (Ip.type.toLowerCase()=="control"){i2c= true; html=HTMLEditor.getHTML(Oq.item(0), true);}else {if (Oq.text!=""){i2c= true; html=Oq.htmlText; var o44=Oq.duplicate(); var i1a=this.I1a(); if (i1a.length<1)return; var o23=HTMLEditor.i43(i1a[0],i1a[i1a.length-1]); if (o23!=null && i1a[0].previousSibling && i1a[0].previousSibling.nodeType==3){var par=o23.parent; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1i(par.tagName)){var iy=par.cloneNode( false); iy.innerHTML=html; html=iy.outerHTML; par=par.parentNode; }}Ip=this.oq(); Ip.empty(); Oq=this.lq(Ip); Oq.setEndPoint("EndToEnd",o44); Oq.setEndPoint("StartToStart",o44); Oq.select(); }else if (Oq.htmlText!=""){i2c= true; html=Oq.htmlText; }}if (i2c){var src=this.l1.createElement("DIV"); src.innerHTML="!!!<span></span>"+html; src.removeChild(src.firstChild); src.removeChild(src.firstChild); var ok=HTMLEditor.getHTML(src, false , true); var I2w=new RegExp("(<[/]?)(teo"+HTMLEditor.il+":)","ig"); ok=ok.replace(I2w,"$1"); delete src; this.i34(ok, true); Oq.select(); if (I43=="x"){Ip.clear(); this.l10(); }}else {if (I43=="x"){Ip.clear(); this.l10(); }}if (om)setTimeout( function (){X.updateToolbar(); } ,0144); }else {if (I43=="x"){ this.O10(); var Ip=this.oq(); var Oq=this.lq(Ip); this.i16(Ip); Oq.deleteContents(); if (this.l1.body.innerHTML==""){ this.l1.body.innerHTML="<br/>"; Oq.setStart(this.l1.body,0); Oq.setEnd(this.l1.body,0); }if (HTMLEditor.i10)this.f= true; X.l13(); this.I16(Ip,Oq); }else {var Ip=this.oq(); var Oq=this.lq(Ip); this.i16(Ip); if (HTMLEditor.is_Safari)alert(this.Ie("safari-c","Use Apple-C")); else alert(this.Ie("moz-c","Use Ctrl-C")); if (HTMLEditor.i10)this.f= true; this.I16(Ip,Oq); }}};HTMLEditor.O16= function (ik){var o1c=0; if (ik.parentNode){for ( ; o1c<ik.parentNode.childNodes.length; o1c++)if (ik.parentNode.childNodes.item(o1c)==ik)break; }return o1c; };HTMLEditor.prototype.O44= function (Oj){var X=this ; this.O10(); if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X._paste(!X._NoPaste); X.Om(); } ,0);HTMLEditor._stopEvent(Oj); }else {if (!this.isWord && !this._NoPaste)setTimeout( function (){HTMLEditor.oy(X,X.l1,!X.showAnchors); HTMLEditor.Oy(X,X.l1,!X.showPlaceHolders); HTMLEditor.I12(X.l1.body); X.l44(X.l1.body); X.l13(); } ,012); else {var i1w=X.I1w(); if (i1w!=null){var div=X.l1.createElement("div"); div.style.display="inline"; div.style.borderStyle="none"; i1w.parentNode.insertBefore(div,i1w); div.appendChild(i1w); div.removeChild(i1w); div.innerHTML="xx"; var Ip=X.oq(); var i1a=X.lq(); X.i16(Ip); i1a.setStart(div.firstChild,0); i1a.setEnd(div.firstChild,1); X.I16(Ip,i1a); X.openWait(); setTimeout( function (){var parent=div.parentNode; div.lastChild.deleteData(div.lastChild.length-1,1); if (X.isWord){div.innerHTML=HTMLEditor.I2o(div.innerHTML); HTMLEditor.O2z(div,X, true); HTMLEditor.o25(div,X.l1); }else {var i44=document.createElement("div"); i44.innerHTML=HTMLEditor.I2o(div.innerHTML); div.innerHTML=i44.innerText.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>").replace(/\cI/g,"&nbsp;"); delete i44; }while (div.firstChild)parent.insertBefore(div.firstChild,div); var I44=null; var o45=null; if (div.nextSibling && div.nextSibling.nodeType==3 && div.previousSibling && div.previousSibling.nodeType==3){I44=div.nextSibling; o45=div.previousSibling; }parent.removeChild(div); var O45=null; if (I44!=null && o45!=null){O45=o45.data.length; o45.data=""+o45.data+""+I44.data+""; I44.parentNode.removeChild(I44); }X.isWord= false; X.Om(); if (O45!=null){var Ip=X.oq(); var i1a=X.lq(); X.i16(Ip); i1a.setStart(o45,O45); i1a.setEnd(o45,O45); X.I16(Ip,i1a); }X.l13(); } ,0); }else HTMLEditor._stopEvent(Oj); }}};HTMLEditor.prototype.l45= false; HTMLEditor.prototype.O2b= function (Oj){try {var X=this ; if (HTMLEditor.is_ie){try {var Oz=this.l1.selection; var lz=this.lq(Oz); }catch (t){HTMLEditor._stopEvent(Oj); return false; }}if (!this._wasFocused)this.focusEditor(); if (this.isPopup()){HTMLEditor._stopEvent(Oj); return false; }var i45= false; if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; if (X.Iz){X.Iz.select(); X.Iz=null; }if (Oj.type=="keydown" || Oj.type=="keypress"){HTMLEditor._stopEvent(Oj); return; }i45= true; }if (typeof X.captureInDesign=="function"){if (X.captureInDesign(Oj) === false){HTMLEditor._stopEvent(Oj); return; }}if (HTMLEditor.is_ie && Oj.type=="mousedown" && Oj.ctrlKey){var Ip=X.oq(); var I45=Oj.clientX; var o46=Oj.clientY; setTimeout( function (){var Ip=X.oq(); if (Ip.type.toLowerCase()!="control"){var Oq=X.l1.body.createTextRange(); Oq.moveToPoint(I45,o46); Oq.select(); }Ip=X.oq(); var Oq=X.lq(Ip); 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; }} ,(Ip.type.toLowerCase()!="control")?0: 012); HTMLEditor._stopEvent(Oj); return false; }{var ik=(!HTMLEditor.is_ie)?Oj.target:Oj.srcElement; if (ik.tagName!=null && typeof ik.tagName!="undefined" && (ik.tagName.toUpperCase()=="HTML" || ik.tagName.toUpperCase()=="BODY")){if (X.O46!= true){X.O46= true; setTimeout( function (){if (!X.l46()){try {X.focusEditor(); }catch (w){}}X.O46= false; } ,0); }}else if (HTMLEditor.contentEditable(ik)!=null){setTimeout( function (){X.l46(); } ,(!HTMLEditor.is_ie && Oj.button && Oj.button==2)?0310: 0); }}if (i45 && HTMLEditor.is_ie){var i46=this.oq(); var lz; try {lz=this.lq(i46); if (i46.type.toLowerCase()=="control"){HTMLEditor._stopEvent(Oj); return false; }}catch (w){HTMLEditor._stopEvent(Oj); return false; }}var I46=(HTMLEditor.is_ie && Oj.type=="keydown") || (Oj.type=="keypress"); if (Oj.type=="keydown" && !HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (this.o47!=null){ this.o47.select(); this.o47=null; }if (I46 && !this.keyboardEnabled){HTMLEditor._stopEvent(Oj); return false; }var I43=String.fromCharCode(HTMLEditor.is_ie?Oj.keyCode:Oj.charCode).toLowerCase(); if (I46 && X._hotkeys!=null){if (X._hotkeys.length>0){var O47=X._hotkeys.length; var l47=I43; if (Oj.keyCode==022 || Oj.keyCode==021 || Oj.keyCode==020)l47=null; for (var i=0; i<O47; i++){var item=X._hotkeys[i]; if (item[1]==l47 && item[2]==Oj.altKey && item[3]==Oj.shiftKey && item[4]==Oj.ctrlKey){if (typeof item[0]=="function")setTimeout( function (){ (item[0])(X); X.l13(); X.focusEditor(); } ,0); HTMLEditor._stopEvent(Oj); return false; }}}}if (I46 && Oj.shiftKey && Oj.keyCode==055){ this.O44(Oj); }else if (I46 && Oj.ctrlKey && Oj.altKey && Oj.keyCode==044){var i47=null; var ik=HTMLEditor.getSelParent(X); while (ik && (ik.nodeType==3 || (ik.tagName && ik.tagName.toUpperCase()!="BODY"))){if (ik.nodeType==3 || !ik.tagName){ik=ik.parentNode; continue; }if (!HTMLEditor.O32(ik) && ik.tagName.toUpperCase()!="P"){if (ik.tagName.toUpperCase()=="TD")while (ik.tagName.toUpperCase()!="TABLE")ik=ik.parentNode; else if (ik.tagName.toUpperCase()=="LI")while (ik.tagName.toUpperCase()!="OL" && ik.tagName.toUpperCase()!="UL")ik=ik.parentNode; i47=ik; break; }ik=ik.parentNode; }if (i47!=null){var Ip=X.oq(); var Oq=X.lq(Ip); var l16=X.l1.createTextNode(""); i47.parentNode.insertBefore(l16,i47); if (HTMLEditor.is_ie){var O3k=X.lq(Ip); var l3k=X.lq(Ip); var I47=X.l1.createElement("span"); var o48=X.l1.createElement("span"); l16.parentNode.insertBefore(I47,l16); if (l16.nextSibling)l16.parentNode.insertBefore(o48,l16.nextSibling); else l16.parentNode.appendChild(o48); try {O3k.moveToElementText(I47); l3k.moveToElementText(o48); O3k.setEndPoint("EndToEnd",l3k); O3k.select(); }catch (t){}l16.parentNode.removeChild(I47); l16.parentNode.removeChild(o48); }else {X.i16(Ip); Oq.setStart(l16,0); Oq.setEnd(l16,0); X.I16(Ip,Oq); }}}else if (HTMLEditor.is_ie && Oj.keyCode>=041 && Oj.keyCode<=050 && !Oj.shiftKey){var O48=Oj.keyCode; var l48=(O48==042 || O48==043 || O48==047 || O48==050); setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); if (Ip.type.toLowerCase()=="control"){var ik=Oq.item(0); if (!ik.contentEditable || ik.contentEditable=="false"){Oq.remove(0); Ip.empty(); Oq=X.lq(Ip); var span=X.l1.createElement("SPAN"); span.appendChild(X.l1.createTextNode("")); if (l48){if (ik.nextSibling==null)ik.parentNode.appendChild(span); else ik.parentNode.insertBefore(span,ik.nextSibling); }else {ik.parentNode.insertBefore(span,ik); }Oq.moveToElementText(span); Oq.select(); setTimeout( function (){X.focusEditor(); X.updateToolbar(); X.focusEditor(); span.parentNode.removeChild(span); } ,012); }}} ,0); }else if (((I46 && !HTMLEditor.is_Safari) || (HTMLEditor.is_Safari && Oj.type=="keydown")) && Oj.ctrlKey && !Oj.altKey){X.l45= false; var Ip=null; var Oq=null; var I43=String.fromCharCode((HTMLEditor.is_ie || HTMLEditor.i10 || HTMLEditor.is_Safari)?Oj.keyCode:Oj.charCode).toLowerCase(); var o21=null; var value=null; if ((HTMLEditor.is_ie || HTMLEditor.is_Safari) && Oj.keyCode==021){return false; }else if (!HTMLEditor.is_ie && Oj.keyCode==043 && !Oj.shiftKey){X.i12( true); }else if (Oj.keyCode==056 && this.O1e()){HTMLEditor._stopEvent(Oj); return false; }else if (Oj.keyCode==056 || Oj.keyCode==8){if ((HTMLEditor.is_ie && Oj.type=="keydown") || (!HTMLEditor.is_ie && Oj.type=="keypress"))this.O10(); }else {switch (I43){case "a":if (!HTMLEditor.is_ie){Ip=this.oq(); this.i16(Ip); Oq=this.lq(); Oq.selectNodeContents(this.l1.body); this.I16(Ip,Oq); HTMLEditor._stopEvent(Oj); return false; }else X.l45= true; break; case "z": this.undo(); HTMLEditor._stopEvent(Oj); return false; break; case "p":if (!HTMLEditor.is_ie){setTimeout( function (){X.o1f(); } ,0); HTMLEditor._stopEvent(Oj); return false; }break; case "y": this.redo(); HTMLEditor._stopEvent(Oj); return false; break; case "x":if (this.O1e()){HTMLEditor._stopEvent(Oj); return false; } this.O10(); if (HTMLEditor.is_ie){if (Oj.type=="keydown"){X.openWait(); setTimeout( function (){X.l1e(I43, false); X.Om(); } ,0); HTMLEditor._stopEvent(Oj); return false; }}break; case "c":if (this.O1e()){HTMLEditor._stopEvent(Oj); return false; }if (HTMLEditor.is_ie){if (Oj.type=="keydown"){X.openWait(); setTimeout( function (){X.l1e(I43, false); X.Om(); setTimeout( function (){X.i1e(); } ,0); } ,0); HTMLEditor._stopEvent(Oj); return false; }}break; case "v":if (this.O1e()){HTMLEditor._stopEvent(Oj); return false; } this.O44(Oj); break; case "b": this.bold(); HTMLEditor._stopEvent(Oj); return false; case "i": this.italic(); HTMLEditor._stopEvent(Oj); return false; case "u": this.underline(); HTMLEditor._stopEvent(Oj); return false; case "s":o21="strikethrough"; break; case "l":o21="justifyleft"; break; case "e":o21="justifycenter"; break; case "r":o21="justifyright"; break; case "j":o21="justifyfull"; break; case "q":alert(this.l1.body.innerHTML); HTMLEditor._stopEvent(Oj); return false; break; case "0":var i48=this.Ie("your-browser","Your browser")+":\n\n"+navigator.userAgent; i48+="\n\nObout Editor: "+this.scriptVersion; alert(i48); HTMLEditor._stopEvent(Oj); return false; break; break; case "9":if (!HTMLEditor.is_ie){var Ip=X.oq(); var Oq=X.lq(Ip); var i20=Oq.startContainer; var I20=Oq.endContainer; var I48=""; I48+="startContainer: "+(i20.nodeType==1?i20.tagName: "text")+"\n"; I48+="endContainer  : "+(I20.nodeType==1?I20.tagName: "text")+"\n"; if (i20==I20){I48+="startOffset: "+Oq.startOffset+"\n"; I48+="endOffset  : "+Oq.endOffset+"\n"; if (i20.nodeType==1){i20=i20.childNodes.item(Oq.startOffset); if (i20 && i20.nodeType){I48+="startOffset node: "+(i20.nodeType==1?i20.tagName: "text")+"\n"; if (Oq.startOffset!=Oq.endOffset){i20=i20.childNodes.item(Oq.endOffset); if (i20 && i20.nodeType)I48+="endOffset node: "+(i20.nodeType==1?i20.tagName: "text")+"\n"; }}else I48+=i20; }}alert(I48); }else {var Ip=X.oq(); var Oq=X.lq(Ip); alert("boundingLeft: "+Oq.boundingLeft+" boundingTop: "+Oq.boundingTop+"\n"+"boundingWidth: "+Oq.boundingWidth+" boundingHeight: "+Oq.boundingHeight); }HTMLEditor._stopEvent(Oj); return false; break; }}if (o21){ this.i1h(o21, false ,value); if (o21=="formatblock" && !HTMLEditor.is_ie){ this.O10(); this.I1d( false); }HTMLEditor._stopEvent(Oj); if (o21=="delete" || o21=="paste"){ this.l10(); }}}else if (((I46) || (HTMLEditor.is_Safari && Oj.type=="keydown"))){if (HTMLEditor.is_ie && this.i2b){var Oq=this.lq(this.oq()); Oq.select(); this.i2b= false; }var I43=String.fromCharCode(HTMLEditor.is_ie?Oj.keyCode:Oj.charCode).toLowerCase(); if (X.l45){X.l45= false; function o49(){var i1f=X.lq(X.oq()); var parent=i1f.parentElement(); if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); parent.parentNode.removeChild(parent); }}setTimeout(o49,0); }if (this.O1e()){HTMLEditor._stopEvent(Oj); return false; }switch (Oj.keyCode){case 011:if ((HTMLEditor.is_Safari && Oj.type!="keydown"))break; if (!this.suppressTab){if (!this.Iq())this.o11("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); HTMLEditor._stopEvent(Oj); }else {if (!HTMLEditor.is_ie){HTMLEditor._stopEvent(Oj); }return true; }break; case 8:case 056:if ((HTMLEditor.is_Safari && Oj.type!="keydown"))break; if (((HTMLEditor.is_ie || HTMLEditor.is_Safari) && Oj.type=="keydown") || (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && Oj.type=="keypress"))this.O10(); if (!HTMLEditor.is_ie){var Oq=this.lq(this.oq()); var i20=Oq.startContainer; var I20=Oq.endContainer; if (Oj.type=="keypress")if (HTMLEditor.contentEditable(i20)!=null || HTMLEditor.contentEditable(I20)!=null){HTMLEditor._stopEvent(Oj); return false; }if (i20==I20 && i20.nodeType==1 && i20.tagName.toUpperCase()=="TD" && Oq.startOffset==Oq.startOffset && i20.childNodes.item(Oq.startOffset) && i20.childNodes.item(Oq.startOffset).tagName && i20.childNodes.item(Oq.startOffset).tagName.toUpperCase()=="BR"){var span=i20.childNodes.item(Oq.startOffset); var left=0,right=0; var O49,o22,I21; o22=O49=span.previousSibling; while (O49){left++; O49=O49.previousSibling; }I21=O49=span.nextSibling; while (O49){right++; O49=O49.nextSibling; }if ((Oj.keyCode==056 && right==0) || (Oj.keyCode==8 && left==0)){HTMLEditor._stopEvent(Oj); return false; }else if (Oj.keyCode==056 && i20.firstChild==i20.lastChild && i20.firstChild.nodeType==1){HTMLEditor._stopEvent(Oj); return false; }}if (i20==I20 && i20.nodeType==3 && Oq.startOffset==Oq.endOffset){var data=i20.data+""; if (Oj.keyCode==056)if (Oq.startOffset==data.length && !(i20.nextSibling && i20.nextSibling.nodeType==3)){if (i20.nextSibling){i20.parentNode.removeChild(i20.nextSibling); X.l13(); }HTMLEditor._stopEvent(Oj); return false; }if (Oj.keyCode==8)if (Oq.startOffset==0 && !(i20.previousSibling && i20.previousSibling.nodeType==3)){if (i20.previousSibling){i20.parentNode.removeChild(i20.previousSibling); X.l13(); }HTMLEditor._stopEvent(Oj); return false; }}if (Oj.keyCode==8 && i20.nodeType==1 && i20==I20 && Oq.startOffset==Oq.endOffset){var l49=i20.childNodes.item(Oq.startOffset); if (l49!=null && l49.nodeType==1 && l49.tagName.toUpperCase()=="BR"){l49=l49.previousSibling; if (l49!=null && l49.nodeType!=3){l49.parentNode.removeChild(l49); X.l13(); HTMLEditor._stopEvent(Oj); return false; }}}setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); var i20=Oq.startContainer; var I20=Oq.endContainer; if (HTMLEditor.contentEditable(i20)!=null || HTMLEditor.contentEditable(I20)!=null){X.I1d( false); return; }if (i20==I20 && i20.nodeType==1 && HTMLEditor.O1i(i20.tagName) && Oq.startOffset==Oq.endOffset && i20.childNodes.length==0){while (i20.parentNode.nodeType==1 && HTMLEditor.O1i(i20.parentNode.tagName) && i20.parentNode.childNodes.length==1)i20=i20.parentNode; var i30=i20.nextSibling; var i31=i20.previousSibling; var parent=i20.parentNode; parent.removeChild(i20); X.l13(); if (i30==null && i31==null){Oq.setStart(parent,0); Oq.setEnd(parent,0); }else if (i30!=null && i31!=null){if (i30.nodeType==3 && i31.nodeType==3){var o29=(""+i31.data+"").length; i31.appendData(i30.data);parent.removeChild(i30); Oq.setStart(i31,o29); Oq.setEnd(i31,o29); }else if (i31.nodeType==3){var o29=(""+i31.data+"").length; Oq.setStart(i31,o29); Oq.setEnd(i31,o29); }else if (i30.nodeType==3){Oq.setStart(i30,0); Oq.setEnd(i30,0); }else {if (i30.childNodes.length>0){Oq.setStart(i30,0); Oq.setEnd(i30,0); }else {var o29=HTMLEditor.O16(i30); Oq.setStart(parent,o29); Oq.setEnd(parent,o29); }}}else if (i31!=null){if (i31.nodeType==3){var o29=(""+i31.data+"").length; Oq.setStart(i31,o29); Oq.setEnd(i31,o29); }else {var o29=i31.childNodes.length; if (o29>0){Oq.setStart(i31,o29); Oq.setEnd(i31,o29); }else {o29=HTMLEditor.O16(i31); Oq.setStart(parent,o29); Oq.setEnd(parent,o29); }}}else if (i30!=null){if (i30.nodeType==3){Oq.setStart(i30,0); Oq.setEnd(i30,0); }else {var o29=i30.childNodes.length; if (o29>0){Oq.setStart(i30,o29); Oq.setEnd(i30,o29); }else {o29=HTMLEditor.O16(i30); Oq.setStart(parent,o29); Oq.setEnd(parent,o29); }}}X.i16(Ip); X.I16(Ip,Oq); }} ,012); }else {var Ip=X.oq(); if (Ip.type.toLowerCase()=="control"){if (Oj.keyCode==8){setTimeout( function (){X.i1e(); X.l13(); } ,0); HTMLEditor._stopEvent(Oj); return; }var i1f=X.lq(Ip); var i49=i1f.item(0); if (i49.tagName.toUpperCase()=="EMBED"){i49.src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); i49.parentNode.removeChild(i49); while (i1f.length>0)i1f.remove(0); try {i1f.collapse( false); }catch (t){}HTMLEditor._stopEvent(Oj); X.O10(); setTimeout( function (){X.I1d( false); X.l13(); } ,0); return; }}var O39=X.l1.body.getElementsByTagName("EMBED").length; if (O39>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); var I49=Oj.keyCode; setTimeout( function (){X.A.removeChild(popup); var o4a=X.l1.body.getElementsByTagName("EMBED"); if (O39!=o4a.length){X.O10(); setTimeout( function (){X.I1d( false); X.l13(); } ,0); }} ,0); }setTimeout( function (){X.l10(); } ,5); break; }break; case 015:if ((HTMLEditor.is_Safari && Oj.type=="keydown"))break; if ((!HTMLEditor.is_ie && Oj.type=="keypress") || (HTMLEditor.is_ie && Oj.type=="keydown"))this.O10(); if (HTMLEditor.is_ie && Oj.type=="keydown"){var Ip=X.oq(); if (Ip.type.toLowerCase()=="control")break; var i1f=X.lq(Ip); if (!Oj.shiftKey){var O4a=i1f.parentElement(); if (O4a.tagName.toUpperCase()=="TEXTAREA")break; while (O4a && O4a.tagName && O4a.tagName.toUpperCase()!="BODY" && HTMLEditor.O1i(O4a.tagName)){O4a=O4a.parentNode; }if (O4a && O4a.tagName && (O4a.tagName.toUpperCase()=="P" || O4a.tagName.toUpperCase()=="LI")){if (O4a.tagName.toUpperCase()=="LI"){function test(){i1f=X.lq(X.oq()); var parent=i1f.parentElement(); while (parent && parent.tagName && parent.tagName.toUpperCase()!="BODY" && HTMLEditor.O1i(parent.tagName)){parent=parent.parentNode; }if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){var I47=X.l1.createElement("span"); var l16=X.l1.createTextNode(" "); var O3l=parent; while (O3l.firstChild!=null && O3l.firstChild.nodeType==1)O3l=O3l.firstChild; if (O3l.nodeType==1){O3l.appendChild(l16); O3l.appendChild(I47); while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); }else {parent.parentNode.insertBefore(l16,parent); parent.parentNode.insertBefore(I47,parent); }parent.parentNode.removeChild(parent); i1f.moveToElementText(I47); i1f.select(); I47.parentNode.removeChild(I47); X.l13(); }}setTimeout(test,024); }break; }try {var i3w=HTMLEditor.il+"_middle_add"; var I3w=null; var o3x="<span id="+i3w+"></span>"; function l4a(){var Ip=X.oq(); var Oq=X.lq(Ip); if (I3w!=null){I3w.innerHTML="&nbsp;"; Oq.moveToElementText(I3w); Oq.select(); I3w.parentNode.insertBefore(I3w.firstChild,I3w); I3w.parentNode.removeChild(I3w); X.l13(); }}i1f.pasteHTML(o3x); var i4a= false; I3w=X.l1.getElementById(i3w); if (I3w!=null){var nextSibling=I3w.nextSibling; var I4a=I3w.parentNode; while (nextSibling==null && I4a!=null && HTMLEditor.O1i(I4a.tagName)){nextSibling=I4a.nextSibling; I4a=I4a.parentNode; }if (nextSibling!=null && !HTMLEditor.l3b(nextSibling) && nextSibling.tagName!=null && typeof nextSibling.tagName!="undefined"){var Ik=nextSibling.tagName.toUpperCase(); if (Ik!="BR" && Ik!="UL" && Ik!="OL" && Ik!="P"){i4a= true; }}I3w.parentNode.removeChild(I3w); }i1f.pasteHTML("<br/>"+(i4a?o3x: "")); if (i4a)I3w=X.l1.getElementById(i3w); i1f.select(); if (i4a){setTimeout(l4a,0); HTMLEditor._stopEvent(Oj); return false; }}catch (w){}}else {break; }HTMLEditor._stopEvent(Oj); }else {if (!Oj.shiftKey && (HTMLEditor.is_Safari || HTMLEditor.i10)){var O4a=HTMLEditor.getSelParent(this ); if (O4a.nodeType==3){O4a=O4a.parentNode; }while (O4a && O4a.tagName && O4a.tagName.toUpperCase()!="BODY" && HTMLEditor.O1i(O4a.tagName)){O4a=O4a.parentNode; }if (O4a && O4a.tagName && (O4a.tagName.toUpperCase()=="P" || O4a.tagName.toUpperCase()=="LI")){break; } this.o11("<br/>"); HTMLEditor._stopEvent(Oj); X.l13(); }else if (HTMLEditor.is_Safari){ this.o11("<br/>"); HTMLEditor._stopEvent(Oj); X.l13(); }}break; }}else X.l45= false; if (HTMLEditor.is_ie && Oj.type=="keypress" && !Oj.ctrlKey){var I43=Oj.keyCode; var o4b=X.oq(); var O4b=X.lq(o4b); if (O4b.text.length>0){var l4b=String.fromCharCode(I43); var i4b=HTMLEditor.I4b(Oj); var o4c=(Oj.shiftKey && !i4b) || i4b; if (!o4c)l4b=l4b.toLowerCase(); var O4c=HTMLEditor.il+"StyleForTyping"; var l4c=X.l1.getElementById(O4c); if (l4c!=null){l4b="<span id='"+O4c+"'></span>"+l4b+"<span id='"+O4c+O4c+"'></span>"; l4c.parentNode.removeChild(l4c); }O4b.pasteHTML(l4b); if (l4c!=null){X.i4c(O4c); l4c=X.l1.getElementById(O4c+O4c); l4c.parentNode.removeChild(l4c); }HTMLEditor._stopEvent(Oj); X.l13(); return false; }}if (Oj.type=="mouseup" || Oj.type=="mousedown" || Oj.type=="keydown"){var I4c= true; if (Oj.type=="keydown" && !Oj.ctrlKey){var I43=Oj.keyCode; if ((I43>=060 && I43<=0132) || (I43==040) || (I43==0015) || (I43>=0272 && I43<=0336) || (I43>=0140 && I43<=0157)){if (X.M!=null){X.O3y=[]; for (var o4d=0; o4d<X.M.length; o4d++){X.O3y.push(X.M[o4d]); }var O4c=HTMLEditor.il+"StyleForTyping"; var O4d= true; if (!HTMLEditor.is_ie)X.o11("<span id='"+O4c+"'></span>"); else {X.o11("<span id='"+O4c+"'>&nbsp;</span>"); var l4c=X.l1.getElementById(O4c); if (l4c && l4c.nextSibling && l4c.nextSibling.nodeType==3){O4d= false; var o4b=X.oq(); var O4b=X.lq(o4b); O4b.moveToElementText(X.l1.getElementById(O4c)); O4b.select(); }else if (l4c)l4c.removeChild(l4c.firstChild); }if (O4d)setTimeout( function (){X.i4c(O4c); X.l13(); } ,0); }}}if (!HTMLEditor.is_ie && (Oj.type=="mousedown" || (Oj.type=="keydown" && !Oj.ctrlKey))){X.I1f= false; X.l1g= false; X.i1g= false; X.I1g= false; X.o1h= false; X.O1h= false; }if (I4c || !HTMLEditor.is_ie){if (!X.l4d){if (X.i4d){clearTimeout(X.i4d); X.i4d=null; }X.I4d=3; function o4e(){try {if (HTMLEditor.is_ie){try {var Oz=X.l1.selection; }catch (t){return false; }}if (HTMLEditor.is_ie)if (X.oq().type=="None" && X.l1.queryCommandValue("backcolor")==0 && X.l1.queryCommandValue("forecolor")==0){X.I4d--; if (X.I4d>0){X.i4d=setTimeout(o4e,0144); return; }}X.l4d= true; X.updateToolbar(); X.l4d= false; X.i4d=null; if (!HTMLEditor.is_ie){X.focusEditor(); }}catch (t){}}X.i4d=setTimeout(o4e,0454); }}}if (!((!HTMLEditor.is_ie && (Oj.type=="keydown" || Oj.type=="keyup")) || (HTMLEditor.is_ie && (Oj.type=="keydown" || Oj.type=="keyup") && (Oj.keyCode==020 || Oj.keyCode==024))))X.M=null; if (HTMLEditor.is_Safari)setTimeout( function (){X.lq(X.oq()); } ,0); if (!HTMLEditor.is_ie)setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); if (Oq.startContainer.nodeType!=3 && Oq.startContainer==Oq.endContainer)if (Oq.startOffset==Oq.endOffset)if (Oq.startContainer.childNodes.item(Oq.startOffset))if (Oq.startContainer.childNodes.item(Oq.startOffset).nodeType==3){var o16=Oq.startContainer.childNodes.item(Oq.startOffset); Ip.collapseToEnd(); X.i16(Ip); Ip=X.oq(); Oq=X.lq(Ip); if (HTMLEditor.is_Safari){X.o13.type="Caret"; X.o13.focusNode=o16; X.o13.focusOffset=0; }else {Oq.setStart(o16,0); Oq.setEnd(o16,0); X.I16(Ip,Oq); }}} ,0144); if (!HTMLEditor.is_ie){var Ip=X.oq(); var Oq=X.lq(Ip); X.O4e=Oq.startContainer; X.l4e=Oq.startOffset; }setTimeout( function (){try {X.i1e(); }catch (t){}} ,0144); if (Oj.type=="keydown"){if (X.i4e==null || typeof X.i4e=="undefined" || !X.i4e){X.i4e= true; setTimeout( function (){X.l13(); X.i4e= false; } ,012); }}return true; }catch (w){HTMLEditor._stopEvent(Oj); return false; }} ; HTMLEditor.prototype.i4c= function (O4c){var X=this ; var ik=X.l1.getElementById(O4c); if (ik!=null){if (ik.nextSibling && ik.nextSibling.nodeType==3){var text=ik.nextSibling; ik.parentNode.removeChild(ik); var I4e=(""+text.data+"").indexOf(" "); if (I4e>0)text.splitText(I4e); else if (I4e==0)text.splitText(1); if (X.O3y!=null)for (var o4d=0; o4d<X.O3y.length; o4d++)X.l3v(X.O3y[o4d],[text], false); X.O3y=null; var Ip=X.oq(); if (!HTMLEditor.is_ie){var Oq=X.l1.createRange(); Oq.setStart(text,text.length); Oq.setEnd(text,text.length); X.i16(Ip); X.I16(Ip,Oq); }else {var O3k=X.lq(Ip); var I47=X.l1.createElement("span"); if (text.nextSibling)text.parentNode.insertBefore(I47,text.nextSibling); else text.parentNode.appendChild(I47); try {O3k.moveToElementText(I47); O3k.select(); }catch (t){}I47.parentNode.removeChild(I47); }}else ik.parentNode.removeChild(ik); }};HTMLEditor.prototype.O1e= function (){if (!this.Iq())return false; var Ip=this.oq(); var Oq=this.lq(Ip); var O1o; if (HTMLEditor.is_ie){O1o=Oq.item(0); }else {O1o=Oq.startContainer.childNodes.item(Oq.startOffset); }if (O1o.tagName && O1o.tagName.toUpperCase()=="IMG" && O1o.getAttribute(HTMLEditor.Is) && O1o.getAttribute(HTMLEditor.Is).length>0){var o4f=this.ot(O1o); if (o4f!=null){if (HTMLEditor.is_ie){Oq=this.l1.body.createControlRange(); Oq.add(o4f); Oq.select(); }else {try {var index=HTMLEditor.O16(o4f); Ip.collapseToEnd(); this.i16(Ip); Oq=this.lq(Ip); Oq.setStart(o4f.parentNode,index); Oq.setEnd(o4f.parentNode,index+1); this.I16(Ip,Oq); }catch (t){return true; }}return false; }return true; }return false; };HTMLEditor.prototype.i1e= function (){if (HTMLEditor.is_ie){try {var Oz=this.l1.selection; }catch (t){return false; }}var X=this ; var i47=null; var ik=HTMLEditor.getSelParent(X); while (ik && (ik.nodeType==3 || (ik.tagName && ik.tagName.toUpperCase()!="BODY"))){if (ik.nodeType==3 || !ik.tagName){ik=ik.parentNode; continue; }if (ik.tagName.toUpperCase()=="TABLE" && ik.getAttribute(HTMLEditor.is) && ik.getAttribute(HTMLEditor.is)=="yes"){i47=ik.rows.item(0).cells.item(0).firstChild; if (HTMLEditor.is_ie && i47.tagName.toUpperCase()=="P")i47=i47.firstChild; break; }ik=ik.parentNode; }if (i47!=null){var Ip=X.oq(); var Oq=X.lq(Ip); if (HTMLEditor.is_ie){Oq=X.l1.body.createControlRange(); Oq.add(i47); Oq.select(); }else {try {Ip.collapseToEnd(); X.i16(Ip); Oq=X.lq(Ip); Oq.setStart(i47.parentNode,0); Oq.setEnd(i47.parentNode,1); X.I16(Ip,Oq); }catch (t){}}}};HTMLEditor.prototype.oq= function (){if (HTMLEditor.is_ie){var Ip=this.l1.selection; return Ip; }else { this.focusEditor(); var Ip; var Oq; var ik; Ip=this._iframe.contentWindow.getSelection(); Oq=this.lq(Ip); ik=Oq.startContainer; try {while (ik && ik.nodeType){ik=ik.parentNode; }}catch (t){ this.i16(Ip); Oq=this.lq(Ip); Oq.setStart(this.O4e,this.l4e); Oq.setEnd(this.O4e,this.l4e); this.I16(Ip,Oq); Ip=this._iframe.contentWindow.getSelection(); }return Ip; }} ; HTMLEditor.prototype.lq= function (Ip){if (HTMLEditor.is_ie){return Ip.createRange(); }else { this.focusEditor(); if (typeof Ip=="undefined"){return this.l1.createRange(); }else {try {var i1f=Ip.getRangeAt(0); if (i1f==null && HTMLEditor.ij)O4f.l4f=i4f.i4f; return i1f; }catch (t){var X=this ; if (!(HTMLEditor.is_Safari && !HTMLEditor.ij) && Ip.rangeCount==0){return this.l1.createRange(); }if (HTMLEditor.is_Safari){try {if (Ip.type=="None"){if (X.o13){if (X.o13.type=="Caret"){Ip.setPosition(X.o13.focusNode,X.o13.focusOffset); }else {Ip.setBaseAndExtent(X.o13.anchorNode,X.o13.anchorOffset,X.o13.focusNode,X.o13.focusOffset); }}else {Ip.setPosition(this.l1.body.firstChild,0); }}if (Ip.type=="Caret"){var i1f=X.l1.createRange(); if (!X.o13)X.o13=new Object(); X.o13.type="Caret"; i1f.setStart(Ip.focusNode,Ip.focusOffset); i1f.setEnd(Ip.focusNode,Ip.focusOffset); X.o13.focusNode=Ip.focusNode; X.o13.focusOffset=Ip.focusOffset; return i1f; }if (!X.o13)X.o13=new Object(); X.o13.type="Range"; var I4f=Ip.anchorNode; var o4g=Ip.anchorOffset; if (I4f.nodeType==1 && I4f.childNodes.length==0){I4f=I4f.parentNode; o4g=HTMLEditor.i3c(I4f,Ip.anchorNode); }var O4g=Ip.focusNode; var l4g=Ip.focusOffset; if (O4g.nodeType==1 && O4g.childNodes.length==0){O4g=O4g.parentNode; l4g=HTMLEditor.i3c(O4g,Ip.focusNode); }var i4g=X.l1.createRange(); i4g.setStart(I4f,o4g); i4g.collapse( true); var I4g=X.l1.createRange(); I4g.setStart(O4g,l4g); I4g.collapse( true); var o4h=i4g.compareBoundaryPoints(i4g.START_TO_END,I4g)<0; var O4h=o4h?I4f:O4g; var l4h=o4h?o4g:l4g; var i4h=o4h?O4g:I4f; var I4h=o4h?l4g:o4g; var i1f=X.l1.createRange(); i1f.setStart(O4h,l4h); i1f.setEnd(i4h,I4h); X.o13.focusNode=i4h; X.o13.focusOffset=I4h; X.o13.anchorNode=O4h; X.o13.anchorOffset=l4h; return i1f; }catch (t){X.o13=null; Ip.setPosition(this.l1.body.firstChild,0); }}}}}} ; HTMLEditor.prototype.o4i=null; HTMLEditor.prototype.getFormat= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var Ip=this.oq(); var Oq=this.lq(Ip); var I21=HTMLEditor.il+"_right"; var l22; if (HTMLEditor.is_ie){l22=Oq.duplicate(); l22.setEndPoint("StartToEnd",Oq); }else {l22=Oq.cloneRange(); l22.setStart(l22.endContainer,l22.endOffset); }if (this.o11("<span id='"+I21+"'/>",l22)){var I19=this.l1.getElementById(I21); var par=I19.parentNode; this.o4i=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1i(par.tagName)){if (par.tagName.toUpperCase()!="A"){var ok=par.cloneNode( false); if (this.o4i==null){ this.o4i=ok; }else {ok.appendChild(this.o4i); this.o4i=ok; }}par=par.parentNode; }I19.parentNode.removeChild(I19); if (this.o4i){var I3j=this.l1.createElement("span"); I3j.appendChild(this.o4i); this.o4i=I3j.innerHTML; }}};HTMLEditor.prototype.applyFormat= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (this.o4i==null){setTimeout( function (){alert(X.Ie("copy-format","Copy Format.")); } ,0); return; }var I3j=this.l1.createElement("span"); I3j.innerHTML=this.o4i; var i1a=this.I1a(); if (i1a.length==0){setTimeout( function (){alert(X.Ie("select-text","Select some text.")); } ,0); delete I3j; return; } this.O10(); for (var i=0; i<i1a.length; i++){var par=i1a[i].parentNode; var O4i=I3j.firstChild.cloneNode( true); var I24=O4i; while (I24.firstChild)I24=I24.firstChild; par.insertBefore(O4i,i1a[i]); I24.appendChild(i1a[i]); } this.l1i(i1a); delete I3j; this.I0.setTimeout( function (){X.l13(); X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.I1a= function (l4i){try {var i4i=[]; if (this.Iq())return i4i; var Ip=this.oq(); var Oq=this.lq(Ip); var I21=HTMLEditor.il+"_right"; var o22=HTMLEditor.il+"_left"; var O22=null; var l22=null; var I4i; if (typeof l4i=="undefined"){if (HTMLEditor.is_ie){O22=Oq.duplicate(); l22=Oq.duplicate(); O22.setEndPoint("EndToStart",Oq); l22.setEndPoint("StartToEnd",Oq); }else {O22=Oq.cloneRange(); l22=Oq.cloneRange(); O22.setEnd(O22.startContainer,O22.startOffset); l22.setStart(l22.endContainer,l22.endOffset); I4i=O22.endOffset; }if (!this.o11("<span id='"+I21+"'/>",l22))return i4i; {if (HTMLEditor.i10){O22.setEnd(O22.startContainer,I4i); O22.setStart(O22.startContainer,I4i); }if (!this.o11("<span id='"+o22+"'/>",O22)){var i22=this.l1.getElementById(I21); if (i22!=null){ok=i22.parentNode; ok.removeChild(i22); }var o4j=this.l1.getElementById(O4j); if (o4j!=null){ok=o4j.parentNode; ok.removeChild(o4j); }return i4i; }}}else {var span; span=this.l1.createElement("SPAN"); span.id=I21; this.l1.body.appendChild(span); span=this.l1.createElement("SPAN"); span.id=o22; this.l1.body.insertBefore(span,this.l1.body.firstChild); }var i19=this.l1.getElementById(o22); var I19=this.l1.getElementById(I21); if (i19==null || I19==null){var ok; if (i19!=null){ok=i19.parentNode; ok.removeChild(i19); }if (I19!=null){ok=I19.parentNode; ok.removeChild(I19); }return []; }while (i19.firstChild)i19.removeChild(i19.firstChild); while (I19.firstChild)I19.removeChild(I19.firstChild); while (i19.previousSibling && i19.previousSibling.nodeType==3 && HTMLEditor.l12(""+i19.previousSibling.data+"").length==0)i19.parentNode.removeChild(i19.previousSibling); while (i19.nextSibling && i19.nextSibling.nodeType==3 && HTMLEditor.l12(""+i19.nextSibling.data+"").length==0)i19.parentNode.removeChild(i19.nextSibling); while (I19.previousSibling && I19.previousSibling.nodeType==3 && HTMLEditor.l12(""+I19.previousSibling.data+"").length==0)I19.parentNode.removeChild(I19.previousSibling); while (I19.nextSibling && I19.nextSibling.nodeType==3 && HTMLEditor.l12(""+I19.nextSibling.data+"").length==0)I19.parentNode.removeChild(I19.nextSibling); var I40= false; var X=this ; function l4j(i4j,om){while (i4j){if (i4j.id && i4j.id==I21){I40= true; return; }if (i4j.nodeType==3){while (i4j.nextSibling && (i4j.nextSibling.nodeType==3 || (!HTMLEditor.is_ie && X.I3v!=null && X.I3v[0]==i4j.nextSibling))){if (i4j.nextSibling.nodeType==3)i4j.data=""+i4j.data+""+i4j.nextSibling.data+""; else {X.I3v[0]=i4j; X.I3v[1]=(""+i4j.data+"").length; }i4j.parentNode.removeChild(i4j.nextSibling); }if (HTMLEditor.l12(""+i4j.data+"").length>0)i4i.push(i4j); }else {if (!(i4j.tagName && (i4j.tagName.toUpperCase()=="MAP" || i4j.tagName.toUpperCase()=="AREA")))if (!(i4j.tagName && (i4j.tagName.toUpperCase()=="SCRIPT" || i4j.tagName.toUpperCase()=="NOSCRIPT")))if (!(i4j.style && (ly(i4j,"display")=="none" || ly(i4j,"visibility")=="hidden")))l4j(i4j.firstChild, false); }if (I40)return; var O36=i4j.parentNode; if (om)while (i4j.nextSibling==null){i4j=i4j.parentNode; }i4j=i4j.nextSibling; }}l4j(i19, true); var ok; ok=i19.parentNode; ok.removeChild(i19); ok=I19.parentNode; ok.removeChild(I19); if (typeof l4i=="undefined"){if (HTMLEditor.is_ie){Ip.empty(); l22.select(); }else {if (i4i.length>0){ this.i16(Ip); var lz=this.lq(); lz.setEnd(i4i[i4i.length-1],i4i[i4i.length-1].length); lz.setStart(i4i[i4i.length-1],i4i[i4i.length-1].length); this.I16(Ip,lz); }}}return i4i; }catch (t){alert("_getTextNodeCollection: "+t.message); return []; }} ; HTMLEditor.prototype.iq= function (Oq){if (HTMLEditor.is_ie)return Oq.parentElement(); else {return Oq.startContainer; }};HTMLEditor.prototype.getIconsUrls= function (){var X=this ; var oe=[]; for (var i=0; i<X._IconArray.length; i++){var folder=X._IconArray[i][0]; var og=X._IconArray[i][1]; for (var ig=0; ig<og.length; ig++)oe.push(X.l7+"/"+folder+"/"+og[ig]); }return oe; };HTMLEditor.prototype.ExecCommand= function (I4j,param){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.lq(this.oq()); this.O10(); this.i1h(I4j, false ,param); return true; };HTMLEditor.prototype.QueryCommand= function (I4j){if (this.mode()!="html")return false; switch (I4j.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.O21(I4j); case "formatblock":var i15=this.o4k(); if (i15==null)return ""; var ik=i15.start; while (ik && ik.tagName && ik.tagName.toUpperCase()!="BODY" && ik.tagName.toUpperCase()!="TD"){if (/^h\d$/i.test(ik.tagName))return ik.tagName; ik=ik.parentNode; }return ""; }return this.l1.queryCommandValue(I4j); };HTMLEditor.prototype.i1h= function (I4j,UI,param){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }var Ip; var Oq; if (HTMLEditor.is_ie && !this.Iq()){Ip=this.oq(); Oq=this.lq(Ip); var O4a=Oq.parentElement(); if (O4a.tagName.toUpperCase()=="TEXTAREA")return; }try {if (I4j.toLowerCase()!="createlink")this.O10(); if (HTMLEditor.is_Safari){Ip=this.oq(); }switch (I4j.toLowerCase()){case "createlink":if (HTMLEditor.is_ie || !UI){ this.l1.execCommand(I4j,UI,param); }else {if ((param=prompt("Enter URL"))){ this.l1.execCommand(I4j, false ,param); }}break; case "backcolor":case "forecolor":case "fontname":case "fontsize": this.i3u(I4j.toLowerCase(),param); break; case "indent": this.l3t( true); break; case "outdent": this.l3t( false); break; case "justifyleft": this.i3m("left"); break; case "justifyfull": this.i3m("justify"); break; case "justifycenter": this.i3m("center"); break; case "justifyright": this.i3m("right"); break; case "paragraph": this.i3m("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.i3m("remain", false ,param); break; }} this.l1.execCommand(I4j,UI,param); break; case "insertunorderedlist": this.I3q("UL"); break; case "insertorderedlist": this.I3q("OL"); break; case "bold":case "italic":case "underline":case "strikethrough":case "superscript":case "subscript": this.i3u(I4j.toLowerCase()); break; default: this.l1.execCommand(I4j,UI,param); break; } this.l13(); if (!HTMLEditor.is_ie){Ip=this.oq(); Oq=this.lq(Ip); this.i16(Ip); if (HTMLEditor.i10)setTimeout( function (){X.f= true; X.focusEditor(); X.I16(Ip,Oq); } ,0); this.I16(Ip,Oq); this.focusEditor(); }var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); }catch (t){alert("_execCommand: "+t.message); }} ; HTMLEditor.prototype.i16= function (Ip){if (!HTMLEditor.is_Safari)Ip.removeAllRanges(); };HTMLEditor.prototype.I16= function (Ip,Oq,om){if (!HTMLEditor.is_Safari)Ip.addRange(Oq); else {if (Oq.startContainer==Oq.endContainer && Oq.startOffset==Oq.endOffset){Ip.setPosition(Oq.startContainer,Oq.startOffset); }else Ip.setBaseAndExtent(Oq.startContainer,Oq.startOffset,Oq.endContainer,Oq.endOffset); }if (typeof om=="undefined")if (HTMLEditor.i10 && this.f)this._iframe.blur(); this.focusEditor(); };HTMLEditor.prototype.O4k= function (value){if (this.Iq())return false; var Oq=this.lq(this.oq()); var l4k=Oq.duplicate(); var i4k=Oq.duplicate(); l4k.setEndPoint("StartToStart",Oq); l4k.setEndPoint("EndToStart",Oq); i4k.setEndPoint("StartToEnd",Oq); i4k.setEndPoint("EndToEnd",Oq); var I4k=l4k.parentElement(); var o4l=i4k.parentElement(); if (I4k.parentNode!=o4l.parentNode || HTMLEditor.O4l(I4k)){function l4l(ik){var og=[]; while (ik!=null){og.push(ik); ik=ik.parentNode; }og.reverse(); return og; } ; var i4l=l4l(I4k.parentNode); var I4l=l4l(o4l.parentNode); var i=0; while (i4l[i]==I4l[i])i++; I4k=i4l[i]; o4l=I4l[i]; if (HTMLEditor.O4l(I4k)){while (HTMLEditor.O4l(I4k)){i--; I4k=i4l[i]; }o4l=I4k; }}var Oc=I4k; if (!Oc)return false; if (!this.rtlState()){ do {var o4m=Oc.style.marginLeft?parseInt(Oc.style.marginLeft): 0; o4m=o4m+value; if (o4m<=0)Oc.style.marginLeft=""; else Oc.style.marginLeft=o4m+"px"; if (Oc==o4l)break; Oc=Oc.nextSibling; }while (Oc);}else { do {var o4m=Oc.style.marginRight?parseInt(Oc.style.marginRight): 0; o4m=o4m+value; if (o4m<=0)Oc.style.marginRight=""; else Oc.style.marginRight=o4m+"px"; if (Oc==o4l)break; Oc=Oc.nextSibling; }while (Oc);}return true; };HTMLEditor.O4l= function (ik){if (!ik)return false; if (!ik.tagName)return false; var name=ik.tagName.toUpperCase(); switch (name){case "TD":case "TR":case "TBODY":case "LI":return true; default:return false; }};HTMLEditor.prototype.O1g= function (I4j){var i15=this.o4k(); if (i15==null)return false; try {var o3v= {name: "none",value: "none" } ; switch (I4j.toLowerCase()){case "bold":o3v= {name: "font-weight",value: "bold" } ; break; case "italic":o3v= {name: "font-style",value: "italic" } ; break; case "underline":o3v= {name: "text-decoration",value: "underline" } ; break; case "strikethrough":o3v= {name: "text-decoration",value: "line-through" } ; break; case "superscript":o3v= {name: "vertical-align",value: "super" } ; break; case "subscript":o3v= {name: "vertical-align",value: "sub" } ; break; }var o1x=i15.start; var O4m=i15.end; var l4m=HTMLEditor.ly(o1x,o3v.name).toString().toLowerCase(); var i4m=HTMLEditor.ly(O4m,o3v.name).toString().toLowerCase(); if (o3v.name=="font-weight" && l4m=="700")l4m="bold"; if (o3v.name=="font-weight" && i4m=="700")i4m="bold"; if (/MSIE (5|6)/.test(navigator.userAgent) && I4j.toLowerCase()=="strikethrough" && (l4m=="underline" || i4m=="underline")){while (o1x && HTMLEditor.O1i(o1x.tagName)){if (o1x.style.textDecoration.indexOf("line-through")>=0){l4m=o1x.style.textDecoration; break; }o1x=o1x.parentNode; }while (O4m && HTMLEditor.O1i(O4m.tagName)){if (O4m.style.textDecoration.indexOf("line-through")>=0){i4m=O4m.style.textDecoration; break; }O4m=O4m.parentNode; }}var oe=(l4m.indexOf(o3v.value)>=0) && (i4m.indexOf(o3v.value)>=0); if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var I4m=this.M[i]; if (I4m.name==o3v.name && I4m.value==o3v.value){oe=!oe; break; }}}return oe; }catch (w){return false; }} ; HTMLEditor.l1k= function (fontSize,X,o1j){var oe=fontSize.replace(/^(\d+)\.(\d+)px/i,"$1px"); if (!HTMLEditor.is_ie){if (oe && oe.length>0){var Oe=oe.toLowerCase().split(",")[0]; if (typeof o1j!="undefined"){var ik=document.getElementById(o1j); if (ik!=null){ik=ik.childNodes.item(1); var i; for (i=0; i<ik.options.length; i++){var l15=HTMLEditor.i1j(ik.options.item(i).value.toLowerCase().split(",")[0]); if (l15==Oe)break; }if (i==ik.options.length){var span=X.l1.createElement("SPAN"); X.l1.body.appendChild(span); for (i=1; i<0144; i++){span.style.fontSize=i+"pt"; if (HTMLEditor.ly(span,"font-size").replace(/^(\d+)\.(\d+)px/i,"$1px")==Oe){Oe=i+"pt"; break; }}span.parentNode.removeChild(span); }}}oe=Oe; }}return oe; };HTMLEditor.prototype.o1i= function (I4j,o1j){var i15=this.o4k(); if (i15==null)return ""; try {if (I4j.toLowerCase()=="backcolor"){var ik=i15.start; while (ik){var o4n=HTMLEditor.ly(ik,"background-color").toLowerCase(); if (o4n.length>0 && o4n!="transparent")return o4n; ik=ik.parentNode; }return "#FFFFFF"; }var o3v="none"; switch (I4j.toLowerCase()){case "forecolor":o3v="color"; break; case "fontname":o3v="font-family"; break; case "fontsize":o3v="font-size"; break; }var oe; if ((o3v=="font-size" || o3v=="font-family") && this._FontNotSet){oe=""; var par=i15.start; while (par!=null){if (o3v=="font-size"){if (par.style && par.style.fontSize && par.style.fontSize.length>0){oe=par.style.fontSize; break; }}else {if (par.style && par.style.fontFamily && par.style.fontFamily.length>0){oe=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 {oe=HTMLEditor.ly(i15.start,o3v).toLowerCase(); if (o3v=="font-size"){if (!HTMLEditor.is_ie){oe=HTMLEditor.l1k(oe,this,o1j); var par=i15.start; while (par!=null){if (par.style && par.style.fontSize && par.style.fontSize.length>0){oe=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 I4m=this.M[i]; if (I4m.name==o3v){oe=I4m.value; break; }}}return oe; }catch (w){return ""; }} ; HTMLEditor.prototype.o4k= function (){if (this.Iq())return null; try {var Ip=this.oq(); var Oq=this.lq(Ip); var o1x=null; var O4m=null; if (!HTMLEditor.is_ie){function O4n(par,I23){var oe=null; while (oe==null){if (par.nodeType==3){if (I23 && Oq.startContainer!=Oq.endContainer && Oq.startOffset==par.length && par.nextSibling){oe=O4n(par.nextSibling,I23); }else if (!I23 && Oq.startContainer!=Oq.endContainer && Oq.endOffset==0 && par.previousSibling){oe=O4n(par.previousSibling,I23); }else oe=par; }else {if ((I23?par.firstChild:par.lastChild)==null)oe=null; else oe=O4n(I23?par.firstChild:par.lastChild,I23); }if (oe==null){par=I23?par.nextSibling:par.previousSibling; if (par==null)return null; }else return oe; }}o1x=O4n(Oq.startContainer, true); if (o1x!=null && o1x.parentNode!=null)o1x=o1x.parentNode; if (o1x==null)o1x=Oq.startContainer; O4m=O4n(Oq.endContainer, false); if (O4m!=null && O4m.parentNode!=null)O4m=O4m.parentNode; if (O4m==null)O4m=Oq.endContainer; }else {if (Oq.text.length==0)o1x=O4m=this.iq(Oq); else {var I21=HTMLEditor.il+"_right_marker"; var o22=HTMLEditor.il+"_left_marker"; var O22=Oq.duplicate(); var l22=Oq.duplicate(); O22.setEndPoint("EndToStart",Oq); l22.setEndPoint("StartToEnd",Oq); l22.pasteHTML("<span id='"+I21+"'/>"); O22.pasteHTML("<span id='"+o22+"'/>"); var i19=this.l1.getElementById(o22); var I19=this.l1.getElementById(I21); o1x=i19.parentNode; O4m=I19.parentNode; i19.parentNode.removeChild(i19); I19.parentNode.removeChild(I19); }}return {start:o1x,end:O4m } ; }catch (w){return null; }};HTMLEditor.prototype.l4n= function (i4n,Oq){if (!HTMLEditor.is_ie){var Ip=this.oq(); if (typeof Oq=="undefined"){try {Oq=this.lq(Ip); }catch (Oj){alert(this.Ie("click-to-editor","Click to editing panel.")); this.i16(Ip); return false; }}var I2d=Oq.startContainer; var I4n=Oq.startOffset; if (I2d.ownerDocument.id!="EditorDocument"){alert(this.Ie("click-to-editor","Click to editing panel.")); return false; }if ((Oq.startContainer.nodeType==1 && Oq.startContainer.tagName.toUpperCase()=="TR") || (Oq.endContainer.nodeType==1 && Oq.endContainer.tagName.toUpperCase()=="TR")){var X=this ; setTimeout( function (){alert(X.Ie("paste-fail","Not correct selection for inserting.")); } ,0); return false; } this.i16(Ip); Oq.deleteContents(); try {Oq=this.lq(); }catch (Oj){alert(this.Ie("click-to-editor","Click to editing panel.")); this.i16(Ip); return false; }switch (I2d.nodeType){case 3:I2d=I2d.splitText(I4n); while (i4n.firstChild)I2d.parentNode.insertBefore(i4n.firstChild,I2d); Oq.setStart(I2d,0); Oq.setEnd(I2d,0); break; case 1:case 013:try { this.i16(Ip); if (I2d.childNodes.length>=I4n+1){I2d=I2d.childNodes.item(I4n); while (i4n.firstChild)I2d.parentNode.insertBefore(i4n.firstChild,I2d); var l16=this.l1.createTextNode(""); I2d.parentNode.insertBefore(l16,I2d); I2d=l16; }else {var l16=this.l1.createTextNode(""); if (HTMLEditor.canHaveChildren(I2d)){while (i4n.firstChild)I2d.appendChild(i4n.firstChild); I2d.appendChild(l16); }else {while (i4n.firstChild)I2d.parentNode.insertBefore(i4n.firstChild,I2d); I2d.parentNode.insertBefore(l16,I2d); }I2d=l16; }if (I2d.nodeType==1){var par=I2d.parentNode; var o16=par; var ig=0; for ( ; ig<par.childNodes.length; ig++)if (I2d==par.childNodes.item(ig))break; Oq.setStart(par,ig); Oq.setEnd(par,ig); }else {Oq.setStart(I2d,0); Oq.setEnd(I2d,0); }}catch (Oj){alert(this.Ie("click-to-editor","Click to editing panel.")); this.i16(Ip); return false; }break; }if (HTMLEditor.i10)this.f= true; this.I16(Ip,Oq); return true; }else {return null; }} ; HTMLEditor.prototype.o11= function (html,Oq){ this.focusEditor(); var Ip=this.oq(); if (typeof Oq=="undefined"){Oq=this.lq(Ip); }if (HTMLEditor.is_ie){function i2s(O28,i20){return "\x3cspan class=\""+HTMLEditor.il+"_script\" style=\'display:none;visibility:hidden;\'>"+i20.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function O2t(O28,i20,I20,l2t){return i20.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var o4o="\x3cspan id=\""+HTMLEditor.il+"\">111\x3cspan>\x3c/span>"+html+"</span>"; var O11=HTMLEditor.l11(o4o); var i11=HTMLEditor.I11(o4o); if (!this.NoScript)o4o=o4o.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,i2s); else o4o=o4o.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); var X=this ; try {Oq.pasteHTML(o4o); }catch (t){setTimeout( function (){alert(X.Ie("paste-fail","Not correct selection for inserting.")); } ,0144); return false; }var o2x=this.l1.getElementById(HTMLEditor.il); o2x.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(o2x, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.il+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),O2t)+"<span>qqq</span>"; o2x.removeChild(o2x.firstChild); o2x.removeChild(o2x.lastChild); HTMLEditor.o12(o2x,O11); HTMLEditor.O12(o2x,i11); if (o2x.firstChild)o2x.removeChild(o2x.firstChild); if (o2x.firstChild)o2x.removeChild(o2x.firstChild); while (o2x.firstChild)o2x.parentNode.insertBefore(o2x.firstChild,o2x); o2x.parentNode.removeChild(o2x); delete o2x; return true; }else {var div=this.l1.createElement("div"); div.innerHTML=html; var i1t=div.getElementsByTagName("EMBED"); var o2z=[]; for (var i=0; i<i1t.length; i++)o2z.push(i1t[i]); for (var ig=0; ig<o2z.length; ig++){var embed=o2z[ig]; var img=document.createElement("IMG"); var i2x=embed.attributes; img.src=this.Q[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<i2x.length; ++i){var a=i2x.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 oe=this.l4n(div,Oq); return oe; }} ; HTMLEditor.prototype.getDocument= function (){return this.l1; };HTMLEditor.prototype.getWindow= function (){if (HTMLEditor.is_Safari)return document.getElementById(this._hiddenContent+"_inner_iframe").contentWindow; else return this._iframe.contentWindow; };HTMLEditor.O4o=[]; HTMLEditor.l4o=null; HTMLEditor.l1d=null; HTMLEditor.i4o= function (){for (var i=0; i<HTMLEditor.O4o.length; i++){HTMLEditor.O4o[i](); }HTMLEditor.O4o=[]; };HTMLEditor.I4o= function (t){function o4p(){setTimeout( function (){HTMLEditor.i4o(); } ,0); HTMLEditor.l1d=null; if (HTMLEditor.l4o!=null){HTMLEditor.lc(document.getElementById(HTMLEditor.l4o),"mousedown",HTMLEditor.I4o); HTMLEditor.i17(HTMLEditor.l4o.substr(0,HTMLEditor.l4o.length-("__disabling").length)); }HTMLEditor.l4o=null; }if (HTMLEditor.l1d){try {if (HTMLEditor.l1d.name!="OboutEditorPreview"){o4p(); }else {setTimeout( function (){try {HTMLEditor.l1d.focus(); }catch (t){}} ,0); if (typeof t!=undefined)HTMLEditor._stopEvent(t); return false; }}catch (t){o4p(); }}else o4p(); return true; };HTMLEditor.O4p= function (){if (!HTMLEditor.I4o())setTimeout(HTMLEditor.O4p,01750); else window.focus(); };HTMLEditor.prototype.l4p= function (i4p){var X=this ; if (HTMLEditor.l1d)return; try {HTMLEditor.l1d=window.open("","OboutEditorPreview","toolbar=0,status=1,scrollbars=1,resizable=1,width=600,height=400"); }catch (t){HTMLEditor.l1d=null; return; }if (!HTMLEditor.l1d)return; HTMLEditor.l4o=HTMLEditor.I13(X.mainDivId); if (HTMLEditor.l4o!=null)HTMLEditor.Ok(document.getElementById(HTMLEditor.l4o),"mousedown",HTMLEditor.I4o); function I4p(){try {if (!HTMLEditor.l1d.document)setTimeout(I4p,0144); HTMLEditor.l1d.focus(); }catch (t){HTMLEditor.l1d.close(); HTMLEditor.l1d=null; if (HTMLEditor.l4o!=null){HTMLEditor.lc(document.getElementById(HTMLEditor.l4o),"mousedown",HTMLEditor.I4o); HTMLEditor.i17(HTMLEditor.l4o.substr(0,HTMLEditor.l4o.length-("__disabling").length)); }HTMLEditor.l4o=null; X.l4p(i4p); }Iw=HTMLEditor.l1d.document; Iw.open(); var html=new l28(); var i27=i4p; var I27= false; function o28(O28,i20,I20){i27=I20; I27= true; }i4p.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,o28); i4p=i27; 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 o4q=new RegExp("<title>","gi"); if (X.D==null || !o4q.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 i28=0; i28<X._addCssFiles.length; i28++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[i28]+"\" 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(i4p); html.write("</body>"); html.write("</html>"); Iw.write(html.toString()); Iw.close(); setTimeout(HTMLEditor.O4p,0454); HTMLEditor.O4o.push( function (){X.focusEditor(); } ); }setTimeout(I4p,0); };HTMLEditor.prototype.preview= function (){var X=this ; if (HTMLEditor.l1d)return; X.getContentWait( function (i4p){X.l4p(i4p); } ); };HTMLEditor.prototype.print= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_ie)eval(this._iframe.name+".print()"); else this.getWindow().print(); };HTMLEditor.prototype.SurroundHTML= function (O4q,l4q){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.lq(this.oq()); var html=""; var Ip=this.oq(); var Oq=this.lq(Ip); if (HTMLEditor.is_ie && Ip.type.toLowerCase()=="control"){ this.O10(); html=Oq.item(0).outerHTML; return this.InsertHTML(O4q+html+l4q); }html=this.O1a(); if (html.length==0){return false; }var i1a=this.I1a(); if (i1a.length<1)return false; this.O10(); var I47=this.l1.createElement("span"); var o48=this.l1.createElement("span"); var i4q=i1a[0].parentNode; var I4q=i1a[i1a.length-1].parentNode; i4q.insertBefore(I47,i1a[0]); if (i1a[i1a.length-1].nextSibling)I4q.insertBefore(o48,i1a[i1a.length-1].nextSibling); else I4q.appendChild(o48); for (var i=0; i<i1a.length; i++){var par=i1a[i].parentNode; var ok=this.l1.createElement("SPAN"); try {function i2s(O28,i20){return "\x3cspan class=\""+HTMLEditor.il+"_script\" style=\'display:none;visibility:hidden;\'>"+i20.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function O2t(O28,i20,I20,l2t){return i20.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var o4o=O4q+(""+i1a[i].data+"").replace(/^\s/,"&nbsp;")+l4q; var O11; if (HTMLEditor.is_ie){O11=HTMLEditor.l11(o4o); if (!this.NoScript)o4o=o4o.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,i2s); else o4o=o4o.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); }ok.innerHTML="!!!<span></span>"+o4o; ok.removeChild(ok.firstChild); ok.removeChild(ok.firstChild); if (HTMLEditor.is_ie){ok.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(ok, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.il+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),O2t)+"<span>qqq</span>"; ok.removeChild(ok.firstChild); ok.removeChild(ok.lastChild); HTMLEditor.o12(ok,O11); }while (ok.firstChild)par.insertBefore(ok.firstChild,i1a[i]); par.removeChild(i1a[i]); }catch (t){return false; }}if (!HTMLEditor.is_ie){i1a=[]; var I40= false; function l4j(i4j,om){while (i4j){if (i4j==o48){I40= true; return; }if (i4j.nodeType==3){while (i4j.nextSibling && i4j.nextSibling.nodeType==3){i4j.data=""+i4j.data+""+i4j.nextSibling.data+""; i4j.parentNode.removeChild(i4j.nextSibling); }if (HTMLEditor.l12(""+i4j.data+"").length>0)i1a.push(i4j); }else l4j(i4j.firstChild, false); if (I40)return; var O36=i4j.parentNode; if (om)while (i4j.nextSibling==null){i4j=i4j.parentNode; }i4j=i4j.nextSibling; }}l4j(I47, true); Oq=this.l1.createRange(); Oq.setStart(i1a[0],0); Oq.setEnd(i1a[i1a.length-1],(""+i1a[i1a.length-1].data+"").length); this.i16(Ip); if (HTMLEditor.i10)this.f= true; this.I16(Ip,Oq); }else {Ip=this.oq(); var O3k=this.lq(Ip); var l3k=this.lq(Ip); try {O3k.moveToElementText(I47); l3k.moveToElementText(o48); O3k.setEndPoint("EndToEnd",l3k); O3k.select(); }catch (t){}}i4q.removeChild(I47); I4q.removeChild(o48); this.l13(); return true; } ; HTMLEditor.prototype.InsertHTML= function (html){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.lq(this.oq()); var o4r= false; var div=this.l1.createElement("div"); var O11; if (HTMLEditor.is_ie){O11=HTMLEditor.l11(html); }div.innerHTML=html; for (var i=0; i<div.childNodes.length; i++){var ik=div.childNodes.item(i); if (ik.nodeType==1 && !HTMLEditor.O32(ik))o4r= true; } this.O10(); if (HTMLEditor.is_ie){var Ip=this.oq(); var Oq=this.lq(Ip); if (Ip.type.toLowerCase()=="control"){var i15=Oq.item(0); var parent=i15.parentNode; Oq.remove(0); parent.removeChild(i15); }}if (o4r){var i1w=this.I1w(); if (!i1w){ this.I1d( false); return false; }var parent=i1w.parentNode; if (HTMLEditor.is_ie){HTMLEditor.o12(div,O11); }while (div.firstChild)parent.insertBefore(div.firstChild,i1w); parent.removeChild(i1w); this.l13(); return true; }else {var oe=this.o11(html); if (!oe){ this.I1d( false); } this.l13(); return oe; }};HTMLEditor.prototype.O1a= function (){var Ip=this.oq(); var Oq=this.lq(Ip); var O4r=null; if (HTMLEditor.is_ie){O4r=Oq.htmlText; }else {if (HTMLEditor.is_Safari && (Ip.type=="Caret" || Ip.type=="None"))O4r=""; else {if (HTMLEditor.is_Safari){if (Oq.cloneContents()==null)return ""; }O4r=HTMLEditor.getHTML(Oq.cloneContents(), false); }}return O4r; } ; HTMLEditor.o25= function (O1o,Iw,l4r,i4r,I4r){if (HTMLEditor.is_Safari)return; var o4s=0; var O4s=O1o.childNodes.length; if (typeof l4r!="undefined" && l4r!=null)o4s=l4r; if (typeof i4r!="undefined" && i4r!=null)O4s=i4r; for (var i=o4s; i<O4s; i++){var O35=O1o.childNodes.item(i);switch (O35.nodeType){case 1:if (O35.childNodes.length==0 && HTMLEditor.O1i(O35.tagName) && O35.tagName.toUpperCase()!="A" && !(O35.className.length>0 || (O35.getAttribute("class") && O35.getAttribute("class").length>0)) && !HTMLEditor.l39(O35)){O1o.removeChild(O35); i--; O4s--; continue; }if (O35.tagName.toUpperCase()=="SPAN"){while (O35.childNodes.length==1 && O35.firstChild.nodeType==1){if (O35.firstChild.tagName.toUpperCase()=="SPAN" && !HTMLEditor.l39(O35.firstChild)){var i2x=HTMLEditor.O3b(O35.firstChild,[]); var l4s=HTMLEditor.i4s(O35.firstChild); var I4s=O35.firstChild; var o4t=I4s.childNodes; while (I4s.firstChild!=null){O35.insertBefore(I4s.firstChild,I4s); }for (var ig=0; ig<l4s.length; ig++){if (l4s[ig][1]){try {if (O35.style[l4s[ig][0]]){if (l4s[ig][0].toLowerCase().indexOf("color")>=0){O35.style[l4s[ig][0]]=l4s[ig][1]; }else {try {var I17=O35.style[l4s[ig][0]]; O35.style[l4s[ig][0]]=O35.style[l4s[ig][0]]+" "+l4s[ig][1]; if (I17==O35.style[l4s[ig][0]]){O35.style[l4s[ig][0]]=l4s[ig][1]; }}catch (t){O35.style[l4s[ig][0]]=l4s[ig][1]; }}}else O35.style[l4s[ig][0]]=l4s[ig][1]; }catch (O4t){}}}for (var ig=0; ig<i2x.length; ig++){if (i2x[ig][1])O35.setAttribute(i2x[ig][0],i2x[ig][1]); }O35.removeChild(I4s); continue; }else if (O35.firstChild.tagName.toUpperCase()=="SPAN" && HTMLEditor.l39(O35.firstChild)){var i27=O35.firstChild; O35.parentNode.insertBefore(O35.firstChild,O35); O35.parentNode.removeChild(O35); O35=i27; }break; }var l4t=[]; var i4t=O35.nextSibling; while (!HTMLEditor.l39(O35) && i4t && i+1<O4s && (i4t.nodeType==3 || (i4t.nodeType==1 && (i4t.tagName.toUpperCase()=="SPAN" || (i4t.tagName.toUpperCase()=="BR") && typeof I4r=="undefined") && !HTMLEditor.l39(i4t)))){if (i4t.nodeType==3){if ((""+i4t.data+"").length==0){i4t.parentNode.removeChild(i4t); i4t=O35.nextSibling; O4s--; }else {break; }}else {if (i4t.tagName.toUpperCase()=="BR"){l4t.push(i4t); i4t=i4t.nextSibling; }else {var i2x=HTMLEditor.O3b(O35,[],i4t); var l4s=HTMLEditor.i4s(O35,i4t); if (i2x.length==0 && l4s.length==0 && O35.className==i4t.className){var i36=l4t.length; for (var ig=0; ig<i36; ig++){O35.appendChild(l4t[ig]); O4s--; }l4t=[]; while (i4t.firstChild)O35.appendChild(i4t.firstChild); i4t.parentNode.removeChild(i4t); i4t=O35.nextSibling; O4s--; }else break; }}}if (!HTMLEditor.l39(O35) && O35.className.length==0){var i2x=HTMLEditor.O3b(O35,[]); var l4s=HTMLEditor.i4s(O35); if (i2x.length==0 && l4s.length==0){i--; O4s--; while (O35.firstChild){O35.parentNode.insertBefore(O35.firstChild,O35); O4s++; }O35.parentNode.removeChild(O35); continue; }}}if (O35.parentNode!=null)if (O35.childNodes.length==0 && HTMLEditor.O1i(O35.tagName) && O35.tagName.toUpperCase()!="A" && !(O35.className.length>0 || (O35.getAttribute("class") && O35.getAttribute("class").length>0)) && !HTMLEditor.l39(O35)){O1o.removeChild(O35); i--; O4s--; continue; }else HTMLEditor.o25(O35,Iw); break; }}};HTMLEditor.I4t= function (O1o,I15){var count=0; if (O1o.attributes)for (var i=0; i<O1o.attributes.length; i++){var I2c=O1o.attributes[i]; if (I2c.name.toUpperCase()=="STYLE")continue; if (I2c.name.toUpperCase()=="CLASS" && I15)continue; if (I2c.specified)count++; }return count; };HTMLEditor.O3b= function (O1o,I15,o4u){var l1u=[]; var parent=O1o.parentNode; if (typeof o4u!="undefined")parent=o4u; if (!parent || !parent.tagName || !HTMLEditor.O1i(parent.tagName))parent=null; if (O1o.attributes)for (var i=0; i<O1o.attributes.length; i++){var I2c=O1o.attributes[i]; var O4u= false; for (var ig=0; ig<I15.length; ig++)if (I2c.name.toUpperCase()==I15[ig].toUpperCase()){O4u= true; break; }if (O4u)continue; if (I2c.name.toUpperCase()=="STYLE")continue; if (I2c.name.toUpperCase().substr(0,4)=="_MOZ")continue; if (I2c.specified)if (parent && parent.attributes && parent.attributes[I2c.name]){var l4u=parent.attributes[I2c.name]; if (l4u){if (I2c.name!=l4u.name || I2c.value!=l4u.value){l1u.push([I2c.name,I2c.value]); }}}else {if (I2c.name.toUpperCase()=="CLASS" && I2c.value=="")continue; l1u.push([I2c.name,I2c.value]); }}return l1u; };HTMLEditor.i4s= function (O1o,o4u){var l1u=[]; var parent=O1o.parentNode; if (typeof o4u!="undefined")parent=o4u; if (!parent || !parent.tagName || !HTMLEditor.O1i(parent.tagName))parent=null; function i4u(i,I4u){I4u=""+I4u; if (i.toLowerCase()=="textdecoration"){var o4v=I4u.split(" "); for (var ig=0; ig<o4v.length; ig++){l1u.push([i,HTMLEditor.l12(o4v[ig])]); }}else l1u.push([i,I4u]); }for (var i in O1o.style){if (i && typeof i=="string" && i!="accelerator"){var style=O1o.style[i]; if (style && typeof style=="string" && style!="accelerator"){if (parent && parent.style){var O4v=parent.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=O4v){i4u(i,style); }}else {if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length"){i4u(i,style); }}}}}if (typeof o4u!="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 O4v=O1o.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=O4v){i4u(i,style); }}}}return l1u; };HTMLEditor.l4v= function (ik){var name=ik.tagName.toUpperCase(); switch (name){case "TD":case "LI":case "FIELDSET":case "FORM":return true; case "DIV":if (ik.className==HTMLEditor.il)return false; else return true; default:return false; }};HTMLEditor.O32= function (ik,om){if (ik && ik.style && ik.style.display && ik.style.display.toLowerCase()=="inline")return true; var name=ik.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 om!="undefined"){var par=ik.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.i4v=[["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.I4v=["DIV","P","TD","TR","TABLE","TBODY","LI","OL","UL","FORM","INPUT"]; HTMLEditor.l2f= function (O1o){for (var i=0; i<HTMLEditor.I4v.length; i++)if (HTMLEditor.I4v[i].toUpperCase()==O1o.tagName.toUpperCase()){return true; }if (HTMLEditor.is_ie && O1o.scopeName.toUpperCase()!="HTML")return true; return false; };HTMLEditor.I1h= function (o4w){if (typeof o4w!="number"){return o4w; }var i1f=o4w&0377; var i2y=(o4w>>8)&0377; var b=(o4w>>020)&0377; return "rgb("+i1f+","+i2y+","+b+")"; } ; HTMLEditor.O4w= function (o4w){function I2x(o2y){return (o2y<020)?("0"+o2y.toString(020)):o2y.toString(020); } ; if (typeof o4w=="number"){var i1f=o4w&0377; var i2y=(o4w>>8)&0377; var b=(o4w>>020)&0377; return "#"+I2x(i1f)+I2x(i2y)+I2x(b); }if (o4w.substr(0,3)=="rgb"){var O2i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/; if (o4w.match(O2i)){var i1f=parseInt(RegExp.$1); var i2y=parseInt(RegExp.$2); var b=parseInt(RegExp.$3); return "#"+I2x(i1f)+I2x(i2y)+I2x(b); }return null; }if (o4w.substr(0,1)=="#"){return o4w; }return null; } ; HTMLEditor.ow= function (window,l4w){if (!/MSIE (5|6|7)/.test(navigator.userAgent))return; if ((/MSIE (7)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat")return; var i4w=/(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i,I4w,Iw=window.document,o4x=[],O4x= {onhover:{l4x: "onmouseover",i4x: "onmouseout" } ,onactive:{l4x: "onmousedown",i4x: "onmouseup" }} ; var I4x=(typeof l4w=="undefined")?Iw:l4w; function parseStylesheets(){window.attachEvent("onunload",o4y); var I28=Iw.styleSheets,o29=I28.length; for (var i=0; i<o29; i++)l29(I28[i]); }function l29(i29){if (i29.imports){try {var imports=i29.imports,o29=imports.length; for (var i=0; i<o29; i++)l29(i29.imports[i]); }catch (O4y){}}try {var rules=(I4w=i29).rules,o29=rules.length; for (var ig=0; ig<o29; ig++)I29(rules[ig]); }catch (O4y){}}function I29(rule){var select=rule.selectorText,style=rule.style.cssText; if (!i4w.test(select) || !style)return; var l4y=select.replace(/[^:]+:([a-z-]+).*/i,"on$1"); var i4y=select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi,".$2"+l4y); var className=(/\.([a-z0-9_-]*on(hover|active))/i).exec(i4y)[1]; var I4y=select.replace(/:(hover|active).*$/,""); var elements=o4z(I4y); if (elements.length==0)return; I4w.addRule(i4y,style); for (var i=0; i<elements.length; i++)new O4z(elements[i],className,O4x[l4y]); }function O4z(I2d,className,l4z){if (!I2d.hovers)I2d.hovers= {} ; if (I2d.hovers[className])return; I2d.hovers[className]= true; i4z(I2d,l4z.l4x, function (){I2d.className+=" "+className; } ); i4z(I2d,l4z.i4x, function (){I2d.className=I2d.className.replace(new RegExp("\\s+"+className,"g"),""); } ); }function i4z(I2d,type,I4z){I2d.attachEvent(type,I4z); o4x[o4x.length]= {I2d:I2d,type:type,I4z:I4z } ; }function o4y(){for (var t,i=0; i<o4x.length; i++){t=o4x[i]; t.I2d.detachEvent(t.type,t.I4z); }}function o4z(rule){var o50,O50=[I4x]; o50=rule.split(" "); for (var i=0; i<o50.length; i++){O50=l50(o50[i],O50); }return O50; }function l50(select,elements){var l1u,I2d,O50=[]; var i50=(/#([a-z0-9_-]+)/i).exec(select); if (i50)return [Iw.getElementById(i50[1])]; var I50=(/\.([a-z0-9_-]+)/i).exec(select); var tagName=select.replace(/(\.|#|:)[a-z0-9_-]+/i,""); var o51=I50?new RegExp("\\b"+I50[1]+"\\b"): false; for (var i=0; i<elements.length; i++){l1u=tagName?elements[i].all.tags(tagName):elements[i].all; for (var ig=0; ig<l1u.length; ig++){I2d=l1u[ig]; if (o51 && !o51.test(I2d.className))continue; O50[O50.length]=I2d; }}return O50; }parseStylesheets(); };HTMLEditor.prototype.parseInt=parseInt; HTMLEditor.prototype.isNaN=isNaN; HTMLEditor.prototype.Object=Object; HTMLEditor.prototype.Math=Math; HTMLEditor.O51= function (s){return new String(s+"rnd="+Math.random()).replace(".",""); };function l28(l51){ this.l51=(typeof l51!="undefined" && l51); this.text=[]; this.write= function (Oh){if (!this.l51 || (this.text.length==0 && Oh!="\n") || (this.text.length>0 && (this.text[this.text.length-1]!="\n" || Oh!="\n")))this.text[this.text.length]=Oh; };this.writeln= function (Oh){ this.text[this.text.length]=Oh+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}HTMLEditor.prototype.i51= function (X,I51,o1v,o52,O52,l52,i52){ this.X=X; this.O52=O52; this.l52=l52; this.enableEvents= function (){} ; this.disableEvents= function (){} ; if (!X.i1){X.i1=[]; HTMLEditor.i1=X.i1; }if (X.i1.length>0)X.i1[X.i1.length-1].disableEvents(); X.i1.push(this ); this.number=X.i1.length; X.o10=null; if (HTMLEditor.is_ie && (X.oq().type=="Text" || X.oq().type=="None"))try {X.o10=X.lq(X.oq()).duplicate(); }catch (t){}if (HTMLEditor.is_Safari){var I52=X.oq(); var o53=X.lq(I52); X.o10=o53.cloneRange(); } this.iframe=this.openPopup(I51,o1v,o52,l52,i52); };HTMLEditor.prototype.i51.prototype.middle= function (){var O53=this ; var X=this.X; var popup=this.iframe; var l53; var i8=parseInt(popup.clientWidth); var I8=parseInt(popup.clientHeight); if (i8==0)i8=parseInt(popup.offsetWidth); if (I8==0)I8=parseInt(popup.offsetHeight); var i2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; var i53=I2q/2-I8/2+I53(X.I0.document); if (i53<=0)i53=024; popup.style.top=i53+"px"; popup.style.left=i2q/2-i8/2+_GetScrollLeft(X.I0.document)+"px"; };HTMLEditor.prototype.clearPopups= function (o54){var X=this ; var oe= false; while (X.i1!=null && X.i1.length>0){var O54=X.i1[X.i1.length-1]; if (typeof o54!="undefined"){if (typeof O54.O52=="function")O54.O52(); O54.l54(null);}else O54.i54(); oe= true; }function I54(){if (X.o55 && X.o55.length>0)while (X.o55.length>0){var ik=X.o55.pop(); var popup=ik[1]; popup.parentNode.removeChild(popup); }}if (typeof o54=="undefined")setTimeout(I54,oe?01750: 0); else I54(); HTMLEditor.l1d=null; if (O55!=null){O55.parentNode.removeChild(O55); O55=null; }if (l55!=null){l55.parentNode.removeChild(l55); l55=null; }return oe; };HTMLEditor.prototype.i51.prototype.openPopup= function (I51,o1v,o52,l52,i52){var O53=this ; var X=this.X; var popup; function i55(event){if (X.i1)if (O53.number==X.i1.length){if (O53.iframe.contentWindow.document.body.childNodes.item(0).childNodes.length>1)if (!O53.iframe.contentWindow.document.getElementById("closePopup").disabled){O53.l54(O53.O52); }}if (event)HTMLEditor._stopEvent(event); return false; } ; var I55; if (HTMLEditor.is_Safari)I55=o1v+"_safari"; else I55=o1v; if (!X.o55)X.o55=[]; if (typeof l52=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.ij)){for (var i=0; i<X.o55.length; i++){if (X.o55[i][0]==I55){var Iw; popup=X.o55[i][1]; popup.style.display=""; popup.style.zIndex=""+(045070+X.i1.length)+""; Iw=popup.contentWindow.document; Iw.getElementById("title").innerHTML=I51; HTMLEditor.Ok(Iw.getElementById("closePopup"),"click",i55); O53.i54=i55; try {l52(popup); }catch (t){alert("Exception in open Popup("+I51+"): "+t.message); } ; return popup; }}}popup=X.A.ownerDocument.createElement("iframe"); if (typeof l52=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.ij)){X.o55.push([I55,popup]); }if (HTMLEditor.is_ie)popup.src="javascript:false;"; popup.style.visibility="hidden"; if (HTMLEditor.is_Safari)popup.className=I55; else popup.className=I55; popup.style.borderColor="white black black white"; popup.style.borderWidth="1px"; popup.style.borderStyle="solid"; popup.style.zIndex=""+(045070+X.i1.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.ij)popup.name=X._hiddenContent+"_popup_"+I55; var l53; var i8=0144; var I8=0144; var o56=X.A; var ik=X._textArea.parentNode.parentNode; if (!X._InsideOboutWindow)while (ik!=X.A){if (HTMLEditor.ly(ik,"position").toLowerCase()=="absolute"){o56=X._textArea.parentNode.parentNode; break; }ik=ik.parentNode; }var o2r=HTMLEditor.O2r(o56, false); var O1x=o2r.O1x,_top=o2r._top; var i2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; var O56=I2q/2-I8/2+I53(X.I0.document); var l56=i2q/2-i8/2+_GetScrollLeft(X.I0.document); popup.style.top=(O56-_top)+"px"; popup.style.left=(l56-O1x)+"px"; o56.appendChild(popup); function l2a(){var Iw=popup.contentWindow.document; if (!Iw){if (!HTMLEditor.is_ie){window.setTimeout(l2a,012); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var l53; var i8=parseInt(popup.clientWidth); var I8=parseInt(popup.clientHeight); if (i8==0)i8=parseInt(popup.offsetWidth); if (I8==0)I8=parseInt(popup.offsetHeight); var i2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; var O56=I2q/2-I8/2+I53(X.I0.document); var l56=i2q/2-i8/2+_GetScrollLeft(X.I0.document); popup.style.top=(O56-_top)+"px"; popup.style.left=(l56-O1x)+"px"; Iw.open(); var html=new l28(); html.write("<html style='height:100%'>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.Q[014]))?X.O7: "")+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.O7+"\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); Iw.write(html.toString()); Iw.close(); popup.style.visibility="visible"; function lw(){var i56; var I56; var o57; var O57; try {i56=Iw.getElementById("header"); I56=Iw.getElementById("closePopup"); o57=Iw.getElementById("title"); O57=Iw.getElementById("mainFrame"); i56.className="header"; O57.className="frame"; o57.innerHTML=I51; HTMLEditor.Ok(I56,"click",i55); O53.i54=i55; HTMLEditor.Ok(i56,"mousedown", function (event){if (event.srcElement && event.srcElement.tagName.toUpperCase()=="IMG")return false; var oe=O53.l57(HTMLEditor.is_ie?popup.contentWindow.event:event); return oe; } ); if (HTMLEditor.is_Safari){Iw.body.addEventListener("mouseup",i57, false); }function I57(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){Iw.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {Iw.onmousedown=I57; }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 o52=="function"){try {o52(popup); }catch (t){alert("Exception in open Popup("+I51+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var o58=Iw.getElementsByTagName("input"); for (var i=0; i<o58.length; i++){o58[i].setAttribute("autocomplete","off"); }}}catch (t){try {HTMLEditor.lc(I56,"click",i55); }catch (t){}setTimeout(lw,012); return false; }}setTimeout(lw,012); } ; setTimeout(l2a,024); return popup; } ; HTMLEditor.prototype.i51.prototype.l54= function (O52){var popup=this ; var X=this.X; var _iframe=this.iframe; var l1w=this.l1w; function O58(I2b,O1o){var ok; try {ok=I2b.removeChild(O1o); delete ok; }catch (t){}}if (X.i1==null)return false; var l58=X.i1.pop(); if (X.i1.length>0)X.i1[X.i1.length-1].enableEvents(); setTimeout( function (){if (X.i1!=null)if (X.i1.length==0){X.i1=null; HTMLEditor.i1=null; ; X.popupClosed(); if (X.o10){if (HTMLEditor.is_Safari){X.I16(X.oq(),X.o10); X.o10=null; }if (HTMLEditor.is_ie){try {X.o10.select(); }catch (t){}}X.o10=null; }try {X.focusEditor(); }catch (t){}}if (typeof O52=="function"){try {O52(); }catch (t){} ; }try {HTMLEditor.lc(_iframe.contentWindow.document.getElementById("closePopup"),"click",popup.i54); _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.l52!="function" || (HTMLEditor.is_Safari && !HTMLEditor.ij)){O58(_iframe.parentNode,_iframe); delete popup; }}catch (t){}} ,012); return false; };var i58=null; var l55=null,O55=null; var I58=0; var o59=0; function O59(){if (document.all && document.body.attachEvent){if (document.body.setCapture)document.body.setCapture(); document.body.attachEvent("onmousemove",l59); document.body.attachEvent("onmouseup",i57); }else if (document.addEventListener){document.addEventListener("mousemove",l59, false); document.addEventListener("mouseup",i57, false); }i59(i58); }function i57(){if (document.all && document.body.detachEvent){document.body.detachEvent("onmousemove",l59); document.body.detachEvent("onmouseup",i57); if (document.body.releaseCapture)document.body.releaseCapture(); }else if (document.removeEventListener){document.removeEventListener("mousemove",l59, false); document.removeEventListener("mouseup",i57, false); }I59(i58); i58=null; }function l59(t){try {o5a(t); HTMLEditor._stopEvent(t); I58=t.clientX; o59=t.clientY; }catch (w){i57(); }return false; }function i59(O5a){if (O55!=null && O5a.iframe.parentNode!=O55.parentNode){O55.parentNode.removeChild(O55); O55=null; }if (l55!=null && O5a.iframe.parentNode!=l55.parentNode){l55.parentNode.removeChild(l55); l55=null; }if (O55==null){O55=document.createElement("div"); O55.style.display=""; O55.style.position="absolute";O55.style.margin="0px";O55.style.padding="0px";O55.style.top="0px"; O55.style.left="0px"; var l53=parseInt(document.body.clientHeight); if (l53<=0)l53=document.body.offsetHeight; O55.style.height=l53+"px"; l53=parseInt(document.body.clientWidth); if (l53<=0)l53=document.body.offsetWidth; O55.style.width=l53+"px"; O55.style.zIndex="20000"; O5a.iframe.parentNode.appendChild(O55); }if (l55==null){l55=document.createElement("SPAN"); l55.className="MoveSpan"; l55.style.position="absolute"; l55.style.zIndex=0141520; O5a.iframe.parentNode.appendChild(l55); }l55.style.visibility="visible"; O55.style.visibility="visible"; var l5a=parseInt(O5a.iframe.style.borderTopWidth)*2; l55.style.top=O5a.iframe.style.top; l55.style.left=O5a.iframe.style.left; var i8=O5a.iframe.clientWidth; var I8=O5a.iframe.clientHeight; if (i8==0)i8=O5a.iframe.offsetWidth; if (I8==0)I8=O5a.iframe.offsetHeight; l55.style.width=parseInt(i8)+((HTMLEditor.is_ie)?(parseInt(l5a)): (0-parseInt(l5a)))+"px"; l55.style.height=parseInt(I8)+((HTMLEditor.is_ie)?(parseInt(l5a)): (0-parseInt(l5a)))+"px"; l55.style.cursor="move"; O55.style.cursor="move"; }function I59(O5a){try {O5a.iframe.style.top=l55.style.top; O5a.iframe.style.left=l55.style.left; l55.style.visibility="hidden"; O55.style.visibility="hidden"; }catch (t){}}function o5a(t){var i5a=i58.I5a; var o5b=i58.O5b; var ik=l55; var left=0; var top=0; if (document.all){left=t.clientX*1+_GetScrollLeft(document)-i5a; top=t.clientY*1+I53(document)-o5b; }else {left=t.pageX*1-i5a; top=t.pageY*1-o5b; }if (left<0){left=0; }if (top<0){top=0; }ik.style.left=(left-i58.O1x)+"px"; ik.style.top=(top-i58._top)+"px"; if (HTMLEditor.is_Safari){i58.iframe.style.top=l55.style.top; i58.iframe.style.left=l55.style.left; }}HTMLEditor.prototype.i51.prototype.l57= function (t){if (!HTMLEditor.is_ie && t.target.tagName.toUpperCase()=="IMG" && t.target.id=="closePopup")return true; i58=this ; this.I5a=(t.offsetX==null)?t.layerX:t.offsetX; this.O5b=(t.offsetY==null)?t.layerY:t.offsetY; if (HTMLEditor.is_ie){var ik=t.srcElement; while (ik && ik.tagName.toUpperCase()!="BODY"){ this.I5a+=parseInt(ik.offsetLeft); this.O5b+=parseInt(ik.offsetTop); ik=ik.offsetParent; if (ik){if (ik.clientLeft)this.I5a+=parseInt(ik.clientLeft); if (ik.clientTop)this.O5b+=parseInt(ik.clientTop); }}var l5a=parseInt(this.iframe.style.borderWidth)*2; this.I5a+=l5a; this.O5b+=l5a; }I58=t.clientX; o59=t.clientY; var o2r=HTMLEditor.O2r(this.iframe.parentNode, false); this._top=o2r._top; this.O1x=o2r.O1x; HTMLEditor._stopEvent(t); O59(); return false; } ; HTMLEditor.O2r= function (o56,om){var position=HTMLEditor.l5b(o56); if (HTMLEditor.is_ie && !om){var borderTopWidth; var borderLeftWidth; if ((/MSIE (7)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat"){borderTopWidth=2; borderLeftWidth=2; }else {var i5b=(document.compatMode=="BackCompat")?document.body:document.documentElement; var top=HTMLEditor.ly(i5b,"border-top-width").toUpperCase(); borderTopWidth=parseInt(HTMLEditor.ly(i5b,"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.ly(i5b,"border-left-width").toUpperCase(); borderLeftWidth=parseInt(HTMLEditor.ly(i5b,"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 i5b.border!="undefined" && i5b.border!=null && !isNaN(parseInt(i5b.border)))borderLeftWidth=borderTopWidth=parseInt(i5b.border); }position.y-=borderTopWidth; position.x-=borderLeftWidth; }else if (HTMLEditor.i10){position.y--; position.x--; }return {_top:position.y,O1x:position.x } ; };HTMLEditor.getOffset= function (O1o){var position=HTMLEditor.O2r(O1o, false); return {y:position._top,x:position.O1x } ; };function I53(I5b){if (I5b.documentElement && I5b.documentElement.scrollTop){return I5b.documentElement.scrollTop; }else {return I5b.body.scrollTop; }}function obout_scrollElement(Oc){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)Oc.parentNode.insertBefore(anchor,Oc); else {var o5c=document.createElement("td"); o5c.style.width="0px"; o5c.style.height="20px"; Oc.parentNode.insertBefore(o5c,Oc); o5c.focus(); Oc.parentNode.removeChild(o5c); var i30=Oc.nextSibling; if (i30==null)Oc.parentNode.appendChild(anchor); else Oc.parentNode.insertBefore(anchor,i30); }anchor.focus(); if (!document.all)anchor.blur(); Oc.parentNode.removeChild(anchor); }catch (t){}}function _GetScrollDiffer(Oc,om){if (document.all && document.compatMode!="BackCompat")return true; do {Oc=Oc.parentNode; if (Oc.clientHeight>0 && Oc.scrollHeight && Oc.scrollHeight>0)if (Oc.scrollHeight>Oc.clientHeight){return true; }}while (Oc && Oc.tagName.toUpperCase()!="BODY");return false; }function _GetScrollLeft(I5b){if (I5b.documentElement && I5b.documentElement.scrollLeft){return I5b.documentElement.scrollLeft; }else {return I5b.body.scrollLeft; }}HTMLEditor.prototype._Mozilla= function (O5c){if (!HTMLEditor.is_ie && !O5c && HTMLEditor.l12(this.O1a()).length>0){var O36=this.l1.body.cloneNode( true); var Ip=this.oq(); var i1a=this.lq(Ip); this.i16(Ip); var ik=i1a.startContainer; var l5c=i1a.startOffset; var i5c=[]; while (ik.nodeType==3 || ik.tagName.toUpperCase()!="BODY"){var i36=0; while (ik.previousSibling){i36++; ik=ik.previousSibling; }i5c.push(i36); ik=ik.parentNode; }ik=i1a.endContainer; var I5c=i1a.endOffset; var o5d=[]; while (ik.nodeType==3 || ik.tagName.toUpperCase()!="BODY"){var i36=0; while (ik.previousSibling){i36++; ik=ik.previousSibling; }o5d.push(i36); ik=ik.parentNode; } this.l1.body.innerHTML=""; while (O36.firstChild){ this.l1.body.appendChild(O36.firstChild); }var O5d=this.l1.body; for (var i=i5c.length-1; i>=0; i--){O5d=O5d.childNodes.item(i5c[i]); }var l5d=this.l1.body; for (var i=o5d.length-1; i>=0; i--){l5d=l5d.childNodes.item(o5d[i]); }var X=this ; this.I0.setTimeout( function (){Ip=X.oq(); i1a=X.lq(); i1a.setStart(O5d,l5c); i1a.setEnd(l5d,I5c); X.I16(Ip,i1a); } ,012); }};HTMLEditor.l58= function (){ this.iframe=null; this.i5d=null; this.I5d=null; this.o5e=null; };HTMLEditor.prototype.openPopup= function (I51,o1v,o52,O52,i52){var X=this ; if (X.i1==null)if (HTMLEditor.is_Safari){var Ip=X.oq(); var Oq=X.lq(Ip); X.o10=Oq.cloneRange(); }if (HTMLEditor.is_ie && (X.oq().type=="Text" || X.oq().type=="None"))try {X.o10=X.lq(X.oq()).duplicate(); }catch (t){}function l28(){ this.text=[]; this.write= function (Oh){ this.text[this.text.length]=Oh; };this.writeln= function (Oh){ this.text[this.text.length]=Oh+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}var popup=X.I0.document.createElement("iframe"); popup.id=X._hiddenContent+"_ifr_popup_"+o1v; if (HTMLEditor.is_ie)popup.src="javascript:false;"; var l58=new HTMLEditor.l58(); l58.iframe=popup; l58.enableEvents= function (){} ; l58.disableEvents= function (){} ; if (!this.i1){ this.i1=[]; HTMLEditor.i1=this.i1; }if (this.i1.length>0)this.i1[X.i1.length-1].disableEvents(); this.i1.push(l58); l58.number=this.i1.length; l58.O52=O52; if (typeof i52=="undefined")popup.className=o1v+"_safari"; else popup.className=o1v; 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 l53; var i8=0144; var I8=0144; var i2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; popup.style.top=I2q/2-I8/2+X.A.scrollTop+"px"; popup.style.left=i2q/2-i8/2+X.A.scrollLeft+"px"; this.A.appendChild(popup); function i55(event){if (HTMLEditor.is_ie)event=popup.contentWindow.event; if (X.i1)if (l58.number==X.i1.length)if (event.type=="click")X.l54(l58.O52); HTMLEditor._stopEvent(event); return false; } ; function O5e(){popup=X.I0.document.getElementById(X._hiddenContent+"_ifr_popup_"+o1v); l58.Iw=popup.document; if (!l58.Iw){if (HTMLEditor.l27 || HTMLEditor.i10){X.I0.setTimeout(O5e,012); return false; }else {X.I0.alert("ERROR: IFRAME can't be initialized."); }}var l53; var i8=(typeof(popup.clientWidth)=="number")?(popup.clientWidth): (X.parseInt(popup.clientWidth)); var I8=(typeof(popup.clientHeight)=="number")?(popup.clientHeight): (X.parseInt(popup.clientHeight)); var i2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; popup.style.top=I2q/2-I8/2+X.A.scrollTop+"px"; popup.style.left=i2q/2-i8/2+X.A.scrollLeft+"px"; l58.Iw.open(); var html=new l28(); html.write("<html>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.Q[014]))?X.O7: "")+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.O7+"/\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); l58.Iw.write(html.toString()); l58.Iw.close(); function lw(){var i56; var I56; var o57; var O57; try {i56=l58.Iw.getElementById("header"); I56=l58.Iw.getElementById("closePopup"); o57=l58.Iw.getElementById("title"); O57=l58.Iw.getElementById("mainFrame"); i56.className="header"; O57.className="frame"; o57.innerHTML=I51; I56.onclick=i55; X.o17(); function l5e(Oj){if (Oj)if (Oj.type=="mousedown" && Oj.button!=2){l58.i5e=new X.Object; l58.i5e.top=X.parseInt(popup.style.top)+"px"; l58.i5e.left=X.parseInt(popup.style.left)+"px"; l58.i5e.clientY=Oj.clientY; l58.i5e.clientX=Oj.clientX; l58.I5e= true; if (HTMLEditor.is_ie){popup.unselectable="on"; for (var i=0; i<l58.Iw.all.length; i++)l58.Iw.all(i).unselectable="on"; }}else if (Oj.type=="mouseup" || Oj.type=="mouseout"){l58.I5e= false; delete l58.i5e; l58.i5e=null; if (HTMLEditor.is_ie){popup.unselectable="off"; for (var i=0; i<l58.Iw.all.length; i++)l58.Iw.all(i).unselectable="off"; }}else if (Oj.type=="mousemove"){if (l58.I5e){l58.i5e.top+=Oj.clientY-l58.i5e.clientY; l58.i5e.left+=Oj.clientX-l58.i5e.clientX; l58.iframe.style.top=l58.i5e.top+"px"; l58.iframe.style.left=l58.i5e.left+"px"; }}return true; }HTMLEditor.lv(i56,["mousedown","mouseup","mousemove","mouseout"], function (event){return l5e(HTMLEditor.is_ie?popup.contentWindow.event:event); } ); function I57(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){l58.Iw.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {l58.Iw.onmousedown=I57; }if (!HTMLEditor.is_ie){X.I0.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)-1+"px"; popup.style.left=X.parseInt(popup.style.left)-1+"px"; } ,2); X.I0.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 o52=="function"){try {o52(l58.iframe); }catch (t){X.I0.alert("Exception in open Popup("+I51+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var o58=l58.Iw.getElementsByTagName("input"); for (var i=0; i<o58.length; i++){o58[i].setAttribute("autocomplete","off"); o58[i].onfocus= function (){l58.o5e=this ; } ; }}}catch (t){try {HTMLEditor.lc(I56,"click",i55); }catch (t){}X.I0.setTimeout(lw,012); return false; }}X.I0.setTimeout(lw,012); } ; X.I0.setTimeout(O5e,024); return l58.iframe; } ; HTMLEditor.prototype.l54= function (O52){var X=this ; function O58(I2b,O1o){var ok; try {ok=I2b.removeChild(O1o); delete ok; }catch (t){}}if (X.i1){var l58=X.i1.pop(); if (X.i1.length>0)X.i1[X.i1.length-1].enableEvents(); if (HTMLEditor.is_Safari){X.I0.setTimeout( function (){if (X.i1==null || X.i1.length==0)if (HTMLEditor.is_Safari)if (X.o10){X.I16(X.oq(),X.o10); X.o10=null; }if (typeof O52=="function"){try {O52(); }catch (t){} ; }if (l58.o5e){l58.o5e.blur(); }var Ip=X.oq(); var Oq=X.lq(Ip); X.I16(Ip,Oq); X.focusEditor(); X.focusEditor(); O58(X.A,l58.iframe); X.I0.setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); X.I16(Ip,Oq); X.focusEditor(); X.focusEditor(); } ,012); } ,012); }else {if (typeof O52=="function"){try {O52(); }catch (t){} ; }O58(X.A,l58.iframe); }if (X.i1.length==0){X.i1=null; HTMLEditor.i1=null; X.popupClosed(); if (HTMLEditor.is_ie)if (X.o10){try {X.o10.select(); }catch (t){} ; }try {X.focusEditor(); }catch (t){}}}return false; };HTMLEditor.prototype._setClassName= function (name){try {if (this.o1 && this.mode()=="html" && !this.isPopup()){var o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(this.O1a()): ""; var Ip=this.oq(); var Oq=this.lq(Ip); var i1a=null; var o5f= false; if (this.Iq())return; if ((HTMLEditor.is_ie && Oq.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0)){i1a=this.I1a(); }else if (!HTMLEditor.is_Safari){i1a=this.i3v(); o5f= true; }if (i1a!=null && i1a.length>0){var O5f= false; this.O10(); for (var i=0; i<i1a.length; i++){var par=i1a[i].parentNode; var I40= false; try {while (par && par.childNodes.length==1 && HTMLEditor.O1i(par.tagName)){var Ik=par.tagName.toUpperCase(); var l5f=par.style?par.style.cssText: ""; var i5f=HTMLEditor.O3b(par,["class"]); if (Ik=="SPAN" && par.className!=HTMLEditor.il && i5f.length==0 && (par.className.length>0 || name.length>0)){O5f= true; par.className=name; if (name==""){par.removeAttribute("class"); if (l5f.length==0){var parent=par.parentNode; while (par.firstChild)parent.insertBefore(par.firstChild,par); parent.removeChild(par); }}I40= true; break; }par=par.parentNode; }}catch (t){ this.I0.alert(""+i+" "+i1a.length+" : "+t.message); }par=i1a[i].parentNode; if (!I40){if (name !== ""){O5f= true; var ok=this.l1.createElement("SPAN"); ok.className=name; par.insertBefore(ok,i1a[i]); ok.appendChild(i1a[i]); }}}if (o5f){if (HTMLEditor.is_ie && this.I3v!=null){var Ip=this.oq(); var Oq=this.lq(Ip); Oq.moveToBookmark(this.I3v); Oq.select(); this.I3v=null; }else if (this.I3v!=null){if (this.I3v[0].nodeType==3){var Ip=this.oq(); var Oq=this.l1.createRange(); Oq.setStart(this.I3v[0],this.I3v[1]); Oq.setEnd(this.I3v[0],this.I3v[1]); this.i16(Ip); this.I16(Ip,Oq); }else { this.o3w(this.I3v[0],this.I3v[0]); this.I3v[0].parentNode.removeChild(this.I3v[0]); } this.I3v=null; }}else {if (!HTMLEditor.is_ie){if (i1a.length>0){Oq=this.l1.createRange(); Oq.setStart(i1a[0],0); Oq.setEnd(i1a[i1a.length-1],(""+i1a[i1a.length-1].data+"").length); this.i16(Ip); this.I16(Ip,Oq); }}else {var Ip=this.oq(); var O3k=this.lq(Ip); var l3k=this.lq(Ip); var I47=this.l1.createElement("span"); var o48=this.l1.createElement("span"); i1a[0].parentNode.insertBefore(I47,i1a[0]); if (i1a[i1a.length-1].nextSibling)i1a[i1a.length-1].parentNode.insertBefore(o48,i1a[i1a.length-1].nextSibling); else i1a[i1a.length-1].parentNode.appendChild(o48); try {O3k.moveToElementText(I47); l3k.moveToElementText(o48); O3k.setEndPoint("EndToEnd",l3k); O3k.select(); }catch (t){}i1a[0].parentNode.removeChild(I47); i1a[i1a.length-1].parentNode.removeChild(o48); }}var X=this ; this.I0.setTimeout( function (){X.updateToolbar(); } ,5); if (!O5f){return false; }return true; }else {var parent=this.iq(Oq); if (HTMLEditor.i10)this.f= true; if (parent.nodeType==3){parent=parent.parentNode; }var l4s=parent.style?parent.style.cssText: ""; var i2x=HTMLEditor.O3b(parent,["class"]); if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.il && i2x.length==0){ this.O10(); parent.className=name; if (name==""){parent.removeAttribute("class"); if (l4s.length==0){var par=parent.parentNode; var I5f=null; var I36=0; var o5g,O5g; if (!HTMLEditor.is_ie){Ip=this.oq(); Oq=this.lq(Ip); I5f=Oq.startContainer; I36=Oq.startOffset; }else {o5g=Oq.offsetLeft; O5g=Oq.offsetTop; }while (parent.firstChild)par.insertBefore(parent.firstChild,parent); par.removeChild(parent); if (!HTMLEditor.is_ie){var Oq=this.lq(); Oq.setStart(I5f,I36); Oq.setEnd(I5f,I36); this.i16(Ip); this.I16(Ip,Oq); }else {if (Ip.type.toLowerCase()!="control"){try {Oq.moveToPoint(o5g,O5g); }catch (t){}}Oq.select(); }}}var X=this ; this.I0.setTimeout( function (){X.updateToolbar(); } ,5); return true; }else if (HTMLEditor.i10)this.focusEditor(); }}return false; }catch (t){ this.I0.alert("setClass func: "+t.message); }};HTMLEditor.prototype.l44= function (O1o){if (this.relativeImages){var images=O1o.getElementsByTagName("IMG"); for (var i=0; i<images.length; i++){var l5g=images[i]; if (l5g.src.indexOf("http://")>=0){var I24=l5g.src; l5g.src="qwerty.gif"; var i36=l5g.src.indexOf("qwerty.gif"); if (I24.substr(0,i36)==l5g.src.substr(0,i36))I24=I24.substr(i36,I24.length-i36); l5g.src=I24; }}}};HTMLEditor.prototype._paste= function (om,I34){var X=this ; var Ip=this.oq(); var Oq=this.lq(Ip); var O1x; var _top; if (!om){O1x=Oq.offsetLeft; _top=Oq.offsetTop; this.o11(this.O34()); X.l13(); return; }if (this._NoPaste)return; O1x=Oq.offsetLeft; _top=Oq.offsetTop; var ok=this.l1.createElement("span"); var i1w; var i5g=this.i34("", false ,I34); if ((/<[\/]*p[\s>]+/i.test(i5g)) || (/<[\/]*h/i.test(i5g))){i1w=this.I1w(); }else {i1w=this.l1.createElement("SPAN"); i1w.id=HTMLEditor.il; if (!this.o11(HTMLEditor.getHTML(i1w, true)))return; i1w=this.l1.getElementById(HTMLEditor.il); i1w.id=null; i1w.removeAttribute("id"); i1w.setAttribute("para","no"); }ok.innerHTML=i5g; if (!i1w){return; } this.l44(ok); var par=i1w.parentNode; var I4n=i1w.getAttribute("para"); if (I4n!="no"){if (I4n.indexOf("left")>=0 && ok.firstChild){if (ok.firstChild.tagName && ok.firstChild.tagName.toUpperCase()=="P"){while (ok.firstChild.firstChild)i1w.previousSibling.appendChild(ok.firstChild.firstChild); ok.removeChild(ok.firstChild); }}if (I4n.indexOf("right")>=0 && ok.lastChild){if (ok.lastChild.tagName && ok.lastChild.tagName.toUpperCase()=="P"){while (ok.lastChild.lastChild)i1w.nextSibling.insertBefore(ok.lastChild.lastChild,i1w.nextSibling.firstChild); ok.removeChild(ok.lastChild); }}}var I5g=i1w; var o5h=null; if (ok.childNodes.length==0 && I4n.indexOf("left")>=0 && I4n.indexOf("right")>=0){if (i1w.nextSibling.firstChild){o5h=this.l1.createElement("span"); I5g=o5h; o5h.innerHTML="111"; i1w.previousSibling.appendChild(o5h); }while (i1w.nextSibling.firstChild)i1w.previousSibling.appendChild(i1w.nextSibling.firstChild); par.removeChild(i1w.nextSibling); }else {while (ok.firstChild)par.insertBefore(ok.firstChild,i1w); }setTimeout( function (){var Ip=X.oq(); var Oq=X.lq(Ip); if (Ip.type.toLowerCase()=="control"){while (Oq.length>0)Oq.remove(0); }try {Oq.collapse( false); }catch (t){}X.focusEditor(); HTMLEditor.l1n(I5g,X); if (o5h)o5h.parentNode.removeChild(o5h); par.removeChild(i1w); HTMLEditor.I12(X.l1.body); X.l13(); Oq.select(); } ,0144); };HTMLEditor.O2z= function (l30,X,O5h){for (var i=0; i<l30.childNodes.length; i++){var O35=l30.childNodes.item(i); if (O35.nodeType==1){var Ot=null; if (O5h)for (var ig=0; ig<HTMLEditor.i4v.length; ig++){if (HTMLEditor.i4v[ig][0].toLowerCase()==O35.tagName.toLowerCase()){Ot=HTMLEditor.i4v[ig]; break; }}if (Ot){var span=X.l1.createElement("SPAN"); span.style["cssText"]=O35.style["cssText"]; if (HTMLEditor.is_ie)span.style[Ot[1]]=Ot[2]; else span.style[Ot[3]]=Ot[2]; while (O35.firstChild){span.appendChild(O35.firstChild); }l30.insertBefore(span,O35); l30.removeChild(O35); O35=span; }else if (O35.tagName.toLowerCase()=="font"){var span=X.l1.createElement("SPAN"); var save=O35.size; span.style["cssText"]=O35.style["cssText"]; if (O35.color)span.style.color=O35.color; if (O35.face)span.style.fontFamily=O35.face; while (O35.firstChild){span.appendChild(O35.firstChild); }l30.insertBefore(span,O35); l30.removeChild(O35); if (save){var font=X.l1.createElement("FONT"); font.size=save; l30.insertBefore(font,span); if (span.style["cssText"].length>0){font.appendChild(span); O35=span; }else {while (span.firstChild){font.appendChild(span.firstChild); }l30.removeChild(span); O35=font; }}else O35=span; }HTMLEditor.O2z(O35,X,O5h); }}};HTMLEditor.restoreOldTags= function (l30,Iw,X){for (var i=0; i<l30.childNodes.length; i++){var O35=l30.childNodes.item(i); if (O35.nodeType==1){if (O35.tagName.toUpperCase()=="BR"){if (O35.style && O35.style.cssText && O35.style.cssText.length>0){O35.style.cssText=""; O35.removeAttribute("style"); }continue; }if (!HTMLEditor.l2f(O35) && O35.tagName.toUpperCase()!="IMG"){var l4s=HTMLEditor.i4s(O35); var l5h=l30; var i5h=HTMLEditor.l2f(O35); for (var o2b=0; o2b<l4s.length; o2b++){var I5h=null; if (l4s[o2b][0].toLowerCase()=="color" && l4s[o2b][1])I5h=["color",l4s[o2b][1]];if (l4s[o2b][0].toLowerCase()=="backgroundcolor" && l4s[o2b][1])I5h=["backgroundColor",l4s[o2b][1]];if (l4s[o2b][0].toLowerCase()=="fontfamily" && l4s[o2b][1])I5h=["face",l4s[o2b][1]];var i36=HTMLEditor.i4v.length; if (I5h)i36=1; for (var ig=0; ig<i36; ig++){if (HTMLEditor.i4v[ig][3].toLowerCase()==l4s[o2b][0].toLowerCase() && HTMLEditor.i4v[ig][2].toLowerCase()==l4s[o2b][1].toLowerCase() || I5h){if (i5h){if (I5h){HTMLEditor.o5i(O35,I5h[0],I5h[1],Iw); O35.style[I5h[0]]=""; }else if (l4s[o2b][1]){HTMLEditor.o5i(O35,l4s[o2b][0],l4s[o2b][1],Iw); O35.style[l4s[o2b][0]]=""; }}else {var tagName=(I5h)?"FONT":HTMLEditor.i4v[ig][0].toUpperCase(); var O5i=Iw.createElement(tagName); if (I5h){if (I5h[0]=="color")O5i.color=I5h[1]; else if (I5h[0]=="face")O5i.face=I5h[1]; else O5i.style.cssText="background-color: "+I5h[1]; }l5h.insertBefore(O5i,O35); O5i.appendChild(O35); O35.style.cssText=""; l4s[o2b][1]=null; for (var l5i=0; l5i<l4s.length; l5i++)if (l4s[l5i][1] && l4s[l5i][0].toLowerCase()!="textdecorationlinethrough" && l4s[l5i][0].toLowerCase()!="textdecorationunderline")O35.style[l4s[l5i][0]]=l4s[l5i][1]; if (O35.tagName.toLowerCase()=="span" && O35.style.cssText=="" && HTMLEditor.I4t(O35, false)==0){while (O35.firstChild){O5i.appendChild(O35.firstChild); }O5i.removeChild(O35); O35=O5i; }l5h=O5i; ig=i36; }}}}}HTMLEditor.restoreOldTags(O35,Iw,X); }else if (O35.nodeType==8){}}};HTMLEditor.o5i= function (l30,style,value,Iw){if (l30.childNodes.length==0){var O5i=Iw.createElement("SPAN"); l30.appendChild(O5i); O5i.style[style]=value; }else for (var i=0; i<l30.childNodes.length; i++){var O35=l30.childNodes.item(i); if (O35.nodeType==1){if (!O35.style[style])O35.style[style]=value; }else if (O35.nodeType==3){var O5i=Iw.createElement("SPAN"); l30.insertBefore(O5i,O35); O5i.appendChild(O35); O5i.style[style]=value; }}};function ly(i5i,I5i){var o5j=""; if (i5i.nodeType==1)if (i5i.ownerDocument.defaultView && i5i.ownerDocument.defaultView.getComputedStyle)o5j=i5i.ownerDocument.defaultView.getComputedStyle(i5i,"").getPropertyValue(I5i); else if (i5i.currentStyle){try {I5i=I5i.replace(/-(\w)/g, function (o3y,i20){return i20.toUpperCase(); } ); o5j=i5i.currentStyle[I5i]; }catch (w){}}return o5j; }HTMLEditor.ly=ly; HTMLEditor.O5j= function (l5j){function i5j(){var I8=l5j.offsetHeight; var i8=l5j.offsetWidth; if (!document.all){I8-=6; i8-=2; }if (I8>parseInt(l5j.style.height) || i8>parseInt(l5j.style.width))return false; return true; }var I5j=l5j.innerHTML; var i=0; while (!i5j()){i++; l5j.innerHTML=I5j.substr(0,I5j.length-i-1)+"..."; }};HTMLEditor.o5k= function (event){HTMLEditor._stopEvent(event); return false; };HTMLEditor.O5k= function (X,l5k){if (l5k.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.Ok(l5k,"dragstart",HTMLEditor.o5k); else HTMLEditor.Ok(l5k,"draggesture",HTMLEditor.o5k); var i21,cell,i5k,div; var Iw=X.getDocument(); var I5k=Iw.createElement("TABLE"); if (l5k.tagName && l5k.tagName.toUpperCase()=="IMG"){I5k.style.display="inline"; }I5k.border="0"; I5k.cellSpacing="0"; I5k.cellPadding="0"; I5k.style.borderWidth="0px"; I5k.setAttribute(X.noContextMenuAttributeName(),"yes"); i21=I5k.insertRow(I5k.rows.length); i5k=i21.insertCell(i21.cells.length); i5k.style.fontSize="0px"; i5k.style.fontFamily="verdana"; i5k.style.padding="0px"; i5k.style.margin="0px"; i5k.style.borderWidth="0px"; i5k.setAttribute(X.noContextMenuAttributeName(),"yes"); cell=i21.insertCell(i21.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.O7+"/pagebgright.jpg)"; cell.style.backgroundRepeat="repeat-y"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=Iw.createElement("DIV"); div.style.width="10px"; div.style.height="10px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.O7+"/pagebgtopright.jpg)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); i21=I5k.insertRow(I5k.rows.length); cell=i21.insertCell(i21.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.O7+"/pagebgbottomwhite.gif)"; cell.style.backgroundRepeat="repeat-x"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=Iw.createElement("DIV"); div.style.width="10px"; div.style.height="8px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.O7+"/pagebgbottomleftwhite.gif)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); cell=i21.insertCell(i21.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.O7+"/pagebgbottomright.gif)"; cell.style.backgroundRepeat="no-repeat"; cell.style.borderWidth="0px"; cell.innerHTML="&nbsp;"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); if (l5k.tagName && l5k.tagName.toUpperCase()!="IMG"){var i1w=X.I1w(l5k); if (i1w){var parent=i1w.parentNode; parent.insertBefore(l5k,i1w); parent.removeChild(i1w); }}l5k.parentNode.insertBefore(I5k,l5k); i5k.appendChild(l5k); l5k.setAttribute(X.attachedIdAttributeName(),"yes"); };HTMLEditor.o5l= function (X,l5k){if (l5k.getAttribute(X.attachedIdAttributeName()) && l5k.getAttribute(X.attachedIdAttributeName()).length>0)return true; else return false; };HTMLEditor.O5l= function (X,l5k){if (l5k.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.lc(l5k,"dragstart",HTMLEditor.o5k); else HTMLEditor.lc(l5k,"draggesture",HTMLEditor.o5k); var o4f=X.ot(l5k); if (o4f!=null){o4f.parentNode.insertBefore(l5k,o4f); o4f.parentNode.removeChild(o4f); l5k.removeAttribute(X.attachedIdAttributeName()); }};HTMLEditor.prototype.l5l= function (){var i5l=[]; var I5l=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>"()$%#*@&\-+=\/\\|><]/; var o5m=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>()$%#*@&\-+=\/\\|><]/; if (this.o1 && this.mode()=="html" && !this.isPopup()){var o1a=(!HTMLEditor.is_ie)?HTMLEditor.l12(this.O1a()): ""; var Ip=this.oq(); var Oq=this.lq(Ip); var i1a; if (!this.Iq() && ((HTMLEditor.is_ie && Oq.text.length>0) || (!HTMLEditor.is_ie && o1a.length>0)))i1a=this.I1a(); else i1a=this.I1a( true); for (var i=0; i<i1a.length; i++){var par=i1a[i].parentNode; var O5m=-1; var l5m=-1; var i5m=""+i1a[i].data+""; var I5m=i5m.length; var o5n=""; var O5n= false; for (var ig=0; ig<I5m; ig++){var l5n=i5m.substr(ig,1); if (l5n.charCodeAt(0)>=02620 && l5n.charCodeAt(0)<=02777)O5n= true; l5m=((O5n?o5m:I5l).test(l5n) || (l5n.charCodeAt(0)&0170000)==020000)?0: 1; if (l5m!=O5m){if (O5m>=0){var i5n=this.l1.createTextNode(o5n); par.insertBefore(i5n,i1a[i]); if (isNaN(parseInt(o5n,012)) && O5m==1){i5l.push( {I5n: -1,o5o: (""+i5n.data+""),ref:i5n,O5f: false } ); }}o5n=""; O5m=l5m; }o5n+=l5n; }if (O5m>=0 && o5n.length>0){i1a[i].data=o5n; if (isNaN(parseInt(o5n,012)) && O5m==1)i5l.push( {I5n: -1,o5o: (""+i1a[i].data+""),ref:i1a[i],O5f: false } ); }}Ip=this.oq(); if (i1a.length>0){if (!HTMLEditor.is_ie){Oq=this.l1.createRange(); Oq.setStart(i1a[i1a.length-1],(""+i1a[i1a.length-1].data+"").length); Oq.setEnd(i1a[i1a.length-1],(""+i1a[i1a.length-1].data+"").length); this.i16(Ip); this.I16(Ip,Oq); }else {var O3k=this.lq(Ip); var I47=this.l1.createElement("span"); if (i1a[i1a.length-1].nextSibling)i1a[i1a.length-1].parentNode.insertBefore(I47,i1a[i1a.length-1].nextSibling); else i1a[i1a.length-1].parentNode.appendChild(I47); try {O3k.moveToElementText(I47); O3k.setEndPoint("EndToStart",O3k); O3k.select(); }catch (t){}i1a[i1a.length-1].parentNode.removeChild(I47); }}}return i5l; };HTMLEditor.prototype.i1u= function (Oo){var X=this ; X.openWait(); setTimeout( function (){Oo(X.l5l()); } ,0); };HTMLEditor.prototype.l1i= function (i1a){var Ip=this.oq(); if (!HTMLEditor.is_ie){var Oq=this.l1.createRange(); Oq.setStart(i1a[0],0); Oq.setEnd(i1a[i1a.length-1],(""+i1a[i1a.length-1].data+"").length); this.i16(Ip); this.I16(Ip,Oq); }else {var O3k=this.lq(Ip); var l3k=this.lq(Ip); var I47=this.l1.createElement("span"); var o48=this.l1.createElement("span"); i1a[0].parentNode.insertBefore(I47,i1a[0]); if (i1a[i1a.length-1].nextSibling)i1a[i1a.length-1].parentNode.insertBefore(o48,i1a[i1a.length-1].nextSibling); else i1a[i1a.length-1].parentNode.appendChild(o48); try {O3k.moveToElementText(I47); var O5o=O3k.moveStart("character",1); O3k.moveStart("character",-O5o); l3k.moveToElementText(o48); O5o=l3k.moveEnd("character",-1); l3k.moveEnd("character",-O5o); O3k.setEndPoint("EndToEnd",l3k); O3k.select(); }catch (t){}i1a[0].parentNode.removeChild(I47); i1a[i1a.length-1].parentNode.removeChild(o48); }};HTMLEditor.prototype.l5o= function (o4c){var i1a=this.I1a(); var X=this ; var o5f= false; if (i1a.length==0)if (!HTMLEditor.is_Safari){i1a=this.i3v( true); o5f= true; }if (i1a!=null && i1a.length>0){ this.O10(); for (var i=0; i<i1a.length; i++){if (o4c)i1a[i].data=(""+i1a[i].data+"").toUpperCase(); else i1a[i].data=(""+i1a[i].data+"").toLowerCase(); }if (o5f){if (HTMLEditor.is_ie && this.I3v!=null){var Ip=this.oq(); var Oq=this.lq(Ip); Oq.moveToElementText(this.I3v); Oq.select(); this.I3v.parentNode.removeChild(this.I3v); this.I3v=null; }else if (this.I3v!=null){if (this.I3v[0].nodeType==3){var Ip=this.oq(); var Oq=this.l1.createRange(); Oq.setStart(this.I3v[0],this.I3v[1]); Oq.setEnd(this.I3v[0],this.I3v[1]); this.i16(Ip); this.I16(Ip,Oq); }else { this.o3w(this.I3v[0],this.I3v[0]); this.I3v[0].parentNode.removeChild(this.I3v[0]); } this.I3v=null; }}else this.l1i(i1a); this.I0.setTimeout( function (){X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); }};HTMLEditor.prototype.toUpperCase= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (this.Iq())return; this.l5o( true); };HTMLEditor.prototype.toLowerCase= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (this.Iq())return; this.l5o( false); };HTMLEditor.o36= function (ik){var l1m=ik.all; var O11=[]; var I3o=[];for (var i=0; i<l1m.length; i++){var a=l1m[i]; if (a.name && a.name.length>0){var Ik=a.tagName; var i5o=ik.getElementsByTagName(Ik); var i36=0; for (var ig=0; ig<i5o.length; ig++){if (i5o[ig]==a){i36=ig; break; }}I3o[Ik]=i36; O11.push([Ik,I3o[Ik],a.name]); }}return O11; };HTMLEditor.O38= function (ik,O11){for (var i=0; i<O11.length; i++){if (ik.getElementsByTagName(O11[i][0]).length>O11[i][1])ik.getElementsByTagName(O11[i][0])[O11[i][1]].name=O11[i][2]; }};HTMLEditor.I5o= function (ik){var l1m=ik.all; var O11=[]; var I3o=[];for (var i=0; i<l1m.length; i++){var a=l1m[i]; if (a.href && a.href.length>0 && !(a.src && a.src.length>0)){var Ik=a.tagName; var i5o=ik.getElementsByTagName(Ik); var i36=0; for (var ig=0; ig<i5o.length; ig++){if (i5o[ig]==a){i36=ig; break; }}I3o[Ik]=i36; O11.push([Ik,I3o[Ik],a.href]); }}return O11; };HTMLEditor.l11= function (l1f){var I3o=[];function o5p(O28,i20,I20,l2t,I37,O5p,l5p,i5p){var Ik=i20.replace(/^<([^\s>]+)/,"$1"); var I5p= true; var i=0; for ( ; i<I3o.length; i++){if (I3o[i][0]==Ik){I5p= false; break; }}if (I5p){I3o[i]=[Ik]; }I3o[i].push(O5p); }var o2n=new RegExp("(\x3c[^\\s>\x3c]+)([^>\x3c]*?)(href=)(\"|\')([^\\4]*?)(\\4)((?:[^>\x3c]*?)>)","ig"); l1f.replace(o2n,o5p); return I3o; };HTMLEditor.o5q= function (ik,O11){for (var i=0; i<O11.length; i++){ik.getElementsByTagName(O11[i][0])[O11[i][1]].href=O11[i][2]; }};HTMLEditor.o12= function (ik,O11){for (var ig=0; ig<O11.length; ig++){var l1m=ik.getElementsByTagName(O11[ig][0]); var o2b=1; for (var i=0; i<l1m.length; i++){try {if (!l1m[i].href)continue; if (O11[ig][o2b] && O11[ig][o2b].length>0){l1m[i].href=O11[ig][o2b].replace(/&amp;/ig,"&"); }o2b++; }catch (w){}}}};HTMLEditor.O5q= function (ik){var l1m=ik.getElementsByTagName("IMG"); var O11=[]; for (var i=0; i<l1m.length; i++){var a=l1m[i]; O11.push((a.src && a.src.length>0)?a.src:null); }return O11; };HTMLEditor.l5q= function (l1f){var O11=[]; function o5p(O28,i20,I20,l2t,I37,O5p){O11.push(O28); return O28; }l1f.replace(/(<img(?:.*?)>)/ig,o5p); return O11; };HTMLEditor.i5q= function (l1f,O11){var i=-1; function o5p(O28,i20,I20,l2t,I37,O5p){i++; return O11[i]; }return l1f.replace(/(<img(?:.*?)>)/ig,o5p); };HTMLEditor.I11= function (l1f){var O11=[]; function o5p(O28,i20,I20,l2t,I37,O5p){O11.push(l2t); return O28; }l1f.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,o5p); return O11; };HTMLEditor.I5q= function (l1f){var O11=[[],[]]; function o5p(O28,i20,I20,l2t,I37,O5p){O11[0].push(l2t); return O28; }function o2a(O28,i20,I20,l2t,I37,O5p){O11[1].push(l2t); return O28; }l1f.replace(/(<img(?:.*?))(width=)([^\s>]+)(\s*)((?:.*?)>)/ig,o5p); l1f.replace(/(<img(?:.*?))(height=)([^\s>]+)(\s*)((?:.*?)>)/ig,o2a); return O11; };HTMLEditor.o5r= function (l1f,O11){var i=-1; var ig=-1; function o5p(O28,i20,I20,l2t,I37,O5p){i++; return i20+I20+O11[0][i]+I37+O5p; }function o2a(O28,i20,I20,l2t,I37,O5p){ig++; return i20+I20+O11[1][ig]+I37+O5p; }return l1f.replace(/(<img(?:.*?))(width=")([^\s>]+)(")((?:.*?)>)/ig,o5p).replace(/(<img(?:.*?))(height=")([^\s>]+)(")((?:.*?)>)/ig,o2a); };HTMLEditor.O5r= function (l1f){var O11=[]; function o5p(O28,i20){O11.push(i20); return O28; }l1f.replace(/(<area[^>]*?>)/ig,o5p); return O11; };HTMLEditor.l5r= function (l1f,O11){var i=-1; function o5p(O28,i20){i++; return O11[i]; }return l1f.replace(/(<area[^>]*?>)/ig,o5p); };HTMLEditor.O12= function (ik,O11){var l1m=ik.getElementsByTagName("IMG"); var o2b=0; for (var i=0; i<l1m.length; i++){if (!l1m[i].src)continue; if (O11[o2b] && O11[o2b].length>0){l1m[i].src=O11[o2b].replace(/&amp;/ig,"&"); }o2b++; }};HTMLEditor.i5r= function (l1f,O11){var i=-1; function o5p(O28,i20,I20,l2t,I37,O5p){i++; return i20+I20+O11[i]+I37+O5p; }return l1f.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,o5p); };HTMLEditor.I12= function (ik){var l1m=ik.getElementsByTagName("IMG"); for (var i=0; i<l1m.length; i++){if (l1m[i].getAttribute(HTMLEditor.Is) && l1m[i].getAttribute(HTMLEditor.Is).length>0){try {if (HTMLEditor.is_ie)HTMLEditor.lc(l1m[i],"dragstart",HTMLEditor.o5k); else HTMLEditor.lc(l1m[i],"draggesture",HTMLEditor.o5k); }catch (t){}if (HTMLEditor.is_ie)HTMLEditor.Ok(l1m[i],"dragstart",HTMLEditor.o5k); else HTMLEditor.Ok(l1m[i],"draggesture",HTMLEditor.o5k); }}};HTMLEditor.I13= function (id,om){var I5r=document.getElementById(id); if (!I5r)return null; if (!HTMLEditor.is_Safari && I5r.className=="ST_div" && (typeof om=="undefined" || om=="undefined")){I5r.parentNode.style.display="none"; return null; }return null; var o5s=document.getElementById(id+"__disabling"); var O1x=0,_top=0; var ik=I5r; var parent=HTMLEditor.O5s(I5r); if (parent==null)parent=document.body; var i4x=HTMLEditor.l5s(ik,(HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)?document.body:parent, false); var i4x=HTMLEditor.l5s(ik,parent, false); O1x=i4x.O1x; _top=i4x._top; var i5s; if (o5s!=null)i5s=o5s; else {i5s=document.createElement("DIV"); i5s.className="DisableSpan"; i5s.id=id+"__disabling"; i5s.style.position="absolute"; i5s.style.zIndex=01750; i5s.style.visibility="visible"; }if (!HTMLEditor.is_ie || (HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)){ik=parent; if (o5s==null)i5s.I5s=[]; while (ik && ik.tagName && ik.tagName.toUpperCase()!="BODY"){if (ik.scrollTop)_top-=parseInt(ik.scrollTop); if (ik.scrollLeft)O1x-=parseInt(ik.scrollLeft); if (o5s==null && HTMLEditor.o5t(ik)){var O5t= {l5t:ik.scrollTop,i5t:ik.scrollLeft } ; var I5t=i5s.I5s.length; var I4z=new Function("event","HTMLEditor_onParentScroll(event,\""+id+"__disabling"+"\",this,"+I5t+")"); i5s.I5s.push( {I4z:I4z,parent:ik,i15:O5t } ); HTMLEditor.Ok(ik,"scroll",I4z); }ik=ik.parentNode; }if (HTMLEditor.is_ie)parent=document.body; }if (o5s==null)parent.appendChild(i5s); i5s.style.top=_top+"px"; i5s.style.left=O1x+"px"; var i8=0; var I8=0; if (i8==0)i8=I5r.offsetWidth; if (I8==0)I8=I5r.offsetHeight; i5s.style.width=parseInt(i8)+"px"; i5s.style.height=parseInt(I8)+"px"; return id+"__disabling"; };HTMLEditor.l5s= function (o56,parent,om){var ik=o56; var _top=0,O1x=0; while (ik && typeof ik!="undefined" && ik!=parent && ik.tagName.toUpperCase()!="HTML"){var borderTopWidth; var borderLeftWidth; O1x+=parseInt(ik.offsetLeft); _top+=parseInt(ik.offsetTop); ik=ik.offsetParent; if (ik && typeof ik!="undefined"){if (ik.clientLeft)O1x+=parseInt(ik.clientLeft); if (ik.clientTop)_top+=parseInt(ik.clientTop); if (!HTMLEditor.is_ie && ((om && ik.tagName.toUpperCase()!="BODY") || (!om && (ik.tagName.toUpperCase()=="BODY" || HTMLEditor.i10)))){borderTopWidth=parseInt(HTMLEditor.ly(ik,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; borderLeftWidth=parseInt(HTMLEditor.ly(ik,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; O1x+=borderLeftWidth; _top+=borderTopWidth; }if (HTMLEditor.is_ie && !om && (ik.tagName.toUpperCase()=="TABLE" || (ik.tagName.toUpperCase()=="BODY" && document.compatMode=="BackCompat"))){var top=ik.tagName.toUpperCase()=="BODY"?HTMLEditor.ly(ik,"border-top-width").toUpperCase(): ""; borderTopWidth=parseInt(HTMLEditor.ly(ik,"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=ik.tagName.toUpperCase()=="BODY"?HTMLEditor.ly(ik,"border-left-width").toUpperCase(): ""; borderLeftWidth=parseInt(HTMLEditor.ly(ik,"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 ik.border!="undefined" && ik.border!=null && !isNaN(parseInt(ik.border)))borderLeftWidth=borderTopWidth=parseInt(ik.border); O1x-=borderLeftWidth; _top-=borderTopWidth; }}}if (ik && typeof ik!="undefined" && HTMLEditor.is_ie && document.compatMode!="BackCompat"){var marginTop=parseInt(HTMLEditor.ly(ik,"margin-top")); if (isNaN(marginTop))marginTop=0; var marginLeft=parseInt(HTMLEditor.ly(ik,"margin-left")); if (isNaN(marginLeft))marginLeft=0; O1x+=marginLeft; _top+=marginTop; }if (!HTMLEditor.i10){ik=o56; while (ik && ik!=parent){if (ik.scrollTop)_top-=parseInt(ik.scrollTop); if (ik.scrollLeft)O1x-=parseInt(ik.scrollLeft); ik=ik.parentNode; }}return {_top:_top,O1x:O1x } ; };function HTMLEditor_onParentScroll(event,o5u,parent,i){var O1o=document.getElementById(o5u); var i15=O1o.I5s[i].i15; if (HTMLEditor.is_ie)parent=event.srcElement; O1o.style.top=parseInt(O1o.style.top)-(parent.scrollTop-i15.l5t)+"px"; O1o.style.left=parseInt(O1o.style.left)-(parent.scrollLeft-i15.i5t)+"px"; i15.l5t=parent.scrollTop; i15.i5t=parent.scrollLeft; }HTMLEditor.i17= function (id,om){var I5r=document.getElementById(id); if (!I5r)return null; if (!HTMLEditor.is_Safari && I5r.className=="ST_div" && (typeof om=="undefined" || om=="undefined")){I5r.parentNode.style.display=""; return null; }var ik=document.getElementById(id+"__disabling"); if (ik){if (typeof ik.I5s!=undefined && ik.I5s!=null && ik.I5s.length>0){for (var i=0; i<ik.I5s.length; i++)HTMLEditor.lc(ik.I5s[i].parent,"scroll",ik.I5s[i].I4z); }ik.parentNode.removeChild(ik); }};HTMLEditor.o5t= function (Oc){if (Oc.clientHeight>0 && Oc.scrollHeight && Oc.scrollHeight>0){var clientHeight=Oc.clientHeight; if (!HTMLEditor.is_ie){var borderTopWidth=parseInt(ly(Oc,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; var borderBottomWidth=parseInt(ly(Oc,"border-bottom-width")); if (isNaN(borderBottomWidth))borderBottomWidth=0; clientHeight+=(borderTopWidth+borderBottomWidth); }if (Oc.scrollHeight>clientHeight){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientHeight<Oc.offsetHeight)return true; }else return true; }}if (Oc.clientWidth>0 && Oc.scrollWidth && Oc.scrollWidth>0){var clientWidth=Oc.clientWidth; if (!HTMLEditor.is_ie){var borderLeftWidth=parseInt(ly(Oc,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; var borderRightWidth=parseInt(ly(Oc,"border-right-width")); if (isNaN(borderRightWidth))borderRightWidth=0; clientWidth+=(borderLeftWidth+borderRightWidth); }if (Oc.scrollWidth>clientWidth){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientWidth<Oc.offsetWidth)return true; }else return true; }}return false; };HTMLEditor.O5s= function (O1o){var Oc=O1o; do {Oc=Oc.parentNode; if (HTMLEditor.o5t(Oc))return Oc; }while (Oc && Oc.tagName.toUpperCase()!="BODY");return Oc; };HTMLEditor.O5u=null; try {HTMLEditor.O5u=(document.all)?document.body.onload:window.onload; }catch (w){}HTMLEditor.z= function (t,o5g){if (typeof o5g=="undefined"){if (document.all)document.body.onload=HTMLEditor.O5u; else window.onload=HTMLEditor.O5u; if (HTMLEditor.O5u!=null && typeof HTMLEditor.O5u=="function")HTMLEditor.O5u(t); }HTMLEditor.Z= function (Oj){if (Oj){for (var i=0; i<HTMLEditor.o9.length; i++){if (HTMLEditor.o9[i].i9){var X=HTMLEditor.o9[i].X; if (X.Od && X.Od!=null){var ik; if (HTMLEditor.is_ie){Oj=window.event; ik=Oj.srcElement; }else {ik=Oj.target; }while (ik && ik!=X.Od)ik=ik.parentNode; if (ik==null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; if (X.Iz){X.Iz.select(); X.Iz=null; }}}}}}return true; };setTimeout( function (){HTMLEditor.Ok(document.body,"mousedown", function (event){var oe= false; try {oe=HTMLEditor.Z(HTMLEditor.is_ie?window.event:event); }catch (t){}return oe; } ); } ,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 l5u=window.Sys.WebForms.PageRequestManager.getInstance()._updateControls; var i5u=window.Sys.WebForms.PageRequestManager.getInstance(); window.Sys.WebForms.PageRequestManager.getInstance()._updateControls= function (){var I5u=[]; for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; var o5v=document.getElementById(X.mainDivId); var O5v= false; var l5v; if (o5v==null){O5v= true; }else {if (arguments && arguments.length && arguments.length>0 && arguments[0] && arguments[0].length){for (var i=0; i<arguments[0].length; i++){l5v=arguments[0][i].substr(1).replace(/\$/g,"_"); var i5v=document.getElementById(l5v); if (i5v!=null){var Oc=o5v.parentNode; while (Oc && Oc!=i5v && Oc.tagName.toUpperCase()!="BODY"){Oc=Oc.parentNode; }if (Oc==i5v){O5v= true; break; }}}}}HTMLEditor.o9[ig].l9=O5v; if (O5v){try {X.Om(); }catch (O4t){} ; if (typeof X.Ia=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.Ia); X.Ia=null; }HTMLEditor.o9[ig].i9= false; if (!X._autoFocus && !X._wasFocused && o5v!=null){X.focusEditor(); HTMLEditor.i17(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.i17(X.ShowQuickFormatDivId); }if (o5v!=null)X.UnlinkEditorOject(); if (X.n!=null){I5u.push(X.n); }}}}var I5v=l5u.apply(i5u,arguments); while (I5u.length>0){try {var o5w=I5u.pop(); var ok=o5w.parentNode.removeChild(o5w); delete ok; }catch (w){}}setTimeout( function (){var O5w=[]; for (var ig=0; ig<HTMLEditor.o9.length; ig++){var X=HTMLEditor.o9[ig].X; var o5v=document.getElementById(X.mainDivId); if (o5v==null){O5w.push(X); }else {if (X.isActivated && X.mainDivVisible && X.O1=="html"){HTMLEditor.oy(X,X.l1,!X.showAnchors); HTMLEditor.Oy(X,X.l1,!X.showPlaceHolders); X.updateToolbar(); }try {X.i2r(); }catch (t){}}}for (var ig=0; ig<O5w.length; ig++){var X=O5w[ig]; try {X.i2r(); }catch (t){}X.UnlinkEditorOject(); HTMLEditor.ib(X); }} ,0); return I5v; } ; }if (typeof window.__doPostBack=="function"){var l5w=window.__doPostBack; window.__doPostBack= function (i4q,I4q){for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].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 ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; if (document.getElementById(X.mainDivId)==null)continue; if (HTMLEditor.is_Safari){try {X.Il(); }catch (t){} ; }}}l5w(i4q,I4q); } ,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 Op=window.Sys.WebForms.PageRequestManager.getInstance(); if (Op._oboutEditor_onFormSubmit==null || typeof Op._oboutEditor_onFormSubmit=="undefined"){Op._oboutEditor_onFormSubmit=Op._onsubmit; Op._onsubmit= function (){for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){HTMLEditor.o9[ig].X.lp= false; }}var oe= true; if (Op._oboutEditor_onFormSubmit!=null && typeof Op._oboutEditor_onFormSubmit!="undefined")oe=Op._oboutEditor_onFormSubmit(); for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; if (!X.lp){try {oe=oe && X.__submit(); }catch (w){}}X.lp= false; }}return oe; } ; }}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 (ik,value){G(ik,value); for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; if (document.getElementById(X.mainDivId)!=null){var Oc=document.getElementById(X.mainDivId).parentNode; while (Oc && Oc!=ik && Oc.tagName && Oc.tagName.toUpperCase()!="BODY")Oc=Oc.parentNode; if (Oc==ik){if (!value){if (X.mainDivVisible && X.ir){X.setVisibility( false); }}else {if (X.lt() && !X.mainDivVisible && X.ir){X.setVisibility( true); }}}}}}};}if (typeof window.Page_ClientValidate=="function"){var i5w=window.Page_ClientValidate; window.Page_ClientValidate= function (i20){for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; var la=X.clientID; var I9=document.getElementById(la); var I17=""; if (I9==null){if (document.getElementsByName(la) && document.getElementsByName(la).length && document.getElementsByName(la).length>0)I9=document.getElementsByName(la)[0]; }if (I9!=null){if (X.clientValidation){I17=X.getContent(); }else {if (X.O1=="preview"){if (X.i14=="html")I17=X.O18; else I17=X.o14.value; }else if (HTMLEditor.is_ie){if (X.O1=="html"){I17=X.l1.body.innerHTML; }else {if (X.o14)I17=X.o14.value; }}else {I17=X.getHTML(); }I17=HTMLEditor.l12(I17); if (I17.length>0)if (I17.toLowerCase()=="<br />" || I17.toLowerCase()=="<br/>" || I17.toLowerCase()=="<br>")I17=""; else I17="content"; }I9.value=I17; }HTMLEditor.o9[ig].I9=I9; }}var oe=i5w(i20); for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; var I9=HTMLEditor.o9[ig].I9; if (I9!=null){I9.value=""; }}}return oe; } ; }};try {if (document.all)document.body.onload=HTMLEditor.z; else window.onload=HTMLEditor.z; }catch (w){setTimeout( function (){HTMLEditor.z(null, true); } ,0); }HTMLEditor.I5w=["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.I2o= function (html){var oe=HTMLEditor.l12(html.replace(/[\0-\x1f]+/g," ")); var o5x; oe=oe.replace(/^[^\0]+?<html(?:[^>]*?)>/gi,""); oe=oe.replace(/<\/html(?:[^>]*?)>[^\0]*$/gi,""); oe=oe.replace(/<head(?:[^>]*?)>[^\0]*?<\/head(?:[^>]*?)>/gi,""); oe=oe.replace(/<body[^>]*?>([^\0]*?)<\/body(?:[^>]*?)>/gi,"$1"); oe=oe.replace(/<\/?html(?:[^>]*?)>/gi,""); oe=oe.replace(/<\/?head(?:[^>]*?)>/gi,""); oe=oe.replace(/<\/?body(?:[^>]*?)>/gi,""); oe=oe.replace(/<!--(\w|\W)+?-->/ig,""); oe=oe.replace(/(<[\/]?)(?:o|v|x|p|w|\?xml):(\w+)([^>]*?>)/ig,"$1$2$3"); oe=oe.replace(/<(IMAGEDATA)([^>]*?)>/ig,"<img$2>"); oe=oe.replace(/<p[^>]*><p>&nbsp;<\/p><\/p>/ig,"<br>"); oe=oe.replace(/<p[^>]*?\/>/ig,"").replace(/<(p|div)[^>]*?>&nbsp;<\/(\1)[^>]*?>/ig,"").replace(/<(p|div)[^>]*?><\/(\1)[^>]*?>/ig,""); do {o5x=oe; oe=oe.replace(/<([^>]*)(?:class|size|lang|face|start|type|border|[ovwxp]:\w+)=(?:'[^']*'|"[^"]*"|[^> ]+)([^>]*)>/ig,"<$1$2>"); }while (oe!=o5x);var div=document.createElement("div"); div.innerHTML=oe; function l1z(Oc){var i36=Oc.childNodes.length; for (var i=0; i<Oc.childNodes.length; i++){var O35=Oc.childNodes.item(i); if (O35.nodeType==1){if (O35.tagName.indexOf("/")>=0){i--; O35.parentNode.removeChild(O35); }else {var search=O35.tagName.toLowerCase(); var Ot= false; var O5x=HTMLEditor.I5w.length; for (var ig=0; ig<O5x; ig++)if (HTMLEditor.I5w[ig]==search){Ot= true; break; }l1z(O35); if (!Ot){i+=O35.childNodes.length; while (O35.firstChild)O35.parentNode.insertBefore(O35.firstChild,O35); O35.parentNode.removeChild(O35); i--; }else {var l5x=O35.style.backgroundColor; var i5x=O35.style.color; O35.style.cssText=""; O35.removeAttribute("style"); if (O35.getAttribute("width") && O35.getAttribute("width").length>0)O35.style.width=O35.getAttribute("width"); if (O35.width && O35.width.length>0)O35.style.width=O35.width; O35.width=""; try {O35.removeAttribute("width"); }catch (t){}if (O35.getAttribute("height") && O35.getAttribute("height").length>0)O35.style.height=O35.getAttribute("height"); if (O35.height && O35.height.length>0)O35.style.height=O35.height; O35.height=""; try {O35.removeAttribute("height"); }catch (t){}if (search=="table"){O35.style.borderLeftWidth="1px"; O35.style.borderLeftColor="black"; O35.style.borderLeftStyle="solid"; O35.style.borderTopWidth="1px"; O35.style.borderTopColor="black"; O35.style.borderTopStyle="solid"; O35.style.backgroundColor=l5x; O35.style.color=i5x; }if (search=="td"){O35.style.borderRightWidth="1px"; O35.style.borderRightColor="black"; O35.style.borderRightStyle="solid"; O35.style.borderBottomWidth="1px"; O35.style.borderBottomColor="black"; O35.style.borderBottomStyle="solid"; O35.style.backgroundColor=l5x; O35.style.color=i5x; }if (search=="font" || search=="span"){O35.style.backgroundColor=l5x; O35.style.color=i5x; var i2x=O35.attributes; var i36=0; for (var l5i=0; l5i<i2x.length; ++l5i){var a=i2x.item(l5i); if (!a.specified)continue; i36++; }if (i36==0 && O35.style.cssText==""){i+=O35.childNodes.length; while (O35.firstChild)O35.parentNode.insertBefore(O35.firstChild,O35); O35.parentNode.removeChild(O35); i--; }}}}}}}l1z(div); oe=HTMLEditor.l12(div.innerHTML); delete div; oe=oe.replace(/<[\/]?(xml|del|ins)[^>]*?>/ig,""); oe=oe.replace(/<(p|div)[^>]*?>/ig,""); oe=oe.replace(/<\/(p|div)[^>]*?>/ig,"<br>"); do {o5x=oe; oe=oe.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,""); oe=oe.replace(/<span[^>]*?><\/span>/ig,"").replace(/<span>([^<]+?)<\/span>/ig,"$1"); oe=oe.replace(/<font[^>]*?><\/font>/ig,"").replace(/<font>([^<]+?)<\/font>/ig,"$1"); }while (oe!=o5x);oe=oe.replace(/&rsquo;/g,"'"); oe=oe.replace(/&lsquo;/g,"'"); oe=oe.replace(/&ndash;/g,"-"); oe=oe.replace(/&mdash;/g,"-"); oe=oe.replace(/&hellip;/g,"..."); oe=oe.replace(/&quot;/g,"\""); oe=oe.replace(/&ldquo;/g,"\""); oe=oe.replace(/&rdquo;/g,"\""); oe=oe.replace(/\cA/g,""); oe=oe.replace(/&bull;/g,""); oe=oe.replace(/[ ]+/g," ").replace(/(&nbsp;)+/g,"&nbsp;"); if (document.all)oe=oe.replace(/^[\0-\x1f]*&nbsp;/,""); return oe; };HTMLEditor.prototype.iz= function (Oj,clientX,clientY){var Ip; var Oq; var parent; var X=this ; if (HTMLEditor.i10)this.f= true; X.i1e(); if (HTMLEditor.is_Safari && Oj!=null){parent=Oj.target; }else {Ip=X.oq(); Oq=X.lq(Ip); parent=HTMLEditor.getSelParent(X); }var I5x= false; var o5y=parent; var O5y=parent; X.l5y=[]; X.Iz=null; while (O5y.nodeType==3 || (O5y.tagName && O5y.tagName.toUpperCase()!="BODY")){var par=O5y.parentNode; var i5y=0; for ( ; i5y<par.childNodes.length; i5y++)if (par.childNodes.item(i5y)==O5y)break; X.l5y.push(i5y); O5y=O5y.parentNode; }setTimeout( function (){var I5y=document.createElement("DIV"); I5y.className="CNTXT_div"; var html=new l28(); var o5z=0; html.write("<table>"); X.Id=[]; var O5z=X._ContextMenu; for (var ig=0; ig<O5z.length; ig++){O5z[ig][3]= false; }while (parent!=null){if (parent.tagName){if (parent.getAttribute(HTMLEditor.is) && parent.getAttribute(HTMLEditor.is).length>0){}else {var l9=(o5z>0); for (var ig=0; ig<O5z.length; ig++){var l5z=O5z[ig][0].toUpperCase().split(" "); var i5z= true; var tagName=parent.tagName; if (parent.getAttribute("dummytag") && parent.getAttribute("dummytag").length>0)tagName=parent.getAttribute("dummytag"); if (l5z[0]==tagName.toUpperCase() && l5z.length>1){var i2x=parent.attributes; var value=""; var name=""; i5z= false; for (var i=0; i<i2x.length; ++i){var a=i2x.item(i); if (!a.specified)continue; name=a.name.toUpperCase(); value=a.value.toUpperCase(); if (name==l5z[1]){i5z= true; break; }}if (i5z && l5z.length>2){if (l5z[2]!=value){i5z= false; }else {if (value.toLowerCase()=="application/x-mplayer2")I5x= true; }}}if (parent.className && parent.className==HTMLEditor.il)i5z= false; if (((l5z[0]==tagName.toUpperCase()) || (HTMLEditor.contentEditable(parent, true) && l5z[0].toLowerCase()=="#contenteditable#")) && !O5z[ig][3] && !O5z[ig][6] && i5z){if (HTMLEditor.contentEditable(parent, true) && l5z[0].toLowerCase()=="#contenteditable#"){l9= false; o5z=0; html.clear(); html.write("<table>"); X.Id=[]; for (var I5z=0; I5z<O5z.length; I5z++){O5z[I5z][3]= false; }}if (l9){X.Id.push([null,null]); html.write("<tr><td nowrap><hr></td></tr>"); o5z++; l9= false; }O5z[ig][3]= true; var o60=HTMLEditor.is_ie || O5z[ig][4]; if (O5z[ig][5] && typeof O5z[ig][5]=="function"){o60 &= O5z[ig][5](X,parent); }if (o60){var O5y=parent; var og=[]; while (O5y.tagName.toUpperCase()!="BODY"){var par=O5y.parentNode; var i5y=0; for ( ; i5y<par.childNodes.length; i5y++)if (par.childNodes.item(i5y)==O5y)break; og.push(i5y); O5y=O5y.parentNode; }X.Id.push([O5z[ig][1],og,(O5z[ig][5] && typeof O5z[ig][5]=="string")]); }else {X.Id.push([null,[]]); }if (O5z[ig][1]==null)html.write("<tr><td nowrap><hr></td></tr>"); else html.write("<tr><td nowrap>&nbsp;&nbsp;&nbsp;"+O5z[ig][2]+"</td></tr>"); o5z++; }}}}parent=parent.parentNode; }html.write("</table>"); if (o5z>0){if (HTMLEditor.is_ie){if (Ip.type.toLowerCase()=="control"){try {X.Iz=X.l1.body.createControlRange(); while (Oq.length>0){X.Iz.add(Oq.item(0)); Oq.remove(0); try {Oq.collapse( false); }catch (t){}}Ip.empty(); }catch (t){}}}var l1w=document.createElement("div"); l1w.innerHTML=html.toString(); var O60=l1w.firstChild; O60.className="CNTXT_menu"; for (var i=0; i<o5z; i++){var l60=O60.rows.item(i); if (X.Id[i][0])l60.className="CNTXT_item"; else l60.className="CNTXT_item_disable"; }function i60(){for (var i=0; i<o5z; i++){var l60=O60.rows.item(i); var I60=l60.cells.item(0); I60.style.width="auto"; I60.style.verticalAlign="top"; I60.style.borderWidth="0px"; I60.style.margin="0px"; I60.style.padding="0px"; I60.style.fontWeight="normal"; if (X.Id[i][0]){l60.className="CNTXT_item"; HTMLEditor.lv([l60],["mouseover"], function (t){var ik; if (HTMLEditor.is_ie){t=window.event; ik=t.srcElement; }else {ik=t.target; }while (ik && (!ik.tagName || ik.tagName.toUpperCase()!="TR"))ik=ik.parentNode; ik.className="CNTXT_item_over"; return true; } ); HTMLEditor.lv([l60],["mouseout"], function (t){var ik; if (HTMLEditor.is_ie){t=window.event; ik=t.srcElement; }else {ik=t.target; }while (ik && (!ik.tagName || ik.tagName.toUpperCase()!="TR"))ik=ik.parentNode; ik.className="CNTXT_item"; HTMLEditor._stopEvent(t); } ); HTMLEditor.lv([l60],["mousedown"], function (t){var ik; if (HTMLEditor.is_ie){t=window.event; ik=t.srcElement; }else {ik=t.target; }while (ik && (!ik.tagName || ik.tagName.toUpperCase()!="TR"))ik=ik.parentNode; HTMLEditor._stopEvent(t); setTimeout( function (){var i2c= false; try {if (X.Iz){if (X.Iz.item(0).tagName.toUpperCase()!="EMBED"){X.Iz.select(); X.Iz=null; }else {while (X.Iz.length>0){while (X.Iz.length>0)X.Iz.remove(0); try {X.Iz.collapse( false); }catch (t){}}X.Iz=null; }}else if (HTMLEditor.is_ie)if (Oq!=null)try {Oq.select(); }catch (t){}var o61=X.Id[ik.rowIndex][0]; var O61=X.l1.body; var l61=X.l1.body; var i61=!(X.Id[ik.rowIndex][2]); var og=X.Id[ik.rowIndex][1]; var ld=X.Od.parentNode.removeChild(X.Od); while (og.length>0)O61=O61.childNodes.item(og.pop()); while (X.l5y.length>0)l61=l61.childNodes.item(X.l5y.pop()); delete ld; if (HTMLEditor.is_Safari)if (X.o10){var I61=X.oq(); var i1a=X.o10; X.I16(I61,i1a); X.o10=null; }if (i61){X.O10(); i2c= true; }o61(X,O61,l61); X.Od=null; HTMLEditor.Od=null; X.Id=null; }catch (w){try {if (i2c)X.I1d( false); if (HTMLEditor.is_ie){HTMLEditor.l1n(ik,X); }}catch (O2d){}}} ,012); } ); }else {l60.className="CNTXT_item_disable"; }}}if (HTMLEditor.is_ie && I5x)setTimeout( function (){X.Iz=null; Oq=null; X.l2d(null,i60);} ,0); else i60(); HTMLEditor.lv([I5y],["contextmenu"], function (t){try {if (HTMLEditor.is_ie)Oq.select(); else X.I16(Ip,Oq); }catch (o62){}HTMLEditor._stopEvent(t); return false; } ); I5y.style.position="absolute"; I5y.style.display=""; I5y.appendChild(O60); I5y.style.visibility="hidden"; var o56=X.A; var ik=X._textArea.parentNode.parentNode; var O1x=0,_top=0; if (!X._InsideOboutWindow)while (ik!=X.A){if (HTMLEditor.ly(ik,"position").toLowerCase()=="absolute"){o56=X._textArea.parentNode.parentNode; var o2r=HTMLEditor.O2r((X.I0.document.compatMode=="BackCompat" && HTMLEditor.is_ie)?o56:ik, false); O1x=o2r.O1x; _top=o2r._top; break; }ik=ik.parentNode; }o56.appendChild(I5y); var y; var x; var l53; var zIndex=045070; ik=X._iframe; var O62=HTMLEditor.O2r(X._iframe, false); while (ik && typeof ik!="undefined" && ik!=o56){var l62=parseInt(HTMLEditor.ly(ik,"z-index")); if (!isNaN(l62) && l62>zIndex)zIndex=l62+1; ik=ik.parentNode; }y=clientY+O62._top-_top; x=clientX+O62.O1x-O1x; var i2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2q=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; var Height=I2q+I53(X.I0.document); var Width=i2q+_GetScrollLeft(X.I0.document); var i62=I5y.offsetHeight; var I62=I5y.offsetWidth; var o63=y; var O63=x; if (o63+i62>Height)y-=o63+i62-Height; if (O63+I62>Width)x-=O63+I62-Width; I5y.style.top=y+"px"; I5y.style.left=x+"px"; X.Od=I5y; HTMLEditor.Od=I5y; I5y.style.visibility="visible"; I5y.style.zIndex=zIndex; }else { delete I5y; X.Od=null; HTMLEditor.Od=null; }} ,0); if (Oj!=null)HTMLEditor._stopEvent(Oj); return false; };HTMLEditor.prototype.o1f= function (){var Ip; var Oq; var parent; var X=this ; Ip=X.oq(); Oq=X.lq(Ip); parent=HTMLEditor.getSelParent(X); var i2q=X.l1.body.offsetWidth; var I2q=X.l1.body.offsetHeight; var i53=I2q/2; if (i53<=0)i53=024; var clientY=i53; var clientX=i2q/2; X.iz(null,clientX,clientY); };HTMLEditor.O20= function (ik,Iw,om){var l20; if (HTMLEditor.is_ie && ik.tagName && (ik.tagName.toUpperCase()=="EMBED" || ik.tagName.toUpperCase()=="OBJECT")){var div=Iw.createElement("DIV"); try {div.innerHTML=ik.outerHTML; l20=div.firstChild; }catch (t){l20=ik; } delete div; }else l20=ik.cloneNode(om); return l20; };HTMLEditor.i32= function (l63){var value; var i36; try {i36=parseInt(l63)-1; }catch (t){return l63; }switch (i36){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=l63.replace(/"/g,"&quot;"); }return value; };HTMLEditor.ic= function (Oj){if (Oj.propertyName=="style.display")if (HTMLEditor.i63==null || typeof HTMLEditor.i63=="undefined"){HTMLEditor.i63= function (){for (var i=0; i<HTMLEditor.ov.length; i++){var parent=HTMLEditor.ov[i]; if (parent.Iu!=null)if (parent.Iu!=""+parent.style.display+""){if (typeof parent.Ic=="function"){parent.Ic( {srcElement:parent,propertyName: "style.display" } ); }}parent.Iu=parent.style.display; }setTimeout( function (){HTMLEditor.i63=null; } ,0); } ; setTimeout(HTMLEditor.i63,024); }};if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari)try {CSSStyleDeclaration.prototype.__defineSetter__("display", function (value){HTMLEditor.ic( {srcElement:parent,propertyName: "style.display" } ); this.setProperty("display",value,"important"); } ); }catch (w){}HTMLEditor.ov=[]; HTMLEditor.od= function (O1o){var oe=[]; for (var i=0; i<HTMLEditor.ov.length; i++){var i15=HTMLEditor.ov[i]; if (i15!=O1o){oe.push(i15); }}HTMLEditor.ov=oe; };if (!HTMLEditor.is_ie)try {HTMLElement.prototype.__defineGetter__("innerText", function (){var html=new l28( true); HTMLEditor.I63(this,html); return html.toString(); } );}catch (w){}HTMLEditor.I63= function (I2d,html){var l35=I2d.childNodes; for (var i=0; i<l35.length; i++){var Oc=l35[i]; if (Oc.nodeType==3)html.write(Oc.nodeValue.replace("\n","")); if (Oc.nodeType==1){var display=HTMLEditor.ly(Oc,"display"); var visibility=HTMLEditor.ly(Oc,"visibility"); if (HTMLEditor.o64(Oc))html.write("\n"); if (HTMLEditor.O64(Oc))html.write("\t"); if (display!="none" && visibility!="hidden")HTMLEditor.I63(Oc,html); if (HTMLEditor.l64(Oc))html.write("\n"); }}};HTMLEditor.o64= function (ik){var i64=" div table p pre ol ul blockquote form fieldset "; return (i64.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.l64= function (ik){var i64=" br div table tr p pre ol ul li hr blockquote form fieldset legend "; return (i64.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.O64= function (ik){var i64=" td li "; return (i64.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.canHaveChildren= function (Oc){if (HTMLEditor.is_ie)return Oc.canHaveChildren; else return !/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(Oc.tagName.toLowerCase()); };HTMLEditor.contentEditable= function (ik,om){while (ik!=null){try {var I64=null; if (ik.contentEditable!=null && typeof ik.contentEditable!="undefined" && !(HTMLEditor.is_Safari || HTMLEditor.i10)){if (!ik.contentEditable || ik.contentEditable=="false")I64= false; else I64= true; }else {var value=ik.getAttribute("contenteditable"); if (typeof value=="boolean")I64=value; else if (typeof value=="string" && value.toLowerCase()=="false")I64= false; }if (I64!=null && typeof I64=="boolean"){if (!I64){return ik; }}}catch (w){}if (typeof om!="undefined" && om)return null; if (ik.tagName!=null && typeof ik.tagName!="undefined" && (ik.tagName.toUpperCase()=="BODY" || ik.tagName.toUpperCase()=="HTML"))break; ik=ik.parentNode; }return null; };HTMLEditor.prototype.l46= function (){var X=this ; var i46=this.oq(); var Oq; try {Oq=this.lq(i46); }catch (w){return false; }var ik; if (!HTMLEditor.is_ie){ik=HTMLEditor.contentEditable(Oq.startContainer); if (ik==null)ik=HTMLEditor.contentEditable(Oq.endContainer); }else ik=HTMLEditor.contentEditable(HTMLEditor.getSelParent(X)); if (HTMLEditor.is_ie && ik!=null){try {Oq.remove(ik); }catch (t){}Oq=X.l1.body.createControlRange(); Oq.add(ik); Oq.select(); }else if (!HTMLEditor.is_ie && ik!=null){var Ip=X.oq(); var l16; if (ik.nextSibling!=null && ik.nextSibling.nodeType==3){l16=ik.nextSibling; }else {l16=X.l1.createTextNode(""); if (ik.nextSibling!=null)ik.parentNode.insertBefore(l16,ik.nextSibling); else ik.parentNode.appendChild(l16); }X.i16(Ip); var Oq=X.lq(Ip); Oq.setStart(l16,0); Oq.setEnd(l16,0); X.I16(Ip,Oq); }return true; };HTMLEditor.I4b= function (t){var o65=t.keyCode?t.keyCode:t.which; var O65=t.shiftKey?t.shiftKey: ((o65==020)? true : false); if (((o65>=0101 && o65<=0132) && !O65) || ((o65>=0141 && o65<=0172) && O65))return true; else return false; };HTMLEditor.l65= {i65: 1,I65: 2,o66: 3,O66: 4,l66: 5,i66: 6,I66: 7,o67: 8,O67: 011,l67: 012,i67: 013,I67: 014 } ; HTMLEditor.o68= function (I2d){return I2d.nodeType==HTMLEditor.l65.O67?I2d:I2d.ownerDocument || I2d.document; } ; HTMLEditor.O68= function (l68){var Iw; if (l68.nodeType==HTMLEditor.l65.O67){Iw=l68; }else {Iw=HTMLEditor.o68(l68); }if (HTMLEditor.is_ie && Iw.compatMode!="CSS1Compat"){return Iw.body; }return Iw.documentElement; };HTMLEditor.l5b= function (ik){var Iw=HTMLEditor.o68(ik); var i68=HTMLEditor.l27 && Iw.getBoxObjectFor && HTMLEditor.ly(ik,"position")=="absolute" && (ik.style.top=="" || ik.style.left==""); var I68=HTMLEditor.o2h && !HTMLEditor.O2m.O2m("1.8.0.11"); var I4n= {x: 0,y: 0 } ; var o69=HTMLEditor.O68(Iw); if (ik==o69){return I4n; }var parent=null; var O69; if (Iw.getBoxObjectFor && !i68 && !I68){O69=Iw.getBoxObjectFor(ik); var l69=Iw.getBoxObjectFor(o69); I4n.x=O69.screenX-l69.screenX; I4n.y=O69.screenY-l69.screenY; }else if (ik.getBoundingClientRect){O69=ik.getBoundingClientRect(); var scrollTop=o69.scrollTop; var scrollLeft=o69.scrollLeft; I4n.x=O69.left+scrollLeft; I4n.y=O69.top+scrollTop; }else {var i69=ik; while (ik && typeof ik!="undefined" && ik.tagName.toUpperCase()!="BODY" && ik.tagName.toUpperCase()!="HTML"){I4n.x+=parseInt(ik.offsetLeft); I4n.y+=parseInt(ik.offsetTop); ik=ik.offsetParent; if (ik && typeof ik!="undefined"){if (ik.clientLeft)I4n.x+=parseInt(ik.clientLeft); if (ik.clientTop)I4n.y+=parseInt(ik.clientTop); }}ik=i69; if (HTMLEditor.i10 || (HTMLEditor.i2g && HTMLEditor.ly(ik,"position")=="absolute")){I4n.y-=Iw.body.offsetTop; }parent=ik.offsetParent; while (parent && parent!=Iw.body){I4n.x-=parent.scrollLeft; if (!HTMLEditor.i10 || parent.tagName!="TR"){I4n.y-=parent.scrollTop; }parent=parent.offsetParent; }}return I4n; } ; 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();
