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.i0= true; this.captureInDesign=null; this.dfltBlockElement="P"; this.ShowQuickFormatDivId=null; this._hiddenContent=null; this._hiddenCSS=null; if ((typeof I=="undefined") || I==null)this.I=new HTMLEditor.I0(); else this.I=I; if ((typeof A=="undefined") || A==null)this.A=document.body; else this.A=A; this.o1=window; this.O1=null; this.l1="html"; this.i1=null; this.I1=null; this._CSSfile=""; this._StartEnd= false; this.HTMLEditor=HTMLEditor; this._ContextMenu=[["#contenteditable#",HTMLEditor.o2,"Make editable", false , true ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.O2,"Flash properties", false , true ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.l2,"Copy Flash", false , false ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.i2,"Cut Flash", false , false ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.I2,"Delete Flash", false , true ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.o3,"Media properties", false , true ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.l2,"Copy Media", false , false ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.i2,"Cut Media", false , false ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.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.l3,"PlaceHolder properties", false , true ,"inner", false],["PLACEHOLDER",HTMLEditor.I2,"Delete PlaceHolder", false , true ,"inner", false],["IMG",HTMLEditor.i3,"Image properties", false , true ,"inner", false],["IMG",HTMLEditor.l2,"Copy Image", false , false ,"inner", false],["IMG",HTMLEditor.i2,"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.o4,"Remove DIV tag", false , true ,"inner", false],["A href",HTMLEditor.O4,"URL Link properties", false , true ,"inner", false],["A href",HTMLEditor.o4,"Remove URL Link", false , true ,"inner", false],["A name",HTMLEditor.l4,"Anchor properties", false , true ,"inner", false],["A name",HTMLEditor.I2,"Delete Anchor", false , true ,"inner", false],["TD",HTMLEditor.i4,"Cell properties", false , true ,"inner", false],["TABLE",HTMLEditor.I4,"Table properties", false , true ,"inner", false],["TABLE",HTMLEditor.l2,"Copy Table", false , false ,"inner", false],["TABLE",HTMLEditor.i2,"Cut Table", false , false ,"inner", false],["TABLE",HTMLEditor.I2,"Delete Table", false , true ,"inner", false],["FORM",HTMLEditor.o5,"Form properties", false , true ,"inner", false],["FORM",HTMLEditor.I2,"Remove FORM", false , true ,"inner", false],["FORM",HTMLEditor.o4,"Remove FORM tag", false , true ,"inner", false],["BODY",HTMLEditor.O5,"Cut", false , false ,HTMLEditor.l5, false],["BODY",HTMLEditor.i5,"Copy", false , false ,HTMLEditor.l5, false],["BODY",HTMLEditor.I5,"Paste", false , false ,HTMLEditor.o6, false],["BODY",HTMLEditor.O6,"Paste Plain Text", false , true ,HTMLEditor.l6, false],["BODY",HTMLEditor.i6,"Delete", false , true ,HTMLEditor.l5, false],["BODY",null,"", false , true ,"inner", false],["BODY",HTMLEditor.I6,"Select All", false , true ,"inner", false]]; try {var o7="?"+document.getElementsByName("OboutEditorVersion")[0].value; this.o7=o7; var O7=document.getElementsByName("FolderScript")[0].value; var l7=document.getElementsByName("FolderScriptSession")[0].value; this.i7=document.getElementsByName("FolderStyle")[0].value; this.I7=document.getElementsByName("FolderIcon")[0].value; this._FolderScript=O7; this.o8=l7; this.O8=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.l8=0; this.i8=null; if (HTMLEditor.I8(".HE_editPanel"))this.i8= {o9: this._textArea.offsetWidth,O9: this._textArea.offsetHeight } ; this.O1=null; }catch (t){alert("Init : "+t.message); }}else { this.scriptVersion="notsupported"; }} ; HTMLEditor.l9=[]; HTMLEditor.i9= function (X){ this.X=X; this.id=X.W; this.O=X.O; this.I9= false; this.oa= true; this.Oa=null; } ; HTMLEditor.la= function (O){for (var i=0; i<HTMLEditor.l9.length; i++){if (O==HTMLEditor.l9[i].O){return HTMLEditor.l9[i].X; }}return null; };HTMLEditor.ia= function (clientID){for (var i=0; i<HTMLEditor.l9.length; i++){if (clientID==HTMLEditor.l9[i].id){return HTMLEditor.l9[i].X; }}return null; };function oboutGetEditor(Ia){return HTMLEditor.la(Ia); }function oboutGetEditorByClientId(Ia){return HTMLEditor.ia(Ia); }HTMLEditor.ob= function (id){for (var i=0; i<HTMLEditor.l9.length; i++){if (id==HTMLEditor.l9[i].id){return HTMLEditor.l9[i].X; }}return null; };HTMLEditor.R= function (X){var id=X.W; var index=-1; for (var i=0; i<HTMLEditor.l9.length; i++){if (id==HTMLEditor.l9[i].id){if (HTMLEditor.S()){if (typeof X.Ob=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.Ob); X.Ob=null; }}index=i; break; }}if (index>=0)HTMLEditor.l9[index]=new HTMLEditor.i9(X); else HTMLEditor.l9.push(new HTMLEditor.i9(X)); if (HTMLEditor.S()){X.Ob= function (lb,ib){try {if (X._AjaxWait){X.UnlinkEditorOject(); X.Ib(); }}catch (t){}} ; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(X.Ob); }};HTMLEditor.oc= function (X){var id=X.W; var index= false; var Oc=[]; for (var i=0; i<HTMLEditor.l9.length; i++){if (id!=HTMLEditor.l9[i].id){Oc.push(HTMLEditor.l9[i]); }}HTMLEditor.l9=Oc; };HTMLEditor.prototype.lc= function (){HTMLEditor.R(this ); };HTMLEditor.prototype.UnlinkEditorOject= function (){var X=this ; if (typeof X.g=="function"){if (document.getElementById(this.mainDivId)==null)return; var ic=document.getElementById(this.mainDivId).parentNode; while (ic && ic.tagName && ic.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.Ic(ic,"propertychange",HTMLEditor.od); ic.Od=null; HTMLEditor.ld(ic); }else {ic.Od=null; HTMLEditor.ld(ic); }ic=ic.parentNode; }X.J= false; }try {X.clearPopups( true); }catch (w){}try {if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=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 le=document.getElementById(name); if (le==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"){le=item; break; }}}if (le!=null){var text=le.text; if (typeof text=="undefined" || text=="")text=le.innerHTML; var ie="try{null}catch(ex){}"; var Ie=text.indexOf(ie); var of=text.lastIndexOf(ie); if (Ie>=0 && of>=0){text=text.substring(Ie+ie.length,of); le=new Object(); le.text=text; }}return le; };HTMLEditor.prototype.Of= function (name,If){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 If; };HTMLEditor.prototype.og= function (name,If){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 If; };HTMLEditor.prototype.Og= function (name,If){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 If; };HTMLEditor.prototype._context_menu_loc= function (lg){for (var i=0; i<this._ContextMenu.length; i++){var ig=this._ContextMenu[i]; var Ig=ig[2].toLowerCase().replace(/\s/g,"-"); for (var oh=0; oh<lg.length; oh++){var Oh=lg[oh]; var lh=Oh[0].toLowerCase(); if (Ig==lh){ig[2]=Oh[1]; break; }}}};HTMLEditor.prototype.RemoveContextMenuItem= function (ih){var Ih=ih.toLowerCase(); for (var i=0; i<this._ContextMenu.length; i++){var ig=this._ContextMenu[i]; var Ig=ig[2].toLowerCase().replace(/\s/g,"_"); if (Ig==Ih){ig[6]= true; break; }}};HTMLEditor._CUROBJ_=null; HTMLEditor.restoreOldTags=null; HTMLEditor.Id=null; HTMLEditor.l8=0; HTMLEditor.prototype.oi= function (Oi){if (this.k==0 && typeof this.onLoadingStart=="function")this.onLoadingStart((typeof Oi=="string")?Oi: "popup"); this.k++; };HTMLEditor.prototype.ii= function (Oi){if (this.k>0){ this.k--; if (this.k==0 && typeof this.onLoadingEnd=="function")this.onLoadingEnd((typeof Oi=="string")?Oi: "popup"); }};HTMLEditor.prototype.Ii= function (name){var lg=[]; var X=this ; var oj; for (var i=1; i<arguments.length; i++)lg.push(arguments[i]); function Oj(){X[name].apply(X,lg); }function lj(ij){try {Oj(); }catch (t){alert(t.message+"- Script loading failed..."); }if (!HTMLEditor.Ij && !HTMLEditor.is_ie)setTimeout( function (){try {if (HTMLEditor.ok)HTMLEditor.Ic(oj,"load",lj); document.body.removeChild(oj); }catch (t){alert("Late loaded function ("+name+"): "+t.message); }} ,5); HTMLEditor.l8--; if (HTMLEditor.l8==0)HTMLEditor._CUROBJ_=null; X.ii("script"); }try {Oj(); }catch (t){if (typeof X[name]=="string"){function Ok(){if (HTMLEditor._CUROBJ_!=null)setTimeout(Ok,0144); HTMLEditor._CUROBJ_=X; HTMLEditor.l8=0; var Ia=X[name]; X[name]=null; X.oi("script"); if (HTMLEditor.is_Safari && !HTMLEditor.ok){var lk=document.getElementById(X._hiddenContent+"_ifr_"+name); if (lk!=null){HTMLEditor.Ic(lk,"load",lj); document.body.removeChild(lk); }oj=document.createElement("IFRAME"); oj.style.width="0px"; oj.style.height="0px"; oj.id=X._hiddenContent+"_ifr_"+name; HTMLEditor.ik(oj,"load",lj); document.body.appendChild(oj); lk=document.getElementById(X._hiddenContent+"_ifr_"+name); lk.src=Ia; }else {oj=document.createElement("IFRAME"); oj.width="0"; oj.height="0"; oj.style.display="none"; if (HTMLEditor.is_Safari){oj.name=X._hiddenContent+"_ifr_"+name; }HTMLEditor.ik(oj,"load",lj); oj.src=Ia; document.body.appendChild(oj); }HTMLEditor.l8++; }Ok(); }}};HTMLEditor.prototype.Ik= function (ij){var ll=ij.target; var il=ll.tagName.toUpperCase(); if (!this.mainDivVisible)return true; if (il=="INPUT" || il=="TEXTAREA")return true; if (ij.keyCode==8){HTMLEditor._stopEvent(ij); return false; }var X=this ; setTimeout( function (){if (X.i1.body.offsetWidth==0 && X.mode()=="html" && X.mainDivVisible && X._iframe){X._textArea.value=X.getHTML(); var Il=X._textArea.parentNode.removeChild(X.O1); X.O1=null; delete Il; X.activate(); }} ,024); };HTMLEditor.om="OboutMSIEparagraph"; HTMLEditor.prototype.Om= function (Im){if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (this.j>0){try { this.on(); }catch (t){} ; return true; }else this.j=1; if (HTMLEditor.S()){if (!this.AjaxCurrentContent && !this.o0){if (this._hiddenContent){try {var On="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(On) && document.getElementsByName(On).length && document.getElementsByName(On).length>0){document.getElementsByName(On)[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 In=null;if (this._hiddenContent){try {var On="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(On) && document.getElementsByName(On).length && document.getElementsByName(On).length>0){document.getElementsByName(On)[0].value=this.ContentChanged()?"1": ""; }}catch (t){} this.UnlinkEditorOject(); var oo=this._formSubmit(); var Oo=oo[0]; In=oo[1]; if (this._textArea.form){document.getElementsByName(this._hiddenContent)[0].value=Oo; }}if (this._hiddenCSS){document.getElementsByName(this._hiddenCSS)[0].value=this._CSSfile; }X.setOriginal(In); }else {if (this._hiddenContent){try {var On="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(On) && document.getElementsByName(On).length && document.getElementsByName(On).length>0){document.getElementsByName(On)[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.Io && this.mainDivVisible)return false; try { this.on(); }catch (t){} ; if (!this._textArea.form){try { this.on(); }catch (t){} ; return true; }if (typeof Im!="undefined" && Im== true){ this._textArea.form.submit(); }return true; };HTMLEditor.prototype.__cancel= function (){var X=this ; var le= true; if (typeof this.ClientCancel=="function"){le= false; var op=this.ClientCancel; try {le=op(this ); }catch (t){alert("ClientCancel function call error: "+t.message); }}if (le)if (this.content_canceled_event){X.j=0; var Op= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Op=Page_ClientValidate(X._validationGroup); }else {Op=Page_ClientValidate(); }}}catch (w){}}if (Op){X.h= true; X.openWait(); var lp= false; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){try {var ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (ip._updatePanelIDs && ip._updatePanelIDs.length && ip._updatePanelIDs.length>0)lp= true; }catch (w){}}if (lp){setTimeout( function (){var ip=window.Sys.WebForms.PageRequestManager.getInstance(); var form=ip._form; ip._postBackSettings=ip._createPostBackSettings( true ,null,null); ip._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.o0= true; ip._onFormSubmit(); Function._validateParams=save; try {X.on(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Om( true); } ,0); }}}};HTMLEditor.prototype.__submit= function (Im){ this.Ip= true; if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X,Im))return false; }X.j=0; if (typeof Im!="undefined"){var Op= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Op=Page_ClientValidate(X._validationGroup); }else {Op=Page_ClientValidate(); }}}catch (w){}}if (Op){X.H= true; X.openWait(); var lp= false; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){try {var ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (ip._updatePanelIDs && ip._updatePanelIDs.length && ip._updatePanelIDs.length>0)lp= true; }catch (w){}}if (lp){setTimeout( function (){var ip=window.Sys.WebForms.PageRequestManager.getInstance(); var form=ip._form; ip._postBackSettings=ip._createPostBackSettings( true ,null,null); ip._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.o0= true; ip._onFormSubmit(); Function._validateParams=save; try {X.on(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Om(Im); } ,0); }}}else {X.Om(Im); }return true; };HTMLEditor.prototype.submit= function (oq){var X=this ; var Op= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Op=Page_ClientValidate(X._validationGroup); }else {Op=Page_ClientValidate(); }}}catch (w){}}if (Op){X.openWait(); setTimeout( function (){X.Om(typeof oq!="function"); if (typeof oq=="function")oq(); } ,0); }};HTMLEditor.getSelParent= function (X){var Oq=X.lq(); var iq=X.Iq(Oq); var parent=null; if (HTMLEditor.is_ie){if (Oq.type.toLowerCase()=="control")parent=iq.item(0); else parent=X.or(iq); }else {parent=X.or(iq); if (parent.nodeType!=3 && iq.startContainer==iq.endContainer){var p=parent; parent=parent.childNodes.item(iq.startOffset); if (parent==null)parent=p; }}return parent; };HTMLEditor.Or= function (ll){var lr=" legend fieldset "; return (lr.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.prototype.ir= function (){var ll=HTMLEditor.getSelParent(this ); while (ll && ll.tagName && ll.tagName.toUpperCase()!="BODY"){if (HTMLEditor.Or(ll)){return true; }ll=ll.parentNode; }return false; };HTMLEditor.prototype.Or= function (){try {var Oq=this.lq(); if (HTMLEditor.is_ie){if (Oq.type.toLowerCase()=="control")return true; else return false; }else {var iq=this.Iq(Oq); var parent=this.or(iq); if (parent.nodeType!=3 && iq.startContainer==iq.endContainer){if (!parent.tagName)return false; if (iq.startContainer.childNodes.item(iq.startOffset)==null)return false; if (iq.startOffset==iq.endOffset && iq.startContainer.childNodes.item(iq.startOffset).tagName && iq.startContainer.childNodes.item(iq.startOffset).tagName.toUpperCase()=="BR")return false; if (parent.tagName.toUpperCase()=="BODY" && iq.startOffset==0 && iq.endOffset>0 && iq.endOffset==parent.childNodes.length)return false; if (iq.startOffset==iq.endOffset && iq.startContainer.childNodes.item(iq.startOffset).nodeType==3){return false; }return true; }else return false; }}catch (t){return true; }};HTMLEditor.prototype.Ir=0; HTMLEditor.prototype.os= false; HTMLEditor.prototype.Io= false; HTMLEditor.prototype.Os= false; HTMLEditor.prototype.ls= false; HTMLEditor.prototype.is= false; HTMLEditor.prototype.isActivated= false; HTMLEditor.prototype.Is= false; HTMLEditor.ot="obout-no-contextmenu"; HTMLEditor.prototype.noContextMenuAttributeName= function (){return HTMLEditor.ot; };HTMLEditor.Ot="obout-attached-id"; HTMLEditor.prototype.attachedIdAttributeName= function (){return HTMLEditor.Ot; };HTMLEditor.prototype.lt= function (ll){var it=null; if (ll.getAttribute(HTMLEditor.Ot) && ll.getAttribute(HTMLEditor.Ot).length>0){var par=ll.parentNode; while (par && par.tagName.toUpperCase()!="BODY"){if (par.tagName.toUpperCase()=="TABLE"){it=par; break; }par=par.parentNode; }}return it; };HTMLEditor.prototype.It= function (){if (document.getElementById(this.mainDivId)==null)return false; var ic=document.getElementById(this.mainDivId).parentNode; var ou= true; while (ic){if (ic.style && ic.style.display=="none"){ou= false; break; }ic=ic.parentNode; }return ou; };HTMLEditor.prototype.v=null; HTMLEditor.prototype.setTimeout= function (op,Ou){if (this.v!=null){try {var X=this ; var id=window.setTimeout( function (){op( true);} ,Ou); X.v.push([op,id]); }catch (t){alert("setTimeout: "+t.message);}}else {window.setTimeout(op,Ou); }};HTMLEditor.prototype.lu= function (){var X=this ; if (this.v)for (var i=0; i<this.v.length; i++){if (typeof this.v[i][0]=="function" && this.v[i][0]==X.lu.caller){ this.v[i][0]="none"; break; }}if (!this.It() || !this.mainDivVisible){try { this.on(); }catch (t){} ; this.l1="undef"; return true; }return false; };HTMLEditor.prototype.activate= function (iu){if (!this.ls){if (typeof EditorBeforeActivate=="function"){ this.ls= true; try {EditorBeforeActivate(this ); }catch (w){setTimeout( function (){alert("EditorBeforeActivate exception: "+w.message); } ,0); }}}var X=this ; var ic=document.getElementById(this.mainDivId).parentNode; var ou= true; X.v=null; this.M=null; if (this.Iu && HTMLEditor.S()){}if (!HTMLEditor.is_Safari)if (!X.J){X.J= true; if ( true){X.g= function (event){if (!X.J){if (HTMLEditor.is_ie){HTMLEditor.Ic(event.srcElement,"propertychange",HTMLEditor.od); event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }else {event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }return true; }var ic=X._textArea; while (ic!=null){if (ic.nodeType!=1)break; if (ic.tagName.toUpperCase()=="BODY")break; ic=ic.parentNode; }if (ic==null || ic.nodeType!=1){if (HTMLEditor.is_ie){HTMLEditor.Ic(event.srcElement,"propertychange",HTMLEditor.od); event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }else {event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }X.J= false; return true; }if (X._textArea.form==null){setTimeout( function (){eval(X.W+"_start()"); } ,0); if (HTMLEditor.is_ie){HTMLEditor.Ic(event.srcElement,"propertychange",HTMLEditor.od); event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }else {event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }X.J= false; try {var On="content_changed_"+X.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(On) && document.getElementsByName(On).length && document.getElementsByName(On).length>0){document.getElementsByName(On)[0].value=X.ContentChanged()?"1": ""; }}catch (t){}var Oo=X._formSubmit()[0]; document.getElementsByName(X._hiddenContent)[0].value=Oo; return true; }if (event.propertyName=="style.display"){X.ov=null; if (event.srcElement.style.display=="none"){if (X.mainDivVisible){X.ov= false; }}else {if (X.It() && !X.mainDivVisible){X.ov= true; }}if (X._isCallBackPanel){try {X.clearPopups( true); }catch (w){}try {if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; }}catch (w){}if (HTMLEditor.is_ie){HTMLEditor.Ic(event.srcElement,"propertychange",HTMLEditor.od); event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }else {event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }X.J= false; }else setTimeout( function (){if (X.ov!=null){var ic=X._textArea; while (ic!=null){if (ic.nodeType!=1)break; if (ic.tagName.toUpperCase()=="BODY")break; ic=ic.parentNode; }if (ic.nodeType==1)try {X.setVisibility(X.ov); }catch (w){}}X.ov=null; } ,024); }} ; X.ov=null; while (ic && ic.tagName && ic.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.ik(ic,"propertychange",HTMLEditor.od); }X.Od=ic.Od; ic.Od= function (ij){if (X.Od!=null && typeof X.Od=="function")X.Od(ij); X.g(ij); };ic.Ov=ic.style.display; HTMLEditor.lv.push(ic); ic=ic.parentNode; }}else {}}HTMLEditor._CUROBJ_=null; if (this.Iu && !HTMLEditor.S()){ this.on(); this._textArea.style.display="none"; this.Iu= false; if (HTMLEditor.is_ie){if (this.l1=="html"){ this._iframe.style.visibility="hidden"; this._iframe.style.visibility="visible"; this.focusEditor(); }else if (this.l1=="preview"){ this.iv.style.visibility="hidden"; this.iv.style.visibility="visible"; }}if (!X.is){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.Iv([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var le= false; try {le=ow(HTMLEditor.is_ie?X.o1.event:event); }catch (t){}return le; } ); X.is= true; }}return; } this.Io= false; this.os= true; this.isActivated= false; this._wasFocused= false; if (!X.is){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.Iv([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var le= false; try {le=ow(HTMLEditor.is_ie?X.o1.event:event); }catch (t){}return le; } ); X.is= true; }}if (!X.Os){if (!HTMLEditor.is_ie){ this.Ow=this.updateToolbar; this.updateToolbar= function (){try { this.Ow(); }catch (t){return; }} ; }}if (X.It() && !this.mainDivVisible && document.getElementById(this.mainDivId).style.display!="none"){ this.mainDivVisible= true; if (typeof this._setRealSize=="function")this._setRealSize(); if (this._textArea.offsetWidth>0 && this._textArea.offsetHeight>0)this.i8= {o9: this._textArea.offsetWidth,O9: this._textArea.offsetHeight } ; }if (!X.It() || !this.mainDivVisible){ this.on(); this.l1="text"; this.mainDivVisible= false; if (!this.Os){ this.Os= true; if (typeof EditorOnLoad=="function")setTimeout( function (){EditorOnLoad(X); } ,0); }if (HTMLEditor.is_Safari)setTimeout( function (){try {X.mainDivVisible= true; eval(X.W+"_start()"); }catch (t){}} ,0764); return; }HTMLEditor.lw(window,document.getElementById(this.mainDivId)); function ow(ij){if (ij){if (X.isPopup()){HTMLEditor._stopEvent(ij); return false; }}return true; }X.v=[]; try { this.iw(); }catch (t){alert("activate: "+t.message); }function Iw(ox){if (X.lu(ox))return; var Ox; try {Ox=X._iframe.contentWindow.document; }catch (t){X.setTimeout(Iw,012); return false; }try {if (!HTMLEditor.is_ie)X.i1.queryCommandValue("forecolor"); if (!Ox || !Ox.body || !X.i1 || !X.i1.body){X.setTimeout(Iw,012); return false; }}catch (t){if (!HTMLEditor.is_ie){X.setTimeout(Iw,012); }return false; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){if (X.ShowQuickFormatDivId!=null){X.lx=document.getElementById(X.ShowQuickFormatDivId).offsetWidth; X.ix=document.getElementById(X.ShowQuickFormatDivId).offsetHeight; }else {X.lx=0; X.ix=0; }X.Ix=document.getElementById(X.panelDivId).offsetWidth; }if (!HTMLEditor.is_ie){function oy(ll){for (var i=0; i<ll.childNodes.length; i++){if (ll.childNodes.item(i).nodeType==1){if (ll.childNodes.item(i).tagName.toUpperCase()=="SCRIPT"){ll.childNodes.item(i).innerHTML=ll.childNodes.item(i).innerHTML.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }else oy(ll.childNodes.item(i)); }}}oy(X.i1.body); }if (HTMLEditor.is_ie)HTMLEditor.Oy(X.i1.body,X.i1); HTMLEditor.ly(X,X.i1,!X.showAnchors); HTMLEditor.iy(X,X.i1,!X.showPlaceHolders); if (X.rtlSet && !X.rtlState())X.rtl(); var body=Ox.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 && Iy(body.firstChild,"position")!="absolute"){body.style.cssText=body.firstChild.style.cssText; var oz=body.firstChild; while (oz.firstChild)body.insertBefore(oz.firstChild,oz); body.removeChild(oz); }if (X.Oz){body.style.cssText=X.Oz; X.Oz=null; }function lz(ij){if (ij && ij.type=="contextmenu"){if (!X.isPopup() && HTMLEditor.Id==null){if (HTMLEditor.is_ie){try {var iz=X.i1.selection; var Iz=X.Iq(iz); }catch (t){HTMLEditor._stopEvent(ij); return false; }}return X.o10(ij,ij.clientX,ij.clientY); }else {HTMLEditor._stopEvent(ij); return false; }}}HTMLEditor.Iv([body,X._iframe.contentWindow],["contextmenu"], function (event){var le= false; if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; if (X.O10){X.O10.select(); X.O10=null; }}if (HTMLEditor.is_Safari){var Oq=X.lq(); var iq=X.Iq(Oq); X.l10=iq.cloneRange(); }try {le=lz(HTMLEditor.is_ie?X._iframe.contentWindow.event:event); }catch (t){}return le; } ); HTMLEditor.ik(body,HTMLEditor.is_ie?"drop": "dragdrop", function (event){X.i10(); if (typeof X.onDrop=="function")setTimeout( function (){X.onDrop(X); } ,0); return true; } ); X.I10(); if (HTMLEditor.o11)X.f= true; if (!HTMLEditor.is_Safari)X.setTimeout( function (ox){if (X.lu(ox))return; if (!HTMLEditor.is_ie){if (X.O11!=null){X.selectAll(); X.l11(X.O11); X.O11=null; }}if (HTMLEditor.is_ie && !X._autoFocus){var i11=HTMLEditor.I11(X.i1.body.innerHTML); var o12=HTMLEditor.O12(X.i1.body.innerHTML); X.i1.body.innerHTML=X.i1.body.innerHTML; HTMLEditor.l12(X.i1.body,i11); HTMLEditor.i12(X.i1.body,o12); if (document.compatMode=="BackCompat")Ox.body.contentEditable= true; X._iframe.style.visibility="visible"; X.lq().empty(); }if (X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe && X._autoFocus){X.updateToolbar(); X.focusEditor(); if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && !HTMLEditor.o11){var anchor=X.i1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.i1.body.insertBefore(anchor,X.i1.body.firstChild); anchor.focus(); anchor.blur(); X.focusEditor(); X.i1.body.removeChild(anchor); }}}if (!HTMLEditor.is_ie)X.i1.body.innerHTML=HTMLEditor.I12(HTMLEditor.getHTML(X.i1.body, false , true)); if (!HTMLEditor.is_Safari || X.Ir>0)X.isActivated= true; if ((!X._StartEnd || !HTMLEditor.is_ie) && X._autoFocus){if (X.mode()=="html" && X.mainDivVisible && X._iframe && typeof iu!="function"){if (HTMLEditor.is_ie){X.setTimeout( function (ox){if (X.lu(ox))return; X.focusEditor(); var Oq=X.lq(); var iq=X.Iq(Oq); if (Oq.type.toLowerCase()!="control"){iq.moveEnd("textedit",1); iq.collapse( false); }iq.select(); X.updateToolbar(); X.focusEditor(); } ,0144); }else {X.o13( false); }}}HTMLEditor._CUROBJ_=null; if (X.scrollIntoView && !HTMLEditor.is_Safari)document.getElementById(X.mainDivId).scrollIntoView( false); if (X._autoFocus)X.focusEditor(); HTMLEditor.O13(X.i1.body); if (typeof iu=="function")iu(); X.Io= true; if (HTMLEditor.l13){var i13=X.clientID+"_bottom_chMode()"; try {eval(i13); }catch (I13){} ; }} ,HTMLEditor.is_ie?012: 0144); if (HTMLEditor.is_Safari){HTMLEditor.O13(X.i1.body); X.isActivated= true; HTMLEditor._CUROBJ_=null; if (X.o14) delete X.o14; X.o14=new Object(); X.setTimeout( function (ox){if (X.lu(ox))return; if (X.O11!=null){X.selectAll(); X.l11(X.O11); X.O11=null; }if (!X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe){X.o13( false); }}X.Io= true; } ,0144); }X.Ir++; X.on(); if (!X.Os){if (typeof EditorOnLoad=="function")X.setTimeout( function (ox){if (X.lu(ox))return; EditorOnLoad(X); } ,0310); }if (!X.Is){if (X._autoFocus){if (X._ModeHTML){if (X.l){X.l= false; X.O14=HTMLEditor.I12(HTMLEditor.getHTML(X.i1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l14(); }}X.setTimeout( function (ox){if (X.lu(ox))return; X.chMode("text"); } ,0764); }}}if (!X._autoFocus){X.i14=X.Is; X.setTimeout( function (ox){if (X.lu(ox))return; if (!X.i14 && X._ModeHTML){if (X.l){X.l= false; X.O14=HTMLEditor.I12(HTMLEditor.getHTML(X.i1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l14(); }}X.setTimeout( function (ox){if (X.lu(ox))return; X.chMode("text"); } ,0764); }else {HTMLEditor.I14(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I14(X.ShowQuickFormatDivId, true); }} ,HTMLEditor.is_ie?0144: 012); }X.Os= true; X.Is= true; if (X.l){X.setTimeout( function (ox){if (X.lu(ox))return; X.l= false; X.O14=HTMLEditor.I12(HTMLEditor.getHTML(X.i1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l14(); }} ,0310); }if (HTMLEditor.is_ie && X._setRealSize && typeof X._setRealSize=="function"){X._textArea.style.display=""; X._setRealSize(); var height=X._textArea.offsetHeight; X._iframe.style.height=height+"px"; X.iv.style.height=height+"px"; if (HTMLEditor.is_ie)height-=2; X.o15.style.height=height+"px"; X.i8.O9=X._textArea.offsetHeight;X._textArea.style.display="none"; X._setRealSize=null; }}X.setTimeout(Iw,012); };HTMLEditor.prototype.ContentChanged= function (Im){var O15=this.mode(); var l15=(typeof Im=="undefined")? true :Im;if (O15=="preview")O15=this.i15; try {if (this.O1 && O15=="html"){if (this.l)return false; if (this.O14){if (this.mode()=="preview"){return (!(this.O14==HTMLEditor.I12(this.I15))) && l15; }else {return !(this.O14==HTMLEditor.I12(HTMLEditor.getHTML(this.i1.body, false , true))); }}else return false; }else {if (this.o15 && this.o16!=null){return (!(HTMLEditor.I12(this.o16)==HTMLEditor.I12(this.o15.value)) || (this.O16 && l15)); }else {return false; }}}catch (t){return false; }};HTMLEditor.prototype.l14= function (){var X=this ; if (this.onClientContentChanged==null || typeof this.onClientContentChanged!="function")return; try {if (this.O1 && this.mode()=="html"){var l16=HTMLEditor.I12(this.i1.body.innerHTML); if (this.l0!=null){if (this.l0!=l16){var i16= {previous:{} ,current:{}} ; var div=document.createElement("div"); div.innerHTML=this.l0; i16.previous.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; i16.previous.htmlTextLength=HTMLEditor.I12(div.innerHTML).length; this.l0=l16; div.innerHTML=this.l0; i16.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; i16.current.htmlTextLength=HTMLEditor.I12(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(i16); }catch (t){}} ,0); delete div; }}else {var i16= {previous:{} ,current:{}} ; var div=document.createElement("div"); i16.previous.plainTextLength=0; i16.previous.htmlTextLength=0; this.l0=l16; div.innerHTML=this.l0; i16.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; i16.current.htmlTextLength=HTMLEditor.I12(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(i16); }catch (t){}} ,0); delete div; }}}catch (t){}};HTMLEditor.prototype.o13= function (I16){var X=this ; X.setTimeout( function (ox){if (X.lu(ox))return; var index=0; var o17=X.i1.body; var anchor=null; if (!X._StartEnd || I16){if (o17.lastChild && o17.lastChild.nodeType==3){o17=o17.lastChild; index=(""+o17.data+"").length; }else if (o17.lastChild && o17.lastChild.nodeType==1 && o17.lastChild.tagName.toUpperCase()=="BR"){index=HTMLEditor.O17(o17.lastChild); var l17=X.i1.createTextNode(""); o17.insertBefore(l17,o17.lastChild); o17=l17; index=0; }else {var l17=X.i1.createTextNode(""); o17.appendChild(l17); o17=l17; index=0; }}if (HTMLEditor.is_Safari){X.o14.type="Caret"; X.o14.focusNode=o17; X.o14.focusOffset=index; }else {var Oq=X.lq(); X.i17(Oq); var iq=X.Iq(); iq.setStart(o17,index); iq.setEnd(o17,index); X.I17(Oq,iq); }if (anchor!=null){X.i1.body.removeChild(anchor); }X.updateToolbar(); X.focusEditor(); if (!X._StartEnd || I16)if (!HTMLEditor.is_Safari && !HTMLEditor.o11){try {var anchor=X.i1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.i1.body.appendChild(anchor); anchor.focus(); anchor.blur(); X.focusEditor(); X.i1.body.removeChild(anchor); }catch (t){}}} ,012); };HTMLEditor.prototype.o18= function (){} ; HTMLEditor.prototype.popupClosed= function (){} ; HTMLEditor.prototype.updateToolbar= function (){} ; HTMLEditor.prototype.O18= function (){var X=this ; var lk=HTMLEditor.getHTML(X.i1.body, false , true); var le=[HTMLEditor.I12(lk),lk]; return le; };HTMLEditor.prototype.setMode= function (mode,l18){var X=this ; switch (mode){case "preview":if (!this._autoFocus && !this._wasFocused){HTMLEditor.i18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId); }X.openWait(); X._waitSetMode= true; setTimeout( function (){var I18=""; X.i15=X.l1; if (X.l1=="html"){X.i10(); var o19=X.O18(); X.I15=o19[0]; I18=X.getHTML( false ,o19[1]); X.O19=I18; X.Oz=X.i1.body.style.cssText; try {if (HTMLEditor.is_ie)X.lq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var Il=X.O1.removeChild(X._iframe); X._iframe=null; delete Il; }catch (t){}if (!HTMLEditor.is_Safari){X.ix=X.i8.O9; X.l19=X.i8.i19; }if (X.ShowQuickFormatDivId!=null){HTMLEditor.I14(X.ShowQuickFormatDivId); }}else {if (X.o15){I18=X.o15.value; X.o15.style.display="none"; if (HTMLEditor.is_ie)X.o15.style.visibility="hidden"; if (!HTMLEditor.is_Safari){X.i8.O9=X.ix; X.i8.i19=X.l19; X.iv.style.height=X.i8.O9; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){}}}X.iv.style.display=""; X.l1=mode; setTimeout( function (){X.I19(I18); if (typeof l18=="function")try {l18(); }catch (t){} ; X._waitSetMode= false; try {X.iv.focus(); }catch (t){}} ,0); } ,0); break; case "text":if (X.l1=="preview"){var o1a; X.iv.style.display="none"; X.iv.src=HTMLEditor.is_ie?"javascript:false;": ""; if (HTMLEditor.is_ie)X.iv.style.visibility="hidden"; X.o15.style.display=""; if (X.i15=="html"){o1a=X.O19; X.o16=o1a; }else {o1a=X.o15.value; }X._waitSetMode= true; X.o15.value=""; X.l1=mode; setTimeout( function (){setTimeout( function (){X.o15.value=o1a; X.focusEditor(); X._waitSetMode= false; } ,0144); if (typeof l18=="function")try {l18(); }catch (t){} ; if (!HTMLEditor.is_Safari){X.i8.O9=X.ix; X.i8.i19=X.l19; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.o15.style.height=parseInt(X.i8.O9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.o15.style.width="100%"; setTimeout( function (){X.o15.style.width=X.o15.offsetWidth+"px"; } ,0); }}if (HTMLEditor.is_ie)X.o15.style.visibility="visible"; } ,0); return; }else X.Oz=X.i1.body.style.cssText; if (!this._autoFocus && !this._wasFocused){HTMLEditor.i18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId); }try {X.i10(); }catch (t){} ; X.openWait(); X._waitSetMode= true; if (this.It() && this.i0){var O1a=HTMLEditor.om+"_right"; var l1a=HTMLEditor.om+"_left"; var i1a=this.i1.createElement("SPAN"); i1a.id=l1a; var I1a=this.i1.createElement("SPAN"); I1a.id=O1a; try {if (!this.Or()){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; var Oq=this.lq(); var iq=this.Iq(Oq); var l1b=(HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (l1b){var i1b=this.I1b(); i1b[0].parentNode.insertBefore(i1a,i1b[0]); if (i1b[i1b.length-1].nextSibling!=null)i1b[i1b.length-1].parentNode.insertBefore(I1a,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(I1a); }else {var o1c=this.i1.createElement("DIV"); o1c.appendChild(i1a); o1c.appendChild(I1a); this.l11(o1c.innerHTML); delete o1c; }}else {var O1c=HTMLEditor.getSelParent(this ); O1c.parentNode.insertBefore(i1a,O1c); if (O1c.nextSibling!=null)O1c.parentNode.insertBefore(I1a,O1c.nextSibling); else O1c.parentNode.appendChild(I1a); }}catch (w){var l1c=this.i1.getElementById(l1a); if (l1c!=null)l1c.parentNode.removeChild(l1c); l1c=this.i1.getElementById(O1a); if (l1c!=null)l1c.parentNode.removeChild(l1c); }}setTimeout( function (){var o19=X.O18(); X.I15=o19[0].replace(/<span id="OboutMSIEparagraph_left"><\/span>/,"").replace(/<span id="OboutMSIEparagraph_right"><\/span>/,""); var I18=X.getHTML( false ,o19[1]); var i1c=0; var I1c=0; var o1d; o1d=I18.indexOf("\x3cspan id=\"OboutMSIEparagraph_left\">\x3c/span>"); if (o1d>=0)i1c=o1d; I18=I18.replace(/<span id="OboutMSIEparagraph_left"><\/span>/,""); o1d=I18.indexOf("\x3cspan id=\"OboutMSIEparagraph_right\">\x3c/span>"); if (o1d>=0)I1c=o1d; I18=I18.replace(/<span id="OboutMSIEparagraph_right"><\/span>/,""); if (HTMLEditor.o11){var O1d=0; for (var i=0; i<i1c; i++)if (I18[i]=="\n")O1d++; i1c+=O1d; O1d=0; for (var i=0; i<I1c; i++)if (I18[i]=="\n")O1d++; I1c+=O1d; }X.iv.style.display="none"; if (HTMLEditor.is_ie)X.iv.style.visibility="hidden"; X.o16=I18; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.lq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var Il=X.O1.removeChild(X._iframe); X._iframe=null; delete Il; }catch (t){}X.o15.value=""; X.o15.style.display=""; X.l1=mode; setTimeout( function (){setTimeout( function (){X.o15.value=I18; X.focusEditor(); X._waitSetMode= false; if (X.i0)if (X.o15.setSelectionRange && I1c>0){X.o15.setSelectionRange(I1c-1,I1c); var ij=null; try {ij=document.createEvent("KeyEvents"); ij.initKeyEvent("keypress", true , true ,window, false , false , false , false ,0,X.o15.value.charCodeAt(I1c-1)); }catch (w){try {ij=document.createEvent("Events"); }catch (l1d){ij=document.createEvent("UIEvents"); } finally {ij.initEvent("keypress", true , true); ij.i1d=window; ij.altKey= false; ij.ctrlKey= false; ij.shiftKey= false; ij.I1d= false; ij.keyCode=X.o15.value.charCodeAt(I1c-1); ij.charCode=X.o15.value.charCodeAt(I1c-1); }}X.o15.focus(); X.o15.dispatchEvent(ij); X.o15.setSelectionRange(i1c,I1c); }else HTMLEditor.setSelectionRange(X.o15,i1c,I1c); X.i0= true; } ,0144); if (typeof l18=="function")try {l18(); }catch (t){} ; if (!HTMLEditor.is_Safari && (X.It() || !HTMLEditor.is_ie)){var o1e=document.getElementById(X.panelDivId); o1e.style.display="none"; }if (X.ShowQuickFormatDivId!=null){setTimeout( function (){HTMLEditor.I14(X.ShowQuickFormatDivId); } ,0); }if (!HTMLEditor.is_Safari){X.ix=X.i8.O9; X.l19=X.i8.i19; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.o15.style.height=parseInt(X.i8.O9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.o15.style.width="100%"; setTimeout( function (){X.o15.style.width=X.o15.offsetWidth+"px"; } ,0); }}else {if (!HTMLEditor.is_Safari){X.o15.style.height=parseInt(X.i8.O9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+parseInt(X.l19)+"px";}}X.on(); if (HTMLEditor.is_ie)X.o15.style.visibility="visible"; X.focusEditor(); } ,0764); } ,0); break; case "html":if (X._iframe!=null)try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.lq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var Il=X.O1.removeChild(X._iframe); X._iframe=null; delete Il; }catch (t){}if (HTMLEditor.is_ie)if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId); X.openWait(); X._waitSetMode= true; if (HTMLEditor.is_Safari)X._textArea.style.display=""; X.setTimeout( function (ox){if (X.lu(ox)){if (typeof l18=="function")try {l18(); }catch (t){} ; return; }if (X.ContentChanged( false) || X.l || X.I15==null || typeof X.I15=="undefined"){X.F=null; X._textArea.value=X.getHTML(); X.Oz=null; if (X.iv!=null)X.iv.src=HTMLEditor.is_ie?"javascript:false;": ""; }else {X._textArea.value=X.I15; }if (HTMLEditor.is_Safari)X._textArea.style.display="none"; if (HTMLEditor.is_Safari)X._textArea.style.visibility="hidden"; if (HTMLEditor.is_Safari)if (X.o15!=null)X.o15.style.visibility="hidden"; if (X.ShowQuickFormatDivId!=null)HTMLEditor.i18(X.ShowQuickFormatDivId); if (!X.ContentChanged( false)){if (X.K)if (X.O1e>0)X.O1e--; }if (!HTMLEditor.is_Safari){if (typeof X.ix!="undefined")X.i8.O9=X.ix; if (typeof X.l19!="undefined")X.i8.i19=X.l19; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X.o15!=null){X.o15.style.width=parseInt(X.o15.style.width)-X.lx+"px"; X.i8.o9=parseInt(X.o15.style.width)+(document.compatMode!="BackCompat"?4: 2)+"px"; }X.setTimeout( function (ox){if (X.lu(ox))return; try {var Il=X._textArea.parentNode.removeChild(X.O1); X.O1=null; delete Il; }catch (t){}var o1e=document.getElementById(X.panelDivId); o1e.style.display=""; X.activate(); X.l1=mode; if (typeof l18=="function")try {l18(); }catch (t){} ; if (!(HTMLEditor.is_Safari && X.__NoToolBar__))if (X.mainDivVisible){X.setTimeout( function (ox){if (X.lu(ox))return; X._onresize(); } ,0); }setTimeout( function (){X._waitSetMode= false; } ,0144); } ,0); } ,0); break; default:X._waitSetMode= false; alert("Mode <"+mode+"> not defined"); return false; }} ; HTMLEditor.I1=null; HTMLEditor.prototype.isPopup= function (){return (this.I1!=null || HTMLEditor.I1!=null || HTMLEditor.l1e!=null); };HTMLEditor.prototype.i1e= function (name){if (this.O1 && this.mode()=="html" && !this.isPopup()){ this._CSSfile=name; var Il=this._textArea.parentNode.removeChild(this.O1); var save=this.i1.body.innerHTML; this.O1=null; delete Il; this._textArea.value=save; this.activate(); return true; }return false; };HTMLEditor.prototype.undo= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.I1e( true); this.l14(); };HTMLEditor.prototype.redo= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.o1f(); this.l14(); };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.O1f(); X.l1f("c", true); X.on(); X.i1f(); } ,0);}else this.l1f("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.O1f(); X.l1f("x", true); X.on(); } ,0);}else this.l1f("x", true); };HTMLEditor.prototype.deleteSelection= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){var Oq=this.lq(); this.i10(); Oq.clear(); this.I10(); }else this.l1f("x", true); };HTMLEditor.prototype.paste= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.i10(); this.openWait(); setTimeout( function (){X._paste( true); X.on(); } ,0);}else {var Oq=this.lq(); var iq=this.Iq(Oq); this.i17(Oq); if (HTMLEditor.is_Safari)alert(this.Of("safari-v","Use Apple-V")); else alert(this.Of("moz-v","Use Ctrl-V")); if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); this.isWord= false; }};HTMLEditor.prototype.pasteWord= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.i10(); this.openWait(); setTimeout( function (){X._paste( true , true); X.on(); } ,0);}else {var Oq=this.lq(); var iq=this.Iq(Oq); var I1f=this.Of("msword-switched","Pasting from MS Word is switched on. Just now:")+" "; I1f+=(HTMLEditor.is_Safari)?this.Of("safari-v","Use Apple-V"): this.Of("moz-v","Use Ctrl-V"); this.i17(Oq); alert(I1f); if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); this.isWord= true; }};HTMLEditor.prototype.contextMenu= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; setTimeout( function (){X.o1g(); } ,0); };HTMLEditor.prototype.pasteText= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.i10(); this.openWait(); setTimeout( function (){X._paste( false); X.on(); } ,0);}else {var Oq=this.lq(); var iq=this.Iq(Oq); var X=this ; var Ox=X.i1; function O1g(l1g){if (l1g.length>0){X.i10(); X.l11(l1g); X.l14(); }X.focusEditor(); return true; } this.Ii("_mozPastePlain",O1g,this.og("paste-plain","Paste Plain Text")); }};HTMLEditor.prototype.selectAll= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_ie){var i1g=this.i1.body.createTextRange(); i1g.select(); }else {if (HTMLEditor.o11){ this.f= true; this.focusEditor(); }var Oq=this.lq(); this.i17(Oq); var iq=this.Iq(); iq.selectNodeContents(this.i1.body); if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); } this.updateToolbar(); };HTMLEditor.prototype.selectNone= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var Oq=this.lq(); var iq=this.Iq(Oq); if (HTMLEditor.is_ie){iq.setEndPoint("StartToEnd",iq); iq.select(); }else {if (HTMLEditor.o11){ this.f= true; this.focusEditor(); } this.i17(Oq); iq.setStart(iq.endContainer,iq.endOffset); this.I17(Oq,iq); }setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,0144); };HTMLEditor.prototype.rtl= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.i1.body.style.direction=(!this.rtlState())?"rtl": ""; this.updateToolbar(); };HTMLEditor.prototype.rtlState= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; if (this.i1.body.style.direction && this.i1.body.style.direction=="rtl")return true; return false; };HTMLEditor.prototype.ltr= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.i1.body.style.direction=(!this.ltrState())?"": "rtl"; this.updateToolbar(); };HTMLEditor.prototype.ltrState= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return true; if (!(this.i1.body.style.direction && this.i1.body.style.direction=="rtl"))return true; return false; };HTMLEditor.prototype.I1g= false; HTMLEditor.prototype.bold= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("bold"); };HTMLEditor.prototype.boldState= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("bold"); };HTMLEditor.prototype.l1h= false; HTMLEditor.prototype.italic= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; this.o1h("italic"); };HTMLEditor.prototype.italicState= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("italic"); };HTMLEditor.prototype.i1h= false; HTMLEditor.prototype.underline= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; this.o1h("underline"); };HTMLEditor.prototype.underlineState= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("underline"); };HTMLEditor.prototype.I1h= false; HTMLEditor.prototype.strikeThrough= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("strikeThrough"); };HTMLEditor.prototype.strikeThroughState= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("strikeThrough"); };HTMLEditor.prototype.o1i= false; HTMLEditor.prototype.subScript= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; this.o1h("subScript"); };HTMLEditor.prototype.subScriptState= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("subScript"); };HTMLEditor.prototype.O1i= false; HTMLEditor.prototype.superScript= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("superScript"); };HTMLEditor.prototype.superScriptState= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("superScript"); };HTMLEditor.prototype.foreColor= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1i(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.i1i("forecolor", false ,par); } ,0144); }else X.i1i("forecolor", false ,par); }if (HTMLEditor.is_Safari)this.Iq(this.lq()); setTimeout( function (){try {X.Ii("_selectColor",X.Og("color","Font Color"),l1i); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.foreColorValue= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.Or())return "#000000"; var le=HTMLEditor.I1i(this.o1j("forecolor")); return le; };HTMLEditor.prototype.foreColorClear= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.Iq(this.lq()); this.i1i("forecolor", false ,""); };HTMLEditor.prototype.backColor= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1i(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.i1i("backcolor", false ,par); } ,0144); }else X.i1i("backcolor", false ,par); }if (HTMLEditor.is_Safari)this.Iq(this.lq()); setTimeout( function (){try {X.Ii("_selectColor",X.og("color","Background Color"),l1i); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.backColorValue= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.Or())return "#FFFFFF"; return HTMLEditor.I1i(this.o1j("backcolor")); };HTMLEditor.prototype.backColorClear= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.Iq(this.lq()); this.i1i("backcolor", false ,""); };HTMLEditor._styleTags=["strong","em","u","strike","s","span","font","b","sub","sup","a","i"]; HTMLEditor.O1j= function (il){if (!il)return false; for (var i=0; i<HTMLEditor._styleTags.length; i++)if (HTMLEditor._styleTags[i].toLowerCase()==il.toLowerCase())return true; return false; };HTMLEditor.prototype.clearStyles= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari)this.Iq(this.lq()); setTimeout( function (){try {X.Ii("_clearStyles"); X.l14(); }catch (t){}} ,012); };HTMLEditor.prototype.setClassName= function (name){var X=this ; if (!this._wasFocused)return; this.focusEditor(); if (HTMLEditor.is_Safari)this.Iq(this.lq()); try {var le=this._setClassName(name); this.l14(); return le; }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.Iq(this.lq()); if (this.Or()){ this.i10(); try {HTMLEditor.getSelParent(this ).className=name; }catch (t){ this.I1e( false); }}else this.setClassName(name); return true; };HTMLEditor.prototype.SelectedTextNodes= function (){if (this.mode()!="html")return []; this.focusEditor(); if (HTMLEditor.is_Safari)this.Iq(this.lq()); var i1b=this.I1b(); if (i1b.length>0)this.l1j(i1b); return i1b; };HTMLEditor.prototype.i1j= function (){if (this.mode()!="html")return null; this.focusEditor(); var Oq=this.lq(); var iq=this.Iq(Oq); var parent=null; if (HTMLEditor.is_ie){if (Oq.type.toLowerCase()=="control")parent=iq.item(0); else parent=null; }else {parent=this.or(iq); if (parent.nodeType!=3 && iq.startContainer==iq.endContainer){if (!parent.tagName)return null; if (iq.startContainer.childNodes.item(iq.startOffset)==null)return null; if (iq.startOffset==iq.endOffset && iq.startContainer.childNodes.item(iq.startOffset).tagName && iq.startContainer.childNodes.item(iq.startOffset).tagName.toUpperCase()=="BR")return null; if (parent.tagName.toUpperCase()=="BODY" && iq.startOffset==0 && iq.endOffset>0 && iq.endOffset==parent.childNodes.length)return null; parent=iq.startContainer.childNodes.item(iq.startOffset); }else return null; }return parent; };HTMLEditor.prototype.getClassName= function (){try {var Oq=this.lq(); var iq=this.Iq(Oq); var parent; if (HTMLEditor.is_ie && Oq.type.toLowerCase()=="control")parent=iq.item(0); else parent=this.or(iq); if (parent.nodeType==3){parent=parent.parentNode; }while ( true){if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.om && parent.className.length>0){return parent.className; }else {if (parent && parent.tagName && HTMLEditor.O1j(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.Iq(this.lq()); this.o1h("fontname",select.options.item(select.selectedIndex).value); }catch (t){alert("FontName: "+t.message); } ; };HTMLEditor.prototype.I1j=0; HTMLEditor.prototype.fontNameState= function (o1k){var param=null; try {param=this.o1j("fontname"); }catch (t){}if (!this._FontNotSet)if (!param || param.length==0){if (!this.O1k)this.O1k=HTMLEditor.Iy(this.i1.body,"font-family"); param=this.O1k; }if (typeof o1k!="undefined"){var ll=document.getElementById(o1k); ll=ll.childNodes.item(1); var i=0; if (param && param.length>0){var ie=param.toLowerCase().split(",")[0]; for (i=0; i<ll.options.length; i++){var l16=ll.options.item(i).value.toLowerCase().split(",")[0]; if (l16==ie)break; }if (i==ll.options.length){try {var l1k=document.createElement("OPTION"); l1k.value=param; l1k.text=param.split(",")[0]; ll.add(l1k,HTMLEditor.is_ie?i:null); X.I1j=0; }catch (t){var X=this ; if (X.I1j<012){setTimeout( function (){X.fontNameState(o1k); } ,0144); X.I1j++; }i=0; }}}ll.selectedIndex=i; }return param; };HTMLEditor.i1k= function (I1k){var ie=I1k.toString(); switch (ie){case "1":ie="8pt"; break; case "2":ie="10pt"; break; case "3":ie="12pt"; break; case "4":ie="14pt"; break; case "5":ie="18pt"; break; case "6":ie="24pt"; break; case "7":ie="36pt"; break; }return ie; };HTMLEditor.prototype.fontSize= function (select,event){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }HTMLEditor._stopEvent(event); if (event.type=="click" && !HTMLEditor.is_Safari)return false; var X=this ; if (HTMLEditor.is_Safari)this.Iq(this.lq()); this.o1h("fontsize",HTMLEditor.i1k(select.options.item(select.selectedIndex).value)); };HTMLEditor.prototype.o1l=0; HTMLEditor.prototype.fontSizeState= function (o1k){var param=null; try {param=this.o1j("fontsize",o1k); }catch (t){}if (param)param=param.toString(); if (!this._FontNotSet)if (!param || param.length==0){if (!this.O1l){ this.O1l=HTMLEditor.Iy(this.i1.body,"font-size"); this.O1l=HTMLEditor.l1l(this.O1l,this,o1k); }param=this.O1l; }if (typeof o1k!="undefined"){try {var ll=document.getElementById(o1k); ll=ll.childNodes.item(1); var i=0; if (param && param.length>0){var ie=param.toLowerCase().split(",")[0]; for (i=0; i<ll.options.length; i++){var l16=HTMLEditor.i1k(ll.options.item(i).value.toLowerCase().split(",")[0]); if (l16==ie)break; }if (i==ll.options.length){try {var l1k=document.createElement("OPTION"); l1k.value=param; l1k.text=param; ll.add(l1k,HTMLEditor.is_ie?i:null); X.o1l=0; }catch (t){var X=this ; if (X.o1l<012){setTimeout( function (){X.fontSizeState(o1k); } ,0144); X.o1l++; }i=0; }}}ll.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.o1h("justifyLeft",value); };HTMLEditor.prototype.justifyFull= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("justifyFull",null); };HTMLEditor.prototype.justifyCenter= function (value){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("justifyCenter",value); };HTMLEditor.prototype.justifyRight= function (value){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("justifyRight",value); };HTMLEditor.prototype.paragraph= function (value){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("paragraph",value); };HTMLEditor.prototype.orderedList= function (value){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1h("InsertOrderedList",value); };HTMLEditor.prototype.bulletedList= function (value){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1h("InsertUnorderedList",value); };HTMLEditor.prototype.decreaseIndent= function (value){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1h("Outdent",value); };HTMLEditor.prototype.increaseIndent= function (value){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1h("Indent",value); };HTMLEditor.prototype.createLink= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari && !HTMLEditor.ok){param=prompt("Enter URL"); this.SurroundHTML("<a href='"+param+"'>","</a>"); return; }try {if (this.O1 && this.mode()=="html" && !this.isPopup()){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; var Oq=this.lq(); var iq=this.Iq(Oq); var i1l=null; if (!(this.Or() && HTMLEditor.getSelParent(this ).tagName && (HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="EMBED" || HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG")) && !(!this.Or() && ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))){ this.i10(); var I1l=this.i1.createElement("span"); I1l.innerHTML="new link"; I1l.id=HTMLEditor.om; var o1m= true; if (HTMLEditor.is_ie && this.Or()){var O1c=iq.item(0); var O1m=this.i1.createElement("span"); O1c.parentNode.insertBefore(O1m,O1c); i1l=I1l.firstChild; O1c.parentNode.insertBefore(i1l,O1c); var l1m=this.i1.createElement("span"); O1c.parentNode.insertBefore(l1m,O1c); O1c.parentNode.removeChild(O1c); this.i1m([O1m,l1m], false); o1m= false; }else { this.l11(HTMLEditor.getHTML(I1l, true)); var ll=this.i1.getElementById(HTMLEditor.om); i1l=ll.firstChild; ll.parentNode.insertBefore(ll.firstChild,ll); ll.parentNode.removeChild(ll); }if (!HTMLEditor.is_ie){iq=this.Iq(); iq.setStart(i1l,0); iq.setEnd(i1l,(""+i1l.data+"").length); this.i17(Oq); this.I17(Oq,iq); }else {if (o1m)iq.select(); }o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; Oq=this.lq(); iq=this.Iq(Oq); }if ((this.Or() && HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG") || (!this.Or() && ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))){ this.i10(); var I1m=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); var i16= {target: "default",href:I1m,title: "" } ; var o1n; function O1g(O1n){try {if (O1n){var l1n=X.i1.getElementsByTagName("A"); var i1n=0; for (var i=0; i<l1n.length; i++){var I1n= true; var a=l1n[i]; for (var oh=0; oh<o1n.length; oh++)if (a==o1n[oh]){I1n= false; break; }if (!I1n)continue; try {var o1o=a.href; a.href=i16.href; if (i16.target)a.target=i16.target; if (i16.title.length>0)a.title=i16.title; i1n=i; }catch (w){}}if (i1l)i1l.data=i16.href; if (HTMLEditor.o11)X.f= true; if (l1n.length>0){var O1o=l1n[i1n]; var I1l=X.i1.createElement("span"); I1l.innerHTML="&nbsp;"; if (O1o.nextSibling!=null)O1o.parentNode.insertBefore(I1l,O1o.nextSibling); else O1o.parentNode.appendChild(I1l); setTimeout( function (){HTMLEditor.l1o(I1l,X); setTimeout( function (){O1o.parentNode.removeChild(I1l); } ,0); } ,0); }setTimeout( function (){X.updateToolbar(); X.l14(); } ,5); }else {X.I1e( false); X.K.pop(); if (i1l){X.I1e( false); X.K.pop(); }}X.focusEditor(); }catch (t){alert("URL Link create: "+t.message); }return true; }var lk=X.i1.getElementsByTagName("A"); var l1n=[]; for (var i=0; i<lk.length; i++){try {var hr=lk[i].href; l1n.push([lk[i],""+hr+""]); }catch (w){}} this.i1i("createLink", false ,I1m); o1n=[]; for (var i=0; i<l1n.length; i++){var a=l1n[i][0]; var href=l1n[i][1]; if (a.href==href)o1n.push(a); } this.Ii("_urlProperties",this.og("link","Create an URL Link"),i16,O1g); }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 O1g(O1n){if (!O1n){setTimeout( function (){X.I1e( false); } ,012); }else {if (link.title.length==0){link.title=null; link.removeAttribute("title"); }if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); X.Ii("_urlProperties",X.Og("link","Edit an URL Link"),link,O1g); };HTMLEditor.i1o=/^(([0-9]+(px|%|$))|$)/i; HTMLEditor.setSelectionRange= function (input,I1o,o1p){try {var start=(typeof I1o=="undefined")?0:I1o; var end=(typeof o1p=="undefined")?input.value.length:o1p; input.focus(); if (input.setSelectionRange){input.setSelectionRange(start,end); }else if (input.createTextRange){var iq=input.createTextRange(); iq.collapse( true); iq.moveEnd("character",end); iq.moveStart("character",start); iq.select(); }}catch (t){}};HTMLEditor.prototype.insertDiv= function (){var X=this ; var O1p; var id=HTMLEditor.om; var innerHTML="<div id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Div"; innerHTML+="</div>"; if (X.InsertHTML(innerHTML)){O1p=X.getDocument().getElementById(id); O1p.id=null; O1p.removeAttribute("id"); X.l1p(O1p, false); }};HTMLEditor.I3= function (X,O1p){X.SaveContent(); X.l1p(O1p, true); };HTMLEditor.prototype.l1p= function (O1p,i1p){var X=this ; function disableEvents(Ox){Ox.getElementById("idField").disabled= true; Ox.getElementById("widthField").disabled= true; Ox.getElementById("heightField").disabled= true; Ox.getElementById("borderWidth").disabled= true; Ox.getElementById("borderColor").disabled= true; Ox.getElementById("borderStyle").disabled= true; Ox.getElementById("bgColor").disabled= true; Ox.getElementById("clearColor").disabled= true; Ox.getElementById("clearColor").className="dbutton"; Ox.getElementById("bgImage").disabled= true; Ox.getElementById("clearImage").disabled= true; Ox.getElementById("clearImage").className="dbutton"; }function enableEvents(Ox){Ox.getElementById("idField").disabled= false; Ox.getElementById("widthField").disabled= false; Ox.getElementById("heightField").disabled= false; Ox.getElementById("borderWidth").disabled= false; Ox.getElementById("borderColor").disabled= false; Ox.getElementById("borderStyle").disabled= false; Ox.getElementById("bgColor").disabled= false; Ox.getElementById("clearColor").disabled= false; Ox.getElementById("clearColor").className="button"; Ox.getElementById("bgImage").disabled= false; Ox.getElementById("clearImage").disabled= false; Ox.getElementById("clearImage").className="dbutton"; }function color(){function I1p(par){X.o1q.getElementById("borderColor").style.backgroundColor=par; }X.Ii("_selectColor",X.o1q.getElementById("borderColor").title,I1p); }function bgColor(){function O1q(par){X.o1q.getElementById("bgColor").value=""; X.o1q.getElementById("bgColor").style.backgroundColor=par; }X.Ii("_selectColor",X.o1q.getElementById("bgColor").title,O1q); }function l1q(){X.o1q.getElementById("bgColor").value=X.i1q; X.o1q.getElementById("bgColor").style.backgroundColor=""; }function I1q(){var o1r=new Object(); var Ox=X.o1q; o1r.src=""; o1r.O1r="LEFT"; o1r.l1r="TOP"; o1r.repeat="REPEAT"; o1r.i1r="FIXED"; if (Ox.getElementById("bgImage").style.backgroundImage && Ox.getElementById("bgImage").style.backgroundImage.length>0){var lk=Ox.getElementById("bgImage").style.backgroundImage; lk=lk.replace(/^url\(["']?(.+)["']?\)$/i,"$1"); o1r.src=lk.replace(/(\s)/g,"%20"); }if (Ox.getElementById("bgImage").style.backgroundPosition && Ox.getElementById("bgImage").style.backgroundPosition.length>0){var lk=Ox.getElementById("bgImage").style.backgroundPosition; lk=lk.split(" "); if (lk.length>0)o1r.O1r=lk[0]; if (lk.length>1)o1r.l1r=lk[1]; }if (Ox.getElementById("bgImage").style.backgroundRepeat && Ox.getElementById("bgImage").style.backgroundRepeat.length>0)o1r.repeat=Ox.getElementById("bgImage").style.backgroundRepeat; if (Ox.getElementById("bgImage").style.backgroundAttachment && Ox.getElementById("bgImage").style.backgroundAttachment.length>0)o1r.i1r=Ox.getElementById("bgImage").style.backgroundAttachment; function l1i(O1n){if (O1n){var save=Ox.getElementById("bgImage").style.backgroundImage; Ox.getElementById("bgImage").value=""; var I1r=(o1r.src.indexOf("'")>=0)?"\"": "'"; Ox.getElementById("bgImage").style.backgroundImage=""; Ox.getElementById("bgImage").style.backgroundImage="url("+I1r+o1r.src.replace(/(\s)/g,"%20")+I1r+")"; Ox.getElementById("bgImage").style.backgroundRepeat=o1r.repeat; Ox.getElementById("bgImage").style.backgroundAttachment=o1r.i1r; Ox.getElementById("bgImage").style.backgroundPosition=o1r.O1r+" "+o1r.l1r; if (Ox.getElementById("bgImage").style.backgroundImage.length==0){X.o1.setTimeout( function (){Ox.getElementById("bgImage").style.backgroundImage=save; if (save.length==0)o1s(); X.o1.alert(X.Of("bad-bg-img","Incorrect Image file for Background.")); } ,0); }}}X.Ii("_bgImageProperties",Ox.getElementById("bgImage").title,o1r,l1i); }function o1s(){X.o1q.getElementById("bgImage").value=X.O1s; X.o1q.getElementById("bgImage").style.backgroundImage=""; X.o1q.getElementById("bgImage").style.backgroundRepeat=""; X.o1q.getElementById("bgImage").style.backgroundAttachment=""; }function l1i(Ox,l1s){if (Ox!=null){var i1s=Ox.getElementById("overflow").value.replace(/^[\s]+/,""); var width=Ox.getElementById("widthField").value.replace(/^[\s]+/,""); var height=Ox.getElementById("heightField").value.replace(/^[\s]+/,""); var borderWidth=Ox.getElementById("borderWidth").value.replace(/^[\s]+/,""); var borderStyle=Ox.getElementById("borderStyle").value.replace(/^[\s]+/,""); var borderColor=Ox.getElementById("borderColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundColor=Ox.getElementById("bgColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundImage=Ox.getElementById("bgImage").style.backgroundImage.replace(/^[\s]+/,""); var backgroundRepeat=Ox.getElementById("bgImage").style.backgroundRepeat.replace(/^[\s]+/,""); var backgroundAttachment=Ox.getElementById("bgImage").style.backgroundAttachment.replace(/^[\s]+/,""); var backgroundPosition=Ox.getElementById("bgImage").style.backgroundPosition.replace(/^[\s]+/,""); var id=Ox.getElementById("idField").value.replace(/^[\s]+/,""); if (!HTMLEditor.i1o.test(width)){HTMLEditor.setSelectionRange(Ox.getElementById("widthField")); return false; }if (!HTMLEditor.i1o.test(height)){HTMLEditor.setSelectionRange(Ox.getElementById("heightField")); return false; }if (!HTMLEditor.i1o.test(borderWidth)){HTMLEditor.setSelectionRange(Ox.getElementById("borderWidth")); return false; }if (id.length>0 && X.i1.getElementById(id)!=null && X.i1.getElementById(id)!=O1p){HTMLEditor.setSelectionRange(Ox.getElementById("idField")); return false; }O1p.style.width=width; O1p.style.height=height; O1p.style.borderWidth=borderWidth; if (id.length>0)O1p.id=id; else {O1p.id=null; O1p.removeAttribute("id"); }O1p.style.overflow=i1s; if (borderStyle.length>0 && borderStyle!="none" && borderWidth.length>0)O1p.style.borderStyle=borderStyle; else O1p.style.borderStyle=""; O1p.style.borderColor=(borderWidth.length>0)?borderColor: ""; O1p.style.backgroundColor=backgroundColor; O1p.style.backgroundImage=backgroundImage; O1p.style.backgroundRepeat=backgroundRepeat; O1p.style.backgroundAttachment=backgroundAttachment; O1p.style.backgroundPosition=backgroundPosition; setTimeout( function (){if (HTMLEditor.is_Safari){O1p=(ll.nextSibling)?O1p.nextSibling:O1p; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1b=X.i1.body.createControlRange(); i1b.add(O1p); i1b.select(); }catch (t){}}else {if (HTMLEditor.o11)X.f= true; O1p=(O1p.nextSibling)?O1p.nextSibling:O1p; HTMLEditor.l1o(O1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1s(Ox,l1s){if (Ox!=null){var o1t=l1s.contentWindow.document.getElementById("realStylesFolder").href; X.i1q=Ox.getElementById("bgColor").value; X.O1s=Ox.getElementById("bgImage").value; Ox.getElementById("idField").value=(O1p.id)?O1p.id: ""; Ox.getElementById("widthField").value=(O1p.style.width)?O1p.style.width: ""; Ox.getElementById("heightField").value=(O1p.style.height)?O1p.style.height: ""; Ox.getElementById("borderWidth").value=(O1p.style.borderLeftWidth)?O1p.style.borderLeftWidth: ""; Ox.getElementById("borderStyle").value=(O1p.style.borderLeftStyle)?O1p.style.borderLeftStyle: ""; Ox.getElementById("overflow").value=(O1p.style.overflow)?O1p.style.overflow: ""; Ox.getElementById("borderColor").style.backgroundColor=(O1p.style.borderLeftColor)?O1p.style.borderLeftColor: ""; Ox.getElementById("bgColor").style.backgroundColor=(O1p.style.backgroundColor)?O1p.style.backgroundColor: ""; Ox.getElementById("bgImage").style.backgroundImage=(O1p.style.backgroundImage)?O1p.style.backgroundImage: ""; Ox.getElementById("bgImage").style.backgroundRepeat=(O1p.style.backgroundRepeat)?O1p.style.backgroundRepeat: ""; Ox.getElementById("bgImage").style.backgroundAttachment=(O1p.style.backgroundAttachment)?O1p.style.backgroundAttachment: ""; Ox.getElementById("bgImage").style.backgroundPosition=(O1p.style.backgroundPosition)?O1p.style.backgroundPosition: ""; if (Ox.getElementById("bgColor").style.backgroundColor.length>0)Ox.getElementById("bgColor").value=""; if (Ox.getElementById("bgImage").style.backgroundImage.length>0)Ox.getElementById("bgImage").value=""; HTMLEditor.Iv(Ox.getElementById("borderColor"),["click"],color); HTMLEditor.Iv(Ox.getElementById("bgColor"),["click"],bgColor); HTMLEditor.Iv(Ox.getElementById("clearColor"),["click"],l1q); HTMLEditor.Iv(Ox.getElementById("bgImage"),["click"],I1q); HTMLEditor.Iv(Ox.getElementById("clearImage"),["click"],o1s); X.o1q=Ox; }}var O1t=(X.P[032].length>0)?(X.P[032]): ("__div.aspx"); X.customPopup("popup_div","div",O1t,l1i,I1s, true ,i1p,enableEvents,disableEvents); };HTMLEditor.prototype.insertForm= function (){var X=this ; var O1p; var id=HTMLEditor.om; var innerHTML="<form id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Form"; innerHTML+="</form>"; if (X.InsertHTML(innerHTML)){O1p=X.getDocument().getElementById(id); O1p.id=null; O1p.removeAttribute("id"); X.l1t(O1p, false); }};HTMLEditor.o5= function (X,O1p){X.SaveContent(); X.l1t(O1p, true); };HTMLEditor.prototype.l1t= function (O1p,i1p){var X=this ; function l1i(Ox,l1s){if (Ox!=null){var width=Ox.getElementById("widthField").value.replace(/^[\s]+/,""); var height=Ox.getElementById("heightField").value.replace(/^[\s]+/,""); var id=Ox.getElementById("idField").value.replace(/^[\s]+/,""); var name=Ox.getElementById("nameField").value.replace(/^[\s]+/,""); var action=Ox.getElementById("actionField").value.replace(/^[\s]+/,""); var method=Ox.getElementById("methodField").value.replace(/^[\s]+/,""); if (!HTMLEditor.i1o.test(width)){HTMLEditor.setSelectionRange(Ox.getElementById("widthField")); return false; }if (!HTMLEditor.i1o.test(height)){HTMLEditor.setSelectionRange(Ox.getElementById("heightField")); return false; }var i1t=X.i1.getElementsByTagName("FORM"); if (name.length>0)for (var i=0; i<i1t.length; i++){if (i1t[i].name==name && i1t[i]!=O1p){HTMLEditor.setSelectionRange(Ox.getElementById("nameField")); return false; }}if (id.length>0 && X.i1.getElementById(id)!=null && X.i1.getElementById(id)!=O1p){HTMLEditor.setSelectionRange(Ox.getElementById("idField")); return false; }O1p.style.width=width; O1p.style.height=height; if (id.length>0)O1p.id=id; else {O1p.id=null; O1p.removeAttribute("id"); }if (name.length>0){O1p.name=name; O1p.setAttribute("name",name); }else {O1p.name=""; O1p.removeAttribute("name"); }if (action.length>0)O1p.action=action; else {O1p.action=null; O1p.removeAttribute("action"); }try {if (method.length>0)O1p.method=method; else {O1p.removeAttribute("method"); }}catch (t){}setTimeout( function (){if (HTMLEditor.is_Safari){O1p=(ll.nextSibling)?O1p.nextSibling:O1p; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1b=X.i1.body.createControlRange(); i1b.add(O1p); i1b.select(); }catch (t){}}else {if (HTMLEditor.o11)X.f= true; O1p=(O1p.nextSibling)?O1p.nextSibling:O1p; HTMLEditor.l1o(O1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1s(Ox,l1s){if (Ox!=null){Ox.getElementById("widthField").value=(O1p.style.width)?O1p.style.width: ""; Ox.getElementById("heightField").value=(O1p.style.height)?O1p.style.height: ""; Ox.getElementById("idField").value=(O1p.id)?O1p.id: ""; Ox.getElementById("nameField").value=(O1p.name)?O1p.name: ""; Ox.getElementById("actionField").value=(O1p.action)?O1p.action: ""; Ox.getElementById("methodField").value=(O1p.method)?O1p.method: ""; }}var O1t=(X.P[035].length>0)?(X.P[035]): ("__form.aspx"); X.customPopup("popup_form","form",O1t,l1i,I1s, true ,i1p); };HTMLEditor.prototype.insertCheckBox= function (){ this.I1t("type='checkbox'"); };HTMLEditor.prototype.insertRadio= function (){ this.I1t("type='radio'"); };HTMLEditor.prototype.insertTextBox= function (){ this.I1t("type='text' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertPassword= function (){ this.I1t("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.Of("safari-no-support","Not supported in Safari")); } ,0764); else if (!HTMLEditor.is_ie)setTimeout( function (){alert(X.Of("mozilla-no-support","Not supported in Mozilla")); } ,0764); else this.I1t("type='hidden' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertButton= function (){ this.I1t("type='button' style='width:50px;height:22px;'"); };HTMLEditor.prototype.insertSubmit= function (){ this.I1t("type='submit' style='width:50px;height:22px;' value='Submit'"); };HTMLEditor.prototype.insertReset= function (){ this.I1t("type='reset' style='width:50px;height:22px;' value='Reset'"); };HTMLEditor.prototype.I1t= function (o1u){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var O1p=null; var id=HTMLEditor.om; if (X.Or() && HTMLEditor.getSelParent(X).tagName.toUpperCase()=="INPUT"){O1p=HTMLEditor.getSelParent(X); X.SaveContent(); X.O1u(O1p, true); }else if (X.InsertHTML("<input id='"+id+"' "+o1u+" />")){O1p=X.getDocument().getElementById(id); O1p.id=null; O1p.removeAttribute("id"); X.O1u(O1p, false); if (HTMLEditor.is_Safari)setTimeout( function (){try {O1p.blur();}catch (t){}} ,0144); }return O1p; };HTMLEditor.O3= function (X,O1p){if (O1p.type=="image" || O1p.type=="file")return; X.SaveContent(); X.O1u(O1p, true); };HTMLEditor.prototype.O1u= function (O1p,i1p){var X=this ; function l1i(Ox,l1s){if (Ox!=null){var width=Ox.getElementById("widthField").value.replace(/^[\s]+/,""); var height=Ox.getElementById("heightField").value.replace(/^[\s]+/,""); var id=Ox.getElementById("idField").value.replace(/^[\s]+/,""); var name=Ox.getElementById("nameField").value.replace(/^[\s]+/,""); var value=Ox.getElementById("valueField").value.replace(/^[\s]+/,""); var title=Ox.getElementById("titleField").value.replace(/^[\s]+/,""); var type=((O1p.type && O1p.type.length>0)?O1p.type: "text").toLowerCase(); if (!HTMLEditor.i1o.test(width)){HTMLEditor.setSelectionRange(Ox.getElementById("widthField")); return false; }if (!HTMLEditor.i1o.test(height)){HTMLEditor.setSelectionRange(Ox.getElementById("heightField")); return false; }if (id.length>0 && X.i1.getElementById(id)!=null && X.i1.getElementById(id)!=O1p){HTMLEditor.setSelectionRange(Ox.getElementById("idField")); return false; }O1p.style.width=width; O1p.style.height=height; if (id.length>0)O1p.id=id; else {O1p.id=null; O1p.removeAttribute("id"); }if (name.length>0){O1p.name=name; O1p.setAttribute("name",name); }else {O1p.name=""; O1p.removeAttribute("name"); }if (value.length>0){O1p.value=value; O1p.setAttribute("value",value); }else {O1p.value=""; O1p.removeAttribute("value"); }if (title.length>0)O1p.title=title; else {O1p.title=""; O1p.removeAttribute("title"); }if (type=="checkbox" || type=="radio"){O1p.checked=Ox.getElementById("checkField").checked; if (!HTMLEditor.is_ie){if (O1p.checked)O1p.setAttribute("checked","true"); else O1p.removeAttribute("checked"); }}setTimeout( function (){if (HTMLEditor.is_Safari){O1p=(ll.nextSibling)?O1p.nextSibling:O1p; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1b=X.i1.body.createControlRange(); i1b.add(O1p); i1b.select(); }catch (t){}}else {if (HTMLEditor.o11)X.f= true; O1p=(O1p.nextSibling)?O1p.nextSibling:O1p; HTMLEditor.l1o(O1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1s(Ox,l1s){if (Ox!=null){var type=((O1p.type && O1p.type.length>0)?O1p.type: "text").toLowerCase(); if (type=="checkbox" || type=="radio")Ox.getElementById("checkField").checked=O1p.checked; else Ox.getElementById("checkField").style.display="none"; Ox.getElementById("widthField").value=(O1p.style.width)?O1p.style.width: ""; Ox.getElementById("heightField").value=(O1p.style.height)?O1p.style.height: ""; Ox.getElementById("idField").value=(O1p.id)?O1p.id: ""; Ox.getElementById("nameField").value=(O1p.name)?O1p.name: ""; Ox.getElementById("valueField").value=(O1p.value)?O1p.value: ""; Ox.getElementById("titleField").value=(O1p.title)?O1p.title: ""; Ox.getElementById("inputType").innerHTML=""; try {Ox.getElementById("inputType").innerHTML=Ox.getElementById("input_"+type).value; }catch (t){alert(t.message);}}}var O1t=(X.P[041].length>0)?(X.P[041]): ("__input.aspx"); X.customPopup("popup_input","input",O1t,l1i,I1s, true ,i1p); };HTMLEditor.o4= function (X,link){X.i10(); var ll=link.firstChild; while (link.firstChild)link.parentNode.insertBefore(link.firstChild,link); link.parentNode.removeChild(link); if (ll)HTMLEditor.l1o(ll,X); setTimeout( function (){X.updateToolbar(); } ,5); X.l14(); };HTMLEditor.prototype.insertIcon= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,html){if (!O1n){X.I1e( false); }else {if (!X.l11("<img src='"+html+"' id="+HTMLEditor.om+">")){X.I1e( false); }else {var ll=X.i1.getElementById(HTMLEditor.om); ll.id=null; ll.removeAttribute("id"); if (X.relativeImages)ll.src=html; if (!HTMLEditor.is_ie){setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); if (HTMLEditor.o11)X.f= true; X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.l14(); }}return true; }X.i10(); X.Ii("_insertIcon",X.og("icons","Insert an Icon"),O1g); };HTMLEditor.prototype.insertAnchor= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,text){if (!O1n || text.length==0){X.I1e( false); }else {if (!X.l11("<a name='"+text+"'>"+(X.showAnchors?("<img "+X.noContextMenuAttributeName()+"='yes' title='"+text+"' src='"+X.Q[0]+"'>"): "")+"</a>")){X.I1e( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); if (HTMLEditor.o11)X.f= true; X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.l14(); }}return true; }X.i10(); X.Ii("_insertAnchor",X.og("anchor","Insert Anchor"),O1g,""); };HTMLEditor.prototype.anchorsOn= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.showAnchors=!this.showAnchors; HTMLEditor.ly(this,this.i1,!this.showAnchors);this.updateToolbar(); };HTMLEditor.prototype.anchorsOnState= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; return this.showAnchors; };HTMLEditor.ly= function (X,i1,l1u){var l1n=i1.getElementsByTagName("A"); var le= false; for (var i=0; i<l1n.length; i++){var a=l1n[i]; if (a.name && a.name.length>0){while (a.firstChild){a.removeChild(a.firstChild); le= true; }if (!l1u){var img=i1.createElement("IMG"); img.title=a.name; img.src=X.Q[0]; img.setAttribute(X.noContextMenuAttributeName(),"yes"); a.appendChild(img); }}}return le; };HTMLEditor.l4= function (X,link){function O1g(O1n,text){if (!O1n || text.length==0){setTimeout( function (){X.I1e( false); } ,012); }else {link.name=text; try {link.firstChild.title=text; }catch (t){}if (HTMLEditor.is_ie){setTimeout( function (){try {var i1b=X.i1.body.createControlRange(); i1b.add(link.firstChild); i1b.select(); }catch (t){}} ,0); }else if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); X.Ii("_insertAnchor",X.Og("anchor","Edit Anchor"),O1g,link.name); };HTMLEditor.prototype.insertPlaceHolder= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,text){if (!O1n || text.length==0){X.I1e( false); }else {var ih; if (X.showPlaceHolders || HTMLEditor.is_ie)ih="\x3cimg dummytag=\"placeholder\" title=\'"+text+"' src='"+X.Q[4]+"'>"; else ih="<placeholder name='"+text+"'/>"; if (!X.l11(ih)){X.I1e( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); if (HTMLEditor.o11)X.f= true; X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (!X.showPlaceHolders)HTMLEditor.iy(X,X.i1, true); }X.l14(); }}return true; }X.i10(); X.Ii("_insertPlaceHolder",X.og("placeholder","Insert PlaceHolder"),O1g,""); };HTMLEditor.prototype.placeHoldersOn= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.showPlaceHolders=!this.showPlaceHolders; HTMLEditor.iy(this,this.i1,!this.showPlaceHolders);this.updateToolbar(); };HTMLEditor.prototype.placeHoldersOnState= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return false; return this.showPlaceHolders; };HTMLEditor.iy= function (X,i1,l1u){var le= false; if (l1u){var i1u=i1.getElementsByTagName("IMG"); var l1n=[]; for (var i=0; i<i1u.length; i++)l1n.push(i1u[i]); for (var i=0; i<l1n.length; i++){var a=l1n[i]; var I1u=a.getAttribute("dummytag"); if (I1u && I1u.length>0 && I1u.toLowerCase()=="placeholder"){var o1v=i1.createElement("PLACEHOLDER"); var title=a.title; if (title==null || typeof title=="undefined")title=a.getAttribute("title"); o1v.name=title; o1v.setAttribute("name",title); a.parentNode.insertBefore(o1v,a); a.parentNode.removeChild(a); le= true; }}}else {var i1u=i1.getElementsByTagName("PLACEHOLDER"); var l1n=[]; for (var i=0; i<i1u.length; i++)l1n.push(i1u[i]); for (var i=0; i<l1n.length; i++){var a=l1n[i]; var O1v= true; try {if (a.childNodes.length>0)O1v= false; }catch (w){}if (O1v){var name=a.name; if (name==null || typeof name=="undefined")name=a.getAttribute("name"); var img=i1.createElement("IMG"); img.title=name; img.src=X.Q[4]; img.setAttribute("dummytag","placeholder"); img.setAttribute("title",name); a.parentNode.insertBefore(img,a); a.parentNode.removeChild(a); }}}return le; };HTMLEditor.l3= function (X,link){function O1g(O1n,text){if (!O1n || text.length==0){setTimeout( function (){X.I1e( false); } ,012); }else {link.title=text; link.setAttribute("title",text); if (HTMLEditor.is_ie){setTimeout( function (){var i1b=X.i1.body.createControlRange(); i1b.add(link); i1b.select(); } ,0); }else if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); var title=link.title; if (title==null || typeof title=="undefined")title=link.getAttribute("title"); X.Ii("_insertPlaceHolder",X.Og("placeholder","Edit PlaceHolder"),O1g,title); };HTMLEditor.prototype.insertSpec= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,html){if (!O1n){X.I1e( false); }else {if (!X.l11(html)){X.I1e( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); if (HTMLEditor.o11)X.f= true; X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.l14(); }}return true; }X.i10(); X.Ii("_insertSpec",X.og("special-characters","Insert a special character"),O1g); };HTMLEditor.prototype.spellCheck= function (oq){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,l1v){if (!O1n){X.I1e( false); }else {if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.updateToolbar(); X.focusEditor(); }if (typeof oq=="function")setTimeout( function (){oq(O1n); X.l14(); } ,0); X.l14(); return true; }X.i10(); X.i1v( function (I1v){X.on(); X.updateToolbar(); X.Ii("_spellCheck",X.og("spell-checker","Spell checker"),I1v,O1g); } ); };HTMLEditor.prototype.customPopup= function (o1w,O1w,l1w,l1i,I1s,i1w,i1p,I1w,o1x){var X=this ; var O1x=l1i; if (l1i!=null && typeof l1i=="function"){O1x= function (Ox,l1s){var le=l1i(Ox,l1s); if (Ox!=null){setTimeout( function (){X.l14(); } ,0144); }return le; } ; }X.Ii("_customPopup",o1w,O1w,l1w,O1x,I1s,i1w,i1p,I1w,o1x); };HTMLEditor.prototype.insertHR= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; try { this.i10(); if (HTMLEditor.is_Safari)this.Iq(this.lq()); var l1x=this.i1.createElement("div"); l1x.innerHTML="<hr>"; var ll=l1x.firstChild; var X=this ; var i1x=this.I1x(); if (!i1x)return; var parent=i1x.parentNode; parent.insertBefore(ll,i1x); parent.removeChild(i1x); ll=(ll.nextSibling)?ll.nextSibling:ll; HTMLEditor.l1o(ll,X); setTimeout( function (){X.l14(); X.updateToolbar(); } ,5); X.focusEditor(); return true; }catch (t){alert("HR: "+t.message); }};HTMLEditor.l1o= function (o1y,X){var ll=o1y; if (HTMLEditor.is_ie){var Oq=X.lq(); var iq=X.Iq(Oq); var O1y=0,_top=0; var l1y=(ll.nodeType==3); var span; if (l1y){span=X.i1.createElement("SPAN"); ll.parentNode.insertBefore(span,ll); ll=span; }while (ll){if (ll.tagName.toUpperCase()=="BODY")break; O1y+=ll.offsetLeft; _top+=ll.offsetTop; ll=ll.offsetParent; if (ll){O1y+=ll.clientLeft; _top+=ll.clientTop; }}if (l1y){span.parentNode.removeChild(span); }if (Oq.type.toLowerCase()!="control"){try {iq.moveToPoint(O1y,_top); }catch (t){}}iq.select(); }else {var Oq=X.lq(); var iq=X.Iq(); iq.setStart(ll,0); iq.setEnd(ll,0); X.i17(Oq); if (HTMLEditor.o11)X.f= true; X.I17(Oq,iq); X.focusEditor(); }};HTMLEditor.prototype.getRange= function (){return this.Iq(this.lq()); };HTMLEditor.prototype.setRange= function (iq){try {if (HTMLEditor.is_ie){iq.select(); }else {var Oq=this.lq(); this.i17(Oq); this.I17(Oq,iq); } this.focusEditor(); }catch (t){}};HTMLEditor.prototype._butState= function (i1y,I1y){var id=document.getElementById(i1y); var ll=id; this.o1z=I1y; var status=this.o1z(); if (ll.tagName.toUpperCase()=="IMG"){var Il=ll.getAttribute("but_status"); if (Il && Il.length>0){if (Il!=((status)?"_a": "_n")){ll.setAttribute("but_status",((status)?"_a": "_n")); ll.src=((status)?ll.getAttribute("active_src"):ll.getAttribute("passive_src")); }return; }var lk=ll.src; var o1d=lk.search(/_[nahp]\.gif/i); if (o1d>0 && lk.substring(o1d,2).toLowerCase()!=((status)?"_a": "_n")){lk=lk.substring(0,o1d)+((status)?"_a.gif": "_n.gif"); ll.src=lk; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.O1z(ll,lk);} ,0144); return; }}};HTMLEditor.prototype._butOver= function (ll){return; if (this.isPopup())return; if (ll.tagName.toUpperCase()=="IMG"){var lk=ll.src; var o1d=lk.search(/_[nahp]\.gif/i); if (o1d>0){ll.setAttribute("save_src",lk); if (lk.search(/_a\.gif/i)>0)lk=lk.substring(0,o1d)+"_p.gif"; else lk=lk.substring(0,o1d)+"_h.gif"; ll.src=lk; ll.setAttribute("save_over","1"); return; }}if (ll.className=="HE_button")ll.className="HE_button_over"; };HTMLEditor.prototype._butOut= function (ll){return; if (ll.tagName.toUpperCase()=="IMG"){var lk=ll.src; var o1d=lk.search(/_[nahp]\.gif/i); if (o1d>0){var Il=ll.getAttribute("save_src"); if (Il && Il.length>0)ll.src=Il; ll.setAttribute("save_over",""); return; }}if (ll.className=="HE_button_over")ll.className="HE_button"; };HTMLEditor.prototype._butDown= function (ll){var X=this ; if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; if (X.O10){X.O10.select(); X.O10=null; }}if (this.isPopup())return; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (ll.tagName.toUpperCase()=="IMG"){var X=this ; var Il=ll.getAttribute("but_status"); if (Il && Il.length>0){if (Il!="_a"){ll.setAttribute("but_status","_a"); ll.src=ll.getAttribute("active_src"); X.l1z=setTimeout( function (){X._butUp(ll); X.l1z=null; } ,03720); }return; }var lk=ll.src; var o1d=lk.search(/_[nahp]\.gif/i); if (o1d>0 && lk.substring(o1d,2).toLowerCase()!="_a"){lk=lk.substring(0,o1d)+"_a.gif"; ll.src=lk; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.O1z(ll,lk);} ,0144); X.l1z=setTimeout( function (){X._butUp(ll); X.l1z=null; } ,03720); return; }}};HTMLEditor.O1z= function (ll,i1z){var I1z=ll.src.search(/_[nahp]\.gif/i); var o20=i1z.search(/_[nahp]\.gif/i); if (I1z>0 && o20>0 && ll.src.substring(0,I1z).toLowerCase()==i1z.substring(0,o20).toLowerCase())return; ll.src=i1z; setTimeout( function (){HTMLEditor.O1z(ll,i1z);} ,0144); };HTMLEditor.prototype._butUp= function (ll){if (ll.tagName.toUpperCase()=="IMG"){var X=this ; var Il=ll.getAttribute("but_status"); if (Il && Il.length>0){if (Il!="_n"){if (X.l1z){clearTimeout(X.l1z); X.l1z=null; }ll.setAttribute("but_status","_n"); ll.src=ll.getAttribute("passive_src"); }return; }var lk=ll.src; var o1d=lk.search(/_[nahp]\.gif/i); if (o1d>0 && lk.substring(o1d,2).toLowerCase()!="_n"){if (X.l1z){clearTimeout(X.l1z); X.l1z=null; }lk=lk.substring(0,o1d)+"_n.gif"; ll.src=lk; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.O1z(ll,lk);} ,0144); }}return true; };HTMLEditor.prototype.I1x= function (O20){var ll=this.i1.createElement("SPAN"); var X=this ; ll.id=HTMLEditor.om; if (typeof O20=="undefined"){if (!this.l11(HTMLEditor.getHTML(ll, true)))return null; }else {if (O20.nextSibling==null)O20.parentNode.appendChild(ll); else O20.parentNode.insertBefore(ll,O20.nextSibling); O20.parentNode.removeChild(O20); }ll=this.i1.getElementById(HTMLEditor.om); ll.id=null; ll.removeAttribute("id"); ll.setAttribute("para","no"); var parent=ll.parentNode; while (parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="TD" && parent.tagName.toUpperCase()!="P" && parent.tagName.toUpperCase()!="DIV"){if (HTMLEditor.O1j(parent.tagName))parent=parent.parentNode; else break; }if (parent.tagName.toUpperCase()=="P"){ll.setAttribute("para",""); function l20(add,ll,i20,I20){var o21; var par=HTMLEditor.O21(i20,X.i1, false); if (add)par.appendChild(add); while (ll){if (ll.nodeType==1 || (ll.nodeType==3 && HTMLEditor.I12(""+ll.data+"").length>0)){var text=null; if (ll.tagName && ll.tagName.toUpperCase()=="SCRIPT")text=ll.text; var l21=HTMLEditor.O21(ll,X.i1, true); if (par.childNodes.length==0 || !I20)par.appendChild(l21); else par.insertBefore(l21,par.firstChild); if (text!=null)l21.text=text; }ll=I20?ll.previousSibling:ll.nextSibling;}if (par.childNodes.length==0){ delete par; par=null; }if (i20==parent)return par; else return l20(par,I20?i20.previousSibling:i20.nextSibling,i20.parentNode,I20); } ; var i21=l20(null,ll.previousSibling,ll.parentNode, true); var I21=l20(null,ll.nextSibling,ll.parentNode, false); var par=parent.parentNode; if (i21){par.insertBefore(i21,parent); ll.setAttribute("para",ll.getAttribute("para")+" left"); }par.insertBefore(ll,parent); if (I21){par.insertBefore(I21,parent); ll.setAttribute("para",ll.getAttribute("para")+" right"); }par.removeChild(parent); }return ll; };HTMLEditor.prototype.mode= function (){return this.l1; };HTMLEditor.prototype.o1h= function (o22,value){ this.i1i(o22, false ,value); };HTMLEditor.prototype.O22= function (o22){return this.O1h(o22); };HTMLEditor.prototype.l22= function (){if (HTMLEditor.is_ie)return "&nbsp;"; else return "<br/>"; };HTMLEditor.prototype.insertTable= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var Oq=this.lq(); var iq; try {iq=this.Iq(Oq); }catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); X.i17(Oq); return; }if (HTMLEditor.getSelParent(this ).ownerDocument.id!="EditorDocument"){alert(this.Of("click-to-editor","Click to editing panel.")); return false; }var X=this ; var Ox=X.i1; this.i10(); var l1x=this.i1.createElement("div"); l1x.innerHTML="<table></table>"; var table=l1x.firstChild; function O1g(O1n){var ll=table; if (O1n){ll=ll.firstChild.firstChild.firstChild; HTMLEditor.l1o(ll,X); setTimeout( function (){X.updateToolbar(); X.l14(); } ,5); }else {X.I1e( 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 i22=table.insertRow(table.rows.length); for (var oh=0; oh<this.defaultTable.columns; oh++){var cell=i22.insertCell(i22.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.l22(); }}var i1x=this.I1x(); if (!i1x){X.I1e( false); return; }var parent=i1x.parentNode; parent.insertBefore(table,i1x); parent.removeChild(i1x); X.Ii("_tableProperties",X.og("table","Insert a Table"),table,O1g,0,0); };HTMLEditor.prototype.makeNotEditable= function (){var X=this ; if (!(X.O1 && X.mode()=="html" && !X.isPopup()))return; var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(X.O1b()): ""; var Oq=X.lq(); var iq=X.Iq(Oq); if (X.Or())return; if (!((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))return; var Oq=X.lq(); var iq=X.Iq(Oq); var I22=HTMLEditor.om+"_right"; var o23=HTMLEditor.om+"_left"; var O23=null; var l23=null; if (HTMLEditor.is_ie){O23=iq.duplicate(); l23=iq.duplicate(); O23.setEndPoint("EndToStart",iq); l23.setEndPoint("StartToEnd",iq); }else {O23=iq.cloneRange(); l23=iq.cloneRange(); O23.setEnd(O23.startContainer,O23.startOffset); l23.setStart(l23.endContainer,l23.endOffset); }var i1a=null; var I1a=null; X.i10(); if (!X.l11("<span id='"+I22+"'/>",l23))return []; if (!X.l11("<span id='"+o23+"'/>",O23)){var i23=X.i1.getElementById(I22); if (i23!=null){lk=i23.parentNode; lk.removeChild(i23); }X.I1e( false); return; }i1a=X.i1.getElementById(o23); I1a=X.i1.getElementById(I22); if (i1a==null){var span=X.i1.createElement("SPAN"); span.id=o23; I1a.parentNode.insertBefore(span,I1a); i1a=span; }if (I1a==null){var span=X.i1.createElement("SPAN"); span.id=I22; if (i1a.nextSibling)i1a.parentNode.insertBefore(span,i1a.nextSibling); else i1a.parentNode.appendChild(span); I1a=span; }HTMLEditor.I23(i1a); HTMLEditor.I23(I1a); var o24=HTMLEditor.O24(i1a,I1a); var l24=null; if (o24!=null){var parent=o24.parent; var i24=parent.tagName.toUpperCase(); var ll=null; if (i24=="TR" || i24=="TBODY" || i24=="TABLE"){var ll=parent; while (ll && ll.tagName.toUpperCase()!="TABLE")ll=ll.parentNode; }else if (i24=="OL" || i24=="UL" || i24=="DL"){var ll=parent; }if (ll!=null){ll.parentNode.insertBefore(i1a,ll); if (ll.nextSibling)ll.parentNode.insertBefore(I1a,ll.nextSibling); else ll.parentNode.appendChild(I1a); o24=HTMLEditor.O24(i1a,I1a); parent=o24.parent;}var I24=o24.parent.childNodes.item(o24.o25); var O25=o24.parent.childNodes.item(o24.l25); var i25="SPAN"; l24=X.i1.createElement(i25); if (HTMLEditor.is_ie)l24.contentEditable="false"; else l24.setAttribute("contenteditable","false"); parent.insertBefore(l24,I24);while (I24!=null){var I25=I24.nextSibling; l24.appendChild(I24); if (I24==O25)break; I24=I25; }if (HTMLEditor.is_ie){iq=X.i1.body.createControlRange(); iq.add(l24); iq.select(); }else {Oq=X.lq(); var l17; if (l24.nextSibling!=null && l24.nextSibling.nodeType==3){l17=l24.nextSibling; }else {l17=X.i1.createTextNode(""); if (l24.nextSibling!=null)l24.parentNode.insertBefore(l17,l24.nextSibling); else l24.parentNode.appendChild(l17); }X.i17(Oq); iq=X.Iq(Oq); iq.setStart(l17,0); iq.setEnd(l17,0); X.I17(Oq,iq); }}if (i1a!=null)i1a.parentNode.removeChild(i1a); if (I1a!=null)I1a.parentNode.removeChild(I1a); if (l24!=null){var index=HTMLEditor.O17(l24); HTMLEditor.o26(l24.parentNode,this.i1,index,index+1); }};HTMLEditor.prototype.insertIMG= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var Oq=this.lq(); var iq=this.Iq(Oq); var X=this ; var Ox=X.i1; this.i10(); function O1g(O1n){try {var ll=Ox.getElementById(HTMLEditor.om); ll.id=null; ll.removeAttribute("id"); if (O1n){if (HTMLEditor.is_Safari){ll=(ll.nextSibling)?ll.nextSibling:ll; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){var i1b=Ox.body.createControlRange(); i1b.add(ll); i1b.select(); }else {if (HTMLEditor.o11)X.f= true; ll=(ll.nextSibling)?ll.nextSibling:ll; HTMLEditor.l1o(ll,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.l14(); }else {X.I1e( false); }X.focusEditor(); }catch (t){alert("IMG create: "+t.message); }return true; }var l1x=this.i1.createElement("div"); l1x.innerHTML="<img>"; var img=l1x.firstChild; img.id=HTMLEditor.om; img.src=""; img.alt=""; img.border=0; img.align=""; img.vspace=0; img.hspace=0; if (!HTMLEditor.is_ie){}if (this.l11(HTMLEditor.getHTML(img, true))){var ll=Ox.getElementById(HTMLEditor.om); this.Ii("_imageProperties",this.og("image","Insert Image"),ll,O1g, true); }else {X.I1e( false); }};HTMLEditor.prototype.insertFlash= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var Oq=this.lq(); var iq=this.Iq(Oq); var X=this ; var Ox=X.i1; this.i10(); function O1g(O1n){try {var ll=Ox.getElementById(HTMLEditor.om); ll.id=null; ll.removeAttribute("id"); if (O1n){if (HTMLEditor.is_Safari){ll=(ll.nextSibling)?ll.nextSibling:ll; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){ll.id=HTMLEditor.om; this.i10(); setTimeout( function (){X.I1e( false); var l1c=X.i1.getElementById(HTMLEditor.om); l1c.id=null; l1c.removeAttribute("id"); var i1b=X.i1.body.createControlRange(); i1b.add(l1c); i1b.select(); } ,0); }else {if (HTMLEditor.o11)X.f= true; ll=(ll.nextSibling)?ll.nextSibling:ll; HTMLEditor.l1o(ll,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.l14(); }else {X.I1e( false); }X.focusEditor(); }catch (t){alert("Flash create: "+t.message); }return true; }var l1x=this.i1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); l1x.innerHTML="\x3cembed src=\""+src+"\" type=\"application/x-shockwave-flash\" id=\""+HTMLEditor.om+"\" quality=\"high\" wmode=\"transparent\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" >"; }else {l1x.innerHTML="\x3cimg type=\"application/x-shockwave-flash\" dummytag=\"embed\" id=\""+HTMLEditor.om+"\" quality=\"high\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\""+" src=\""+X.Q[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; l1x.firstChild.style.backgroundImage="url('"+X.Q[2]+"')"; }var O26=l1x.firstChild; var l26=HTMLEditor.getHTML(O26, true); if (this.l11(l26)){var ll=Ox.getElementById(HTMLEditor.om); this.Ii("_flashProperties",this.og("flash","Insert Flash"),ll,O1g); }else {X.I1e( false); }};HTMLEditor.prototype.insertMedia= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var Oq=this.lq(); var iq=this.Iq(Oq); var X=this ; var Ox=X.i1; this.i10(); function O1g(O1n){try {var ll=Ox.getElementById(HTMLEditor.om); ll.id=null; ll.removeAttribute("id"); if (O1n){if (HTMLEditor.is_Safari){ll=(ll.nextSibling)?ll.nextSibling:ll; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){ll.id=HTMLEditor.om; this.i10(); setTimeout( function (){X.I1e( false , function (){var l1c=X.i1.getElementById(HTMLEditor.om); l1c.id=null; l1c.removeAttribute("id"); var i1b=X.i1.body.createControlRange(); i1b.add(l1c); i1b.select(); } ); } ,0); }else {if (HTMLEditor.o11)X.f= true; ll=(ll.nextSibling)?ll.nextSibling:ll; HTMLEditor.l1o(ll,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.l14(); }else {X.I1e( false); }X.focusEditor(); }catch (t){alert("Media create: "+t.message); }return true; }var l1x=this.i1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); l1x.innerHTML="\x3cembed src=\""+src+"\" type=\"application/x-mplayer2\" id=\""+HTMLEditor.om+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\" >"; }else {l1x.innerHTML="\x3cimg type=\"application/x-mplayer2\" dummytag=\"embed\" id=\""+HTMLEditor.om+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\""+" src=\""+X.Q[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; l1x.firstChild.style.backgroundImage="url('"+X.Q[3]+"')"; }var O26=l1x.firstChild; if (this.l11(HTMLEditor.getHTML(O26, true))){var ll=Ox.getElementById(HTMLEditor.om); this.Ii("_mediaProperties",this.og("media","Insert Media"),ll,O1g); }else {X.I1e( false); }};HTMLEditor.I0= function (){ this.width="auto"; this.height="auto"; this.i26="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.I26=050; HTMLEditor.prototype._changeHeight= function (o27){var X=this ; var I25=document.getElementById(X.mainDivId); var O27=null; var height; if (this.ShowQuickFormatDivId!=null)O27=document.getElementById(X.ShowQuickFormatDivId); if (parseInt(X.o15.style.height)+o27<0)return; if (this.l1=="text"){if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId); }else {if (!this._autoFocus && !this._wasFocused){HTMLEditor.i18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId); }}var I18=I25.offsetWidth; try {height=parseInt(X._textArea.style.height)+o27+"px"; X._textArea.style.height=height; }catch (t){}height=parseInt(X.o15.style.height)+o27+"px"; X.o15.style.height=height; X.i8.O9=height; if (HTMLEditor.is_ie && document.compatMode!="BackCompat")X.i8.O9=parseInt(height)+2+"px"; if (!HTMLEditor.is_Safari){if (typeof X.ix!="undefined"){X.ix=parseInt(X.ix)+o27; }}if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+o27+"px"; }if (X.iv){X.iv.style.height=parseInt(X.iv.style.height)+o27+"px"; }if (O27){height=parseInt(O27.childNodes.item(1).style.height)+o27+"px"; O27.childNodes.item(1).style.height=height; }if (!HTMLEditor.is_ie){if (I18!=I25.offsetWidth){X._onresize(); }}if (X.l1=="text"){if (X.ShowQuickFormatDivId!=null)HTMLEditor.I14(X.ShowQuickFormatDivId); }else {if (!X._autoFocus && !X._wasFocused){HTMLEditor.I14(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I14(X.ShowQuickFormatDivId, true); }}};HTMLEditor.prototype.increaseHeight= function (){ this._changeHeight(HTMLEditor.I26); };HTMLEditor.prototype.decreaseHeight= function (){ this._changeHeight(0-HTMLEditor.I26); };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.i18(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.i18(X.ShowQuickFormatDivId); }}var I25=document.getElementById(X.mainDivId); var o1e=document.getElementById(X.panelDivId); if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.l27 && typeof X.l27!="undefined"){X.o15.style.visibility="hidden"; }try {if (X.i8.i27!=I25.offsetWidth){var width=I25.offsetWidth-X.i8.i27; if (!HTMLEditor.is_ie){if (X.i8.i19!=o1e.offsetHeight)width-=2; X.o15.style.width=parseInt(X.o15.style.width)+width+"px"; X.i8.o9=X.o15.style.width; if (X._iframe){X._iframe.style.width=X.o15.style.width; }if (X.iv){X.iv.style.width=X.o15.style.width; }}if (HTMLEditor.l13){if (X._iframe){X._iframe.style.width=parseInt(X._iframe.style.width)+width+"px"; }}X.i8.i27=I25.offsetWidth; X.i8.I27=o1e.offsetWidth; }if (X.i8.i19!=o1e.offsetHeight){var height=X.i8.i19-((o1e.style.display=="none")?0:o1e.offsetHeight); X.o15.style.height=parseInt(X.o15.style.height)+height+(!HTMLEditor.is_ie && document.compatMode!="BackCompat"?2: 0)+"px";if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+height+"px"; var o28=(o1e.offsetWidth>0)?o1e.offsetWidth:X.Ix; if (!HTMLEditor.is_ie){X._iframe.style.width=o28-2+"px"; }}if (X.iv && X.iv.style.display!="none"){X.iv.style.height=parseInt(X.iv.style.height)+height+"px"; if (!HTMLEditor.is_ie){X.iv.style.width=o28-2+"px"; }}X.i8.O9=parseInt(X.i8.O9)+height+"px"; if (X.iv!=null && X.iv.style.display=="none")X.iv.style.height=X.i8.O9; if (!HTMLEditor.is_ie){X.i8.o9=o28-2+"px"; X.o15.style.width=o28-2+"px"; X.Ix=o28; }X.i8.i19=o1e.offsetHeight; }}catch (t){}if (typeof t!="undefined"){if (!X._autoFocus && !X._wasFocused){HTMLEditor.I14(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I14(X.ShowQuickFormatDivId, true); }}if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.l27 && typeof X.l27!="undefined"){X.l27=X.o15.value; X.o15.value=""; X.o15.style.visibility="hidden"; X.setTimeout( function (ox){if (X.lu(ox))return; X.o15.value=X.l27; X.l27=null;X.o15.style.visibility="visible"; X.focusEditor(); } ,036); }};HTMLEditor.prototype.I19= function (I18){var X=this ; function O28(){var Ox; if (HTMLEditor.is_Safari)Ox=document.getElementById(X._hiddenContent+"_inner_iframePreview").contentWindow.document; else Ox=X.iv.contentWindow.document; if (!Ox){if (HTMLEditor.l28 || HTMLEditor.o11){setTimeout( function (){O28(); } ,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var i28=I18; var I28= false; function o29(O29,i21,I21){i28=I21; I28= true; }I18.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,o29); I18=i28; Ox.open(); var html=new l29(); 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 i29=0; i29<X._addCssFiles.length; i29++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[i29]+"\" 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(I18); html.write("</body>"); html.write("</html>"); Ox.write(html.toString()); Ox.close(); if (HTMLEditor.is_ie)X.iv.style.visibility="visible"; setTimeout( function (){if (!HTMLEditor.is_Safari){var o1e=document.getElementById(X.panelDivId); o1e.style.display="none"; }if (X.ShowQuickFormatDivId!=null){}if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_ie){X.iv.style.width="100%"; setTimeout( function (){X.iv.style.width=X.iv.offsetWidth+"px"; X.o15.style.width=X.iv.offsetWidth+"px"; } ,0); X.iv.style.height=X.i8.O9; }}} ,0); X.on(); }setTimeout(O28,(HTMLEditor.l28 || HTMLEditor.o11)?0144: 0); };HTMLEditor.I8= function (className){if (HTMLEditor.is_Safari)return true; var I29=document.styleSheets,o2a=I29.length; var O2a= false; var l1v=[]; function l2a(i2a){if (i2a.imports){try {var imports=i2a.imports,o2a=imports.length; for (var i=0; i<o2a; i++)l2a(i2a.imports[i]); }catch (t){}}try {var rules=HTMLEditor.is_ie?i2a.rules:i2a.cssRules,o2a=rules.length; for (var oh=0; oh<o2a; oh++)I2a(rules[oh]); }catch (t){}}function I2a(rule){try {var select=rule.selectorText,style=rule.style; l1v.push( {select:select,style:style } ); }catch (w){}}for (var i=0; i<o2a; i++)l2a(I29[i]); for (var i=0; i<l1v.length; i++){try {var item=l1v[i]; if (item.select.indexOf(className)>=0)return true; }catch (w){}}return O2a; };HTMLEditor.prototype.iw= function (){var X=this ; var Y=this._textArea; if (X.i8==null){if (HTMLEditor.I8(".HE_editPanel")){X.i8= {o9:X._textArea.offsetWidth,O9:X._textArea.offsetHeight } ; }else {setTimeout( function (){X.iw(); } ,062); return; }}var height=(this.I.height=="auto"?(parseInt(this.i8.O9)+"px"): this.I.height); height=parseInt(height); var width=(this.I.width=="auto"?(parseInt(this.i8.o9)+"px"): this.I.width); width=parseInt(width); var ih=HTMLEditor.I12(X._textArea.value); if (X.F==null){X.F=[]; function o2b(O29,i21){X.F.push(O29); return ""; }ih=ih.replace(/(<style(?:[^>]*?)>(?:[^<]*?)<\/style(?:[^>]*?)>)/gi,o2b); X._textArea.value=ih; }Y.style.display="none"; var O2b=document.createElement("div"); O2b.className="inner_htmlarea"; this.O1=O2b; Y.parentNode.insertBefore(O2b,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"; O2b.appendChild(iframe); this._iframe=iframe; iframe.marginHeight="0"; iframe.marginWidth="0"; iframe.style.borderWidth="0px"; if (HTMLEditor.is_ie && !HTMLEditor.l13)iframe.style.width="100%"; else {if (!HTMLEditor.o11 && document.compatMode!="BackCompat")width-=2; iframe.style.width=width+"px"; }iframe.style.height=height+"px"; this.iv=document.createElement("iframe"); this.iv.style.display="none";if (HTMLEditor.is_ie)this.iv.style.visibility="hidden"; this.iv.id=X._hiddenContent+"_inner_iframePreview"; this.iv.name=X._hiddenContent+"_inner_iframePreview"; if (this.ignoreTab)this.iv.tabIndex=-1; if (HTMLEditor.is_ie)this.iv.src="javascript:false;"; this.iv.className="inner_iframe"; O2b.appendChild(this.iv); this.iv.marginHeight="0"; this.iv.marginWidth="0"; this.iv.style.borderWidth="0px"; if (HTMLEditor.is_ie)this.iv.style.width="100%"; else { this.iv.style.width=width+"px"; } this.iv.style.height=height+"px"; Y=document.createElement("textarea"); if (HTMLEditor.is_ie){width="100%"; }else width=parseInt(iframe.offsetWidth)+"px"; height=parseInt(iframe.offsetHeight); if (HTMLEditor.is_ie)if (document.compatMode!="BackCompat")height-=2; Y.style.width=width; Y.style.height=height+"px";Y.style.margin="0px"; Y.style.padding="0px"; Y.style.borderWidth="0px"; Y.style.overflow="auto"; if (this.ignoreTab)Y.tabIndex=-1; Y.style.display="none"; if (HTMLEditor.is_ie)Y.style.visibility="hidden"; O2b.appendChild(Y); this.o15=Y; function l2b(ox){if (X.lu(ox))return; var Ox; if (HTMLEditor.is_Safari)Ox=document.getElementById(X._hiddenContent+"_inner_iframe").contentWindow.document; else Ox=X._iframe.contentWindow.document; if (!Ox){if (HTMLEditor.l28 || HTMLEditor.o11){X.setTimeout(l2b,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}try {if (HTMLEditor.l28 || HTMLEditor.o11){Ox.designMode="on"; }}catch (t){document.location.reload( true); return false; }X.i1=Ox; Ox.open(); var html=new l29(); if (X.d!=null)html.write(X.d.replace(/(<!doctype [^>]*>)/ig,"")); html.write("<html"+(X.B!=null?X.B: "")+(HTMLEditor.is_ie?" xmlns:teo"+HTMLEditor.om: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); html.write("\x3clink rel=\"stylesheet\" href=\""+X.Q[013]+"\" media=\"all\" />"); if (HTMLEditor.is_ie){html.write("<style> li {margin-top: 1px;} </style>"); }for (var i2b=0; i2b<X.F.length; i2b++)html.write(X.F[i2b]); html.write("\x3cstyle>\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var i29=0; i29<X._addCssFiles.length; i29++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[i29]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }if (X.D!=null)html.write(X.D.replace(/<meta[^\0]*?\/>/gi,"")); html.write("</head>"); html.write("<body id='editorBody'"+(X.C!=null?X.C: "")+">"); if (!HTMLEditor.is_ie){}else ih=ih.replace(/&amp;/ig,"&"); if (ih.length==0){if (HTMLEditor.is_ie){}else {ih="<br/>"; }}if (!HTMLEditor.is_ie){if (/<iframe/.test(ih)){X.O11=ih; ih="";}else {X.O11=null; }}html.write(ih); html.write("</body>"); html.write("</html>"); Ox.write(html.toString()); Ox.close(); if (HTMLEditor.is_ie && X._autoFocus)X._iframe.style.visibility="visible"; Ox.id="EditorDocument"; if (HTMLEditor.is_ie){function I2b(ll){if (ll.nodeType==1 && ll.tagName){var il=ll.tagName.toUpperCase(); if (il!="INPUT" && il!="TEXTAREA" && il!="IFRAME"){ll.unselectable="on"; }for (var o2c=0; o2c<ll.childNodes.length; o2c++)I2b(ll.childNodes.item(o2c)); }}I2b(document.getElementById(X.mainDivId)); Ox.body.unselectable="off"; Y.unselectable="off"; if (X._autoFocus)Ox.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.Iv(Ox,["keydown","keypress","mousedown","mouseup","dblclick"], function (event){return X.O2c(event); } ); if (HTMLEditor.o11)HTMLEditor.ik(X._iframe,"blur", function (event){X.f= false; HTMLEditor._stopEvent(event); return true; } ); if (HTMLEditor.o11)HTMLEditor.ik(X._iframe,"focus", function (event){X.f= true; HTMLEditor._stopEvent(event); return true; } ); if (X._NoDrop){if (HTMLEditor.is_ie){HTMLEditor.Iv(Ox.body,["drop"], function (event){HTMLEditor._stopEvent(event); return false; } ); HTMLEditor.Iv(Ox.body,["dragenter","dragover"], function (event){HTMLEditor._stopEvent(event); return false; } ); }else {HTMLEditor.Iv(Ox,["dragdrop"], function (event){HTMLEditor._stopEvent(event); return false; } ); }}if (X._NoPaste && HTMLEditor.is_ie){HTMLEditor.Iv(Ox.body,["beforepaste","paste"], function (event){HTMLEditor._stopEvent(event); return false; } ); }if (!X.l2c){var o1e=document.getElementById(X.mainDivId); X.i8.i27=o1e.offsetWidth; o1e=document.getElementById(X.panelDivId); X.i8.i19=o1e.offsetHeight; X.i8.I27=o1e.offsetWidth; if (!o1e.style.width || o1e.style.width.indexOf("px")<0){X.l2c= true; HTMLEditor.ik(X.o1,"resize", function (event){X._onresize(event); } ); }if (X.__NoToolBar__ || HTMLEditor.o11){if (X.__NoToolBar__)o1e.style.display="none"; X.setTimeout( function (ox){if (X.lu(ox))return; X._onresize(); if (HTMLEditor.is_Safari || HTMLEditor.o11){X._iframe.style.width="100%"; X.setTimeout( function (ox){if (X.lu(ox))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.o15.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }}else {X.setTimeout( function (ox){if (X.lu(ox))return; if (X.__NoToolBar__){var o1e=document.getElementById(X.panelDivId); o1e.style.display="none"; }if (HTMLEditor.is_Safari)X.setTimeout( function (ox){if (X.lu(ox))return; X._onresize(); } ,0); else {X._onresize(); }if (!HTMLEditor.is_ie){X._iframe.style.width="100%"; X.setTimeout( function (ox){if (X.lu(ox))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.o15.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }} ; X.setTimeout(l2b,(HTMLEditor.l28 || HTMLEditor.o11)?0144: 0); this.i2c= true; } ; HTMLEditor.I4= function (X,table,I2c){function O1g(O1n){if (!O1n){X.I1e( false); }else {if (HTMLEditor.o11){X.f= true; X.focusEditor(); }setTimeout( function (){X.updateToolbar(); X.l14(); } ,012); }return true; }var o2d=0,O2d=0; while (I2c!=null){if (I2c.tagName){if (I2c.tagName.toUpperCase()=="TD"){if (HTMLEditor.is_Safari){var l2d=I2c.parentNode; for (var i=0; i<l2d.cells.length; i++)if (l2d.cells.item(i)==I2c){O2d=i; break; }}else O2d=I2c.cellIndex; o2d=I2c.parentNode.rowIndex; break; }}I2c=I2c.parentNode; }X.i10(); if (table.getAttribute("width") && table.getAttribute("width").length>0){table.style.width=parseInt(table.getAttribute("width"))+"px"; table.removeAttribute("width"); }if (table.getAttribute("height") && table.getAttribute("height").length>0){table.style.width=parseInt(table.getAttribute("height"))+"px"; table.removeAttribute("height"); }if (table.getAttribute("background") && table.getAttribute("background").length>0){table.style.backgroundImage="url("+table.getAttribute("background")+")"; table.removeAttribute("background"); }if (table.getAttribute("border") && table.getAttribute("border").length>0){table.style.borderTopWidth=parseInt(table.getAttribute("border"))+"px"; table.style.borderLeftWidth=parseInt(table.getAttribute("border"))+"px"; table.removeAttribute("border"); }X.Ii("_tableProperties",X.Og("table","Edit a Table"),table,O1g,o2d,O2d); };HTMLEditor.i4= function (X,cell){function O1g(O1n){if (!O1n){X.I1e( false); }else {if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.updateToolbar(); X.l14(); }return true; }X.i10(); X.Ii("_cellProperties",X.Og("cell","Edit a Cell"),cell,O1g); };HTMLEditor.i3= function (X,img){function O1g(O1n){if (!O1n){setTimeout( function (){X.I1e( false); } ,012); }else {if (HTMLEditor.is_ie){setTimeout( function (){var i1b=X.i1.body.createControlRange(); i1b.add(img); i1b.select(); } ,0); }else if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); X.Ii("_imageProperties",X.Og("image","Edit an Image"),img,O1g); };HTMLEditor.prototype.editImage= function (img){if (img.tagName && img.tagName.toUpperCase()=="IMG")HTMLEditor.i3(this,img); };HTMLEditor.o2= function (X,ll){var i2d= false; try {X.i10(); i2d= true; if (!HTMLEditor.is_ie)ll=HTMLEditor.contentEditable(ll); ll.contentEditable="inherit"; ll.removeAttribute("contenteditable"); if (ll.tagName && (ll.tagName.toUpperCase()=="SPAN" || ll.tagName.toUpperCase()=="DIV")){var count=0; if (ll.attributes)for (var i=0; i<ll.attributes.length; i++){var I2d=ll.attributes[i]; if (I2d.name.toUpperCase()=="STYLE")continue; if (I2d.specified)count++; }var o2e=(ll.style)?ll.style.cssText: ""; var par=ll.parentNode; if (count==0 && o2e.length==0){while (ll.firstChild!=null)par.insertBefore(ll.firstChild,ll); par.removeChild(ll); }HTMLEditor.o26(par,X.i1); }}catch (w){try {if (i2d)X.I1e( false); if (HTMLEditor.is_ie){HTMLEditor.l1o(ll,X); }}catch (I13){}}};HTMLEditor.O2= function (X,O26){function O1g(O1n){if (!O1n){setTimeout( function (){X.I1e( false); } ,0); }else {if (HTMLEditor.is_ie){O26.id=HTMLEditor.om; X.i10(); setTimeout( function (){X.I1e( false); var l1c=X.i1.getElementById(HTMLEditor.om); l1c.id=null; l1c.removeAttribute("id"); var i1b=X.i1.body.createControlRange(); i1b.add(l1c); i1b.select(); } ,0); }else if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); X.Ii("_flashProperties",X.Og("flash","Edit a Flash"),O26,O1g); };HTMLEditor.o3= function (X,media){function O1g(O1n){if (!O1n){setTimeout( function (){X.I1e( false); } ,012); }else {if (HTMLEditor.is_ie){X.i10(); setTimeout( function (){X.I1e( false); } ,012); }else if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); X.Ii("_mediaProperties",X.Og("media","Edit Media"),media,O1g); };HTMLEditor.prototype.O2e= function (media,op){var X=this;if (media!=null){media.id=HTMLEditor.om; }X.i10(); X.iv.style.display="none"; if (HTMLEditor.is_ie)X.iv.style.visibility="hidden"; try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); if (HTMLEditor.is_ie)X.lq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var Il=X.O1.removeChild(X._iframe); X._textArea.value=""; X._textArea.style.visibility="hidden"; X._textArea.style.display=""; X._iframe=null; delete Il; }catch (t){}setTimeout( function (){X.activate( function (){X.l2e( false); if (media!=null){var l1c=X.i1.getElementById(HTMLEditor.om); l1c.id=null; l1c.removeAttribute("id"); media=l1c; }if (typeof op=="function")op(media); } ); } ,0); };HTMLEditor.I2= function (X,i2e){X.i10(); var I2e=i2e; if (I2e.getAttribute(HTMLEditor.Ot) && I2e.getAttribute(HTMLEditor.Ot).length>0){var lk=X.lt(I2e); if (lk!=null)I2e=lk; }setTimeout( function (){if (HTMLEditor.is_ie){var Oq=X.lq(); Oq.empty(); }var par=I2e.parentNode; if (par!=null){par.removeChild(I2e); if (par.tagName && par.tagName.toUpperCase()=="TD" && par.childNodes.length==0){par.innerHTML=X.l22(); }}if (HTMLEditor.is_ie){var i16=X.K[X.O1e-1]; var Oq=X.lq(); Oq.empty(); var iq=X.i1.body.createTextRange(); try {iq.moveToPoint(i16.o2f,i16.O2f); }catch (t){}iq.select(); iq.execCommand("refresh", false , false); }X.l14(); } ,012); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.DeleteNode= function (i2e){HTMLEditor.I2(this,i2e); };HTMLEditor.O5= function (X,i2e){X.cut(); };HTMLEditor.i5= function (X,i2e){X.copy(); };HTMLEditor.I5= function (X,i2e){X.paste(); };HTMLEditor.O6= function (X,i2e){X.pasteText(); };HTMLEditor.i6= function (X,i2e){X.deleteSelection(); };HTMLEditor.I6= function (X,i2e){X.selectAll(); };HTMLEditor.l5= function (X,i2e){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(X.O1b()): ""; var Oq=X.lq(); var iq=X.Iq(Oq); if (HTMLEditor.is_ie)if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; if (!X.Or() && ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))return true; return false; };HTMLEditor.o6= function (X,i2e){if (!X.Or()){if (!HTMLEditor.is_ie){var iq=X.Iq(X.lq()); var i21=iq.startContainer; var I21=iq.endContainer; var ll=HTMLEditor.contentEditable(i21); if (ll==null)ll=HTMLEditor.contentEditable(I21); if (ll!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return !X._NoPaste; }return false; };HTMLEditor.l6= function (X,i2e){if (!X.Or()){if (!HTMLEditor.is_ie){var iq=X.Iq(X.lq()); var i21=iq.startContainer; var I21=iq.endContainer; var ll=HTMLEditor.contentEditable(i21); if (ll==null)ll=HTMLEditor.contentEditable(I21); if (ll!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return true; }return false; };HTMLEditor.l2= function (X,i2e){var I2e=i2e; if (I2e.getAttribute(HTMLEditor.Ot) && I2e.getAttribute(HTMLEditor.Ot).length>0){var lk=X.lt(I2e); if (lk!=null)I2e=lk; }setTimeout( function (){var l2f=X.i1.body.createControlRange(); l2f.add(I2e); l2f.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.O1f(); X.l1f("c", false); X.on(); X.i1f(); } ,0);}else {X.l1f("c", false); setTimeout( function (){X.lq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.i2= function (X,i2e){var I2e=i2e; if (I2e.getAttribute(HTMLEditor.Ot) && I2e.getAttribute(HTMLEditor.Ot).length>0){var lk=X.lt(I2e); if (lk!=null)I2e=lk; }setTimeout( function (){var l2f=X.i1.body.createControlRange(); l2f.add(I2e); l2f.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.O1f(); X.l1f("x", false); X.on(); } ,0);}else {X.l1f("x", false); setTimeout( function (){X.lq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.I10= function (par){try {var ll=this.i1.body; if (ll.firstChild)if (ll.firstChild.nodeType==3){var ih=HTMLEditor.I12(""+ll.firstChild.data+""); if (ih.length==0)ll.removeChild(ll.firstChild); else if (ih!=(""+ll.firstChild.data+""))ll.firstChild.data=ih; }if (HTMLEditor.is_ie)if (ll.childNodes.length==1){ll=ll.firstChild; if (ll.nodeType==1)if (ll.tagName.toLowerCase()=="p" || ll.tagName.toLowerCase()=="ul" || ll.tagName.toLowerCase()=="ol"){var i2f= false; var I2f=(ll.tagName.toLowerCase()=="ul" || ll.tagName.toLowerCase()=="ol")? true : false; function o2g(ic){var le= false; if (ic.nodeType==1){if (!(I2f && ic.tagName.toUpperCase()=="LI"))if (HTMLEditor.O2g(ic) || ic.tagName.toUpperCase()=="IMG" || ic.tagName.toUpperCase()=="IFRAME" || ic.tagName.toUpperCase()=="EMBED" || ic.tagName.toUpperCase()=="SCRIPT")return true; if (ic.childNodes.length>1)return true; if (ic.childNodes.length==0)return false; le |= o2g(ic.firstChild); }else if (ic.nodeType==3){le |= true; }return le; }if (ll.childNodes.length==1){if (!o2g(ll.firstChild)){ll.removeChild(ll.firstChild); i2f= true; }}if (i2f || ll.parentNode.innerHTML.toLowerCase()=="<p>&nbsp;</p>")this.i1.body.removeChild(ll); }} this.l14(); }catch (t){}};HTMLEditor.l2g=navigator.userAgent.toLowerCase(); HTMLEditor.is_ie=((HTMLEditor.l2g.indexOf("msie")!=-1) && (HTMLEditor.l2g.indexOf("opera")==-1)) && window.opera==null; HTMLEditor.l13=(/MSIE (8)/.test(navigator.userAgent) && document.compatMode!="BackCompat"); HTMLEditor.o11=(HTMLEditor.l2g.indexOf("opera")!=-1) || window.opera; HTMLEditor.i2g=(HTMLEditor.l2g.indexOf("mac")!=-1); HTMLEditor.I2g=(HTMLEditor.is_ie && HTMLEditor.i2g); HTMLEditor.o2h=(HTMLEditor.is_ie && !HTMLEditor.i2g); HTMLEditor.l28=(navigator.product=="Gecko"); HTMLEditor.is_Safari=(HTMLEditor.l2g.indexOf("safari")!=-1); HTMLEditor.O2h=(HTMLEditor.l2g.indexOf("firefox")!=-1); HTMLEditor.l2h=(HTMLEditor.l2g.indexOf("safari")!=-1); HTMLEditor.i2h=(HTMLEditor.l2g.indexOf("firefox")!=-1); HTMLEditor.I2h=HTMLEditor.l28 && navigator.o2i=="Camino"; HTMLEditor.O2i=!HTMLEditor.o11 && navigator.userAgent.indexOf("Konqueror")!=-1; HTMLEditor.l2i=HTMLEditor.O2i || HTMLEditor.l2h; HTMLEditor.ok=(/[^12]\.(\d+)\.(\d+) safari/i).test(HTMLEditor.l2g); HTMLEditor.Ij=(HTMLEditor.l2g.indexOf("netscape")!=-1 && navigator.vendorSub.replace(/^(\d+)\.\d*/,"$1")<8) || (HTMLEditor.l28 && navigator.productSub<0114371117) || (HTMLEditor.is_Safari && !HTMLEditor.ok); HTMLEditor.i2i= function (){var I2i="",o2j; if (HTMLEditor.o11){I2i=opera.I2i(); }else {if (HTMLEditor.l28){o2j=/rv:([^);]+)(\)|;)/; }else if (HTMLEditor.is_ie){o2j=/MSIE\s+([^);]+)(\)|;)/; }else if (HTMLEditor.l2h){o2j=/WebKit\/(\S+)/; }else if (HTMLEditor.O2i){o2j=/Konqueror\/([^);]+)(\)|;)/; }if (o2j){o2j.test(navigator.userAgent); I2i=RegExp.$1; }}return I2i; };HTMLEditor.compareVersions= function (O2j,l2j){var i2j=0,I2j=String(O2j).split("."),o2k=String(l2j).split("."),O2k=Math.max(I2j.length,o2k.length); for (var l2k=0; i2j==0 && l2k<O2k; l2k++){var i2k=I2j[l2k] || "",I2k=o2k[l2k] || "",o2l=new RegExp("(\\d*)(\\D*)","g"),O2l=new RegExp("(\\d*)(\\D*)","g"); do {var l2l=o2l.exec(i2k) || ["","",""],i2l=O2l.exec(I2k) || ["","",""]; if (l2l[0].length==0 && i2l[0].length==0){break; }var I2l=l2l[1].length==0?0:parseInt(l2l[1],012),o2m=i2l[1].length==0?0:parseInt(i2l[1],012); i2j=HTMLEditor.O2m(I2l,o2m) || HTMLEditor.O2m(l2l[2].length==0,i2l[2].length==0) || HTMLEditor.O2m(l2l[2],i2l[2]);}while (i2j==0);}return i2j;} ; HTMLEditor.O2m= function (left,right){if (left<right){return -1;}else if (left>right){return 1;}return 0;} ; HTMLEditor.l2m= function (i2m,I2m){return HTMLEditor.compareVersions(i2m,I2m); } ; HTMLEditor.o2n= function (I2i){return HTMLEditor.l2m(HTMLEditor.i2i(),I2i)>=0; } ; if (HTMLEditor.is_Safari && !HTMLEditor.ok)( function (){var O2n=String.prototype.replace; String.prototype.replace= function (search,replace){if (typeof replace!="function"){return O2n.apply(this,arguments);}var ih=""+this ; var l2n=replace; if (!(search instanceof RegExp)){var i2n=ih.indexOf(search); return (i2n==-1?ih:O2n.apply(ih,[search,l2n(search,i2n,ih)]));}var I2n=search; var l1v=[]; var o2o=I2n.lastIndex; var o2j; while ((o2j=I2n.exec(ih))!=null){var i2n=o2j.index; var ib=o2j.concat(i2n,ih); l1v.push(ih.slice(o2o,i2n),l2n.apply(null,ib).toString()); if (!I2n.global){o2o+=RegExp.lastMatch.length; break; }else {o2o=I2n.lastIndex; }}l1v.push(ih.slice(o2o)); return l1v.join(""); };} )(); HTMLEditor.r= function (){if (HTMLEditor.l28){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.i2g && !(HTMLEditor.is_Safari || HTMLEditor.O2h)){alert(this.Of("mac-using","Use Safari or FireFox...")); return false; }if (HTMLEditor.o11){var I2i=0; var O2o=0; function test(O29,i21,I21){I2i=parseInt(i21); O2o=parseInt(I21); }HTMLEditor.l2g.replace(/opera\/(\d+)\.(\d+)/ig,test); if (!(I2i*0144+O2o>=01630)){alert("Opera < 9.20 is not supported"); return false; }}return HTMLEditor.l28 || HTMLEditor.is_ie || HTMLEditor.o11; } ; HTMLEditor.ik= function (ll,l2o,op){if (!ll){return; }if (ll.attachEvent)ll.attachEvent("on"+l2o,op); else {if (ll.addEventListener)ll.addEventListener(l2o,op, true); }} ; HTMLEditor.Iv= function (ll,i2o,op){if (!ll){return; }try {if (typeof ll.push=="function"){for (var i=0; i<i2o.length; i++)for (var oh=0; oh<ll.length; oh++)HTMLEditor.ik(ll[oh],i2o[i],op); }else {for (var i=0; i<i2o.length; i++)HTMLEditor.ik(ll,i2o[i],op); }}catch (t){ throw t; }} ; HTMLEditor.Ic= function (ll,l2o,op){if (ll.detachEvent)ll.detachEvent("on"+l2o,op); else {if (ll.removeEventListener)ll.removeEventListener(l2o,op, true); }} ; HTMLEditor.I2o= function (ll,i2o,op){if (ll.push){for (var i=0; i<i2o.length; i++)for (var oh=0; oh<ll.length; oh++)HTMLEditor.Ic(ll[oh],i2o[i],op); }else {for (var i=0; i<i2o.length; i++)HTMLEditor.Ic(ll,i2o[i],op); }} ; HTMLEditor._stopEvent= function (ij){if (ij)if (HTMLEditor.is_ie){ij.cancelBubble= true; ij.returnValue= false; }else {ij.preventDefault(); ij.stopPropagation(); }} ; HTMLEditor.prototype._stopEvent= function (ij){HTMLEditor._stopEvent(ij); };HTMLEditor.prototype._formSubmit= function (ij){if (!this.Io && this.mainDivVisible){try {return [document.getElementsByName(this._hiddenContent)[0].value,document.getElementsByName(this._hiddenContent)[0].value]; }catch (w){return ["",""]; }}var I18=""; if (this.l1=="preview"){I18=""; if (this.i15=="html")I18=this.O19; else I18=this.o15.value; if (HTMLEditor.is_Safari){}}else {if (this.l1=="html"){I18=this.getHTML(); }else {if (this.o15)I18=this.o15.value; else I18=this._textArea.value; }}if (this.NoScript){ this._textArea.value=this._textArea.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); I18=I18.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); }var o2p=I18.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"); if (!this._remainLf)o2p=HTMLEditor.I12(o2p); this._textArea.value=o2p; return [o2p,I18]; } ; HTMLEditor.prototype._prepareHTML= function (ih){var save=this.l1; this.l1="text"; var O2p=(this.o15)? true : false; if (!O2p){var Y=document.createElement("textarea"); this.o15=Y; if (HTMLEditor.is_Safari)document.body.appendChild(Y); }if (!(this.Iu && !HTMLEditor.S())){ this.o15.value=(this._textArea.value.length>0)?(this._textArea.value.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,"\"").replace(/&amp;/g,"&")): ((typeof ih=="string")?ih.replace(/&quot;/g,"\""):ih.value); function l2p(O29,i21){if (i21=="\\n")return "\n"; return i21.replace("\\\\","\\"); } this.o15.value=this.o15.value.replace(/([\\]+n)/g,l2p); if (this.InitialCleanUp)this.o15.value=HTMLEditor.i2p(HTMLEditor.I12(this.o15.value.replace(/[\n\r]+/g," "))); if (typeof ih!="string")ih.value=""; document.getElementsByName(this._hiddenContent)[0].value=HTMLEditor.I12(this.o15.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")); if (document.getElementsByName(this._hiddenContent+"_modified").length==0){var lk=document.createElement("input"); lk.type="hidden"; lk.name=this._hiddenContent+"_modified"; document.getElementsByName(this._hiddenContent)[0].parentNode.insertBefore(lk,document.getElementsByName(this._hiddenContent)[0]); }}if (this._textArea.style.visibility=="hidden")this._textArea.style.visibility="visible"; this.F=null; var le=this.getHTML(); if (!O2p){ this.o15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; } this.l1=save; return le; };HTMLEditor.prototype.setOriginal= function (In){var X=this ; if (X.mode()=="preview"){X.O16= false; X.l= true; }else if (X.mode()=="text"){X.o16=X.o15.value; X.O16= false; X.l= true; }else {X.O14=HTMLEditor.I12((typeof In!="undefined" && In!=null)?In:HTMLEditor.getHTML(X.i1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l14(); }X.l= false; }return true; };HTMLEditor.prototype.setContent= function (ih,I2p,o2q){if (this.mode()=="preview")return false; var X=this ; if (typeof o2q=="function"){ this.L=o2q; }function O2q(){if (typeof ih=="string"){if (!X.It() || !X.mainDivVisible){X._textArea.value=""; X._textArea.value=X._prepareHTML(ih.replace(/"/g,"&quot;")); X.on(); X.l14(); return false; }try {try {if (X.mode()=="html")X.i10(); }catch (t){}var Il=X._textArea.parentNode.removeChild(X.O1); X.O1=null; delete Il; }catch (t){}try {X._textArea.value=""; X._textArea.value=X._prepareHTML(ih.replace(/"/g,"&quot;")); if ((typeof I2p!="undefined") && I2p){X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O1e=-1; }}X.activate(); if (X.mainDivVisible)setTimeout( function (){X.focusEditor(); } ,0454); }catch (t){X.on(); return false; }X.l14(); }else {if ((typeof I2p!="undefined") && I2p){X.O14=HTMLEditor.I12(HTMLEditor.getHTML(X.i1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l14(); }if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O1e=-1; }}X.on(); }return true; }if (this.mode()=="text"){if (this.mainDivVisible){try {if (typeof ih=="string")X.o15.value=ih; if ((typeof I2p!="undefined") && I2p){X.o16=X.o15.value; X.O16= false; X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O1e=-1; }}}catch (t){return false; }return true; }else {if (typeof ih=="string"){X._textArea.value=""; X._textArea.value=X._prepareHTML(ih.replace(/"/g,"&quot;")); if (X.o15!=null && X.o15!="undefined")X.o15.value=X._textArea.value; }return true; }}if (this.mode()=="html"){if (this.mainDivVisible){function l2q(){if (X.Io){X.openWait(); setTimeout(O2q,0); }else {setTimeout(l2q,0144); }}l2q(); }return true; }return false; };HTMLEditor.prototype.getContent= function (i2q){var le; if (this.l1=="preview"){if (this.i15=="html")le=this.O19; else le=this.o15.value; }else if (HTMLEditor.is_ie){if (this.l1=="html"){le=this.getHTML(); }else {var O2p=(this.o15)? true : false; if (!O2p){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.o15=Y; this.o15.value=document.getElementsByName(this._hiddenContent)[0].value.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }le=HTMLEditor.I2q(this.o15.value); if (!O2p){ this.o15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }}}else {le=this.getHTML(); }if (!(typeof i2q!="undefined" && i2q)){le=HTMLEditor.I12(le); le=le.replace(/[\0-\x1f]+$/,""); }if (le.length>=6)if (le.substr(le.length-5,5)=="<br/>")le=le.substr(0,le.length-5); else if (le.substr(le.length-6,6)=="<br />")le=le.substr(0,le.length-6); else if (le.substr(le.length-4,4)=="<br>")le=le.substr(0,le.length-4); return le; } ; HTMLEditor.prototype.TextSelected= function (){if (this.mode()!="html")return false; var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; var Oq=this.lq(); var iq=this.Iq(Oq); if (!this.Or() && ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))return true; else return false; };HTMLEditor.prototype.getContentWait= function (oq,i2q){if (typeof oq=="function"){var X=this ; X.openWait(); setTimeout( function (){oq(X.getContent(i2q)); X.on(); } ,0); }} ; HTMLEditor.prototype.openWait= function (o2q){if (!this._pleaseWait)return; try {var ic=document.getElementById(this.mainDivId).parentNode; var ou= true; while (ic){if (ic.style && ic.style.display=="none"){ou= false; break; }ic=ic.parentNode; }if (this.N!=null || !ou || !this.mainDivVisible)return; if (typeof o2q=="function"){ this.L=o2q; }var popup; var X=this ; popup=X.A.ownerDocument.createElement("div"); popup.className="popup_wait"; popup.innerHTML="<div><center><nobr>"+X.Of("wait","Please wait...")+"<nobr></center></div>"; X.A.appendChild(popup); var o9=parseInt(popup.offsetWidth); var O9=parseInt(popup.offsetHeight); popup.style.display="none"; var y; var x; var o2r=(X.l1=="text")?(X.O1==null?null:X.o15): ((X.l1=="preview")?X.iv:X._iframe); if (o2r==null && X._textArea && X._textArea.style.O2r!="none" && X._textArea.style.visibility!="hidden")o2r=X._textArea; if (o2r==null || typeof o2r=="undefined")o2r=document.getElementById(X.mainDivId); var l2r=parseInt(o2r.offsetWidth); var i2r=parseInt(o2r.offsetHeight); var I2r=HTMLEditor.o2s(o2r, false); y=i2r/2-O9/2+I2r._top; x=l2r/2-o9/2+I2r.O1y; popup.style.top=y+"px"; popup.style.left=x+"px"; this.N=popup; popup.style.display=""; }catch (t){alert("openWait: "+t.message); }};HTMLEditor.prototype.on= function (){if (this.L!=null){var O2s=this.L; setTimeout(O2s,0764); this.L=null; }if (HTMLEditor.is_ie && this.mainDivVisible && this.It() && this.l1=="html" && document.getElementById(this.mainDivId)!=null){try { this.updateToolbar(); }catch (t){} ; }if (this.N==null)return; var lk; try {lk=this.A.removeChild(this.N); delete lk; }catch (t){} this.N=null; };HTMLEditor.prototype.Ib= function (o2q){try {if (document.getElementById(this.mainDivId)==null)return; var ic=document.getElementById(this.mainDivId).parentNode; var ou= true; while (ic){if (ic.style && ic.style.display=="none"){ou= false; break; }ic=ic.parentNode; }if (this.n!=null || !ou || !this.mainDivVisible)return; var popup; var X=this ; popup=X.A.ownerDocument.createElement("div"); popup.style.zIndex="20000"; popup.style.position="absolute"; popup.innerHTML="\x3cimg src=\""+this.Q[6]+"\">"; X.A.appendChild(popup); var o9=parseInt(popup.clientWidth); var O9=parseInt(popup.clientHeight); popup.style.display="none"; var y; var x; var o2r=(X.l1=="text")?(X.O1==null?null:X.o15): ((X.l1=="preview")?X.iv:X._iframe); if (o2r==null && X._textArea && X._textArea.style.O2r!="none" && X._textArea.style.visibility!="hidden")o2r=X._textArea; if (o2r==null || typeof o2r=="undefined")o2r=document.getElementById(X.mainDivId); var l2r=parseInt(o2r.clientWidth); var i2r=parseInt(o2r.clientHeight); var I2r=HTMLEditor.o2s(o2r, false); y=i2r/2-O9/2+I2r._top; x=l2r/2-o9/2+I2r.O1y; popup.style.top=y+"px"; popup.style.left=x+"px"; this.n=popup; popup.style.display=""; }catch (t){}};HTMLEditor.prototype.l2s= function (){if (this.n==null)return; var lk=this.A.removeChild(this.n); delete lk; this.n=null; };HTMLEditor.prototype.setVisibility= function (p){if (!this.os)return false; var X=this ; if (p){if (!X.mainDivVisible){X.mainDivVisible= true; document.getElementById(X.mainDivId).style.display="block"; if (X.Ir==0){if (X._setRealSize && typeof X._setRealSize=="function"){X._setRealSize(); }X.i8= {o9:X._textArea.offsetWidth,O9:X._textArea.offsetHeight } ; X.l1="html"; X.openWait(); X._textArea.style.visibility="hidden"; X.setTimeout( function (ox){if (X.lu(ox))return; X.activate(); } ,0); }else {X.chMode("html"); }}}else {if (X.mainDivVisible){var V=0; if (X.v!=null && typeof X.v.pop=="function"){while (X.v.length>0){var T=X.v.pop(); if (typeof T[0]=="function"){try {clearTimeout(T[1]); }catch (t){}V++; }}X.v=null; }try {X.on();}catch (w){} ; var i2s=X.clearPopups(); if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; }if (V>0)X.l1="undef"; var I2s= false; if (X.l1=="html" || X.l1=="preview"){if (X.l1=="html")X.i0= false; if (i2s)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.l1=="undef"){X.l1="text"; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.lq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; try {X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; }catch (t){} ; var Il=null; try {Il=X.O1.removeChild(X._iframe); }catch (t){} ; X._iframe=null; if (Il!=null) delete Il; Il=null; try {Il=X.O1.removeChild(X.iv); }catch (t){} ; X.iv=null; if (Il!=null) delete Il; Il=null; try {Il=X.O1.removeChild(X.o15); }catch (t){} ; X.o15=null; if (Il!=null) delete Il; Il=null; try {Il=X.O1.parentNode.removeChild(X.O1); }catch (t){} ; X.O1=null; if (Il!=null) delete Il; if (!HTMLEditor.is_Safari){X.ix=X.i8.O9; X.l19=X.i8.i19; }X._textArea.style.display="block"; }catch (t){}I2s= true; }else if (X.l1=="text")I2s= true; if (X.ShowQuickFormatDivId!=null)HTMLEditor.i18(X.ShowQuickFormatDivId); if (I2s)setTimeout( function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ,024); }}document.getElementsByName(X.mainDivVisibleName)[0].value=(X.mainDivVisible)?"true": "false"; };HTMLEditor.I2q= function (ih){return ih.replace(/<br>/ig,"<br/>"); };HTMLEditor.prototype.getHTML= function (Im,o2t){try {var O15=this.l1; if (O15=="preview"){O15=this.i15; if (O15=="html"){return this.O19; }}function O2t(O29,i21){return "&#"+i21.charCodeAt(0).toString(012)+";"; }function l2t(O29,i21){return "\x3cspan class=\""+HTMLEditor.om+"_script\" style=\'display:none;visibility:hidden;\'>"+i21.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }var i2t=[]; function I2t(O29,i21){i2t.push(i21); return "";}function o2u(O29,i21,I21,O2u){return i21.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var l2u=-1; function i2u(O29,i21,I21,O2u){l2u++; var I2u; if (!HTMLEditor.is_ie)I2u=i2t[l2u].replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); else I2u=i2t[l2u]; return i21+I2u+O2u; }function o2v(O29,i21){X.c=i21; return O29; } ; function O2v(O29,i21){X.d=i21; return ""; } ; function l2v(O29,i21){X.D=i21; return ""; } ; function o29(O29,i21,I21){X.C=i21; return I21; } ; function i2v(O29,i21){X.B=i21; return O29; } ; switch (O15){case "html": this.I10(); var In=(typeof o2t!="undefined"); if (typeof Im=="undefined" || Im== false){var I2v=!HTMLEditor.ly(this,this.i1, true); var o2w=!HTMLEditor.iy(this,this.i1, true); In=In && I2v && o2w; }var O2w=""; if (this.F!=null)for (var i=0; i<this.F.length; i++){O2w+=this.F[i].replace(new RegExp("}\\s*","g"),"}\n").replace(/(<style(?:[^>]*?)>)/ig,"$1\n")+"\n"; }if (HTMLEditor.is_ie){var lk=(In && typeof o2t!="undefined")?o2t:HTMLEditor.getHTML(this.i1.body, false , true); this.O16=!(this.O14==lk); lk=lk.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); lk=lk.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); lk=lk.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)){lk=((this.i1.body.style.cssText.length>0)?"\x3cdiv style=\""+this.i1.body.style.cssText.replace("\"","'")+"\">": "")+lk+((this.i1.body.style.cssText.length>0)?"</div>": ""); }if (this.predicatedTags)lk=lk.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); if (this.NoScript)lk=lk.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); if (/<embed/ig.test(lk)){lk=lk.replace(/(<embed(?:.*?))(\sloop="true")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\splay="true")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\sbgcolor="")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\sscale="")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\shspace="0")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\svspace="0")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\swmode="[^"]+")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(pseudomode=)("[^"]*")((?:.*?)>)/ig,"$1wmode=$3$4"); lk=lk.replace(/(<embed(?:.*?))(\swmode="")((?:.*?)>)/ig,"$1$3"); }var l2w=O2w+HTMLEditor.I2q(lk); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var i2w=""; if (this.d!=null)i2w+=this.d; i2w+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">"; if (this.i1.getElementById("oboutEditorDefaultStyle")==null){i2w+="\n\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; i2w+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"; }if (this._addCssFiles!=null){i2w+="\n"; for (var i29=0; i29<this._addCssFiles.length; i29++){var I2w= true; if (this.D!=null && this.D.length>0){var o2x=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[i29]+"\"","ig");if (o2x.test(this.D))I2w= false; }if (I2w)i2w+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[i29]+"\" media=\"all\" />\n"; }}if (this.D!=null)i2w+=this.D; i2w+="\x3c/head>\n"; if (this.i1.body.style.cssText.length>0){var O2x="<div"+(this.C!=null?this.C: "")+"></div>"; var l2x=document.createElement("DIV"); l2x.innerHTML=O2x; l2x.firstChild.style.cssText+=";"+this.i1.body.style.cssText; O2x=HTMLEditor.getHTML(l2x, false , true); O2x=O2x.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");i2w+="<body"+O2x+">\n"; }else {i2w+="<body"+(this.C!=null?this.C: "")+">\n"; }i2w+=l2w+"\n"; i2w+="\x3c/body>\n\x3c/html>"; l2w=i2w; }if (this.NoUnicode)l2w=l2w.replace(/([\x80-\uffff])/g,O2t);if (HTMLEditor.I12(l2w)=="<br />")l2w=""; l2w=l2w.replace(/^([\n|\r]+)/,""); var i2x=new RegExp("(<[/]?)(teo"+HTMLEditor.om+":)","ig"); l2w=l2w.replace(i2x,"$1"); return l2w; }var I2x=this.i1.createElement("DIV"); I2x.style.cssText=this.i1.body.style.cssText; if (!this.NoScript)this.i1.body.innerHTML.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,I2t); I2x.innerHTML=HTMLEditor.I12(this.i1.body.innerHTML); var oo=(In && typeof o2t!="undefined")?o2t:HTMLEditor.getHTML(this.i1.body, false , true); this.O16=!(this.O14==HTMLEditor.I12(oo)); var i1u=I2x.getElementsByTagName("IMG"); var o2y=[]; for (var i=0; i<i1u.length; i++)o2y.push(i1u[i]); for (var oh=0; oh<o2y.length; oh++){var img=o2y[oh]; var I2d; I2d=img.getAttribute("dummytag"); if (I2d && I2d.length>0 && I2d.toLowerCase()=="embed"){var src=img.getAttribute("dummysrc"); var O2y=img.getAttribute("dummybgcolor"); var wmode=img.getAttribute("pseudomode"); var l2y=img.attributes; var embed=this.i1.createElement("EMBED"); var o2j=/(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 (O2y && O2y.length>0){function i2y(I2y){return (I2y<020)?("0"+I2y.toString(020)):I2y.toString(020); } ; function o2z(O2z,$1,$2,$3,$4){var i1g=parseInt($2); var l2z=parseInt($3); var b=parseInt($4); return "#"+i2y(i1g)+i2y(l2z)+i2y(b); }try {O2y=O2y.replace(o2j,o2z); }catch (t){}embed.setAttribute("bgcolor",O2y); }if (wmode && wmode.length>0)embed.setAttribute("wmode",wmode); for (var i=0; i<l2y.length; ++i){var a=l2y.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(I2x,document,this ); HTMLEditor.o26(I2x,document); var lk=HTMLEditor.getHTML(I2x,(I2x.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)lk=lk.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,i2u); else lk=lk.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); delete I2x; if (this.predicatedTags)lk=lk.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); var l2w=O2w+HTMLEditor.I2q(lk); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var i2w=""; if (this.d!=null)i2w+=this.d; i2w+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">\n"; if (this.i1.getElementById("oboutEditorDefaultStyle")==null){i2w+="\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; i2w+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; }if (this._addCssFiles!=null){for (var i29=0; i29<this._addCssFiles.length; i29++){var I2w= true; if (this.D!=null && this.D.length>0){var o2x=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[i29]+"\"","ig");if (o2x.test(this.D))I2w= false; }if (I2w)i2w+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[i29]+"\" media=\"all\" />\n"; }}if (this.D!=null)i2w+=this.D; i2w+="\x3c/head>\n"; if (this.i1.body.style.cssText.length>0){var O2x="<div"+(this.C!=null?this.C: "")+"></div>"; var l2x=document.createElement("DIV"); l2x.innerHTML=O2x; l2x.firstChild.style.cssText+=";"+this.i1.body.style.cssText; O2x=HTMLEditor.getHTML(l2x, false , true); O2x=O2x.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");i2w+="<body"+O2x+">\n"; }else {i2w+="<body"+(this.C!=null?this.C: "")+">\n"; }i2w+=l2w+"\n"; i2w+="\x3c/body>\n\x3c/html>"; l2w=i2w; }if (this.NoUnicode)l2w=l2w.replace(/([\x80-\uffff])/g,O2t);if (HTMLEditor.I12(l2w)=="<br />")l2w=""; l2w=l2w.replace(/^([\n|\r]+)/,""); return l2w; case "text":var O2p=(this.o15)? true : false; var le; if (!O2p){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.o15=Y; this.o15.value=this._textArea.value; }if (this.NoScript)this.o15.value=this.o15.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/ig,""); this.D=null; this.C=null; this.c=null; this.B=null; this.d=null; var X=this ; this.o15.value=this.o15.value.replace(/<html(?=\s|>)([^>]*?)>/gi,i2v); this.o15.value=this.o15.value.replace(/<head(?=\s|>)([^>]*?)>/gi,o2v); this.o15.value=this.o15.value.replace(/^([^\0]+?)<html(?=\s|>)(?:[^>]*?)>/gi,O2v); this.o15.value=this.o15.value.replace(/<\/html(?=\s|>)(?:[^>]*?)>[^\0]*$/gi,""); this.o15.value=this.o15.value.replace(/<head(?=\s|>)(?:[^>]*?)>([^\0]*?)<\/head(?=\s|>)(?:[^>]*?)>/gi,l2v); this.o15.value=this.o15.value.replace(/<body(?=\s|>)([^>]*?)>([^\0]*?)<\/body(?=\s|>)(?:[^>]*?)>/gi,o29); this.o15.value=this.o15.value.replace(/<\/?html(?=\s|>)(?:[^>]*?)>/gi,""); this.o15.value=this.o15.value.replace(/<\/?head(?=\s|>)(?:[^>]*?)>/gi,""); this.o15.value=this.o15.value.replace(/<\/?body(?=\s|>)(?:[^>]*?)>/gi,""); this.o15.value=this.o15.value.replace(/<object(?:[^>]*?)>(?:[^\0]*?)(<embed(?:[^>]*?)>)(?:[^\0]*?)<\/object(?:[^>]*?)>/gi,"$1"); if (HTMLEditor.is_ie){var i2z=this.o15.value.replace(/([\n\r]+<)/g,"<"); i2z=HTMLEditor.I12(i2z.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); i2z=i2z.replace(/(&amp;)/g,"&amp;amp;"); i2z=i2z.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); i2z=i2z.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); i2z=i2z.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); if (/<embed/ig.test(i2z)){i2z=i2z.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); i2z=i2z.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); }le=i2z; }else {var src=document.createElement("DIV"); if (!this.NoScript)this.o15.value.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,I2t); src.innerHTML=HTMLEditor.I12(this.o15.value.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); var i1u=src.getElementsByTagName("EMBED"); var I2z=[]; for (var i=0; i<i1u.length; i++)I2z.push(i1u[i]); for (var oh=0; oh<I2z.length; oh++){var embed=I2z[oh]; var img=document.createElement("IMG"); var l2y=embed.attributes; img.src=this.Q[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<l2y.length; ++i){var a=l2y.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.o30(src,this, true); HTMLEditor.o26(src,document); var lk=HTMLEditor.I12(HTMLEditor.getHTML(src, false , true)); if (!this.NoScript)lk=lk.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,i2u); if (i2t.length>0){} delete src; le=HTMLEditor.I2q(lk); }if (!O2p){ this.o15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }return le; break; default:alert("Mode <"+mode+"> not defined"); return false; }}catch (t){ this.on(); return ""; }} ; HTMLEditor.prototype.O30= function (html){switch (this.l1){case "html": this.i1.body.innerHTML=html; break; case "text": this.o15.value=html; break; default:alert("Mode <"+mode+"> not defined"); }return false; } ; HTMLEditor.l30= function (ll){var lr=" script style div span a del strong em u strike font b sub sup p iframe li ul ol placeholder textarea td tr "; return (lr.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.i30= function (ll){var lr=" hr br "; return (lr.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.I30= function (ih){return ih.replace(/&/ig,"&amp;").replace(/</ig,"&lt;").replace(/>/ig,"&gt;").replace(/"/ig,"&quot;").replace(/\xa0/ig,"&nbsp;"); } ; HTMLEditor.Oy= function (O1p,Ox){var o31; for (var O31=O1p.firstChild; O31; O31=o31){if (O31.nodeType==1 || O31.nodeType==013){if (O31.tagName.length>0){if (O31.tagName.indexOf("/")>=0 && O31.tagName.toLowerCase().substr(O31.tagName.indexOf("/")+1)=="embed"){var o31=O31.nextSibling; O31.parentNode.removeChild(O31); continue; }var closed=(!(O31.hasChildNodes() || HTMLEditor.l30(O31))); if ((closed || O31.tagName.toLowerCase()=="placeholder") && !HTMLEditor.i30(O31) && O31.tagName.toLowerCase()!="embed"){var il=O31.tagName.toLowerCase(); var l31=O31.nextSibling; var lg=[]; while (l31!=null){if (l31.nodeType==O31.nodeType && l31.tagName)if (l31.tagName.indexOf("/")>=0)if (l31.tagName.toLowerCase().substr(l31.tagName.indexOf("/")+1)==il){l31.parentNode.removeChild(l31); il="teo"+HTMLEditor.om+":"+O31.tagName; var i31=Ox.createElement(il); var l2y=O31.attributes; for (var i=0; i<l2y.length; ++i){var a=l2y.item(i); if (!a.specified)continue; i31.setAttribute(a.name,a.value); }i31.style.cssText=O31.style.cssText; if (O31.className.length>0)i31.className=O31.className; O31.parentNode.insertBefore(i31,O31); O31.parentNode.removeChild(O31); for (var i=0; i<lg.length; i++){i31.appendChild(lg[i]); }O31=i31; break; }lg.push(l31); l31=l31.nextSibling; } delete lg; }}HTMLEditor.Oy(O31,Ox); }o31=O31.nextSibling; }};HTMLEditor.getHTML= function (O31,I31,o32){try {if (typeof o32=="undefined"){if (!I31 && O31.nodeType==1){return O31.innerHTML; }else if (I31 && O31.nodeType==1 && HTMLEditor.is_ie){return O31.outerHTML; }}}catch (t){}var html=new l29( true); HTMLEditor.O32(html,O31,I31); return html.toString(); };HTMLEditor.O32= function (html,O31,I31,o32){switch (O31.nodeType){case 1:case 013:if (O31.tagName && O31.tagName.indexOf("/")>=0){if (HTMLEditor.is_ie){var il=O31.tagName.toLowerCase().substr(O31.tagName.indexOf("/")+1); var l32=O31.previousSibling; if (il=="embed")return; while (l32!=null){if (l32.nodeType==O31.nodeType && l32.tagName && l32.tagName.toLowerCase()==il){html.write("</teo"+HTMLEditor.om+":"+O31.tagName.toLowerCase().substr(O31.tagName.indexOf("/")+1)+">"); return; }l32=l32.previousSibling; }}return; }var closed; var i32; var i; if (I31 && O31.tagName.length>0){closed=(!(O31.hasChildNodes() || HTMLEditor.l30(O31))); i32= true; var I32=""; if (HTMLEditor.is_ie && O31.scopeName && typeof O31.scopeName!="undefined"){I32=(O31.scopeName.toUpperCase()=="HTML")?"": (O31.scopeName+":"); }if (HTMLEditor.is_ie && (closed || O31.tagName.toLowerCase()=="placeholder") && !HTMLEditor.i30(O31) && O31.tagName.toLowerCase()!="embed"){var il=O31.tagName.toLowerCase(); var l31=O31.nextSibling; while (l31!=null){if (l31.nodeType==O31.nodeType && l31.tagName)if (l31.tagName.indexOf("/")>=0)if (l31.tagName.toLowerCase().substr(l31.tagName.indexOf("/")+1)==il){closed= false; i32= false; break; }l31=l31.nextSibling; }}if (!HTMLEditor.o33(O31)){html.write("\n"); }html.write("<"+((!closed && !i32)?"teo"+HTMLEditor.om+":":I32)+O31.tagName.toLowerCase()); if (HTMLEditor.is_ie && O31.name && O31.name.length>0){html.write(" name"+"=\""+O31.name.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O31.value && O31.value.length>0 && O31.tagName.toLowerCase()!="textarea"){html.write(" value"+"=\""+O31.value.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O31.className && O31.className.length>0){html.write(" class"+"=\""+O31.className.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O31.align && O31.align.length>0){html.write(" align"+"=\""+O31.align.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O31.color && O31.color.length>0){html.write(" color"+"=\""+O31.color.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O31.size && O31.size.length>0){html.write(" size"+"=\""+O31.size.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O31.shape && O31.shape.length>0){html.write(" shape"+"=\""+O31.shape.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O31.coords && O31.coords.length>0){html.write(" coords"+"=\""+O31.coords.replace(/"/g,"&quot;")+"\""); }var l2y=O31.attributes; for (i=0; i<l2y.length; ++i){var a=l2y.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=O31.width; if (HTMLEditor.is_ie && value==0){var O33=0; O31.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?width=)([\\d]+)","ig"), function (O29,i21){O33=i21; } ); if (value!=O33)value=O33; }}else if (name=="height"){value=O31.height; if (HTMLEditor.is_ie && value==0){var O33=0; O31.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?height=)([\\d]+)","ig"), function (O29,i21){O33=i21; } ); if (value!=O33)value=O33; }}else if (HTMLEditor.is_ie && name=="name" && O31.name && O31.name.length>0)continue; else if (HTMLEditor.is_ie && name=="value" && O31.value && O31.value.length>0)continue; else if (HTMLEditor.is_ie && name=="align" && O31.align && O31.align.length>0)continue; else if (HTMLEditor.is_ie && name=="class" && O31.className && O31.className.length>0)continue; else if (HTMLEditor.is_ie && name=="color" && O31.color && O31.color.length>0)continue; else if (HTMLEditor.is_ie && name=="size" && O31.size && O31.size.length>0)continue; else if (HTMLEditor.is_ie && name=="shape" && O31.shape && O31.shape.length>0)continue; else if (HTMLEditor.is_ie && name=="coords" && O31.coords && O31.coords.length>0)continue; else {if (O31.tagName.toLowerCase()=="embed" && name=="align" && HTMLEditor.is_ie){value=HTMLEditor.l33(a.value); }else {value=a.value; if (name=="src" || name=="href"){if (HTMLEditor.is_ie){var O33=""; O31.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=\")([^\"]*?)\"","ig"), function (O29,i21){O33=i21; } ); if (O33=="")O31.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=')([^']*?)'","ig"), function (O29,i21){O33=i21; } ); if (O33=="")O31.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=)([^s>]*?)","ig"), function (O29,i21){O33=i21; } ); if (value!=O33 && O33!=""){value=O33; value=value.replace(/&amp;/g,"&"); }}value=value.replace(/(\(S\([A-Za-z0-9_]+\)\)\/)/,""); }value=value.replace(/"/g,"&quot;"); }}}else {continue; }var i33="\""; if ((""+value+"").indexOf("\"")>=0)i33="'"; if (name!=null)html.write(" "+name+"="+i33+value+i33); }if (O31.style.cssText.length>0){var name="style"; var o2j=/(rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\))/ig; var I33=/(url\((?:[^)]*)\))/ig; var o34=[]; function O34(O2z,$1){o34.push($1); }O31.style.cssText.replace(I33,O34); var value=O31.style.cssText.toLowerCase(); var l34=0; function i34(){var lk=o34[l34]; l34++; return lk; }value=value.replace(I33,i34); function i2y(I2y){return (I2y<020)?("0"+I2y.toString(020)):I2y.toString(020); } ; function o2z(O2z,$1,$2,$3,$4){var i1g=parseInt($2); var l2z=parseInt($3); var b=parseInt($4); return "#"+i2y(i1g)+i2y(l2z)+i2y(b); }try {value=value.replace(o2j,o2z); 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 i33="\""; if ((""+value+"").indexOf("\"")>=0)i33="'"; html.write(" "+name+"="+i33+value+i33); }}html.write(closed?" />": ">"); if (O31.tagName.toUpperCase()=="BR")html.write("\n"); }if (O31.tagName && O31.tagName.toUpperCase()=="SCRIPT")html.write(O31.text); for (i=O31.firstChild; i; i=i.nextSibling){HTMLEditor.O32(html,i, true);}if (I31 && O31.tagName.length>0 && !closed && i32){html.write("</"+I32+O31.tagName.toLowerCase()+">"); }break; case 3:html.write(HTMLEditor.I30(""+O31.data+"")); break; case 8:if (O31.length>0){html.write("<!--"+O31.data+"-->"); }else {html.write("<!---->"); }break; }} ; HTMLEditor.prototype.focusEditor= function (){switch (this.l1){case "html":if (this._iframe && this._iframe.contentWindow && this._iframe.contentWindow.focus && (this.isActivated || this._autoFocus)){if (!this._autoFocus && !this._wasFocused){if (HTMLEditor.is_ie && (""+this.i1.body.contentEditable+"")!="true")this.i1.body.contentEditable= true; HTMLEditor.i18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId, true); } this._wasFocused= true; this.I34=0; try {if (!HTMLEditor.o11)this._iframe.contentWindow.focus(); if (HTMLEditor.o11 && this.f){ this._iframe.focus(); }}catch (t){} ; if (HTMLEditor.is_ie)this.updateToolbar(); }break; case "text":if (this._autoFocus)try { this.o15.focus(); }catch (t){} ; break; default:break; }return this.i1; } ; HTMLEditor.prototype.o35= function (){var area=this.i1.createElement("textarea"); area.width="0"; area.height="0"; this.i1.appendChild(area); var i1g=area.createTextRange(); i1g.execCommand("paste"); var O35=area.value; O35=O35.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>"); this.i1.removeChild(area); return O35; } ; HTMLEditor.prototype.l35= function (text,Im,i35){if (text!=""){text=text.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); text=text.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); text=text.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); }var iframe=this.i1.createElement("iframe"); iframe.width="0"; iframe.height="0"; if (HTMLEditor.is_ie)iframe.src="javascript:false;"; this.i1.appendChild(iframe); var Ox=iframe.contentWindow.document; var html=new l29(); html.write("<html>"); html.write("<head>"); html.write("<style> body { "+this.I.i26+" } </style>"); html.write("</head>"); html.write("<body>"); html.write(text); html.write("</body>"); html.write("</html>"); Ox.write(html.toString()); Ox.close(); Ox.body.contentEditable= true; var i1g=Ox.body.createTextRange(); var I35= false; if (text==""){i1g.execCommand("paste"); var I2x=Ox.createElement("DIV"); for (var i=0; i<Ox.body.childNodes.length; i++){var o36=Ox.body.childNodes.item(i); if (o36.nodeType==8){var ih=""+o36.data+""; if (ih.search(/StartFragment/i)>=0){if (o36.nextSibling && o36.nextSibling.nodeType==3){var ih=""+o36.nextSibling.data+""; if (ih.length)if (ih.charCodeAt(0)==0240){ih=ih.substr(1); o36.nextSibling.data=ih; I35= true; break; }}}}}if (typeof i35!="undefined" && i35)Ox.body.innerHTML=HTMLEditor.i2p(Ox.body.innerHTML); var ih=HTMLEditor.I12(HTMLEditor.getHTML(Ox.body, false , true)); ih=ih.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); Ox.body.innerHTML=ih; if (!Im){HTMLEditor.ly(this,Ox,!this.showAnchors); HTMLEditor.iy(this,Ox,!this.showPlaceHolders); var i1u=Ox.body.getElementsByTagName("EMBED"); var O36=[]; for (var i=0; i<i1u.length; i++)O36.push(i1u[i]); for (var i2b=0; i2b<O36.length; i2b++)O36[i2b].parentNode.removeChild(O36[i2b]); } delete i1g; delete I2x; if (Im && HTMLEditor.is_ie)i1g=Ox.body.createTextRange(); }if (Im && HTMLEditor.is_ie){if (text!=""){HTMLEditor.ly(this,Ox, true); HTMLEditor.iy(this,Ox, true); }i1g.select(); i1g.execCommand("copy"); }var le=HTMLEditor.I12(Ox.body.innerHTML); le=le.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); le=le.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); le=le.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); le=le.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); le=le.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); var i1u=Ox.body.getElementsByTagName("EMBED"); var O36=[]; for (var i=0; i<i1u.length; i++)O36.push(i1u[i]); for (var i2b=0; i2b<O36.length; i2b++)O36[i2b].parentNode.removeChild(O36[i2b]); iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var X=this ; X.i1.removeChild(iframe); delete iframe; return le; };HTMLEditor.I12= function (ih){return ih.replace(/[\0-\x1f]/g,""); };HTMLEditor.l36= function (X,i1b,Oq){ this.D=X.D; this.d=X.d; this.C=X.C; if (HTMLEditor.is_ie){ this.i36=HTMLEditor.I36(X.i1.body); this.o37=X.i1.body.innerHTML; this.O37=null; if (Oq.type.toLowerCase()=="control"){try {var ll=i1b.item(0); this.O37=[]; while (ll && (ll.nodeType==3 || !ll.tagName || ll.tagName.toUpperCase()!="BODY")){var l37=0; while (ll.previousSibling){l37++; ll=ll.previousSibling; } this.O37.push(l37); ll=ll.parentNode; }}catch (t){}}else { this.o2f=i1b.offsetLeft; this.O2f=i1b.offsetTop; }}else {if (HTMLEditor.o11)this.o37=HTMLEditor.I12(X.i1.body.innerHTML); else this.o37=X.i1.body.cloneNode( true); this.O37=[]; this.i37=0; try {var ll=i1b.startContainer; this.i37=i1b.startOffset; if (ll && ll.nodeType==1 && ll.tagName.toUpperCase()=="HTML"){ll=X.i1.body; setTimeout( function (){try {Oq=X.lq(); i1b=X.Iq(); X.i17(Oq); i1b.setStart(ll,0); i1b.setEnd(ll,0); X.I17(Oq,i1b); }catch (t){}} ,012); }while (ll && ll.nodeType && (ll.nodeType==3 || !ll.tagName || ll.tagName.toUpperCase()!="BODY")){var l37=0; while (ll.previousSibling){l37++; if (HTMLEditor.o11){if (ll.nodeType==3 && ll.previousSibling!=null && ll.previousSibling.nodeType==3)l37--; }ll=ll.previousSibling; } this.O37.push(l37); ll=ll.parentNode; }}catch (t){}}};HTMLEditor.I37=036; HTMLEditor.prototype.i10= function (){var Oq; var iq; var o38; try {try {Oq=this.lq(); iq=this.Iq(Oq); }catch (t){}o38=new HTMLEditor.l36(this,iq,Oq); }catch (t){return; }if (!this.K){ this.K=[]; this.O1e=0; }while (this.O1e<this.K.length)this.K.pop(); if (this.K.length==HTMLEditor.I37){ this.K.reverse(); this.K.pop(); this.K.reverse(); } this.K.push(o38); this.O1e=this.K.length; };HTMLEditor.prototype.O38= function (){if (this.O1e>=0 && this.O1e<this.K.length){var i16=this.K[this.O1e]; var Oq; var iq; this.D=i16.D; this.d=i16.d; this.C=i16.C; if (HTMLEditor.is_ie){function l38(O29,i21,I21,O2u,i38){return i21.replace(/\salign=[^\s>]*/ig,"")+((O2u=="\"X\"")?"": ("align="+O2u))+i38.replace(/\salign=[^\s>]*/ig,""); }var i1u=this.i1.body.getElementsByTagName("EMBED"); var O36=[]; for (var i=0; i<i1u.length; i++)O36.push(i1u[i]); for (var i2b=0; i2b<O36.length; i2b++)O36[i2b].parentNode.removeChild(O36[i2b]); var I38=i16.o37.replace(/&amp;/ig,"&"); I38=I38.replace(/(<embed(?:.*?))(teoalign=)("[^"]*")((?:.*?)>)/ig,l38); this.i1.body.innerHTML="!!!<span></span>"+HTMLEditor.I12(I38); if (this.i1.body.firstChild)this.i1.body.removeChild(this.i1.body.firstChild); if (this.i1.body.firstChild)this.i1.body.removeChild(this.i1.body.firstChild); var i11=HTMLEditor.I11(I38); HTMLEditor.l12(this.i1.body,i11); if (this.relativeImages){i11=HTMLEditor.O12(I38); HTMLEditor.i12(this.i1.body,i11); }HTMLEditor.o39(this.i1.body,i16.i36); HTMLEditor.ly(this,this.i1,!this.showAnchors); HTMLEditor.iy(this,this.i1,!this.showPlaceHolders); if (i16.O37!=null){var ll=this.i1.body; var i; try {for (i=i16.O37.length-1; i>=0; i--){ll=ll.childNodes.item(i16.O37[i]); }}catch (t){if (this.O1e>0){ this.O1e--; this.O38(); this.O1e++; }return; }try {var i1b=this.i1.body.createControlRange(); i1b.add(ll); i1b.select(); }catch (t){}}else {var X=this ; setTimeout( function (){try {Oq=X.lq(); iq=X.Iq(Oq); if (Oq.type.toLowerCase()!="control"){try {iq.moveToPoint(i16.o2f,i16.O2f); }catch (t){}}iq.select(); }catch (t){}} ,0); }}else {if (HTMLEditor.o11){ this.i1.body.innerHTML=HTMLEditor.I12(i16.o37); }else { this.i1.body.innerHTML=""; for (var i=0; i<i16.o37.childNodes.length; i++){ this.i1.body.appendChild(i16.o37.childNodes.item(i).cloneNode( true)); }}HTMLEditor.ly(this,this.i1,!this.showAnchors); HTMLEditor.iy(this,this.i1,!this.showPlaceHolders); try {Oq=this.lq(); iq=this.Iq(); this.i17(Oq); }catch (t){}var ih=""; var ll=this.i1.body; for (var i=i16.O37.length-1; i>=0; i--){ih+=" "+i16.O37[i]; ll=ll.childNodes.item(i16.O37[i]); }var O39=i16.i37; try {iq.setStart(ll,O39); iq.setEnd(ll,O39); }catch (t){HTMLEditor.O13(this.i1.body); return; }if (HTMLEditor.o11)this.f= true; try { this.I17(Oq,iq); }catch (t){}}try {HTMLEditor.O13(this.i1.body); }catch (t){}}};HTMLEditor.prototype.SaveContent= function (){ this.i10(); };HTMLEditor.prototype.RestoreContent= function (){ this.I1e( false); };HTMLEditor.prototype.I1e= function (I16,l39){if (HTMLEditor.is_ie){var i39=this.i1.body.getElementsByTagName("EMBED"); var I39= false; if (i39.length>0){for (var i=0; i<i39.length; i++){var value=""; var l2y=i39[i].attributes; for (var oh=0; oh<l2y.length; ++oh){var a=l2y.item(oh); if (!a.specified)continue; var name=a.name.toLowerCase(); if (name=="type"){value=a.value; break; }}if (value.toLowerCase()=="application/x-mplayer2"){I39= true; break; }}}if (I39){var X=this ; X.O2e(null, function (ll){X.l2e(I16); if (typeof l39=="function")l39(); } ); }else this.l2e(I16); }else this.l2e(I16); };HTMLEditor.prototype.l2e= function (I16){if (this.K){if (this.O1e>0){if (this.O1e==this.K.length && I16){ this.i10(); } do {var I25=HTMLEditor.I12(this.i1.body.innerHTML); this.O1e--; this.O38(); }while (HTMLEditor.I12(this.i1.body.innerHTML)==I25 && this.O1e>0 && I16);var X=this ; setTimeout( function (){try {X.i1f(); X.updateToolbar(); }catch (t){}if (!I16)X.l14(); } ,5); }}};HTMLEditor.prototype.o1f= function (){if (this.K){if (this.O1e<this.K.length-1){ this.O1e++; var X=this ; var o3a; if (HTMLEditor.is_ie){o3a=X.i1.body.getElementsByTagName("EMBED").length; if (o3a>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); setTimeout( function (){X.A.removeChild(popup); } ,0); }} this.O38(); var X=this ; setTimeout( function (){X.i1f(); X.updateToolbar(); } ,5); }}};HTMLEditor.O3a= function (ll){if (ll.id && ll.id.length>0 && ll.id.indexOf(HTMLEditor.om)>=0)return true; return false;};HTMLEditor.I23= function (ll){var l3a=null; try {l3a=ll.parentNode; }catch (t){}if (l3a){var i3a=null; while (l3a && l3a.tagName && l3a.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(l3a.tagName) && (l3a.tagName.toUpperCase()!="A")){i3a=l3a; l3a=l3a.parentNode; }if (i3a){function l20(add,ll,i20,I20,Im){var par=i20.cloneNode( false); if (add){if (add.push && typeof add.push=="function"){for (var I3a=0; I3a<add.length; I3a++){par.appendChild(add[I3a]); }}else par.appendChild(add); }if (Im)par.appendChild(ll); else while (ll){var o3b=I20?ll.previousSibling:ll.nextSibling; if (ll.nodeType==1 || (ll.nodeType==3 && HTMLEditor.I12(""+ll.data+"").length>0)){if (ll.nodeType==1){if (ll.tagName && HTMLEditor.O1j(ll.tagName) && ll.childNodes.length==0 && !HTMLEditor.O3a(ll))ll=null; }if (ll){if (par.childNodes.length==0 || !I20)par.appendChild(ll); else par.insertBefore(ll,par.firstChild); }}ll=o3b; }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 (!Im && par.tagName && HTMLEditor.O1j(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.O3a(par)){var O3b=par.childNodes.length; for (var l3b=0; l3b<par.childNodes.length; l3b++){var i3b=par.childNodes.item(l3b); if (i3b.nodeType==1 && i3b.tagName && !HTMLEditor.O1j(i3b.tagName) && (i3b.tagName.toUpperCase()=="BR" || i3b.tagName.toUpperCase()=="TABLE" || HTMLEditor.O3a(i3b)))O3b--; }if (O3b==0){var I3b=[]; while (par.firstChild){var i3b=par.removeChild(par.firstChild); I3b.push(i3b); }par=I3b; }}}if (i20==i3a)return par; else {if (!Im)return l20(par,I20?i20.previousSibling:i20.nextSibling,i20.parentNode,I20,Im); else return l20(null,par,i20.parentNode,I20,Im); }} ; l3a=ll.parentNode; if (ll.previousSibling==null && ll.nextSibling==null && l3a && l3a.tagName && l3a.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(l3a.tagName) && HTMLEditor.o3c(l3a,["class","color","face","size"]).length>0)ll=l3a; var i21=l20(null,ll.previousSibling,ll.parentNode, true , false); var I21=l20(null,ll.nextSibling,ll.parentNode, false , false); var par=i3a.parentNode; if (i21){if (i21.push && typeof i21.push=="function"){for (var I3a=0; I3a<i21.length; I3a++){par.insertBefore(i21[I3a],i3a); }}else par.insertBefore(i21,i3a); }if (ll.nodeType==1 && ll.tagName && (ll.tagName.toUpperCase()=="BR" || ll.tagName.toUpperCase()=="TABLE" || HTMLEditor.O3a(ll)))par.insertBefore(ll,i3a); else {var O2u=l20(null,ll,ll.parentNode, false , true); par.insertBefore(O2u,i3a); }if (I21){if (I21.push && typeof I21.push=="function"){for (var I3a=0; I3a<I21.length; I3a++){par.insertBefore(I21[I3a],i3a); }}else par.insertBefore(I21,i3a); }par.removeChild(i3a); }}};HTMLEditor.O3c= function (ll){if (ll.nodeType==3)return true; if (ll.nodeType!=1)return false; if (!ll.tagName || ll.tagName.length==0)return false; if (ll && ll.style && ll.style.display && ll.style.display.toLowerCase()=="inline")return true; var name=ll.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.l3c= function (o38,ll,left,i3c){while (ll){var o3b=left?ll.previousSibling:ll.nextSibling; if (!HTMLEditor.O3c(ll)){var par=ll.parentNode; if (!left)par.insertBefore(o38,ll); else {if (ll.nextSibling)par.insertBefore(o38,ll.nextSibling); else par.appendChild(o38); }return o38; }else if (typeof i3c=="function" && ll.nodeType==3){var oh; var ih=""+ll.data+""; if (left){for (oh=ih.length-1; oh>=0; oh--){if (i3c(ih.substr(oh,1)))break; }}else {for (oh=0; oh<ih.length; oh++){if (i3c(ih.substr(oh,1)))break; }}if (oh>=0 && oh<ih.length){var par=ll.parentNode; var I3c; if ((oh>0 || (left && oh==0)) && (oh<ih.length-1 || (!left && oh==ih.length-1))){if (left)I3c=ll.splitText(oh+1); else I3c=ll.splitText(oh); par.insertBefore(o38,I3c); }else {if (!left)par.insertBefore(o38,ll); else {if (ll.nextSibling)par.insertBefore(o38,ll.nextSibling); else par.appendChild(o38); }}return o38; }}ll=left?ll.lastChild:ll.firstChild; if (ll){var l1v=HTMLEditor.l3c(o38,ll,left,i3c); if (l1v!=null)return l1v; }ll=o3b; }return null; };HTMLEditor.o3d= function (o38,ll,left,par,i3c){while ( true){var l1v=HTMLEditor.l3c(o38,ll,left,i3c); if (l1v!=null)return l1v; if (par.tagName && HTMLEditor.O1j(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.O3a(par)){ll=left?par.previousSibling:par.nextSibling; par=par.parentNode; }else {if (!left || par.firstChild==null)par.appendChild(o38); else par.insertBefore(o38,par.firstChild); return o38; }}};HTMLEditor.O3d= function (o17,ll){if (ll==o17)return o17; if (o17.nodeType==1){for (var i=0; i<o17.childNodes.length; i++){var o36=o17.childNodes.item(i); if (ll==o36)return o36; if (o36.nodeType==1){var o1d=HTMLEditor.l3d(o36,ll); if (o1d>=0){if (o36.tagName && HTMLEditor.O1j(o36.tagName) && (o36.tagName.toUpperCase()!="A") && !HTMLEditor.O3a(o36))return HTMLEditor.O3d(o36,ll); else return o36; }}}}return null; };HTMLEditor.i3d= function (I3d,o3e){function O3e(l31){if (!HTMLEditor.O3c(l31)){HTMLEditor.I23(l31); }else if (l31.tagName && HTMLEditor.O1j(l31.tagName) && (l31.tagName.toUpperCase()!="A") && !HTMLEditor.O3a(l31)){var l3e=l31.firstChild; while (l3e!=null){var i3e=l3e.nextSibling; O3e(l3e); l3e=i3e; }}}var l31=I3d; while (l31!=null && l31!=o3e){var nextSibling=l31.nextSibling; O3e(l31); l31=nextSibling; }};HTMLEditor.prototype.I3e= function (i1a,I1a,o3f){var l1v=[]; var I3d=i1a; var o3e=(I1a.nextSibling!=null && I1a.nextSibling.tagName && I1a.nextSibling.tagName.toUpperCase()=="BR")?I1a.nextSibling:I1a; var o24=null; if (I3d==null || o3e==null){if (I3d!=null){o24=HTMLEditor.O24(I3d,I3d); }if (o3e!=null){o24=HTMLEditor.O24(o3e,o3e); }}else o24=HTMLEditor.O24(I3d,o3e); if (o24!=null){I3d=HTMLEditor.O3d(o24.parent.childNodes.item(o24.o25),I3d); o3e=HTMLEditor.O3d(o24.parent.childNodes.item(o24.l25),o3e); HTMLEditor.I23(I3d); HTMLEditor.I23(o3e); while (I3d.parentNode!=o24.parent)I3d=I3d.parentNode; while (o3e.parentNode!=o24.parent)o3e=o3e.parentNode; HTMLEditor.i3d(I3d.nextSibling,o3e); o24=null; if (i1a==null || I1a==null){if (i1a!=null){o24=HTMLEditor.O24(i1a,i1a); }if (I1a!=null){o24=HTMLEditor.O24(I1a,I1a); }}else o24=HTMLEditor.O24(i1a,I1a); if (o24!=null){HTMLEditor.o26(o24.parent,this.i1,o24.o25,o24.l25+1, true); }function O3f(l31){if (!HTMLEditor.O3c(l31)){return true; }else if (l31.tagName && HTMLEditor.O1j(l31.tagName) && (l31.tagName.toUpperCase()!="A") && !HTMLEditor.O3a(l31)){var l3e=l31.firstChild; while (l3e!=null){i3e=l3e.nextSibling; var lk=O3f(l3e); if (lk)return true; l3e=i3e; }}return false; }var l3f=0; var i3f=[]; var I3f=0; if (I3d.tagName && o3e.tagName){if ((I3d.tagName.toUpperCase()=="TD" || I3d.tagName.toUpperCase()=="TR") && (o3e.tagName.toUpperCase()=="TD" || o3e.tagName.toUpperCase()=="TR")){while (I3d.tagName.toUpperCase()!="TABLE")I3d=I3d.parentNode; o3e=I3d; }else if ((I3d.tagName.toUpperCase()=="DD" || I3d.tagName.toUpperCase()=="DT") && (o3e.tagName.toUpperCase()=="DD" || o3e.tagName.toUpperCase()=="DT")){while (I3d.tagName && I3d.tagName.toUpperCase()!="DL")I3d=I3d.parentNode; o3e=I3d; }else if ((I3d.tagName.toUpperCase()=="LI") && (o3e.tagName.toUpperCase()=="LI")){while (I3d.tagName && I3d.tagName.toUpperCase()!="UL" && I3d.tagName.toUpperCase()!="OL"){I3d=I3d.parentNode; }o3e=I3d; }}var o3g=i1a?i1a:I1a; var O3g=I1a?I1a:i1a; var l31=I3d; while ( true){if (!HTMLEditor.O3a(l31)){var l3g=O3f(l31); if (!l3g){if (l31.nodeType && l31.nodeType==3){var ih=""+l31.data+""; if (ih.length==0 ||/^[\n\r]+$/.test(ih)){var i3g=l31.nextSibling; l31.parentNode.removeChild(l31); if (l31==o3e)break; l31=i3g; continue; }}i3f[I3f]=l31; I3f++; }else {if (l31.tagName && l31.tagName.toUpperCase()=="BR"){i3f[I3f]=l31; l1v[l3f]=i3f; l3f++; i3f=[]; I3f=0; }else if ((l31==o3e || l31==I3d) && !((l31==o3e && l31==I3d)?(HTMLEditor.I3g(l31,o3g) && HTMLEditor.o3h(l31,O3g)): (HTMLEditor.I3g(l31,o3g) || HTMLEditor.o3h(l31,O3g)))){if (l31.tagName && (l31.tagName.toUpperCase()=="TABLE" || l31.tagName.toUpperCase()=="TBODY")){var table=l31; while (table.tagName.toUpperCase()!="TABLE")table=table.parentNode; var O3h=0; var l3h=0; var i3h=table.rows.item(table.rows.length-1).cells.length-1; var I3h=table.rows.length-1; for (var i=0; i<table.rows.length; i++){var i22=table.rows.item(i); var oh=0; for ( ; oh<i22.cells.length; oh++){var cell=i22.cells.item(oh); if (HTMLEditor.l3d(cell,o3g)>=0){O3h=oh; l3h=i; }if (HTMLEditor.l3d(cell,O3g)>=0){i3h=oh; I3h=i; }}}for (var i=l3h; i<=I3h; i++)for (var oh=((i==l3h)?O3h: 0); oh<=((i==I3h)?i3h: (table.rows.item(i).cells.length-1)); oh++){var cell=table.rows.item(i).cells.item(oh); if (I3f>0){l1v[l3f]=i3f; l3f++; i3f=[]; I3f=0; }var o3i=(HTMLEditor.l3d(cell,o3g)>=0); var O3i=(HTMLEditor.l3d(cell,O3g)>=0); if (o3i || O3i){var l3i=o3g; var i3i=O3g; var I22=HTMLEditor.om+"_right_"+o3f; var o23=HTMLEditor.om+"_left_"+o3f; if (o3i){i3i=this.i1.createElement("span"); i3i.id=I22; cell.appendChild(i3i); }if (O3i){l3i=this.i1.createElement("span"); l3i.id=o23; if (cell.firstChild)cell.insertBefore(l3i,cell.firstChild); else cell.appendChild(l3i); }var I3i=this.I3e(l3i,i3i,o3f+1); for (var l3b=0; l3b<I3i.length; l3b++){l1v[l3f]=I3i[l3b]; l3f++; }if (l3i!=o3g)l3i.parentNode.removeChild(l3i); if (i3i!=O3g)i3i.parentNode.removeChild(i3i); }else {var o3j=0; var O3j=cell.childNodes.length; for (var o2c=o3j; o2c<O3j; o2c++){var ll=cell.childNodes.item(o2c); if (!HTMLEditor.O3a(ll)){i3f[I3f]=ll; I3f++; }}if (i3f.length>0){l1v[l3f]=i3f; l3f++; i3f=[]; I3f=0; }}}}else if (l31.tagName && (l31.tagName.toUpperCase()=="UL" || l31.tagName.toUpperCase()=="OL" || l31.tagName.toUpperCase()=="DL")){var I2f=l31; var l3j=0; var i3j=I2f.childNodes.length-1; for (var i=0; i<I2f.childNodes.length; i++){var I3j=I2f.childNodes.item(i); if (I3j.nodeType==1){if (I3j==o3g || HTMLEditor.l3d(I3j,o3g)>=0){l3j=i; }if (I3j==O3g || HTMLEditor.l3d(I3j,O3g)>=0){i3j=i; }}}for (var i=l3j; i<=i3j; i++){var I3j=I2f.childNodes.item(i); if (I3f>0){l1v[l3f]=i3f; l3f++; i3f=[]; I3f=0; }var o3i=(HTMLEditor.l3d(I3j,o3g)>=0); var O3i=(HTMLEditor.l3d(I3j,O3g)>=0); if (o3i || O3i){var l3i=o3g; var i3i=O3g; var I22=HTMLEditor.om+"_right_"+o3f; var o23=HTMLEditor.om+"_left_"+o3f; if (o3i){i3i=this.i1.createElement("span"); i3i.id=I22; I3j.appendChild(i3i); }if (O3i){l3i=this.i1.createElement("span"); l3i.id=o23; if (I3j.firstChild)I3j.insertBefore(l3i,I3j.firstChild); else I3j.appendChild(l3i); }var I3i=this.I3e(l3i,i3i,o3f+1); for (var l3b=0; l3b<I3i.length; l3b++){l1v[l3f]=I3i[l3b]; l3f++; }if (l3i!=o3g)l3i.parentNode.removeChild(l3i); if (i3i!=O3g)i3i.parentNode.removeChild(i3i); }else {var o3j=0; var O3j=I3j.childNodes.length; for (var o2c=o3j; o2c<O3j; o2c++){var ll=I3j.childNodes.item(o2c); if (!HTMLEditor.O3a(ll)){i3f[I3f]=ll; I3f++; }}if (i3f.length>0){l1v[l3f]=i3f; l3f++; i3f=[]; I3f=0; }}}}else {var o3i=(HTMLEditor.l3d(l31,o3g)>=0); var O3i=(HTMLEditor.l3d(l31,O3g)>=0); if (I3f>0){l1v[l3f]=i3f; l3f++; i3f=[]; I3f=0; }if (o3i || O3i){var l3i=o3g; var i3i=O3g; var I22=HTMLEditor.om+"_right_"+o3f; var o23=HTMLEditor.om+"_left_"+o3f; if (o3i){i3i=this.i1.createElement("span"); i3i.id=I22; l31.appendChild(i3i); }if (O3i){l3i=this.i1.createElement("span"); l3i.id=o23; if (l31.firstChild)l31.insertBefore(l3i,l31.firstChild); else l31.appendChild(l3i); }var I3i=this.I3e(l3i,i3i,o3f+1); for (var l3b=0; l3b<I3i.length; l3b++){l1v[l3f]=I3i[l3b]; l3f++; }if (l3i!=o3g)l3i.parentNode.removeChild(l3i); if (i3i!=O3g)i3i.parentNode.removeChild(i3i); }else {var o3j=0; var O3j=l31.childNodes.length; for (var o2c=o3j; o2c<O3j; o2c++){var ll=l31.childNodes.item(o2c); if (!HTMLEditor.O3a(ll)){i3f[I3f]=ll; I3f++; }}if (i3f.length>0){l1v[l3f]=i3f; l3f++; i3f=[]; I3f=0; }}}}else {if (I3f>0){l1v[l3f]=i3f; l3f++; i3f=[]; I3f=0; }i3f[I3f]=l31; l1v[l3f]=i3f; l3f++; i3f=[]; I3f=0; }}}if (l31==o3e)break; l31=l31.nextSibling; }if (I3f>0){l1v[l3f]=i3f; }}return l1v; };HTMLEditor.prototype.getPseudoP= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return []; var l1v=[]; try {var Oq=this.lq(); var iq=this.Iq(Oq); var I22=HTMLEditor.om+"_right"; var o23=HTMLEditor.om+"_left"; var O23=null; var l23=null; if (HTMLEditor.is_ie){if (Oq.type.toLowerCase()!="control"){O23=iq.duplicate(); l23=iq.duplicate(); O23.setEndPoint("EndToStart",iq); l23.setEndPoint("StartToEnd",iq); }}else {O23=iq.cloneRange(); l23=iq.cloneRange(); O23.setEnd(O23.startContainer,O23.startOffset); l23.setStart(l23.endContainer,l23.endOffset); }var i1a=null; var I1a=null; if (HTMLEditor.is_ie && Oq.type.toLowerCase()=="control"){var O1c=iq.item(0); var o3k; o3k=this.i1.createElement("SPAN"); o3k.id=o23; O1c.parentNode.insertBefore(o3k,O1c); o3k=this.i1.createElement("SPAN"); o3k.id=I22; if (O1c.nextSibling==null)O1c.parentNode.appendChild(o3k); else O1c.parentNode.insertBefore(o3k,O1c.nextSibling); }else {if (!this.l11("<span id='"+I22+"'/>",l23))return []; if (!this.l11("<span id='"+o23+"'/>",O23)){var i23=this.i1.getElementById(I22); if (i23!=null){lk=i23.parentNode; lk.removeChild(i23); }return []; }}i1a=this.i1.getElementById(o23); I1a=this.i1.getElementById(I22); if (i1a!=null && I1a!=null){while (i1a.nextSibling==null){if (i1a.parentNode.nextSibling)i1a.parentNode.parentNode.insertBefore(i1a,i1a.parentNode.nextSibling); else i1a.parentNode.parentNode.appendChild(i1a); }}if (i1a!=null && I1a!=null){while (I1a.previousSibling==null)I1a.parentNode.parentNode.insertBefore(I1a,I1a.parentNode); if (I1a.previousSibling.nodeType==1 && I1a.previousSibling.tagName.toUpperCase()!="BR" && I1a.previousSibling.tagName.toUpperCase()!="IMG"){var O25=HTMLEditor.O3k(I1a.previousSibling); if (O25.nodeType==1 && HTMLEditor.canHaveChildren(O25))O25.appendChild(I1a); else O25.parentNode.appendChild(I1a); }if (I1a.previousSibling && I1a.previousSibling.nodeType==1 && I1a.previousSibling.tagName.toUpperCase()=="BR")I1a.parentNode.insertBefore(I1a,I1a.previousSibling); }if (i1a==null){var span=this.i1.createElement("SPAN"); span.id=o23; I1a.parentNode.insertBefore(span,I1a); i1a=span; }if (I1a==null){var span=this.i1.createElement("SPAN"); span.id=I22; if (i1a.nextSibling)i1a.parentNode.insertBefore(span,i1a.nextSibling); else i1a.parentNode.appendChild(span); I1a=span; }if (i1a!=null && I1a!=null){if (i1a.parentNode==I1a){I1a.parentNode.insertBefore(i1a,I1a); }else if (I1a.parentNode==i1a){if (i1a.nextSibling!=null)i1a.parentNode.insertBefore(I1a,i1a.nextSibling); else i1a.parentNode.appendChild(I1a); }}while (i1a.nextSibling!=null && i1a.nextSibling.nodeType==3 && (""+i1a.nextSibling.data+"").length==0)i1a.parentNode.removeChild(i1a.nextSibling); if (this.l3k==null && i1a!=null && I1a!=null && i1a.nextSibling==I1a){var par=I1a.parentNode; this.l3k=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(par.tagName)){if (par.tagName.toUpperCase()!="A"){var lk=par.cloneNode( false); if (this.l3k==null){ this.l3k=lk; }else {lk.appendChild(this.l3k); this.l3k=lk; }}par=par.parentNode; }if (this.l3k){var i3k=this.i1.createElement("span"); i3k.appendChild(this.l3k); this.l3k=i3k.innerHTML; }}var I3k=i1a; while (I3k && I3k.tagName && HTMLEditor.O1j(I3k.tagName) && (I3k.tagName.toUpperCase()!="A")){I3k=I3k.parentNode; }if (I3k!=null && (I3k.tagName.toUpperCase()=="P" || (I3k.tagName.length==2 && I3k.tagName.toUpperCase().substr(0,1)=="H" && parseInt(I3k.tagName.substr(1,1))>0))){if (I3k.firstChild!=null)I3k.insertBefore(i1a,I3k.firstChild); else I3k.appendChild(i1a); }else HTMLEditor.o3d(i1a,i1a.previousSibling, true ,i1a.parentNode); I3k=I1a; while (I3k && I3k.tagName && HTMLEditor.O1j(I3k.tagName) && (I3k.tagName.toUpperCase()!="A")){I3k=I3k.parentNode; }if (I3k!=null && (I3k.tagName.toUpperCase()=="P" || (I3k.tagName.length==2 && I3k.tagName.toUpperCase().substr(0,1)=="H" && parseInt(I3k.tagName.substr(1,1))>0))){I3k.appendChild(I1a); }else HTMLEditor.o3d(I1a,I1a.nextSibling, false ,I1a.parentNode); l1v=this.I3e(i1a,I1a,0); if (l1v.length==0 && i1a.previousSibling==null && I1a.nextSibling==null && i1a.nextSibling==I1a && (i1a.parentNode.tagName.toUpperCase()=="P" || i1a.parentNode.tagName.toUpperCase()=="DIV" || i1a.parentNode.tagName.toUpperCase()=="LI" || (i1a.parentNode.tagName.length==2 && i1a.parentNode.tagName.toUpperCase().substr(0,1)=="H" && parseInt(i1a.parentNode.tagName.substr(1,1))>0)))l1v=[[i1a.parentNode]]; if (HTMLEditor.is_ie){Oq.empty(); Oq=this.lq(); var o3l=this.Iq(Oq); var O3l=this.Iq(Oq); try {if (i1a!=null)o3l.moveToElementText(i1a); if (I1a!=null)O3l.moveToElementText(I1a); if (i1a!=null && I1a!=null){o3l.setEndPoint("EndToEnd",O3l); o3l.select(); }else if (i1a!=null)o3l.select(); else if (I1a!=null)O3l.select(); }catch (t){}}if (i1a!=null)i1a.parentNode.removeChild(i1a); if (I1a!=null)I1a.parentNode.removeChild(I1a); }catch (t){alert("getPseudoP: "+t.message); var l3l=this.i1.getElementsByTagName("SPAN"); var del=[]; for (var i=0; i<l3l.length; i++){var span=l3l[i]; if (span.id && span.id.length>0){var I2n=new RegExp(HTMLEditor.om,"ig"); if (I2n.test(span.id))del.push(span); }}for (var i=0; i<del.length; i++)del[i].parentNode.removeChild(del[i]); }return l1v; } ; HTMLEditor.prototype.i3l= function (O1p,I3l){var X=this ; if (O1p.firstChild){while (O1p.firstChild && O1p.firstChild.nodeType==3 && (""+O1p.firstChild.data+"")=="")O1p.removeChild(O1p.firstChild); var o3m=[]; while (O1p.firstChild){if (O1p.firstChild!=I3l[0] && O1p.firstChild!=I3l[1])o3m.push(O1p.firstChild); O1p.parentNode.insertBefore(O1p.firstChild,O1p); }if (o3m.length==0){var br=X.i1.createElement("BR"); O1p.parentNode.insertBefore(br,O1p); }if (HTMLEditor.is_ie && o3m.length==1 && o3m[0].nodeType==3){var ih=""+o3m[0].data+""; if (ih.length==1 && ih.charCodeAt(0)==0240){var br=X.i1.createElement("BR"); o3m[0].parentNode.insertBefore(br,o3m[0]); o3m[0].parentNode.removeChild(o3m[0]); }}while (O1p.nextSibling && O1p.nextSibling.nodeType==3 && (""+O1p.nextSibling.data+"")=="")O1p.parentNode.removeChild(O1p.nextSibling); var previousSibling=(O1p.previousSibling && I3l[1]==O1p.previousSibling)?I3l[1].previousSibling:O1p.previousSibling; if (previousSibling && HTMLEditor.O3c(previousSibling))if (previousSibling.nodeType==1 && previousSibling.childNodes.length>0)previousSibling=HTMLEditor.O3k(previousSibling); if (HTMLEditor.O3c(previousSibling) && O1p.nextSibling!=null){var br=X.i1.createElement("BR"); O1p.parentNode.insertBefore(br,O1p); }}else {var br=X.i1.createElement("BR"); O1p.parentNode.insertBefore(br,O1p); }O1p.parentNode.removeChild(O1p); };HTMLEditor.prototype.O3m= function (O1p,I3l,l3m){var X=this ; O1p.style.textAlign=""; var i3m=0; var l2y=O1p.attributes; for (var o2c=0; o2c<l2y.length; ++o2c){var a=l2y.item(o2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; i3m++; }var I3m=O1p.style.cssText; var margin=0; var o3n; if (!(typeof l3m!="undefined" && l3m))if (O1p.tagName.toUpperCase()!="LI")try {o3n=parseInt(HTMLEditor.Iy(O1p,"margin-top")); if (isNaN(o3n))o3n=O1p.tagName.toUpperCase()=="P"?1: 0; margin+=o3n; o3n=parseInt(HTMLEditor.Iy(O1p,"margin-bottom")); if (isNaN(o3n))o3n=O1p.tagName.toUpperCase()=="P"?1: 0; margin+=o3n; o3n=parseInt(HTMLEditor.Iy(O1p,"margin-right")); if (isNaN(o3n))o3n=O1p.tagName.toUpperCase()=="P"?1: 0; margin+=o3n; o3n=parseInt(HTMLEditor.Iy(O1p,"margin-left")); if (isNaN(o3n))o3n=O1p.tagName.toUpperCase()=="P"?1: 0; margin+=o3n; }catch (t){margin=1; }O1p.style.margin=""; if ((i3m==0 && O1p.style.cssText.length==0 && margin==0) || (typeof l3m!="undefined" && l3m && O1p.tagName.toUpperCase()!="LI")){X.i3l(O1p,I3l); return true; }else {O1p.style.cssText=I3m; return false; }};HTMLEditor.O3n= function (ll){var name=ll.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return true; }}return false; };HTMLEditor.prototype.l3n= function (textAlign,i3n,I3n){var o3o=this.O3o(); var I3l=this.l3o(o3o); var i3o=null; var I3o=[]; var X=this ; var l3m=(typeof i3n!="undefined" && i3n)? true : false; var o3p=(typeof I3n=="string")? true : false; var O3p=(typeof I3n=="string")?I3n: ""; var l3p= false; var i3p= false; function I3p(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==I3l[0] || div.firstChild==I3l[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function o3q(){var firstChild=i3o.firstChild; var lastChild=i3o.lastChild; if (i3o.tagName && !HTMLEditor.O3c(i3o) && I3o[0][0]==firstChild && I3o[I3o.length-1][I3o[I3o.length-1].length-1]==lastChild && i3o.tagName.toUpperCase()!="TD" && i3o.tagName.toUpperCase()!="TH" && i3o.tagName.toUpperCase()!="FIELDSET" && i3o.tagName.toUpperCase()!="LEGEND"){var align=""; if (i3o.getAttribute("align") && i3o.getAttribute("align").length>0)align=i3o.getAttribute("align"); if (i3o.align && i3o.align.length>0)align=i3o.align; if (i3o.style.textAlign && i3o.style.textAlign.length>0)align=i3o.style.textAlign; i3o.align=""; i3o.setAttribute("align",""); i3o.removeAttribute("align"); if ((i3o.tagName.toUpperCase()=="DIV" || i3o.tagName.toUpperCase()=="P" || HTMLEditor.O3n(i3o)) && textAlign=="left" && l3m){if (X.O3m(i3o,I3l,l3m))l3p= true; }else {if (textAlign!="remain"){if (!(textAlign=="left" && l3m) || (i3o.tagName.toUpperCase()=="LI" && i3o.parentNode.style.textAlign.length>0))i3o.style.textAlign=textAlign; else i3o.style.textAlign=""; }if (l3m)i3o.style.margin=(i3o.tagName.toUpperCase()=="P")?"0px": ""; if (i3o.tagName.toUpperCase()=="LI"){var I2f=i3o.parentNode; var O3q=[]; for (var l3q=0; l3q<I2f.childNodes.length; l3q++)if (I2f.childNodes.item(l3q).nodeType==1)O3q.push(I2f.childNodes.item(l3q).style.textAlign); var i3q=1; for ( ; i3q<O3q.length; i3q++)if (O3q[i3q-1]!=O3q[i3q])break; if (i3q==O3q.length){var align=(O3q[0]=="left" && l3m)?"":O3q[0]; for (var oh=0; oh<I2f.childNodes.length; oh++)if (I2f.childNodes.item(oh).nodeType==1){I2f.childNodes.item(oh).style.textAlign=""; if (l3m)I2f.childNodes.item(oh).style.margin=(I2f.childNodes.item(oh).tagName.toUpperCase()=="P")?"0px": ""; }I2f.style.textAlign=align; }}if ((i3o.tagName.toUpperCase()=="DIV" || i3o.tagName.toUpperCase()=="P" || HTMLEditor.O3n(i3o)) && o3p && O3p.toUpperCase()!=i3o.tagName.toUpperCase()){var I3q=X.i1.createElement(O3p); var l2y=i3o.attributes; for (var o2c=0; o2c<l2y.length; ++o2c){var a=l2y.item(o2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; I3q.setAttribute(a.name,a.value); }I3q.style.cssText=i3o.style.cssText; while (i3o.firstChild)I3q.appendChild(i3o.firstChild); i3o.parentNode.insertBefore(I3q,i3o); i3o.parentNode.removeChild(i3o); }}}else {var div=null; for (var i=0; i<I3o.length; i++){if (!o3p)div=null; var paragraph=I3o[i]; for (var oh=0; oh<paragraph.length; oh++){var O1p=paragraph[oh]; if (O1p.nodeType==1 && O1p.tagName && (O1p.tagName.toUpperCase()=="UL" || O1p.tagName.toUpperCase()=="OL" || O1p.tagName.toUpperCase()=="DL" || O1p.tagName.toUpperCase()=="DIV" || HTMLEditor.O3n(O1p) || O1p.tagName.toUpperCase()=="P" || O1p.tagName.toUpperCase()=="LI" || O1p.tagName.toUpperCase()=="TABLE")){I3p(div); div=null; if (textAlign!="remain")if (O1p.tagName.toUpperCase()!="TABLE" && !l3m)O1p.style.textAlign=textAlign; if (l3m)O1p.style.margin=(O1p.tagName.toUpperCase()=="P")?"0px": ""; if ((O1p.tagName.toUpperCase()=="UL" || O1p.tagName.toUpperCase()=="OL" || O1p.tagName.toUpperCase()=="DL")){for (var i2b=0; i2b<O1p.childNodes.length; i2b++){var li=O1p.childNodes.item(i2b); if (li.nodeType==1){li.style.textAlign=""; if (l3m)li.style.margin=(li.tagName.toUpperCase()=="P")?"0px": ""; for (var o3r=0; o3r<li.childNodes.length; o3r++){var o36=li.childNodes.item(o3r); if (o36.nodeType==1 && l3m)o36.style.margin=(o36.tagName.toUpperCase()=="P")?"0px": ""; if (o36.nodeType==1 && o36.tagName && (o36.tagName.toUpperCase()=="DIV" || o36.tagName.toUpperCase()=="P" || HTMLEditor.O3n(o36))){if (X.O3m(o36,I3l,l3m))l3p= true; }}}}if (textAlign=="left" && l3m)O1p.style.textAlign=""; continue; }else if (O1p.tagName.toUpperCase()=="LI"){if (textAlign!="remain"){if (!(textAlign=="left" && l3m) || O1p.parentNode.style.textAlign.length>0)O1p.style.textAlign=textAlign; else O1p.style.textAlign=""; }if (l3m)O1p.style.margin=(O1p.tagName.toUpperCase()=="P")?"0px": ""; var I2f=O1p.parentNode; var O3q=[]; for (var l3q=0; l3q<I2f.childNodes.length; l3q++)if (I2f.childNodes.item(l3q).nodeType==1)O3q.push(I2f.childNodes.item(l3q).style.textAlign); var i3q=1; for ( ; i3q<O3q.length; i3q++)if (O3q[i3q-1]!=O3q[i3q])break; if (i3q==O3q.length){var align=(O3q[0]=="left" && l3m)?"":O3q[0]; for (var oh=0; oh<I2f.childNodes.length; oh++)if (I2f.childNodes.item(oh).nodeType==1){I2f.childNodes.item(oh).style.textAlign=""; if (l3m)I2f.childNodes.item(oh).style.margin=(I2f.childNodes.item(oh).tagName.toUpperCase()=="P")?"0px": ""; }I2f.style.textAlign=align; }continue; }else if (O1p.tagName.toUpperCase()=="TABLE"){if (textAlign!="remain"){if (!(textAlign=="left" && l3m))O1p.align=textAlign; else {O1p.align=""; O1p.removeAttribute("align"); }}}if ((O1p.tagName.toUpperCase()=="DIV" || O1p.tagName.toUpperCase()=="P" || HTMLEditor.O3n(O1p)) && textAlign=="left" && l3m){if (X.O3m(O1p,I3l,l3m))l3p= true; }if ((O1p.tagName.toUpperCase()=="DIV" || O1p.tagName.toUpperCase()=="P" || HTMLEditor.O3n(O1p)) && o3p && O3p.toUpperCase()!=O1p.tagName.toUpperCase()){var I3q=X.i1.createElement(O3p); var l2y=O1p.attributes; for (var o2c=0; o2c<l2y.length; ++o2c){var a=l2y.item(o2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; I3q.setAttribute(a.name,a.value); }I3q.style.cssText=O1p.style.cssText; while (O1p.firstChild)I3q.appendChild(O1p.firstChild); O1p.parentNode.insertBefore(I3q,O1p); O1p.parentNode.removeChild(O1p); }}else {if (!(textAlign=="left" && l3m) || o3p){if (div==null){div=X.i1.createElement(o3p?O3p:X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P" && !o3p)div.style.margin="0px"; if (!o3p)div.style.textAlign=textAlign; O1p.parentNode.insertBefore(div,O1p); if (X.i1.body.firstChild==div)i3p= true; }var O3r=(paragraph[paragraph.length-1]==I3l[1])?paragraph.length-1:paragraph.length; var l3r=(paragraph[0]==I3l[0])?1: 0; if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==O3r-1 && oh==l3r){if (HTMLEditor.is_ie){div.appendChild(X.i1.createTextNode(String.fromCharCode(0240))); O1p.parentNode.removeChild(O1p); }else div.appendChild(O1p); }else if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==O3r-1 && oh>l3r && (!o3p || (O1p.nextSibling!=null && O1p.nextSibling==I3l[1])))O1p.parentNode.removeChild(O1p); else div.appendChild(O1p); if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==paragraph.length-1 && !o3p){I3p(div); div=null; }if (O1p==I3l[1] && oh==paragraph.length-1){I3p(div); div=null; }}}}}}}for (var i=0; i<o3o.length; i++){var paragraph=o3o[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=i3o){if (I3o.length>0)o3q(); I3o=[]; i3o=paragraph[0].parentNode; }I3o.push(paragraph); }}if (I3o.length>0)o3q(); this.i1m(I3l,l3p); };HTMLEditor.prototype.O3o= function (){ this.l3k=null; var o3o=this.getPseudoP(); if (o3o.length==0){try {var ih="<span id='"+HTMLEditor.om+"_ll'></span><span id='"+HTMLEditor.om+"_rr'></span><br>"; this.l11(ih); var i1a=this.i1.getElementById(HTMLEditor.om+"_ll"); var I1a=this.i1.getElementById(HTMLEditor.om+"_rr"); var I18=this.l3k; this.l3k=null; this.i1m([i1a,I1a], false); this.l3k=I18; o3o=this.getPseudoP(); }catch (w){} ; }return o3o; };HTMLEditor.prototype.i3r= function (I3r){var o3o=this.O3o(); var I3l=this.l3o(o3o); var i3o=null; var I3o=[]; var X=this ; var o3s=null; var O3s=[]; var l3s=I3r.toUpperCase(); var l3p= false; function i3s(){if (o3s!=null){var I3s; I3s=o3s.cloneNode( false); o3s.parentNode.insertBefore(I3s,o3s); while (o3s.firstChild!=O3s[0])I3s.appendChild(o3s.firstChild); if (I3s.firstChild==null)I3s.parentNode.removeChild(I3s); if (o3s.tagName.toUpperCase()==l3s){for (var i=0; i<O3s.length; i++){var O1p=O3s[i]; if (O1p.nodeType==1 && O1p.tagName && O1p.tagName.toUpperCase()=="LI"){var I1n= false; o3s.parentNode.insertBefore(O1p,o3s); if (O1p.style.textAlign=="")O1p.style.textAlign=o3s.style.textAlign; if (o3s.childNodes.length==0 && i==O3s.length-1){o3s.parentNode.removeChild(o3s); o3s=null; }if (O1p.style.textAlign=="" || (O1p.style.textAlign.toLowerCase()=="left" && !X.rtlState()) || (O1p.style.textAlign.toLowerCase()=="right" && X.rtlState())){I1n=X.O3m(O1p,I3l); if (I1n)l3p= true; }if (!I1n){var o3t=X.i1.createElement(X.dfltBlockElement); var l2y=O1p.attributes; for (var O3t=0; O3t<l2y.length; ++O3t){var a=l2y.item(O3t); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; o3t.setAttribute(a.name,a.value); }o3t.style.cssText=O1p.style.cssText; if (o3t.tagName.toUpperCase()=="P")o3t.style.margin="0px"; while (O1p.firstChild)o3t.appendChild(O1p.firstChild); O1p.parentNode.insertBefore(o3t,O1p); O1p.parentNode.removeChild(O1p); }}else o3s.parentNode.insertBefore(O1p,o3s); }}else {var I3s=X.i1.createElement(l3s); var l2y=o3s.attributes; for (var O3t=0; O3t<l2y.length; ++O3t){var a=l2y.item(O3t); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; I3s.setAttribute(a.name,a.value); }I3s.style.cssText=o3s.style.cssText; o3s.parentNode.insertBefore(I3s,o3s); for (var i=0; i<O3s.length; i++){var O1p=O3s[i]; I3s.appendChild(O1p); }}if (o3s!=null){I3s=o3s.cloneNode( false); o3s.parentNode.insertBefore(I3s,o3s); while (o3s.firstChild)I3s.appendChild(o3s.firstChild); if (I3s.firstChild==null)I3s.parentNode.removeChild(I3s); o3s.parentNode.removeChild(o3s); }}o3s=null; O3s=[]; }function o3q(){var firstChild=i3o.firstChild; var lastChild=i3o.lastChild; if (i3o.tagName && !HTMLEditor.O3c(i3o) && I3o[0][0]==firstChild && I3o[I3o.length-1][I3o[I3o.length-1].length-1]==lastChild && (i3o.tagName.toUpperCase()=="OL" || i3o.tagName.toUpperCase()=="UL" || i3o.tagName.toUpperCase()=="DL" || i3o.tagName.toUpperCase()=="LI" || ((i3o.tagName.toUpperCase()=="P" || i3o.tagName.toUpperCase()=="DIV" || HTMLEditor.O3n(i3o)) && i3o.parentNode.tagName.toUpperCase()=="LI"))){i3s(); O3s=[]; if (i3o.tagName.toUpperCase()=="LI"){o3s=i3o.parentNode; O3s.push(i3o); }else if (i3o.tagName.toUpperCase()=="P" || i3o.tagName.toUpperCase()=="DIV" || HTMLEditor.O3n(i3o)){o3s=i3o.parentNode.parentNode; O3s.push(i3o.parentNode); }else {o3s=i3o; for (var i=0; i<I3o.length; i++){var paragraph=I3o[i]; for (var oh=0; oh<paragraph.length; oh++){O3s.push(paragraph[oh]); }}}i3s(); }else {var l3t=i3o.tagName.toUpperCase(); if (l3t=="LI" && (I3o.length<o3o.length)){if (o3s!=i3o.parentNode){i3s(); o3s=i3o.parentNode; O3s=[]; }O3s.push(i3o); }else if (l3t=="OL" || l3t=="UL" || l3t=="DL"){i3s(); o3s=i3o; O3s=[]; for (var i=0; i<I3o.length; i++){var paragraph=I3o[i]; for (var oh=0; oh<paragraph.length; oh++){O3s.push(paragraph[oh]); }}i3s(); }else {var li=null; var I2f=null; function i3t(){if (li!=null)if (li.childNodes==1 && (li.firstChild==I3l[0] || li.firstChild==I3l[1])){li.parentNode.insertBefore(li.firstChild,li); li.parentNode.removeChild(li); }li=null; }if (o3s!=null){i3s(); }if (I3o.length==1 && I3o[0].length==1 && I3o[0][0].nodeType==1 && I3o[0][0].tagName && (I3o[0][0].tagName.toUpperCase()=="OL" || I3o[0][0].tagName.toUpperCase()=="UL" || I3o[0][0].tagName.toUpperCase()=="DL")){var O1p=I3o[0][0]; o3s=O1p; O3s=[]; for (var i=0; i<O1p.childNodes.length; i++){var ll=O1p.childNodes.item(i); O3s.push(ll); }i3s(); }else for (var i=0; i<I3o.length; i++){var paragraph=I3o[i]; for (var oh=0; oh<paragraph.length; oh++){var O1p=paragraph[oh]; if (I2f==null){I2f=X.i1.createElement(l3s); O1p.parentNode.insertBefore(I2f,O1p); }if (!HTMLEditor.O3c(O1p) && !(O1p.tagName && O1p.tagName.toUpperCase()=="BR")){if (li && li.firstChild)i3t(); if (li==null){li=X.i1.createElement("LI"); I2f.appendChild(li); }li.appendChild(O1p); i3t(); }else {if (li==null){li=X.i1.createElement("LI"); I2f.appendChild(li); }var O3r=(paragraph[paragraph.length-1]==I3l[1])?paragraph.length-1:paragraph.length; var l3r=(paragraph[0]==I3l[0])?1: 0; if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==O3r-1 && oh==l3r){if (HTMLEditor.is_ie){li.appendChild(X.i1.createTextNode(String.fromCharCode(0240))); O1p.parentNode.removeChild(O1p); }else li.appendChild(O1p); }else if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==O3r-1 && oh>l3r)O1p.parentNode.removeChild(O1p); else li.appendChild(O1p); if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==paragraph.length-1){i3t(); li=null; }if (O1p==I3l[1] && oh==paragraph.length-1){i3t(); li=null; }}}if (li && li.firstChild)i3t(); }if (I2f!=null){var O3q=[]; for (var oh=0; oh<I2f.childNodes.length; oh++)O3q.push(I2f.childNodes.item(oh).style.textAlign); var i3q=1; for ( ; i3q<O3q.length; i3q++)if (O3q[i3q-1]!=O3q[i3q])break; if (i3q==O3q.length){var align=((O3q[0]=="left" && !X.rtlState()) || (O3q[0]=="right" && X.rtlState()))?"":O3q[0]; for (var oh=0; oh<I2f.childNodes.length; oh++)I2f.childNodes.item(oh).style.textAlign=""; I2f.style.textAlign=align; }}if (I2f!=null)if (I2f.parentNode.tagName.toUpperCase()=="P" && I2f.parentNode.childNodes.length==1){var I3t=I2f.parentNode; var o3u=I3t.cloneNode( false); I3t.parentNode.insertBefore(I2f,I3t); I3t.parentNode.removeChild(I3t); if (I2f.childNodes.length==1){var item=I2f.firstChild; while (item.firstChild)o3u.appendChild(item.firstChild); item.appendChild(o3u); }else delete o3u; }}}}for (var i=0; i<o3o.length; i++){var paragraph=o3o[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=i3o){if (I3o.length>0)o3q(); I3o=[]; i3o=paragraph[0].parentNode; }I3o.push(paragraph); }}if (I3o.length>0)o3q(); if (o3s!=null){i3s(); } this.i1m(I3l,l3p); };HTMLEditor.prototype.O3u= function (l3u){var o3o=this.O3o(); var I3l=this.l3o(o3o); var i3o=null; var I3o=[]; var X=this ; var l3p= false; function i3u(ll){if (ll.nodeType==1){var I3u=(!X.rtlState())?ll.style.marginLeft:ll.style.marginRight; if (I3u.length>0)return parseInt(I3u); }return 0; }function o3v(ll,value){if (ll.nodeType==1){if (ll.tagName.toUpperCase()=="P" && value=="")value="0px"; if (!X.rtlState())ll.style.marginLeft=value; else ll.style.marginRight=value; }}function O3v(ll){if (l3u)o3v(ll,(i3u(ll)+050)+"px"); else {if (ll.tagName.toUpperCase()=="P"){if (i3u(ll)>=050)o3v(ll,(i3u(ll)-050)+"px"); else o3v(ll,"0px"); }else {if (i3u(ll)>050)o3v(ll,(i3u(ll)-050)+"px"); else o3v(ll,""); }}}function I3p(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==I3l[0] || div.firstChild==I3l[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function o3q(){var firstChild=i3o.firstChild; var lastChild=i3o.lastChild; if (i3o.tagName && !HTMLEditor.O3c(i3o) && I3o[0][0]==firstChild && I3o[I3o.length-1][I3o[I3o.length-1].length-1]==lastChild){var textAlign=""; if (i3o.getAttribute("align") && i3o.getAttribute("align").length>0)textAlign=i3o.getAttribute("align"); if (i3o.align && i3o.align.length>0)textAlign=i3o.align; if (i3o.style.textAlign && i3o.style.textAlign.length>0)textAlign=i3o.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; i3o.align=""; i3o.setAttribute("align",""); i3o.removeAttribute("align"); O3v(i3o); if ((i3o.tagName.toUpperCase()=="DIV" || i3o.tagName.toUpperCase()=="P" || HTMLEditor.O3n(i3o)) && textAlign==""){if (X.O3m(i3o,I3l))l3p= true; }else {if (textAlign!="" || (i3o.tagName.toUpperCase()=="LI" && i3o.parentNode.style.textAlign.length>0))i3o.style.textAlign=textAlign; else i3o.style.textAlign=""; if (i3o.tagName.toUpperCase()=="LI"){var I2f=i3o.parentNode; var margins=[]; for (var l3q=0; l3q<I2f.childNodes.length; l3q++)margins.push(i3u(I2f.childNodes.item(l3q))); var i3q=1; for ( ; i3q<margins.length; i3q++)if (margins[i3q-1]!=margins[i3q])break; if (i3q==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var oh=0; oh<I2f.childNodes.length; oh++)o3v(I2f.childNodes.item(oh),""); o3v(I2f,margin); }}}}else {for (var i=0; i<I3o.length; i++){var div=null; var paragraph=I3o[i]; for (var oh=0; oh<paragraph.length; oh++){var O1p=paragraph[oh]; if (O1p.nodeType==1 && O1p.tagName && (O1p.tagName.toUpperCase()=="UL" || O1p.tagName.toUpperCase()=="OL" || O1p.tagName.toUpperCase()=="DL" || O1p.tagName.toUpperCase()=="DIV" || HTMLEditor.O3n(O1p) || O1p.tagName.toUpperCase()=="P" || O1p.tagName.toUpperCase()=="LI")){I3p(div); div=null; O3v(O1p);if ((O1p.tagName.toUpperCase()=="UL" || O1p.tagName.toUpperCase()=="OL" || O1p.tagName.toUpperCase()=="DL")){for (var i2b=0; i2b<O1p.childNodes.length; i2b++){var li=O1p.childNodes.item(i2b); if (li.nodeType==1){o3v(li,""); for (var o3r=0; o3r<li.childNodes.length; o3r++){var o36=li.childNodes.item(o3r); var textAlign=(o36.nodeType==1)?O1p.style.textAlign: ""; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if (o36.nodeType==1){o3v(o36,""); if (textAlign=="" && o36.tagName && (o36.tagName.toUpperCase()=="DIV" || o36.tagName.toUpperCase()=="P")){if (X.O3m(o36,I3l))l3p= true; }}}}}continue; }else if (O1p.tagName.toUpperCase()=="LI"){var I2f=O1p.parentNode; var margins=[]; for (var l3q=0; l3q<I2f.childNodes.length; l3q++)margins.push(i3u(I2f.childNodes.item(l3q))); var i3q=1; for ( ; i3q<margins.length; i3q++)if (margins[i3q-1]!=margins[i3q])break; if (i3q==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var oh=0; oh<I2f.childNodes.length; oh++)o3v(I2f.childNodes.item(oh),""); o3v(I2f,margin); }continue; }var textAlign=O1p.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if ((O1p.tagName.toUpperCase()=="DIV" || O1p.tagName.toUpperCase()=="P" || HTMLEditor.O3n(O1p)) && textAlign==""){if (X.O3m(O1p,I3l))l3p= true; }}else {if (l3u){if (div==null){div=X.i1.createElement(X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P")div.style.margin="0px"; O3v(div); O1p.parentNode.insertBefore(div,O1p); }var O3r=(paragraph[paragraph.length-1]==I3l[1])?paragraph.length-1:paragraph.length; var l3r=(paragraph[0]==I3l[0])?1: 0; if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==O3r-1 && oh==l3r){if (HTMLEditor.is_ie){div.appendChild(X.i1.createTextNode(String.fromCharCode(0240))); O1p.parentNode.removeChild(O1p); }else div.appendChild(O1p); }else if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==O3r-1 && oh>l3r)O1p.parentNode.removeChild(O1p); else div.appendChild(O1p); if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==paragraph.length-1){I3p(div); div=null; }if (O1p==I3l[1] && oh==paragraph.length-1){I3p(div); div=null; }}}}}}}for (var i=0; i<o3o.length; i++){var paragraph=o3o[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=i3o){if (I3o.length>0)o3q(); I3o=[]; i3o=paragraph[0].parentNode; }I3o.push(paragraph); }}if (I3o.length>0)o3q(); this.i1m(I3l,l3p); };HTMLEditor.prototype.l3v= function (o22,par){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; if (this.Or())return; var Oq=this.lq(); var iq=this.Iq(Oq); var i3v=HTMLEditor.is_ie?[iq.boundingLeft,iq.boundingTop]: [iq.startContainer,iq.startOffset]; var l1b=(HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); var I3v= {name: "none",value: "none" } ; switch (o22.toLowerCase()){case "bold":I3v= {name: "font-weight",value: "bold",o3w: false } ; break; case "italic":I3v= {name: "font-style",value: "italic",o3w: false } ; break; case "underline":I3v= {name: "text-decoration",value: "underline",o3w: false } ; break; case "strikethrough":I3v= {name: "text-decoration",value: "line-through",o3w: false } ; break; case "superscript":I3v= {name: "vertical-align",value: "super",o3w: false } ; break; case "subscript":I3v= {name: "vertical-align",value: "sub",o3w: false } ; break; case "forecolor":I3v= {name: "color",value:par,o3w: false } ; break; case "backcolor":I3v= {name: "background-color",value:par,o3w: false } ; break; case "fontname":I3v= {name: "font-family",value:par,o3w: false } ; break; case "fontsize":I3v= {name: "font-size",value:par,o3w: false } ; break; }if (l1b){var i1b=this.I1b(); this.O3w(I3v,i1b, true); }else if (!HTMLEditor.is_Safari){if (this.Or())return; var i1b=this.l3w(); if (i1b.length>0){ this.O3w(I3v,i1b, false); if (HTMLEditor.is_ie && this.i3w!=null){Oq=this.lq(); iq=this.Iq(Oq); iq.moveToBookmark(this.i3w); iq.select(); this.i3w=null; }else if (this.i3w!=null){if (this.i3w[0].nodeType==3){Oq=this.lq(); iq=this.i1.createRange(); iq.setStart(this.i3w[0],this.i3w[1]); iq.setEnd(this.i3w[0],this.i3w[1]); this.i17(Oq); this.I17(Oq,iq); }else { this.I3w(this.i3w[0],this.i3w[0]); this.i3w[0].parentNode.removeChild(this.i3w[0]); } this.i3w=null; }}else { this.o3x(I3v); }}};HTMLEditor.prototype.l3w= function (Im){var l1v=[]; var o1b; var l1b; var Oq=this.lq(); var iq=this.Iq(Oq); var O3x; var o3l; var I22=HTMLEditor.om+"_right_add"; var o23=HTMLEditor.om+"_left_add"; var l3x=HTMLEditor.om+"_middle_add"; if (HTMLEditor.is_ie && typeof Im=="undefined"){iq.execCommand("bold"); this.i3w=iq.getBookmark(); iq.execCommand("bold"); }if (HTMLEditor.is_ie){var i3x=null; var I3x="<span id="+l3x+"></span>"; var o3y=iq.duplicate(); try {iq.pasteHTML(I3x); }catch (w){}i3x=this.i1.getElementById(l3x); if (i3x==null)return []; if (typeof Im!="undefined")this.i3w=i3x; if (i3x.nextSibling!=null && !HTMLEditor.O3c(i3x.nextSibling)){i3x.parentNode.removeChild(i3x); return []; }iq.expand("word"); iq.select(); if (iq.text.length==0){i3x.parentNode.removeChild(i3x); o3y.select(); return []; }var o2j=new RegExp(I3x,"ig"); if (!o2j.test(iq.htmlText.replace(/[\n\r]/g,""))){i3x.parentNode.removeChild(i3x); o3y.select(); return []; }o2j=new RegExp(I3x+"(\x3c/span>|&nbsp;|[\\s])*$","ig"); if (o2j.test(iq.htmlText.replace(/[\n\r]/g,""))){i3x.parentNode.removeChild(i3x); o3y.select(); return []; }while (iq.text.length>0 && iq.text.substr(iq.text.length-1,1)==" "){iq.moveEnd("character",-1); iq.select(); if (iq.text.length==0){i3x.parentNode.removeChild(i3x); o3y.select(); return []; }}if (typeof Im=="undefined")i3x.parentNode.removeChild(i3x); return this.I1b(); }function i3c(O3y){var o2j=/[\d\w]/; if (o2j.test(O3y))return false; o2j=/[\x80-\u024f]/; if (o2j.test(O3y))return false; o2j=/[\u0370-\u2000]/; if (o2j.test(O3y))return false; return true; }if (!this.l11("<span id='"+o23+"'></span><span id='"+l3x+"'></span><span id='"+I22+"'></span>"))return []; var i1a=this.i1.getElementById(o23); var I1a=this.i1.getElementById(I22); var l3y=this.i1.getElementById(l3x); HTMLEditor.o3d(i1a,i1a.previousSibling, true ,i1a.parentNode,i3c); try { this.I3w(i1a,I1a); }catch (w){}O3x=this.lq(); o3l=this.Iq(O3x); o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; l1b=(HTMLEditor.is_ie && o3l.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (!l1b || this.I1b().length==0){var i3y=this.i1.createTextNode(""); i1a.parentNode.insertBefore(i3y,i1a); i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); l3y.parentNode.removeChild(l3y); var iq=this.i1.createRange(); iq.setStart(i3y,0); iq.setEnd(i3y,0); iq.setStart(i3y,0); iq.setEnd(i3y,0); this.i17(Oq); this.I17(Oq,iq); return []; }I1a.parentNode.insertBefore(i1a,l3y); HTMLEditor.o3d(I1a,I1a.nextSibling, false ,I1a.parentNode,i3c); this.I3w(i1a,I1a); O3x=this.lq(); o3l=this.Iq(O3x); o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; l1b=(HTMLEditor.is_ie && o3l.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (!l1b || this.I1b().length==0){var i3y=this.i1.createTextNode(""); i1a.parentNode.insertBefore(i3y,i1a); i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); l3y.parentNode.removeChild(l3y); var iq=this.i1.createRange(); iq.setStart(i3y,0); iq.setEnd(i3y,0); iq.setStart(i3y,0); iq.setEnd(i3y,0); this.i17(Oq); this.I17(Oq,iq); return []; }HTMLEditor.o3d(i1a,i1a.previousSibling, true ,i1a.parentNode,i3c); this.I3w(i1a,I1a); O3x=this.lq(); o3l=this.Iq(O3x); o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; l1b=(HTMLEditor.is_ie && o3l.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (HTMLEditor.is_ie){if (typeof Im!="undefined")this.i3w=l3y; else l3y.parentNode.removeChild(l3y); }else this.i3w=[l3y,0]; if (l1b){l1v=this.I1b(); }i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); return l1v; };HTMLEditor.prototype.o3x= function (I3v){var name=I3v.name.replace(/-(\w)/g, function (I3y,i21){return i21.toUpperCase(); } ); var value=I3v.value; var o3w=I3v.o3w; if (this.M==null)this.M=[]; var o3z=[];var O3z= true; for (var i=0; i<this.M.length; i++){var l3z=this.M[i].name.replace(/-(\w)/g, function (I3y,i21){return i21.toUpperCase(); } ); var i3z=this.M[i].value; if (!(l3z==name && (i3z==value || o3w)))o3z.push(this.M[i]); else O3z= false; } this.M=o3z; if (O3z)this.M.push(I3v); };HTMLEditor.prototype.I3w= function (i1a,I1a){var Oq=this.lq(); var i3y=null; var I3z=null; if (HTMLEditor.is_ie){Oq.empty(); Oq=this.lq(); var o3l=this.Iq(Oq); var O3l=this.Iq(Oq); try {if (i1a!=null)o3l.moveToElementText(i1a); if (I1a!=null)O3l.moveToElementText(I1a); if (i1a!=null && I1a!=null){o3l.setEndPoint("EndToEnd",O3l); o3l.select(); }else if (i1a!=null)o3l.select(); else if (I1a!=null)O3l.select(); }catch (t){}}else {try {i3y=this.i1.createTextNode(""); I3z=this.i1.createTextNode(""); i1a.parentNode.insertBefore(i3y,i1a); I1a.parentNode.insertBefore(I3z,I1a); var iq=this.i1.createRange(); iq.setStart(i3y,0); iq.setEnd(I3z,0); this.i17(Oq); this.I17(Oq,iq); }catch (t){}}};HTMLEditor.prototype.O3w= function (I3v,i1b,o40){var name=I3v.name.replace(/-(\w)/g, function (I3y,i21){return i21.toUpperCase(); } ); var value=I3v.value; var o3w=I3v.o3w; var O40= false; var l40= false; this.i10(); var I22=HTMLEditor.om+"_right"; var o23=HTMLEditor.om+"_left"; var i1a=this.i1.createElement("SPAN"); i1a.id=o23; var I1a=this.i1.createElement("SPAN"); I1a.id=I22; i1b[0].parentNode.insertBefore(i1a,i1b[0]); if (i1b[i1b.length-1].nextSibling!=null)i1b[i1b.length-1].parentNode.insertBefore(I1a,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(I1a); HTMLEditor.I23(i1a); HTMLEditor.I23(I1a); var i40=[]; for (var i=0; i<i1b.length; i++){var I40=i1b[i]; var par=I40.parentNode; var oh; for (oh=0; oh<i40.length; oh++){var parent=i40[oh]; if (parent.parent==par){parent.o41.push(I40); break; }}if (oh==i40.length){i40.push( {parent:par,o41: [I40] } ); }}for (var i=0; i<i40.length; i++){var parent=i40[i]; if (parent.o41.length>1){var o41=parent.o41; var O41=this.i1.createElement("SPAN"); var l41=this.i1.createElement("SPAN"); o41[0].parentNode.insertBefore(O41,o41[0]); if (o41[o41.length-1].nextSibling!=null)o41[o41.length-1].parentNode.insertBefore(l41,o41[o41.length-1].nextSibling); else o41[o41.length-1].parentNode.appendChild(l41); HTMLEditor.i3d(O41,l41); O41.parentNode.removeChild(O41); l41.parentNode.removeChild(l41); }}for (var i=0; i<i1b.length; i++){var I40=i1b[i]; var par=I40.parentNode; var i41= false; while (par && par.tagName && par.childNodes.length==1 && HTMLEditor.O1j(par.tagName)){var I41=par.tagName.toUpperCase(); if (((I41=="I" || I41=="EM") && I3v.name=="font-style") || ((I41=="B" || I41=="STRONG") && I3v.name=="font-weight") || ((I41=="S" || I41=="STRIKE") && I3v.name=="text-decoration") || ((I41=="U") && I3v.name=="text-decoration") || ((I41=="SUB" || I41=="SUP") && I3v.name=="vertical-align")){var o42=par; par=par.parentNode; while (o42.firstChild)par.insertBefore(o42.firstChild,o42); par.removeChild(o42); i41= true; continue; }else if (par.style && par.style[name] && par.style[name].length>0){var O42=par.style[name]; if (name.toLowerCase().indexOf("color")>=0 || name=="fontFamily" || name=="fontSize"){par.style[name]=value; }else {if (o3w){try {par.style[name]=par.style[name]+" "+value; if (O42==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {if (!O40){var I18=O42.replace(value,""); if (name=="fontWeight" && O42.toString()=="700")I18=""; if (I18==O42){try {par.style[name]=par.style[name]+" "+value; if (O42==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {par.style[name]=I18; l40= true; }O40= true; }else {if (l40){par.style[name]=O42.replace(value,""); }else {try {par.style[name]=par.style[name]+" "+value; if (O42==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}}}}i41= true; }par=par.parentNode; }if (!i41 && !l40){var span; span=this.i1.createElement("SPAN"); span.style[name]=value; var l42=I40.parentNode; l42.insertBefore(span,I40); span.appendChild(I40); O40= true; }}var i42=HTMLEditor.O24(i1a,I1a); var I42=i42.parent.childNodes.item(i42.o25).previousSibling; var o43=i42.parent.childNodes.item(i42.l25).nextSibling; i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); var o25=0; var l25=i42.parent.childNodes.length; if (I42!=null){o25=HTMLEditor.O17(I42); }if (o43!=null){l25=HTMLEditor.O17(o43)+1; if (l25<i42.parent.childNodes.length){if (o43.nodeType==3)l25++; else if (o43.nodeType==1){var il=o43.tagName.toUpperCase(); if (il!="TR" && il!="TD" && il!="LI")l25++; }}}HTMLEditor.o26(i42.parent,this.i1,o25,l25); var X=this ; if (o40)X.l1j(i1b); this.o1.setTimeout( function (){if (!HTMLEditor.is_ie)X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.l3o= function (o3o){if (o3o.length==0)return []; var i1a=this.i1.createElement("SPAN"); var I1a=this.i1.createElement("SPAN"); var O43=o3o[0][0]; var l43=o3o[o3o.length-1][o3o[o3o.length-1].length-1]; if (O43==l43 && l43.nodeType==1 && l43.childNodes.length==0 && HTMLEditor.canHaveChildren(l43)){l43.appendChild(i1a); l43.appendChild(I1a); }else {var i43=HTMLEditor.I43(O43); i43.parentNode.insertBefore(i1a,i43); if (i43==O43){var I18=[]; I18.push(i1a); for (var i=0; i<o3o[0].length; i++)I18.push(o3o[0][i]); o3o[0]=I18; }var o44=HTMLEditor.O3k(l43); if (o44.nextSibling)o44.parentNode.insertBefore(I1a,o44.nextSibling); else o44.parentNode.appendChild(I1a); if (o44==l43){o3o[o3o.length-1].push(I1a);}}return [i1a,I1a]; };HTMLEditor.prototype.i1m= function (I3l,l3p){if (I3l.length==0)return; var i1a=I3l[0]; var I1a=I3l[1]; var Oq=this.lq(); var i3y=null; var I3z=null; if (HTMLEditor.is_ie){Oq.empty(); Oq=this.lq(); var o3l=this.Iq(Oq); var O3l=this.Iq(Oq); try {if (i1a!=null && I1a!=null && i1a.nextSibling==I1a){i3y=this.i1.createTextNode(" "); I1a.parentNode.insertBefore(i3y,I1a); } this.l3k=null; if (i1a!=null){o3l.moveToElementText(i1a); }if (I1a!=null){O3l.moveToElementText(I1a); }if (i1a!=null && I1a!=null){o3l.setEndPoint("EndToStart",O3l); o3l.select(); if (i3y!=null){o3l.collapse( false); o3l.select(); i3y.parentNode.removeChild(i3y); }}else if (i1a!=null)o3l.select(); else if (I1a!=null)O3l.select(); }catch (w){}}else {try {var iq; var l31=i1a.nextSibling; var l32=I1a.previousSibling;this.l3k=null; if (l31==l32 && l31.nodeType==1 && l31.tagName.toUpperCase()=="BR"){var o1d=HTMLEditor.O17(l31); iq=this.i1.createRange(); iq.setStart(l31.parentNode,o1d); iq.setEnd(l31.parentNode,o1d); }else {i3y=this.i1.createTextNode(""); I3z=this.i1.createTextNode(""); i1a.parentNode.insertBefore(i3y,i1a); I1a.parentNode.insertBefore(I3z,I1a); iq=this.i1.createRange(); iq.setStart(i3y,0); iq.setEnd(I3z,0); } this.i17(Oq); this.I17(Oq,iq); }catch (w){}}var o24=HTMLEditor.O24((i1a==null)?I1a:i1a,(I1a==null)?i1a:I1a); var parent=null; if (o24!=null){parent=o24.parent; }if (i1a!=null)i1a.parentNode.removeChild(i1a); if (I1a!=null)I1a.parentNode.removeChild(I1a); if (l3p && parent!=null){HTMLEditor.o26(parent,this.i1); if (!HTMLEditor.is_ie && i3y!=null && I3z!=null){var iq=this.i1.createRange(); iq.setStart(i3y,0); iq.setEnd(I3z,0); this.i17(Oq); this.I17(Oq,iq); }}};HTMLEditor.l3d= function (O31,ie){for (var i=0; i<O31.childNodes.length; i++){var o36=O31.childNodes.item(i); if (o36==ie)return i; if (o36.nodeType==1){if (HTMLEditor.l3d(o36,ie)>=0)return i; }}return -1; };HTMLEditor.I43= function (O31){if (typeof O31.firstChild!="undefined" && O31.firstChild!=null){if (typeof O31.firstChild.childNodes!="undefined" && O31.firstChild.childNodes!=null){return HTMLEditor.I43(O31.firstChild);}}return O31; };HTMLEditor.O3k= function (O31){if (typeof O31.lastChild!="undefined" && O31.lastChild!=null){if (typeof O31.lastChild.childNodes!="undefined" && O31.lastChild.childNodes!=null){return HTMLEditor.O3k(O31.lastChild);}}return O31; };HTMLEditor.I3g= function (O31,ie){if (O31.firstChild){if (O31.firstChild==ie)return true; if (O31.firstChild.childNodes)if (HTMLEditor.l3d(O31.firstChild,ie)==0){return HTMLEditor.I3g(O31.firstChild,ie);}}return false; };HTMLEditor.o3h= function (O31,ie){if (O31.lastChild){if (O31.lastChild==ie)return true; if (O31.lastChild.childNodes)if (HTMLEditor.l3d(O31.lastChild,ie)==O31.lastChild.childNodes.length-1){return HTMLEditor.o3h(O31.lastChild,ie);}}return false; };HTMLEditor.O24= function (I24,O25){var le=null; var par=I24.parentNode; var O44=I24; while (par){if (par.tagName && !HTMLEditor.O1j(par.tagName)){var l25=HTMLEditor.l3d(par,O25); if (l25>=0){var o25=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==O44){o25=i; break; }}return {parent:par,o25:o25,l25:l25 } ; }}O44=par; par=par.parentNode; }return le; };HTMLEditor.prototype.removeAlignment= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; this.i10(); this.l3n("left", true); this.l14(); var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); } ; HTMLEditor.l44= function (I24,O25){var le=null; var par=I24.parentNode; var O44=I24; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(par.tagName)){var l25=HTMLEditor.l3d(par,O25); if (l25>=0){var o25=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==O44){o25=i; break; }}return {parent:par,o25:o25,l25:l25 } ; }O44=par; par=par.parentNode; }return le; };HTMLEditor.prototype.l1f= function (i44,Im){var X=this ; if (HTMLEditor.is_ie){var Oq=this.lq(); var iq=this.Iq(Oq); var i2d= false; var html=""; if (i44=="x")this.i10(); if (Oq.type.toLowerCase()=="control"){i2d= true; html=HTMLEditor.getHTML(iq.item(0), true);}else {if (iq.text!=""){i2d= true; html=iq.htmlText; var I44=iq.duplicate(); var i1b=this.I1b(); if (i1b.length<1)return; var o24=HTMLEditor.l44(i1b[0],i1b[i1b.length-1]); if (o24!=null && i1b[0].previousSibling && i1b[0].previousSibling.nodeType==3){var par=o24.parent; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(par.tagName)){var oz=par.cloneNode( false); oz.innerHTML=html; html=oz.outerHTML; par=par.parentNode; }}Oq=this.lq(); Oq.empty(); iq=this.Iq(Oq); iq.setEndPoint("EndToEnd",I44); iq.setEndPoint("StartToStart",I44); iq.select(); }else if (iq.htmlText!=""){i2d= true; html=iq.htmlText; }}if (i2d){var src=this.i1.createElement("DIV"); src.innerHTML="!!!<span></span>"+html; src.removeChild(src.firstChild); src.removeChild(src.firstChild); var lk=HTMLEditor.getHTML(src, false , true); var i2x=new RegExp("(<[/]?)(teo"+HTMLEditor.om+":)","ig"); lk=lk.replace(i2x,"$1"); delete src; this.l35(lk, true); iq.select(); if (i44=="x"){Oq.clear(); this.I10(); }}else {if (i44=="x"){Oq.clear(); this.I10(); }}if (Im)setTimeout( function (){X.updateToolbar(); } ,0144); }else {if (i44=="x"){ this.i10(); var Oq=this.lq(); var iq=this.Iq(Oq); this.i17(Oq); iq.deleteContents(); if (this.i1.body.innerHTML==""){ this.i1.body.innerHTML="<br/>"; iq.setStart(this.i1.body,0); iq.setEnd(this.i1.body,0); }if (HTMLEditor.o11)this.f= true; X.l14(); this.I17(Oq,iq); }else {var Oq=this.lq(); var iq=this.Iq(Oq); this.i17(Oq); if (HTMLEditor.is_Safari)alert(this.Of("safari-c","Use Apple-C")); else alert(this.Of("moz-c","Use Ctrl-C")); if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); }}};HTMLEditor.O17= function (ll){var o1d=0; if (ll.parentNode){for ( ; o1d<ll.parentNode.childNodes.length; o1d++)if (ll.parentNode.childNodes.item(o1d)==ll)break; }return o1d; };HTMLEditor.prototype.o45= function (ij){var X=this ; this.i10(); if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X._paste(!X._NoPaste); X.on(); } ,0);HTMLEditor._stopEvent(ij); }else {if (!this.isWord && !this._NoPaste)setTimeout( function (){HTMLEditor.ly(X,X.i1,!X.showAnchors); HTMLEditor.iy(X,X.i1,!X.showPlaceHolders); HTMLEditor.O13(X.i1.body); X.O45(X.i1.body); X.l14(); } ,012); else {var i1x=X.I1x(); if (i1x!=null){var div=X.i1.createElement("div"); div.style.display="inline"; div.style.borderStyle="none"; i1x.parentNode.insertBefore(div,i1x); div.appendChild(i1x); div.removeChild(i1x); div.innerHTML="xx"; var Oq=X.lq(); var i1b=X.Iq(); X.i17(Oq); i1b.setStart(div.firstChild,0); i1b.setEnd(div.firstChild,1); X.I17(Oq,i1b); X.openWait(); setTimeout( function (){var parent=div.parentNode; div.lastChild.deleteData(div.lastChild.length-1,1); if (X.isWord){div.innerHTML=HTMLEditor.i2p(div.innerHTML); HTMLEditor.o30(div,X, true); HTMLEditor.o26(div,X.i1); }else {var l45=document.createElement("div"); l45.innerHTML=HTMLEditor.i2p(div.innerHTML); div.innerHTML=l45.innerText.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>").replace(/\cI/g,"&nbsp;"); delete l45; }while (div.firstChild)parent.insertBefore(div.firstChild,div); var i45=null; var I45=null; if (div.nextSibling && div.nextSibling.nodeType==3 && div.previousSibling && div.previousSibling.nodeType==3){i45=div.nextSibling; I45=div.previousSibling; }parent.removeChild(div); var o46=null; if (i45!=null && I45!=null){o46=I45.data.length; I45.data=""+I45.data+""+i45.data+""; i45.parentNode.removeChild(i45); }X.isWord= false; X.on(); if (o46!=null){var Oq=X.lq(); var i1b=X.Iq(); X.i17(Oq); i1b.setStart(I45,o46); i1b.setEnd(I45,o46); X.I17(Oq,i1b); }X.l14(); } ,0); }else HTMLEditor._stopEvent(ij); }}};HTMLEditor.prototype.O46= false; HTMLEditor.prototype.O2c= function (ij){try {var X=this ; if (HTMLEditor.is_ie){try {var iz=this.i1.selection; var Iz=this.Iq(iz); }catch (t){HTMLEditor._stopEvent(ij); return false; }}if (!this._wasFocused)this.focusEditor(); if (this.isPopup()){HTMLEditor._stopEvent(ij); return false; }var l46= false; if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; if (X.O10){X.O10.select(); X.O10=null; }if (ij.type=="keydown" || ij.type=="keypress"){HTMLEditor._stopEvent(ij); return; }l46= true; }if (typeof X.captureInDesign=="function"){if (X.captureInDesign(ij) === false){HTMLEditor._stopEvent(ij); return; }}if (HTMLEditor.is_ie && ij.type=="mousedown" && ij.ctrlKey){var Oq=X.lq(); var i46=ij.clientX; var I46=ij.clientY; setTimeout( function (){var Oq=X.lq(); if (Oq.type.toLowerCase()!="control"){var iq=X.i1.body.createTextRange(); iq.moveToPoint(i46,I46); iq.select(); }Oq=X.lq(); var iq=X.Iq(Oq); 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; }} ,(Oq.type.toLowerCase()!="control")?0: 012); HTMLEditor._stopEvent(ij); return false; }{var ll=(!HTMLEditor.is_ie)?ij.target:ij.srcElement; if (ll.tagName!=null && typeof ll.tagName!="undefined" && (ll.tagName.toUpperCase()=="HTML" || ll.tagName.toUpperCase()=="BODY")){if (X.o47!= true){X.o47= true; setTimeout( function (){if (!X.O47()){try {X.focusEditor(); }catch (w){}}X.o47= false; } ,0); }}else if (HTMLEditor.contentEditable(ll)!=null){setTimeout( function (){X.O47(); } ,(!HTMLEditor.is_ie && ij.button && ij.button==2)?0310: 0); }}if (l46 && HTMLEditor.is_ie){var l47=this.lq(); var Iz; try {Iz=this.Iq(l47); if (l47.type.toLowerCase()=="control"){HTMLEditor._stopEvent(ij); return false; }}catch (w){HTMLEditor._stopEvent(ij); return false; }}var i47=(HTMLEditor.is_ie && ij.type=="keydown") || (ij.type=="keypress"); if (ij.type=="keydown" && !HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (this.I47!=null){ this.I47.select(); this.I47=null; }if (i47 && !this.keyboardEnabled){HTMLEditor._stopEvent(ij); return false; }var i44=String.fromCharCode(HTMLEditor.is_ie?ij.keyCode:ij.charCode).toLowerCase(); if (i47 && X._hotkeys!=null){if (X._hotkeys.length>0){var o48=X._hotkeys.length; var O48=i44; if (ij.keyCode==022 || ij.keyCode==021 || ij.keyCode==020)O48=null; for (var i=0; i<o48; i++){var item=X._hotkeys[i]; if (item[1]==O48 && item[2]==ij.altKey && item[3]==ij.shiftKey && item[4]==ij.ctrlKey){if (typeof item[0]=="function")setTimeout( function (){ (item[0])(X); X.l14(); X.focusEditor(); } ,0); HTMLEditor._stopEvent(ij); return false; }}}}if (i47 && ij.shiftKey && ij.keyCode==055){ this.o45(ij); }else if (i47 && ij.ctrlKey && ij.altKey && ij.keyCode==044){var l48=null; var ll=HTMLEditor.getSelParent(X); while (ll && (ll.nodeType==3 || (ll.tagName && ll.tagName.toUpperCase()!="BODY"))){if (ll.nodeType==3 || !ll.tagName){ll=ll.parentNode; continue; }if (!HTMLEditor.o33(ll) && ll.tagName.toUpperCase()!="P"){if (ll.tagName.toUpperCase()=="TD")while (ll.tagName.toUpperCase()!="TABLE")ll=ll.parentNode; else if (ll.tagName.toUpperCase()=="LI")while (ll.tagName.toUpperCase()!="OL" && ll.tagName.toUpperCase()!="UL")ll=ll.parentNode; l48=ll; break; }ll=ll.parentNode; }if (l48!=null){var Oq=X.lq(); var iq=X.Iq(Oq); var l17=X.i1.createTextNode(""); l48.parentNode.insertBefore(l17,l48); if (HTMLEditor.is_ie){var o3l=X.Iq(Oq); var O3l=X.Iq(Oq); var i48=X.i1.createElement("span"); var I48=X.i1.createElement("span"); l17.parentNode.insertBefore(i48,l17); if (l17.nextSibling)l17.parentNode.insertBefore(I48,l17.nextSibling); else l17.parentNode.appendChild(I48); try {o3l.moveToElementText(i48); O3l.moveToElementText(I48); o3l.setEndPoint("EndToEnd",O3l); o3l.select(); }catch (t){}l17.parentNode.removeChild(i48); l17.parentNode.removeChild(I48); }else {X.i17(Oq); iq.setStart(l17,0); iq.setEnd(l17,0); X.I17(Oq,iq); }}}else if (HTMLEditor.is_ie && ij.keyCode>=041 && ij.keyCode<=050 && !ij.shiftKey){var o49=ij.keyCode; var O49=(o49==042 || o49==043 || o49==047 || o49==050); setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); if (Oq.type.toLowerCase()=="control"){var ll=iq.item(0); if (!ll.contentEditable || ll.contentEditable=="false"){iq.remove(0); Oq.empty(); iq=X.Iq(Oq); var span=X.i1.createElement("SPAN"); span.appendChild(X.i1.createTextNode("")); if (O49){if (ll.nextSibling==null)ll.parentNode.appendChild(span); else ll.parentNode.insertBefore(span,ll.nextSibling); }else {ll.parentNode.insertBefore(span,ll); }iq.moveToElementText(span); iq.select(); setTimeout( function (){X.focusEditor(); X.updateToolbar(); X.focusEditor(); span.parentNode.removeChild(span); } ,012); }}} ,0); }else if (((i47 && !HTMLEditor.is_Safari) || (HTMLEditor.is_Safari && ij.type=="keydown")) && ij.ctrlKey && !ij.altKey){X.O46= false; var Oq=null; var iq=null; var i44=String.fromCharCode((HTMLEditor.is_ie || HTMLEditor.o11 || HTMLEditor.is_Safari)?ij.keyCode:ij.charCode).toLowerCase(); var o22=null; var value=null; if ((HTMLEditor.is_ie || HTMLEditor.is_Safari) && ij.keyCode==021){return false; }else if (!HTMLEditor.is_ie && ij.keyCode==043 && !ij.shiftKey){X.o13( true); }else if (ij.keyCode==056 && this.O1f()){HTMLEditor._stopEvent(ij); return false; }else if (ij.keyCode==056 || ij.keyCode==8){if ((HTMLEditor.is_ie && ij.type=="keydown") || (!HTMLEditor.is_ie && ij.type=="keypress"))this.i10(); }else {switch (i44){case "a":if (!HTMLEditor.is_ie){Oq=this.lq(); this.i17(Oq); iq=this.Iq(); iq.selectNodeContents(this.i1.body); this.I17(Oq,iq); HTMLEditor._stopEvent(ij); return false; }else X.O46= true; break; case "z": this.undo(); HTMLEditor._stopEvent(ij); return false; break; case "p":if (!HTMLEditor.is_ie){setTimeout( function (){X.o1g(); } ,0); HTMLEditor._stopEvent(ij); return false; }break; case "y": this.redo(); HTMLEditor._stopEvent(ij); return false; break; case "x":if (this.O1f()){HTMLEditor._stopEvent(ij); return false; } this.i10(); if (HTMLEditor.is_ie){if (ij.type=="keydown"){X.openWait(); setTimeout( function (){X.l1f(i44, false); X.on(); } ,0); HTMLEditor._stopEvent(ij); return false; }}break; case "c":if (this.O1f()){HTMLEditor._stopEvent(ij); return false; }if (HTMLEditor.is_ie){if (ij.type=="keydown"){X.openWait(); setTimeout( function (){X.l1f(i44, false); X.on(); setTimeout( function (){X.i1f(); } ,0); } ,0); HTMLEditor._stopEvent(ij); return false; }}break; case "v":if (this.O1f()){HTMLEditor._stopEvent(ij); return false; } this.o45(ij); break; case "b": this.bold(); HTMLEditor._stopEvent(ij); return false; case "i": this.italic(); HTMLEditor._stopEvent(ij); return false; case "u": this.underline(); HTMLEditor._stopEvent(ij); return false; case "s":o22="strikethrough"; break; case "l":o22="justifyleft"; break; case "e":o22="justifycenter"; break; case "r":o22="justifyright"; break; case "j":o22="justifyfull"; break; case "q":alert(this.i1.body.innerHTML); HTMLEditor._stopEvent(ij); return false; break; case "0":var l49=this.Of("your-browser","Your browser")+":\n\n"+navigator.userAgent; l49+="\n\nObout Editor: "+this.scriptVersion; alert(l49); HTMLEditor._stopEvent(ij); return false; break; break; case "9":if (!HTMLEditor.is_ie){var Oq=X.lq(); var iq=X.Iq(Oq); var i21=iq.startContainer; var I21=iq.endContainer; var i49=""; i49+="startContainer: "+(i21.nodeType==1?i21.tagName: "text")+"\n"; i49+="endContainer  : "+(I21.nodeType==1?I21.tagName: "text")+"\n"; if (i21==I21){i49+="startOffset: "+iq.startOffset+"\n"; i49+="endOffset  : "+iq.endOffset+"\n"; if (i21.nodeType==1){i21=i21.childNodes.item(iq.startOffset); if (i21 && i21.nodeType){i49+="startOffset node: "+(i21.nodeType==1?i21.tagName: "text")+"\n"; if (iq.startOffset!=iq.endOffset){i21=i21.childNodes.item(iq.endOffset); if (i21 && i21.nodeType)i49+="endOffset node: "+(i21.nodeType==1?i21.tagName: "text")+"\n"; }}else i49+=i21; }}alert(i49); }else {var Oq=X.lq(); var iq=X.Iq(Oq); alert("boundingLeft: "+iq.boundingLeft+" boundingTop: "+iq.boundingTop+"\n"+"boundingWidth: "+iq.boundingWidth+" boundingHeight: "+iq.boundingHeight); }HTMLEditor._stopEvent(ij); return false; break; }}if (o22){ this.i1i(o22, false ,value); if (o22=="formatblock" && !HTMLEditor.is_ie){ this.i10(); this.I1e( false); }HTMLEditor._stopEvent(ij); if (o22=="delete" || o22=="paste"){ this.I10(); }}}else if (((i47) || (HTMLEditor.is_Safari && ij.type=="keydown"))){if (HTMLEditor.is_ie && this.i2c){var iq=this.Iq(this.lq()); iq.select(); this.i2c= false; }var i44=String.fromCharCode(HTMLEditor.is_ie?ij.keyCode:ij.charCode).toLowerCase(); if (X.O46){X.O46= false; function I49(){var i1g=X.Iq(X.lq()); var parent=i1g.parentElement(); if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); parent.parentNode.removeChild(parent); }}setTimeout(I49,0); }if (this.O1f()){HTMLEditor._stopEvent(ij); return false; }switch (ij.keyCode){case 011:if ((HTMLEditor.is_Safari && ij.type!="keydown"))break; if (!this.suppressTab){if (!this.Or())this.l11("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); HTMLEditor._stopEvent(ij); }else {if (!HTMLEditor.is_ie){HTMLEditor._stopEvent(ij); }return true; }break; case 8:case 056:if ((HTMLEditor.is_Safari && ij.type!="keydown"))break; if (((HTMLEditor.is_ie || HTMLEditor.is_Safari) && ij.type=="keydown") || (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && ij.type=="keypress"))this.i10(); if (!HTMLEditor.is_ie){var iq=this.Iq(this.lq()); var i21=iq.startContainer; var I21=iq.endContainer; if (ij.type=="keypress")if (HTMLEditor.contentEditable(i21)!=null || HTMLEditor.contentEditable(I21)!=null){HTMLEditor._stopEvent(ij); return false; }if (i21==I21 && i21.nodeType==1 && i21.tagName.toUpperCase()=="TD" && iq.startOffset==iq.startOffset && i21.childNodes.item(iq.startOffset) && i21.childNodes.item(iq.startOffset).tagName && i21.childNodes.item(iq.startOffset).tagName.toUpperCase()=="BR"){var span=i21.childNodes.item(iq.startOffset); var left=0,right=0; var o4a,o23,I22; o23=o4a=span.previousSibling; while (o4a){left++; o4a=o4a.previousSibling; }I22=o4a=span.nextSibling; while (o4a){right++; o4a=o4a.nextSibling; }if ((ij.keyCode==056 && right==0) || (ij.keyCode==8 && left==0)){HTMLEditor._stopEvent(ij); return false; }else if (ij.keyCode==056 && i21.firstChild==i21.lastChild && i21.firstChild.nodeType==1){HTMLEditor._stopEvent(ij); return false; }}if (i21==I21 && i21.nodeType==3 && iq.startOffset==iq.endOffset){var data=i21.data+""; if (ij.keyCode==056)if (iq.startOffset==data.length && !(i21.nextSibling && i21.nextSibling.nodeType==3)){if (i21.nextSibling){i21.parentNode.removeChild(i21.nextSibling); X.l14(); }HTMLEditor._stopEvent(ij); return false; }if (ij.keyCode==8)if (iq.startOffset==0 && !(i21.previousSibling && i21.previousSibling.nodeType==3)){if (i21.previousSibling){i21.parentNode.removeChild(i21.previousSibling); X.l14(); }HTMLEditor._stopEvent(ij); return false; }}if (ij.keyCode==8 && i21.nodeType==1 && i21==I21 && iq.startOffset==iq.endOffset){var O4a=i21.childNodes.item(iq.startOffset); if (O4a!=null && O4a.nodeType==1 && O4a.tagName.toUpperCase()=="BR"){O4a=O4a.previousSibling; if (O4a!=null && O4a.nodeType!=3){O4a.parentNode.removeChild(O4a); X.l14(); HTMLEditor._stopEvent(ij); return false; }}}setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); var i21=iq.startContainer; var I21=iq.endContainer; if (HTMLEditor.contentEditable(i21)!=null || HTMLEditor.contentEditable(I21)!=null){X.I1e( false); return; }if (i21==I21 && i21.nodeType==1 && HTMLEditor.O1j(i21.tagName) && iq.startOffset==iq.endOffset && i21.childNodes.length==0){while (i21.parentNode.nodeType==1 && HTMLEditor.O1j(i21.parentNode.tagName) && i21.parentNode.childNodes.length==1)i21=i21.parentNode; var l31=i21.nextSibling; var l32=i21.previousSibling; var parent=i21.parentNode; parent.removeChild(i21); X.l14(); if (l31==null && l32==null){iq.setStart(parent,0); iq.setEnd(parent,0); }else if (l31!=null && l32!=null){if (l31.nodeType==3 && l32.nodeType==3){var o2a=(""+l32.data+"").length; l32.appendData(l31.data);parent.removeChild(l31); iq.setStart(l32,o2a); iq.setEnd(l32,o2a); }else if (l32.nodeType==3){var o2a=(""+l32.data+"").length; iq.setStart(l32,o2a); iq.setEnd(l32,o2a); }else if (l31.nodeType==3){iq.setStart(l31,0); iq.setEnd(l31,0); }else {if (l31.childNodes.length>0){iq.setStart(l31,0); iq.setEnd(l31,0); }else {var o2a=HTMLEditor.O17(l31); iq.setStart(parent,o2a); iq.setEnd(parent,o2a); }}}else if (l32!=null){if (l32.nodeType==3){var o2a=(""+l32.data+"").length; iq.setStart(l32,o2a); iq.setEnd(l32,o2a); }else {var o2a=l32.childNodes.length; if (o2a>0){iq.setStart(l32,o2a); iq.setEnd(l32,o2a); }else {o2a=HTMLEditor.O17(l32); iq.setStart(parent,o2a); iq.setEnd(parent,o2a); }}}else if (l31!=null){if (l31.nodeType==3){iq.setStart(l31,0); iq.setEnd(l31,0); }else {var o2a=l31.childNodes.length; if (o2a>0){iq.setStart(l31,o2a); iq.setEnd(l31,o2a); }else {o2a=HTMLEditor.O17(l31); iq.setStart(parent,o2a); iq.setEnd(parent,o2a); }}}X.i17(Oq); X.I17(Oq,iq); }} ,012); }else {var Oq=X.lq(); if (Oq.type.toLowerCase()=="control"){if (ij.keyCode==8){setTimeout( function (){X.i1f(); X.l14(); } ,0); HTMLEditor._stopEvent(ij); return; }var i1g=X.Iq(Oq); var l4a=i1g.item(0); if (l4a.tagName.toUpperCase()=="EMBED"){l4a.src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); l4a.parentNode.removeChild(l4a); while (i1g.length>0)i1g.remove(0); try {i1g.collapse( false); }catch (t){}HTMLEditor._stopEvent(ij); X.i10(); setTimeout( function (){X.I1e( false); X.l14(); } ,0); return; }}var o3a=X.i1.body.getElementsByTagName("EMBED").length; if (o3a>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); var i4a=ij.keyCode; setTimeout( function (){X.A.removeChild(popup); var I4a=X.i1.body.getElementsByTagName("EMBED"); if (o3a!=I4a.length){X.i10(); setTimeout( function (){X.I1e( false); X.l14(); } ,0); }} ,0); }setTimeout( function (){X.I10(); } ,5); break; }break; case 015:if ((HTMLEditor.is_Safari && ij.type=="keydown"))break; if ((!HTMLEditor.is_ie && ij.type=="keypress") || (HTMLEditor.is_ie && ij.type=="keydown"))this.i10(); if (HTMLEditor.is_ie && ij.type=="keydown"){var Oq=X.lq(); if (Oq.type.toLowerCase()=="control")break; var i1g=X.Iq(Oq); if (!ij.shiftKey){var o4b=i1g.parentElement(); if (o4b.tagName.toUpperCase()=="TEXTAREA")break; while (o4b && o4b.tagName && o4b.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(o4b.tagName)){o4b=o4b.parentNode; }if (o4b && o4b.tagName && (o4b.tagName.toUpperCase()=="P" || o4b.tagName.toUpperCase()=="LI")){if (o4b.tagName.toUpperCase()=="LI"){function test(){i1g=X.Iq(X.lq()); var parent=i1g.parentElement(); while (parent && parent.tagName && parent.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(parent.tagName)){parent=parent.parentNode; }if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){var i48=X.i1.createElement("span"); var l17=X.i1.createTextNode(" "); var o3m=parent; while (o3m.firstChild!=null && o3m.firstChild.nodeType==1)o3m=o3m.firstChild; if (o3m.nodeType==1){o3m.appendChild(l17); o3m.appendChild(i48); while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); }else {parent.parentNode.insertBefore(l17,parent); parent.parentNode.insertBefore(i48,parent); }parent.parentNode.removeChild(parent); i1g.moveToElementText(i48); i1g.select(); i48.parentNode.removeChild(i48); X.l14(); }}setTimeout(test,024); }break; }try {var l3x=HTMLEditor.om+"_middle_add"; var i3x=null; var I3x="<span id="+l3x+"></span>"; function O4b(){var Oq=X.lq(); var iq=X.Iq(Oq); if (i3x!=null){i3x.innerHTML="&nbsp;"; iq.moveToElementText(i3x); iq.select(); i3x.parentNode.insertBefore(i3x.firstChild,i3x); i3x.parentNode.removeChild(i3x); X.l14(); }}i1g.pasteHTML(I3x); var l4b= false; i3x=X.i1.getElementById(l3x); if (i3x!=null){var nextSibling=i3x.nextSibling; var i4b=i3x.parentNode; while (nextSibling==null && i4b!=null && HTMLEditor.O1j(i4b.tagName)){nextSibling=i4b.nextSibling; i4b=i4b.parentNode; }if (nextSibling!=null && !HTMLEditor.O3c(nextSibling) && nextSibling.tagName!=null && typeof nextSibling.tagName!="undefined"){var il=nextSibling.tagName.toUpperCase(); if (il!="BR" && il!="UL" && il!="OL" && il!="P"){l4b= true; }}i3x.parentNode.removeChild(i3x); }i1g.pasteHTML("<br/>"+(l4b?I3x: "")); if (l4b)i3x=X.i1.getElementById(l3x); i1g.select(); if (l4b){setTimeout(O4b,0); HTMLEditor._stopEvent(ij); return false; }}catch (w){}}else {break; }HTMLEditor._stopEvent(ij); }else {if (!ij.shiftKey && (HTMLEditor.is_Safari || HTMLEditor.o11)){var o4b=HTMLEditor.getSelParent(this ); if (o4b.nodeType==3){o4b=o4b.parentNode; }while (o4b && o4b.tagName && o4b.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(o4b.tagName)){o4b=o4b.parentNode; }if (o4b && o4b.tagName && (o4b.tagName.toUpperCase()=="P" || o4b.tagName.toUpperCase()=="LI")){break; } this.l11("<br/>"); HTMLEditor._stopEvent(ij); X.l14(); }else if (HTMLEditor.is_Safari){ this.l11("<br/>"); HTMLEditor._stopEvent(ij); X.l14(); }}break; }}else X.O46= false; if (HTMLEditor.is_ie && ij.type=="keypress" && !ij.ctrlKey){var i44=ij.keyCode; var I4b=X.lq(); var o4c=X.Iq(I4b); if (o4c.text.length>0){var O4c=String.fromCharCode(i44); var l4c=HTMLEditor.i4c(ij); var I4c=(ij.shiftKey && !l4c) || l4c; if (!I4c)O4c=O4c.toLowerCase(); var o4d=HTMLEditor.om+"StyleForTyping"; var O4d=X.i1.getElementById(o4d); if (O4d!=null){O4c="<span id='"+o4d+"'></span>"+O4c+"<span id='"+o4d+o4d+"'></span>"; O4d.parentNode.removeChild(O4d); }o4c.pasteHTML(O4c); if (O4d!=null){X.l4d(o4d); O4d=X.i1.getElementById(o4d+o4d); O4d.parentNode.removeChild(O4d); }HTMLEditor._stopEvent(ij); X.l14(); return false; }}if (ij.type=="mouseup" || ij.type=="mousedown" || ij.type=="keydown"){var i4d= true; if (ij.type=="keydown" && !ij.ctrlKey){var i44=ij.keyCode; if ((i44>=060 && i44<=0132) || (i44==040) || (i44==0015) || (i44>=0272 && i44<=0336) || (i44>=0140 && i44<=0157)){if (X.M!=null){X.o3z=[]; for (var I4d=0; I4d<X.M.length; I4d++){X.o3z.push(X.M[I4d]); }var o4d=HTMLEditor.om+"StyleForTyping"; var o4e= true; if (!HTMLEditor.is_ie)X.l11("<span id='"+o4d+"'></span>"); else {X.l11("<span id='"+o4d+"'>&nbsp;</span>"); var O4d=X.i1.getElementById(o4d); if (O4d && O4d.nextSibling && O4d.nextSibling.nodeType==3){o4e= false; var I4b=X.lq(); var o4c=X.Iq(I4b); o4c.moveToElementText(X.i1.getElementById(o4d)); o4c.select(); }else if (O4d)O4d.removeChild(O4d.firstChild); }if (o4e)setTimeout( function (){X.l4d(o4d); X.l14(); } ,0); }}}if (!HTMLEditor.is_ie && (ij.type=="mousedown" || (ij.type=="keydown" && !ij.ctrlKey))){X.I1g= false; X.l1h= false; X.i1h= false; X.I1h= false; X.o1i= false; X.O1i= false; }if (i4d || !HTMLEditor.is_ie){if (!X.O4e){if (X.l4e){clearTimeout(X.l4e); X.l4e=null; }X.i4e=3; function I4e(){try {if (HTMLEditor.is_ie){try {var iz=X.i1.selection; }catch (t){return false; }}if (HTMLEditor.is_ie)if (X.lq().type=="None" && X.i1.queryCommandValue("backcolor")==0 && X.i1.queryCommandValue("forecolor")==0){X.i4e--; if (X.i4e>0){X.l4e=setTimeout(I4e,0144); return; }}X.O4e= true; X.updateToolbar(); X.O4e= false; X.l4e=null; if (!HTMLEditor.is_ie){X.focusEditor(); }}catch (t){}}X.l4e=setTimeout(I4e,0454); }}}if (!((!HTMLEditor.is_ie && (ij.type=="keydown" || ij.type=="keyup")) || (HTMLEditor.is_ie && (ij.type=="keydown" || ij.type=="keyup") && (ij.keyCode==020 || ij.keyCode==024))))X.M=null; if (HTMLEditor.is_Safari)setTimeout( function (){X.Iq(X.lq()); } ,0); if (!HTMLEditor.is_ie)setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); if (iq.startContainer.nodeType!=3 && iq.startContainer==iq.endContainer)if (iq.startOffset==iq.endOffset)if (iq.startContainer.childNodes.item(iq.startOffset))if (iq.startContainer.childNodes.item(iq.startOffset).nodeType==3){var o17=iq.startContainer.childNodes.item(iq.startOffset); Oq.collapseToEnd(); X.i17(Oq); Oq=X.lq(); iq=X.Iq(Oq); if (HTMLEditor.is_Safari){X.o14.type="Caret"; X.o14.focusNode=o17; X.o14.focusOffset=0; }else {iq.setStart(o17,0); iq.setEnd(o17,0); X.I17(Oq,iq); }}} ,0144); if (!HTMLEditor.is_ie){var Oq=X.lq(); var iq=X.Iq(Oq); X.o4f=iq.startContainer; X.O4f=iq.startOffset; }setTimeout( function (){try {X.i1f(); }catch (t){}} ,0144); if (ij.type=="keydown"){if (X.l4f==null || typeof X.l4f=="undefined" || !X.l4f){X.l4f= true; setTimeout( function (){X.l14(); X.l4f= false; } ,012); }}return true; }catch (w){HTMLEditor._stopEvent(ij); return false; }} ; HTMLEditor.prototype.l4d= function (o4d){var X=this ; var ll=X.i1.getElementById(o4d); if (ll!=null){if (ll.nextSibling && ll.nextSibling.nodeType==3){var text=ll.nextSibling; ll.parentNode.removeChild(ll); var i4f=(""+text.data+"").indexOf(" "); if (i4f>0)text.splitText(i4f); else if (i4f==0)text.splitText(1); if (X.o3z!=null)for (var I4d=0; I4d<X.o3z.length; I4d++)X.O3w(X.o3z[I4d],[text], false); X.o3z=null; var Oq=X.lq(); if (!HTMLEditor.is_ie){var iq=X.i1.createRange(); iq.setStart(text,text.length); iq.setEnd(text,text.length); X.i17(Oq); X.I17(Oq,iq); }else {var o3l=X.Iq(Oq); var i48=X.i1.createElement("span"); if (text.nextSibling)text.parentNode.insertBefore(i48,text.nextSibling); else text.parentNode.appendChild(i48); try {o3l.moveToElementText(i48); o3l.select(); }catch (t){}i48.parentNode.removeChild(i48); }}else ll.parentNode.removeChild(ll); }};HTMLEditor.prototype.O1f= function (){if (!this.Or())return false; var Oq=this.lq(); var iq=this.Iq(Oq); var O1p; if (HTMLEditor.is_ie){O1p=iq.item(0); }else {O1p=iq.startContainer.childNodes.item(iq.startOffset); }if (O1p.tagName && O1p.tagName.toUpperCase()=="IMG" && O1p.getAttribute(HTMLEditor.Ot) && O1p.getAttribute(HTMLEditor.Ot).length>0){var I4f=this.lt(O1p); if (I4f!=null){if (HTMLEditor.is_ie){iq=this.i1.body.createControlRange(); iq.add(I4f); iq.select(); }else {try {var index=HTMLEditor.O17(I4f); Oq.collapseToEnd(); this.i17(Oq); iq=this.Iq(Oq); iq.setStart(I4f.parentNode,index); iq.setEnd(I4f.parentNode,index+1); this.I17(Oq,iq); }catch (t){return true; }}return false; }return true; }return false; };HTMLEditor.prototype.i1f= function (){if (HTMLEditor.is_ie){try {var iz=this.i1.selection; }catch (t){return false; }}var X=this ; var l48=null; var ll=HTMLEditor.getSelParent(X); while (ll && (ll.nodeType==3 || (ll.tagName && ll.tagName.toUpperCase()!="BODY"))){if (ll.nodeType==3 || !ll.tagName){ll=ll.parentNode; continue; }if (ll.tagName.toUpperCase()=="TABLE" && ll.getAttribute(HTMLEditor.ot) && ll.getAttribute(HTMLEditor.ot)=="yes"){l48=ll.rows.item(0).cells.item(0).firstChild; if (HTMLEditor.is_ie && l48.tagName.toUpperCase()=="P")l48=l48.firstChild; break; }ll=ll.parentNode; }if (l48!=null){var Oq=X.lq(); var iq=X.Iq(Oq); if (HTMLEditor.is_ie){iq=X.i1.body.createControlRange(); iq.add(l48); iq.select(); }else {try {Oq.collapseToEnd(); X.i17(Oq); iq=X.Iq(Oq); iq.setStart(l48.parentNode,0); iq.setEnd(l48.parentNode,1); X.I17(Oq,iq); }catch (t){}}}};HTMLEditor.prototype.lq= function (){if (HTMLEditor.is_ie){var Oq=this.i1.selection; return Oq; }else { this.focusEditor(); var Oq; var iq; var ll; Oq=this._iframe.contentWindow.getSelection(); iq=this.Iq(Oq); ll=iq.startContainer; try {while (ll && ll.nodeType){ll=ll.parentNode; }}catch (t){ this.i17(Oq); iq=this.Iq(Oq); iq.setStart(this.o4f,this.O4f); iq.setEnd(this.o4f,this.O4f); this.I17(Oq,iq); Oq=this._iframe.contentWindow.getSelection(); }return Oq; }} ; HTMLEditor.prototype.Iq= function (Oq){if (HTMLEditor.is_ie){return Oq.createRange(); }else { this.focusEditor(); if (typeof Oq=="undefined"){return this.i1.createRange(); }else {try {var i1g=Oq.getRangeAt(0); if (i1g==null && HTMLEditor.ok)o4g.O4g=l4g.l4g; return i1g; }catch (t){var X=this ; if (!(HTMLEditor.is_Safari && !HTMLEditor.ok) && Oq.rangeCount==0){return this.i1.createRange(); }if (HTMLEditor.is_Safari){try {if (Oq.type=="None"){if (X.o14){if (X.o14.type=="Caret"){Oq.setPosition(X.o14.focusNode,X.o14.focusOffset); }else {Oq.setBaseAndExtent(X.o14.anchorNode,X.o14.anchorOffset,X.o14.focusNode,X.o14.focusOffset); }}else {Oq.setPosition(this.i1.body.firstChild,0); }}if (Oq.type=="Caret"){var i1g=X.i1.createRange(); if (!X.o14)X.o14=new Object(); X.o14.type="Caret"; i1g.setStart(Oq.focusNode,Oq.focusOffset); i1g.setEnd(Oq.focusNode,Oq.focusOffset); X.o14.focusNode=Oq.focusNode; X.o14.focusOffset=Oq.focusOffset; return i1g; }if (!X.o14)X.o14=new Object(); X.o14.type="Range"; var i4g=Oq.anchorNode; var I4g=Oq.anchorOffset; if (i4g.nodeType==1 && i4g.childNodes.length==0){i4g=i4g.parentNode; I4g=HTMLEditor.l3d(i4g,Oq.anchorNode); }var o4h=Oq.focusNode; var O4h=Oq.focusOffset; if (o4h.nodeType==1 && o4h.childNodes.length==0){o4h=o4h.parentNode; O4h=HTMLEditor.l3d(o4h,Oq.focusNode); }var l4h=X.i1.createRange(); l4h.setStart(i4g,I4g); l4h.collapse( true); var i4h=X.i1.createRange(); i4h.setStart(o4h,O4h); i4h.collapse( true); var I4h=l4h.compareBoundaryPoints(l4h.START_TO_END,i4h)<0; var o4i=I4h?i4g:o4h; var O4i=I4h?I4g:O4h; var l4i=I4h?o4h:i4g; var i4i=I4h?O4h:I4g; var i1g=X.i1.createRange(); i1g.setStart(o4i,O4i); i1g.setEnd(l4i,i4i); X.o14.focusNode=l4i; X.o14.focusOffset=i4i; X.o14.anchorNode=o4i; X.o14.anchorOffset=O4i; return i1g; }catch (t){X.o14=null; Oq.setPosition(this.i1.body.firstChild,0); }}}}}} ; HTMLEditor.prototype.I4i=null; HTMLEditor.prototype.getFormat= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var Oq=this.lq(); var iq=this.Iq(Oq); var I22=HTMLEditor.om+"_right"; var l23; if (HTMLEditor.is_ie){l23=iq.duplicate(); l23.setEndPoint("StartToEnd",iq); }else {l23=iq.cloneRange(); l23.setStart(l23.endContainer,l23.endOffset); }if (this.l11("<span id='"+I22+"'/>",l23)){var I1a=this.i1.getElementById(I22); var par=I1a.parentNode; this.I4i=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(par.tagName)){if (par.tagName.toUpperCase()!="A"){var lk=par.cloneNode( false); if (this.I4i==null){ this.I4i=lk; }else {lk.appendChild(this.I4i); this.I4i=lk; }}par=par.parentNode; }I1a.parentNode.removeChild(I1a); if (this.I4i){var i3k=this.i1.createElement("span"); i3k.appendChild(this.I4i); this.I4i=i3k.innerHTML; }}};HTMLEditor.prototype.applyFormat= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (this.I4i==null){setTimeout( function (){alert(X.Of("copy-format","Copy Format.")); } ,0); return; }var i3k=this.i1.createElement("span"); i3k.innerHTML=this.I4i; var i1b=this.I1b(); if (i1b.length==0){setTimeout( function (){alert(X.Of("select-text","Select some text.")); } ,0); delete i3k; return; } this.i10(); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var o4j=i3k.firstChild.cloneNode( true); var I25=o4j; while (I25.firstChild)I25=I25.firstChild; par.insertBefore(o4j,i1b[i]); I25.appendChild(i1b[i]); } this.l1j(i1b); delete i3k; this.o1.setTimeout( function (){X.l14(); X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.I1b= function (O4j){try {var l4j=[]; if (this.Or())return l4j; var Oq=this.lq(); var iq=this.Iq(Oq); var I22=HTMLEditor.om+"_right"; var o23=HTMLEditor.om+"_left"; var O23=null; var l23=null; var i4j; if (typeof O4j=="undefined"){if (HTMLEditor.is_ie){O23=iq.duplicate(); l23=iq.duplicate(); O23.setEndPoint("EndToStart",iq); l23.setEndPoint("StartToEnd",iq); }else {O23=iq.cloneRange(); l23=iq.cloneRange(); O23.setEnd(O23.startContainer,O23.startOffset); l23.setStart(l23.endContainer,l23.endOffset); i4j=O23.endOffset; }if (!this.l11("<span id='"+I22+"'/>",l23))return l4j; {if (HTMLEditor.o11){O23.setEnd(O23.startContainer,i4j); O23.setStart(O23.startContainer,i4j); }if (!this.l11("<span id='"+o23+"'/>",O23)){var i23=this.i1.getElementById(I22); if (i23!=null){lk=i23.parentNode; lk.removeChild(i23); }var I4j=this.i1.getElementById(o4k); if (I4j!=null){lk=I4j.parentNode; lk.removeChild(I4j); }return l4j; }}}else {var span; span=this.i1.createElement("SPAN"); span.id=I22; this.i1.body.appendChild(span); span=this.i1.createElement("SPAN"); span.id=o23; this.i1.body.insertBefore(span,this.i1.body.firstChild); }var i1a=this.i1.getElementById(o23); var I1a=this.i1.getElementById(I22); if (i1a==null || I1a==null){var lk; if (i1a!=null){lk=i1a.parentNode; lk.removeChild(i1a); }if (I1a!=null){lk=I1a.parentNode; lk.removeChild(I1a); }return []; }while (i1a.firstChild)i1a.removeChild(i1a.firstChild); while (I1a.firstChild)I1a.removeChild(I1a.firstChild); while (i1a.previousSibling && i1a.previousSibling.nodeType==3 && HTMLEditor.I12(""+i1a.previousSibling.data+"").length==0)i1a.parentNode.removeChild(i1a.previousSibling); while (i1a.nextSibling && i1a.nextSibling.nodeType==3 && HTMLEditor.I12(""+i1a.nextSibling.data+"").length==0)i1a.parentNode.removeChild(i1a.nextSibling); while (I1a.previousSibling && I1a.previousSibling.nodeType==3 && HTMLEditor.I12(""+I1a.previousSibling.data+"").length==0)I1a.parentNode.removeChild(I1a.previousSibling); while (I1a.nextSibling && I1a.nextSibling.nodeType==3 && HTMLEditor.I12(""+I1a.nextSibling.data+"").length==0)I1a.parentNode.removeChild(I1a.nextSibling); var i41= false; var X=this ; function O4k(l4k,Im){while (l4k){if (l4k.id && l4k.id==I22){i41= true; return; }if (l4k.nodeType==3){while (l4k.nextSibling && (l4k.nextSibling.nodeType==3 || (!HTMLEditor.is_ie && X.i3w!=null && X.i3w[0]==l4k.nextSibling))){if (l4k.nextSibling.nodeType==3)l4k.data=""+l4k.data+""+l4k.nextSibling.data+""; else {X.i3w[0]=l4k; X.i3w[1]=(""+l4k.data+"").length; }l4k.parentNode.removeChild(l4k.nextSibling); }if (HTMLEditor.I12(""+l4k.data+"").length>0)l4j.push(l4k); }else {if (!(l4k.tagName && (l4k.tagName.toUpperCase()=="MAP" || l4k.tagName.toUpperCase()=="AREA")))if (!(l4k.tagName && (l4k.tagName.toUpperCase()=="SCRIPT" || l4k.tagName.toUpperCase()=="NOSCRIPT")))if (!(l4k.style && (Iy(l4k,"display")=="none" || Iy(l4k,"visibility")=="hidden")))O4k(l4k.firstChild, false); }if (i41)return; var o37=l4k.parentNode; if (Im)while (l4k.nextSibling==null){l4k=l4k.parentNode; }l4k=l4k.nextSibling; }}O4k(i1a, true); var lk; lk=i1a.parentNode; lk.removeChild(i1a); lk=I1a.parentNode; lk.removeChild(I1a); if (typeof O4j=="undefined"){if (HTMLEditor.is_ie){Oq.empty(); l23.select(); }else {if (l4j.length>0){ this.i17(Oq); var Iz=this.Iq(); Iz.setEnd(l4j[l4j.length-1],l4j[l4j.length-1].length); Iz.setStart(l4j[l4j.length-1],l4j[l4j.length-1].length); this.I17(Oq,Iz); }}}return l4j; }catch (t){alert("_getTextNodeCollection: "+t.message); return []; }} ; HTMLEditor.prototype.or= function (iq){if (HTMLEditor.is_ie)return iq.parentElement(); else {return iq.startContainer; }};HTMLEditor.prototype.getIconsUrls= function (){var X=this ; var le=[]; for (var i=0; i<X._IconArray.length; i++){var folder=X._IconArray[i][0]; var lg=X._IconArray[i][1]; for (var oh=0; oh<lg.length; oh++)le.push(X.I7+"/"+folder+"/"+lg[oh]); }return le; };HTMLEditor.prototype.ExecCommand= function (i4k,param){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.Iq(this.lq()); this.i10(); this.i1i(i4k, false ,param); return true; };HTMLEditor.prototype.QueryCommand= function (i4k){if (this.mode()!="html")return false; switch (i4k.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.O22(i4k); case "formatblock":var i16=this.I4k(); if (i16==null)return ""; var ll=i16.start; while (ll && ll.tagName && ll.tagName.toUpperCase()!="BODY" && ll.tagName.toUpperCase()!="TD"){if (/^h\d$/i.test(ll.tagName))return ll.tagName; ll=ll.parentNode; }return ""; }return this.i1.queryCommandValue(i4k); };HTMLEditor.prototype.i1i= function (i4k,UI,param){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }var Oq; var iq; if (HTMLEditor.is_ie && !this.Or()){Oq=this.lq(); iq=this.Iq(Oq); var o4b=iq.parentElement(); if (o4b.tagName.toUpperCase()=="TEXTAREA")return; }try {if (i4k.toLowerCase()!="createlink")this.i10(); if (HTMLEditor.is_Safari){Oq=this.lq(); }switch (i4k.toLowerCase()){case "createlink":if (HTMLEditor.is_ie || !UI){ this.i1.execCommand(i4k,UI,param); }else {if ((param=prompt("Enter URL"))){ this.i1.execCommand(i4k, false ,param); }}break; case "backcolor":case "forecolor":case "fontname":case "fontsize": this.l3v(i4k.toLowerCase(),param); break; case "indent": this.O3u( true); break; case "outdent": this.O3u( false); break; case "justifyleft": this.l3n("left"); break; case "justifyfull": this.l3n("justify"); break; case "justifycenter": this.l3n("center"); break; case "justifyright": this.l3n("right"); break; case "paragraph": this.l3n("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.l3n("remain", false ,param); break; }} this.i1.execCommand(i4k,UI,param); break; case "insertunorderedlist": this.i3r("UL"); break; case "insertorderedlist": this.i3r("OL"); break; case "bold":case "italic":case "underline":case "strikethrough":case "superscript":case "subscript": this.l3v(i4k.toLowerCase()); break; default: this.i1.execCommand(i4k,UI,param); break; } this.l14(); if (!HTMLEditor.is_ie){Oq=this.lq(); iq=this.Iq(Oq); this.i17(Oq); if (HTMLEditor.o11)setTimeout( function (){X.f= true; X.focusEditor(); X.I17(Oq,iq); } ,0); this.I17(Oq,iq); this.focusEditor(); }var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); }catch (t){alert("_execCommand: "+t.message); }} ; HTMLEditor.prototype.i17= function (Oq){if (!HTMLEditor.is_Safari)Oq.removeAllRanges(); };HTMLEditor.prototype.I17= function (Oq,iq,Im){if (!HTMLEditor.is_Safari)Oq.addRange(iq); else {if (iq.startContainer==iq.endContainer && iq.startOffset==iq.endOffset){Oq.setPosition(iq.startContainer,iq.startOffset); }else Oq.setBaseAndExtent(iq.startContainer,iq.startOffset,iq.endContainer,iq.endOffset); }if (typeof Im=="undefined")if (HTMLEditor.o11 && this.f)this._iframe.blur(); this.focusEditor(); };HTMLEditor.prototype.o4l= function (value){if (this.Or())return false; var iq=this.Iq(this.lq()); var O4l=iq.duplicate(); var l4l=iq.duplicate(); O4l.setEndPoint("StartToStart",iq); O4l.setEndPoint("EndToStart",iq); l4l.setEndPoint("StartToEnd",iq); l4l.setEndPoint("EndToEnd",iq); var i4l=O4l.parentElement(); var I4l=l4l.parentElement(); if (i4l.parentNode!=I4l.parentNode || HTMLEditor.o4m(i4l)){function O4m(ll){var lg=[]; while (ll!=null){lg.push(ll); ll=ll.parentNode; }lg.reverse(); return lg; } ; var l4m=O4m(i4l.parentNode); var i4m=O4m(I4l.parentNode); var i=0; while (l4m[i]==i4m[i])i++; i4l=l4m[i]; I4l=i4m[i]; if (HTMLEditor.o4m(i4l)){while (HTMLEditor.o4m(i4l)){i--; i4l=l4m[i]; }I4l=i4l; }}var ic=i4l; if (!ic)return false; if (!this.rtlState()){ do {var I4m=ic.style.marginLeft?parseInt(ic.style.marginLeft): 0; I4m=I4m+value; if (I4m<=0)ic.style.marginLeft=""; else ic.style.marginLeft=I4m+"px"; if (ic==I4l)break; ic=ic.nextSibling; }while (ic);}else { do {var I4m=ic.style.marginRight?parseInt(ic.style.marginRight): 0; I4m=I4m+value; if (I4m<=0)ic.style.marginRight=""; else ic.style.marginRight=I4m+"px"; if (ic==I4l)break; ic=ic.nextSibling; }while (ic);}return true; };HTMLEditor.o4m= function (ll){if (!ll)return false; if (!ll.tagName)return false; var name=ll.tagName.toUpperCase(); switch (name){case "TD":case "TR":case "TBODY":case "LI":return true; default:return false; }};HTMLEditor.prototype.O1h= function (i4k){var i16=this.I4k(); if (i16==null)return false; try {var I3v= {name: "none",value: "none" } ; switch (i4k.toLowerCase()){case "bold":I3v= {name: "font-weight",value: "bold" } ; break; case "italic":I3v= {name: "font-style",value: "italic" } ; break; case "underline":I3v= {name: "text-decoration",value: "underline" } ; break; case "strikethrough":I3v= {name: "text-decoration",value: "line-through" } ; break; case "superscript":I3v= {name: "vertical-align",value: "super" } ; break; case "subscript":I3v= {name: "vertical-align",value: "sub" } ; break; }var o1y=i16.start; var o4n=i16.end; var O4n=HTMLEditor.Iy(o1y,I3v.name).toString().toLowerCase(); var l4n=HTMLEditor.Iy(o4n,I3v.name).toString().toLowerCase(); if (I3v.name=="font-weight" && O4n=="700")O4n="bold"; if (I3v.name=="font-weight" && l4n=="700")l4n="bold"; if (/MSIE (5|6)/.test(navigator.userAgent) && i4k.toLowerCase()=="strikethrough" && (O4n=="underline" || l4n=="underline")){while (o1y && HTMLEditor.O1j(o1y.tagName)){if (o1y.style.textDecoration.indexOf("line-through")>=0){O4n=o1y.style.textDecoration; break; }o1y=o1y.parentNode; }while (o4n && HTMLEditor.O1j(o4n.tagName)){if (o4n.style.textDecoration.indexOf("line-through")>=0){l4n=o4n.style.textDecoration; break; }o4n=o4n.parentNode; }}var le=(O4n.indexOf(I3v.value)>=0) && (l4n.indexOf(I3v.value)>=0); if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var i4n=this.M[i]; if (i4n.name==I3v.name && i4n.value==I3v.value){le=!le; break; }}}return le; }catch (w){return false; }} ; HTMLEditor.l1l= function (fontSize,X,o1k){var le=fontSize.replace(/^(\d+)\.(\d+)px/i,"$1px"); if (!HTMLEditor.is_ie){if (le && le.length>0){var ie=le.toLowerCase().split(",")[0]; if (typeof o1k!="undefined"){var ll=document.getElementById(o1k); if (ll!=null){ll=ll.childNodes.item(1); var i; for (i=0; i<ll.options.length; i++){var l16=HTMLEditor.i1k(ll.options.item(i).value.toLowerCase().split(",")[0]); if (l16==ie)break; }if (i==ll.options.length){var span=X.i1.createElement("SPAN"); X.i1.body.appendChild(span); for (i=1; i<0144; i++){span.style.fontSize=i+"pt"; if (HTMLEditor.Iy(span,"font-size").replace(/^(\d+)\.(\d+)px/i,"$1px")==ie){ie=i+"pt"; break; }}span.parentNode.removeChild(span); }}}le=ie; }}return le; };HTMLEditor.prototype.o1j= function (i4k,o1k){var i16=this.I4k(); if (i16==null)return ""; try {if (i4k.toLowerCase()=="backcolor"){var ll=i16.start; while (ll){var I4n=HTMLEditor.Iy(ll,"background-color").toLowerCase(); if (I4n.length>0 && I4n!="transparent")return I4n; ll=ll.parentNode; }return "#FFFFFF"; }var I3v="none"; switch (i4k.toLowerCase()){case "forecolor":I3v="color"; break; case "fontname":I3v="font-family"; break; case "fontsize":I3v="font-size"; break; }var le; if ((I3v=="font-size" || I3v=="font-family") && this._FontNotSet){le=""; var par=i16.start; while (par!=null){if (I3v=="font-size"){if (par.style && par.style.fontSize && par.style.fontSize.length>0){le=par.style.fontSize; break; }}else {if (par.style && par.style.fontFamily && par.style.fontFamily.length>0){le=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 {le=HTMLEditor.Iy(i16.start,I3v).toLowerCase(); if (I3v=="font-size"){if (!HTMLEditor.is_ie){le=HTMLEditor.l1l(le,this,o1k); var par=i16.start; while (par!=null){if (par.style && par.style.fontSize && par.style.fontSize.length>0){le=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 i4n=this.M[i]; if (i4n.name==I3v){le=i4n.value; break; }}}return le; }catch (w){return ""; }} ; HTMLEditor.prototype.I4k= function (){if (this.Or())return null; try {var Oq=this.lq(); var iq=this.Iq(Oq); var o1y=null; var o4n=null; if (!HTMLEditor.is_ie){function o4o(par,I24){var le=null; while (le==null){if (par.nodeType==3){if (I24 && iq.startContainer!=iq.endContainer && iq.startOffset==par.length && par.nextSibling){le=o4o(par.nextSibling,I24); }else if (!I24 && iq.startContainer!=iq.endContainer && iq.endOffset==0 && par.previousSibling){le=o4o(par.previousSibling,I24); }else le=par; }else {if ((I24?par.firstChild:par.lastChild)==null)le=null; else le=o4o(I24?par.firstChild:par.lastChild,I24); }if (le==null){par=I24?par.nextSibling:par.previousSibling; if (par==null)return null; }else return le; }}o1y=o4o(iq.startContainer, true); if (o1y!=null && o1y.parentNode!=null)o1y=o1y.parentNode; if (o1y==null)o1y=iq.startContainer; o4n=o4o(iq.endContainer, false); if (o4n!=null && o4n.parentNode!=null)o4n=o4n.parentNode; if (o4n==null)o4n=iq.endContainer; }else {if (iq.text.length==0)o1y=o4n=this.or(iq); else {var I22=HTMLEditor.om+"_right_marker"; var o23=HTMLEditor.om+"_left_marker"; var O23=iq.duplicate(); var l23=iq.duplicate(); O23.setEndPoint("EndToStart",iq); l23.setEndPoint("StartToEnd",iq); l23.pasteHTML("<span id='"+I22+"'/>"); O23.pasteHTML("<span id='"+o23+"'/>"); var i1a=this.i1.getElementById(o23); var I1a=this.i1.getElementById(I22); o1y=i1a.parentNode; o4n=I1a.parentNode; i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); }}return {start:o1y,end:o4n } ; }catch (w){return null; }};HTMLEditor.prototype.O4o= function (l4o,iq){if (!HTMLEditor.is_ie){var Oq=this.lq(); if (typeof iq=="undefined"){try {iq=this.Iq(Oq); }catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); this.i17(Oq); return false; }}var i2e=iq.startContainer; var i4o=iq.startOffset; if (i2e.ownerDocument.id!="EditorDocument"){alert(this.Of("click-to-editor","Click to editing panel.")); return false; }if ((iq.startContainer.nodeType==1 && iq.startContainer.tagName.toUpperCase()=="TR") || (iq.endContainer.nodeType==1 && iq.endContainer.tagName.toUpperCase()=="TR")){var X=this ; setTimeout( function (){alert(X.Of("paste-fail","Not correct selection for inserting.")); } ,0); return false; } this.i17(Oq); iq.deleteContents(); try {iq=this.Iq(); }catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); this.i17(Oq); return false; }switch (i2e.nodeType){case 3:i2e=i2e.splitText(i4o); while (l4o.firstChild)i2e.parentNode.insertBefore(l4o.firstChild,i2e); iq.setStart(i2e,0); iq.setEnd(i2e,0); break; case 1:case 013:try { this.i17(Oq); if (i2e.childNodes.length>=i4o+1){i2e=i2e.childNodes.item(i4o); while (l4o.firstChild)i2e.parentNode.insertBefore(l4o.firstChild,i2e); var l17=this.i1.createTextNode(""); i2e.parentNode.insertBefore(l17,i2e); i2e=l17; }else {var l17=this.i1.createTextNode(""); if (HTMLEditor.canHaveChildren(i2e)){while (l4o.firstChild)i2e.appendChild(l4o.firstChild); i2e.appendChild(l17); }else {while (l4o.firstChild)i2e.parentNode.insertBefore(l4o.firstChild,i2e); i2e.parentNode.insertBefore(l17,i2e); }i2e=l17; }if (i2e.nodeType==1){var par=i2e.parentNode; var o17=par; var oh=0; for ( ; oh<par.childNodes.length; oh++)if (i2e==par.childNodes.item(oh))break; iq.setStart(par,oh); iq.setEnd(par,oh); }else {iq.setStart(i2e,0); iq.setEnd(i2e,0); }}catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); this.i17(Oq); return false; }break; }if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); return true; }else {return null; }} ; HTMLEditor.prototype.l11= function (html,iq){ this.focusEditor(); var Oq=this.lq(); if (typeof iq=="undefined"){iq=this.Iq(Oq); }if (HTMLEditor.is_ie){function l2t(O29,i21){return "\x3cspan class=\""+HTMLEditor.om+"_script\" style=\'display:none;visibility:hidden;\'>"+i21.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function o2u(O29,i21,I21,O2u){return i21.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var I4o="\x3cspan id=\""+HTMLEditor.om+"\">111\x3cspan>\x3c/span>"+html+"</span>"; var i11=HTMLEditor.I11(I4o); var o12=HTMLEditor.O12(I4o); if (!this.NoScript)I4o=I4o.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,l2t); else I4o=I4o.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); var X=this ; try {iq.pasteHTML(I4o); }catch (t){setTimeout( function (){alert(X.Of("paste-fail","Not correct selection for inserting.")); } ,0144); return false; }var I2x=this.i1.getElementById(HTMLEditor.om); I2x.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(I2x, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.om+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),o2u)+"<span>qqq</span>"; I2x.removeChild(I2x.firstChild); I2x.removeChild(I2x.lastChild); HTMLEditor.l12(I2x,i11); HTMLEditor.i12(I2x,o12); if (I2x.firstChild)I2x.removeChild(I2x.firstChild); if (I2x.firstChild)I2x.removeChild(I2x.firstChild); while (I2x.firstChild)I2x.parentNode.insertBefore(I2x.firstChild,I2x); I2x.parentNode.removeChild(I2x); delete I2x; return true; }else {var div=this.i1.createElement("div"); div.innerHTML=html; var i1u=div.getElementsByTagName("EMBED"); var I2z=[]; for (var i=0; i<i1u.length; i++)I2z.push(i1u[i]); for (var oh=0; oh<I2z.length; oh++){var embed=I2z[oh]; var img=document.createElement("IMG"); var l2y=embed.attributes; img.src=this.Q[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<l2y.length; ++i){var a=l2y.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 le=this.O4o(div,iq); return le; }} ; HTMLEditor.prototype.getDocument= function (){return this.i1; };HTMLEditor.prototype.getWindow= function (){if (HTMLEditor.is_Safari)return document.getElementById(this._hiddenContent+"_inner_iframe").contentWindow; else return this._iframe.contentWindow; };HTMLEditor.o4p=[]; HTMLEditor.O4p=null; HTMLEditor.l1e=null; HTMLEditor.l4p= function (){for (var i=0; i<HTMLEditor.o4p.length; i++){HTMLEditor.o4p[i](); }HTMLEditor.o4p=[]; };HTMLEditor.i4p= function (t){function I4p(){setTimeout( function (){HTMLEditor.l4p(); } ,0); HTMLEditor.l1e=null; if (HTMLEditor.O4p!=null){HTMLEditor.Ic(document.getElementById(HTMLEditor.O4p),"mousedown",HTMLEditor.i4p); HTMLEditor.i18(HTMLEditor.O4p.substr(0,HTMLEditor.O4p.length-("__disabling").length)); }HTMLEditor.O4p=null; }if (HTMLEditor.l1e){try {if (HTMLEditor.l1e.name!="OboutEditorPreview"){I4p(); }else {setTimeout( function (){try {HTMLEditor.l1e.focus(); }catch (t){}} ,0); if (typeof t!=undefined)HTMLEditor._stopEvent(t); return false; }}catch (t){I4p(); }}else I4p(); return true; };HTMLEditor.o4q= function (){if (!HTMLEditor.i4p())setTimeout(HTMLEditor.o4q,01750); else window.focus(); };HTMLEditor.prototype.O4q= function (l4q){var X=this ; if (HTMLEditor.l1e)return; try {HTMLEditor.l1e=window.open("","OboutEditorPreview","toolbar=0,status=1,scrollbars=1,resizable=1,width=600,height=400"); }catch (t){HTMLEditor.l1e=null; return; }if (!HTMLEditor.l1e)return; HTMLEditor.O4p=HTMLEditor.I14(X.mainDivId); if (HTMLEditor.O4p!=null)HTMLEditor.ik(document.getElementById(HTMLEditor.O4p),"mousedown",HTMLEditor.i4p); function i4q(){try {if (!HTMLEditor.l1e.document)setTimeout(i4q,0144); HTMLEditor.l1e.focus(); }catch (t){HTMLEditor.l1e.close(); HTMLEditor.l1e=null; if (HTMLEditor.O4p!=null){HTMLEditor.Ic(document.getElementById(HTMLEditor.O4p),"mousedown",HTMLEditor.i4p); HTMLEditor.i18(HTMLEditor.O4p.substr(0,HTMLEditor.O4p.length-("__disabling").length)); }HTMLEditor.O4p=null; X.O4q(l4q); }Ox=HTMLEditor.l1e.document; Ox.open(); var html=new l29(); var i28=l4q; var I28= false; function o29(O29,i21,I21){i28=I21; I28= true; }l4q.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,o29); l4q=i28; 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 I4q=new RegExp("<title>","gi"); if (X.D==null || !I4q.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 i29=0; i29<X._addCssFiles.length; i29++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[i29]+"\" 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(l4q); html.write("</body>"); html.write("</html>"); Ox.write(html.toString()); Ox.close(); setTimeout(HTMLEditor.o4q,0454); HTMLEditor.o4p.push( function (){X.focusEditor(); } ); }setTimeout(i4q,0); };HTMLEditor.prototype.preview= function (){var X=this ; if (HTMLEditor.l1e)return; X.getContentWait( function (l4q){X.O4q(l4q); } ); };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 (o4r,O4r){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.Iq(this.lq()); var html=""; var Oq=this.lq(); var iq=this.Iq(Oq); if (HTMLEditor.is_ie && Oq.type.toLowerCase()=="control"){ this.i10(); html=iq.item(0).outerHTML; return this.InsertHTML(o4r+html+O4r); }html=this.O1b(); if (html.length==0){return false; }var i1b=this.I1b(); if (i1b.length<1)return false; this.i10(); var i48=this.i1.createElement("span"); var I48=this.i1.createElement("span"); var l4r=i1b[0].parentNode; var i4r=i1b[i1b.length-1].parentNode; l4r.insertBefore(i48,i1b[0]); if (i1b[i1b.length-1].nextSibling)i4r.insertBefore(I48,i1b[i1b.length-1].nextSibling); else i4r.appendChild(I48); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var lk=this.i1.createElement("SPAN"); try {function l2t(O29,i21){return "\x3cspan class=\""+HTMLEditor.om+"_script\" style=\'display:none;visibility:hidden;\'>"+i21.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function o2u(O29,i21,I21,O2u){return i21.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var I4o=o4r+(""+i1b[i].data+"").replace(/^\s/,"&nbsp;")+O4r; var i11; if (HTMLEditor.is_ie){i11=HTMLEditor.I11(I4o); if (!this.NoScript)I4o=I4o.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,l2t); else I4o=I4o.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); }lk.innerHTML="!!!<span></span>"+I4o; lk.removeChild(lk.firstChild); lk.removeChild(lk.firstChild); if (HTMLEditor.is_ie){lk.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(lk, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.om+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),o2u)+"<span>qqq</span>"; lk.removeChild(lk.firstChild); lk.removeChild(lk.lastChild); HTMLEditor.l12(lk,i11); }while (lk.firstChild)par.insertBefore(lk.firstChild,i1b[i]); par.removeChild(i1b[i]); }catch (t){return false; }}if (!HTMLEditor.is_ie){i1b=[]; var i41= false; function O4k(l4k,Im){while (l4k){if (l4k==I48){i41= true; return; }if (l4k.nodeType==3){while (l4k.nextSibling && l4k.nextSibling.nodeType==3){l4k.data=""+l4k.data+""+l4k.nextSibling.data+""; l4k.parentNode.removeChild(l4k.nextSibling); }if (HTMLEditor.I12(""+l4k.data+"").length>0)i1b.push(l4k); }else O4k(l4k.firstChild, false); if (i41)return; var o37=l4k.parentNode; if (Im)while (l4k.nextSibling==null){l4k=l4k.parentNode; }l4k=l4k.nextSibling; }}O4k(i48, true); iq=this.i1.createRange(); iq.setStart(i1b[0],0); iq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.i17(Oq); if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); }else {Oq=this.lq(); var o3l=this.Iq(Oq); var O3l=this.Iq(Oq); try {o3l.moveToElementText(i48); O3l.moveToElementText(I48); o3l.setEndPoint("EndToEnd",O3l); o3l.select(); }catch (t){}}l4r.removeChild(i48); i4r.removeChild(I48); this.l14(); return true; } ; HTMLEditor.prototype.InsertHTML= function (html){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.Iq(this.lq()); var I4r= false; var div=this.i1.createElement("div"); var i11; if (HTMLEditor.is_ie){i11=HTMLEditor.I11(html); }div.innerHTML=html; for (var i=0; i<div.childNodes.length; i++){var ll=div.childNodes.item(i); if (ll.nodeType==1 && !HTMLEditor.o33(ll))I4r= true; } this.i10(); if (HTMLEditor.is_ie){var Oq=this.lq(); var iq=this.Iq(Oq); if (Oq.type.toLowerCase()=="control"){var i16=iq.item(0); var parent=i16.parentNode; iq.remove(0); parent.removeChild(i16); }}if (I4r){var i1x=this.I1x(); if (!i1x){ this.I1e( false); return false; }var parent=i1x.parentNode; if (HTMLEditor.is_ie){HTMLEditor.l12(div,i11); }while (div.firstChild)parent.insertBefore(div.firstChild,i1x); parent.removeChild(i1x); this.l14(); return true; }else {var le=this.l11(html); if (!le){ this.I1e( false); } this.l14(); return le; }};HTMLEditor.prototype.O1b= function (){var Oq=this.lq(); var iq=this.Iq(Oq); var o4s=null; if (HTMLEditor.is_ie){o4s=iq.htmlText; }else {if (HTMLEditor.is_Safari && (Oq.type=="Caret" || Oq.type=="None"))o4s=""; else {if (HTMLEditor.is_Safari){if (iq.cloneContents()==null)return ""; }o4s=HTMLEditor.getHTML(iq.cloneContents(), false); }}return o4s; } ; HTMLEditor.o26= function (O1p,Ox,O4s,l4s,i4s){if (HTMLEditor.is_Safari)return; var I4s=0; var o4t=O1p.childNodes.length; if (typeof O4s!="undefined" && O4s!=null)I4s=O4s; if (typeof l4s!="undefined" && l4s!=null)o4t=l4s; for (var i=I4s; i<o4t; i++){var o36=O1p.childNodes.item(i);switch (o36.nodeType){case 1:if (o36.childNodes.length==0 && HTMLEditor.O1j(o36.tagName) && o36.tagName.toUpperCase()!="A" && !(o36.className.length>0 || (o36.getAttribute("class") && o36.getAttribute("class").length>0)) && !HTMLEditor.O3a(o36)){O1p.removeChild(o36); i--; o4t--; continue; }if (o36.tagName.toUpperCase()=="SPAN"){while (o36.childNodes.length==1 && o36.firstChild.nodeType==1){if (o36.firstChild.tagName.toUpperCase()=="SPAN" && !HTMLEditor.O3a(o36.firstChild)){var l2y=HTMLEditor.o3c(o36.firstChild,[]); var O4t=HTMLEditor.l4t(o36.firstChild); var i4t=o36.firstChild; var I4t=i4t.childNodes; while (i4t.firstChild!=null){o36.insertBefore(i4t.firstChild,i4t); }for (var oh=0; oh<O4t.length; oh++){if (O4t[oh][1]){try {if (o36.style[O4t[oh][0]]){if (O4t[oh][0].toLowerCase().indexOf("color")>=0){o36.style[O4t[oh][0]]=O4t[oh][1]; }else {try {var I18=o36.style[O4t[oh][0]]; o36.style[O4t[oh][0]]=o36.style[O4t[oh][0]]+" "+O4t[oh][1]; if (I18==o36.style[O4t[oh][0]]){o36.style[O4t[oh][0]]=O4t[oh][1]; }}catch (t){o36.style[O4t[oh][0]]=O4t[oh][1]; }}}else o36.style[O4t[oh][0]]=O4t[oh][1]; }catch (o4u){}}}for (var oh=0; oh<l2y.length; oh++){if (l2y[oh][1])o36.setAttribute(l2y[oh][0],l2y[oh][1]); }o36.removeChild(i4t); continue; }else if (o36.firstChild.tagName.toUpperCase()=="SPAN" && HTMLEditor.O3a(o36.firstChild)){var i28=o36.firstChild; o36.parentNode.insertBefore(o36.firstChild,o36); o36.parentNode.removeChild(o36); o36=i28; }break; }var O4u=[]; var l4u=o36.nextSibling; while (!HTMLEditor.O3a(o36) && l4u && i+1<o4t && (l4u.nodeType==3 || (l4u.nodeType==1 && (l4u.tagName.toUpperCase()=="SPAN" || (l4u.tagName.toUpperCase()=="BR") && typeof i4s=="undefined") && !HTMLEditor.O3a(l4u)))){if (l4u.nodeType==3){if ((""+l4u.data+"").length==0){l4u.parentNode.removeChild(l4u); l4u=o36.nextSibling; o4t--; }else {break; }}else {if (l4u.tagName.toUpperCase()=="BR"){O4u.push(l4u); l4u=l4u.nextSibling; }else {var l2y=HTMLEditor.o3c(o36,[],l4u); var O4t=HTMLEditor.l4t(o36,l4u); if (l2y.length==0 && O4t.length==0 && o36.className==l4u.className){var l37=O4u.length; for (var oh=0; oh<l37; oh++){o36.appendChild(O4u[oh]); o4t--; }O4u=[]; while (l4u.firstChild)o36.appendChild(l4u.firstChild); l4u.parentNode.removeChild(l4u); l4u=o36.nextSibling; o4t--; }else break; }}}if (!HTMLEditor.O3a(o36) && o36.className.length==0){var l2y=HTMLEditor.o3c(o36,[]); var O4t=HTMLEditor.l4t(o36); if (l2y.length==0 && O4t.length==0){i--; o4t--; while (o36.firstChild){o36.parentNode.insertBefore(o36.firstChild,o36); o4t++; }o36.parentNode.removeChild(o36); continue; }}}if (o36.parentNode!=null)if (o36.childNodes.length==0 && HTMLEditor.O1j(o36.tagName) && o36.tagName.toUpperCase()!="A" && !(o36.className.length>0 || (o36.getAttribute("class") && o36.getAttribute("class").length>0)) && !HTMLEditor.O3a(o36)){O1p.removeChild(o36); i--; o4t--; continue; }else HTMLEditor.o26(o36,Ox); break; }}};HTMLEditor.i4u= function (O1p,I16){var count=0; if (O1p.attributes)for (var i=0; i<O1p.attributes.length; i++){var I2d=O1p.attributes[i]; if (I2d.name.toUpperCase()=="STYLE")continue; if (I2d.name.toUpperCase()=="CLASS" && I16)continue; if (I2d.specified)count++; }return count; };HTMLEditor.o3c= function (O1p,I16,I4u){var l1v=[]; var parent=O1p.parentNode; if (typeof I4u!="undefined")parent=I4u; if (!parent || !parent.tagName || !HTMLEditor.O1j(parent.tagName))parent=null; if (O1p.attributes)for (var i=0; i<O1p.attributes.length; i++){var I2d=O1p.attributes[i]; var o4v= false; for (var oh=0; oh<I16.length; oh++)if (I2d.name.toUpperCase()==I16[oh].toUpperCase()){o4v= true; break; }if (o4v)continue; if (I2d.name.toUpperCase()=="STYLE")continue; if (I2d.name.toUpperCase().substr(0,4)=="_MOZ")continue; if (I2d.specified)if (parent && parent.attributes && parent.attributes[I2d.name]){var O4v=parent.attributes[I2d.name]; if (O4v){if (I2d.name!=O4v.name || I2d.value!=O4v.value){l1v.push([I2d.name,I2d.value]); }}}else {if (I2d.name.toUpperCase()=="CLASS" && I2d.value=="")continue; l1v.push([I2d.name,I2d.value]); }}return l1v; };HTMLEditor.l4t= function (O1p,I4u){var l1v=[]; var parent=O1p.parentNode; if (typeof I4u!="undefined")parent=I4u; if (!parent || !parent.tagName || !HTMLEditor.O1j(parent.tagName))parent=null; function l4v(i,i4v){i4v=""+i4v; if (i.toLowerCase()=="textdecoration"){var I4v=i4v.split(" "); for (var oh=0; oh<I4v.length; oh++){l1v.push([i,HTMLEditor.I12(I4v[oh])]); }}else l1v.push([i,i4v]); }for (var i in O1p.style){if (i && typeof i=="string" && i!="accelerator"){var style=O1p.style[i]; if (style && typeof style=="string" && style!="accelerator"){if (parent && parent.style){var o4w=parent.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=o4w){l4v(i,style); }}else {if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length"){l4v(i,style); }}}}}if (typeof I4u!="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 o4w=O1p.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=o4w){l4v(i,style); }}}}return l1v; };HTMLEditor.O4w= function (ll){var name=ll.tagName.toUpperCase(); switch (name){case "TD":case "LI":case "FIELDSET":case "FORM":return true; case "DIV":if (ll.className==HTMLEditor.om)return false; else return true; default:return false; }};HTMLEditor.o33= function (ll,Im){if (ll && ll.style && ll.style.display && ll.style.display.toLowerCase()=="inline")return true; var name=ll.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 Im!="undefined"){var par=ll.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.l4w=[["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.i4w=["DIV","P","TD","TR","TABLE","TBODY","LI","OL","UL","FORM","INPUT"]; HTMLEditor.O2g= function (O1p){for (var i=0; i<HTMLEditor.i4w.length; i++)if (HTMLEditor.i4w[i].toUpperCase()==O1p.tagName.toUpperCase()){return true; }if (HTMLEditor.is_ie && O1p.scopeName.toUpperCase()!="HTML")return true; return false; };HTMLEditor.I1i= function (I4w){if (typeof I4w!="number"){return I4w; }var i1g=I4w&0377; var l2z=(I4w>>8)&0377; var b=(I4w>>020)&0377; return "rgb("+i1g+","+l2z+","+b+")"; } ; HTMLEditor.o4x= function (I4w){function i2y(I2y){return (I2y<020)?("0"+I2y.toString(020)):I2y.toString(020); } ; if (typeof I4w=="number"){var i1g=I4w&0377; var l2z=(I4w>>8)&0377; var b=(I4w>>020)&0377; return "#"+i2y(i1g)+i2y(l2z)+i2y(b); }if (I4w.substr(0,3)=="rgb"){var o2j=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/; if (I4w.match(o2j)){var i1g=parseInt(RegExp.$1); var l2z=parseInt(RegExp.$2); var b=parseInt(RegExp.$3); return "#"+i2y(i1g)+i2y(l2z)+i2y(b); }return null; }if (I4w.substr(0,1)=="#"){return I4w; }return null; } ; HTMLEditor.lw= function (window,O4x){if (!/MSIE (5|6|7|8)/.test(navigator.userAgent))return; if ((/MSIE (7|8)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat")return; var l4x=/(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i,i4x,Ox=window.document,I4x=[],o4y= {onhover:{O4y: "onmouseover",l4y: "onmouseout" } ,onactive:{O4y: "onmousedown",l4y: "onmouseup" }} ; var i4y=(typeof O4x=="undefined")?Ox:O4x; function parseStylesheets(){window.attachEvent("onunload",I4y); var I29=Ox.styleSheets,o2a=I29.length; for (var i=0; i<o2a; i++)l2a(I29[i]); }function l2a(i2a){if (i2a.imports){try {var imports=i2a.imports,o2a=imports.length; for (var i=0; i<o2a; i++)l2a(i2a.imports[i]); }catch (o4z){}}try {var rules=(i4x=i2a).rules,o2a=rules.length; for (var oh=0; oh<o2a; oh++)I2a(rules[oh]); }catch (o4z){}}function I2a(rule){var select=rule.selectorText,style=rule.style.cssText; if (!l4x.test(select) || !style)return; var O4z=select.replace(/[^:]+:([a-z-]+).*/i,"on$1"); var l4z=select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi,".$2"+O4z); var className=(/\.([a-z0-9_-]*on(hover|active))/i).exec(l4z)[1]; var i4z=select.replace(/:(hover|active).*$/,""); var elements=I4z(i4z); if (elements.length==0)return; i4x.addRule(l4z,style); for (var i=0; i<elements.length; i++)new o50(elements[i],className,o4y[O4z]); }function o50(i2e,className,O50){if (!i2e.hovers)i2e.hovers= {} ; if (i2e.hovers[className])return; i2e.hovers[className]= true; l50(i2e,O50.O4y, function (){i2e.className+=" "+className; } ); l50(i2e,O50.l4y, function (){i2e.className=i2e.className.replace(new RegExp("\\s+"+className,"g"),""); } ); }function l50(i2e,type,i50){i2e.attachEvent(type,i50); I4x[I4x.length]= {i2e:i2e,type:type,i50:i50 } ; }function I4y(){for (var t,i=0; i<I4x.length; i++){t=I4x[i]; t.i2e.detachEvent(t.type,t.i50); }}function I4z(rule){var I50,o51=[i4y]; I50=rule.split(" "); for (var i=0; i<I50.length; i++){o51=O51(I50[i],o51); }return o51; }function O51(select,elements){var l1v,i2e,o51=[]; var l51=(/#([a-z0-9_-]+)/i).exec(select); if (l51)return [Ox.getElementById(l51[1])]; var i51=(/\.([a-z0-9_-]+)/i).exec(select); var tagName=select.replace(/(\.|#|:)[a-z0-9_-]+/i,""); var I51=i51?new RegExp("\\b"+i51[1]+"\\b"): false; for (var i=0; i<elements.length; i++){l1v=tagName?elements[i].all.tags(tagName):elements[i].all; for (var oh=0; oh<l1v.length; oh++){i2e=l1v[oh]; if (I51 && !I51.test(i2e.className))continue; o51[o51.length]=i2e; }}return o51; }parseStylesheets(); };HTMLEditor.prototype.parseInt=parseInt; HTMLEditor.prototype.isNaN=isNaN; HTMLEditor.prototype.Object=Object; HTMLEditor.prototype.Math=Math; HTMLEditor.o52= function (s){return new String(s+"rnd="+Math.random()).replace(".",""); };function l29(O52){ this.O52=(typeof O52!="undefined" && O52); this.text=[]; this.write= function (ih){if (!this.O52 || (this.text.length==0 && ih!="\n") || (this.text.length>0 && (this.text[this.text.length-1]!="\n" || ih!="\n")))this.text[this.text.length]=ih; };this.writeln= function (ih){ this.text[this.text.length]=ih+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}HTMLEditor.prototype.l52= function (X,i52,o1w,I52,o53,O53,l53){ this.X=X; this.o53=o53; this.O53=O53; 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.l10=null; if (HTMLEditor.is_ie && (X.lq().type=="Text" || X.lq().type=="None"))try {X.l10=X.Iq(X.lq()).duplicate(); }catch (t){}if (HTMLEditor.is_Safari){var i53=X.lq(); var I53=X.Iq(i53); X.l10=I53.cloneRange(); } this.iframe=this.openPopup(i52,o1w,I52,O53,l53); };HTMLEditor.prototype.l52.prototype.middle= function (){var o54=this ; var X=this.X; var popup=this.iframe; var O54; var o9=parseInt(popup.clientWidth); var O9=parseInt(popup.clientHeight); if (o9==0)o9=parseInt(popup.offsetWidth); if (O9==0)O9=parseInt(popup.offsetHeight); var l2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientWidth:X.o1.document.documentElement.clientWidth; var i2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientHeight:X.o1.document.documentElement.clientHeight; var l54=i2r/2-O9/2+i54(X.o1.document); if (l54<=0)l54=024; popup.style.top=l54+"px"; popup.style.left=l2r/2-o9/2+_GetScrollLeft(X.o1.document)+"px"; };HTMLEditor.prototype.clearPopups= function (I54){var X=this ; var le= false; while (X.I1!=null && X.I1.length>0){var o55=X.I1[X.I1.length-1]; if (typeof I54!="undefined"){if (typeof o55.o53=="function")o55.o53(); o55.O55(null);}else o55.l55(); le= true; }function i55(){if (X.I55 && X.I55.length>0)while (X.I55.length>0){var ll=X.I55.pop(); var popup=ll[1]; popup.parentNode.removeChild(popup); }}if (typeof I54=="undefined")setTimeout(i55,le?01750: 0); else i55(); HTMLEditor.l1e=null; if (o56!=null){o56.parentNode.removeChild(o56); o56=null; }if (O56!=null){O56.parentNode.removeChild(O56); O56=null; }return le; };HTMLEditor.prototype.l52.prototype.openPopup= function (i52,o1w,I52,O53,l53){var o54=this ; var X=this.X; var popup; function l56(event){if (X.I1)if (o54.number==X.I1.length){if (o54.iframe.contentWindow.document.body.childNodes.item(0).childNodes.length>1)if (!o54.iframe.contentWindow.document.getElementById("closePopup").disabled){o54.O55(o54.o53); }}if (event)HTMLEditor._stopEvent(event); return false; } ; var i56; if (HTMLEditor.is_Safari)i56=o1w+"_safari"; else i56=o1w; if (!X.I55)X.I55=[]; if (typeof O53=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.ok)){for (var i=0; i<X.I55.length; i++){if (X.I55[i][0]==i56){var Ox; popup=X.I55[i][1]; popup.style.display=""; popup.style.zIndex=""+(045070+X.I1.length)+""; Ox=popup.contentWindow.document; Ox.getElementById("title").innerHTML=i52; HTMLEditor.ik(Ox.getElementById("closePopup"),"click",l56); o54.l55=l56; try {O53(popup); }catch (t){alert("Exception in open Popup("+i52+"): "+t.message); } ; return popup; }}}popup=X.A.ownerDocument.createElement("iframe"); if (typeof O53=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.ok)){X.I55.push([i56,popup]); }if (HTMLEditor.is_ie)popup.src="javascript:false;"; popup.style.visibility="hidden"; if (HTMLEditor.is_Safari)popup.className=i56; else popup.className=i56; 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.ok)popup.name=X._hiddenContent+"_popup_"+i56; var O54; var o9=0144; var O9=0144; var I56=X.A; var ll=X._textArea.parentNode.parentNode; if (!X._InsideOboutWindow)while (ll!=X.A){if (HTMLEditor.Iy(ll,"position").toLowerCase()=="absolute"){I56=X._textArea.parentNode.parentNode; break; }ll=ll.parentNode; }var I2r=HTMLEditor.o2s(I56, false); var O1y=I2r.O1y,_top=I2r._top; var l2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientWidth:X.o1.document.documentElement.clientWidth; var i2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientHeight:X.o1.document.documentElement.clientHeight; var o57=i2r/2-O9/2+i54(X.o1.document); var O57=l2r/2-o9/2+_GetScrollLeft(X.o1.document); popup.style.top=(o57-_top)+"px"; popup.style.left=(O57-O1y)+"px"; I56.appendChild(popup); function l2b(){var Ox=popup.contentWindow.document; if (!Ox){if (!HTMLEditor.is_ie){window.setTimeout(l2b,012); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var O54; var o9=parseInt(popup.clientWidth); var O9=parseInt(popup.clientHeight); if (o9==0)o9=parseInt(popup.offsetWidth); if (O9==0)O9=parseInt(popup.offsetHeight); var l2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientWidth:X.o1.document.documentElement.clientWidth; var i2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientHeight:X.o1.document.documentElement.clientHeight; var o57=i2r/2-O9/2+i54(X.o1.document); var O57=l2r/2-o9/2+_GetScrollLeft(X.o1.document); popup.style.top=(o57-_top)+"px"; popup.style.left=(O57-O1y)+"px"; Ox.open(); var html=new l29(); html.write("<html style='height:100%'>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.Q[014]))?X.i7: "")+X.Q[014]+"\" media=\"all\" />"); html.write("</head>"); html.write("<body style='height:100%'>"); html.write("<div id='mainFrame' class='frame' style='height:100%'>"); html.write("<table id='header' class='header' style='width:100%;margin:0px;padding:0px;' border=0><tr><td nowrap align=left style='padding-left:4px;'><span id='title'>title</span></td><td align=right style='width:100%'><img id='closePopup' src='"+X.Q[7]+"' alt='' /></td></tr></table>"); html.write("</div>"); html.write("</body>"); html.write("\x3ca href=\""+X.i7+"\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); Ox.write(html.toString()); Ox.close(); popup.style.visibility="visible"; function Iw(){var l57; var i57; var I57; var o58; try {l57=Ox.getElementById("header"); i57=Ox.getElementById("closePopup"); I57=Ox.getElementById("title"); o58=Ox.getElementById("mainFrame"); l57.className="header"; o58.className="frame"; I57.innerHTML=i52; HTMLEditor.ik(i57,"click",l56); o54.l55=l56; HTMLEditor.ik(l57,"mousedown", function (event){if (event.srcElement && event.srcElement.tagName.toUpperCase()=="IMG")return false; var le=o54.O58(HTMLEditor.is_ie?popup.contentWindow.event:event); return le; } ); if (HTMLEditor.is_Safari){Ox.body.addEventListener("mouseup",l58, false); }function i58(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){Ox.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {Ox.onmousedown=i58; }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 I52=="function"){try {I52(popup); }catch (t){alert("Exception in open Popup("+i52+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var I58=Ox.getElementsByTagName("input"); for (var i=0; i<I58.length; i++){I58[i].setAttribute("autocomplete","off"); }}}catch (t){try {HTMLEditor.Ic(i57,"click",l56); }catch (t){}setTimeout(Iw,012); return false; }}setTimeout(Iw,012); } ; setTimeout(l2b,024); return popup; } ; HTMLEditor.prototype.l52.prototype.O55= function (o53){var popup=this ; var X=this.X; var _iframe=this.iframe; var l1x=this.l1x; function o59(I2c,O1p){var lk; try {lk=I2c.removeChild(O1p); delete lk; }catch (t){}}if (X.I1==null)return false; var O59=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.l10){if (HTMLEditor.is_Safari){X.I17(X.lq(),X.l10); X.l10=null; }if (HTMLEditor.is_ie){try {X.l10.select(); }catch (t){}}X.l10=null; }try {X.focusEditor(); }catch (t){}}if (typeof o53=="function"){try {o53(); }catch (t){} ; }try {HTMLEditor.Ic(_iframe.contentWindow.document.getElementById("closePopup"),"click",popup.l55); _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.O53!="function" || (HTMLEditor.is_Safari && !HTMLEditor.ok)){o59(_iframe.parentNode,_iframe); delete popup; }}catch (t){}} ,012); return false; };var l59=null; var O56=null,o56=null; var i59=0; var I59=0; function o5a(){if (document.all && document.body.attachEvent){if (document.body.setCapture)document.body.setCapture(); document.body.attachEvent("onmousemove",O5a); document.body.attachEvent("onmouseup",l58); }else if (document.addEventListener){document.addEventListener("mousemove",O5a, false); document.addEventListener("mouseup",l58, false); }l5a(l59); }function l58(){if (document.all && document.body.detachEvent){document.body.detachEvent("onmousemove",O5a); document.body.detachEvent("onmouseup",l58); if (document.body.releaseCapture)document.body.releaseCapture(); }else if (document.removeEventListener){document.removeEventListener("mousemove",O5a, false); document.removeEventListener("mouseup",l58, false); }i5a(l59); l59=null; }function O5a(t){try {I5a(t); HTMLEditor._stopEvent(t); i59=t.clientX; I59=t.clientY; }catch (w){l58(); }return false; }function l5a(o5b){if (o56!=null && o5b.iframe.parentNode!=o56.parentNode){o56.parentNode.removeChild(o56); o56=null; }if (O56!=null && o5b.iframe.parentNode!=O56.parentNode){O56.parentNode.removeChild(O56); O56=null; }if (o56==null){o56=document.createElement("div"); o56.style.display=""; o56.style.position="absolute";o56.style.margin="0px";o56.style.padding="0px";o56.style.top="0px"; o56.style.left="0px"; var O54=parseInt(document.body.clientHeight); if (O54<=0)O54=document.body.offsetHeight; o56.style.height=O54+"px"; O54=parseInt(document.body.clientWidth); if (O54<=0)O54=document.body.offsetWidth; o56.style.width=O54+"px"; o56.style.zIndex="20000"; o5b.iframe.parentNode.appendChild(o56); }if (O56==null){O56=document.createElement("SPAN"); O56.className="MoveSpan"; O56.style.position="absolute"; O56.style.zIndex=0141520; o5b.iframe.parentNode.appendChild(O56); }O56.style.visibility="visible"; o56.style.visibility="visible"; var O5b=parseInt(o5b.iframe.style.borderTopWidth)*2; O56.style.top=o5b.iframe.style.top; O56.style.left=o5b.iframe.style.left; var o9=o5b.iframe.clientWidth; var O9=o5b.iframe.clientHeight; if (o9==0)o9=o5b.iframe.offsetWidth; if (O9==0)O9=o5b.iframe.offsetHeight; O56.style.width=parseInt(o9)+((HTMLEditor.is_ie)?(parseInt(O5b)): (0-parseInt(O5b)))+"px"; O56.style.height=parseInt(O9)+((HTMLEditor.is_ie)?(parseInt(O5b)): (0-parseInt(O5b)))+"px"; O56.style.cursor="move"; o56.style.cursor="move"; }function i5a(o5b){try {o5b.iframe.style.top=O56.style.top; o5b.iframe.style.left=O56.style.left; O56.style.visibility="hidden"; o56.style.visibility="hidden"; }catch (t){}}function I5a(t){var l5b=l59.i5b; var I5b=l59.o5c; var ll=O56; var left=0; var top=0; if (document.all){left=t.clientX*1+_GetScrollLeft(document)-l5b; top=t.clientY*1+i54(document)-I5b; }else {left=t.pageX*1-l5b; top=t.pageY*1-I5b; }if (left<0){left=0; }if (top<0){top=0; }ll.style.left=(left-l59.O1y)+"px"; ll.style.top=(top-l59._top)+"px"; if (HTMLEditor.is_Safari){l59.iframe.style.top=O56.style.top; l59.iframe.style.left=O56.style.left; }}HTMLEditor.prototype.l52.prototype.O58= function (t){if (!HTMLEditor.is_ie && t.target.tagName.toUpperCase()=="IMG" && t.target.id=="closePopup")return true; l59=this ; this.i5b=(t.offsetX==null)?t.layerX:t.offsetX; this.o5c=(t.offsetY==null)?t.layerY:t.offsetY; if (HTMLEditor.is_ie){var ll=t.srcElement; while (ll && ll.tagName.toUpperCase()!="BODY"){ this.i5b+=parseInt(ll.offsetLeft); this.o5c+=parseInt(ll.offsetTop); ll=ll.offsetParent; if (ll){if (ll.clientLeft)this.i5b+=parseInt(ll.clientLeft); if (ll.clientTop)this.o5c+=parseInt(ll.clientTop); }}var O5b=parseInt(this.iframe.style.borderWidth)*2; this.i5b+=O5b; this.o5c+=O5b; }i59=t.clientX; I59=t.clientY; var I2r=HTMLEditor.o2s(this.iframe.parentNode, false); this._top=I2r._top; this.O1y=I2r.O1y; HTMLEditor._stopEvent(t); o5a(); return false; } ; HTMLEditor.o2s= function (I56,Im){var position=HTMLEditor.O5c(I56); if (HTMLEditor.is_ie && !Im){var borderTopWidth; var borderLeftWidth; if ((/MSIE (7)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat"){borderTopWidth=2; borderLeftWidth=2; }else {var l5c=(document.compatMode=="BackCompat")?document.body:document.documentElement; var top=HTMLEditor.Iy(l5c,"border-top-width").toUpperCase(); borderTopWidth=parseInt(HTMLEditor.Iy(l5c,"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.Iy(l5c,"border-left-width").toUpperCase(); borderLeftWidth=parseInt(HTMLEditor.Iy(l5c,"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 l5c.border!="undefined" && l5c.border!=null && !isNaN(parseInt(l5c.border)))borderLeftWidth=borderTopWidth=parseInt(l5c.border); }position.y-=borderTopWidth; position.x-=borderLeftWidth; }else if (HTMLEditor.o11){position.y--; position.x--; }return {_top:position.y,O1y:position.x } ; };HTMLEditor.getOffset= function (O1p){var position=HTMLEditor.o2s(O1p, false); return {y:position._top,x:position.O1y } ; };function i54(i5c){if (i5c.documentElement && i5c.documentElement.scrollTop){return i5c.documentElement.scrollTop; }else {return i5c.body.scrollTop; }}function obout_scrollElement(ic){try {var anchor; if (document.all)anchor=document.createElement("td"); else anchor=document.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; if (!document.all)ic.parentNode.insertBefore(anchor,ic); else {var I5c=document.createElement("td"); I5c.style.width="0px"; I5c.style.height="20px"; ic.parentNode.insertBefore(I5c,ic); I5c.focus(); ic.parentNode.removeChild(I5c); var l31=ic.nextSibling; if (l31==null)ic.parentNode.appendChild(anchor); else ic.parentNode.insertBefore(anchor,l31); }anchor.focus(); if (!document.all)anchor.blur(); ic.parentNode.removeChild(anchor); }catch (t){}}function _GetScrollDiffer(ic,Im){if (document.all && document.compatMode!="BackCompat")return true; do {ic=ic.parentNode; if (ic.clientHeight>0 && ic.scrollHeight && ic.scrollHeight>0)if (ic.scrollHeight>ic.clientHeight){return true; }}while (ic && ic.tagName.toUpperCase()!="BODY");return false; }function _GetScrollLeft(i5c){if (i5c.documentElement && i5c.documentElement.scrollLeft){return i5c.documentElement.scrollLeft; }else {return i5c.body.scrollLeft; }}HTMLEditor.prototype._Mozilla= function (o5d){if (!HTMLEditor.is_ie && !o5d && HTMLEditor.I12(this.O1b()).length>0){var o37=this.i1.body.cloneNode( true); var Oq=this.lq(); var i1b=this.Iq(Oq); this.i17(Oq); var ll=i1b.startContainer; var O5d=i1b.startOffset; var l5d=[]; while (ll.nodeType==3 || ll.tagName.toUpperCase()!="BODY"){var l37=0; while (ll.previousSibling){l37++; ll=ll.previousSibling; }l5d.push(l37); ll=ll.parentNode; }ll=i1b.endContainer; var i5d=i1b.endOffset; var I5d=[]; while (ll.nodeType==3 || ll.tagName.toUpperCase()!="BODY"){var l37=0; while (ll.previousSibling){l37++; ll=ll.previousSibling; }I5d.push(l37); ll=ll.parentNode; } this.i1.body.innerHTML=""; while (o37.firstChild){ this.i1.body.appendChild(o37.firstChild); }var o5e=this.i1.body; for (var i=l5d.length-1; i>=0; i--){o5e=o5e.childNodes.item(l5d[i]); }var O5e=this.i1.body; for (var i=I5d.length-1; i>=0; i--){O5e=O5e.childNodes.item(I5d[i]); }var X=this ; this.o1.setTimeout( function (){Oq=X.lq(); i1b=X.Iq(); i1b.setStart(o5e,O5d); i1b.setEnd(O5e,i5d); X.I17(Oq,i1b); } ,012); }};HTMLEditor.O59= function (){ this.iframe=null; this.l5e=null; this.i5e=null; this.I5e=null; };HTMLEditor.prototype.openPopup= function (i52,o1w,I52,o53,l53){var X=this ; if (X.I1==null)if (HTMLEditor.is_Safari){var Oq=X.lq(); var iq=X.Iq(Oq); X.l10=iq.cloneRange(); }if (HTMLEditor.is_ie && (X.lq().type=="Text" || X.lq().type=="None"))try {X.l10=X.Iq(X.lq()).duplicate(); }catch (t){}function l29(){ this.text=[]; this.write= function (ih){ this.text[this.text.length]=ih; };this.writeln= function (ih){ this.text[this.text.length]=ih+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}var popup=X.o1.document.createElement("iframe"); popup.id=X._hiddenContent+"_ifr_popup_"+o1w; if (HTMLEditor.is_ie)popup.src="javascript:false;"; var O59=new HTMLEditor.O59(); O59.iframe=popup; O59.enableEvents= function (){} ; O59.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(O59); O59.number=this.I1.length; O59.o53=o53; if (typeof l53=="undefined")popup.className=o1w+"_safari"; else popup.className=o1w; 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 O54; var o9=0144; var O9=0144; var l2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientWidth:X.o1.document.documentElement.clientWidth; var i2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientHeight:X.o1.document.documentElement.clientHeight; popup.style.top=i2r/2-O9/2+X.A.scrollTop+"px"; popup.style.left=l2r/2-o9/2+X.A.scrollLeft+"px"; this.A.appendChild(popup); function l56(event){if (HTMLEditor.is_ie)event=popup.contentWindow.event; if (X.I1)if (O59.number==X.I1.length)if (event.type=="click")X.O55(O59.o53); HTMLEditor._stopEvent(event); return false; } ; function o5f(){popup=X.o1.document.getElementById(X._hiddenContent+"_ifr_popup_"+o1w); O59.Ox=popup.document; if (!O59.Ox){if (HTMLEditor.l28 || HTMLEditor.o11){X.o1.setTimeout(o5f,012); return false; }else {X.o1.alert("ERROR: IFRAME can't be initialized."); }}var O54; var o9=(typeof(popup.clientWidth)=="number")?(popup.clientWidth): (X.parseInt(popup.clientWidth)); var O9=(typeof(popup.clientHeight)=="number")?(popup.clientHeight): (X.parseInt(popup.clientHeight)); var l2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientWidth:X.o1.document.documentElement.clientWidth; var i2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientHeight:X.o1.document.documentElement.clientHeight; popup.style.top=i2r/2-O9/2+X.A.scrollTop+"px"; popup.style.left=l2r/2-o9/2+X.A.scrollLeft+"px"; O59.Ox.open(); var html=new l29(); html.write("<html>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.Q[014]))?X.i7: "")+X.Q[014]+"\" media=\"all\" />"); html.write("</head>"); html.write("<body>"); html.write("<div id='mainFrame' class='frame'>"); html.write("<div id='header' class='header'><img id='closePopup' src='"+X.Q[7]+"' alt='' /><span id='title'>Insert Image</span></div>"); html.write("</div>"); html.write("</body>"); html.write("\x3ca href=\""+X.i7+"/\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); O59.Ox.write(html.toString()); O59.Ox.close(); function Iw(){var l57; var i57; var I57; var o58; try {l57=O59.Ox.getElementById("header"); i57=O59.Ox.getElementById("closePopup"); I57=O59.Ox.getElementById("title"); o58=O59.Ox.getElementById("mainFrame"); l57.className="header"; o58.className="frame"; I57.innerHTML=i52; i57.onclick=l56; X.o18(); function O5f(ij){if (ij)if (ij.type=="mousedown" && ij.button!=2){O59.l5f=new X.Object; O59.l5f.top=X.parseInt(popup.style.top)+"px"; O59.l5f.left=X.parseInt(popup.style.left)+"px"; O59.l5f.clientY=ij.clientY; O59.l5f.clientX=ij.clientX; O59.i5f= true; if (HTMLEditor.is_ie){popup.unselectable="on"; for (var i=0; i<O59.Ox.all.length; i++)O59.Ox.all(i).unselectable="on"; }}else if (ij.type=="mouseup" || ij.type=="mouseout"){O59.i5f= false; delete O59.l5f; O59.l5f=null; if (HTMLEditor.is_ie){popup.unselectable="off"; for (var i=0; i<O59.Ox.all.length; i++)O59.Ox.all(i).unselectable="off"; }}else if (ij.type=="mousemove"){if (O59.i5f){O59.l5f.top+=ij.clientY-O59.l5f.clientY; O59.l5f.left+=ij.clientX-O59.l5f.clientX; O59.iframe.style.top=O59.l5f.top+"px"; O59.iframe.style.left=O59.l5f.left+"px"; }}return true; }HTMLEditor.Iv(l57,["mousedown","mouseup","mousemove","mouseout"], function (event){return O5f(HTMLEditor.is_ie?popup.contentWindow.event:event); } ); function i58(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){O59.Ox.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {O59.Ox.onmousedown=i58; }if (!HTMLEditor.is_ie){X.o1.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)-1+"px"; popup.style.left=X.parseInt(popup.style.left)-1+"px"; } ,2); X.o1.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)+1+"px"; popup.style.left=X.parseInt(popup.style.left)+1+"px"; } ,5); }if (typeof I52=="function"){try {I52(O59.iframe); }catch (t){X.o1.alert("Exception in open Popup("+i52+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var I58=O59.Ox.getElementsByTagName("input"); for (var i=0; i<I58.length; i++){I58[i].setAttribute("autocomplete","off"); I58[i].onfocus= function (){O59.I5e=this ; } ; }}}catch (t){try {HTMLEditor.Ic(i57,"click",l56); }catch (t){}X.o1.setTimeout(Iw,012); return false; }}X.o1.setTimeout(Iw,012); } ; X.o1.setTimeout(o5f,024); return O59.iframe; } ; HTMLEditor.prototype.O55= function (o53){var X=this ; function o59(I2c,O1p){var lk; try {lk=I2c.removeChild(O1p); delete lk; }catch (t){}}if (X.I1){var O59=X.I1.pop(); if (X.I1.length>0)X.I1[X.I1.length-1].enableEvents(); if (HTMLEditor.is_Safari){X.o1.setTimeout( function (){if (X.I1==null || X.I1.length==0)if (HTMLEditor.is_Safari)if (X.l10){X.I17(X.lq(),X.l10); X.l10=null; }if (typeof o53=="function"){try {o53(); }catch (t){} ; }if (O59.I5e){O59.I5e.blur(); }var Oq=X.lq(); var iq=X.Iq(Oq); X.I17(Oq,iq); X.focusEditor(); X.focusEditor(); o59(X.A,O59.iframe); X.o1.setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.I17(Oq,iq); X.focusEditor(); X.focusEditor(); } ,012); } ,012); }else {if (typeof o53=="function"){try {o53(); }catch (t){} ; }o59(X.A,O59.iframe); }if (X.I1.length==0){X.I1=null; HTMLEditor.I1=null; X.popupClosed(); if (HTMLEditor.is_ie)if (X.l10){try {X.l10.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 o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; var Oq=this.lq(); var iq=this.Iq(Oq); var i1b=null; var I5f= false; if (this.Or())return; if ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)){i1b=this.I1b(); }else if (!HTMLEditor.is_Safari){i1b=this.l3w(); I5f= true; }if (i1b!=null && i1b.length>0){var o5g= false; this.i10(); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var i41= false; try {while (par && par.childNodes.length==1 && HTMLEditor.O1j(par.tagName)){var il=par.tagName.toUpperCase(); var O5g=par.style?par.style.cssText: ""; var l5g=HTMLEditor.o3c(par,["class"]); if (il=="SPAN" && par.className!=HTMLEditor.om && l5g.length==0 && (par.className.length>0 || name.length>0)){o5g= true; par.className=name; if (name==""){par.removeAttribute("class"); if (O5g.length==0){var parent=par.parentNode; while (par.firstChild)parent.insertBefore(par.firstChild,par); parent.removeChild(par); }}i41= true; break; }par=par.parentNode; }}catch (t){ this.o1.alert(""+i+" "+i1b.length+" : "+t.message); }par=i1b[i].parentNode; if (!i41){if (name !== ""){o5g= true; var lk=this.i1.createElement("SPAN"); lk.className=name; par.insertBefore(lk,i1b[i]); lk.appendChild(i1b[i]); }}}if (I5f){if (HTMLEditor.is_ie && this.i3w!=null){var Oq=this.lq(); var iq=this.Iq(Oq); iq.moveToBookmark(this.i3w); iq.select(); this.i3w=null; }else if (this.i3w!=null){if (this.i3w[0].nodeType==3){var Oq=this.lq(); var iq=this.i1.createRange(); iq.setStart(this.i3w[0],this.i3w[1]); iq.setEnd(this.i3w[0],this.i3w[1]); this.i17(Oq); this.I17(Oq,iq); }else { this.I3w(this.i3w[0],this.i3w[0]); this.i3w[0].parentNode.removeChild(this.i3w[0]); } this.i3w=null; }}else {if (!HTMLEditor.is_ie){if (i1b.length>0){iq=this.i1.createRange(); iq.setStart(i1b[0],0); iq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.i17(Oq); this.I17(Oq,iq); }}else {var Oq=this.lq(); var o3l=this.Iq(Oq); var O3l=this.Iq(Oq); var i48=this.i1.createElement("span"); var I48=this.i1.createElement("span"); i1b[0].parentNode.insertBefore(i48,i1b[0]); if (i1b[i1b.length-1].nextSibling)i1b[i1b.length-1].parentNode.insertBefore(I48,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(I48); try {o3l.moveToElementText(i48); O3l.moveToElementText(I48); o3l.setEndPoint("EndToEnd",O3l); o3l.select(); }catch (t){}i1b[0].parentNode.removeChild(i48); i1b[i1b.length-1].parentNode.removeChild(I48); }}var X=this ; this.o1.setTimeout( function (){X.updateToolbar(); } ,5); if (!o5g){return false; }return true; }else {var parent=this.or(iq); if (HTMLEditor.o11)this.f= true; if (parent.nodeType==3){parent=parent.parentNode; }var O4t=parent.style?parent.style.cssText: ""; var l2y=HTMLEditor.o3c(parent,["class"]); if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.om && l2y.length==0){ this.i10(); parent.className=name; if (name==""){parent.removeAttribute("class"); if (O4t.length==0){var par=parent.parentNode; var i5g=null; var i37=0; var I5g,o5h; if (!HTMLEditor.is_ie){Oq=this.lq(); iq=this.Iq(Oq); i5g=iq.startContainer; i37=iq.startOffset; }else {I5g=iq.offsetLeft; o5h=iq.offsetTop; }while (parent.firstChild)par.insertBefore(parent.firstChild,parent); par.removeChild(parent); if (!HTMLEditor.is_ie){var iq=this.Iq(); iq.setStart(i5g,i37); iq.setEnd(i5g,i37); this.i17(Oq); this.I17(Oq,iq); }else {if (Oq.type.toLowerCase()!="control"){try {iq.moveToPoint(I5g,o5h); }catch (t){}}iq.select(); }}}var X=this ; this.o1.setTimeout( function (){X.updateToolbar(); } ,5); return true; }else if (HTMLEditor.o11)this.focusEditor(); }}return false; }catch (t){ this.o1.alert("setClass func: "+t.message); }};HTMLEditor.prototype.O45= function (O1p){if (this.relativeImages){var images=O1p.getElementsByTagName("IMG"); for (var i=0; i<images.length; i++){var O5h=images[i]; if (O5h.src.indexOf("http://")>=0){var I25=O5h.src; O5h.src="qwerty.gif"; var l37=O5h.src.indexOf("qwerty.gif"); if (I25.substr(0,l37)==O5h.src.substr(0,l37))I25=I25.substr(l37,I25.length-l37); O5h.src=I25; }}}};HTMLEditor.prototype._paste= function (Im,i35){var X=this ; var Oq=this.lq(); var iq=this.Iq(Oq); var O1y; var _top; if (!Im){O1y=iq.offsetLeft; _top=iq.offsetTop; this.l11(this.o35()); X.l14(); return; }if (this._NoPaste)return; O1y=iq.offsetLeft; _top=iq.offsetTop; var lk=this.i1.createElement("span"); var i1x; var l5h=this.l35("", false ,i35); if ((/<[\/]*p[\s>]+/i.test(l5h)) || (/<[\/]*h/i.test(l5h))){i1x=this.I1x(); }else {i1x=this.i1.createElement("SPAN"); i1x.id=HTMLEditor.om; if (!this.l11(HTMLEditor.getHTML(i1x, true)))return; i1x=this.i1.getElementById(HTMLEditor.om); i1x.id=null; i1x.removeAttribute("id"); i1x.setAttribute("para","no"); }lk.innerHTML=l5h; if (!i1x){return; } this.O45(lk); var par=i1x.parentNode; var i4o=i1x.getAttribute("para"); if (i4o!="no"){if (i4o.indexOf("left")>=0 && lk.firstChild){if (lk.firstChild.tagName && lk.firstChild.tagName.toUpperCase()=="P"){while (lk.firstChild.firstChild)i1x.previousSibling.appendChild(lk.firstChild.firstChild); lk.removeChild(lk.firstChild); }}if (i4o.indexOf("right")>=0 && lk.lastChild){if (lk.lastChild.tagName && lk.lastChild.tagName.toUpperCase()=="P"){while (lk.lastChild.lastChild)i1x.nextSibling.insertBefore(lk.lastChild.lastChild,i1x.nextSibling.firstChild); lk.removeChild(lk.lastChild); }}}var i5h=i1x; var I5h=null; if (lk.childNodes.length==0 && i4o.indexOf("left")>=0 && i4o.indexOf("right")>=0){if (i1x.nextSibling.firstChild){I5h=this.i1.createElement("span"); i5h=I5h; I5h.innerHTML="111"; i1x.previousSibling.appendChild(I5h); }while (i1x.nextSibling.firstChild)i1x.previousSibling.appendChild(i1x.nextSibling.firstChild); par.removeChild(i1x.nextSibling); }else {while (lk.firstChild)par.insertBefore(lk.firstChild,i1x); }setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); if (Oq.type.toLowerCase()=="control"){while (iq.length>0)iq.remove(0); }try {iq.collapse( false); }catch (t){}X.focusEditor(); HTMLEditor.l1o(i5h,X); if (I5h)I5h.parentNode.removeChild(I5h); par.removeChild(i1x); HTMLEditor.O13(X.i1.body); X.l14(); iq.select(); } ,0144); };HTMLEditor.o30= function (O31,X,o5i){for (var i=0; i<O31.childNodes.length; i++){var o36=O31.childNodes.item(i); if (o36.nodeType==1){var it=null; if (o5i)for (var oh=0; oh<HTMLEditor.l4w.length; oh++){if (HTMLEditor.l4w[oh][0].toLowerCase()==o36.tagName.toLowerCase()){it=HTMLEditor.l4w[oh]; break; }}if (it){var span=X.i1.createElement("SPAN"); span.style["cssText"]=o36.style["cssText"]; if (HTMLEditor.is_ie)span.style[it[1]]=it[2]; else span.style[it[3]]=it[2]; while (o36.firstChild){span.appendChild(o36.firstChild); }O31.insertBefore(span,o36); O31.removeChild(o36); o36=span; }else if (o36.tagName.toLowerCase()=="font"){var span=X.i1.createElement("SPAN"); var save=o36.size; span.style["cssText"]=o36.style["cssText"]; if (o36.color)span.style.color=o36.color; if (o36.face)span.style.fontFamily=o36.face; while (o36.firstChild){span.appendChild(o36.firstChild); }O31.insertBefore(span,o36); O31.removeChild(o36); if (save){var font=X.i1.createElement("FONT"); font.size=save; O31.insertBefore(font,span); if (span.style["cssText"].length>0){font.appendChild(span); o36=span; }else {while (span.firstChild){font.appendChild(span.firstChild); }O31.removeChild(span); o36=font; }}else o36=span; }HTMLEditor.o30(o36,X,o5i); }}};HTMLEditor.restoreOldTags= function (O31,Ox,X){for (var i=0; i<O31.childNodes.length; i++){var o36=O31.childNodes.item(i); if (o36.nodeType==1){if (o36.tagName.toUpperCase()=="BR"){if (o36.style && o36.style.cssText && o36.style.cssText.length>0){o36.style.cssText=""; o36.removeAttribute("style"); }continue; }if (!HTMLEditor.O2g(o36) && o36.tagName.toUpperCase()!="IMG"){var O4t=HTMLEditor.l4t(o36); var O5i=O31; var l5i=HTMLEditor.O2g(o36); for (var o2c=0; o2c<O4t.length; o2c++){var i5i=null; if (O4t[o2c][0].toLowerCase()=="color" && O4t[o2c][1])i5i=["color",O4t[o2c][1]];if (O4t[o2c][0].toLowerCase()=="backgroundcolor" && O4t[o2c][1])i5i=["backgroundColor",O4t[o2c][1]];if (O4t[o2c][0].toLowerCase()=="fontfamily" && O4t[o2c][1])i5i=["face",O4t[o2c][1]];var l37=HTMLEditor.l4w.length; if (i5i)l37=1; for (var oh=0; oh<l37; oh++){if (HTMLEditor.l4w[oh][3].toLowerCase()==O4t[o2c][0].toLowerCase() && HTMLEditor.l4w[oh][2].toLowerCase()==O4t[o2c][1].toLowerCase() || i5i){if (l5i){if (i5i){HTMLEditor.I5i(o36,i5i[0],i5i[1],Ox); o36.style[i5i[0]]=""; }else if (O4t[o2c][1]){HTMLEditor.I5i(o36,O4t[o2c][0],O4t[o2c][1],Ox); o36.style[O4t[o2c][0]]=""; }}else {var tagName=(i5i)?"FONT":HTMLEditor.l4w[oh][0].toUpperCase(); var o5j=Ox.createElement(tagName); if (i5i){if (i5i[0]=="color")o5j.color=i5i[1]; else if (i5i[0]=="face")o5j.face=i5i[1]; else o5j.style.cssText="background-color: "+i5i[1]; }O5i.insertBefore(o5j,o36); o5j.appendChild(o36); o36.style.cssText=""; O4t[o2c][1]=null; for (var O5j=0; O5j<O4t.length; O5j++)if (O4t[O5j][1] && O4t[O5j][0].toLowerCase()!="textdecorationlinethrough" && O4t[O5j][0].toLowerCase()!="textdecorationunderline")o36.style[O4t[O5j][0]]=O4t[O5j][1]; if (o36.tagName.toLowerCase()=="span" && o36.style.cssText=="" && HTMLEditor.i4u(o36, false)==0){while (o36.firstChild){o5j.appendChild(o36.firstChild); }o5j.removeChild(o36); o36=o5j; }O5i=o5j; oh=l37; }}}}}HTMLEditor.restoreOldTags(o36,Ox,X); }else if (o36.nodeType==8){}}};HTMLEditor.I5i= function (O31,style,value,Ox){if (O31.childNodes.length==0){var o5j=Ox.createElement("SPAN"); O31.appendChild(o5j); o5j.style[style]=value; }else for (var i=0; i<O31.childNodes.length; i++){var o36=O31.childNodes.item(i); if (o36.nodeType==1){if (!o36.style[style])o36.style[style]=value; }else if (o36.nodeType==3){var o5j=Ox.createElement("SPAN"); O31.insertBefore(o5j,o36); o5j.appendChild(o36); o5j.style[style]=value; }}};function Iy(l5j,i5j){var I5j=""; try {if (l5j.nodeType==1)if (l5j.ownerDocument.defaultView && l5j.ownerDocument.defaultView.getComputedStyle)I5j=l5j.ownerDocument.defaultView.getComputedStyle(l5j,"").getPropertyValue(i5j); else if (l5j.currentStyle){try {i5j=i5j.replace(/-(\w)/g, function (I3y,i21){return i21.toUpperCase(); } ); I5j=l5j.currentStyle[i5j]; }catch (w){}}}catch (t){}return I5j; }HTMLEditor.Iy=Iy; HTMLEditor.o5k= function (O5k){function l5k(){var O9=O5k.offsetHeight; var o9=O5k.offsetWidth; if (!document.all){O9-=6; o9-=2; }if (O9>parseInt(O5k.style.height) || o9>parseInt(O5k.style.width))return false; return true; }var i5k=O5k.innerHTML; var i=0; while (!l5k()){i++; O5k.innerHTML=i5k.substr(0,i5k.length-i-1)+"..."; }};HTMLEditor.I5k= function (event){HTMLEditor._stopEvent(event); return false; };HTMLEditor.o5l= function (X,O5l){if (O5l.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.ik(O5l,"dragstart",HTMLEditor.I5k); else HTMLEditor.ik(O5l,"draggesture",HTMLEditor.I5k); var i22,cell,l5l,div; var Ox=X.getDocument(); var i5l=Ox.createElement("TABLE"); if (O5l.tagName && O5l.tagName.toUpperCase()=="IMG"){i5l.style.display="inline"; }i5l.border="0"; i5l.cellSpacing="0"; i5l.cellPadding="0"; i5l.style.borderWidth="0px"; i5l.setAttribute(X.noContextMenuAttributeName(),"yes"); i22=i5l.insertRow(i5l.rows.length); l5l=i22.insertCell(i22.cells.length); l5l.style.fontSize="0px"; l5l.style.fontFamily="verdana"; l5l.style.padding="0px"; l5l.style.margin="0px"; l5l.style.borderWidth="0px"; l5l.setAttribute(X.noContextMenuAttributeName(),"yes"); cell=i22.insertCell(i22.cells.length); cell.vAlign="top"; cell.align="left"; cell.style.padding="0px"; cell.style.margin="0px"; cell.style.fontSize="0px"; cell.style.fontFamily="verdana"; cell.style.borderWidth="0px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.i7+"/pagebgright.jpg)"; cell.style.backgroundRepeat="repeat-y"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=Ox.createElement("DIV"); div.style.width="10px"; div.style.height="10px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.i7+"/pagebgtopright.jpg)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); i22=i5l.insertRow(i5l.rows.length); cell=i22.insertCell(i22.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.vAlign="top"; cell.align="left"; cell.style.backgroundImage="url("+X.i7+"/pagebgbottomwhite.gif)"; cell.style.backgroundRepeat="repeat-x"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=Ox.createElement("DIV"); div.style.width="10px"; div.style.height="8px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.i7+"/pagebgbottomleftwhite.gif)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); cell=i22.insertCell(i22.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.i7+"/pagebgbottomright.gif)"; cell.style.backgroundRepeat="no-repeat"; cell.style.borderWidth="0px"; cell.innerHTML="&nbsp;"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); if (O5l.tagName && O5l.tagName.toUpperCase()!="IMG"){var i1x=X.I1x(O5l); if (i1x){var parent=i1x.parentNode; parent.insertBefore(O5l,i1x); parent.removeChild(i1x); }}O5l.parentNode.insertBefore(i5l,O5l); l5l.appendChild(O5l); O5l.setAttribute(X.attachedIdAttributeName(),"yes"); };HTMLEditor.I5l= function (X,O5l){if (O5l.getAttribute(X.attachedIdAttributeName()) && O5l.getAttribute(X.attachedIdAttributeName()).length>0)return true; else return false; };HTMLEditor.o5m= function (X,O5l){if (O5l.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.Ic(O5l,"dragstart",HTMLEditor.I5k); else HTMLEditor.Ic(O5l,"draggesture",HTMLEditor.I5k); var I4f=X.lt(O5l); if (I4f!=null){I4f.parentNode.insertBefore(O5l,I4f); I4f.parentNode.removeChild(I4f); O5l.removeAttribute(X.attachedIdAttributeName()); }};HTMLEditor.prototype.O5m= function (){var l5m=[]; var i5m=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>"()$%#*@&\-+=\/\\|><]/; var I5m=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>()$%#*@&\-+=\/\\|><]/; if (this.O1 && this.mode()=="html" && !this.isPopup()){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; var Oq=this.lq(); var iq=this.Iq(Oq); var i1b; if (!this.Or() && ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))i1b=this.I1b(); else i1b=this.I1b( true); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var o5n=-1; var O5n=-1; var l5n=""+i1b[i].data+""; var i5n=l5n.length; var I5n=""; var o5o= false; for (var oh=0; oh<i5n; oh++){var O5o=l5n.substr(oh,1); if (O5o.charCodeAt(0)>=02620 && O5o.charCodeAt(0)<=02777)o5o= true; O5n=((o5o?I5m:i5m).test(O5o) || (O5o.charCodeAt(0)&0170000)==020000)?0: 1; if (O5n!=o5n){if (o5n>=0){var l5o=this.i1.createTextNode(I5n); par.insertBefore(l5o,i1b[i]); if (isNaN(parseInt(I5n,012)) && o5n==1){l5m.push( {i5o: -1,I5o: (""+l5o.data+""),ref:l5o,o5g: false } ); }}I5n=""; o5n=O5n; }I5n+=O5o; }if (o5n>=0 && I5n.length>0){i1b[i].data=I5n; if (isNaN(parseInt(I5n,012)) && o5n==1)l5m.push( {i5o: -1,I5o: (""+i1b[i].data+""),ref:i1b[i],o5g: false } ); }}Oq=this.lq(); if (i1b.length>0){if (!HTMLEditor.is_ie){iq=this.i1.createRange(); iq.setStart(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); iq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.i17(Oq); this.I17(Oq,iq); }else {var o3l=this.Iq(Oq); var i48=this.i1.createElement("span"); if (i1b[i1b.length-1].nextSibling)i1b[i1b.length-1].parentNode.insertBefore(i48,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(i48); try {o3l.moveToElementText(i48); o3l.setEndPoint("EndToStart",o3l); o3l.select(); }catch (t){}i1b[i1b.length-1].parentNode.removeChild(i48); }}}return l5m; };HTMLEditor.prototype.i1v= function (op){var X=this ; X.openWait(); setTimeout( function (){op(X.O5m()); } ,0); };HTMLEditor.prototype.l1j= function (i1b){var Oq=this.lq(); if (!HTMLEditor.is_ie){var iq=this.i1.createRange(); iq.setStart(i1b[0],0); iq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.i17(Oq); this.I17(Oq,iq); }else {var o3l=this.Iq(Oq); var O3l=this.Iq(Oq); var i48=this.i1.createElement("span"); var I48=this.i1.createElement("span"); i1b[0].parentNode.insertBefore(i48,i1b[0]); if (i1b[i1b.length-1].nextSibling)i1b[i1b.length-1].parentNode.insertBefore(I48,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(I48); try {o3l.moveToElementText(i48); var o5p=o3l.moveStart("character",1); o3l.moveStart("character",-o5p); O3l.moveToElementText(I48); o5p=O3l.moveEnd("character",-1); O3l.moveEnd("character",-o5p); o3l.setEndPoint("EndToEnd",O3l); o3l.select(); }catch (t){}i1b[0].parentNode.removeChild(i48); i1b[i1b.length-1].parentNode.removeChild(I48); }};HTMLEditor.prototype.O5p= function (I4c){var i1b=this.I1b(); var X=this ; var I5f= false; if (i1b.length==0)if (!HTMLEditor.is_Safari){i1b=this.l3w( true); I5f= true; }if (i1b!=null && i1b.length>0){ this.i10(); for (var i=0; i<i1b.length; i++){if (I4c)i1b[i].data=(""+i1b[i].data+"").toUpperCase(); else i1b[i].data=(""+i1b[i].data+"").toLowerCase(); }if (I5f){if (HTMLEditor.is_ie && this.i3w!=null){var Oq=this.lq(); var iq=this.Iq(Oq); iq.moveToElementText(this.i3w); iq.select(); this.i3w.parentNode.removeChild(this.i3w); this.i3w=null; }else if (this.i3w!=null){if (this.i3w[0].nodeType==3){var Oq=this.lq(); var iq=this.i1.createRange(); iq.setStart(this.i3w[0],this.i3w[1]); iq.setEnd(this.i3w[0],this.i3w[1]); this.i17(Oq); this.I17(Oq,iq); }else { this.I3w(this.i3w[0],this.i3w[0]); this.i3w[0].parentNode.removeChild(this.i3w[0]); } this.i3w=null; }}else this.l1j(i1b); this.o1.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.Or())return; this.O5p( true); };HTMLEditor.prototype.toLowerCase= function (){if (!(this.O1 && this.mode()=="html" && !this.isPopup()))return; if (this.Or())return; this.O5p( false); };HTMLEditor.I36= function (ll){var l1n=ll.all; var i11=[]; var i3p=[];for (var i=0; i<l1n.length; i++){var a=l1n[i]; if (a.name && a.name.length>0){var il=a.tagName; var l5p=ll.getElementsByTagName(il); var l37=0; for (var oh=0; oh<l5p.length; oh++){if (l5p[oh]==a){l37=oh; break; }}i3p[il]=l37; i11.push([il,i3p[il],a.name]); }}return i11; };HTMLEditor.o39= function (ll,i11){for (var i=0; i<i11.length; i++){if (ll.getElementsByTagName(i11[i][0]).length>i11[i][1])ll.getElementsByTagName(i11[i][0])[i11[i][1]].name=i11[i][2]; }};HTMLEditor.i5p= function (ll){var l1n=ll.all; var i11=[]; var i3p=[];for (var i=0; i<l1n.length; i++){var a=l1n[i]; if (a.href && a.href.length>0 && !(a.src && a.src.length>0)){var il=a.tagName; var l5p=ll.getElementsByTagName(il); var l37=0; for (var oh=0; oh<l5p.length; oh++){if (l5p[oh]==a){l37=oh; break; }}i3p[il]=l37; i11.push([il,i3p[il],a.href]); }}return i11; };HTMLEditor.I11= function (l1g){var i3p=[];function I5p(O29,i21,I21,O2u,i38,o5q,O5q,l5q){var il=i21.replace(/^<([^\s>]+)/,"$1"); var i5q= true; var i=0; for ( ; i<i3p.length; i++){if (i3p[i][0]==il){i5q= false; break; }}if (i5q){i3p[i]=[il]; }i3p[i].push(o5q); }var I2n=new RegExp("(\x3c[^\\s>\x3c]+)([^>\x3c]*?)(href=)(\"|\')([^\\4]*?)(\\4)((?:[^>\x3c]*?)>)","ig"); l1g.replace(I2n,I5p); return i3p; };HTMLEditor.I5q= function (ll,i11){for (var i=0; i<i11.length; i++){ll.getElementsByTagName(i11[i][0])[i11[i][1]].href=i11[i][2]; }};HTMLEditor.l12= function (ll,i11){for (var oh=0; oh<i11.length; oh++){var l1n=ll.getElementsByTagName(i11[oh][0]); var o2c=1; for (var i=0; i<l1n.length; i++){try {if (!l1n[i].href)continue; if (i11[oh][o2c] && i11[oh][o2c].length>0){l1n[i].href=i11[oh][o2c].replace(/&amp;/ig,"&"); }o2c++; }catch (w){}}}};HTMLEditor.o5r= function (ll){var l1n=ll.getElementsByTagName("IMG"); var i11=[]; for (var i=0; i<l1n.length; i++){var a=l1n[i]; i11.push((a.src && a.src.length>0)?a.src:null); }return i11; };HTMLEditor.O5r= function (l1g){var i11=[]; function I5p(O29,i21,I21,O2u,i38,o5q){i11.push(O29); return O29; }l1g.replace(/(<img(?:.*?)>)/ig,I5p); return i11; };HTMLEditor.l5r= function (l1g,i11){var i=-1; function I5p(O29,i21,I21,O2u,i38,o5q){i++; return i11[i]; }return l1g.replace(/(<img(?:.*?)>)/ig,I5p); };HTMLEditor.O12= function (l1g){var i11=[]; function I5p(O29,i21,I21,O2u,i38,o5q){i11.push(O2u); return O29; }l1g.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,I5p); return i11; };HTMLEditor.i5r= function (l1g){var i11=[[],[]]; function I5p(O29,i21,I21,O2u,i38,o5q){i11[0].push(O2u); return O29; }function o2b(O29,i21,I21,O2u,i38,o5q){i11[1].push(O2u); return O29; }l1g.replace(/(<img(?:.*?))(width=)([^\s>]+)(\s*)((?:.*?)>)/ig,I5p); l1g.replace(/(<img(?:.*?))(height=)([^\s>]+)(\s*)((?:.*?)>)/ig,o2b); return i11; };HTMLEditor.I5r= function (l1g,i11){var i=-1; var oh=-1; function I5p(O29,i21,I21,O2u,i38,o5q){i++; return i21+I21+i11[0][i]+i38+o5q; }function o2b(O29,i21,I21,O2u,i38,o5q){oh++; return i21+I21+i11[1][oh]+i38+o5q; }return l1g.replace(/(<img(?:.*?))(width=")([^\s>]+)(")((?:.*?)>)/ig,I5p).replace(/(<img(?:.*?))(height=")([^\s>]+)(")((?:.*?)>)/ig,o2b); };HTMLEditor.o5s= function (l1g){var i11=[]; function I5p(O29,i21){i11.push(i21); return O29; }l1g.replace(/(<area[^>]*?>)/ig,I5p); return i11; };HTMLEditor.O5s= function (l1g,i11){var i=-1; function I5p(O29,i21){i++; return i11[i]; }return l1g.replace(/(<area[^>]*?>)/ig,I5p); };HTMLEditor.i12= function (ll,i11){var l1n=ll.getElementsByTagName("IMG"); var o2c=0; for (var i=0; i<l1n.length; i++){if (!l1n[i].src)continue; if (i11[o2c] && i11[o2c].length>0){l1n[i].src=i11[o2c].replace(/&amp;/ig,"&"); }o2c++; }};HTMLEditor.l5s= function (l1g,i11){var i=-1; function I5p(O29,i21,I21,O2u,i38,o5q){i++; return i21+I21+i11[i]+i38+o5q; }return l1g.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,I5p); };HTMLEditor.O13= function (ll){var l1n=ll.getElementsByTagName("IMG"); for (var i=0; i<l1n.length; i++){if (l1n[i].getAttribute(HTMLEditor.Ot) && l1n[i].getAttribute(HTMLEditor.Ot).length>0){try {if (HTMLEditor.is_ie)HTMLEditor.Ic(l1n[i],"dragstart",HTMLEditor.I5k); else HTMLEditor.Ic(l1n[i],"draggesture",HTMLEditor.I5k); }catch (t){}if (HTMLEditor.is_ie)HTMLEditor.ik(l1n[i],"dragstart",HTMLEditor.I5k); else HTMLEditor.ik(l1n[i],"draggesture",HTMLEditor.I5k); }}};HTMLEditor.I14= function (id,Im){var i5s=document.getElementById(id); if (!i5s)return null; if (!HTMLEditor.is_Safari && i5s.className=="ST_div" && (typeof Im=="undefined" || Im=="undefined")){i5s.parentNode.style.display="none"; return null; }return null; var I5s=document.getElementById(id+"__disabling"); var O1y=0,_top=0; var ll=i5s; var parent=HTMLEditor.o5t(i5s); if (parent==null)parent=document.body; var l4y=HTMLEditor.O5t(ll,(HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)?document.body:parent, false); var l4y=HTMLEditor.O5t(ll,parent, false); O1y=l4y.O1y; _top=l4y._top; var l5t; if (I5s!=null)l5t=I5s; else {l5t=document.createElement("DIV"); l5t.className="DisableSpan"; l5t.id=id+"__disabling"; l5t.style.position="absolute"; l5t.style.zIndex=01750; l5t.style.visibility="visible"; }if (!HTMLEditor.is_ie || (HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)){ll=parent; if (I5s==null)l5t.i5t=[]; while (ll && ll.tagName && ll.tagName.toUpperCase()!="BODY"){if (ll.scrollTop)_top-=parseInt(ll.scrollTop); if (ll.scrollLeft)O1y-=parseInt(ll.scrollLeft); if (I5s==null && HTMLEditor.I5t(ll)){var o5u= {O5u:ll.scrollTop,l5u:ll.scrollLeft } ; var i5u=l5t.i5t.length; var i50=new Function("event","HTMLEditor_onParentScroll(event,\""+id+"__disabling"+"\",this,"+i5u+")"); l5t.i5t.push( {i50:i50,parent:ll,i16:o5u } ); HTMLEditor.ik(ll,"scroll",i50); }ll=ll.parentNode; }if (HTMLEditor.is_ie)parent=document.body; }if (I5s==null)parent.appendChild(l5t); l5t.style.top=_top+"px"; l5t.style.left=O1y+"px"; var o9=0; var O9=0; if (o9==0)o9=i5s.offsetWidth; if (O9==0)O9=i5s.offsetHeight; l5t.style.width=parseInt(o9)+"px"; l5t.style.height=parseInt(O9)+"px"; return id+"__disabling"; };HTMLEditor.O5t= function (I56,parent,Im){var ll=I56; var _top=0,O1y=0; while (ll && typeof ll!="undefined" && ll!=parent && ll.tagName.toUpperCase()!="HTML"){var borderTopWidth; var borderLeftWidth; O1y+=parseInt(ll.offsetLeft); _top+=parseInt(ll.offsetTop); ll=ll.offsetParent; if (ll && typeof ll!="undefined"){if (ll.clientLeft)O1y+=parseInt(ll.clientLeft); if (ll.clientTop)_top+=parseInt(ll.clientTop); if (!HTMLEditor.is_ie && ((Im && ll.tagName.toUpperCase()!="BODY") || (!Im && (ll.tagName.toUpperCase()=="BODY" || HTMLEditor.o11)))){borderTopWidth=parseInt(HTMLEditor.Iy(ll,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; borderLeftWidth=parseInt(HTMLEditor.Iy(ll,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; O1y+=borderLeftWidth; _top+=borderTopWidth; }if (HTMLEditor.is_ie && !Im && (ll.tagName.toUpperCase()=="TABLE" || (ll.tagName.toUpperCase()=="BODY" && document.compatMode=="BackCompat"))){var top=ll.tagName.toUpperCase()=="BODY"?HTMLEditor.Iy(ll,"border-top-width").toUpperCase(): ""; borderTopWidth=parseInt(HTMLEditor.Iy(ll,"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=ll.tagName.toUpperCase()=="BODY"?HTMLEditor.Iy(ll,"border-left-width").toUpperCase(): ""; borderLeftWidth=parseInt(HTMLEditor.Iy(ll,"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 ll.border!="undefined" && ll.border!=null && !isNaN(parseInt(ll.border)))borderLeftWidth=borderTopWidth=parseInt(ll.border); O1y-=borderLeftWidth; _top-=borderTopWidth; }}}if (ll && typeof ll!="undefined" && HTMLEditor.is_ie && document.compatMode!="BackCompat"){var marginTop=parseInt(HTMLEditor.Iy(ll,"margin-top")); if (isNaN(marginTop))marginTop=0; var marginLeft=parseInt(HTMLEditor.Iy(ll,"margin-left")); if (isNaN(marginLeft))marginLeft=0; O1y+=marginLeft; _top+=marginTop; }if (!HTMLEditor.o11){ll=I56; while (ll && ll!=parent){if (ll.scrollTop)_top-=parseInt(ll.scrollTop); if (ll.scrollLeft)O1y-=parseInt(ll.scrollLeft); ll=ll.parentNode; }}return {_top:_top,O1y:O1y } ; };function HTMLEditor_onParentScroll(event,I5u,parent,i){var O1p=document.getElementById(I5u); var i16=O1p.i5t[i].i16; if (HTMLEditor.is_ie)parent=event.srcElement; O1p.style.top=parseInt(O1p.style.top)-(parent.scrollTop-i16.O5u)+"px"; O1p.style.left=parseInt(O1p.style.left)-(parent.scrollLeft-i16.l5u)+"px"; i16.O5u=parent.scrollTop; i16.l5u=parent.scrollLeft; }HTMLEditor.i18= function (id,Im){var i5s=document.getElementById(id); if (!i5s)return null; if (!HTMLEditor.is_Safari && i5s.className=="ST_div" && (typeof Im=="undefined" || Im=="undefined")){i5s.parentNode.style.display=""; return null; }var ll=document.getElementById(id+"__disabling"); if (ll){if (typeof ll.i5t!=undefined && ll.i5t!=null && ll.i5t.length>0){for (var i=0; i<ll.i5t.length; i++)HTMLEditor.Ic(ll.i5t[i].parent,"scroll",ll.i5t[i].i50); }ll.parentNode.removeChild(ll); }};HTMLEditor.I5t= function (ic){if (ic.clientHeight>0 && ic.scrollHeight && ic.scrollHeight>0){var clientHeight=ic.clientHeight; if (!HTMLEditor.is_ie){var borderTopWidth=parseInt(Iy(ic,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; var borderBottomWidth=parseInt(Iy(ic,"border-bottom-width")); if (isNaN(borderBottomWidth))borderBottomWidth=0; clientHeight+=(borderTopWidth+borderBottomWidth); }if (ic.scrollHeight>clientHeight){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientHeight<ic.offsetHeight)return true; }else return true; }}if (ic.clientWidth>0 && ic.scrollWidth && ic.scrollWidth>0){var clientWidth=ic.clientWidth; if (!HTMLEditor.is_ie){var borderLeftWidth=parseInt(Iy(ic,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; var borderRightWidth=parseInt(Iy(ic,"border-right-width")); if (isNaN(borderRightWidth))borderRightWidth=0; clientWidth+=(borderLeftWidth+borderRightWidth); }if (ic.scrollWidth>clientWidth){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientWidth<ic.offsetWidth)return true; }else return true; }}return false; };HTMLEditor.o5t= function (O1p){var ic=O1p; do {ic=ic.parentNode; if (HTMLEditor.I5t(ic))return ic; }while (ic && ic.tagName.toUpperCase()!="BODY");return ic; };HTMLEditor.o5v=null; try {HTMLEditor.o5v=(document.all)?document.body.onload:window.onload; }catch (w){}HTMLEditor.z= function (t,I5g){if (typeof I5g=="undefined"){if (document.all)document.body.onload=HTMLEditor.o5v; else window.onload=HTMLEditor.o5v; if (HTMLEditor.o5v!=null && typeof HTMLEditor.o5v=="function")HTMLEditor.o5v(t); }HTMLEditor.Z= function (ij){if (ij){for (var i=0; i<HTMLEditor.l9.length; i++){if (HTMLEditor.l9[i].oa){var X=HTMLEditor.l9[i].X; if (X.Id && X.Id!=null){var ll; if (HTMLEditor.is_ie){ij=window.event; ll=ij.srcElement; }else {ll=ij.target; }while (ll && ll!=X.Id)ll=ll.parentNode; if (ll==null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; if (X.O10){X.O10.select(); X.O10=null; }}}}}}return true; };setTimeout( function (){HTMLEditor.ik(document.body,"mousedown", function (event){var le= false; try {le=HTMLEditor.Z(HTMLEditor.is_ie?window.event:event); }catch (t){}return le; } ); } ,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 O5v=window.Sys.WebForms.PageRequestManager.getInstance()._updateControls; var l5v=window.Sys.WebForms.PageRequestManager.getInstance(); window.Sys.WebForms.PageRequestManager.getInstance()._updateControls= function (){var i5v=[]; for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; var I5v=document.getElementById(X.mainDivId); var o5w= false; var O5w; if (I5v==null){o5w= true; }else {if (arguments && arguments.length && arguments.length>0 && arguments[0] && arguments[0].length){for (var i=0; i<arguments[0].length; i++){O5w=arguments[0][i].substr(1).replace(/\$/g,"_"); var l5w=document.getElementById(O5w); if (l5w!=null){var ic=I5v.parentNode; while (ic && ic!=l5w && ic.tagName.toUpperCase()!="BODY"){ic=ic.parentNode; }if (ic==l5w){o5w= true; break; }}}}}HTMLEditor.l9[oh].I9=o5w; if (o5w){try {X.on(); }catch (o4u){} ; if (typeof X.Ob=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.Ob); X.Ob=null; }HTMLEditor.l9[oh].oa= false; if (!X._autoFocus && !X._wasFocused && I5v!=null){X.focusEditor(); HTMLEditor.i18(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.i18(X.ShowQuickFormatDivId); }if (I5v!=null)X.UnlinkEditorOject(); if (X.n!=null){i5v.push(X.n); }}}}var i5w=O5v.apply(l5v,arguments); while (i5v.length>0){try {var I5w=i5v.pop(); var lk=I5w.parentNode.removeChild(I5w); delete lk; }catch (w){}}setTimeout( function (){var o5x=[]; for (var oh=0; oh<HTMLEditor.l9.length; oh++){var X=HTMLEditor.l9[oh].X; var I5v=document.getElementById(X.mainDivId); if (I5v==null){o5x.push(X); }else {if (X.isActivated && X.mainDivVisible && X.l1=="html"){HTMLEditor.ly(X,X.i1,!X.showAnchors); HTMLEditor.iy(X,X.i1,!X.showPlaceHolders); X.updateToolbar(); }try {X.l2s(); }catch (t){}}}for (var oh=0; oh<o5x.length; oh++){var X=o5x[oh]; try {X.l2s(); }catch (t){}X.UnlinkEditorOject(); HTMLEditor.oc(X); }} ,0); return i5w; } ; }if (typeof window.__doPostBack=="function"){var O5x=window.__doPostBack; window.__doPostBack= function (l4r,i4r){for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; if (document.getElementById(X.mainDivId)==null)continue; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X))return; }if (!(!X.AjaxCurrentContent && !X.o0))try {X.openWait(); }catch (t){} ; }}setTimeout( function (){for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; if (document.getElementById(X.mainDivId)==null)continue; if (HTMLEditor.is_Safari){try {X.Om(); }catch (t){} ; }}}O5x(l4r,i4r); } ,0); } ; }if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){var ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (ip._oboutEditor_onFormSubmit==null || typeof ip._oboutEditor_onFormSubmit=="undefined"){ip._oboutEditor_onFormSubmit=ip._onsubmit; ip._onsubmit= function (){for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){HTMLEditor.l9[oh].X.Ip= false; }}var le= true; if (ip._oboutEditor_onFormSubmit!=null && typeof ip._oboutEditor_onFormSubmit!="undefined")le=ip._oboutEditor_onFormSubmit(); for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; if (!X.Ip){try {le=le && X.__submit(); }catch (w){}}X.Ip= false; }}return le; } ; }}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 (ll,value){G(ll,value); for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; if (document.getElementById(X.mainDivId)!=null){var ic=document.getElementById(X.mainDivId).parentNode; while (ic && ic!=ll && ic.tagName && ic.tagName.toUpperCase()!="BODY")ic=ic.parentNode; if (ic==ll){if (!value){if (X.mainDivVisible && X.os){X.setVisibility( false); }}else {if (X.It() && !X.mainDivVisible && X.os){X.setVisibility( true); }}}}}}};}if (typeof window.Page_ClientValidate=="function"){var l5x=window.Page_ClientValidate; window.Page_ClientValidate= function (i21){for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; var Ia=X.clientID; var Oa=document.getElementById(Ia); var I18=""; if (Oa==null){if (document.getElementsByName(Ia) && document.getElementsByName(Ia).length && document.getElementsByName(Ia).length>0)Oa=document.getElementsByName(Ia)[0]; }if (Oa!=null){if (X.clientValidation){I18=X.getContent(); }else {if (X.l1=="preview"){if (X.i15=="html")I18=X.O19; else I18=X.o15.value; }else if (HTMLEditor.is_ie){if (X.l1=="html"){I18=X.i1.body.innerHTML; }else {if (X.o15)I18=X.o15.value; }}else {I18=X.getHTML(); }I18=HTMLEditor.I12(I18); if (I18.length>0)if (I18.toLowerCase()=="<br />" || I18.toLowerCase()=="<br/>" || I18.toLowerCase()=="<br>")I18=""; else I18="content"; }Oa.value=I18; }HTMLEditor.l9[oh].Oa=Oa; }}var le=l5x(i21); for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; var Oa=HTMLEditor.l9[oh].Oa; if (Oa!=null){Oa.value=""; }}}return le; } ; }};try {if (document.all)document.body.onload=HTMLEditor.z; else window.onload=HTMLEditor.z; }catch (w){setTimeout( function (){HTMLEditor.z(null, true); } ,0); }HTMLEditor.i5x=["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.i2p= function (html){var le=HTMLEditor.I12(html.replace(/[\0-\x1f]+/g," ")); var I5x; le=le.replace(/^[^\0]+?<html(?:[^>]*?)>/gi,""); le=le.replace(/<\/html(?:[^>]*?)>[^\0]*$/gi,""); le=le.replace(/<head(?:[^>]*?)>[^\0]*?<\/head(?:[^>]*?)>/gi,""); le=le.replace(/<body[^>]*?>([^\0]*?)<\/body(?:[^>]*?)>/gi,"$1"); le=le.replace(/<\/?html(?:[^>]*?)>/gi,""); le=le.replace(/<\/?head(?:[^>]*?)>/gi,""); le=le.replace(/<\/?body(?:[^>]*?)>/gi,""); le=le.replace(/<!--(\w|\W)+?-->/ig,""); le=le.replace(/(<[\/]?)(?:o|v|x|p|w|\?xml):(\w+)([^>]*?>)/ig,"$1$2$3"); le=le.replace(/<(IMAGEDATA)([^>]*?)>/ig,"<img$2>"); le=le.replace(/<p[^>]*><p>&nbsp;<\/p><\/p>/ig,"<br>"); le=le.replace(/<p[^>]*?\/>/ig,"").replace(/<(p|div)[^>]*?>&nbsp;<\/(\1)[^>]*?>/ig,"").replace(/<(p|div)[^>]*?><\/(\1)[^>]*?>/ig,""); do {I5x=le; le=le.replace(/<([^>]*)(?:class|size|lang|face|start|type|border|[ovwxp]:\w+)=(?:'[^']*'|"[^"]*"|[^> ]+)([^>]*)>/ig,"<$1$2>"); }while (le!=I5x);var div=document.createElement("div"); div.innerHTML=le; function l20(ic){var l37=ic.childNodes.length; for (var i=0; i<ic.childNodes.length; i++){var o36=ic.childNodes.item(i); if (o36.nodeType==1){if (o36.tagName.indexOf("/")>=0){i--; o36.parentNode.removeChild(o36); }else {var search=o36.tagName.toLowerCase(); var it= false; var o5y=HTMLEditor.i5x.length; for (var oh=0; oh<o5y; oh++)if (HTMLEditor.i5x[oh]==search){it= true; break; }l20(o36); if (!it){i+=o36.childNodes.length; while (o36.firstChild)o36.parentNode.insertBefore(o36.firstChild,o36); o36.parentNode.removeChild(o36); i--; }else {var O5y=o36.style.backgroundColor; var l5y=o36.style.color; o36.style.cssText=""; o36.removeAttribute("style"); if (o36.getAttribute("width") && o36.getAttribute("width").length>0)o36.style.width=o36.getAttribute("width"); if (o36.width && o36.width.length>0)o36.style.width=o36.width; o36.width=""; try {o36.removeAttribute("width"); }catch (t){}if (o36.getAttribute("height") && o36.getAttribute("height").length>0)o36.style.height=o36.getAttribute("height"); if (o36.height && o36.height.length>0)o36.style.height=o36.height; o36.height=""; try {o36.removeAttribute("height"); }catch (t){}if (search=="table"){o36.style.borderLeftWidth="1px"; o36.style.borderLeftColor="black"; o36.style.borderLeftStyle="solid"; o36.style.borderTopWidth="1px"; o36.style.borderTopColor="black"; o36.style.borderTopStyle="solid"; o36.style.backgroundColor=O5y; o36.style.color=l5y; }if (search=="td"){o36.style.borderRightWidth="1px"; o36.style.borderRightColor="black"; o36.style.borderRightStyle="solid"; o36.style.borderBottomWidth="1px"; o36.style.borderBottomColor="black"; o36.style.borderBottomStyle="solid"; o36.style.backgroundColor=O5y; o36.style.color=l5y; }if (search=="font" || search=="span"){o36.style.backgroundColor=O5y; o36.style.color=l5y; var l2y=o36.attributes; var l37=0; for (var O5j=0; O5j<l2y.length; ++O5j){var a=l2y.item(O5j); if (!a.specified)continue; l37++; }if (l37==0 && o36.style.cssText==""){i+=o36.childNodes.length; while (o36.firstChild)o36.parentNode.insertBefore(o36.firstChild,o36); o36.parentNode.removeChild(o36); i--; }}}}}}}l20(div); le=HTMLEditor.I12(div.innerHTML); delete div; le=le.replace(/<[\/]?(xml|del|ins)[^>]*?>/ig,""); le=le.replace(/<(p|div)[^>]*?>/ig,""); le=le.replace(/<\/(p|div)[^>]*?>/ig,"<br>"); do {I5x=le; le=le.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,""); le=le.replace(/<span[^>]*?><\/span>/ig,"").replace(/<span>([^<]+?)<\/span>/ig,"$1"); le=le.replace(/<font[^>]*?><\/font>/ig,"").replace(/<font>([^<]+?)<\/font>/ig,"$1"); }while (le!=I5x);le=le.replace(/&rsquo;/g,"'"); le=le.replace(/&lsquo;/g,"'"); le=le.replace(/&ndash;/g,"-"); le=le.replace(/&mdash;/g,"-"); le=le.replace(/&hellip;/g,"..."); le=le.replace(/&quot;/g,"\""); le=le.replace(/&ldquo;/g,"\""); le=le.replace(/&rdquo;/g,"\""); le=le.replace(/\cA/g,""); le=le.replace(/&bull;/g,""); le=le.replace(/[ ]+/g," ").replace(/(&nbsp;)+/g,"&nbsp;"); if (document.all)le=le.replace(/^[\0-\x1f]*&nbsp;/,""); return le; };HTMLEditor.prototype.o10= function (ij,clientX,clientY){var Oq; var iq; var parent; var X=this ; if (HTMLEditor.o11)this.f= true; X.i1f(); if (HTMLEditor.is_Safari && ij!=null){parent=ij.target; }else {Oq=X.lq(); iq=X.Iq(Oq); parent=HTMLEditor.getSelParent(X); }var i5y= false; var I5y=parent; var o5z=parent; X.O5z=[]; X.O10=null; while (o5z.nodeType==3 || (o5z.tagName && o5z.tagName.toUpperCase()!="BODY")){var par=o5z.parentNode; var l5z=0; for ( ; l5z<par.childNodes.length; l5z++)if (par.childNodes.item(l5z)==o5z)break; X.O5z.push(l5z); o5z=o5z.parentNode; }setTimeout( function (){var i5z=document.createElement("DIV"); i5z.className="CNTXT_div"; var html=new l29(); var I5z=0; html.write("<table>"); X.Oe=[]; var o60=X._ContextMenu; for (var oh=0; oh<o60.length; oh++){o60[oh][3]= false; }while (parent!=null){if (parent.tagName){if (parent.getAttribute(HTMLEditor.ot) && parent.getAttribute(HTMLEditor.ot).length>0){}else {var I9=(I5z>0); for (var oh=0; oh<o60.length; oh++){var O60=o60[oh][0].toUpperCase().split(" "); var l60= true; var tagName=parent.tagName; if (parent.getAttribute("dummytag") && parent.getAttribute("dummytag").length>0)tagName=parent.getAttribute("dummytag"); if (O60[0]==tagName.toUpperCase() && O60.length>1){var l2y=parent.attributes; var value=""; var name=""; l60= false; for (var i=0; i<l2y.length; ++i){var a=l2y.item(i); if (!a.specified)continue; name=a.name.toUpperCase(); value=a.value.toUpperCase(); if (name==O60[1]){l60= true; break; }}if (l60 && O60.length>2){if (O60[2]!=value){l60= false; }else {if (value.toLowerCase()=="application/x-mplayer2")i5y= true; }}}if (parent.className && parent.className==HTMLEditor.om)l60= false; if (((O60[0]==tagName.toUpperCase()) || (HTMLEditor.contentEditable(parent, true) && O60[0].toLowerCase()=="#contenteditable#")) && !o60[oh][3] && !o60[oh][6] && l60){if (HTMLEditor.contentEditable(parent, true) && O60[0].toLowerCase()=="#contenteditable#"){I9= false; I5z=0; html.clear(); html.write("<table>"); X.Oe=[]; for (var i60=0; i60<o60.length; i60++){o60[i60][3]= false; }}if (I9){X.Oe.push([null,null]); html.write("<tr><td nowrap><hr></td></tr>"); I5z++; I9= false; }o60[oh][3]= true; var I60=HTMLEditor.is_ie || o60[oh][4]; if (o60[oh][5] && typeof o60[oh][5]=="function"){I60 &= o60[oh][5](X,parent); }if (I60){var o5z=parent; var lg=[]; while (o5z.tagName.toUpperCase()!="BODY"){var par=o5z.parentNode; var l5z=0; for ( ; l5z<par.childNodes.length; l5z++)if (par.childNodes.item(l5z)==o5z)break; lg.push(l5z); o5z=o5z.parentNode; }X.Oe.push([o60[oh][1],lg,(o60[oh][5] && typeof o60[oh][5]=="string")]); }else {X.Oe.push([null,[]]); }if (o60[oh][1]==null)html.write("<tr><td nowrap><hr></td></tr>"); else html.write("<tr><td nowrap>&nbsp;&nbsp;&nbsp;"+o60[oh][2]+"</td></tr>"); I5z++; }}}}parent=parent.parentNode; }html.write("</table>"); if (I5z>0){if (HTMLEditor.is_ie){if (Oq.type.toLowerCase()=="control"){try {X.O10=X.i1.body.createControlRange(); while (iq.length>0){X.O10.add(iq.item(0)); iq.remove(0); try {iq.collapse( false); }catch (t){}}Oq.empty(); }catch (t){}}}var l1x=document.createElement("div"); l1x.innerHTML=html.toString(); var o61=l1x.firstChild; o61.className="CNTXT_menu"; for (var i=0; i<I5z; i++){var O61=o61.rows.item(i); if (X.Oe[i][0])O61.className="CNTXT_item"; else O61.className="CNTXT_item_disable"; }function l61(){for (var i=0; i<I5z; i++){var O61=o61.rows.item(i); var i61=O61.cells.item(0); i61.style.width="auto"; i61.style.verticalAlign="top"; i61.style.borderWidth="0px"; i61.style.margin="0px"; i61.style.padding="0px"; i61.style.fontWeight="normal"; if (X.Oe[i][0]){O61.className="CNTXT_item"; HTMLEditor.Iv([O61],["mouseover"], function (t){var ll; if (HTMLEditor.is_ie){t=window.event; ll=t.srcElement; }else {ll=t.target; }while (ll && (!ll.tagName || ll.tagName.toUpperCase()!="TR"))ll=ll.parentNode; ll.className="CNTXT_item_over"; return true; } ); HTMLEditor.Iv([O61],["mouseout"], function (t){var ll; if (HTMLEditor.is_ie){t=window.event; ll=t.srcElement; }else {ll=t.target; }while (ll && (!ll.tagName || ll.tagName.toUpperCase()!="TR"))ll=ll.parentNode; ll.className="CNTXT_item"; HTMLEditor._stopEvent(t); } ); HTMLEditor.Iv([O61],["mousedown"], function (t){var ll; if (HTMLEditor.is_ie){t=window.event; ll=t.srcElement; }else {ll=t.target; }while (ll && (!ll.tagName || ll.tagName.toUpperCase()!="TR"))ll=ll.parentNode; HTMLEditor._stopEvent(t); setTimeout( function (){var i2d= false; try {if (X.O10){if (X.O10.item(0).tagName.toUpperCase()!="EMBED"){X.O10.select(); X.O10=null; }else {while (X.O10.length>0){while (X.O10.length>0)X.O10.remove(0); try {X.O10.collapse( false); }catch (t){}}X.O10=null; }}else if (HTMLEditor.is_ie)if (iq!=null)try {iq.select(); }catch (t){}var I61=X.Oe[ll.rowIndex][0]; var o62=X.i1.body; var O62=X.i1.body; var l62=!(X.Oe[ll.rowIndex][2]); var lg=X.Oe[ll.rowIndex][1]; var oe=X.Id.parentNode.removeChild(X.Id); while (lg.length>0)o62=o62.childNodes.item(lg.pop()); while (X.O5z.length>0)O62=O62.childNodes.item(X.O5z.pop()); delete oe; if (HTMLEditor.is_Safari)if (X.l10){var i62=X.lq(); var i1b=X.l10; X.I17(i62,i1b); X.l10=null; }if (l62){X.i10(); i2d= true; }I61(X,o62,O62); X.Id=null; HTMLEditor.Id=null; X.Oe=null; }catch (w){try {if (i2d)X.I1e( false); if (HTMLEditor.is_ie){HTMLEditor.l1o(ll,X); }}catch (I13){}}} ,012); } ); }else {O61.className="CNTXT_item_disable"; }}}if (HTMLEditor.is_ie && i5y)setTimeout( function (){X.O10=null; iq=null; X.O2e(null,l61);} ,0); else l61(); HTMLEditor.Iv([i5z],["contextmenu"], function (t){try {if (HTMLEditor.is_ie)iq.select(); else X.I17(Oq,iq); }catch (I62){}HTMLEditor._stopEvent(t); return false; } ); i5z.style.position="absolute"; i5z.style.display=""; i5z.appendChild(o61); i5z.style.visibility="hidden"; var I56=X.A; var ll=X._textArea.parentNode.parentNode; var O1y=0,_top=0; if (!X._InsideOboutWindow)while (ll!=X.A){if (HTMLEditor.Iy(ll,"position").toLowerCase()=="absolute"){I56=X._textArea.parentNode.parentNode; var I2r=HTMLEditor.o2s((X.o1.document.compatMode=="BackCompat" && HTMLEditor.is_ie)?I56:ll, false); O1y=I2r.O1y; _top=I2r._top; break; }ll=ll.parentNode; }I56.appendChild(i5z); var y; var x; var O54; var zIndex=045070; ll=X._iframe; var o63=HTMLEditor.o2s(X._iframe, false); while (ll && typeof ll!="undefined" && ll!=I56){var O63=parseInt(HTMLEditor.Iy(ll,"z-index")); if (!isNaN(O63) && O63>zIndex)zIndex=O63+1; ll=ll.parentNode; }y=clientY+o63._top-_top; x=clientX+o63.O1y-O1y; var l2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientWidth:X.o1.document.documentElement.clientWidth; var i2r=(X.o1.document.compatMode=="BackCompat")?X.A.clientHeight:X.o1.document.documentElement.clientHeight; var Height=i2r+i54(X.o1.document); var Width=l2r+_GetScrollLeft(X.o1.document); var l63=i5z.offsetHeight; var i63=i5z.offsetWidth; var I63=y; var o64=x; if (I63+l63>Height)y-=I63+l63-Height; if (o64+i63>Width)x-=o64+i63-Width; i5z.style.top=y+"px"; i5z.style.left=x+"px"; X.Id=i5z; HTMLEditor.Id=i5z; i5z.style.visibility="visible"; i5z.style.zIndex=zIndex; }else { delete i5z; X.Id=null; HTMLEditor.Id=null; }} ,0); if (ij!=null)HTMLEditor._stopEvent(ij); return false; };HTMLEditor.prototype.o1g= function (){var Oq; var iq; var parent; var X=this ; Oq=X.lq(); iq=X.Iq(Oq); parent=HTMLEditor.getSelParent(X); var l2r=X.i1.body.offsetWidth; var i2r=X.i1.body.offsetHeight; var l54=i2r/2; if (l54<=0)l54=024; var clientY=l54; var clientX=l2r/2; X.o10(null,clientX,clientY); };HTMLEditor.O21= function (ll,Ox,Im){var l21; if (HTMLEditor.is_ie && ll.tagName && (ll.tagName.toUpperCase()=="EMBED" || ll.tagName.toUpperCase()=="OBJECT")){var div=Ox.createElement("DIV"); try {div.innerHTML=ll.outerHTML; l21=div.firstChild; }catch (t){l21=ll; } delete div; }else l21=ll.cloneNode(Im); return l21; };HTMLEditor.l33= function (O64){var value; var l37; try {l37=parseInt(O64)-1; }catch (t){return O64; }switch (l37){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=O64.replace(/"/g,"&quot;"); }return value; };HTMLEditor.od= function (ij){if (ij.propertyName=="style.display")if (HTMLEditor.l64==null || typeof HTMLEditor.l64=="undefined"){HTMLEditor.l64= function (){for (var i=0; i<HTMLEditor.lv.length; i++){var parent=HTMLEditor.lv[i]; if (parent.Ov!=null)if (parent.Ov!=""+parent.style.display+""){if (typeof parent.Od=="function"){parent.Od( {srcElement:parent,propertyName: "style.display" } ); }}parent.Ov=parent.style.display; }setTimeout( function (){HTMLEditor.l64=null; } ,0); } ; setTimeout(HTMLEditor.l64,024); }};if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari)try {CSSStyleDeclaration.prototype.__defineSetter__("display", function (value){HTMLEditor.od( {srcElement:parent,propertyName: "style.display" } ); this.setProperty("display",value,"important"); } ); }catch (w){}HTMLEditor.lv=[]; HTMLEditor.ld= function (O1p){var le=[]; for (var i=0; i<HTMLEditor.lv.length; i++){var i16=HTMLEditor.lv[i]; if (i16!=O1p){le.push(i16); }}HTMLEditor.lv=le; };if (!HTMLEditor.is_ie)try {HTMLElement.prototype.__defineGetter__("innerText", function (){var html=new l29( true); HTMLEditor.i64(this,html); return html.toString(); } );}catch (w){}HTMLEditor.i64= function (i2e,html){var O36=i2e.childNodes; for (var i=0; i<O36.length; i++){var ic=O36[i]; if (ic.nodeType==3)html.write(ic.nodeValue.replace("\n","")); if (ic.nodeType==1){var display=HTMLEditor.Iy(ic,"display"); var visibility=HTMLEditor.Iy(ic,"visibility"); if (HTMLEditor.I64(ic))html.write("\n"); if (HTMLEditor.o65(ic))html.write("\t"); if (display!="none" && visibility!="hidden")HTMLEditor.i64(ic,html); if (HTMLEditor.O65(ic))html.write("\n"); }}};HTMLEditor.I64= function (ll){var l65=" div table p pre ol ul blockquote form fieldset "; return (l65.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.O65= function (ll){var l65=" br div table tr p pre ol ul li hr blockquote form fieldset legend "; return (l65.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.o65= function (ll){var l65=" td li "; return (l65.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.canHaveChildren= function (ic){if (HTMLEditor.is_ie)return ic.canHaveChildren; else return !/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(ic.tagName.toLowerCase()); };HTMLEditor.contentEditable= function (ll,Im){while (ll!=null){try {var i65=null; if (ll.contentEditable!=null && typeof ll.contentEditable!="undefined" && !(HTMLEditor.is_Safari || HTMLEditor.o11)){if (!ll.contentEditable || ll.contentEditable=="false")i65= false; else i65= true; }else {var value=ll.getAttribute("contenteditable"); if (typeof value=="boolean")i65=value; else if (typeof value=="string" && value.toLowerCase()=="false")i65= false; }if (i65!=null && typeof i65=="boolean"){if (!i65){return ll; }}}catch (w){}if (typeof Im!="undefined" && Im)return null; if (ll.tagName!=null && typeof ll.tagName!="undefined" && (ll.tagName.toUpperCase()=="BODY" || ll.tagName.toUpperCase()=="HTML"))break; ll=ll.parentNode; }return null; };HTMLEditor.prototype.O47= function (){var X=this ; var l47=this.lq(); var iq; try {iq=this.Iq(l47); }catch (w){return false; }var ll; if (!HTMLEditor.is_ie){ll=HTMLEditor.contentEditable(iq.startContainer); if (ll==null)ll=HTMLEditor.contentEditable(iq.endContainer); }else ll=HTMLEditor.contentEditable(HTMLEditor.getSelParent(X)); if (HTMLEditor.is_ie && ll!=null){try {iq.remove(ll); }catch (t){}iq=X.i1.body.createControlRange(); iq.add(ll); iq.select(); }else if (!HTMLEditor.is_ie && ll!=null){var Oq=X.lq(); var l17; if (ll.nextSibling!=null && ll.nextSibling.nodeType==3){l17=ll.nextSibling; }else {l17=X.i1.createTextNode(""); if (ll.nextSibling!=null)ll.parentNode.insertBefore(l17,ll.nextSibling); else ll.parentNode.appendChild(l17); }X.i17(Oq); var iq=X.Iq(Oq); iq.setStart(l17,0); iq.setEnd(l17,0); X.I17(Oq,iq); }return true; };HTMLEditor.i4c= function (t){var I65=t.keyCode?t.keyCode:t.which; var o66=t.shiftKey?t.shiftKey: ((I65==020)? true : false); if (((I65>=0101 && I65<=0132) && !o66) || ((I65>=0141 && I65<=0172) && o66))return true; else return false; };HTMLEditor.O66= {l66: 1,i66: 2,I66: 3,o67: 4,O67: 5,l67: 6,i67: 7,I67: 8,o68: 011,O68: 012,l68: 013,i68: 014 } ; HTMLEditor.I68= function (i2e){return i2e.nodeType==HTMLEditor.O66.o68?i2e:i2e.ownerDocument || i2e.document; } ; HTMLEditor.o69= function (O69){var Ox; if (O69.nodeType==HTMLEditor.O66.o68){Ox=O69; }else {Ox=HTMLEditor.I68(O69); }if (HTMLEditor.is_ie && Ox.compatMode!="CSS1Compat"){return Ox.body; }return Ox.documentElement; };HTMLEditor.O5c= function (ll){var Ox=HTMLEditor.I68(ll); var l69=HTMLEditor.l28 && Ox.getBoxObjectFor && HTMLEditor.Iy(ll,"position")=="absolute" && (ll.style.top=="" || ll.style.left==""); var i69=HTMLEditor.I2h && !HTMLEditor.o2n.o2n("1.8.0.11"); var i4o= {x: 0,y: 0 } ; var I69=HTMLEditor.o69(Ox); if (ll==I69){return i4o; }var parent=null; var o6a; if (Ox.getBoxObjectFor && !l69 && !i69){o6a=Ox.getBoxObjectFor(ll); var O6a=Ox.getBoxObjectFor(I69); i4o.x=o6a.screenX-O6a.screenX; i4o.y=o6a.screenY-O6a.screenY; }else if (ll.getBoundingClientRect){o6a=ll.getBoundingClientRect(); var scrollTop=I69.scrollTop; var scrollLeft=I69.scrollLeft; i4o.x=o6a.left+scrollLeft; i4o.y=o6a.top+scrollTop; }else {var l6a=ll; while (ll && typeof ll!="undefined" && ll.tagName.toUpperCase()!="BODY" && ll.tagName.toUpperCase()!="HTML"){i4o.x+=parseInt(ll.offsetLeft); i4o.y+=parseInt(ll.offsetTop); ll=ll.offsetParent; if (ll && typeof ll!="undefined"){if (ll.clientLeft)i4o.x+=parseInt(ll.clientLeft); if (ll.clientTop)i4o.y+=parseInt(ll.clientTop); }}ll=l6a; if (HTMLEditor.o11 || (HTMLEditor.l2h && HTMLEditor.Iy(ll,"position")=="absolute")){i4o.y-=Ox.body.offsetTop; }parent=ll.offsetParent; while (parent && parent!=Ox.body){i4o.x-=parent.scrollLeft; if (!HTMLEditor.o11 || parent.tagName!="TR"){i4o.y-=parent.scrollTop; }parent=parent.offsetParent; }}return i4o; } ; 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();
