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.AjaxCurrentContent= true; this.NoScript= false; this.InitialCleanUp= false; this.NoUnicode= true; this.o0= false; this.ClientCancel=null; this.O0=(document.getElementById("propertiesScript_"+this.W)!=null); this.onDrop=null; this._remainLf= false; this.onClientContentChanged=null; this.l0=null; this.captureInDesign=null; this.dfltBlockElement="P"; this.ShowQuickFormatDivId=null; this._hiddenContent=null; this._hiddenCSS=null; if ((typeof I=="undefined") || I==null)this.I=new HTMLEditor.i0(); else this.I=I; if ((typeof A=="undefined") || A==null)this.A=document.body; else this.A=A; this.I0=window; this.o1=null; this.O1="html"; this.l1=null; this.i1=null; this._CSSfile=""; this._StartEnd= false; this.HTMLEditor=HTMLEditor; this._ContextMenu=[["#contenteditable#",HTMLEditor.I1,"Make editable", false , true ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.o2,"Flash properties", false , true ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.O2,"Copy Flash", false , false ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.l2,"Cut Flash", false , false ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.i2,"Delete Flash", false , true ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.I2,"Media properties", false , true ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.O2,"Copy Media", false , false ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.l2,"Cut Media", false , false ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.i2,"Delete Media", false , true ,"inner", false],["INPUT",HTMLEditor.o3,"INPUT properties", false , true ,"inner", false],["INPUT",HTMLEditor.i2,"Delete INPUT", false , true ,"inner", false],["PLACEHOLDER",HTMLEditor.O3,"PlaceHolder properties", false , true ,"inner", false],["PLACEHOLDER",HTMLEditor.i2,"Delete PlaceHolder", false , true ,"inner", false],["IMG",HTMLEditor.l3,"Image properties", false , true ,"inner", false],["IMG",HTMLEditor.O2,"Copy Image", false , false ,"inner", false],["IMG",HTMLEditor.l2,"Cut Image", false , false ,"inner", false],["IMG",HTMLEditor.i2,"Delete Image", false , true ,"inner", false],["DIV",HTMLEditor.i3,"DIV properties", false , true ,"inner", false],["DIV",HTMLEditor.i2,"Remove DIV", false , true ,"inner", false],["DIV",HTMLEditor.I3,"Remove DIV tag", false , true ,"inner", false],["A href",HTMLEditor.o4,"URL Link properties", false , true ,"inner", false],["A href",HTMLEditor.I3,"Remove URL Link", false , true ,"inner", false],["A name",HTMLEditor.O4,"Anchor properties", false , true ,"inner", false],["A name",HTMLEditor.i2,"Delete Anchor", false , true ,"inner", false],["TD",HTMLEditor.l4,"Cell properties", false , true ,"inner", false],["TABLE",HTMLEditor.i4,"Table properties", false , true ,"inner", false],["TABLE",HTMLEditor.O2,"Copy Table", false , false ,"inner", false],["TABLE",HTMLEditor.l2,"Cut Table", false , false ,"inner", false],["TABLE",HTMLEditor.i2,"Delete Table", false , true ,"inner", false],["FORM",HTMLEditor.I4,"Form properties", false , true ,"inner", false],["FORM",HTMLEditor.i2,"Remove FORM", false , true ,"inner", false],["FORM",HTMLEditor.I3,"Remove FORM tag", false , true ,"inner", false],["BODY",HTMLEditor.o5,"Cut", false , false ,HTMLEditor.O5, false],["BODY",HTMLEditor.l5,"Copy", false , false ,HTMLEditor.O5, false],["BODY",HTMLEditor.i5,"Paste", false , false ,HTMLEditor.I5, false],["BODY",HTMLEditor.o6,"Paste Plain Text", false , true ,HTMLEditor.I5, false],["BODY",HTMLEditor.O6,"Delete", false , true ,HTMLEditor.O5, false],["BODY",null,"", false , true ,"inner", false],["BODY",HTMLEditor.l6,"Select All", false , true ,"inner", false]]; try {var i6="?"+document.getElementsByName("OboutEditorVersion")[0].value; this.i6=i6; var I6=document.getElementsByName("FolderScript")[0].value; var o7=document.getElementsByName("FolderScriptSession")[0].value; this.O7=document.getElementsByName("FolderStyle")[0].value; this.l7=document.getElementsByName("FolderIcon")[0].value; this._FolderScript=I6; this.i7=o7; this.I7=null; this._tableProperties=e[1]; this._cellProperties=e[2]; this._imageProperties=e[3]; this._flashProperties=e[4]; this._mediaProperties=e[5]; this._bgImageProperties=e[6]; this._mozPastePlain=e[7]; this._selectColor=e[8]; this._clearStyles=e[011]; this._urlProperties=e[012]; this._insertIcon=e[013]; this._insertAnchor=e[014]; this._insertPlaceHolder=e[015]; this._insertSpec=e[016]; this._imageBrows=e[017]; this._flashBrows=e[020]; this._mediaBrows=e[021]; this._urlBrows=e[022]; this._spellCheck=e[023]; this._customPopup=e[024]; var X=this ; HTMLEditor._CUROBJ_=X; HTMLEditor.o8=0; this.O8=null; if (HTMLEditor.l8(".HE_editPanel"))this.O8= {i8: this._textArea.offsetWidth,I8: this._textArea.offsetHeight } ; this.o1=null; }catch (t){alert("Init : "+t.message); }}else { this.scriptVersion="notsupported"; }} ; HTMLEditor.o9=[]; HTMLEditor.O9= function (X){ this.X=X; this.id=X.W; this.O=X.O; this.l9= false; this.i9= true; this.I9=null; } ; HTMLEditor.oa= function (O){for (var i=0; i<HTMLEditor.o9.length; i++){if (O==HTMLEditor.o9[i].O){return HTMLEditor.o9[i].X; }}return null; };HTMLEditor.Oa= function (clientID){for (var i=0; i<HTMLEditor.o9.length; i++){if (clientID==HTMLEditor.o9[i].id){return HTMLEditor.o9[i].X; }}return null; };function oboutGetEditor(la){return HTMLEditor.oa(la); }function oboutGetEditorByClientId(la){return HTMLEditor.Oa(la); }HTMLEditor.ia= function (id){for (var i=0; i<HTMLEditor.o9.length; i++){if (id==HTMLEditor.o9[i].id){return HTMLEditor.o9[i].X; }}return null; };HTMLEditor.R= function (X){var id=X.W; var index=-1; for (var i=0; i<HTMLEditor.o9.length; i++){if (id==HTMLEditor.o9[i].id){if (HTMLEditor.S()){if (typeof X.Ia=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.Ia); X.Ia=null; }}index=i; break; }}if (index>=0)HTMLEditor.o9[index]=new HTMLEditor.O9(X); else HTMLEditor.o9.push(new HTMLEditor.O9(X)); if (HTMLEditor.S()){X.Ia= function (ob,Ob){try {if (X._AjaxWait){X.UnlinkEditorOject(); X.lb(); }}catch (t){}} ; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(X.Ia); }};HTMLEditor.ib= function (X){var id=X.W; var index= false; var Ib=[]; for (var i=0; i<HTMLEditor.o9.length; i++){if (id!=HTMLEditor.o9[i].id){Ib.push(HTMLEditor.o9[i]); }}HTMLEditor.o9=Ib; };HTMLEditor.prototype.oc= function (){HTMLEditor.R(this ); };HTMLEditor.prototype.UnlinkEditorOject= function (){var X=this ; if (typeof X.g=="function"){if (document.getElementById(this.mainDivId)==null)return; var Oc=document.getElementById(this.mainDivId).parentNode; while (Oc && Oc.tagName && Oc.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.lc(Oc,"propertychange",HTMLEditor.ic); Oc.Ic=null; HTMLEditor.od(Oc); }else {Oc.Ic=null; HTMLEditor.od(Oc); }Oc=Oc.parentNode; }X.J= false; }try {X.clearPopups( true); }catch (w){}try {if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; }}catch (w){}};HTMLEditor.S= function (){if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined"))return true; return false; };HTMLEditor.prototype.getScriptById= function (name){var oe=document.getElementById(name); if (oe==null){var cell=document.getElementById(this.mainDivId).firstChild.rows.item(0).cells.item(0); for (var i=0; i<cell.childNodes.length; i++){var item=cell.childNodes.item(i); if (item.tagName && item.tagName.toUpperCase()=="SCRIPT"){oe=item; break; }}}if (oe!=null){var text=oe.text; if (typeof text=="undefined" || text=="")text=oe.innerHTML; var Oe="try{null}catch(ex){}"; var le=text.indexOf(Oe); var ie=text.lastIndexOf(Oe); if (le>=0 && ie>=0){text=text.substring(le+Oe.length,ie); oe=new Object(); oe.text=text; }}return oe; };HTMLEditor.prototype.Ie= function (name,of){for (var i=0; i<this.main_alerts.length; i++){if (name.toLowerCase()==this.main_alerts[i].name.toLowerCase())return this.main_alerts[i].message; }return of; };HTMLEditor.prototype.Of= function (name,of){for (var i=0; i<this.popup_headers.length; i++){if (name.toLowerCase()==this.popup_headers[i].name.toLowerCase())return this.popup_headers[i].title; }return of; };HTMLEditor.prototype.If= function (name,of){for (var i=0; i<this.popup_headers.length; i++){if (name.toLowerCase()==this.popup_headers[i].name.toLowerCase())return this.popup_headers[i].message; }return of; };HTMLEditor.prototype._context_menu_loc= function (og){for (var i=0; i<this._ContextMenu.length; i++){var Og=this._ContextMenu[i]; var lg=Og[2].toLowerCase().replace(/\s/g,"-"); for (var ig=0; ig<og.length; ig++){var Ig=og[ig]; var oh=Ig[0].toLowerCase(); if (lg==oh){Og[2]=Ig[1]; break; }}}};HTMLEditor.prototype.RemoveContextMenuItem= function (Oh){var lh=Oh.toLowerCase(); for (var i=0; i<this._ContextMenu.length; i++){var Og=this._ContextMenu[i]; var lg=Og[2].toLowerCase().replace(/\s/g,"_"); if (lg==lh){Og[6]= true; break; }}};HTMLEditor._CUROBJ_=null; HTMLEditor.restoreOldTags=null; HTMLEditor.Od=null; HTMLEditor.o8=0; HTMLEditor.prototype.ih= function (Ih){if (this.k==0 && typeof this.onLoadingStart=="function")this.onLoadingStart((typeof Ih=="string")?Ih: "popup"); this.k++; };HTMLEditor.prototype.oi= function (Ih){if (this.k>0){ this.k--; if (this.k==0 && typeof this.onLoadingEnd=="function")this.onLoadingEnd((typeof Ih=="string")?Ih: "popup"); }};HTMLEditor.prototype.Oi= function (name){var og=[]; var X=this ; var ii; for (var i=1; i<arguments.length; i++)og.push(arguments[i]); function Ii(){X[name].apply(X,og); }function oj(Oj){try {Ii(); }catch (t){alert(t.message+"- Script loading failed..."); }if (!HTMLEditor.lj && !(/MSIE (8)/.test(navigator.userAgent)))setTimeout( function (){try {if (HTMLEditor.ij)HTMLEditor.lc(ii,"load",oj); document.body.removeChild(ii); }catch (t){alert("Late loaded function ("+name+"): "+t.message); }} ,5); HTMLEditor.o8--; if (HTMLEditor.o8==0)HTMLEditor._CUROBJ_=null; X.oi("script"); }try {Ii(); }catch (t){if (typeof X[name]=="string"){function Ij(){if (HTMLEditor._CUROBJ_!=null)setTimeout(Ij,0144); HTMLEditor._CUROBJ_=X; HTMLEditor.o8=0; var la=X[name]; X[name]=null; X.ih("script"); if (HTMLEditor.is_Safari && !HTMLEditor.ij){var ok=document.getElementById(X._hiddenContent+"_ifr_"+name); if (ok!=null){HTMLEditor.lc(ok,"load",oj); document.body.removeChild(ok); }ii=document.createElement("IFRAME"); ii.style.width="0px"; ii.style.height="0px"; ii.id=X._hiddenContent+"_ifr_"+name; HTMLEditor.Ok(ii,"load",oj); document.body.appendChild(ii); ok=document.getElementById(X._hiddenContent+"_ifr_"+name); ok.src=la; }else {ii=document.createElement("IFRAME"); ii.width="0"; ii.height="0"; ii.style.display="none"; if (HTMLEditor.is_Safari){ii.name=X._hiddenContent+"_ifr_"+name; }HTMLEditor.Ok(ii,"load",oj); ii.src=la; document.body.appendChild(ii); }HTMLEditor.o8++; }Ij(); }}};HTMLEditor.prototype.lk= function (Oj){var ik=Oj.target; var Ik=ik.tagName.toUpperCase(); if (!this.mainDivVisible)return true; if (Ik=="INPUT" || Ik=="TEXTAREA")return true; if (Oj.keyCode==8){HTMLEditor._stopEvent(Oj); return false; }var X=this ; setTimeout( function (){if (X.l1.body.offsetWidth==0 && X.mode()=="html" && X.mainDivVisible && X._iframe){X._textArea.value=X.getHTML(); var ll=X._textArea.parentNode.removeChild(X.o1); X.o1=null; delete ll; X.activate(); }} ,024); };HTMLEditor.il="OboutMSIEparagraph"; HTMLEditor.prototype.Il= function (om){if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (this.j>0){try { this.Om(); }catch (t){} ; return true; }else this.j=1; if (HTMLEditor.S()){if (!this.AjaxCurrentContent && !this.o0){if (this._hiddenContent){try {var Im="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(Im) && document.getElementsByName(Im).length && document.getElementsByName(Im).length>0){document.getElementsByName(Im)[0].value=""; }}catch (t){}}document.getElementsByName(this.content_submitted_name)[0].value=""; document.getElementsByName(this.content_canceled_name)[0].value=""; return true; } this.o0= false; }if (!X.h){var on=null;if (this._hiddenContent){try {var Im="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(Im) && document.getElementsByName(Im).length && document.getElementsByName(Im).length>0){document.getElementsByName(Im)[0].value=this.ContentChanged()?"1": ""; }}catch (t){} this.UnlinkEditorOject(); var On=this._formSubmit(); var In=On[0]; on=On[1]; if (X.NoScript)X._textArea.value=X._textArea.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); if (this._textArea.form){document.getElementsByName(this._hiddenContent)[0].value=In; }}if (this._hiddenCSS){document.getElementsByName(this._hiddenCSS)[0].value=this._CSSfile; }X.setOriginal(on); }else {if (this._hiddenContent){try {var Im="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(Im) && document.getElementsByName(Im).length && document.getElementsByName(Im).length>0){document.getElementsByName(Im)[0].value=""; }}catch (t){}}}document.getElementsByName(this.content_submitted_name)[0].value=X.H?"1": ""; X.H= false; document.getElementsByName(this.content_canceled_name)[0].value=X.h?"1": ""; X.h= false; if (!this.oo && this.mainDivVisible)return false; try { this.Om(); }catch (t){} ; if (!this._textArea.form){try { this.Om(); }catch (t){} ; return true; }if (typeof om!="undefined" && om== true){ this._textArea.form.submit(); }return true; };HTMLEditor.prototype.__cancel= function (){var X=this ; var oe= true; if (typeof this.ClientCancel=="function"){oe= false; var Oo=this.ClientCancel; try {oe=Oo(this ); }catch (t){alert("ClientCancel function call error: "+t.message); }}if (oe)if (this.content_canceled_event){X.j=0; var Io= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Io=Page_ClientValidate(X._validationGroup); }else {Io=Page_ClientValidate(); }}}catch (w){}}if (Io){X.h= true; X.openWait(); 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)){setTimeout( function (){var op=window.Sys.WebForms.PageRequestManager.getInstance(); var form=op._form; op._postBackSettings=op._createPostBackSettings( true ,null,null); op._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.o0= true; op._onFormSubmit(); Function._validateParams=save; try {X.Om(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Il( true); } ,0); }}}};HTMLEditor.prototype.__submit= function (om){ this.Op= true; if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X,om))return false; }X.j=0; if (typeof om!="undefined"){var Io= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Io=Page_ClientValidate(X._validationGroup); }else {Io=Page_ClientValidate(); }}}catch (w){}}if (Io){X.H= true; X.openWait(); 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)){setTimeout( function (){var op=window.Sys.WebForms.PageRequestManager.getInstance(); var form=op._form; op._postBackSettings=op._createPostBackSettings( true ,null,null); op._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.o0= true; op._onFormSubmit(); Function._validateParams=save; try {X.Om(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Il(om); } ,0); }}}else {X.Il(om); }return true; };HTMLEditor.prototype.submit= function (lp){var X=this ; var Io= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Io=Page_ClientValidate(X._validationGroup); }else {Io=Page_ClientValidate(); }}}catch (w){}}if (Io){X.openWait(); setTimeout( function (){X.Il(typeof lp!="function"); if (typeof lp=="function")lp(); } ,0); }};HTMLEditor.getSelParent= function (X){var ip=X.Ip(); var oq=X.Oq(ip); var parent=null; if (HTMLEditor.is_ie){if (ip.type.toLowerCase()=="control")parent=oq.item(0); else parent=X.lq(oq); }else {parent=X.lq(oq); if (parent.nodeType!=3 && oq.startContainer==oq.endContainer){var p=parent; parent=parent.childNodes.item(oq.startOffset); if (parent==null)parent=p; }}return parent; };HTMLEditor.iq= function (ik){var Iq=" legend fieldset "; return (Iq.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.prototype.or= function (){var ik=HTMLEditor.getSelParent(this ); while (ik && ik.tagName && ik.tagName.toUpperCase()!="BODY"){if (HTMLEditor.iq(ik)){return true; }ik=ik.parentNode; }return false; };HTMLEditor.prototype.iq= function (){try {var ip=this.Ip(); if (HTMLEditor.is_ie){if (ip.type.toLowerCase()=="control")return true; else return false; }else {var oq=this.Oq(ip); var parent=this.lq(oq); if (parent.nodeType!=3 && oq.startContainer==oq.endContainer){if (!parent.tagName)return false; if (oq.startContainer.childNodes.item(oq.startOffset)==null)return false; if (oq.startOffset==oq.endOffset && oq.startContainer.childNodes.item(oq.startOffset).tagName && oq.startContainer.childNodes.item(oq.startOffset).tagName.toUpperCase()=="BR")return false; if (parent.tagName.toUpperCase()=="BODY" && oq.startOffset==0 && oq.endOffset>0 && oq.endOffset==parent.childNodes.length)return false; return true; }else return false; }}catch (t){return true; }};HTMLEditor.prototype.Or=0; HTMLEditor.prototype.lr= false; HTMLEditor.prototype.oo= false; HTMLEditor.prototype.ir= false; HTMLEditor.prototype.Ir= false; HTMLEditor.prototype.os= false; HTMLEditor.prototype.isActivated= false; HTMLEditor.prototype.Os= false; HTMLEditor.ls="obout-no-contextmenu"; HTMLEditor.prototype.noContextMenuAttributeName= function (){return HTMLEditor.ls; };HTMLEditor.is="obout-attached-id"; HTMLEditor.prototype.attachedIdAttributeName= function (){return HTMLEditor.is; };HTMLEditor.prototype.Is= function (ik){var ot=null; if (ik.getAttribute(HTMLEditor.is) && ik.getAttribute(HTMLEditor.is).length>0){var par=ik.parentNode; while (par && par.tagName.toUpperCase()!="BODY"){if (par.tagName.toUpperCase()=="TABLE"){ot=par; break; }par=par.parentNode; }}return ot; };HTMLEditor.prototype.Ot= function (){if (document.getElementById(this.mainDivId)==null)return false; var Oc=document.getElementById(this.mainDivId).parentNode; var lt= true; while (Oc){if (Oc.style && Oc.style.display=="none"){lt= false; break; }Oc=Oc.parentNode; }return lt; };HTMLEditor.prototype.v=null; HTMLEditor.prototype.setTimeout= function (Oo,it){if (this.v!=null){try {var X=this ; var id=window.setTimeout( function (){Oo( true);} ,it); X.v.push([Oo,id]); }catch (t){alert("setTimeout: "+t.message);}}else {window.setTimeout(Oo,it); }};HTMLEditor.prototype.It= 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.It.caller){ this.v[i][0]="none"; break; }}if (!this.Ot() || !this.mainDivVisible){try { this.Om(); }catch (t){} ; this.O1="undef"; return true; }return false; };HTMLEditor.prototype.activate= function (ou){if (!this.Ir){if (typeof EditorBeforeActivate=="function"){ this.Ir= true; try {EditorBeforeActivate(this ); }catch (w){setTimeout( function (){alert("EditorBeforeActivate exception: "+w.message); } ,0); }}}var X=this ; var Oc=document.getElementById(this.mainDivId).parentNode; var lt= true; X.v=null; this.M=null; if (this.Ou && HTMLEditor.S()){}if (!X.J){X.J= true; if ( true){X.g= function (event){if (!X.J){if (HTMLEditor.is_ie){HTMLEditor.lc(event.srcElement,"propertychange",HTMLEditor.ic); event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }else {event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }return true; }var Oc=X._textArea; while (Oc!=null){if (Oc.nodeType!=1)break; if (Oc.tagName.toUpperCase()=="BODY")break; Oc=Oc.parentNode; }if (Oc==null || Oc.nodeType!=1){if (HTMLEditor.is_ie){HTMLEditor.lc(event.srcElement,"propertychange",HTMLEditor.ic); event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }else {event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }X.J= false; return true; }if (X._textArea.form==null){setTimeout( function (){eval(X.W+"_start()"); } ,0); if (HTMLEditor.is_ie){HTMLEditor.lc(event.srcElement,"propertychange",HTMLEditor.ic); event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }else {event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }X.J= false; try {var Im="content_changed_"+X.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(Im) && document.getElementsByName(Im).length && document.getElementsByName(Im).length>0){document.getElementsByName(Im)[0].value=X.ContentChanged()?"1": ""; }}catch (t){}var In=X._formSubmit()[0]; if (X.NoScript)X._textArea.value=X._textArea.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); document.getElementsByName(X._hiddenContent)[0].value=In; return true; }if (event.propertyName=="style.display"){X.lu=null; if (event.srcElement.style.display=="none"){if (X.mainDivVisible){X.lu= false; }}else {if (X.Ot() && !X.mainDivVisible){X.lu= true; }}if (X._isCallBackPanel){try {X.clearPopups( true); }catch (w){}try {if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; }}catch (w){}if (HTMLEditor.is_ie){HTMLEditor.lc(event.srcElement,"propertychange",HTMLEditor.ic); event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }else {event.srcElement.Ic=null; HTMLEditor.od(event.srcElement); }X.J= false; }else setTimeout( function (){if (X.lu!=null){var Oc=X._textArea; while (Oc!=null){if (Oc.nodeType!=1)break; if (Oc.tagName.toUpperCase()=="BODY")break; Oc=Oc.parentNode; }if (Oc.nodeType==1)try {X.setVisibility(X.lu); }catch (w){}}X.lu=null; } ,024); }} ; X.lu=null; while (Oc && Oc.tagName && Oc.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.Ok(Oc,"propertychange",HTMLEditor.ic); }X.Ic=Oc.Ic; Oc.Ic= function (Oj){if (X.Ic!=null && typeof X.Ic=="function")X.Ic(Oj); X.g(Oj); };Oc.iu=Oc.style.display; HTMLEditor.Iu.push(Oc); Oc=Oc.parentNode; }}else {}}HTMLEditor._CUROBJ_=null; if (this.Ou && !HTMLEditor.S()){ this.Om(); this._textArea.style.display="none"; this.Ou= false; if (HTMLEditor.is_ie){if (this.O1=="html"){ this._iframe.style.visibility="hidden"; this._iframe.style.visibility="visible"; this.focusEditor(); }else if (this.O1=="preview"){ this.ov.style.visibility="hidden"; this.ov.style.visibility="visible"; }}if (!X.os){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.Ov([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var oe= false; try {oe=lv(HTMLEditor.is_ie?X.I0.event:event); }catch (t){}return oe; } ); X.os= true; }}return; } this.oo= false; this.lr= true; this.isActivated= false; this._wasFocused= false; if (!X.os){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.Ov([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var oe= false; try {oe=lv(HTMLEditor.is_ie?X.I0.event:event); }catch (t){}return oe; } ); X.os= true; }}if (!X.ir){if (!HTMLEditor.is_ie){ this.iv=this.updateToolbar; this.updateToolbar= function (){try { this.iv(); }catch (t){return; }} ; }}if (X.Ot() && !this.mainDivVisible && document.getElementById(this.mainDivId).style.display!="none"){ this.mainDivVisible= true; if (typeof this._setRealSize=="function")this._setRealSize(); if (this._textArea.offsetWidth>0 && this._textArea.offsetHeight>0)this.O8= {i8: this._textArea.offsetWidth,I8: this._textArea.offsetHeight } ; }if (!X.Ot() || !this.mainDivVisible){ this.Om(); this.O1="text"; this.mainDivVisible= false; if (!this.ir){ this.ir= true; if (typeof EditorOnLoad=="function")setTimeout( function (){EditorOnLoad(X); } ,0); }return; }HTMLEditor.Iv(window,document.getElementById(this.mainDivId)); function lv(Oj){if (Oj){if (X.isPopup()){HTMLEditor._stopEvent(Oj); return false; }}return true; }X.v=[]; try { this.ow(); }catch (t){alert("activate: "+t.message); }function Ow(lw){if (X.It(lw))return; var iw; try {iw=X._iframe.contentWindow.document; }catch (t){X.setTimeout(Ow,012); return false; }try {if (!HTMLEditor.is_ie)X.l1.queryCommandValue("forecolor"); if (!iw || !iw.body || !X.l1 || !X.l1.body){X.setTimeout(Ow,012); return false; }}catch (t){if (!HTMLEditor.is_ie){X.setTimeout(Ow,012); }return false; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){if (X.ShowQuickFormatDivId!=null){X.Iw=document.getElementById(X.ShowQuickFormatDivId).offsetWidth; X.ox=document.getElementById(X.ShowQuickFormatDivId).offsetHeight; }else {X.Iw=0; X.ox=0; }X.Ox=document.getElementById(X.panelDivId).offsetWidth; }if (!HTMLEditor.is_ie){function lx(ik){for (var i=0; i<ik.childNodes.length; i++){if (ik.childNodes.item(i).nodeType==1){if (ik.childNodes.item(i).tagName.toUpperCase()=="SCRIPT"){ik.childNodes.item(i).innerHTML=ik.childNodes.item(i).innerHTML.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }else lx(ik.childNodes.item(i)); }}}lx(X.l1.body); }if (HTMLEditor.is_ie)HTMLEditor.ix(X.l1.body,X.l1); HTMLEditor.Ix(X,X.l1,!X.showAnchors); HTMLEditor.oy(X,X.l1,!X.showPlaceHolders); if (X.rtlSet && !X.rtlState())X.rtl(); var body=iw.body; if (body.childNodes.length==1 && body.firstChild.tagName && body.firstChild.tagName.toUpperCase()=="DIV" && body.firstChild.style.cssText.length>0 && body.firstChild.style.direction.length>0 && Oy(body.firstChild,"position")!="absolute"){body.style.cssText=body.firstChild.style.cssText; var ly=body.firstChild; while (ly.firstChild)body.insertBefore(ly.firstChild,ly); body.removeChild(ly); }if (X.iy){body.style.cssText=X.iy; X.iy=null; }function Iy(Oj){if (Oj && Oj.type=="contextmenu"){if (!X.isPopup() && HTMLEditor.Od==null){if (HTMLEditor.is_ie){try {var oz=X.l1.selection; var Oz=X.Oq(oz); }catch (t){HTMLEditor._stopEvent(Oj); return false; }}return X.lz(Oj,Oj.clientX,Oj.clientY); }else {HTMLEditor._stopEvent(Oj); return false; }}}HTMLEditor.Ov([body,X._iframe.contentWindow],["contextmenu"], function (event){var oe= false; if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; if (X.iz){X.iz.select(); X.iz=null; }}if (HTMLEditor.is_Safari){var ip=X.Ip(); var oq=X.Oq(ip); X.Iz=oq.cloneRange(); }try {oe=Iy(HTMLEditor.is_ie?X._iframe.contentWindow.event:event); }catch (t){}return oe; } ); HTMLEditor.Ok(body,HTMLEditor.is_ie?"drop": "dragdrop", function (event){X.o10(); if (typeof X.onDrop=="function")setTimeout( function (){X.onDrop(X); } ,0); return true; } ); X.O10(); if (HTMLEditor.l10)X.f= true; if (!HTMLEditor.is_Safari)X.setTimeout( function (lw){if (X.It(lw))return; if (!HTMLEditor.is_ie){if (X.i10!=null){X.selectAll(); X.I10(X.i10); X.i10=null; }}if (HTMLEditor.is_ie && !X._autoFocus){var o11=HTMLEditor.O11(X.l1.body.innerHTML); var l11=HTMLEditor.i11(X.l1.body.innerHTML); X.l1.body.innerHTML=X.l1.body.innerHTML; HTMLEditor.I11(X.l1.body,o11); HTMLEditor.o12(X.l1.body,l11); if (document.compatMode=="BackCompat")iw.body.contentEditable= true; X._iframe.style.visibility="visible"; X.Ip().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.l10){var anchor=X.l1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.l1.body.insertBefore(anchor,X.l1.body.firstChild); anchor.focus(); anchor.blur(); X.focusEditor(); X.l1.body.removeChild(anchor); }}}if (!HTMLEditor.is_ie)X.l1.body.innerHTML=HTMLEditor.O12(HTMLEditor.getHTML(X.l1.body, false , true)); if (!HTMLEditor.is_Safari || X.Or>0)X.isActivated= true; if ((!X._StartEnd || !HTMLEditor.is_ie) && X._autoFocus){if (X.mode()=="html" && X.mainDivVisible && X._iframe && typeof ou!="function"){if (HTMLEditor.is_ie){X.setTimeout( function (lw){if (X.It(lw))return; X.focusEditor(); var ip=X.Ip(); var oq=X.Oq(ip); if (ip.type.toLowerCase()!="control"){oq.moveEnd("textedit",1); oq.collapse( false); }oq.select(); X.updateToolbar(); X.focusEditor(); } ,0144); }else {X.l12( false); }}}HTMLEditor._CUROBJ_=null; if (X.scrollIntoView && !HTMLEditor.is_Safari)document.getElementById(X.mainDivId).scrollIntoView( false); if (X._autoFocus)X.focusEditor(); HTMLEditor.i12(X.l1.body); if (typeof ou=="function")ou(); X.oo= true; } ,HTMLEditor.is_ie?012: 0144); if (HTMLEditor.is_Safari){HTMLEditor.i12(X.l1.body); X.isActivated= true; HTMLEditor._CUROBJ_=null; if (X.I12) delete X.I12; X.I12=new Object(); X.setTimeout( function (lw){if (X.It(lw))return; if (X.i10!=null){X.selectAll(); X.I10(X.i10); X.i10=null; }if (!X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe){X.l12( false); }}X.oo= true; } ,0144); }X.Or++; X.Om(); if (!X.ir){if (typeof EditorOnLoad=="function")X.setTimeout( function (lw){if (X.It(lw))return; EditorOnLoad(X); } ,0310); }if (!X.Os){if (X._autoFocus){if (X._ModeHTML){if (X.l){X.l= false; X.o13=HTMLEditor.O12(HTMLEditor.getHTML(X.l1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.O13(); }}X.setTimeout( function (lw){if (X.It(lw))return; X.chMode("text"); } ,0764); }}}if (!X._autoFocus){X.l13=X.Os; X.setTimeout( function (lw){if (X.It(lw))return; if (!X.l13 && X._ModeHTML){if (X.l){X.l= false; X.o13=HTMLEditor.O12(HTMLEditor.getHTML(X.l1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.O13(); }}X.setTimeout( function (lw){if (X.It(lw))return; X.chMode("text"); } ,0764); }else {HTMLEditor.i13(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.i13(X.ShowQuickFormatDivId, true); }} ,HTMLEditor.is_ie?0144: 012); }X.ir= true; X.Os= true; if (X.l){X.setTimeout( function (lw){if (X.It(lw))return; X.l= false; X.o13=HTMLEditor.O12(HTMLEditor.getHTML(X.l1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.O13(); }} ,0310); }if (HTMLEditor.is_ie && X._setRealSize && typeof X._setRealSize=="function"){X._textArea.style.display=""; X._setRealSize(); var height=X._textArea.offsetHeight; X._iframe.style.height=height+"px"; X.ov.style.height=height+"px"; if (HTMLEditor.is_ie)height-=2; X.I13.style.height=height+"px"; X.O8.I8=X._textArea.offsetHeight;X._textArea.style.display="none"; X._setRealSize=null; }}X.setTimeout(Ow,012); };HTMLEditor.prototype.ContentChanged= function (om){var o14=this.mode(); var O14=(typeof om=="undefined")? true :om;if (o14=="preview")o14=this.l14; try {if (this.o1 && o14=="html"){if (this.l)return false; if (this.o13){if (this.mode()=="preview"){return (!(this.o13==HTMLEditor.O12(this.i14))) && O14; }else {return !(this.o13==HTMLEditor.O12(HTMLEditor.getHTML(this.l1.body, false , true))); }}else return false; }else {if (this.I13 && this.I14!=null){return (!(HTMLEditor.O12(this.I14)==HTMLEditor.O12(this.I13.value)) || (this.o15 && O14)); }else {return false; }}}catch (t){return false; }};HTMLEditor.prototype.O13= function (){var X=this ; if (this.onClientContentChanged==null || typeof this.onClientContentChanged!="function")return; try {if (this.o1 && this.mode()=="html"){var O15=HTMLEditor.O12(this.l1.body.innerHTML); if (this.l0!=null){if (this.l0!=O15){var l15= {previous:{} ,current:{}} ; var div=document.createElement("div"); div.innerHTML=this.l0; l15.previous.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; l15.previous.htmlTextLength=HTMLEditor.O12(div.innerHTML).length; this.l0=O15; div.innerHTML=this.l0; l15.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; l15.current.htmlTextLength=HTMLEditor.O12(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(l15); }catch (t){}} ,0); delete div; }}else {var l15= {previous:{} ,current:{}} ; var div=document.createElement("div"); l15.previous.plainTextLength=0; l15.previous.htmlTextLength=0; this.l0=O15; div.innerHTML=this.l0; l15.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; l15.current.htmlTextLength=HTMLEditor.O12(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(l15); }catch (t){}} ,0); delete div; }}}catch (t){}};HTMLEditor.prototype.l12= function (i15){var X=this ; X.setTimeout( function (lw){if (X.It(lw))return; var index=0; var I15=X.l1.body; var anchor=null; if (!X._StartEnd || i15){if (I15.lastChild && I15.lastChild.nodeType==3){I15=I15.lastChild; index=(""+I15.data+"").length; }else if (I15.lastChild && I15.lastChild.nodeType==1 && I15.lastChild.tagName.toUpperCase()=="BR"){index=HTMLEditor.o16(I15.lastChild); var O16=X.l1.createTextNode(""); I15.insertBefore(O16,I15.lastChild); I15=O16; index=0; }else {var O16=X.l1.createTextNode(""); I15.appendChild(O16); I15=O16; index=0; }}if (HTMLEditor.is_Safari){X.I12.type="Caret"; X.I12.focusNode=I15; X.I12.focusOffset=index; }else {var ip=X.Ip(); X.l16(ip); var oq=X.Oq(); oq.setStart(I15,index); oq.setEnd(I15,index); X.i16(ip,oq); }if (anchor!=null){X.l1.body.removeChild(anchor); }X.updateToolbar(); X.focusEditor(); if (!X._StartEnd || i15)if (!HTMLEditor.is_Safari && !HTMLEditor.l10){try {var anchor=X.l1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.l1.body.appendChild(anchor); anchor.focus(); anchor.blur(); X.focusEditor(); X.l1.body.removeChild(anchor); }catch (t){}}} ,012); };HTMLEditor.prototype.I16= function (){} ; HTMLEditor.prototype.popupClosed= function (){} ; HTMLEditor.prototype.updateToolbar= function (){} ; HTMLEditor.prototype.o17= function (){var X=this ; var ok=HTMLEditor.getHTML(X.l1.body, false , true); var oe=[HTMLEditor.O12(ok),ok]; return oe; };HTMLEditor.prototype.setMode= function (mode,O17){var X=this ; switch (mode){case "preview":if (!this._autoFocus && !this._wasFocused){HTMLEditor.l17(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.l17(this.ShowQuickFormatDivId); }X.openWait(); X._waitSetMode= true; setTimeout( function (){var i17=""; X.l14=X.O1; if (X.O1=="html"){X.o10(); var I17=X.o17(); X.i14=I17[0]; i17=X.getHTML( false ,I17[1]); X.o18=i17; X.iy=X.l1.body.style.cssText; try {if (HTMLEditor.is_ie)X.Ip().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=""; var ll=X.o1.removeChild(X._iframe); X._iframe=null; delete ll; }catch (t){}if (!HTMLEditor.is_Safari){X.ox=X.O8.I8; X.O18=X.O8.l18; }if (X.ShowQuickFormatDivId!=null){HTMLEditor.i13(X.ShowQuickFormatDivId); }}else {if (X.I13){i17=X.I13.value; X.I13.style.display="none"; if (HTMLEditor.is_ie)X.I13.style.visibility="hidden"; if (!HTMLEditor.is_Safari){X.O8.I8=X.ox; X.O8.l18=X.O18; X.ov.style.height=X.O8.I8; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){}}}X.ov.style.display=""; X.O1=mode; setTimeout( function (){X.i18(i17); if (typeof O17=="function")try {O17(); }catch (t){} ; X._waitSetMode= false; try {X.ov.focus(); }catch (t){}} ,0); } ,0); break; case "text":if (X.O1=="preview"){var I18; X.ov.style.display="none"; X.ov.src=""; if (HTMLEditor.is_ie)X.ov.style.visibility="hidden"; X.I13.style.display=""; if (X.l14=="html"){I18=X.o18; X.I14=I18; }else {I18=X.I13.value; }X._waitSetMode= true; X.I13.value=""; X.O1=mode; setTimeout( function (){setTimeout( function (){X.I13.value=I18; X.focusEditor(); X._waitSetMode= false; } ,0144); if (typeof O17=="function")try {O17(); }catch (t){} ; if (!HTMLEditor.is_Safari){X.O8.I8=X.ox; X.O8.l18=X.O18; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.I13.style.height=parseInt(X.O8.I8)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.I13.style.width="100%"; setTimeout( function (){X.I13.style.width=X.I13.offsetWidth+"px"; } ,0); }}if (HTMLEditor.is_ie)X.I13.style.visibility="visible"; } ,0); return; }else X.iy=X.l1.body.style.cssText; if (!this._autoFocus && !this._wasFocused){HTMLEditor.l17(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.l17(this.ShowQuickFormatDivId); }try {X.o10(); }catch (t){} ; X.openWait(); X._waitSetMode= true; setTimeout( function (){var I17=X.o17(); X.i14=I17[0]; var i17=X.getHTML( false ,I17[1]); X.ov.style.display="none"; if (HTMLEditor.is_ie)X.ov.style.visibility="hidden"; X.I14=i17; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.Ip().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=""; var ll=X.o1.removeChild(X._iframe); X._iframe=null; delete ll; }catch (t){}X.I13.value=""; X.I13.style.display=""; X.O1=mode; setTimeout( function (){setTimeout( function (){X.I13.value=i17; X.focusEditor(); X._waitSetMode= false; } ,0144); if (typeof O17=="function")try {O17(); }catch (t){} ; if (!HTMLEditor.is_Safari && (X.Ot() || !HTMLEditor.is_ie)){var o19=document.getElementById(X.panelDivId); o19.style.display="none"; }if (X.ShowQuickFormatDivId!=null){setTimeout( function (){HTMLEditor.i13(X.ShowQuickFormatDivId); } ,0); }if (!HTMLEditor.is_Safari){X.ox=X.O8.I8; X.O18=X.O8.l18; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.I13.style.height=parseInt(X.O8.I8)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.I13.style.width="100%"; setTimeout( function (){X.I13.style.width=X.I13.offsetWidth+"px"; } ,0); }}else {if (!HTMLEditor.is_Safari){X.I13.style.height=parseInt(X.O8.I8)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+parseInt(X.O18)+"px";}}X.Om(); if (HTMLEditor.is_ie)X.I13.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.Ip().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=""; var ll=X.o1.removeChild(X._iframe); X._iframe=null; delete ll; }catch (t){}if (HTMLEditor.is_ie)if (this.ShowQuickFormatDivId!=null)HTMLEditor.l17(this.ShowQuickFormatDivId); X.openWait(); X._waitSetMode= true; if (HTMLEditor.is_Safari)X._textArea.style.display=""; X.setTimeout( function (lw){if (X.It(lw)){if (typeof O17=="function")try {O17(); }catch (t){} ; return; }if (X.ContentChanged( false) || X.l || X.i14==null || typeof X.i14=="undefined"){X.F=null; X._textArea.value=X.getHTML(); X.iy=null; if (X.ov!=null)X.ov.src=""; }else {X._textArea.value=X.i14; }if (HTMLEditor.is_Safari)X._textArea.style.display="none"; if (HTMLEditor.is_Safari)X._textArea.style.visibility="hidden"; if (HTMLEditor.is_Safari)if (X.I13!=null)X.I13.style.visibility="hidden"; if (X.ShowQuickFormatDivId!=null)HTMLEditor.l17(X.ShowQuickFormatDivId); if (!X.ContentChanged( false)){if (X.K)if (X.O19>0)X.O19--; }if (!HTMLEditor.is_Safari){if (typeof X.ox!="undefined")X.O8.I8=X.ox; if (typeof X.O18!="undefined")X.O8.l18=X.O18; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X.I13!=null){X.I13.style.width=parseInt(X.I13.style.width)-X.Iw+"px"; X.O8.i8=parseInt(X.I13.style.width)+(document.compatMode!="BackCompat"?4: 2)+"px"; }X.setTimeout( function (lw){if (X.It(lw))return; try {var ll=X._textArea.parentNode.removeChild(X.o1); X.o1=null; delete ll; }catch (t){}var o19=document.getElementById(X.panelDivId); o19.style.display=""; X.activate(); X.O1=mode; if (typeof O17=="function")try {O17(); }catch (t){} ; if (!(HTMLEditor.is_Safari && X.__NoToolBar__))if (X.mainDivVisible){X.setTimeout( function (lw){if (X.It(lw))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.l19!=null); };HTMLEditor.prototype.i19= function (name){if (this.o1 && this.mode()=="html" && !this.isPopup()){ this._CSSfile=name; var ll=this._textArea.parentNode.removeChild(this.o1); var save=this.l1.body.innerHTML; this.o1=null; delete ll; this._textArea.value=save; this.activate(); return true; }return false; };HTMLEditor.prototype.undo= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.I19( true); this.O13(); };HTMLEditor.prototype.redo= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1a(); this.O13(); };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.O1a(); X.l1a("c", true); X.Om(); X.i1a(); } ,0);}else this.l1a("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.O1a(); X.l1a("x", true); X.Om(); } ,0);}else this.l1a("x", true); };HTMLEditor.prototype.deleteSelection= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){var ip=this.Ip(); this.o10(); ip.clear(); this.O10(); }else this.l1a("x", true); };HTMLEditor.prototype.paste= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.o10(); this.openWait(); setTimeout( function (){X._paste( true); X.Om(); } ,0);}else {var ip=this.Ip(); var oq=this.Oq(ip); this.l16(ip); if (HTMLEditor.is_Safari)alert(this.Ie("safari-v","Use Apple-V")); else alert(this.Ie("moz-v","Use Ctrl-V")); if (HTMLEditor.l10)this.f= true; this.i16(ip,oq); this.isWord= false; }};HTMLEditor.prototype.pasteWord= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.o10(); this.openWait(); setTimeout( function (){X._paste( true , true); X.Om(); } ,0);}else {var ip=this.Ip(); var oq=this.Oq(ip); var I1a=this.Ie("msword-switched","Pasting from MS Word is switched on. Just now:")+" "; I1a+=(HTMLEditor.is_Safari)?this.Ie("safari-v","Use Apple-V"): this.Ie("moz-v","Use Ctrl-V"); this.l16(ip); alert(I1a); if (HTMLEditor.l10)this.f= true; this.i16(ip,oq); this.isWord= true; }};HTMLEditor.prototype.contextMenu= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; setTimeout( function (){X.o1b(); } ,0); };HTMLEditor.prototype.pasteText= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.o10(); this.openWait(); setTimeout( function (){X._paste( false); X.Om(); } ,0);}else {var ip=this.Ip(); var oq=this.Oq(ip); var X=this ; var iw=X.l1; function O1b(l1b){if (l1b.length>0){X.o10(); X.I10(l1b); X.O13(); }X.focusEditor(); return true; } this.Oi("_mozPastePlain",O1b,this.Of("paste-plain","Paste Plain Text")); }};HTMLEditor.prototype.selectAll= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_ie){var i1b=this.l1.body.createTextRange(); i1b.select(); }else {if (HTMLEditor.l10){ this.f= true; this.focusEditor(); }var ip=this.Ip(); this.l16(ip); var oq=this.Oq(); oq.selectNodeContents(this.l1.body); if (HTMLEditor.l10)this.f= true; this.i16(ip,oq); } this.updateToolbar(); };HTMLEditor.prototype.selectNone= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var ip=this.Ip(); var oq=this.Oq(ip); if (HTMLEditor.is_ie){oq.setEndPoint("StartToEnd",oq); oq.select(); }else {if (HTMLEditor.l10){ this.f= true; this.focusEditor(); } this.l16(ip); oq.setStart(oq.endContainer,oq.endOffset); this.i16(ip,oq); }setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,0144); };HTMLEditor.prototype.rtl= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.l1.body.style.direction=(!this.rtlState())?"rtl": ""; this.updateToolbar(); };HTMLEditor.prototype.rtlState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; if (this.l1.body.style.direction && this.l1.body.style.direction=="rtl")return true; return false; };HTMLEditor.prototype.ltr= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.l1.body.style.direction=(!this.ltrState())?"": "rtl"; this.updateToolbar(); };HTMLEditor.prototype.ltrState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return true; if (!(this.l1.body.style.direction && this.l1.body.style.direction=="rtl"))return true; return false; };HTMLEditor.prototype.I1b= false; HTMLEditor.prototype.bold= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1c("bold"); };HTMLEditor.prototype.boldState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1c("bold"); };HTMLEditor.prototype.l1c= false; HTMLEditor.prototype.italic= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; this.o1c("italic"); };HTMLEditor.prototype.italicState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1c("italic"); };HTMLEditor.prototype.i1c= false; HTMLEditor.prototype.underline= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; this.o1c("underline"); };HTMLEditor.prototype.underlineState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1c("underline"); };HTMLEditor.prototype.I1c= false; HTMLEditor.prototype.strikeThrough= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1c("strikeThrough"); };HTMLEditor.prototype.strikeThroughState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1c("strikeThrough"); };HTMLEditor.prototype.o1d= false; HTMLEditor.prototype.subScript= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; this.o1c("subScript"); };HTMLEditor.prototype.subScriptState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1c("subScript"); };HTMLEditor.prototype.O1d= false; HTMLEditor.prototype.superScript= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1c("superScript"); };HTMLEditor.prototype.superScriptState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1c("superScript"); };HTMLEditor.prototype.foreColor= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1d(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.i1d("forecolor", false ,par); } ,0144); }else X.i1d("forecolor", false ,par); }if (HTMLEditor.is_Safari)this.Oq(this.Ip()); setTimeout( function (){try {X.Oi("_selectColor",X.If("color","Font Color"),l1d); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.foreColorValue= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.iq())return "#000000"; var oe=HTMLEditor.I1d(this.o1e("forecolor")); return oe; };HTMLEditor.prototype.foreColorClear= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.Oq(this.Ip()); this.i1d("forecolor", false ,""); };HTMLEditor.prototype.backColor= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1d(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.i1d("backcolor", false ,par); } ,0144); }else X.i1d("backcolor", false ,par); }if (HTMLEditor.is_Safari)this.Oq(this.Ip()); setTimeout( function (){try {X.Oi("_selectColor",X.Of("color","Background Color"),l1d); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.backColorValue= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.iq())return "#FFFFFF"; return HTMLEditor.I1d(this.o1e("backcolor")); };HTMLEditor.prototype.backColorClear= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.Oq(this.Ip()); this.i1d("backcolor", false ,""); };HTMLEditor._styleTags=["strong","em","u","strike","s","span","font","b","sub","sup","a","i"]; HTMLEditor.O1e= function (Ik){if (!Ik)return false; for (var i=0; i<HTMLEditor._styleTags.length; i++)if (HTMLEditor._styleTags[i].toLowerCase()==Ik.toLowerCase())return true; return false; };HTMLEditor.prototype.clearStyles= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari)this.Oq(this.Ip()); setTimeout( function (){try {X.Oi("_clearStyles"); X.O13(); }catch (t){}} ,012); };HTMLEditor.prototype.setClassName= function (name){var X=this ; if (!this._wasFocused)return; this.focusEditor(); if (HTMLEditor.is_Safari)this.Oq(this.Ip()); try {var oe=this._setClassName(name); this.O13(); return oe; }catch (t){alert("setClassName: "+t.message); return false; } ; };HTMLEditor.prototype.AssignClassName= function (name){if (this.mode()!="html")return false; this.focusEditor(); if (HTMLEditor.is_Safari)this.Oq(this.Ip()); if (this.iq()){ this.o10(); try {HTMLEditor.getSelParent(this ).className=name; }catch (t){ this.I19( false); }}else this.setClassName(name); return true; };HTMLEditor.prototype.SelectedTextNodes= function (){if (this.mode()!="html")return []; this.focusEditor(); if (HTMLEditor.is_Safari)this.Oq(this.Ip()); var l1e=this.i1e(); if (l1e.length>0)this.I1e(l1e); return l1e; };HTMLEditor.prototype.o1f= function (){if (this.mode()!="html")return null; this.focusEditor(); var ip=this.Ip(); var oq=this.Oq(ip); var parent=null; if (HTMLEditor.is_ie){if (ip.type.toLowerCase()=="control")parent=oq.item(0); else parent=null; }else {parent=this.lq(oq); if (parent.nodeType!=3 && oq.startContainer==oq.endContainer){if (!parent.tagName)return null; if (oq.startContainer.childNodes.item(oq.startOffset)==null)return null; if (oq.startOffset==oq.endOffset && oq.startContainer.childNodes.item(oq.startOffset).tagName && oq.startContainer.childNodes.item(oq.startOffset).tagName.toUpperCase()=="BR")return null; if (parent.tagName.toUpperCase()=="BODY" && oq.startOffset==0 && oq.endOffset>0 && oq.endOffset==parent.childNodes.length)return null; parent=oq.startContainer.childNodes.item(oq.startOffset); }else return null; }return parent; };HTMLEditor.prototype.getClassName= function (){try {var ip=this.Ip(); var oq=this.Oq(ip); var parent; if (HTMLEditor.is_ie && ip.type.toLowerCase()=="control")parent=oq.item(0); else parent=this.lq(oq); if (parent.nodeType==3){parent=parent.parentNode; }while ( true){if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.il && parent.className.length>0){return parent.className; }else {if (parent && parent.tagName && HTMLEditor.O1e(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.Oq(this.Ip()); this.o1c("fontname",select.options.item(select.selectedIndex).value); }catch (t){alert("FontName: "+t.message); } ; };HTMLEditor.prototype.O1f=0; HTMLEditor.prototype.fontNameState= function (l1f){var param=null; try {param=this.o1e("fontname"); }catch (t){}if (!this._FontNotSet)if (!param || param.length==0){if (!this.i1f)this.i1f=HTMLEditor.Oy(this.l1.body,"font-family"); param=this.i1f; }if (typeof l1f!="undefined"){var ik=document.getElementById(l1f); ik=ik.childNodes.item(1); var i=0; if (param && param.length>0){var Oe=param.toLowerCase().split(",")[0]; for (i=0; i<ik.options.length; i++){var O15=ik.options.item(i).value.toLowerCase().split(",")[0]; if (O15==Oe)break; }if (i==ik.options.length){try {var I1f=document.createElement("OPTION"); I1f.value=param; I1f.text=param.split(",")[0]; ik.add(I1f,HTMLEditor.is_ie?i:null); X.O1f=0; }catch (t){var X=this ; if (X.O1f<012){setTimeout( function (){X.fontNameState(l1f); } ,0144); X.O1f++; }i=0; }}}ik.selectedIndex=i; }return param; };HTMLEditor.o1g= function (O1g){var Oe=O1g.toString(); switch (Oe){case "1":Oe="8pt"; break; case "2":Oe="10pt"; break; case "3":Oe="12pt"; break; case "4":Oe="14pt"; break; case "5":Oe="18pt"; break; case "6":Oe="24pt"; break; case "7":Oe="36pt"; break; }return Oe; };HTMLEditor.prototype.fontSize= function (select,event){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }HTMLEditor._stopEvent(event); if (event.type=="click" && !HTMLEditor.is_Safari)return false; var X=this ; if (HTMLEditor.is_Safari)this.Oq(this.Ip()); this.o1c("fontsize",HTMLEditor.o1g(select.options.item(select.selectedIndex).value)); };HTMLEditor.prototype.l1g=0; HTMLEditor.prototype.fontSizeState= function (l1f){var param=null; try {param=this.o1e("fontsize",l1f); }catch (t){}if (param)param=param.toString(); if (!this._FontNotSet)if (!param || param.length==0){if (!this.i1g){ this.i1g=HTMLEditor.Oy(this.l1.body,"font-size"); this.i1g=HTMLEditor.I1g(this.i1g,this,l1f); }param=this.i1g; }if (typeof l1f!="undefined"){try {var ik=document.getElementById(l1f); ik=ik.childNodes.item(1); var i=0; if (param && param.length>0){var Oe=param.toLowerCase().split(",")[0]; for (i=0; i<ik.options.length; i++){var O15=HTMLEditor.o1g(ik.options.item(i).value.toLowerCase().split(",")[0]); if (O15==Oe)break; }if (i==ik.options.length){try {var I1f=document.createElement("OPTION"); I1f.value=param; I1f.text=param; ik.add(I1f,HTMLEditor.is_ie?i:null); X.l1g=0; }catch (t){var X=this ; if (X.l1g<012){setTimeout( function (){X.fontSizeState(l1f); } ,0144); X.l1g++; }i=0; }}}ik.selectedIndex=i; }catch (t){alert("fontSizeState: "+t.message); }}return param; };HTMLEditor.prototype.justifyLeft= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1c("justifyLeft",value); };HTMLEditor.prototype.justifyFull= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1c("justifyFull",null); };HTMLEditor.prototype.justifyCenter= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1c("justifyCenter",value); };HTMLEditor.prototype.justifyRight= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1c("justifyRight",value); };HTMLEditor.prototype.paragraph= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o1c("paragraph",value); };HTMLEditor.prototype.orderedList= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1c("InsertOrderedList",value); };HTMLEditor.prototype.bulletedList= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1c("InsertUnorderedList",value); };HTMLEditor.prototype.decreaseIndent= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1c("Outdent",value); };HTMLEditor.prototype.increaseIndent= function (value){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1c("Indent",value); };HTMLEditor.prototype.createLink= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari && !HTMLEditor.ij){param=prompt("Enter URL"); this.SurroundHTML("<a href='"+param+"'>","</a>"); return; }try {if (this.o1 && this.mode()=="html" && !this.isPopup()){var o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(this.O1h()): ""; var ip=this.Ip(); var oq=this.Oq(ip); var l1h=null; if (!(this.iq() && HTMLEditor.getSelParent(this ).tagName && (HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="EMBED" || HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG")) && !(!this.iq() && ((HTMLEditor.is_ie && oq.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0)))){ this.o10(); var i1h=this.l1.createElement("span"); i1h.innerHTML="new link"; i1h.id=HTMLEditor.il; var I1h= true; if (HTMLEditor.is_ie && this.iq()){var o1i=oq.item(0); var O1i=this.l1.createElement("span"); o1i.parentNode.insertBefore(O1i,o1i); l1h=i1h.firstChild; o1i.parentNode.insertBefore(l1h,o1i); var l1i=this.l1.createElement("span"); o1i.parentNode.insertBefore(l1i,o1i); o1i.parentNode.removeChild(o1i); this.i1i([O1i,l1i], false); I1h= false; }else { this.I10(HTMLEditor.getHTML(i1h, true)); var ik=this.l1.getElementById(HTMLEditor.il); l1h=ik.firstChild; ik.parentNode.insertBefore(ik.firstChild,ik); ik.parentNode.removeChild(ik); }if (!HTMLEditor.is_ie){oq=this.Oq(); oq.setStart(l1h,0); oq.setEnd(l1h,(""+l1h.data+"").length); this.l16(ip); this.i16(ip,oq); }else {if (I1h)oq.select(); }o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(this.O1h()): ""; ip=this.Ip(); oq=this.Oq(ip); }if ((this.iq() && HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG") || (!this.iq() && ((HTMLEditor.is_ie && oq.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0)))){ this.o10(); var l15= {target: "default",href: "http://",title: "" } ; var I1i; function O1b(o1j){try {if (o1j){var O1j=X.l1.getElementsByTagName("A"); var l1j=0; for (var i=0; i<O1j.length; i++){var i1j= true; var a=O1j[i]; for (var ig=0; ig<I1i.length; ig++)if (a==I1i[ig]){i1j= false; break; }if (!i1j)continue; l1j=i; if (l15.target)a.target=l15.target; a.href=l15.href; if (l15.title.length>0)a.title=l15.title; }if (l1h)l1h.data=l15.href; if (HTMLEditor.l10)X.f= true; if (O1j.length>0){var I1j=O1j[l1j]; var i1h=X.l1.createElement("span"); i1h.innerHTML="&nbsp;"; if (I1j.nextSibling!=null)I1j.parentNode.insertBefore(i1h,I1j.nextSibling); else I1j.parentNode.appendChild(i1h); setTimeout( function (){HTMLEditor.o1k(i1h,X); setTimeout( function (){I1j.parentNode.removeChild(i1h); } ,0); } ,0); }setTimeout( function (){X.updateToolbar(); X.O13(); } ,5); }else {X.I19( false); X.K.pop(); if (l1h){X.I19( false); X.K.pop(); }}X.focusEditor(); }catch (t){alert("URL Link create: "+t.message); }return true; }var ok=X.l1.getElementsByTagName("A"); var O1j=[]; for (var i=0; i<ok.length; i++)O1j.push([ok[i],""+ok[i].href+""]); this.i1d("createLink", false ,"http://"); I1i=[]; for (var i=0; i<O1j.length; i++){var a=O1j[i][0]; var href=O1j[i][1]; if (a.href==href)I1i.push(a); } this.Oi("_urlProperties",this.Of("link","Create an URL Link"),l15,O1b); }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 O1b(o1j){if (!o1j){setTimeout( function (){X.I19( false); } ,012); }else {if (link.title.length==0){link.title=null; link.removeAttribute("title"); }if (HTMLEditor.l10){X.f= true; X.focusEditor(); }X.O13(); }return true; }X.o10(); X.Oi("_urlProperties",X.If("link","Edit an URL Link"),link,O1b); };HTMLEditor.O1k=/^(([0-9]+(px|%|$))|$)/i; HTMLEditor.setSelectionRange= function (input){try {input.focus(); if (input.setSelectionRange){input.setSelectionRange(0,input.value.length); }else if (input.createTextRange){var oq=input.createTextRange(); oq.collapse( true); oq.moveEnd("character",input.value.length); oq.moveStart("character",0); oq.select(); }}catch (t){}};HTMLEditor.prototype.insertDiv= function (){var X=this ; var l1k; var id=HTMLEditor.il; var innerHTML="<div id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Div"; innerHTML+="</div>"; if (X.InsertHTML(innerHTML)){l1k=X.getDocument().getElementById(id); l1k.id=null; l1k.removeAttribute("id"); X.i1k(l1k, false); }};HTMLEditor.i3= function (X,l1k){X.SaveContent(); X.i1k(l1k, true); };HTMLEditor.prototype.i1k= function (l1k,I1k){var X=this ; function disableEvents(iw){iw.getElementById("idField").disabled= true; iw.getElementById("widthField").disabled= true; iw.getElementById("heightField").disabled= true; iw.getElementById("borderWidth").disabled= true; iw.getElementById("borderColor").disabled= true; iw.getElementById("borderStyle").disabled= true; iw.getElementById("bgColor").disabled= true; iw.getElementById("clearColor").disabled= true; iw.getElementById("clearColor").className="dbutton"; iw.getElementById("bgImage").disabled= true; iw.getElementById("clearImage").disabled= true; iw.getElementById("clearImage").className="dbutton"; }function enableEvents(iw){iw.getElementById("idField").disabled= false; iw.getElementById("widthField").disabled= false; iw.getElementById("heightField").disabled= false; iw.getElementById("borderWidth").disabled= false; iw.getElementById("borderColor").disabled= false; iw.getElementById("borderStyle").disabled= false; iw.getElementById("bgColor").disabled= false; iw.getElementById("clearColor").disabled= false; iw.getElementById("clearColor").className="button"; iw.getElementById("bgImage").disabled= false; iw.getElementById("clearImage").disabled= false; iw.getElementById("clearImage").className="dbutton"; }function color(){function o1l(par){X.O1l.getElementById("borderColor").style.backgroundColor=par; }X.Oi("_selectColor",X.O1l.getElementById("borderColor").title,o1l); }function bgColor(){function l1l(par){X.O1l.getElementById("bgColor").value=""; X.O1l.getElementById("bgColor").style.backgroundColor=par; }X.Oi("_selectColor",X.O1l.getElementById("bgColor").title,l1l); }function i1l(){X.O1l.getElementById("bgColor").value=X.I1l; X.O1l.getElementById("bgColor").style.backgroundColor=""; }function o1m(){var O1m=new Object(); var iw=X.O1l; O1m.src=""; O1m.l1m="LEFT"; O1m.i1m="TOP"; O1m.repeat="REPEAT"; O1m.I1m="FIXED"; if (iw.getElementById("bgImage").style.backgroundImage && iw.getElementById("bgImage").style.backgroundImage.length>0){var ok=iw.getElementById("bgImage").style.backgroundImage; ok=ok.replace(/^url\(["']?(.+)["']?\)$/i,"$1"); O1m.src=ok.replace(/(\s)/g,"%20"); }if (iw.getElementById("bgImage").style.backgroundPosition && iw.getElementById("bgImage").style.backgroundPosition.length>0){var ok=iw.getElementById("bgImage").style.backgroundPosition; ok=ok.split(" "); if (ok.length>0)O1m.l1m=ok[0]; if (ok.length>1)O1m.i1m=ok[1]; }if (iw.getElementById("bgImage").style.backgroundRepeat && iw.getElementById("bgImage").style.backgroundRepeat.length>0)O1m.repeat=iw.getElementById("bgImage").style.backgroundRepeat; if (iw.getElementById("bgImage").style.backgroundAttachment && iw.getElementById("bgImage").style.backgroundAttachment.length>0)O1m.I1m=iw.getElementById("bgImage").style.backgroundAttachment; function l1d(o1j){if (o1j){var save=iw.getElementById("bgImage").style.backgroundImage; iw.getElementById("bgImage").value=""; var o1n=(O1m.src.indexOf("'")>=0)?"\"": "'"; iw.getElementById("bgImage").style.backgroundImage=""; iw.getElementById("bgImage").style.backgroundImage="url("+o1n+O1m.src.replace(/(\s)/g,"%20")+o1n+")"; iw.getElementById("bgImage").style.backgroundRepeat=O1m.repeat; iw.getElementById("bgImage").style.backgroundAttachment=O1m.I1m; iw.getElementById("bgImage").style.backgroundPosition=O1m.l1m+" "+O1m.i1m; if (iw.getElementById("bgImage").style.backgroundImage.length==0){X.I0.setTimeout( function (){iw.getElementById("bgImage").style.backgroundImage=save; if (save.length==0)O1n(); X.I0.alert(X.Ie("bad-bg-img","Incorrect Image file for Background.")); } ,0); }}}X.Oi("_bgImageProperties",iw.getElementById("bgImage").title,O1m,l1d); }function O1n(){X.O1l.getElementById("bgImage").value=X.l1n; X.O1l.getElementById("bgImage").style.backgroundImage=""; X.O1l.getElementById("bgImage").style.backgroundRepeat=""; X.O1l.getElementById("bgImage").style.backgroundAttachment=""; }function l1d(iw,i1n){if (iw!=null){var I1n=iw.getElementById("overflow").value.replace(/^[\s]+/,""); var width=iw.getElementById("widthField").value.replace(/^[\s]+/,""); var height=iw.getElementById("heightField").value.replace(/^[\s]+/,""); var borderWidth=iw.getElementById("borderWidth").value.replace(/^[\s]+/,""); var borderStyle=iw.getElementById("borderStyle").value.replace(/^[\s]+/,""); var borderColor=iw.getElementById("borderColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundColor=iw.getElementById("bgColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundImage=iw.getElementById("bgImage").style.backgroundImage.replace(/^[\s]+/,""); var backgroundRepeat=iw.getElementById("bgImage").style.backgroundRepeat.replace(/^[\s]+/,""); var backgroundAttachment=iw.getElementById("bgImage").style.backgroundAttachment.replace(/^[\s]+/,""); var backgroundPosition=iw.getElementById("bgImage").style.backgroundPosition.replace(/^[\s]+/,""); var id=iw.getElementById("idField").value.replace(/^[\s]+/,""); if (!HTMLEditor.O1k.test(width)){HTMLEditor.setSelectionRange(iw.getElementById("widthField")); return false; }if (!HTMLEditor.O1k.test(height)){HTMLEditor.setSelectionRange(iw.getElementById("heightField")); return false; }if (!HTMLEditor.O1k.test(borderWidth)){HTMLEditor.setSelectionRange(iw.getElementById("borderWidth")); return false; }if (id.length>0 && X.l1.getElementById(id)!=null && X.l1.getElementById(id)!=l1k){HTMLEditor.setSelectionRange(iw.getElementById("idField")); return false; }l1k.style.width=width; l1k.style.height=height; l1k.style.borderWidth=borderWidth; if (id.length>0)l1k.id=id; else {l1k.id=null; l1k.removeAttribute("id"); }l1k.style.overflow=I1n; if (borderStyle.length>0 && borderStyle!="none" && borderWidth.length>0)l1k.style.borderStyle=borderStyle; else l1k.style.borderStyle=""; l1k.style.borderColor=(borderWidth.length>0)?borderColor: ""; l1k.style.backgroundColor=backgroundColor; l1k.style.backgroundImage=backgroundImage; l1k.style.backgroundRepeat=backgroundRepeat; l1k.style.backgroundAttachment=backgroundAttachment; l1k.style.backgroundPosition=backgroundPosition; setTimeout( function (){if (HTMLEditor.is_Safari){l1k=(ik.nextSibling)?l1k.nextSibling:l1k; setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.l16(ip); X.i16(ip,oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var l1e=X.l1.body.createControlRange(); l1e.add(l1k); l1e.select(); }catch (t){}}else {if (HTMLEditor.l10)X.f= true; l1k=(l1k.nextSibling)?l1k.nextSibling:l1k; HTMLEditor.o1k(l1k,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function o1o(iw,i1n){if (iw!=null){var O1o=i1n.contentWindow.document.getElementById("realStylesFolder").href; X.I1l=iw.getElementById("bgColor").value; X.l1n=iw.getElementById("bgImage").value; iw.getElementById("idField").value=(l1k.id)?l1k.id: ""; iw.getElementById("widthField").value=(l1k.style.width)?l1k.style.width: ""; iw.getElementById("heightField").value=(l1k.style.height)?l1k.style.height: ""; iw.getElementById("borderWidth").value=(l1k.style.borderLeftWidth)?l1k.style.borderLeftWidth: ""; iw.getElementById("borderStyle").value=(l1k.style.borderLeftStyle)?l1k.style.borderLeftStyle: ""; iw.getElementById("overflow").value=(l1k.style.overflow)?l1k.style.overflow: ""; iw.getElementById("borderColor").style.backgroundColor=(l1k.style.borderLeftColor)?l1k.style.borderLeftColor: ""; iw.getElementById("bgColor").style.backgroundColor=(l1k.style.backgroundColor)?l1k.style.backgroundColor: ""; iw.getElementById("bgImage").style.backgroundImage=(l1k.style.backgroundImage)?l1k.style.backgroundImage: ""; iw.getElementById("bgImage").style.backgroundRepeat=(l1k.style.backgroundRepeat)?l1k.style.backgroundRepeat: ""; iw.getElementById("bgImage").style.backgroundAttachment=(l1k.style.backgroundAttachment)?l1k.style.backgroundAttachment: ""; iw.getElementById("bgImage").style.backgroundPosition=(l1k.style.backgroundPosition)?l1k.style.backgroundPosition: ""; if (iw.getElementById("bgColor").style.backgroundColor.length>0)iw.getElementById("bgColor").value=""; if (iw.getElementById("bgImage").style.backgroundImage.length>0)iw.getElementById("bgImage").value=""; HTMLEditor.Ov(iw.getElementById("borderColor"),["click"],color); HTMLEditor.Ov(iw.getElementById("bgColor"),["click"],bgColor); HTMLEditor.Ov(iw.getElementById("clearColor"),["click"],i1l); HTMLEditor.Ov(iw.getElementById("bgImage"),["click"],o1m); HTMLEditor.Ov(iw.getElementById("clearImage"),["click"],O1n); X.O1l=iw; }}var l1o=(X.P[032].length>0)?(X.P[032]): ("__div.aspx"); X.customPopup("popup_div","div",l1o,l1d,o1o, true ,I1k,enableEvents,disableEvents); };HTMLEditor.prototype.insertForm= function (){var X=this ; var l1k; var id=HTMLEditor.il; var innerHTML="<form id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Form"; innerHTML+="</form>"; if (X.InsertHTML(innerHTML)){l1k=X.getDocument().getElementById(id); l1k.id=null; l1k.removeAttribute("id"); X.i1o(l1k, false); }};HTMLEditor.I4= function (X,l1k){X.SaveContent(); X.i1o(l1k, true); };HTMLEditor.prototype.i1o= function (l1k,I1k){var X=this ; function l1d(iw,i1n){if (iw!=null){var width=iw.getElementById("widthField").value.replace(/^[\s]+/,""); var height=iw.getElementById("heightField").value.replace(/^[\s]+/,""); var id=iw.getElementById("idField").value.replace(/^[\s]+/,""); var name=iw.getElementById("nameField").value.replace(/^[\s]+/,""); var action=iw.getElementById("actionField").value.replace(/^[\s]+/,""); var method=iw.getElementById("methodField").value.replace(/^[\s]+/,""); if (!HTMLEditor.O1k.test(width)){HTMLEditor.setSelectionRange(iw.getElementById("widthField")); return false; }if (!HTMLEditor.O1k.test(height)){HTMLEditor.setSelectionRange(iw.getElementById("heightField")); return false; }var I1o=X.l1.getElementsByTagName("FORM"); if (name.length>0)for (var i=0; i<I1o.length; i++){if (I1o[i].name==name && I1o[i]!=l1k){HTMLEditor.setSelectionRange(iw.getElementById("nameField")); return false; }}if (id.length>0 && X.l1.getElementById(id)!=null && X.l1.getElementById(id)!=l1k){HTMLEditor.setSelectionRange(iw.getElementById("idField")); return false; }l1k.style.width=width; l1k.style.height=height; if (id.length>0)l1k.id=id; else {l1k.id=null; l1k.removeAttribute("id"); }if (name.length>0){l1k.name=name; l1k.setAttribute("name",name); }else {l1k.name=""; l1k.removeAttribute("name"); }if (action.length>0)l1k.action=action; else {l1k.action=null; l1k.removeAttribute("action"); }try {if (method.length>0)l1k.method=method; else {l1k.removeAttribute("method"); }}catch (t){}setTimeout( function (){if (HTMLEditor.is_Safari){l1k=(ik.nextSibling)?l1k.nextSibling:l1k; setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.l16(ip); X.i16(ip,oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var l1e=X.l1.body.createControlRange(); l1e.add(l1k); l1e.select(); }catch (t){}}else {if (HTMLEditor.l10)X.f= true; l1k=(l1k.nextSibling)?l1k.nextSibling:l1k; HTMLEditor.o1k(l1k,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function o1o(iw,i1n){if (iw!=null){iw.getElementById("widthField").value=(l1k.style.width)?l1k.style.width: ""; iw.getElementById("heightField").value=(l1k.style.height)?l1k.style.height: ""; iw.getElementById("idField").value=(l1k.id)?l1k.id: ""; iw.getElementById("nameField").value=(l1k.name)?l1k.name: ""; iw.getElementById("actionField").value=(l1k.action)?l1k.action: ""; iw.getElementById("methodField").value=(l1k.method)?l1k.method: ""; }}var l1o=(X.P[035].length>0)?(X.P[035]): ("__form.aspx"); X.customPopup("popup_form","form",l1o,l1d,o1o, true ,I1k); };HTMLEditor.prototype.insertCheckBox= function (){ this.o1p("type='checkbox'"); };HTMLEditor.prototype.insertRadio= function (){ this.o1p("type='radio'"); };HTMLEditor.prototype.insertTextBox= function (){ this.o1p("type='text' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertPassword= function (){ this.o1p("type='password' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertHidden= function (){var X=this ; if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)setTimeout( function (){alert(X.Ie("safari-no-support","Not supported in Safari")); } ,0764); else if (!HTMLEditor.is_ie)setTimeout( function (){alert(X.Ie("mozilla-no-support","Not supported in Mozilla")); } ,0764); else this.o1p("type='hidden' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertButton= function (){ this.o1p("type='button' style='width:50px;height:22px;'"); };HTMLEditor.prototype.insertSubmit= function (){ this.o1p("type='submit' style='width:50px;height:22px;' value='Submit'"); };HTMLEditor.prototype.insertReset= function (){ this.o1p("type='reset' style='width:50px;height:22px;' value='Reset'"); };HTMLEditor.prototype.o1p= function (O1p){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var l1k=null; var id=HTMLEditor.il; if (X.iq() && HTMLEditor.getSelParent(X).tagName.toUpperCase()=="INPUT"){l1k=HTMLEditor.getSelParent(X); X.SaveContent(); X.l1p(l1k, true); }else if (X.InsertHTML("<input id='"+id+"' "+O1p+" />")){l1k=X.getDocument().getElementById(id); l1k.id=null; l1k.removeAttribute("id"); X.l1p(l1k, false); if (HTMLEditor.is_Safari)setTimeout( function (){try {l1k.blur();}catch (t){}} ,0144); }return l1k; };HTMLEditor.o3= function (X,l1k){if (l1k.type=="image" || l1k.type=="file")return; X.SaveContent(); X.l1p(l1k, true); };HTMLEditor.prototype.l1p= function (l1k,I1k){var X=this ; function l1d(iw,i1n){if (iw!=null){var width=iw.getElementById("widthField").value.replace(/^[\s]+/,""); var height=iw.getElementById("heightField").value.replace(/^[\s]+/,""); var id=iw.getElementById("idField").value.replace(/^[\s]+/,""); var name=iw.getElementById("nameField").value.replace(/^[\s]+/,""); var value=iw.getElementById("valueField").value.replace(/^[\s]+/,""); var title=iw.getElementById("titleField").value.replace(/^[\s]+/,""); var type=((l1k.type && l1k.type.length>0)?l1k.type: "text").toLowerCase(); if (!HTMLEditor.O1k.test(width)){HTMLEditor.setSelectionRange(iw.getElementById("widthField")); return false; }if (!HTMLEditor.O1k.test(height)){HTMLEditor.setSelectionRange(iw.getElementById("heightField")); return false; }if (id.length>0 && X.l1.getElementById(id)!=null && X.l1.getElementById(id)!=l1k){HTMLEditor.setSelectionRange(iw.getElementById("idField")); return false; }l1k.style.width=width; l1k.style.height=height; if (id.length>0)l1k.id=id; else {l1k.id=null; l1k.removeAttribute("id"); }if (name.length>0){l1k.name=name; l1k.setAttribute("name",name); }else {l1k.name=""; l1k.removeAttribute("name"); }if (value.length>0){l1k.value=value; l1k.setAttribute("value",value); }else {l1k.value=""; l1k.removeAttribute("value"); }if (title.length>0)l1k.title=title; else {l1k.title=""; l1k.removeAttribute("title"); }if (type=="checkbox" || type=="radio"){l1k.checked=iw.getElementById("checkField").checked; if (!HTMLEditor.is_ie){if (l1k.checked)l1k.setAttribute("checked","true"); else l1k.removeAttribute("checked"); }}setTimeout( function (){if (HTMLEditor.is_Safari){l1k=(ik.nextSibling)?l1k.nextSibling:l1k; setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.l16(ip); X.i16(ip,oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var l1e=X.l1.body.createControlRange(); l1e.add(l1k); l1e.select(); }catch (t){}}else {if (HTMLEditor.l10)X.f= true; l1k=(l1k.nextSibling)?l1k.nextSibling:l1k; HTMLEditor.o1k(l1k,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function o1o(iw,i1n){if (iw!=null){var type=((l1k.type && l1k.type.length>0)?l1k.type: "text").toLowerCase(); if (type=="checkbox" || type=="radio")iw.getElementById("checkField").checked=l1k.checked; else iw.getElementById("checkField").style.display="none"; iw.getElementById("widthField").value=(l1k.style.width)?l1k.style.width: ""; iw.getElementById("heightField").value=(l1k.style.height)?l1k.style.height: ""; iw.getElementById("idField").value=(l1k.id)?l1k.id: ""; iw.getElementById("nameField").value=(l1k.name)?l1k.name: ""; iw.getElementById("valueField").value=(l1k.value)?l1k.value: ""; iw.getElementById("titleField").value=(l1k.title)?l1k.title: ""; iw.getElementById("inputType").innerHTML=""; try {iw.getElementById("inputType").innerHTML=iw.getElementById("input_"+type).value; }catch (t){alert(t.message);}}}var l1o=(X.P[041].length>0)?(X.P[041]): ("__input.aspx"); X.customPopup("popup_input","input",l1o,l1d,o1o, true ,I1k); };HTMLEditor.I3= function (X,link){X.o10(); var ik=link.firstChild; while (link.firstChild)link.parentNode.insertBefore(link.firstChild,link); link.parentNode.removeChild(link); if (ik)HTMLEditor.o1k(ik,X); setTimeout( function (){X.updateToolbar(); } ,5); X.O13(); };HTMLEditor.prototype.insertIcon= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1b(o1j,html){if (!o1j){X.I19( false); }else {if (!X.I10("<img src='"+html+"' id="+HTMLEditor.il+">")){X.I19( false); }else {var ik=X.l1.getElementById(HTMLEditor.il); ik.id=null; ik.removeAttribute("id"); if (X.relativeImages)ik.src=html; if (!HTMLEditor.is_ie){setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.l16(ip); if (HTMLEditor.l10)X.f= true; X.i16(ip,oq); X.updateToolbar(); X.focusEditor(); } ,0); }X.O13(); }}return true; }X.o10(); X.Oi("_insertIcon",X.Of("icons","Insert an Icon"),O1b); };HTMLEditor.prototype.insertAnchor= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1b(o1j,text){if (!o1j || text.length==0){X.I19( false); }else {if (!X.I10("<a name='"+text+"'>"+(X.showAnchors?("<img "+X.noContextMenuAttributeName()+"='yes' title='"+text+"' src='"+X.Q[0]+"'>"): "")+"</a>")){X.I19( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.l16(ip); if (HTMLEditor.l10)X.f= true; X.i16(ip,oq); X.updateToolbar(); X.focusEditor(); } ,0); }X.O13(); }}return true; }X.o10(); X.Oi("_insertAnchor",X.Of("anchor","Insert Anchor"),O1b,""); };HTMLEditor.prototype.anchorsOn= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.showAnchors=!this.showAnchors; HTMLEditor.Ix(this,this.l1,!this.showAnchors);this.updateToolbar(); };HTMLEditor.prototype.anchorsOnState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.showAnchors; };HTMLEditor.Ix= function (X,l1,i1p){var O1j=l1.getElementsByTagName("A"); var oe= false; for (var i=0; i<O1j.length; i++){var a=O1j[i]; if (a.name && a.name.length>0){while (a.firstChild){a.removeChild(a.firstChild); oe= true; }if (!i1p){var img=l1.createElement("IMG"); img.title=a.name; img.src=X.Q[0]; img.setAttribute(X.noContextMenuAttributeName(),"yes"); a.appendChild(img); }}}return oe; };HTMLEditor.O4= function (X,link){function O1b(o1j,text){if (!o1j || text.length==0){setTimeout( function (){X.I19( false); } ,012); }else {link.name=text; try {link.firstChild.title=text; }catch (t){}if (HTMLEditor.is_ie){setTimeout( function (){try {var l1e=X.l1.body.createControlRange(); l1e.add(link.firstChild); l1e.select(); }catch (t){}} ,0); }else if (HTMLEditor.l10){X.f= true; X.focusEditor(); }X.O13(); }return true; }X.o10(); X.Oi("_insertAnchor",X.If("anchor","Edit Anchor"),O1b,link.name); };HTMLEditor.prototype.insertPlaceHolder= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1b(o1j,text){if (!o1j || text.length==0){X.I19( false); }else {var Oh; if (X.showPlaceHolders || HTMLEditor.is_ie)Oh="\x3cimg dummytag=\"placeholder\" title=\'"+text+"' src='"+X.Q[4]+"'>"; else Oh="<placeholder name='"+text+"'/>"; if (!X.I10(Oh)){X.I19( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.l16(ip); if (HTMLEditor.l10)X.f= true; X.i16(ip,oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (!X.showPlaceHolders)HTMLEditor.oy(X,X.l1, true); }X.O13(); }}return true; }X.o10(); X.Oi("_insertPlaceHolder",X.Of("placeholder","Insert PlaceHolder"),O1b,""); };HTMLEditor.prototype.placeHoldersOn= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.showPlaceHolders=!this.showPlaceHolders; HTMLEditor.oy(this,this.l1,!this.showPlaceHolders);this.updateToolbar(); };HTMLEditor.prototype.placeHoldersOnState= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return false; return this.showPlaceHolders; };HTMLEditor.oy= function (X,l1,i1p){var oe= false; if (i1p){var I1p=l1.getElementsByTagName("IMG"); var O1j=[]; for (var i=0; i<I1p.length; i++)O1j.push(I1p[i]); for (var i=0; i<O1j.length; i++){var a=O1j[i]; var o1q=a.getAttribute("dummytag"); if (o1q && o1q.length>0 && o1q.toLowerCase()=="placeholder"){var O1q=l1.createElement("PLACEHOLDER"); var title=a.title; if (title==null || typeof title=="undefined")title=a.getAttribute("title"); O1q.name=title; O1q.setAttribute("name",title); a.parentNode.insertBefore(O1q,a); a.parentNode.removeChild(a); oe= true; }}}else {var I1p=l1.getElementsByTagName("PLACEHOLDER"); var O1j=[]; for (var i=0; i<I1p.length; i++)O1j.push(I1p[i]); for (var i=0; i<O1j.length; i++){var a=O1j[i]; var l1q= true; try {if (a.childNodes.length>0)l1q= false; }catch (w){}if (l1q){var name=a.name; if (name==null || typeof name=="undefined")name=a.getAttribute("name"); var img=l1.createElement("IMG"); img.title=name; img.src=X.Q[4]; img.setAttribute("dummytag","placeholder"); img.setAttribute("title",name); a.parentNode.insertBefore(img,a); a.parentNode.removeChild(a); }}}return oe; };HTMLEditor.O3= function (X,link){function O1b(o1j,text){if (!o1j || text.length==0){setTimeout( function (){X.I19( false); } ,012); }else {link.title=text; link.setAttribute("title",text); if (HTMLEditor.is_ie){setTimeout( function (){var l1e=X.l1.body.createControlRange(); l1e.add(link); l1e.select(); } ,0); }else if (HTMLEditor.l10){X.f= true; X.focusEditor(); }X.O13(); }return true; }X.o10(); var title=link.title; if (title==null || typeof title=="undefined")title=link.getAttribute("title"); X.Oi("_insertPlaceHolder",X.If("placeholder","Edit PlaceHolder"),O1b,title); };HTMLEditor.prototype.insertSpec= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1b(o1j,html){if (!o1j){X.I19( false); }else {if (!X.I10(html)){X.I19( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.l16(ip); if (HTMLEditor.l10)X.f= true; X.i16(ip,oq); X.updateToolbar(); X.focusEditor(); } ,0); }X.O13(); }}return true; }X.o10(); X.Oi("_insertSpec",X.Of("special-characters","Insert a special character"),O1b); };HTMLEditor.prototype.spellCheck= function (lp){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1b(o1j,i1q){if (!o1j){X.I19( false); }else {if (HTMLEditor.l10){X.f= true; X.focusEditor(); }X.updateToolbar(); X.focusEditor(); }if (typeof lp=="function")setTimeout( function (){lp(o1j); X.O13(); } ,0); X.O13(); return true; }X.o10(); X.I1q( function (o1r){X.Om(); X.updateToolbar(); X.Oi("_spellCheck",X.Of("spell-checker","Spell checker"),o1r,O1b); } ); };HTMLEditor.prototype.customPopup= function (O1r,l1r,i1r,l1d,o1o,I1r,I1k,o1s,O1s){var X=this ; var l1s=l1d; if (l1d!=null && typeof l1d=="function"){l1s= function (iw,i1n){var oe=l1d(iw,i1n); if (iw!=null){setTimeout( function (){X.O13(); } ,0144); }return oe; } ; }X.Oi("_customPopup",O1r,l1r,i1r,l1s,o1o,I1r,I1k,o1s,O1s); };HTMLEditor.prototype.insertHR= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; try { this.o10(); if (HTMLEditor.is_Safari)this.Oq(this.Ip()); var i1s=this.l1.createElement("div"); i1s.innerHTML="<hr>"; var ik=i1s.firstChild; var X=this ; var I1s=this.o1t(); if (!I1s)return; var parent=I1s.parentNode; parent.insertBefore(ik,I1s); parent.removeChild(I1s); ik=(ik.nextSibling)?ik.nextSibling:ik; HTMLEditor.o1k(ik,X); setTimeout( function (){X.O13(); X.updateToolbar(); } ,5); X.focusEditor(); return true; }catch (t){alert("HR: "+t.message); }};HTMLEditor.o1k= function (O1t,X){var ik=O1t; if (HTMLEditor.is_ie){var ip=X.Ip(); var oq=X.Oq(ip); var l1t=0,_top=0; var i1t=(ik.nodeType==3); var span; if (i1t){span=X.l1.createElement("SPAN"); ik.parentNode.insertBefore(span,ik); ik=span; }while (ik){if (ik.tagName.toUpperCase()=="BODY")break; l1t+=ik.offsetLeft; _top+=ik.offsetTop; ik=ik.offsetParent; if (ik){l1t+=ik.clientLeft; _top+=ik.clientTop; }}if (i1t){span.parentNode.removeChild(span); }if (ip.type.toLowerCase()!="control"){try {oq.moveToPoint(l1t,_top); }catch (t){}}oq.select(); }else {var ip=X.Ip(); var oq=X.Oq(); oq.setStart(ik,0); oq.setEnd(ik,0); X.l16(ip); if (HTMLEditor.l10)X.f= true; X.i16(ip,oq); X.focusEditor(); }};HTMLEditor.prototype.getRange= function (){return this.Oq(this.Ip()); };HTMLEditor.prototype.setRange= function (oq){try {if (HTMLEditor.is_ie){oq.select(); }else {var ip=this.Ip(); this.l16(ip); this.i16(ip,oq); } this.focusEditor(); }catch (t){}};HTMLEditor.prototype._butState= function (I1t,o1u){var id=document.getElementById(I1t); var ik=id; this.O1u=o1u; var status=this.O1u(); if (ik.tagName.toUpperCase()=="IMG"){var ll=ik.getAttribute("but_status"); if (ll && ll.length>0){if (ll!=((status)?"_a": "_n")){ik.setAttribute("but_status",((status)?"_a": "_n")); ik.src=((status)?ik.getAttribute("active_src"):ik.getAttribute("passive_src")); }return; }var ok=ik.src; var l1u=ok.search(/_[nahp]\.gif/i); if (l1u>0 && ok.substring(l1u,2).toLowerCase()!=((status)?"_a": "_n")){ok=ok.substring(0,l1u)+((status)?"_a.gif": "_n.gif"); ik.src=ok; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.i1u(ik,ok);} ,0144); return; }}};HTMLEditor.prototype._butOver= function (ik){return; if (this.isPopup())return; if (ik.tagName.toUpperCase()=="IMG"){var ok=ik.src; var l1u=ok.search(/_[nahp]\.gif/i); if (l1u>0){ik.setAttribute("save_src",ok); if (ok.search(/_a\.gif/i)>0)ok=ok.substring(0,l1u)+"_p.gif"; else ok=ok.substring(0,l1u)+"_h.gif"; ik.src=ok; ik.setAttribute("save_over","1"); return; }}if (ik.className=="HE_button")ik.className="HE_button_over"; };HTMLEditor.prototype._butOut= function (ik){return; if (ik.tagName.toUpperCase()=="IMG"){var ok=ik.src; var l1u=ok.search(/_[nahp]\.gif/i); if (l1u>0){var ll=ik.getAttribute("save_src"); if (ll && ll.length>0)ik.src=ll; ik.setAttribute("save_over",""); return; }}if (ik.className=="HE_button_over")ik.className="HE_button"; };HTMLEditor.prototype._butDown= function (ik){var X=this ; if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; if (X.iz){X.iz.select(); X.iz=null; }}if (this.isPopup())return; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (ik.tagName.toUpperCase()=="IMG"){var X=this ; var ll=ik.getAttribute("but_status"); if (ll && ll.length>0){if (ll!="_a"){ik.setAttribute("but_status","_a"); ik.src=ik.getAttribute("active_src"); X.I1u=setTimeout( function (){X._butUp(ik); X.I1u=null; } ,03720); }return; }var ok=ik.src; var l1u=ok.search(/_[nahp]\.gif/i); if (l1u>0 && ok.substring(l1u,2).toLowerCase()!="_a"){ok=ok.substring(0,l1u)+"_a.gif"; ik.src=ok; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.i1u(ik,ok);} ,0144); X.I1u=setTimeout( function (){X._butUp(ik); X.I1u=null; } ,03720); return; }}};HTMLEditor.i1u= function (ik,o1v){var O1v=ik.src.search(/_[nahp]\.gif/i); var l1v=o1v.search(/_[nahp]\.gif/i); if (O1v>0 && l1v>0 && ik.src.substring(0,O1v).toLowerCase()==o1v.substring(0,l1v).toLowerCase())return; ik.src=o1v; setTimeout( function (){HTMLEditor.i1u(ik,o1v);} ,0144); };HTMLEditor.prototype._butUp= function (ik){if (ik.tagName.toUpperCase()=="IMG"){var X=this ; var ll=ik.getAttribute("but_status"); if (ll && ll.length>0){if (ll!="_n"){if (X.I1u){clearTimeout(X.I1u); X.I1u=null; }ik.setAttribute("but_status","_n"); ik.src=ik.getAttribute("passive_src"); }return; }var ok=ik.src; var l1u=ok.search(/_[nahp]\.gif/i); if (l1u>0 && ok.substring(l1u,2).toLowerCase()!="_n"){if (X.I1u){clearTimeout(X.I1u); X.I1u=null; }ok=ok.substring(0,l1u)+"_n.gif"; ik.src=ok; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.i1u(ik,ok);} ,0144); }}return true; };HTMLEditor.prototype.o1t= function (i1v){var ik=this.l1.createElement("SPAN"); var X=this ; ik.id=HTMLEditor.il; if (typeof i1v=="undefined"){if (!this.I10(HTMLEditor.getHTML(ik, true)))return null; }else {if (i1v.nextSibling==null)i1v.parentNode.appendChild(ik); else i1v.parentNode.insertBefore(ik,i1v.nextSibling); i1v.parentNode.removeChild(i1v); }ik=this.l1.getElementById(HTMLEditor.il); ik.id=null; ik.removeAttribute("id"); ik.setAttribute("para","no"); var parent=ik.parentNode; while (parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="TD" && parent.tagName.toUpperCase()!="P" && parent.tagName.toUpperCase()!="DIV"){if (HTMLEditor.O1e(parent.tagName))parent=parent.parentNode; else break; }if (parent.tagName.toUpperCase()=="P"){ik.setAttribute("para",""); function I1v(add,ik,o1w,O1w){var l1w; var par=HTMLEditor.i1w(o1w,X.l1, false); if (add)par.appendChild(add); while (ik){if (ik.nodeType==1 || (ik.nodeType==3 && HTMLEditor.O12(""+ik.data+"").length>0)){var text=null; if (ik.tagName && ik.tagName.toUpperCase()=="SCRIPT")text=ik.text; var I1w=HTMLEditor.i1w(ik,X.l1, true); if (par.childNodes.length==0 || !O1w)par.appendChild(I1w); else par.insertBefore(I1w,par.firstChild); if (text!=null)I1w.text=text; }ik=O1w?ik.previousSibling:ik.nextSibling;}if (par.childNodes.length==0){ delete par; par=null; }if (o1w==parent)return par; else return I1v(par,O1w?o1w.previousSibling:o1w.nextSibling,o1w.parentNode,O1w); } ; var o1x=I1v(null,ik.previousSibling,ik.parentNode, true); var O1x=I1v(null,ik.nextSibling,ik.parentNode, false); var par=parent.parentNode; if (o1x){par.insertBefore(o1x,parent); ik.setAttribute("para",ik.getAttribute("para")+" left"); }par.insertBefore(ik,parent); if (O1x){par.insertBefore(O1x,parent); ik.setAttribute("para",ik.getAttribute("para")+" right"); }par.removeChild(parent); }return ik; };HTMLEditor.prototype.mode= function (){return this.O1; };HTMLEditor.prototype.o1c= function (l1x,value){ this.i1d(l1x, false ,value); };HTMLEditor.prototype.i1x= function (l1x){return this.O1c(l1x); };HTMLEditor.prototype.I1x= function (){if (HTMLEditor.is_ie)return "&nbsp;"; else return "<br/>"; };HTMLEditor.prototype.insertTable= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var ip=this.Ip(); var oq; try {oq=this.Oq(ip); }catch (Oj){alert(this.Ie("click-to-editor","Click to editing panel.")); X.l16(ip); return; }if (HTMLEditor.getSelParent(this ).ownerDocument.id!="EditorDocument"){alert(this.Ie("click-to-editor","Click to editing panel.")); return false; }var X=this ; var iw=X.l1; this.o10(); var i1s=this.l1.createElement("div"); i1s.innerHTML="<table></table>"; var table=i1s.firstChild; function O1b(o1j){var ik=table; if (o1j){ik=ik.firstChild.firstChild.firstChild; HTMLEditor.o1k(ik,X); setTimeout( function (){X.updateToolbar(); X.O13(); } ,5); }else {X.I19( 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 o1y=table.insertRow(table.rows.length); for (var ig=0; ig<this.defaultTable.columns; ig++){var cell=o1y.insertCell(o1y.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.I1x(); }}var I1s=this.o1t(); if (!I1s){X.I19( false); return; }var parent=I1s.parentNode; parent.insertBefore(table,I1s); parent.removeChild(I1s); X.Oi("_tableProperties",X.Of("table","Insert a Table"),table,O1b,0,0); };HTMLEditor.prototype.makeNotEditable= function (){var X=this ; if (!(X.o1 && X.mode()=="html" && !X.isPopup()))return; var o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(X.O1h()): ""; var ip=X.Ip(); var oq=X.Oq(ip); if (X.iq())return; if (!((HTMLEditor.is_ie && oq.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0)))return; var ip=X.Ip(); var oq=X.Oq(ip); var O1y=HTMLEditor.il+"_right"; var l1y=HTMLEditor.il+"_left"; var i1y=null; var I1y=null; if (HTMLEditor.is_ie){i1y=oq.duplicate(); I1y=oq.duplicate(); i1y.setEndPoint("EndToStart",oq); I1y.setEndPoint("StartToEnd",oq); }else {i1y=oq.cloneRange(); I1y=oq.cloneRange(); i1y.setEnd(i1y.startContainer,i1y.startOffset); I1y.setStart(I1y.endContainer,I1y.endOffset); }var o1z=null; var O1z=null; X.o10(); if (!X.I10("<span id='"+O1y+"'/>",I1y))return []; if (!X.I10("<span id='"+l1y+"'/>",i1y)){var l1z=X.l1.getElementById(O1y); if (l1z!=null){ok=l1z.parentNode; ok.removeChild(l1z); }X.I19( false); return; }o1z=X.l1.getElementById(l1y); O1z=X.l1.getElementById(O1y); if (o1z==null){var span=X.l1.createElement("SPAN"); span.id=l1y; O1z.parentNode.insertBefore(span,O1z); o1z=span; }if (O1z==null){var span=X.l1.createElement("SPAN"); span.id=O1y; if (o1z.nextSibling)o1z.parentNode.insertBefore(span,o1z.nextSibling); else o1z.parentNode.appendChild(span); O1z=span; }HTMLEditor.i1z(o1z); HTMLEditor.i1z(O1z); var I1z=HTMLEditor.o20(o1z,O1z); var O20=null; if (I1z!=null){var parent=I1z.parent; var l20=parent.tagName.toUpperCase(); var ik=null; if (l20=="TR" || l20=="TBODY" || l20=="TABLE"){var ik=parent; while (ik && ik.tagName.toUpperCase()!="TABLE")ik=ik.parentNode; }else if (l20=="OL" || l20=="UL" || l20=="DL"){var ik=parent; }if (ik!=null){ik.parentNode.insertBefore(o1z,ik); if (ik.nextSibling)ik.parentNode.insertBefore(O1z,ik.nextSibling); else ik.parentNode.appendChild(O1z); I1z=HTMLEditor.o20(o1z,O1z); parent=I1z.parent;}var i20=I1z.parent.childNodes.item(I1z.I20); var o21=I1z.parent.childNodes.item(I1z.O21); var l21="SPAN"; O20=X.l1.createElement(l21); if (HTMLEditor.is_ie)O20.contentEditable="false"; else O20.setAttribute("contenteditable","false"); parent.insertBefore(O20,i20);while (i20!=null){var i21=i20.nextSibling; O20.appendChild(i20); if (i20==o21)break; i20=i21; }if (HTMLEditor.is_ie){oq=X.l1.body.createControlRange(); oq.add(O20); oq.select(); }else {ip=X.Ip(); var O16; if (O20.nextSibling!=null && O20.nextSibling.nodeType==3){O16=O20.nextSibling; }else {O16=X.l1.createTextNode(""); if (O20.nextSibling!=null)O20.parentNode.insertBefore(O16,O20.nextSibling); else O20.parentNode.appendChild(O16); }X.l16(ip); oq=X.Oq(ip); oq.setStart(O16,0); oq.setEnd(O16,0); X.i16(ip,oq); }}if (o1z!=null)o1z.parentNode.removeChild(o1z); if (O1z!=null)O1z.parentNode.removeChild(O1z); if (O20!=null){var index=HTMLEditor.o16(O20); HTMLEditor.I21(O20.parentNode,this.l1,index,index+1); }};HTMLEditor.prototype.insertIMG= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var ip=this.Ip(); var oq=this.Oq(ip); var X=this ; var iw=X.l1; this.o10(); function O1b(o1j){try {var ik=iw.getElementById(HTMLEditor.il); ik.id=null; ik.removeAttribute("id"); if (o1j){if (HTMLEditor.is_Safari){ik=(ik.nextSibling)?ik.nextSibling:ik; setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.l16(ip); X.i16(ip,oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){var l1e=iw.body.createControlRange(); l1e.add(ik); l1e.select(); }else {if (HTMLEditor.l10)X.f= true; ik=(ik.nextSibling)?ik.nextSibling:ik; HTMLEditor.o1k(ik,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.O13(); }else {X.I19( false); }X.focusEditor(); }catch (t){alert("IMG create: "+t.message); }return true; }var i1s=this.l1.createElement("div"); i1s.innerHTML="<img>"; var img=i1s.firstChild; img.id=HTMLEditor.il; img.alt=""; img.border=0; img.align=""; img.vspace=0; img.hspace=0; if (!HTMLEditor.is_ie){}if (this.I10(HTMLEditor.getHTML(img, true))){var ik=iw.getElementById(HTMLEditor.il); this.Oi("_imageProperties",this.Of("image","Insert Image"),ik,O1b); }else {X.I19( false); }};HTMLEditor.prototype.insertFlash= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var ip=this.Ip(); var oq=this.Oq(ip); var X=this ; var iw=X.l1; this.o10(); function O1b(o1j){try {var ik=iw.getElementById(HTMLEditor.il); ik.id=null; ik.removeAttribute("id"); if (o1j){if (HTMLEditor.is_Safari){ik=(ik.nextSibling)?ik.nextSibling:ik; setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.l16(ip); X.i16(ip,oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){ik.id=HTMLEditor.il; this.o10(); setTimeout( function (){X.I19( false); var o22=X.l1.getElementById(HTMLEditor.il); o22.id=null; o22.removeAttribute("id"); var l1e=X.l1.body.createControlRange(); l1e.add(o22); l1e.select(); } ,0); }else {if (HTMLEditor.l10)X.f= true; ik=(ik.nextSibling)?ik.nextSibling:ik; HTMLEditor.o1k(ik,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.O13(); }else {X.I19( false); }X.focusEditor(); }catch (t){alert("Flash create: "+t.message); }return true; }var i1s=this.l1.createElement("div"); if (HTMLEditor.is_ie)i1s.innerHTML="\x3cembed type=\"application/x-shockwave-flash\" id=\""+HTMLEditor.il+"\" quality=\"high\" wmode=\"transparent\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" >"; else {i1s.innerHTML="\x3cimg type=\"application/x-shockwave-flash\" dummytag=\"embed\" id=\""+HTMLEditor.il+"\" quality=\"high\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\""+" src=\""+X.Q[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; i1s.firstChild.style.backgroundImage="url('"+X.Q[2]+"')"; }var O22=i1s.firstChild; var l22=HTMLEditor.getHTML(O22, true); if (this.I10(l22)){var ik=iw.getElementById(HTMLEditor.il); this.Oi("_flashProperties",this.Of("flash","Insert Flash"),ik,O1b); }else {X.I19( false); }};HTMLEditor.prototype.insertMedia= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var ip=this.Ip(); var oq=this.Oq(ip); var X=this ; var iw=X.l1; this.o10(); function O1b(o1j){try {var ik=iw.getElementById(HTMLEditor.il); ik.id=null; ik.removeAttribute("id"); if (o1j){if (HTMLEditor.is_Safari){ik=(ik.nextSibling)?ik.nextSibling:ik; setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.l16(ip); X.i16(ip,oq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){ik.id=HTMLEditor.il; this.o10(); setTimeout( function (){X.I19( false , function (){var o22=X.l1.getElementById(HTMLEditor.il); o22.id=null; o22.removeAttribute("id"); var l1e=X.l1.body.createControlRange(); l1e.add(o22); l1e.select(); } ); } ,0); }else {if (HTMLEditor.l10)X.f= true; ik=(ik.nextSibling)?ik.nextSibling:ik; HTMLEditor.o1k(ik,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.O13(); }else {X.I19( false); }X.focusEditor(); }catch (t){alert("Media create: "+t.message); }return true; }var i1s=this.l1.createElement("div"); if (HTMLEditor.is_ie)i1s.innerHTML="\x3cembed type=\"application/x-mplayer2\" id=\""+HTMLEditor.il+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\" >"; else {i1s.innerHTML="\x3cimg type=\"application/x-mplayer2\" dummytag=\"embed\" id=\""+HTMLEditor.il+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\""+" src=\""+X.Q[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; i1s.firstChild.style.backgroundImage="url('"+X.Q[3]+"')"; }var O22=i1s.firstChild; if (this.I10(HTMLEditor.getHTML(O22, true))){var ik=iw.getElementById(HTMLEditor.il); this.Oi("_mediaProperties",this.Of("media","Insert Media"),ik,O1b); }else {X.I19( false); }};HTMLEditor.i0= function (){ this.width="auto"; this.height="auto"; this.i22="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.I22=050; HTMLEditor.prototype._changeHeight= function (o23){var X=this ; var i21=document.getElementById(X.mainDivId); var O23=null; var height; if (this.ShowQuickFormatDivId!=null)O23=document.getElementById(X.ShowQuickFormatDivId); if (parseInt(X.I13.style.height)+o23<0)return; if (this.O1=="text"){if (this.ShowQuickFormatDivId!=null)HTMLEditor.l17(this.ShowQuickFormatDivId); }else {if (!this._autoFocus && !this._wasFocused){HTMLEditor.l17(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.l17(this.ShowQuickFormatDivId); }}var i17=i21.offsetWidth; try {height=parseInt(X._textArea.style.height)+o23+"px"; X._textArea.style.height=height; }catch (t){}height=parseInt(X.I13.style.height)+o23+"px"; X.I13.style.height=height; X.O8.I8=height; if (HTMLEditor.is_ie && document.compatMode!="BackCompat")X.O8.I8=parseInt(height)+2+"px"; if (!HTMLEditor.is_Safari){if (typeof X.ox!="undefined"){X.ox=parseInt(X.ox)+o23; }}if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+o23+"px"; }if (X.ov){X.ov.style.height=parseInt(X.ov.style.height)+o23+"px"; }if (O23){height=parseInt(O23.childNodes.item(1).style.height)+o23+"px"; O23.childNodes.item(1).style.height=height; }if (!HTMLEditor.is_ie){if (i17!=i21.offsetWidth){X._onresize(); }}if (X.O1=="text"){if (X.ShowQuickFormatDivId!=null)HTMLEditor.i13(X.ShowQuickFormatDivId); }else {if (!X._autoFocus && !X._wasFocused){HTMLEditor.i13(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.i13(X.ShowQuickFormatDivId, true); }}};HTMLEditor.prototype.increaseHeight= function (){ this._changeHeight(HTMLEditor.I22); };HTMLEditor.prototype.decreaseHeight= function (){ this._changeHeight(0-HTMLEditor.I22); };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.l17(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.l17(X.ShowQuickFormatDivId); }}var i21=document.getElementById(X.mainDivId); var o19=document.getElementById(X.panelDivId); if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.l23 && typeof X.l23!="undefined"){X.I13.style.visibility="hidden"; }try {if (X.O8.i23!=i21.offsetWidth){var width=i21.offsetWidth-X.O8.i23; if (!HTMLEditor.is_ie){if (X.O8.l18!=o19.offsetHeight)width-=2; X.I13.style.width=parseInt(X.I13.style.width)+width+"px"; X.O8.i8=X.I13.style.width; if (X._iframe){X._iframe.style.width=X.I13.style.width; }if (X.ov){X.ov.style.width=X.I13.style.width; }}X.O8.i23=i21.offsetWidth; X.O8.I23=o19.offsetWidth; }if (X.O8.l18!=o19.offsetHeight){var height=X.O8.l18-((o19.style.display=="none")?0:o19.offsetHeight); X.I13.style.height=parseInt(X.I13.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 o24=(o19.offsetWidth>0)?o19.offsetWidth:X.Ox; if (!HTMLEditor.is_ie){X._iframe.style.width=o24-2+"px"; }}if (X.ov && X.ov.style.display!="none"){X.ov.style.height=parseInt(X.ov.style.height)+height+"px"; if (!HTMLEditor.is_ie){X.ov.style.width=o24-2+"px"; }}X.O8.I8=parseInt(X.O8.I8)+height+"px"; if (X.ov!=null && X.ov.style.display=="none")X.ov.style.height=X.O8.I8; if (!HTMLEditor.is_ie){X.O8.i8=o24-2+"px"; X.I13.style.width=o24-2+"px"; X.Ox=o24; }X.O8.l18=o19.offsetHeight; }}catch (t){}if (typeof t!="undefined"){if (!X._autoFocus && !X._wasFocused){HTMLEditor.i13(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.i13(X.ShowQuickFormatDivId, true); }}if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.l23 && typeof X.l23!="undefined"){X.l23=X.I13.value; X.I13.value=""; X.I13.style.visibility="hidden"; X.setTimeout( function (lw){if (X.It(lw))return; X.I13.value=X.l23; X.l23=null;X.I13.style.visibility="visible"; X.focusEditor(); } ,036); }};HTMLEditor.prototype.i18= function (i17){var X=this ; function O24(){var iw; if (HTMLEditor.is_Safari)iw=document.getElementById(X._hiddenContent+"_inner_iframePreview").contentWindow.document; else iw=X.ov.contentWindow.document; if (!iw){if (HTMLEditor.l24 || HTMLEditor.l10){setTimeout( function (){O24(); } ,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var i24=i17; var I24= false; function o25(O25,o1x,O1x){i24=O1x; I24= true; }i17.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,o25); i17=i24; iw.open(); var html=new l25(); 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 i25=0; i25<X._addCssFiles.length; i25++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[i25]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }html.write("</head>"); html.write("<body"+(X.C!=null?X.C: "")+">"); html.write(i17); html.write("</body>"); html.write("</html>"); iw.write(html.toString()); iw.close(); if (HTMLEditor.is_ie)X.ov.style.visibility="visible"; setTimeout( function (){if (!HTMLEditor.is_Safari){var o19=document.getElementById(X.panelDivId); o19.style.display="none"; }if (X.ShowQuickFormatDivId!=null){}if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_ie){X.ov.style.width="100%"; setTimeout( function (){X.ov.style.width=X.ov.offsetWidth+"px"; X.I13.style.width=X.ov.offsetWidth+"px"; } ,0); X.ov.style.height=X.O8.I8; }}} ,0); X.Om(); }setTimeout(O24,(HTMLEditor.l24 || HTMLEditor.l10)?0144: 0); };HTMLEditor.l8= function (className){if (HTMLEditor.is_Safari)return true; var I25=document.styleSheets,o26=I25.length; var O26= false; var i1q=[]; function l26(i26){if (i26.imports){try {var imports=i26.imports,o26=imports.length; for (var i=0; i<o26; i++)l26(i26.imports[i]); }catch (t){}}try {var rules=HTMLEditor.is_ie?i26.rules:i26.cssRules,o26=rules.length; for (var ig=0; ig<o26; ig++)I26(rules[ig]); }catch (t){}}function I26(rule){try {var select=rule.selectorText,style=rule.style; i1q.push( {select:select,style:style } ); }catch (w){}}for (var i=0; i<o26; i++)l26(I25[i]); for (var i=0; i<i1q.length; i++){try {var item=i1q[i]; if (item.select.indexOf(className)>=0)return true; }catch (w){}}return O26; };HTMLEditor.prototype.ow= function (){var X=this ; var Y=this._textArea; if (X.O8==null){if (HTMLEditor.l8(".HE_editPanel")){X.O8= {i8:X._textArea.offsetWidth,I8:X._textArea.offsetHeight } ; }else {setTimeout( function (){X.ow(); } ,062); return; }}var height=(this.I.height=="auto"?(parseInt(this.O8.I8)+"px"): this.I.height); height=parseInt(height); var width=(this.I.width=="auto"?(parseInt(this.O8.i8)+"px"): this.I.width); width=parseInt(width); var Oh=HTMLEditor.O12(X._textArea.value); if (X.F==null){X.F=[]; function o27(O25,o1x){X.F.push(O25); return ""; }Oh=Oh.replace(/(<style(?:[^>]*?)>(?:[^<]*?)<\/style(?:[^>]*?)>)/gi,o27); X._textArea.value=Oh; }Y.style.display="none"; var O27=document.createElement("div"); O27.className="inner_htmlarea"; this.o1=O27; Y.parentNode.insertBefore(O27,Y); var iframe=document.createElement("iframe"); iframe.id=X._hiddenContent+"_inner_iframe"; iframe.name=X._hiddenContent+"_inner_iframe"; if (this.suppressTab && !HTMLEditor.is_ie)iframe.tabIndex=-1; if (HTMLEditor.is_ie)iframe.src="javascript:false;"; if (HTMLEditor.is_ie)iframe.style.visibility="hidden"; iframe.className="inner_iframe"; O27.appendChild(iframe); this._iframe=iframe; iframe.marginHeight="0"; iframe.marginWidth="0"; iframe.style.borderWidth="0px"; if (HTMLEditor.is_ie)iframe.style.width="100%"; else {if (!HTMLEditor.l10 && document.compatMode!="BackCompat")width-=2; iframe.style.width=width+"px"; }iframe.style.height=height+"px"; this.ov=document.createElement("iframe"); this.ov.style.display="none";if (HTMLEditor.is_ie)this.ov.style.visibility="hidden"; this.ov.id=X._hiddenContent+"_inner_iframePreview"; this.ov.name=X._hiddenContent+"_inner_iframePreview"; if (HTMLEditor.is_ie)this.ov.src="javascript:false;"; this.ov.className="inner_iframe"; O27.appendChild(this.ov); this.ov.marginHeight="0"; this.ov.marginWidth="0"; this.ov.style.borderWidth="0px"; if (HTMLEditor.is_ie)this.ov.style.width="100%"; else { this.ov.style.width=width+"px"; } this.ov.style.height=height+"px"; Y=document.createElement("textarea"); if (HTMLEditor.is_ie){width="100%"; }else width=parseInt(iframe.offsetWidth)+"px"; height=parseInt(iframe.offsetHeight); if (HTMLEditor.is_ie)if (document.compatMode!="BackCompat")height-=2; Y.style.width=width; Y.style.height=height+"px";Y.style.margin="0px"; Y.style.padding="0px"; Y.style.borderWidth="0px"; Y.style.overflow="auto"; Y.style.display="none"; if (HTMLEditor.is_ie)Y.style.visibility="hidden"; O27.appendChild(Y); this.I13=Y; function l27(lw){if (X.It(lw))return; var iw; if (HTMLEditor.is_Safari)iw=document.getElementById(X._hiddenContent+"_inner_iframe").contentWindow.document; else iw=X._iframe.contentWindow.document; if (!iw){if (HTMLEditor.l24 || HTMLEditor.l10){X.setTimeout(l27,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}try {if (HTMLEditor.l24 || HTMLEditor.l10){iw.designMode="on"; }}catch (t){document.location.reload( true); return false; }X.l1=iw; iw.open(); var html=new l25(); if (X.d!=null)html.write(X.d); html.write("<html"+(X.B!=null?X.B: "")+(HTMLEditor.is_ie?" xmlns:teo"+HTMLEditor.il: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); html.write("\x3clink rel=\"stylesheet\" href=\""+X.Q[013]+"\" media=\"all\" />"); if (HTMLEditor.is_ie){html.write("<style> li {margin-top: 1px;} </style>"); }for (var i27=0; i27<X.F.length; i27++)html.write(X.F[i27]); html.write("\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var i25=0; i25<X._addCssFiles.length; i25++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[i25]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }if (X.D!=null)html.write(X.D.replace(/<meta[^\0]*?\/>/gi,"")); html.write("</head>"); html.write("<body id='editorBody'"+(X.C!=null?X.C: "")+">"); if (!HTMLEditor.is_ie){}else Oh=Oh.replace(/&amp;/ig,"&"); if (Oh.length==0){if (HTMLEditor.is_ie){}else {Oh="<br/>"; }}if (!HTMLEditor.is_ie){if (/<iframe/.test(Oh)){X.i10=Oh; Oh="";}else {X.i10=null; }}html.write(Oh); html.write("</body>"); html.write("</html>"); iw.write(html.toString()); iw.close(); if (HTMLEditor.is_ie && X._autoFocus)X._iframe.style.visibility="visible"; iw.id="EditorDocument"; if (HTMLEditor.is_ie){function I27(ik){if (ik.nodeType==1 && ik.tagName){var Ik=ik.tagName.toUpperCase(); if (Ik!="INPUT" && Ik!="TEXTAREA" && Ik!="IFRAME"){ik.unselectable="on"; }for (var o28=0; o28<ik.childNodes.length; o28++)I27(ik.childNodes.item(o28)); }}I27(document.getElementById(X.mainDivId)); iw.body.unselectable="off"; Y.unselectable="off"; if (X._autoFocus)iw.body.contentEditable= true; }else {try {if (X.panelDivId!=null)if (document.getElementById(X.panelDivId))document.getElementById(X.panelDivId).style.MozUserSelect="none"; if (X.bottomPanelDivId!=null)if (document.getElementById(X.bottomPanelDivId))document.getElementById(X.bottomPanelDivId).style.MozUserSelect="none"; }catch (t){}}HTMLEditor.Ov(iw,["keydown","keypress","mousedown","mouseup","dblclick"], function (event){return X.O28(event); } ); if (HTMLEditor.l10)HTMLEditor.Ok(X._iframe,"blur", function (event){X.f= false; HTMLEditor._stopEvent(event); return true; } ); if (HTMLEditor.l10)HTMLEditor.Ok(X._iframe,"focus", function (event){X.f= true; HTMLEditor._stopEvent(event); return true; } ); if (X._NoDrop){if (HTMLEditor.is_ie){HTMLEditor.Ov(iw.body,["drop"], function (event){HTMLEditor._stopEvent(event); return false; } ); HTMLEditor.Ov(iw.body,["dragenter","dragover"], function (event){HTMLEditor._stopEvent(event); return false; } ); }else {HTMLEditor.Ov(iw,["dragdrop"], function (event){HTMLEditor._stopEvent(event); return false; } ); }}if (X._NoPaste && HTMLEditor.is_ie){HTMLEditor.Ov(iw.body,["beforepaste","paste"], function (event){HTMLEditor._stopEvent(event); return false; } ); }if (!X.l28){var o19=document.getElementById(X.mainDivId); X.O8.i23=o19.offsetWidth; o19=document.getElementById(X.panelDivId); X.O8.l18=o19.offsetHeight; X.O8.I23=o19.offsetWidth; if (!o19.style.width || o19.style.width.indexOf("px")<0){X.l28= true; HTMLEditor.Ok(X.I0,"resize", function (event){X._onresize(event); } ); }if (X.__NoToolBar__ || HTMLEditor.l10){if (X.__NoToolBar__)o19.style.display="none"; X.setTimeout( function (lw){if (X.It(lw))return; X._onresize(); if (HTMLEditor.is_Safari || HTMLEditor.l10){X._iframe.style.width="100%"; X.setTimeout( function (lw){if (X.It(lw))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.I13.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }}else {X.setTimeout( function (lw){if (X.It(lw))return; if (X.__NoToolBar__){var o19=document.getElementById(X.panelDivId); o19.style.display="none"; }if (HTMLEditor.is_Safari)X.setTimeout( function (lw){if (X.It(lw))return; X._onresize(); } ,0); else {X._onresize(); }if (!HTMLEditor.is_ie){X._iframe.style.width="100%"; X.setTimeout( function (lw){if (X.It(lw))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.I13.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }} ; X.setTimeout(l27,(HTMLEditor.l24 || HTMLEditor.l10)?0144: 0); this.i28= true; } ; HTMLEditor.i4= function (X,table,I28){function O1b(o1j){if (!o1j){X.I19( false); }else {if (HTMLEditor.l10){X.f= true; X.focusEditor(); }setTimeout( function (){X.updateToolbar(); X.O13(); } ,012); }return true; }var o29=0,O29=0; while (I28!=null){if (I28.tagName){if (I28.tagName.toUpperCase()=="TD"){if (HTMLEditor.is_Safari){var l29=I28.parentNode; for (var i=0; i<l29.cells.length; i++)if (l29.cells.item(i)==I28){O29=i; break; }}else O29=I28.cellIndex; o29=I28.parentNode.rowIndex; break; }}I28=I28.parentNode; }X.o10(); if (table.getAttribute("width") && table.getAttribute("width").length>0){table.style.width=parseInt(table.getAttribute("width"))+"px"; table.removeAttribute("width"); }if (table.getAttribute("height") && table.getAttribute("height").length>0){table.style.width=parseInt(table.getAttribute("height"))+"px"; table.removeAttribute("height"); }if (table.getAttribute("background") && table.getAttribute("background").length>0){table.style.backgroundImage="url("+table.getAttribute("background")+")"; table.removeAttribute("background"); }if (table.getAttribute("border") && table.getAttribute("border").length>0){table.style.borderTopWidth=parseInt(table.getAttribute("border"))+"px"; table.style.borderLeftWidth=parseInt(table.getAttribute("border"))+"px"; table.removeAttribute("border"); }X.Oi("_tableProperties",X.If("table","Edit a Table"),table,O1b,o29,O29); };HTMLEditor.l4= function (X,cell){function O1b(o1j){if (!o1j){X.I19( false); }else {if (HTMLEditor.l10){X.f= true; X.focusEditor(); }X.updateToolbar(); X.O13(); }return true; }X.o10(); X.Oi("_cellProperties",X.If("cell","Edit a Cell"),cell,O1b); };HTMLEditor.l3= function (X,img){function O1b(o1j){if (!o1j){setTimeout( function (){X.I19( false); } ,012); }else {if (HTMLEditor.is_ie){setTimeout( function (){var l1e=X.l1.body.createControlRange(); l1e.add(img); l1e.select(); } ,0); }else if (HTMLEditor.l10){X.f= true; X.focusEditor(); }X.O13(); }return true; }X.o10(); X.Oi("_imageProperties",X.If("image","Edit an Image"),img,O1b); };HTMLEditor.prototype.editImage= function (img){if (img.tagName && img.tagName.toUpperCase()=="IMG")HTMLEditor.l3(this,img); };HTMLEditor.I1= function (X,ik){var i29= false; try {X.o10(); i29= true; if (!HTMLEditor.is_ie)ik=HTMLEditor.contentEditable(ik); ik.contentEditable="inherit"; ik.removeAttribute("contenteditable"); if (ik.tagName && (ik.tagName.toUpperCase()=="SPAN" || ik.tagName.toUpperCase()=="DIV")){var count=0; if (ik.attributes)for (var i=0; i<ik.attributes.length; i++){var I29=ik.attributes[i]; if (I29.name.toUpperCase()=="STYLE")continue; if (I29.specified)count++; }var o2a=(ik.style)?ik.style.cssText: ""; var par=ik.parentNode; if (count==0 && o2a.length==0){while (ik.firstChild!=null)par.insertBefore(ik.firstChild,ik); par.removeChild(ik); }HTMLEditor.I21(par,X.l1); }}catch (w){try {if (i29)X.I19( false); if (HTMLEditor.is_ie){HTMLEditor.o1k(ik,X); }}catch (O2a){}}};HTMLEditor.o2= function (X,O22){function O1b(o1j){if (!o1j){setTimeout( function (){X.I19( false); } ,0); }else {if (HTMLEditor.is_ie){O22.id=HTMLEditor.il; X.o10(); setTimeout( function (){X.I19( false); var o22=X.l1.getElementById(HTMLEditor.il); o22.id=null; o22.removeAttribute("id"); var l1e=X.l1.body.createControlRange(); l1e.add(o22); l1e.select(); } ,0); }else if (HTMLEditor.l10){X.f= true; X.focusEditor(); }X.O13(); }return true; }X.o10(); X.Oi("_flashProperties",X.If("flash","Edit a Flash"),O22,O1b); };HTMLEditor.I2= function (X,media){function O1b(o1j){if (!o1j){setTimeout( function (){X.I19( false); } ,012); }else {if (HTMLEditor.is_ie){X.o10(); setTimeout( function (){X.I19( false); } ,012); }else if (HTMLEditor.l10){X.f= true; X.focusEditor(); }X.O13(); }return true; }X.o10(); X.Oi("_mediaProperties",X.If("media","Edit Media"),media,O1b); };HTMLEditor.prototype.l2a= function (media,Oo){var X=this;if (media!=null){media.id=HTMLEditor.il; }X.o10(); X.ov.style.display="none"; if (HTMLEditor.is_ie)X.ov.style.visibility="hidden"; try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); if (HTMLEditor.is_ie)X.Ip().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=""; var ll=X.o1.removeChild(X._iframe); X._textArea.value=""; X._textArea.style.visibility="hidden"; X._textArea.style.display=""; X._iframe=null; delete ll; }catch (t){}setTimeout( function (){X.activate( function (){X.i2a( false); if (media!=null){var o22=X.l1.getElementById(HTMLEditor.il); o22.id=null; o22.removeAttribute("id"); media=o22; }if (typeof Oo=="function")Oo(media); } ); } ,0); };HTMLEditor.i2= function (X,I2a){X.o10(); var o2b=I2a; if (o2b.getAttribute(HTMLEditor.is) && o2b.getAttribute(HTMLEditor.is).length>0){var ok=X.Is(o2b); if (ok!=null)o2b=ok; }setTimeout( function (){if (HTMLEditor.is_ie){var ip=X.Ip(); ip.empty(); }var par=o2b.parentNode; if (par!=null){par.removeChild(o2b); if (par.tagName && par.tagName.toUpperCase()=="TD" && par.childNodes.length==0){par.innerHTML=X.I1x(); }}if (HTMLEditor.is_ie){var l15=X.K[X.O19-1]; var ip=X.Ip(); ip.empty(); var oq=X.l1.body.createTextRange(); try {oq.moveToPoint(l15.O2b,l15.l2b); }catch (t){}oq.select(); oq.execCommand("refresh", false , false); }X.O13(); } ,012); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.DeleteNode= function (I2a){HTMLEditor.i2(this,I2a); };HTMLEditor.o5= function (X,I2a){X.cut(); };HTMLEditor.l5= function (X,I2a){X.copy(); };HTMLEditor.i5= function (X,I2a){X.paste(); };HTMLEditor.o6= function (X,I2a){X.pasteText(); };HTMLEditor.O6= function (X,I2a){X.deleteSelection(); };HTMLEditor.l6= function (X,I2a){X.selectAll(); };HTMLEditor.O5= function (X,I2a){var o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(X.O1h()): ""; var ip=X.Ip(); var oq=X.Oq(ip); if (HTMLEditor.is_ie)if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; if (!X.iq() && ((HTMLEditor.is_ie && oq.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0)))return true; return false; };HTMLEditor.I5= function (X,I2a){if (!X.iq()){if (!HTMLEditor.is_ie){var oq=X.Oq(X.Ip()); var o1x=oq.startContainer; var O1x=oq.endContainer; var ik=HTMLEditor.contentEditable(o1x); if (ik==null)ik=HTMLEditor.contentEditable(O1x); if (ik!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return true; }return false; };HTMLEditor.O2= function (X,I2a){var o2b=I2a; if (o2b.getAttribute(HTMLEditor.is) && o2b.getAttribute(HTMLEditor.is).length>0){var ok=X.Is(o2b); if (ok!=null)o2b=ok; }setTimeout( function (){var i2b=X.l1.body.createControlRange(); i2b.add(o2b); i2b.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.O1a(); X.l1a("c", false); X.Om(); X.i1a(); } ,0);}else {X.l1a("c", false); setTimeout( function (){X.Ip().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.l2= function (X,I2a){var o2b=I2a; if (o2b.getAttribute(HTMLEditor.is) && o2b.getAttribute(HTMLEditor.is).length>0){var ok=X.Is(o2b); if (ok!=null)o2b=ok; }setTimeout( function (){var i2b=X.l1.body.createControlRange(); i2b.add(o2b); i2b.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.O1a(); X.l1a("x", false); X.Om(); } ,0);}else {X.l1a("x", false); setTimeout( function (){X.Ip().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.O10= function (par){try {var ik=this.l1.body; if (ik.firstChild)if (ik.firstChild.nodeType==3){var Oh=HTMLEditor.O12(""+ik.firstChild.data+""); if (Oh.length==0)ik.removeChild(ik.firstChild); else if (Oh!=(""+ik.firstChild.data+""))ik.firstChild.data=Oh; }if (HTMLEditor.is_ie)if (ik.childNodes.length==1){ik=ik.firstChild; if (ik.nodeType==1)if (ik.tagName.toLowerCase()=="p" || ik.tagName.toLowerCase()=="ul" || ik.tagName.toLowerCase()=="ol"){var I2b= false; var o2c=(ik.tagName.toLowerCase()=="ul" || ik.tagName.toLowerCase()=="ol")? true : false; function O2c(Oc){var oe= false; if (Oc.nodeType==1){if (!(o2c && Oc.tagName.toUpperCase()=="LI"))if (HTMLEditor.l2c(Oc) || Oc.tagName.toUpperCase()=="IMG" || Oc.tagName.toUpperCase()=="IFRAME" || Oc.tagName.toUpperCase()=="EMBED" || Oc.tagName.toUpperCase()=="SCRIPT")return true; if (Oc.childNodes.length>1)return true; if (Oc.childNodes.length==0)return false; oe |= O2c(Oc.firstChild); }else if (Oc.nodeType==3){oe |= true; }return oe; }if (ik.childNodes.length==1){if (!O2c(ik.firstChild)){ik.removeChild(ik.firstChild); I2b= true; }}if (I2b || ik.parentNode.innerHTML.toLowerCase()=="<p>&nbsp;</p>")this.l1.body.removeChild(ik); }} this.O13(); }catch (t){}};HTMLEditor.i2c=navigator.userAgent.toLowerCase(); HTMLEditor.is_ie=((HTMLEditor.i2c.indexOf("msie")!=-1) && (HTMLEditor.i2c.indexOf("opera")==-1)) && window.opera==null; HTMLEditor.l10=(HTMLEditor.i2c.indexOf("opera")!=-1) || window.opera; HTMLEditor.I2c=(HTMLEditor.i2c.indexOf("mac")!=-1); HTMLEditor.o2d=(HTMLEditor.is_ie && HTMLEditor.I2c); HTMLEditor.O2d=(HTMLEditor.is_ie && !HTMLEditor.I2c); HTMLEditor.l24=(navigator.product=="Gecko"); HTMLEditor.is_Safari=(HTMLEditor.i2c.indexOf("safari")!=-1); HTMLEditor.l2d=(HTMLEditor.i2c.indexOf("firefox")!=-1); HTMLEditor.i2d=(HTMLEditor.i2c.indexOf("safari")!=-1); HTMLEditor.I2d=(HTMLEditor.i2c.indexOf("firefox")!=-1); HTMLEditor.o2e=HTMLEditor.l24 && navigator.O2e=="Camino"; HTMLEditor.l2e=!HTMLEditor.l10 && navigator.userAgent.indexOf("Konqueror")!=-1; HTMLEditor.i2e=HTMLEditor.l2e || HTMLEditor.i2d; HTMLEditor.ij=(/[^12]\.(\d+)\.(\d+) safari/i).test(HTMLEditor.i2c); HTMLEditor.lj=(HTMLEditor.i2c.indexOf("netscape")!=-1 && navigator.vendorSub.replace(/^(\d+)\.\d*/,"$1")<8) || (HTMLEditor.l24 && navigator.productSub<0114371117) || (HTMLEditor.is_Safari && !HTMLEditor.ij); HTMLEditor.I2e= function (){var o2f="",O2f; if (HTMLEditor.l10){o2f=opera.o2f(); }else {if (HTMLEditor.l24){O2f=/rv:([^);]+)(\)|;)/; }else if (HTMLEditor.is_ie){O2f=/MSIE\s+([^);]+)(\)|;)/; }else if (HTMLEditor.i2d){O2f=/WebKit\/(\S+)/; }else if (HTMLEditor.l2e){O2f=/Konqueror\/([^);]+)(\)|;)/; }if (O2f){O2f.test(navigator.userAgent); o2f=RegExp.$1; }}return o2f; };HTMLEditor.compareVersions= function (l2f,i2f){var I2f=0,o2g=String(l2f).split("."),O2g=String(i2f).split("."),l2g=Math.max(o2g.length,O2g.length); for (var i2g=0; I2f==0 && i2g<l2g; i2g++){var I2g=o2g[i2g] || "",o2h=O2g[i2g] || "",O2h=new RegExp("(\\d*)(\\D*)","g"),l2h=new RegExp("(\\d*)(\\D*)","g"); do {var i2h=O2h.exec(I2g) || ["","",""],I2h=l2h.exec(o2h) || ["","",""]; if (i2h[0].length==0 && I2h[0].length==0){break; }var o2i=i2h[1].length==0?0:parseInt(i2h[1],012),O2i=I2h[1].length==0?0:parseInt(I2h[1],012); I2f=HTMLEditor.l2i(o2i,O2i) || HTMLEditor.l2i(i2h[2].length==0,I2h[2].length==0) || HTMLEditor.l2i(i2h[2],I2h[2]);}while (I2f==0);}return I2f;} ; HTMLEditor.l2i= function (left,right){if (left<right){return -1;}else if (left>right){return 1;}return 0;} ; HTMLEditor.i2i= function (I2i,o2j){return HTMLEditor.compareVersions(I2i,o2j); } ; HTMLEditor.O2j= function (o2f){return HTMLEditor.i2i(HTMLEditor.I2e(),o2f)>=0; } ; if (HTMLEditor.is_Safari && !HTMLEditor.ij)( function (){var l2j=String.prototype.replace; String.prototype.replace= function (search,replace){if (typeof replace!="function"){return l2j.apply(this,arguments);}var Oh=""+this ; var i2j=replace; if (!(search instanceof RegExp)){var I2j=Oh.indexOf(search); return (I2j==-1?Oh:l2j.apply(Oh,[search,i2j(search,I2j,Oh)]));}var o2k=search; var i1q=[]; var O2k=o2k.lastIndex; var O2f; while ((O2f=o2k.exec(Oh))!=null){var I2j=O2f.index; var Ob=O2f.concat(I2j,Oh); i1q.push(Oh.slice(O2k,I2j),i2j.apply(null,Ob).toString()); if (!o2k.global){O2k+=RegExp.lastMatch.length; break; }else {O2k=o2k.lastIndex; }}i1q.push(Oh.slice(O2k)); return i1q.join(""); };} )(); HTMLEditor.r= function (){if (HTMLEditor.l24){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.I2c && !(HTMLEditor.is_Safari || HTMLEditor.l2d)){alert(this.Ie("mac-using","Use Safari or FireFox...")); return false; }if (HTMLEditor.l10){var o2f=0; var l2k=0; function test(O25,o1x,O1x){o2f=parseInt(o1x); l2k=parseInt(O1x); }HTMLEditor.i2c.replace(/opera\/(\d+)\.(\d+)/ig,test); if (!(o2f*0144+l2k>=01630)){alert("Opera < 9.20 is not supported"); return false; }}return HTMLEditor.l24 || HTMLEditor.is_ie || HTMLEditor.l10; } ; HTMLEditor.Ok= function (ik,i2k,Oo){if (!ik){return; }if (ik.attachEvent)ik.attachEvent("on"+i2k,Oo); else {if (ik.addEventListener)ik.addEventListener(i2k,Oo, true); }} ; HTMLEditor.Ov= function (ik,I2k,Oo){if (!ik){return; }try {if (typeof ik.push=="function"){for (var i=0; i<I2k.length; i++)for (var ig=0; ig<ik.length; ig++)HTMLEditor.Ok(ik[ig],I2k[i],Oo); }else {for (var i=0; i<I2k.length; i++)HTMLEditor.Ok(ik,I2k[i],Oo); }}catch (t){ throw t; }} ; HTMLEditor.lc= function (ik,i2k,Oo){if (ik.detachEvent)ik.detachEvent("on"+i2k,Oo); else {if (ik.removeEventListener)ik.removeEventListener(i2k,Oo, true); }} ; HTMLEditor.o2l= function (ik,I2k,Oo){if (ik.push){for (var i=0; i<I2k.length; i++)for (var ig=0; ig<ik.length; ig++)HTMLEditor.lc(ik[ig],I2k[i],Oo); }else {for (var i=0; i<I2k.length; i++)HTMLEditor.lc(ik,I2k[i],Oo); }} ; HTMLEditor._stopEvent= function (Oj){if (Oj)if (HTMLEditor.is_ie){Oj.cancelBubble= true; Oj.returnValue= false; }else {Oj.preventDefault(); Oj.stopPropagation(); }} ; HTMLEditor.prototype._stopEvent= function (Oj){HTMLEditor._stopEvent(Oj); };HTMLEditor.prototype._formSubmit= function (Oj){if (!this.oo && this.mainDivVisible){try {return [document.getElementsByName(this._hiddenContent)[0].value,document.getElementsByName(this._hiddenContent)[0].value]; }catch (w){return ["",""]; }}var i17=""; if (this.O1=="preview"){i17=""; if (this.l14=="html")i17=this.o18; else i17=this.I13.value; if (HTMLEditor.is_Safari){}}else {if (this.O1=="html"){i17=this.getHTML(); }else {if (this.I13)i17=this.I13.value; }}var O2l=i17.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"); if (!this._remainLf)O2l=HTMLEditor.O12(O2l); this._textArea.value=O2l; return [O2l,i17]; } ; HTMLEditor.prototype._prepareHTML= function (Oh){var save=this.O1; this.O1="text"; var l2l=(this.I13)? true : false; if (!l2l){var Y=document.createElement("textarea"); this.I13=Y; if (HTMLEditor.is_Safari)document.body.appendChild(Y); }if (!(this.Ou && !HTMLEditor.S())){ this.I13.value=(this._textArea.value.length>0)?(this._textArea.value.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,"\"").replace(/&amp;/g,"&")): ((typeof Oh=="string")?Oh.replace(/&quot;/g,"\""):Oh.value); function i2l(O25,o1x){if (o1x=="\\n")return "\n"; return o1x.replace("\\\\","\\"); } this.I13.value=this.I13.value.replace(/([\\]+n)/g,i2l); if (this.InitialCleanUp)this.I13.value=HTMLEditor.I2l(HTMLEditor.O12(this.I13.value.replace(/[\n\r]+/g," "))); if (typeof Oh!="string")Oh.value=""; document.getElementsByName(this._hiddenContent)[0].value=HTMLEditor.O12(this.I13.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")); if (document.getElementsByName(this._hiddenContent+"_modified").length==0){var ok=document.createElement("input"); ok.type="hidden"; ok.name=this._hiddenContent+"_modified"; document.getElementsByName(this._hiddenContent)[0].parentNode.insertBefore(ok,document.getElementsByName(this._hiddenContent)[0]); }}if (this._textArea.style.visibility=="hidden")this._textArea.style.visibility="visible"; this.F=null; var oe=this.getHTML(); if (!l2l){ this.I13=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; } this.O1=save; return oe; };HTMLEditor.prototype.setOriginal= function (on){var X=this ; if (X.mode()=="preview"){X.o15= false; X.l= true; }else if (X.mode()=="text"){X.I14=X.I13.value; X.o15= false; X.l= true; }else {X.o13=HTMLEditor.O12((typeof on!="undefined" && on!=null)?on:HTMLEditor.getHTML(X.l1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.O13(); }X.l= false; }return true; };HTMLEditor.prototype.setContent= function (Oh,o2m,O2m){if (this.mode()=="preview")return false; var X=this ; if (typeof O2m=="function"){ this.L=O2m; }function l2m(){if (typeof Oh=="string"){if (!X.Ot() || !X.mainDivVisible){X._textArea.value=""; X._textArea.value=X._prepareHTML(Oh.replace(/"/g,"&quot;")); X.Om(); X.O13(); return false; }try {try {if (X.mode()=="html")X.o10(); }catch (t){}var ll=X._textArea.parentNode.removeChild(X.o1); X.o1=null; delete ll; }catch (t){}try {X._textArea.value=""; X._textArea.value=X._prepareHTML(Oh.replace(/"/g,"&quot;")); if ((typeof o2m!="undefined") && o2m){X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O19=-1; }}X.activate(); if (X.mainDivVisible)setTimeout( function (){X.focusEditor(); } ,0454); }catch (t){X.Om(); return false; }X.O13(); }else {if ((typeof o2m!="undefined") && o2m){X.o13=HTMLEditor.O12(HTMLEditor.getHTML(X.l1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.O13(); }if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O19=-1; }}X.Om(); }return true; }if (this.mode()=="text"){if (this.mainDivVisible){try {if (typeof Oh=="string")X.I13.value=Oh; if ((typeof o2m!="undefined") && o2m){X.I14=X.I13.value; X.o15= false; X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O19=-1; }}}catch (t){return false; }return true; }else {if (typeof Oh=="string"){X._textArea.value=""; X._textArea.value=X._prepareHTML(Oh.replace(/"/g,"&quot;")); if (X.I13!=null && X.I13!="undefined")X.I13.value=X._textArea.value; }return true; }}if (this.mode()=="html"){if (this.mainDivVisible){function i2m(){if (X.oo){X.openWait(); setTimeout(l2m,0); }else {setTimeout(i2m,0144); }}i2m(); }return true; }return false; };HTMLEditor.prototype.getContent= function (I2m){var oe; if (this.O1=="preview"){if (this.l14=="html")oe=this.o18; else oe=this.I13.value; }else if (HTMLEditor.is_ie){if (this.O1=="html"){oe=this.getHTML(); }else {var l2l=(this.I13)? true : false; if (!l2l){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.I13=Y; this.I13.value=document.getElementsByName(this._hiddenContent)[0].value.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }oe=HTMLEditor.o2n(this.I13.value); if (!l2l){ this.I13=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }}}else {oe=this.getHTML(); }if (!(typeof I2m!="undefined" && I2m)){oe=HTMLEditor.O12(oe); oe=oe.replace(/[\0-\x1f]+$/,""); }if (oe.length>=6)if (oe.substr(oe.length-5,5)=="<br/>")oe=oe.substr(0,oe.length-5); else if (oe.substr(oe.length-6,6)=="<br />")oe=oe.substr(0,oe.length-6); else if (oe.substr(oe.length-4,4)=="<br>")oe=oe.substr(0,oe.length-4); return oe; } ; HTMLEditor.prototype.TextSelected= function (){if (this.mode()!="html")return false; var o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(this.O1h()): ""; var ip=this.Ip(); var oq=this.Oq(ip); if (!this.iq() && ((HTMLEditor.is_ie && oq.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0)))return true; else return false; };HTMLEditor.prototype.getContentWait= function (lp,I2m){if (typeof lp=="function"){var X=this ; X.openWait(); setTimeout( function (){lp(X.getContent(I2m)); X.Om(); } ,0); }} ; HTMLEditor.prototype.openWait= function (O2m){if (!this._pleaseWait)return; try {var Oc=document.getElementById(this.mainDivId).parentNode; var lt= true; while (Oc){if (Oc.style && Oc.style.display=="none"){lt= false; break; }Oc=Oc.parentNode; }if (this.N!=null || !lt || !this.mainDivVisible)return; if (typeof O2m=="function"){ this.L=O2m; }var popup; var X=this ; popup=X.A.ownerDocument.createElement("div"); popup.className="popup_wait"; popup.innerHTML="<div><center><nobr>"+X.Ie("wait","Please wait...")+"<nobr></center></div>"; X.A.appendChild(popup); var i8=parseInt(popup.offsetWidth); var I8=parseInt(popup.offsetHeight); popup.style.display="none"; var y; var x; var O2n=(X.O1=="text")?(X.o1==null?null:X.I13): ((X.O1=="preview")?X.ov:X._iframe); if (O2n==null && X._textArea && X._textArea.style.l2n!="none" && X._textArea.style.visibility!="hidden")O2n=X._textArea; if (O2n==null || typeof O2n=="undefined")O2n=document.getElementById(X.mainDivId); var i2n=parseInt(O2n.offsetWidth); var I2n=parseInt(O2n.offsetHeight); var o2o=HTMLEditor.O2o(O2n, false); y=I2n/2-I8/2+o2o._top; x=i2n/2-i8/2+o2o.l1t; popup.style.top=y+"px"; popup.style.left=x+"px"; this.N=popup; popup.style.display=""; }catch (t){alert("openWait: "+t.message); }};HTMLEditor.prototype.Om= function (){if (this.L!=null){var l2o=this.L; setTimeout(l2o,0764); this.L=null; }if (HTMLEditor.is_ie && this.mainDivVisible && this.Ot() && this.O1=="html" && document.getElementById(this.mainDivId)!=null){try { this.updateToolbar(); }catch (t){} ; }if (this.N==null)return; var ok; try {ok=this.A.removeChild(this.N); delete ok; }catch (t){} this.N=null; };HTMLEditor.prototype.lb= function (O2m){try {if (document.getElementById(this.mainDivId)==null)return; var Oc=document.getElementById(this.mainDivId).parentNode; var lt= true; while (Oc){if (Oc.style && Oc.style.display=="none"){lt= false; break; }Oc=Oc.parentNode; }if (this.n!=null || !lt || !this.mainDivVisible)return; var popup; var X=this ; popup=X.A.ownerDocument.createElement("div"); popup.style.zIndex="20000"; popup.style.position="absolute"; popup.innerHTML="\x3cimg src=\""+this.Q[6]+"\">"; X.A.appendChild(popup); var i8=parseInt(popup.clientWidth); var I8=parseInt(popup.clientHeight); popup.style.display="none"; var y; var x; var O2n=(X.O1=="text")?(X.o1==null?null:X.I13): ((X.O1=="preview")?X.ov:X._iframe); if (O2n==null && X._textArea && X._textArea.style.l2n!="none" && X._textArea.style.visibility!="hidden")O2n=X._textArea; if (O2n==null || typeof O2n=="undefined")O2n=document.getElementById(X.mainDivId); var i2n=parseInt(O2n.clientWidth); var I2n=parseInt(O2n.clientHeight); var o2o=HTMLEditor.O2o(O2n, false); y=I2n/2-I8/2+o2o._top; x=i2n/2-i8/2+o2o.l1t; popup.style.top=y+"px"; popup.style.left=x+"px"; this.n=popup; popup.style.display=""; }catch (t){}};HTMLEditor.prototype.i2o= function (){if (this.n==null)return; var ok=this.A.removeChild(this.n); delete ok; this.n=null; };HTMLEditor.prototype.setVisibility= function (p){if (!this.lr)return false; var X=this ; if (p){if (!X.mainDivVisible){X.mainDivVisible= true; document.getElementById(X.mainDivId).style.display="block"; if (X.Or==0){if (X._setRealSize && typeof X._setRealSize=="function"){X._setRealSize(); }X.O8= {i8:X._textArea.offsetWidth,I8:X._textArea.offsetHeight } ; X.O1="html"; X.openWait(); X._textArea.style.visibility="hidden"; X.setTimeout( function (lw){if (X.It(lw))return; X.activate(); } ,0); }else {X.chMode("html"); }}}else {if (X.mainDivVisible){var V=0; if (X.v!=null && typeof X.v.pop=="function"){while (X.v.length>0){var T=X.v.pop(); if (typeof T[0]=="function"){try {clearTimeout(T[1]); }catch (t){}V++; }}X.v=null; }try {X.Om();}catch (w){} ; var I2o=X.clearPopups(); if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; }if (V>0)X.O1="undef"; var o2p= false; if (X.O1=="html" || X.O1=="preview"){if (I2o)setTimeout( function (){X.chMode("text", function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ); } ,0764); else X.chMode("text", function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ); }else if (X.O1=="undef"){X.O1="text"; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.Ip().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; try {X._iframe.src=""; }catch (t){} ; var ll=null; try {ll=X.o1.removeChild(X._iframe); }catch (t){} ; X._iframe=null; if (ll!=null) delete ll; ll=null; try {ll=X.o1.removeChild(X.ov); }catch (t){} ; X.ov=null; if (ll!=null) delete ll; ll=null; try {ll=X.o1.removeChild(X.I13); }catch (t){} ; X.I13=null; if (ll!=null) delete ll; ll=null; try {ll=X.o1.parentNode.removeChild(X.o1); }catch (t){} ; X.o1=null; if (ll!=null) delete ll; if (!HTMLEditor.is_Safari){X.ox=X.O8.I8; X.O18=X.O8.l18; }X._textArea.style.display="block"; }catch (t){}o2p= true; }else if (X.O1=="text")o2p= true; if (X.ShowQuickFormatDivId!=null)HTMLEditor.l17(X.ShowQuickFormatDivId); if (o2p)setTimeout( function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ,024); }}document.getElementsByName(X.mainDivVisibleName)[0].value=(X.mainDivVisible)?"true": "false"; };HTMLEditor.o2n= function (Oh){return Oh.replace(/<br>/ig,"<br/>"); };HTMLEditor.prototype.getHTML= function (om,O2p){try {var o14=this.O1; if (o14=="preview"){o14=this.l14; if (o14=="html"){return this.o18; }}function l2p(O25,o1x){return "&#"+o1x.charCodeAt(0).toString(012)+";"; }function i2p(O25,o1x){return "\x3cspan class=\""+HTMLEditor.il+"_script\" style=\'display:none;visibility:hidden;\'>"+o1x.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }var I2p=[]; function o2q(O25,o1x){I2p.push(o1x); return "";}function O2q(O25,o1x,O1x,l2q){return o1x.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var i2q=-1; function I2q(O25,o1x,O1x,l2q){i2q++; var o2r; if (!HTMLEditor.is_ie)o2r=I2p[i2q].replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); else o2r=I2p[i2q]; return o1x+o2r+l2q; }function O2r(O25,o1x){X.c=o1x; return O25; } ; function l2r(O25,o1x){X.d=o1x; return ""; } ; function i2r(O25,o1x){X.D=o1x; return ""; } ; function o25(O25,o1x,O1x){X.C=o1x; return O1x; } ; function I2r(O25,o1x){X.B=o1x; return O25; } ; switch (o14){case "html": this.O10(); var on=(typeof O2p!="undefined"); if (typeof om=="undefined" || om== false){var o2s=!HTMLEditor.Ix(this,this.l1, true); var O2s=!HTMLEditor.oy(this,this.l1, true); on=on && o2s && O2s; }var l2s=""; if (this.F!=null)for (var i=0; i<this.F.length; i++){l2s+=this.F[i].replace(new RegExp("}\\s*","g"),"}\n").replace(/(<style(?:[^>]*?)>)/ig,"$1\n")+"\n"; }if (HTMLEditor.is_ie){var ok=(on && typeof O2p!="undefined")?O2p:HTMLEditor.getHTML(this.l1.body, false , true); this.o15=!(this.o13==ok); ok=ok.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); ok=ok.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); ok=ok.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); ok=((this.l1.body.style.cssText.length>0)?"\x3cdiv style=\""+this.l1.body.style.cssText.replace("\"","'")+"\">": "")+ok+((this.l1.body.style.cssText.length>0)?"</div>": ""); if (this.predicatedTags)ok=ok.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); if (this.NoScript)ok=ok.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); if (/<embed/ig.test(ok)){ok=ok.replace(/(<embed(?:.*?))(\sloop="true")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\splay="true")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\sbgcolor="")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\sscale="")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\shspace="0")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\svspace="0")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(\swmode="[^"]+")((?:.*?)>)/ig,"$1$3"); ok=ok.replace(/(<embed(?:.*?))(pseudomode=)("[^"]*")((?:.*?)>)/ig,"$1wmode=$3$4"); ok=ok.replace(/(<embed(?:.*?))(\swmode="")((?:.*?)>)/ig,"$1$3"); }var i2s=l2s+HTMLEditor.o2n(ok); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var I2s=""; if (this.d!=null)I2s+=this.d; I2s+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">\n"; if (this.l1.getElementById("oboutEditorDefaultStyle")==null){I2s+="\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; I2s+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; }if (this._addCssFiles!=null){for (var i25=0; i25<this._addCssFiles.length; i25++){var o2t= true; if (this.D!=null && this.D.length>0){var O2t=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[i25]+"\"","ig");if (O2t.test(this.D))o2t= false; }if (o2t)I2s+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[i25]+"\" media=\"all\" />\n"; }}if (this.D!=null)I2s+=this.D; I2s+="\x3c/head>\n"; I2s+="<body"+(this.C!=null?this.C: "")+">\n"; I2s+=i2s+"\n"; I2s+="\x3c/body>\n\x3c/html>"; i2s=I2s; }if (this.NoUnicode)i2s=i2s.replace(/([\x80-\uffff])/g,l2p);if (HTMLEditor.O12(i2s)=="<br />")i2s=""; i2s=i2s.replace(/^([\n|\r]+)/,""); var l2t=new RegExp("(<[/]?)(teo"+HTMLEditor.il+":)","ig"); i2s=i2s.replace(l2t,"$1"); return i2s; }var i2t=this.l1.createElement("DIV"); i2t.style.cssText=this.l1.body.style.cssText; if (!this.NoScript)this.l1.body.innerHTML.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,o2q); i2t.innerHTML=HTMLEditor.O12(this.l1.body.innerHTML); var On=(on && typeof O2p!="undefined")?O2p:HTMLEditor.getHTML(this.l1.body, false , true); this.o15=!(this.o13==HTMLEditor.O12(On)); var I1p=i2t.getElementsByTagName("IMG"); var I2t=[]; for (var i=0; i<I1p.length; i++)I2t.push(I1p[i]); for (var ig=0; ig<I2t.length; ig++){var img=I2t[ig]; var I29; I29=img.getAttribute("dummytag"); if (I29 && I29.length>0 && I29.toLowerCase()=="embed"){var src=img.getAttribute("dummysrc"); var o2u=img.getAttribute("dummybgcolor"); var wmode=img.getAttribute("pseudomode"); var O2u=img.attributes; var embed=this.l1.createElement("EMBED"); var O2f=/(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 (o2u && o2u.length>0){function l2u(i2u){return (i2u<020)?("0"+i2u.toString(020)):i2u.toString(020); } ; function I2u(o2v,$1,$2,$3,$4){var i1b=parseInt($2); var O2v=parseInt($3); var b=parseInt($4); return "#"+l2u(i1b)+l2u(O2v)+l2u(b); }try {o2u=o2u.replace(O2f,I2u); }catch (t){}embed.setAttribute("bgcolor",o2u); }if (wmode && wmode.length>0)embed.setAttribute("wmode",wmode); for (var i=0; i<O2u.length; ++i){var a=O2u.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(i2t,document,this ); HTMLEditor.I21(i2t,document); var ok=HTMLEditor.getHTML(i2t,(i2t.style.cssText.length>0)? true : false , true ,0); if (!this.NoScript)ok=ok.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,I2q); else ok=ok.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); delete i2t; if (this.predicatedTags)ok=ok.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); var i2s=l2s+HTMLEditor.o2n(ok); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var I2s=""; if (this.d!=null)I2s+=this.d; I2s+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">\n"; if (this.l1.getElementById("oboutEditorDefaultStyle")==null){I2s+="\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; I2s+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; }if (this._addCssFiles!=null){for (var i25=0; i25<this._addCssFiles.length; i25++){var o2t= true; if (this.D!=null && this.D.length>0){var O2t=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[i25]+"\"","ig");if (O2t.test(this.D))o2t= false; }if (o2t)I2s+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[i25]+"\" media=\"all\" />\n"; }}if (this.D!=null)I2s+=this.D; I2s+="\x3c/head>\n"; I2s+="<body"+(this.C!=null?this.C: "")+">\n"; I2s+=i2s+"\n"; I2s+="\x3c/body>\n\x3c/html>"; i2s=I2s; }if (this.NoUnicode)i2s=i2s.replace(/([\x80-\uffff])/g,l2p);if (HTMLEditor.O12(i2s)=="<br />")i2s=""; i2s=i2s.replace(/^([\n|\r]+)/,""); return i2s; case "text":var l2l=(this.I13)? true : false; var oe; if (!l2l){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.I13=Y; this.I13.value=this._textArea.value; }if (this.NoScript)this.I13.value=this.I13.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/ig,""); this.D=null; this.C=null; this.c=null; this.B=null; this.d=null; var X=this ; this.I13.value=this.I13.value.replace(/<html(?=\s|>)([^>]*?)>/gi,I2r); this.I13.value=this.I13.value.replace(/<head(?=\s|>)([^>]*?)>/gi,O2r); this.I13.value=this.I13.value.replace(/^([^\0]+?)<html(?=\s|>)(?:[^>]*?)>/gi,l2r); this.I13.value=this.I13.value.replace(/<\/html(?=\s|>)(?:[^>]*?)>[^\0]*$/gi,""); this.I13.value=this.I13.value.replace(/<head(?=\s|>)(?:[^>]*?)>([^\0]*?)<\/head(?=\s|>)(?:[^>]*?)>/gi,i2r); this.I13.value=this.I13.value.replace(/<body(?=\s|>)([^>]*?)>([^\0]*?)<\/body(?=\s|>)(?:[^>]*?)>/gi,o25); this.I13.value=this.I13.value.replace(/<\/?html(?=\s|>)(?:[^>]*?)>/gi,""); this.I13.value=this.I13.value.replace(/<\/?head(?=\s|>)(?:[^>]*?)>/gi,""); this.I13.value=this.I13.value.replace(/<\/?body(?=\s|>)(?:[^>]*?)>/gi,""); this.I13.value=this.I13.value.replace(/<object(?:[^>]*?)>(?:[^\0]*?)(<embed(?:[^>]*?)>)(?:[^\0]*?)<\/object(?:[^>]*?)>/gi,"$1"); if (HTMLEditor.is_ie){var l2v=this.I13.value.replace(/([\n\r]+<)/g,"<"); l2v=HTMLEditor.O12(l2v.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); l2v=l2v.replace(/(&amp;)/g,"&amp;amp;"); l2v=l2v.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); l2v=l2v.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); l2v=l2v.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); if (/<embed/ig.test(l2v)){l2v=l2v.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); l2v=l2v.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); }oe=l2v; }else {var src=document.createElement("DIV"); if (!this.NoScript)this.I13.value.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,o2q); src.innerHTML=HTMLEditor.O12(this.I13.value.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); var I1p=src.getElementsByTagName("EMBED"); var i2v=[]; for (var i=0; i<I1p.length; i++)i2v.push(I1p[i]); for (var ig=0; ig<i2v.length; ig++){var embed=i2v[ig]; var img=document.createElement("IMG"); var O2u=embed.attributes; img.src=this.Q[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<O2u.length; ++i){var a=O2u.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.I2v(src,this, true); HTMLEditor.I21(src,document); var ok=HTMLEditor.O12(HTMLEditor.getHTML(src, false , true)); if (!this.NoScript)ok=ok.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,I2q); if (I2p.length>0){} delete src; oe=HTMLEditor.o2n(ok); }if (!l2l){ this.I13=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }return oe; break; default:alert("Mode <"+mode+"> not defined"); return false; }}catch (t){ this.Om(); return ""; }} ; HTMLEditor.prototype.o2w= function (html){switch (this.O1){case "html": this.l1.body.innerHTML=html; break; case "text": this.I13.value=html; break; default:alert("Mode <"+mode+"> not defined"); }return false; } ; HTMLEditor.O2w= function (ik){var Iq=" script style div span a del strong em u strike font b sub sup p iframe li ul ol placeholder textarea td tr "; return (Iq.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.l2w= function (ik){var Iq=" hr br "; return (Iq.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.i2w= function (Oh){return Oh.replace(/&/ig,"&amp;").replace(/</ig,"&lt;").replace(/>/ig,"&gt;").replace(/"/ig,"&quot;").replace(/\xa0/ig,"&nbsp;"); } ; HTMLEditor.ix= function (l1k,iw){var I2w; for (var o2x=l1k.firstChild; o2x; o2x=I2w){if (o2x.nodeType==1 || o2x.nodeType==013){if (o2x.tagName.length>0){if (o2x.tagName.indexOf("/")>=0 && o2x.tagName.toLowerCase().substr(o2x.tagName.indexOf("/")+1)=="embed"){var I2w=o2x.nextSibling; o2x.parentNode.removeChild(o2x); continue; }var closed=(!(o2x.hasChildNodes() || HTMLEditor.O2w(o2x))); if ((closed || o2x.tagName.toLowerCase()=="placeholder") && !HTMLEditor.l2w(o2x) && o2x.tagName.toLowerCase()!="embed"){var Ik=o2x.tagName.toLowerCase(); var O2x=o2x.nextSibling; var og=[]; while (O2x!=null){if (O2x.nodeType==o2x.nodeType && O2x.tagName)if (O2x.tagName.indexOf("/")>=0)if (O2x.tagName.toLowerCase().substr(O2x.tagName.indexOf("/")+1)==Ik){O2x.parentNode.removeChild(O2x); Ik="teo"+HTMLEditor.il+":"+o2x.tagName; var l2x=iw.createElement(Ik); var O2u=o2x.attributes; for (var i=0; i<O2u.length; ++i){var a=O2u.item(i); if (!a.specified)continue; l2x.setAttribute(a.name,a.value); }l2x.style.cssText=o2x.style.cssText; if (o2x.className.length>0)l2x.className=o2x.className; o2x.parentNode.insertBefore(l2x,o2x); o2x.parentNode.removeChild(o2x); for (var i=0; i<og.length; i++){l2x.appendChild(og[i]); }o2x=l2x; break; }og.push(O2x); O2x=O2x.nextSibling; } delete og; }}HTMLEditor.ix(o2x,iw); }I2w=o2x.nextSibling; }};HTMLEditor.getHTML= function (o2x,i2x,I2x){try {if (typeof I2x=="undefined"){if (!i2x && o2x.nodeType==1){return o2x.innerHTML; }else if (i2x && o2x.nodeType==1 && HTMLEditor.is_ie){return o2x.outerHTML; }}}catch (t){}var html=new l25( true); HTMLEditor.o2y(html,o2x,i2x); return html.toString(); };HTMLEditor.o2y= function (html,o2x,i2x,I2x){switch (o2x.nodeType){case 1:case 013:if (o2x.tagName && o2x.tagName.indexOf("/")>=0){if (HTMLEditor.is_ie){var Ik=o2x.tagName.toLowerCase().substr(o2x.tagName.indexOf("/")+1); var O2y=o2x.previousSibling; if (Ik=="embed")return; while (O2y!=null){if (O2y.nodeType==o2x.nodeType && O2y.tagName && O2y.tagName.toLowerCase()==Ik){html.write("</teo"+HTMLEditor.il+":"+o2x.tagName.toLowerCase().substr(o2x.tagName.indexOf("/")+1)+">"); return; }O2y=O2y.previousSibling; }}return; }var closed; var l2y; var i; if (i2x && o2x.tagName.length>0){closed=(!(o2x.hasChildNodes() || HTMLEditor.O2w(o2x))); l2y= true; var i2y=""; if (HTMLEditor.is_ie && o2x.scopeName && typeof o2x.scopeName!="undefined"){i2y=(o2x.scopeName.toUpperCase()=="HTML")?"": (o2x.scopeName+":"); }if (HTMLEditor.is_ie && (closed || o2x.tagName.toLowerCase()=="placeholder") && !HTMLEditor.l2w(o2x) && o2x.tagName.toLowerCase()!="embed"){var Ik=o2x.tagName.toLowerCase(); var O2x=o2x.nextSibling; while (O2x!=null){if (O2x.nodeType==o2x.nodeType && O2x.tagName)if (O2x.tagName.indexOf("/")>=0)if (O2x.tagName.toLowerCase().substr(O2x.tagName.indexOf("/")+1)==Ik){closed= false; l2y= false; break; }O2x=O2x.nextSibling; }}if (!HTMLEditor.I2y(o2x)){html.write("\n"); }html.write("<"+((!closed && !l2y)?"teo"+HTMLEditor.il+":":i2y)+o2x.tagName.toLowerCase()); if (HTMLEditor.is_ie && o2x.name && o2x.name.length>0){html.write(" name"+"=\""+o2x.name.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o2x.value && o2x.value.length>0 && o2x.tagName.toLowerCase()!="textarea"){html.write(" value"+"=\""+o2x.value.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o2x.className && o2x.className.length>0){html.write(" class"+"=\""+o2x.className.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o2x.align && o2x.align.length>0){html.write(" align"+"=\""+o2x.align.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o2x.color && o2x.color.length>0){html.write(" color"+"=\""+o2x.color.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o2x.size && o2x.size.length>0){html.write(" size"+"=\""+o2x.size.replace(/"/g,"&quot;")+"\""); }var O2u=o2x.attributes; for (i=0; i<O2u.length; ++i){var a=O2u.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=o2x.width; if (HTMLEditor.is_ie && value==0){var o2z=0; o2x.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?width=)([\\d]+)","ig"), function (O25,o1x){o2z=o1x; } ); if (value!=o2z)value=o2z; }}else if (name=="height"){value=o2x.height; if (HTMLEditor.is_ie && value==0){var o2z=0; o2x.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?height=)([\\d]+)","ig"), function (O25,o1x){o2z=o1x; } ); if (value!=o2z)value=o2z; }}else if (HTMLEditor.is_ie && name=="name" && o2x.name && o2x.name.length>0)continue; else if (HTMLEditor.is_ie && name=="value" && o2x.value && o2x.value.length>0)continue; else if (HTMLEditor.is_ie && name=="align" && o2x.align && o2x.align.length>0)continue; else if (HTMLEditor.is_ie && name=="class" && o2x.className && o2x.className.length>0)continue; else if (HTMLEditor.is_ie && name=="color" && o2x.color && o2x.color.length>0)continue; else if (HTMLEditor.is_ie && name=="size" && o2x.size && o2x.size.length>0)continue; else {if (o2x.tagName.toLowerCase()=="embed" && name=="align" && HTMLEditor.is_ie){value=HTMLEditor.O2z(a.value); }else {value=a.value; if (name=="src" || name=="href"){if (HTMLEditor.is_ie){var o2z=""; o2x.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=\")([^\"]*?)\"","ig"), function (O25,o1x){o2z=o1x; } ); if (o2z=="")o2x.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=')([^']*?)'","ig"), function (O25,o1x){o2z=o1x; } ); if (o2z=="")o2x.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=)([^s>]*?)","ig"), function (O25,o1x){o2z=o1x; } ); if (value!=o2z && o2z!=""){value=o2z; value=value.replace(/&amp;/g,"&"); }}value=value.replace(/(\(S\([A-Za-z0-9_]+\)\)\/)/,""); }value=value.replace(/"/g,"&quot;"); }}}else {continue; }var l2z="\""; if ((""+value+"").indexOf("\"")>=0)l2z="'"; if (name!=null)html.write(" "+name+"="+l2z+value+l2z); }if (o2x.style.cssText.length>0){var name="style"; var O2f=/(rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\))/ig; var i2z=/(url\((?:[^)]*)\))/ig; var I2z=[]; function o30(o2v,$1){I2z.push($1); }o2x.style.cssText.replace(i2z,o30); var value=o2x.style.cssText.toLowerCase(); var O30=0; function l30(){var ok=I2z[O30]; O30++; return ok; }value=value.replace(i2z,l30); function l2u(i2u){return (i2u<020)?("0"+i2u.toString(020)):i2u.toString(020); } ; function I2u(o2v,$1,$2,$3,$4){var i1b=parseInt($2); var O2v=parseInt($3); var b=parseInt($4); return "#"+l2u(i1b)+l2u(O2v)+l2u(b); }try {value=value.replace(O2f,I2u); 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 l2z="\""; if ((""+value+"").indexOf("\"")>=0)l2z="'"; html.write(" "+name+"="+l2z+value+l2z); }}html.write(closed?" />": ">"); if (o2x.tagName.toUpperCase()=="BR")html.write("\n"); }if (o2x.tagName && o2x.tagName.toUpperCase()=="SCRIPT")html.write(o2x.text); for (i=o2x.firstChild; i; i=i.nextSibling){HTMLEditor.o2y(html,i, true);}if (i2x && o2x.tagName.length>0 && !closed && l2y){html.write("</"+i2y+o2x.tagName.toLowerCase()+">"); }break; case 3:html.write(HTMLEditor.i2w(""+o2x.data+"")); break; case 8:if (o2x.length>0){html.write("<!--"+o2x.data+"-->"); }else {html.write("<!---->"); }break; }} ; HTMLEditor.prototype.focusEditor= function (){switch (this.O1){case "html":if (this._iframe && this._iframe.contentWindow && this._iframe.contentWindow.focus && (this.isActivated || this._autoFocus)){if (!this._autoFocus && !this._wasFocused){if (HTMLEditor.is_ie && (""+this.l1.body.contentEditable+"")!="true")this.l1.body.contentEditable= true; HTMLEditor.l17(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.l17(this.ShowQuickFormatDivId, true); } this._wasFocused= true; this.i30=0; try {if (!HTMLEditor.l10)this._iframe.contentWindow.focus(); if (HTMLEditor.l10 && this.f){ this._iframe.focus(); }}catch (t){} ; if (HTMLEditor.is_ie)this.updateToolbar(); }break; case "text":if (this._autoFocus)try { this.I13.focus(); }catch (t){} ; break; default:break; }return this.l1; } ; HTMLEditor.prototype.I30= function (){var area=this.l1.createElement("textarea"); area.width="0"; area.height="0"; this.l1.appendChild(area); var i1b=area.createTextRange(); i1b.execCommand("paste"); var o31=area.value; o31=o31.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>"); this.l1.removeChild(area); return o31; } ; HTMLEditor.prototype.O31= function (text,om,l31){if (text!=""){text=text.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); text=text.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); text=text.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); }var iframe=this.l1.createElement("iframe"); iframe.width="0"; iframe.height="0"; if (HTMLEditor.is_ie)iframe.src="javascript:false;"; this.l1.appendChild(iframe); var iw=iframe.contentWindow.document; var html=new l25(); html.write("<html>"); html.write("<head>"); html.write("<style> body { "+this.I.i22+" } </style>"); html.write("</head>"); html.write("<body>"); html.write(text); html.write("</body>"); html.write("</html>"); iw.write(html.toString()); iw.close(); iw.body.contentEditable= true; var i1b=iw.body.createTextRange(); var i31= false; if (text==""){i1b.execCommand("paste"); var i2t=iw.createElement("DIV"); for (var i=0; i<iw.body.childNodes.length; i++){var I31=iw.body.childNodes.item(i); if (I31.nodeType==8){var Oh=""+I31.data+""; if (Oh.search(/StartFragment/i)>=0){if (I31.nextSibling && I31.nextSibling.nodeType==3){var Oh=""+I31.nextSibling.data+""; if (Oh.length)if (Oh.charCodeAt(0)==0240){Oh=Oh.substr(1); I31.nextSibling.data=Oh; i31= true; break; }}}}}if (typeof l31!="undefined" && l31)iw.body.innerHTML=HTMLEditor.I2l(iw.body.innerHTML); var Oh=HTMLEditor.O12(HTMLEditor.getHTML(iw.body, false , true)); Oh=Oh.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); iw.body.innerHTML=Oh; if (!om){HTMLEditor.Ix(this,iw,!this.showAnchors); HTMLEditor.oy(this,iw,!this.showPlaceHolders); var I1p=iw.body.getElementsByTagName("EMBED"); var o32=[]; for (var i=0; i<I1p.length; i++)o32.push(I1p[i]); for (var i27=0; i27<o32.length; i27++)o32[i27].parentNode.removeChild(o32[i27]); } delete i1b; delete i2t; if (om && HTMLEditor.is_ie)i1b=iw.body.createTextRange(); }if (om && HTMLEditor.is_ie){if (text!=""){HTMLEditor.Ix(this,iw, true); HTMLEditor.oy(this,iw, true); }i1b.select(); i1b.execCommand("copy"); }var oe=HTMLEditor.O12(iw.body.innerHTML); oe=oe.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); oe=oe.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); oe=oe.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); oe=oe.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); oe=oe.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); var I1p=iw.body.getElementsByTagName("EMBED"); var o32=[]; for (var i=0; i<I1p.length; i++)o32.push(I1p[i]); for (var i27=0; i27<o32.length; i27++)o32[i27].parentNode.removeChild(o32[i27]); iframe.src=""; var X=this ; X.l1.removeChild(iframe); delete iframe; return oe; };HTMLEditor.O12= function (Oh){return Oh.replace(/[\0-\x1f]/g,""); };HTMLEditor.O32= function (X,l1e,ip){ this.D=X.D; this.d=X.d; this.C=X.C; if (HTMLEditor.is_ie){ this.l32=HTMLEditor.i32(X.l1.body); this.I32=X.l1.body.innerHTML; this.o33=null; if (ip.type.toLowerCase()=="control"){try {var ik=l1e.item(0); this.o33=[]; while (ik && (ik.nodeType==3 || !ik.tagName || ik.tagName.toUpperCase()!="BODY")){var O33=0; while (ik.previousSibling){O33++; ik=ik.previousSibling; } this.o33.push(O33); ik=ik.parentNode; }}catch (t){}}else { this.O2b=l1e.offsetLeft; this.l2b=l1e.offsetTop; }}else {if (HTMLEditor.l10)this.I32=HTMLEditor.O12(X.l1.body.innerHTML); else this.I32=X.l1.body.cloneNode( true); this.o33=[]; this.l33=0; try {var ik=l1e.startContainer; this.l33=l1e.startOffset; if (ik && ik.nodeType==1 && ik.tagName.toUpperCase()=="HTML"){ik=X.l1.body; setTimeout( function (){try {ip=X.Ip(); l1e=X.Oq(); X.l16(ip); l1e.setStart(ik,0); l1e.setEnd(ik,0); X.i16(ip,l1e); }catch (t){}} ,012); }while (ik && ik.nodeType && (ik.nodeType==3 || !ik.tagName || ik.tagName.toUpperCase()!="BODY")){var O33=0; while (ik.previousSibling){O33++; if (HTMLEditor.l10){if (ik.nodeType==3 && ik.previousSibling!=null && ik.previousSibling.nodeType==3)O33--; }ik=ik.previousSibling; } this.o33.push(O33); ik=ik.parentNode; }}catch (t){}}};HTMLEditor.i33=036; HTMLEditor.prototype.o10= function (){var ip; var oq; var I33; try {try {ip=this.Ip(); oq=this.Oq(ip); }catch (t){}I33=new HTMLEditor.O32(this,oq,ip); }catch (t){return; }if (!this.K){ this.K=[]; this.O19=0; }while (this.O19<this.K.length)this.K.pop(); if (this.K.length==HTMLEditor.i33){ this.K.reverse(); this.K.pop(); this.K.reverse(); } this.K.push(I33); this.O19=this.K.length; };HTMLEditor.prototype.o34= function (){if (this.O19>=0 && this.O19<this.K.length){var l15=this.K[this.O19]; var ip; var oq; this.D=l15.D; this.d=l15.d; this.C=l15.C; if (HTMLEditor.is_ie){function O34(O25,o1x,O1x,l2q,l34){return o1x.replace(/\salign=[^\s>]*/ig,"")+((l2q=="\"X\"")?"": ("align="+l2q))+l34.replace(/\salign=[^\s>]*/ig,""); }var I1p=this.l1.body.getElementsByTagName("EMBED"); var o32=[]; for (var i=0; i<I1p.length; i++)o32.push(I1p[i]); for (var i27=0; i27<o32.length; i27++)o32[i27].parentNode.removeChild(o32[i27]); var i34=l15.I32.replace(/&amp;/ig,"&"); i34=i34.replace(/(<embed(?:.*?))(teoalign=)("[^"]*")((?:.*?)>)/ig,O34); this.l1.body.innerHTML="!!!<span></span>"+HTMLEditor.O12(i34); if (this.l1.body.firstChild)this.l1.body.removeChild(this.l1.body.firstChild); if (this.l1.body.firstChild)this.l1.body.removeChild(this.l1.body.firstChild); var o11=HTMLEditor.O11(i34); HTMLEditor.I11(this.l1.body,o11); if (this.relativeImages){o11=HTMLEditor.i11(i34); HTMLEditor.o12(this.l1.body,o11); }HTMLEditor.I34(this.l1.body,l15.l32); HTMLEditor.Ix(this,this.l1,!this.showAnchors); HTMLEditor.oy(this,this.l1,!this.showPlaceHolders); if (l15.o33!=null){var ik=this.l1.body; var i; try {for (i=l15.o33.length-1; i>=0; i--){ik=ik.childNodes.item(l15.o33[i]); }}catch (t){if (this.O19>0){ this.O19--; this.o34(); this.O19++; }return; }try {var l1e=this.l1.body.createControlRange(); l1e.add(ik); l1e.select(); }catch (t){}}else {var X=this ; setTimeout( function (){try {ip=X.Ip(); oq=X.Oq(ip); if (ip.type.toLowerCase()!="control"){try {oq.moveToPoint(l15.O2b,l15.l2b); }catch (t){}}oq.select(); }catch (t){}} ,0); }}else {if (HTMLEditor.l10){ this.l1.body.innerHTML=HTMLEditor.O12(l15.I32); }else { this.l1.body.innerHTML=""; for (var i=0; i<l15.I32.childNodes.length; i++){ this.l1.body.appendChild(l15.I32.childNodes.item(i).cloneNode( true)); }}HTMLEditor.Ix(this,this.l1,!this.showAnchors); HTMLEditor.oy(this,this.l1,!this.showPlaceHolders); try {ip=this.Ip(); oq=this.Oq(); this.l16(ip); }catch (t){}var Oh=""; var ik=this.l1.body; for (var i=l15.o33.length-1; i>=0; i--){Oh+=" "+l15.o33[i]; ik=ik.childNodes.item(l15.o33[i]); }var o35=l15.l33; try {oq.setStart(ik,o35); oq.setEnd(ik,o35); }catch (t){HTMLEditor.i12(this.l1.body); return; }if (HTMLEditor.l10)this.f= true; try { this.i16(ip,oq); }catch (t){}}try {HTMLEditor.i12(this.l1.body); }catch (t){}}};HTMLEditor.prototype.SaveContent= function (){ this.o10(); };HTMLEditor.prototype.RestoreContent= function (){ this.I19( false); };HTMLEditor.prototype.I19= function (i15,O35){if (HTMLEditor.is_ie){var l35=this.l1.body.getElementsByTagName("EMBED"); var i35= false; if (l35.length>0){for (var i=0; i<l35.length; i++){var value=""; var O2u=l35[i].attributes; for (var ig=0; ig<O2u.length; ++ig){var a=O2u.item(ig); if (!a.specified)continue; var name=a.name.toLowerCase(); if (name=="type"){value=a.value; break; }}if (value.toLowerCase()=="application/x-mplayer2"){i35= true; break; }}}if (i35){var X=this ; X.l2a(null, function (ik){X.i2a(i15); if (typeof O35=="function")O35(); } ); }else this.i2a(i15); }else this.i2a(i15); };HTMLEditor.prototype.i2a= function (i15){if (this.K){if (this.O19>0){if (this.O19==this.K.length && i15){ this.o10(); } do {var i21=HTMLEditor.O12(this.l1.body.innerHTML); this.O19--; this.o34(); }while (HTMLEditor.O12(this.l1.body.innerHTML)==i21 && this.O19>0 && i15);var X=this ; setTimeout( function (){try {X.i1a(); X.updateToolbar(); }catch (t){}if (!i15)X.O13(); } ,5); }}};HTMLEditor.prototype.o1a= function (){if (this.K){if (this.O19<this.K.length-1){ this.O19++; var X=this ; var I35; if (HTMLEditor.is_ie){I35=X.l1.body.getElementsByTagName("EMBED").length; if (I35>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); setTimeout( function (){X.A.removeChild(popup); } ,0); }} this.o34(); var X=this ; setTimeout( function (){X.i1a(); X.updateToolbar(); } ,5); }}};HTMLEditor.o36= function (ik){if (ik.id && ik.id.length>0 && ik.id.indexOf(HTMLEditor.il)>=0)return true; return false;};HTMLEditor.i1z= function (ik){var O36=null; try {O36=ik.parentNode; }catch (t){}if (O36){var l36=null; while (O36 && O36.tagName && O36.tagName.toUpperCase()!="BODY" && HTMLEditor.O1e(O36.tagName) && (O36.tagName.toUpperCase()!="A")){l36=O36; O36=O36.parentNode; }if (l36){function I1v(add,ik,o1w,O1w,om){var par=o1w.cloneNode( false); if (add){if (add.push && typeof add.push=="function"){for (var i36=0; i36<add.length; i36++){par.appendChild(add[i36]); }}else par.appendChild(add); }if (om)par.appendChild(ik); else while (ik){var I36=O1w?ik.previousSibling:ik.nextSibling; if (ik.nodeType==1 || (ik.nodeType==3 && HTMLEditor.O12(""+ik.data+"").length>0)){if (ik.nodeType==1){if (ik.tagName && HTMLEditor.O1e(ik.tagName) && ik.childNodes.length==0 && !HTMLEditor.o36(ik))ik=null; }if (ik){if (par.childNodes.length==0 || !O1w)par.appendChild(ik); else par.insertBefore(ik,par.firstChild); }}ik=I36; }if (par.childNodes.length==0){ delete par; par=null; }else if (par.childNodes.length==1 && par.firstChild.nodeType==3 && (""+par.firstChild.data+"").length==0){ delete par; par=null; }else {if (!om && par.tagName && HTMLEditor.O1e(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.o36(par)){var o37=par.childNodes.length; for (var O37=0; O37<par.childNodes.length; O37++){var l37=par.childNodes.item(O37); if (l37.nodeType==1 && l37.tagName && !HTMLEditor.O1e(l37.tagName) && (l37.tagName.toUpperCase()=="BR" || l37.tagName.toUpperCase()=="TABLE" || HTMLEditor.o36(l37)))o37--; }if (o37==0){var i37=[]; while (par.firstChild){var l37=par.removeChild(par.firstChild); i37.push(l37); }par=i37; }}}if (o1w==l36)return par; else {if (!om)return I1v(par,O1w?o1w.previousSibling:o1w.nextSibling,o1w.parentNode,O1w,om); else return I1v(null,par,o1w.parentNode,O1w,om); }} ; O36=ik.parentNode; if (ik.previousSibling==null && ik.nextSibling==null && O36 && O36.tagName && O36.tagName.toUpperCase()!="BODY" && HTMLEditor.O1e(O36.tagName) && HTMLEditor.I37(O36,["class","color","face","size"]).length>0)ik=O36; var o1x=I1v(null,ik.previousSibling,ik.parentNode, true , false); var O1x=I1v(null,ik.nextSibling,ik.parentNode, false , false); var par=l36.parentNode; if (o1x){if (o1x.push && typeof o1x.push=="function"){for (var i36=0; i36<o1x.length; i36++){par.insertBefore(o1x[i36],l36); }}else par.insertBefore(o1x,l36); }if (ik.nodeType==1 && ik.tagName && (ik.tagName.toUpperCase()=="BR" || ik.tagName.toUpperCase()=="TABLE" || HTMLEditor.o36(ik)))par.insertBefore(ik,l36); else {var l2q=I1v(null,ik,ik.parentNode, false , true); par.insertBefore(l2q,l36); }if (O1x){if (O1x.push && typeof O1x.push=="function"){for (var i36=0; i36<O1x.length; i36++){par.insertBefore(O1x[i36],l36); }}else par.insertBefore(O1x,l36); }par.removeChild(l36); }}};HTMLEditor.o38= function (ik){if (ik.nodeType==3)return true; if (ik.nodeType!=1)return false; if (!ik.tagName || ik.tagName.length==0)return false; if (ik && ik.style && ik.style.display && ik.style.display.toLowerCase()=="inline")return true; var name=ik.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return false; }}switch (name){case "BR":case "TBODY":case "TR":case "TD":case "P":case "PRE":case "TABLE":case "OL":case "UL":case "LI":case "HR":case "DIV":case "BLOCKQUOTE":case "FORM":case "FIELDSET":case "LEGEND":return false; default:return true; }};HTMLEditor.O38= function (I33,ik,left,l38){while (ik){var I36=left?ik.previousSibling:ik.nextSibling; if (!HTMLEditor.o38(ik)){var par=ik.parentNode; if (!left)par.insertBefore(I33,ik); else {if (ik.nextSibling)par.insertBefore(I33,ik.nextSibling); else par.appendChild(I33); }return I33; }else if (typeof l38=="function" && ik.nodeType==3){var ig; var Oh=""+ik.data+""; if (left){for (ig=Oh.length-1; ig>=0; ig--){if (l38(Oh.substr(ig,1)))break; }}else {for (ig=0; ig<Oh.length; ig++){if (l38(Oh.substr(ig,1)))break; }}if (ig>=0 && ig<Oh.length){var par=ik.parentNode; var i38; if ((ig>0 || (left && ig==0)) && (ig<Oh.length-1 || (!left && ig==Oh.length-1))){if (left)i38=ik.splitText(ig+1); else i38=ik.splitText(ig); par.insertBefore(I33,i38); }else {if (!left)par.insertBefore(I33,ik); else {if (ik.nextSibling)par.insertBefore(I33,ik.nextSibling); else par.appendChild(I33); }}return I33; }}ik=left?ik.lastChild:ik.firstChild; if (ik){var i1q=HTMLEditor.O38(I33,ik,left,l38); if (i1q!=null)return i1q; }ik=I36; }return null; };HTMLEditor.I38= function (I33,ik,left,par,l38){while ( true){var i1q=HTMLEditor.O38(I33,ik,left,l38); if (i1q!=null)return i1q; if (par.tagName && HTMLEditor.O1e(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.o36(par)){ik=left?par.previousSibling:par.nextSibling; par=par.parentNode; }else {if (!left || par.firstChild==null)par.appendChild(I33); else par.insertBefore(I33,par.firstChild); return I33; }}};HTMLEditor.o39= function (I15,ik){if (ik==I15)return I15; if (I15.nodeType==1){for (var i=0; i<I15.childNodes.length; i++){var I31=I15.childNodes.item(i); if (ik==I31)return I31; if (I31.nodeType==1){var l1u=HTMLEditor.O39(I31,ik); if (l1u>=0){if (I31.tagName && HTMLEditor.O1e(I31.tagName) && (I31.tagName.toUpperCase()!="A") && !HTMLEditor.o36(I31))return HTMLEditor.o39(I31,ik); else return I31; }}}}return null; };HTMLEditor.l39= function (i39,I39){function o3a(O2x){if (!HTMLEditor.o38(O2x)){HTMLEditor.i1z(O2x); }else if (O2x.tagName && HTMLEditor.O1e(O2x.tagName) && (O2x.tagName.toUpperCase()!="A") && !HTMLEditor.o36(O2x)){var O3a=O2x.firstChild; while (O3a!=null){var l3a=O3a.nextSibling; o3a(O3a); O3a=l3a; }}}var O2x=i39; while (O2x!=null && O2x!=I39){var nextSibling=O2x.nextSibling; o3a(O2x); O2x=nextSibling; }};HTMLEditor.prototype.i3a= function (o1z,O1z,I3a){var i1q=[]; var i39=o1z; var I39=(O1z.nextSibling!=null && O1z.nextSibling.tagName && O1z.nextSibling.tagName.toUpperCase()=="BR")?O1z.nextSibling:O1z; var I1z=null; if (i39==null || I39==null){if (i39!=null){I1z=HTMLEditor.o20(i39,i39); }if (I39!=null){I1z=HTMLEditor.o20(I39,I39); }}else I1z=HTMLEditor.o20(i39,I39); if (I1z!=null){i39=HTMLEditor.o39(I1z.parent.childNodes.item(I1z.I20),i39); I39=HTMLEditor.o39(I1z.parent.childNodes.item(I1z.O21),I39); HTMLEditor.i1z(i39); HTMLEditor.i1z(I39); while (i39.parentNode!=I1z.parent)i39=i39.parentNode; while (I39.parentNode!=I1z.parent)I39=I39.parentNode; HTMLEditor.l39(i39.nextSibling,I39); I1z=null; if (o1z==null || O1z==null){if (o1z!=null){I1z=HTMLEditor.o20(o1z,o1z); }if (O1z!=null){I1z=HTMLEditor.o20(O1z,O1z); }}else I1z=HTMLEditor.o20(o1z,O1z); if (I1z!=null){HTMLEditor.I21(I1z.parent,this.l1,I1z.I20,I1z.O21+1, true); }function o3b(O2x){if (!HTMLEditor.o38(O2x)){return true; }else if (O2x.tagName && HTMLEditor.O1e(O2x.tagName) && (O2x.tagName.toUpperCase()!="A") && !HTMLEditor.o36(O2x)){var O3a=O2x.firstChild; while (O3a!=null){l3a=O3a.nextSibling; var ok=o3b(O3a); if (ok)return true; O3a=l3a; }}return false; }var O3b=0; var l3b=[]; var i3b=0; if (i39.tagName && I39.tagName){if ((i39.tagName.toUpperCase()=="TD" || i39.tagName.toUpperCase()=="TR") && (I39.tagName.toUpperCase()=="TD" || I39.tagName.toUpperCase()=="TR")){while (i39.tagName.toUpperCase()!="TABLE")i39=i39.parentNode; I39=i39; }else if ((i39.tagName.toUpperCase()=="DD" || i39.tagName.toUpperCase()=="DT") && (I39.tagName.toUpperCase()=="DD" || I39.tagName.toUpperCase()=="DT")){while (i39.tagName && i39.tagName.toUpperCase()!="DL")i39=i39.parentNode; I39=i39; }else if ((i39.tagName.toUpperCase()=="LI") && (I39.tagName.toUpperCase()=="LI")){while (i39.tagName && i39.tagName.toUpperCase()!="UL" && i39.tagName.toUpperCase()!="OL"){i39=i39.parentNode; }I39=i39; }}var I3b=o1z?o1z:O1z; var o3c=O1z?O1z:o1z; var O2x=i39; while ( true){if (!HTMLEditor.o36(O2x)){var O3c=o3b(O2x); if (!O3c){if (O2x.nodeType && O2x.nodeType==3){var Oh=""+O2x.data+""; if (Oh.length==0 ||/^[\n\r]+$/.test(Oh)){var l3c=O2x.nextSibling; O2x.parentNode.removeChild(O2x); if (O2x==I39)break; O2x=l3c; continue; }}l3b[i3b]=O2x; i3b++; }else {if (O2x.tagName && O2x.tagName.toUpperCase()=="BR"){l3b[i3b]=O2x; i1q[O3b]=l3b; O3b++; l3b=[]; i3b=0; }else if ((O2x==I39 || O2x==i39) && !((O2x==I39 && O2x==i39)?(HTMLEditor.i3c(O2x,I3b) && HTMLEditor.I3c(O2x,o3c)): (HTMLEditor.i3c(O2x,I3b) || HTMLEditor.I3c(O2x,o3c)))){if (O2x.tagName && (O2x.tagName.toUpperCase()=="TABLE" || O2x.tagName.toUpperCase()=="TBODY")){var table=O2x; while (table.tagName.toUpperCase()!="TABLE")table=table.parentNode; var o3d=0; var O3d=0; var l3d=table.rows.item(table.rows.length-1).cells.length-1; var i3d=table.rows.length-1; for (var i=0; i<table.rows.length; i++){var o1y=table.rows.item(i); var ig=0; for ( ; ig<o1y.cells.length; ig++){var cell=o1y.cells.item(ig); if (HTMLEditor.O39(cell,I3b)>=0){o3d=ig; O3d=i; }if (HTMLEditor.O39(cell,o3c)>=0){l3d=ig; i3d=i; }}}for (var i=O3d; i<=i3d; i++)for (var ig=((i==O3d)?o3d: 0); ig<=((i==i3d)?l3d: (table.rows.item(i).cells.length-1)); ig++){var cell=table.rows.item(i).cells.item(ig); if (i3b>0){i1q[O3b]=l3b; O3b++; l3b=[]; i3b=0; }var I3d=(HTMLEditor.O39(cell,I3b)>=0); var o3e=(HTMLEditor.O39(cell,o3c)>=0); if (I3d || o3e){var O3e=I3b; var l3e=o3c; var O1y=HTMLEditor.il+"_right_"+I3a; var l1y=HTMLEditor.il+"_left_"+I3a; if (I3d){l3e=this.l1.createElement("span"); l3e.id=O1y; cell.appendChild(l3e); }if (o3e){O3e=this.l1.createElement("span"); O3e.id=l1y; if (cell.firstChild)cell.insertBefore(O3e,cell.firstChild); else cell.appendChild(O3e); }var i3e=this.i3a(O3e,l3e,I3a+1); for (var O37=0; O37<i3e.length; O37++){i1q[O3b]=i3e[O37]; O3b++; }if (O3e!=I3b)O3e.parentNode.removeChild(O3e); if (l3e!=o3c)l3e.parentNode.removeChild(l3e); }else {var I3e=0; var o3f=cell.childNodes.length; for (var o28=I3e; o28<o3f; o28++){var ik=cell.childNodes.item(o28); if (!HTMLEditor.o36(ik)){l3b[i3b]=ik; i3b++; }}if (l3b.length>0){i1q[O3b]=l3b; O3b++; l3b=[]; i3b=0; }}}}else if (O2x.tagName && (O2x.tagName.toUpperCase()=="UL" || O2x.tagName.toUpperCase()=="OL" || O2x.tagName.toUpperCase()=="DL")){var o2c=O2x; var O3f=0; var l3f=o2c.childNodes.length-1; for (var i=0; i<o2c.childNodes.length; i++){var i3f=o2c.childNodes.item(i); if (i3f.nodeType==1){if (i3f==I3b || HTMLEditor.O39(i3f,I3b)>=0){O3f=i; }if (i3f==o3c || HTMLEditor.O39(i3f,o3c)>=0){l3f=i; }}}for (var i=O3f; i<=l3f; i++){var i3f=o2c.childNodes.item(i); if (i3b>0){i1q[O3b]=l3b; O3b++; l3b=[]; i3b=0; }var I3d=(HTMLEditor.O39(i3f,I3b)>=0); var o3e=(HTMLEditor.O39(i3f,o3c)>=0); if (I3d || o3e){var O3e=I3b; var l3e=o3c; var O1y=HTMLEditor.il+"_right_"+I3a; var l1y=HTMLEditor.il+"_left_"+I3a; if (I3d){l3e=this.l1.createElement("span"); l3e.id=O1y; i3f.appendChild(l3e); }if (o3e){O3e=this.l1.createElement("span"); O3e.id=l1y; if (i3f.firstChild)i3f.insertBefore(O3e,i3f.firstChild); else i3f.appendChild(O3e); }var i3e=this.i3a(O3e,l3e,I3a+1); for (var O37=0; O37<i3e.length; O37++){i1q[O3b]=i3e[O37]; O3b++; }if (O3e!=I3b)O3e.parentNode.removeChild(O3e); if (l3e!=o3c)l3e.parentNode.removeChild(l3e); }else {var I3e=0; var o3f=i3f.childNodes.length; for (var o28=I3e; o28<o3f; o28++){var ik=i3f.childNodes.item(o28); if (!HTMLEditor.o36(ik)){l3b[i3b]=ik; i3b++; }}if (l3b.length>0){i1q[O3b]=l3b; O3b++; l3b=[]; i3b=0; }}}}else {var I3d=(HTMLEditor.O39(O2x,I3b)>=0); var o3e=(HTMLEditor.O39(O2x,o3c)>=0); if (i3b>0){i1q[O3b]=l3b; O3b++; l3b=[]; i3b=0; }if (I3d || o3e){var O3e=I3b; var l3e=o3c; var O1y=HTMLEditor.il+"_right_"+I3a; var l1y=HTMLEditor.il+"_left_"+I3a; if (I3d){l3e=this.l1.createElement("span"); l3e.id=O1y; O2x.appendChild(l3e); }if (o3e){O3e=this.l1.createElement("span"); O3e.id=l1y; if (O2x.firstChild)O2x.insertBefore(O3e,O2x.firstChild); else O2x.appendChild(O3e); }var i3e=this.i3a(O3e,l3e,I3a+1); for (var O37=0; O37<i3e.length; O37++){i1q[O3b]=i3e[O37]; O3b++; }if (O3e!=I3b)O3e.parentNode.removeChild(O3e); if (l3e!=o3c)l3e.parentNode.removeChild(l3e); }else {var I3e=0; var o3f=O2x.childNodes.length; for (var o28=I3e; o28<o3f; o28++){var ik=O2x.childNodes.item(o28); if (!HTMLEditor.o36(ik)){l3b[i3b]=ik; i3b++; }}if (l3b.length>0){i1q[O3b]=l3b; O3b++; l3b=[]; i3b=0; }}}}else {if (i3b>0){i1q[O3b]=l3b; O3b++; l3b=[]; i3b=0; }l3b[i3b]=O2x; i1q[O3b]=l3b; O3b++; l3b=[]; i3b=0; }}}if (O2x==I39)break; O2x=O2x.nextSibling; }if (i3b>0){i1q[O3b]=l3b; }}return i1q; };HTMLEditor.prototype.getPseudoP= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return []; var i1q=[]; try {var ip=this.Ip(); var oq=this.Oq(ip); var O1y=HTMLEditor.il+"_right"; var l1y=HTMLEditor.il+"_left"; var i1y=null; var I1y=null; if (HTMLEditor.is_ie){if (ip.type.toLowerCase()!="control"){i1y=oq.duplicate(); I1y=oq.duplicate(); i1y.setEndPoint("EndToStart",oq); I1y.setEndPoint("StartToEnd",oq); }}else {i1y=oq.cloneRange(); I1y=oq.cloneRange(); i1y.setEnd(i1y.startContainer,i1y.startOffset); I1y.setStart(I1y.endContainer,I1y.endOffset); }var o1z=null; var O1z=null; if (HTMLEditor.is_ie && ip.type.toLowerCase()=="control"){var o1i=oq.item(0); var I3f; I3f=this.l1.createElement("SPAN"); I3f.id=l1y; o1i.parentNode.insertBefore(I3f,o1i); I3f=this.l1.createElement("SPAN"); I3f.id=O1y; if (o1i.nextSibling==null)o1i.parentNode.appendChild(I3f); else o1i.parentNode.insertBefore(I3f,o1i.nextSibling); }else {if (!this.I10("<span id='"+O1y+"'/>",I1y))return []; if (!this.I10("<span id='"+l1y+"'/>",i1y)){var l1z=this.l1.getElementById(O1y); if (l1z!=null){ok=l1z.parentNode; ok.removeChild(l1z); }return []; }}o1z=this.l1.getElementById(l1y); O1z=this.l1.getElementById(O1y); if (o1z!=null && O1z!=null){while (o1z.nextSibling==null){if (o1z.parentNode.nextSibling)o1z.parentNode.parentNode.insertBefore(o1z,o1z.parentNode.nextSibling); else o1z.parentNode.parentNode.appendChild(o1z); }}if (o1z!=null && O1z!=null){while (O1z.previousSibling==null)O1z.parentNode.parentNode.insertBefore(O1z,O1z.parentNode); if (O1z.previousSibling.nodeType==1 && O1z.previousSibling.tagName.toUpperCase()!="BR" && O1z.previousSibling.tagName.toUpperCase()!="IMG"){var o21=HTMLEditor.o3g(O1z.previousSibling); if (o21.nodeType==1 && HTMLEditor.canHaveChildren(o21))o21.appendChild(O1z); else o21.parentNode.appendChild(O1z); }if (O1z.previousSibling && O1z.previousSibling.nodeType==1 && O1z.previousSibling.tagName.toUpperCase()=="BR")O1z.parentNode.insertBefore(O1z,O1z.previousSibling); }if (o1z==null){var span=this.l1.createElement("SPAN"); span.id=l1y; O1z.parentNode.insertBefore(span,O1z); o1z=span; }if (O1z==null){var span=this.l1.createElement("SPAN"); span.id=O1y; if (o1z.nextSibling)o1z.parentNode.insertBefore(span,o1z.nextSibling); else o1z.parentNode.appendChild(span); O1z=span; }if (o1z!=null && O1z!=null){if (o1z.parentNode==O1z){O1z.parentNode.insertBefore(o1z,O1z); }else if (O1z.parentNode==o1z){if (o1z.nextSibling!=null)o1z.parentNode.insertBefore(O1z,o1z.nextSibling); else o1z.parentNode.appendChild(O1z); }}while (o1z.nextSibling!=null && o1z.nextSibling.nodeType==3 && (""+o1z.nextSibling.data+"").length==0)o1z.parentNode.removeChild(o1z.nextSibling); if (this.O3g==null && o1z!=null && O1z!=null && o1z.nextSibling==O1z){var par=O1z.parentNode; this.O3g=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1e(par.tagName)){if (par.tagName.toUpperCase()!="A"){var ok=par.cloneNode( false); if (this.O3g==null){ this.O3g=ok; }else {ok.appendChild(this.O3g); this.O3g=ok; }}par=par.parentNode; }if (this.O3g){var l3g=this.l1.createElement("span"); l3g.appendChild(this.O3g); this.O3g=l3g.innerHTML; }}var i3g=o1z; while (i3g && i3g.tagName && HTMLEditor.O1e(i3g.tagName) && (i3g.tagName.toUpperCase()!="A")){i3g=i3g.parentNode; }if (i3g!=null && i3g.tagName.toUpperCase()=="P"){if (i3g.firstChild!=null)i3g.insertBefore(o1z,i3g.firstChild); else i3g.appendChild(o1z); }else HTMLEditor.I38(o1z,o1z.previousSibling, true ,o1z.parentNode); i3g=O1z; while (i3g && i3g.tagName && HTMLEditor.O1e(i3g.tagName) && (i3g.tagName.toUpperCase()!="A")){i3g=i3g.parentNode; }if (i3g!=null && i3g.tagName.toUpperCase()=="P"){i3g.appendChild(O1z); }else HTMLEditor.I38(O1z,O1z.nextSibling, false ,O1z.parentNode); i1q=this.i3a(o1z,O1z,0); if (i1q.length==0 && o1z.previousSibling==null && O1z.nextSibling==null && o1z.nextSibling==O1z && (o1z.parentNode.tagName.toUpperCase()=="P" || o1z.parentNode.tagName.toUpperCase()=="DIV" || o1z.parentNode.tagName.toUpperCase()=="LI"))i1q=[[o1z.parentNode]]; if (HTMLEditor.is_ie){ip.empty(); ip=this.Ip(); var I3g=this.Oq(ip); var o3h=this.Oq(ip); try {if (o1z!=null)I3g.moveToElementText(o1z); if (O1z!=null)o3h.moveToElementText(O1z); if (o1z!=null && O1z!=null){I3g.setEndPoint("EndToEnd",o3h); I3g.select(); }else if (o1z!=null)I3g.select(); else if (O1z!=null)o3h.select(); }catch (t){}}if (o1z!=null)o1z.parentNode.removeChild(o1z); if (O1z!=null)O1z.parentNode.removeChild(O1z); }catch (t){alert("getPseudoP: "+t.message); var O3h=this.l1.getElementsByTagName("SPAN"); var del=[]; for (var i=0; i<O3h.length; i++){var span=O3h[i]; if (span.id && span.id.length>0){var o2k=new RegExp(HTMLEditor.il,"ig"); if (o2k.test(span.id))del.push(span); }}for (var i=0; i<del.length; i++)del[i].parentNode.removeChild(del[i]); }return i1q; } ; HTMLEditor.prototype.l3h= function (l1k,i3h){var X=this ; if (l1k.firstChild){while (l1k.firstChild && l1k.firstChild.nodeType==3 && (""+l1k.firstChild.data+"")=="")l1k.removeChild(l1k.firstChild); var I3h=[]; while (l1k.firstChild){if (l1k.firstChild!=i3h[0] && l1k.firstChild!=i3h[1])I3h.push(l1k.firstChild); l1k.parentNode.insertBefore(l1k.firstChild,l1k); }if (I3h.length==0){var br=X.l1.createElement("BR"); l1k.parentNode.insertBefore(br,l1k); }if (HTMLEditor.is_ie && I3h.length==1 && I3h[0].nodeType==3){var Oh=""+I3h[0].data+""; if (Oh.length==1 && Oh.charCodeAt(0)==0240){var br=X.l1.createElement("BR"); I3h[0].parentNode.insertBefore(br,I3h[0]); I3h[0].parentNode.removeChild(I3h[0]); }}while (l1k.nextSibling && l1k.nextSibling.nodeType==3 && (""+l1k.nextSibling.data+"")=="")l1k.parentNode.removeChild(l1k.nextSibling); var previousSibling=(l1k.previousSibling && i3h[1]==l1k.previousSibling)?i3h[1].previousSibling:l1k.previousSibling; if (previousSibling && HTMLEditor.o38(previousSibling))if (previousSibling.nodeType==1 && previousSibling.childNodes.length>0)previousSibling=HTMLEditor.o3g(previousSibling); if (HTMLEditor.o38(previousSibling) && l1k.nextSibling!=null){var br=X.l1.createElement("BR"); l1k.parentNode.insertBefore(br,l1k); }}else {var br=X.l1.createElement("BR"); l1k.parentNode.insertBefore(br,l1k); }l1k.parentNode.removeChild(l1k); };HTMLEditor.prototype.o3i= function (l1k,i3h,O3i){var X=this ; l1k.style.textAlign=""; var l3i=0; var O2u=l1k.attributes; for (var o28=0; o28<O2u.length; ++o28){var a=O2u.item(o28); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; l3i++; }var i3i=l1k.style.cssText; var margin=0; var I3i; if (!(typeof O3i!="undefined" && O3i))if (l1k.tagName.toUpperCase()!="LI")try {I3i=parseInt(HTMLEditor.Oy(l1k,"margin-top")); if (isNaN(I3i))I3i=l1k.tagName.toUpperCase()=="P"?1: 0; margin+=I3i; I3i=parseInt(HTMLEditor.Oy(l1k,"margin-bottom")); if (isNaN(I3i))I3i=l1k.tagName.toUpperCase()=="P"?1: 0; margin+=I3i; I3i=parseInt(HTMLEditor.Oy(l1k,"margin-right")); if (isNaN(I3i))I3i=l1k.tagName.toUpperCase()=="P"?1: 0; margin+=I3i; I3i=parseInt(HTMLEditor.Oy(l1k,"margin-left")); if (isNaN(I3i))I3i=l1k.tagName.toUpperCase()=="P"?1: 0; margin+=I3i; }catch (t){margin=1; }l1k.style.margin=""; if ((l3i==0 && l1k.style.cssText.length==0 && margin==0) || (typeof O3i!="undefined" && O3i && l1k.tagName.toUpperCase()!="LI")){X.l3h(l1k,i3h); return true; }else {l1k.style.cssText=i3i; return false; }};HTMLEditor.o3j= function (ik){var name=ik.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return true; }}return false; };HTMLEditor.prototype.O3j= function (textAlign,l3j,i3j){var I3j=this.o3k(); var i3h=this.O3k(I3j); var l3k=null; var i3k=[]; var X=this ; var O3i=(typeof l3j!="undefined" && l3j)? true : false; var I3k=(typeof i3j=="string")? true : false; var o3l=(typeof i3j=="string")?i3j: ""; var O3l= false; var l3l= false; function i3l(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==i3h[0] || div.firstChild==i3h[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function I3l(){var firstChild=l3k.firstChild; var lastChild=l3k.lastChild; if (l3k.tagName && !HTMLEditor.o38(l3k) && i3k[0][0]==firstChild && i3k[i3k.length-1][i3k[i3k.length-1].length-1]==lastChild && l3k.tagName.toUpperCase()!="TD" && l3k.tagName.toUpperCase()!="TH" && l3k.tagName.toUpperCase()!="FIELDSET" && l3k.tagName.toUpperCase()!="LEGEND"){var align=""; if (l3k.getAttribute("align") && l3k.getAttribute("align").length>0)align=l3k.getAttribute("align"); if (l3k.align && l3k.align.length>0)align=l3k.align; if (l3k.style.textAlign && l3k.style.textAlign.length>0)align=l3k.style.textAlign; l3k.align=""; l3k.setAttribute("align",""); l3k.removeAttribute("align"); if ((l3k.tagName.toUpperCase()=="DIV" || l3k.tagName.toUpperCase()=="P" || HTMLEditor.o3j(l3k)) && textAlign=="left" && O3i){if (X.o3i(l3k,i3h,O3i))O3l= true; }else {if (textAlign!="remain"){if (!(textAlign=="left" && O3i) || (l3k.tagName.toUpperCase()=="LI" && l3k.parentNode.style.textAlign.length>0))l3k.style.textAlign=textAlign; else l3k.style.textAlign=""; }if (O3i)l3k.style.margin=(l3k.tagName.toUpperCase()=="P")?"0px": ""; if (l3k.tagName.toUpperCase()=="LI"){var o2c=l3k.parentNode; var o3m=[]; for (var O3m=0; O3m<o2c.childNodes.length; O3m++)if (o2c.childNodes.item(O3m).nodeType==1)o3m.push(o2c.childNodes.item(O3m).style.textAlign); var l3m=1; for ( ; l3m<o3m.length; l3m++)if (o3m[l3m-1]!=o3m[l3m])break; if (l3m==o3m.length){var align=(o3m[0]=="left" && O3i)?"":o3m[0]; for (var ig=0; ig<o2c.childNodes.length; ig++)if (o2c.childNodes.item(ig).nodeType==1){o2c.childNodes.item(ig).style.textAlign=""; if (O3i)o2c.childNodes.item(ig).style.margin=(o2c.childNodes.item(ig).tagName.toUpperCase()=="P")?"0px": ""; }o2c.style.textAlign=align; }}if ((l3k.tagName.toUpperCase()=="DIV" || l3k.tagName.toUpperCase()=="P" || HTMLEditor.o3j(l3k)) && I3k && o3l.toUpperCase()!=l3k.tagName.toUpperCase()){var i3m=X.l1.createElement(o3l); var O2u=l3k.attributes; for (var o28=0; o28<O2u.length; ++o28){var a=O2u.item(o28); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; i3m.setAttribute(a.name,a.value); }i3m.style.cssText=l3k.style.cssText; while (l3k.firstChild)i3m.appendChild(l3k.firstChild); l3k.parentNode.insertBefore(i3m,l3k); l3k.parentNode.removeChild(l3k); }}}else {var div=null; for (var i=0; i<i3k.length; i++){if (!I3k)div=null; var paragraph=i3k[i]; for (var ig=0; ig<paragraph.length; ig++){var l1k=paragraph[ig]; if (l1k.nodeType==1 && l1k.tagName && (l1k.tagName.toUpperCase()=="UL" || l1k.tagName.toUpperCase()=="OL" || l1k.tagName.toUpperCase()=="DL" || l1k.tagName.toUpperCase()=="DIV" || HTMLEditor.o3j(l1k) || l1k.tagName.toUpperCase()=="P" || l1k.tagName.toUpperCase()=="LI" || l1k.tagName.toUpperCase()=="TABLE")){i3l(div); div=null; if (textAlign!="remain")if (l1k.tagName.toUpperCase()!="TABLE" && !O3i)l1k.style.textAlign=textAlign; if (O3i)l1k.style.margin=(l1k.tagName.toUpperCase()=="P")?"0px": ""; if ((l1k.tagName.toUpperCase()=="UL" || l1k.tagName.toUpperCase()=="OL" || l1k.tagName.toUpperCase()=="DL")){for (var i27=0; i27<l1k.childNodes.length; i27++){var li=l1k.childNodes.item(i27); if (li.nodeType==1){li.style.textAlign=""; if (O3i)li.style.margin=(li.tagName.toUpperCase()=="P")?"0px": ""; for (var I3m=0; I3m<li.childNodes.length; I3m++){var I31=li.childNodes.item(I3m); if (I31.nodeType==1 && O3i)I31.style.margin=(I31.tagName.toUpperCase()=="P")?"0px": ""; if (I31.nodeType==1 && I31.tagName && (I31.tagName.toUpperCase()=="DIV" || I31.tagName.toUpperCase()=="P" || HTMLEditor.o3j(I31))){if (X.o3i(I31,i3h,O3i))O3l= true; }}}}if (textAlign=="left" && O3i)l1k.style.textAlign=""; continue; }else if (l1k.tagName.toUpperCase()=="LI"){if (textAlign!="remain"){if (!(textAlign=="left" && O3i) || l1k.parentNode.style.textAlign.length>0)l1k.style.textAlign=textAlign; else l1k.style.textAlign=""; }if (O3i)l1k.style.margin=(l1k.tagName.toUpperCase()=="P")?"0px": ""; var o2c=l1k.parentNode; var o3m=[]; for (var O3m=0; O3m<o2c.childNodes.length; O3m++)if (o2c.childNodes.item(O3m).nodeType==1)o3m.push(o2c.childNodes.item(O3m).style.textAlign); var l3m=1; for ( ; l3m<o3m.length; l3m++)if (o3m[l3m-1]!=o3m[l3m])break; if (l3m==o3m.length){var align=(o3m[0]=="left" && O3i)?"":o3m[0]; for (var ig=0; ig<o2c.childNodes.length; ig++)if (o2c.childNodes.item(ig).nodeType==1){o2c.childNodes.item(ig).style.textAlign=""; if (O3i)o2c.childNodes.item(ig).style.margin=(o2c.childNodes.item(ig).tagName.toUpperCase()=="P")?"0px": ""; }o2c.style.textAlign=align; }continue; }else if (l1k.tagName.toUpperCase()=="TABLE"){if (textAlign!="remain"){if (!(textAlign=="left" && O3i))l1k.align=textAlign; else {l1k.align=""; l1k.removeAttribute("align"); }}}if ((l1k.tagName.toUpperCase()=="DIV" || l1k.tagName.toUpperCase()=="P" || HTMLEditor.o3j(l1k)) && textAlign=="left" && O3i){if (X.o3i(l1k,i3h,O3i))O3l= true; }if ((l1k.tagName.toUpperCase()=="DIV" || l1k.tagName.toUpperCase()=="P" || HTMLEditor.o3j(l1k)) && I3k && o3l.toUpperCase()!=l1k.tagName.toUpperCase()){var i3m=X.l1.createElement(o3l); var O2u=l1k.attributes; for (var o28=0; o28<O2u.length; ++o28){var a=O2u.item(o28); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; i3m.setAttribute(a.name,a.value); }i3m.style.cssText=l1k.style.cssText; while (l1k.firstChild)i3m.appendChild(l1k.firstChild); l1k.parentNode.insertBefore(i3m,l1k); l1k.parentNode.removeChild(l1k); }}else {if (!(textAlign=="left" && O3i) || I3k){if (div==null){div=X.l1.createElement(I3k?o3l:X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P" && !I3k)div.style.margin="0px"; if (!I3k)div.style.textAlign=textAlign; l1k.parentNode.insertBefore(div,l1k); if (X.l1.body.firstChild==div)l3l= true; }var o3n=(paragraph[paragraph.length-1]==i3h[1])?paragraph.length-1:paragraph.length; var O3n=(paragraph[0]==i3h[0])?1: 0; if (l1k.tagName && l1k.tagName.toUpperCase()=="BR" && ig==o3n-1 && ig==O3n){if (HTMLEditor.is_ie){div.appendChild(X.l1.createTextNode(String.fromCharCode(0240))); l1k.parentNode.removeChild(l1k); }else div.appendChild(l1k); }else if (l1k.tagName && l1k.tagName.toUpperCase()=="BR" && ig==o3n-1 && ig>O3n && (!I3k || (l1k.nextSibling!=null && l1k.nextSibling==i3h[1])))l1k.parentNode.removeChild(l1k); else div.appendChild(l1k); if (l1k.tagName && l1k.tagName.toUpperCase()=="BR" && ig==paragraph.length-1 && !I3k){i3l(div); div=null; }if (l1k==i3h[1] && ig==paragraph.length-1){i3l(div); div=null; }}}}}}}for (var i=0; i<I3j.length; i++){var paragraph=I3j[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=l3k){if (i3k.length>0)I3l(); i3k=[]; l3k=paragraph[0].parentNode; }i3k.push(paragraph); }}if (i3k.length>0)I3l(); this.i1i(i3h,O3l); };HTMLEditor.prototype.o3k= function (){ this.O3g=null; var I3j=this.getPseudoP(); if (I3j.length==0){try {var Oh="<span id='"+HTMLEditor.il+"_ll'></span><span id='"+HTMLEditor.il+"_rr'></span><br>"; this.I10(Oh); var o1z=this.l1.getElementById(HTMLEditor.il+"_ll"); var O1z=this.l1.getElementById(HTMLEditor.il+"_rr"); var i17=this.O3g; this.O3g=null; this.i1i([o1z,O1z], false); this.O3g=i17; I3j=this.getPseudoP(); }catch (w){} ; }return I3j; };HTMLEditor.prototype.l3n= function (i3n){var I3j=this.o3k(); var i3h=this.O3k(I3j); var l3k=null; var i3k=[]; var X=this ; var I3n=null; var o3o=[]; var O3o=i3n.toUpperCase(); var O3l= false; function l3o(){if (I3n!=null){var i3o; i3o=I3n.cloneNode( false); I3n.parentNode.insertBefore(i3o,I3n); while (I3n.firstChild!=o3o[0])i3o.appendChild(I3n.firstChild); if (i3o.firstChild==null)i3o.parentNode.removeChild(i3o); if (I3n.tagName.toUpperCase()==O3o){for (var i=0; i<o3o.length; i++){var l1k=o3o[i]; if (l1k.nodeType==1 && l1k.tagName && l1k.tagName.toUpperCase()=="LI"){var i1j= false; I3n.parentNode.insertBefore(l1k,I3n); if (l1k.style.textAlign=="")l1k.style.textAlign=I3n.style.textAlign; if (I3n.childNodes.length==0 && i==o3o.length-1){I3n.parentNode.removeChild(I3n); I3n=null; }if (l1k.style.textAlign=="" || (l1k.style.textAlign.toLowerCase()=="left" && !X.rtlState()) || (l1k.style.textAlign.toLowerCase()=="right" && X.rtlState())){i1j=X.o3i(l1k,i3h); if (i1j)O3l= true; }if (!i1j){var I3o=X.l1.createElement(X.dfltBlockElement); var O2u=l1k.attributes; for (var o3p=0; o3p<O2u.length; ++o3p){var a=O2u.item(o3p); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; I3o.setAttribute(a.name,a.value); }I3o.style.cssText=l1k.style.cssText; if (I3o.tagName.toUpperCase()=="P")I3o.style.margin="0px"; while (l1k.firstChild)I3o.appendChild(l1k.firstChild); l1k.parentNode.insertBefore(I3o,l1k); l1k.parentNode.removeChild(l1k); }}else I3n.parentNode.insertBefore(l1k,I3n); }}else {var i3o=X.l1.createElement(O3o); var O2u=I3n.attributes; for (var o3p=0; o3p<O2u.length; ++o3p){var a=O2u.item(o3p); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; i3o.setAttribute(a.name,a.value); }i3o.style.cssText=I3n.style.cssText; I3n.parentNode.insertBefore(i3o,I3n); for (var i=0; i<o3o.length; i++){var l1k=o3o[i]; i3o.appendChild(l1k); }}if (I3n!=null){i3o=I3n.cloneNode( false); I3n.parentNode.insertBefore(i3o,I3n); while (I3n.firstChild)i3o.appendChild(I3n.firstChild); if (i3o.firstChild==null)i3o.parentNode.removeChild(i3o); I3n.parentNode.removeChild(I3n); }}I3n=null; o3o=[]; }function I3l(){var firstChild=l3k.firstChild; var lastChild=l3k.lastChild; if (l3k.tagName && !HTMLEditor.o38(l3k) && i3k[0][0]==firstChild && i3k[i3k.length-1][i3k[i3k.length-1].length-1]==lastChild && (l3k.tagName.toUpperCase()=="OL" || l3k.tagName.toUpperCase()=="UL" || l3k.tagName.toUpperCase()=="DL" || l3k.tagName.toUpperCase()=="LI" || ((l3k.tagName.toUpperCase()=="P" || l3k.tagName.toUpperCase()=="DIV" || HTMLEditor.o3j(l3k)) && l3k.parentNode.tagName.toUpperCase()=="LI"))){l3o(); o3o=[]; if (l3k.tagName.toUpperCase()=="LI"){I3n=l3k.parentNode; o3o.push(l3k); }else if (l3k.tagName.toUpperCase()=="P" || l3k.tagName.toUpperCase()=="DIV" || HTMLEditor.o3j(l3k)){I3n=l3k.parentNode.parentNode; o3o.push(l3k.parentNode); }else {I3n=l3k; for (var i=0; i<i3k.length; i++){var paragraph=i3k[i]; for (var ig=0; ig<paragraph.length; ig++){o3o.push(paragraph[ig]); }}}l3o(); }else {var O3p=l3k.tagName.toUpperCase(); if (O3p=="LI" && (i3k.length<I3j.length)){if (I3n!=l3k.parentNode){l3o(); I3n=l3k.parentNode; o3o=[]; }o3o.push(l3k); }else if (O3p=="OL" || O3p=="UL" || O3p=="DL"){l3o(); I3n=l3k; o3o=[]; for (var i=0; i<i3k.length; i++){var paragraph=i3k[i]; for (var ig=0; ig<paragraph.length; ig++){o3o.push(paragraph[ig]); }}l3o(); }else {var li=null; var o2c=null; function l3p(){if (li!=null)if (li.childNodes==1 && (li.firstChild==i3h[0] || li.firstChild==i3h[1])){li.parentNode.insertBefore(li.firstChild,li); li.parentNode.removeChild(li); }li=null; }if (I3n!=null){l3o(); }if (i3k.length==1 && i3k[0].length==1 && i3k[0][0].nodeType==1 && i3k[0][0].tagName && (i3k[0][0].tagName.toUpperCase()=="OL" || i3k[0][0].tagName.toUpperCase()=="UL" || i3k[0][0].tagName.toUpperCase()=="DL")){var l1k=i3k[0][0]; I3n=l1k; o3o=[]; for (var i=0; i<l1k.childNodes.length; i++){var ik=l1k.childNodes.item(i); o3o.push(ik); }l3o(); }else for (var i=0; i<i3k.length; i++){var paragraph=i3k[i]; for (var ig=0; ig<paragraph.length; ig++){var l1k=paragraph[ig]; if (o2c==null){o2c=X.l1.createElement(O3o); l1k.parentNode.insertBefore(o2c,l1k); }if (!HTMLEditor.o38(l1k) && !(l1k.tagName && l1k.tagName.toUpperCase()=="BR")){if (li && li.firstChild)l3p(); if (li==null){li=X.l1.createElement("LI"); o2c.appendChild(li); }li.appendChild(l1k); l3p(); }else {if (li==null){li=X.l1.createElement("LI"); o2c.appendChild(li); }var o3n=(paragraph[paragraph.length-1]==i3h[1])?paragraph.length-1:paragraph.length; var O3n=(paragraph[0]==i3h[0])?1: 0; if (l1k.tagName && l1k.tagName.toUpperCase()=="BR" && ig==o3n-1 && ig==O3n){if (HTMLEditor.is_ie){li.appendChild(X.l1.createTextNode(String.fromCharCode(0240))); l1k.parentNode.removeChild(l1k); }else li.appendChild(l1k); }else if (l1k.tagName && l1k.tagName.toUpperCase()=="BR" && ig==o3n-1 && ig>O3n)l1k.parentNode.removeChild(l1k); else li.appendChild(l1k); if (l1k.tagName && l1k.tagName.toUpperCase()=="BR" && ig==paragraph.length-1){l3p(); li=null; }if (l1k==i3h[1] && ig==paragraph.length-1){l3p(); li=null; }}}if (li && li.firstChild)l3p(); }if (o2c!=null){var o3m=[]; for (var ig=0; ig<o2c.childNodes.length; ig++)o3m.push(o2c.childNodes.item(ig).style.textAlign); var l3m=1; for ( ; l3m<o3m.length; l3m++)if (o3m[l3m-1]!=o3m[l3m])break; if (l3m==o3m.length){var align=((o3m[0]=="left" && !X.rtlState()) || (o3m[0]=="right" && X.rtlState()))?"":o3m[0]; for (var ig=0; ig<o2c.childNodes.length; ig++)o2c.childNodes.item(ig).style.textAlign=""; o2c.style.textAlign=align; }}if (o2c!=null)if (o2c.parentNode.tagName.toUpperCase()=="P" && o2c.parentNode.childNodes.length==1){var i3p=o2c.parentNode; var I3p=i3p.cloneNode( false); i3p.parentNode.insertBefore(o2c,i3p); i3p.parentNode.removeChild(i3p); if (o2c.childNodes.length==1){var item=o2c.firstChild; while (item.firstChild)I3p.appendChild(item.firstChild); item.appendChild(I3p); }else delete I3p; }}}}for (var i=0; i<I3j.length; i++){var paragraph=I3j[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=l3k){if (i3k.length>0)I3l(); i3k=[]; l3k=paragraph[0].parentNode; }i3k.push(paragraph); }}if (i3k.length>0)I3l(); if (I3n!=null){l3o(); } this.i1i(i3h,O3l); };HTMLEditor.prototype.o3q= function (O3q){var I3j=this.o3k(); var i3h=this.O3k(I3j); var l3k=null; var i3k=[]; var X=this ; var O3l= false; function l3q(ik){if (ik.nodeType==1){var i3q=(!X.rtlState())?ik.style.marginLeft:ik.style.marginRight; if (i3q.length>0)return parseInt(i3q); }return 0; }function I3q(ik,value){if (ik.nodeType==1){if (ik.tagName.toUpperCase()=="P" && value=="")value="0px"; if (!X.rtlState())ik.style.marginLeft=value; else ik.style.marginRight=value; }}function o3r(ik){if (O3q)I3q(ik,(l3q(ik)+050)+"px"); else {if (ik.tagName.toUpperCase()=="P"){if (l3q(ik)>=050)I3q(ik,(l3q(ik)-050)+"px"); else I3q(ik,"0px"); }else {if (l3q(ik)>050)I3q(ik,(l3q(ik)-050)+"px"); else I3q(ik,""); }}}function i3l(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==i3h[0] || div.firstChild==i3h[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function I3l(){var firstChild=l3k.firstChild; var lastChild=l3k.lastChild; if (l3k.tagName && !HTMLEditor.o38(l3k) && i3k[0][0]==firstChild && i3k[i3k.length-1][i3k[i3k.length-1].length-1]==lastChild){var textAlign=""; if (l3k.getAttribute("align") && l3k.getAttribute("align").length>0)textAlign=l3k.getAttribute("align"); if (l3k.align && l3k.align.length>0)textAlign=l3k.align; if (l3k.style.textAlign && l3k.style.textAlign.length>0)textAlign=l3k.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; l3k.align=""; l3k.setAttribute("align",""); l3k.removeAttribute("align"); o3r(l3k); if ((l3k.tagName.toUpperCase()=="DIV" || l3k.tagName.toUpperCase()=="P" || HTMLEditor.o3j(l3k)) && textAlign==""){if (X.o3i(l3k,i3h))O3l= true; }else {if (textAlign!="" || (l3k.tagName.toUpperCase()=="LI" && l3k.parentNode.style.textAlign.length>0))l3k.style.textAlign=textAlign; else l3k.style.textAlign=""; if (l3k.tagName.toUpperCase()=="LI"){var o2c=l3k.parentNode; var margins=[]; for (var O3m=0; O3m<o2c.childNodes.length; O3m++)margins.push(l3q(o2c.childNodes.item(O3m))); var l3m=1; for ( ; l3m<margins.length; l3m++)if (margins[l3m-1]!=margins[l3m])break; if (l3m==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var ig=0; ig<o2c.childNodes.length; ig++)I3q(o2c.childNodes.item(ig),""); I3q(o2c,margin); }}}}else {for (var i=0; i<i3k.length; i++){var div=null; var paragraph=i3k[i]; for (var ig=0; ig<paragraph.length; ig++){var l1k=paragraph[ig]; if (l1k.nodeType==1 && l1k.tagName && (l1k.tagName.toUpperCase()=="UL" || l1k.tagName.toUpperCase()=="OL" || l1k.tagName.toUpperCase()=="DL" || l1k.tagName.toUpperCase()=="DIV" || HTMLEditor.o3j(l1k) || l1k.tagName.toUpperCase()=="P" || l1k.tagName.toUpperCase()=="LI")){i3l(div); div=null; o3r(l1k);if ((l1k.tagName.toUpperCase()=="UL" || l1k.tagName.toUpperCase()=="OL" || l1k.tagName.toUpperCase()=="DL")){for (var i27=0; i27<l1k.childNodes.length; i27++){var li=l1k.childNodes.item(i27); if (li.nodeType==1){I3q(li,""); for (var I3m=0; I3m<li.childNodes.length; I3m++){var I31=li.childNodes.item(I3m); var textAlign=(I31.nodeType==1)?l1k.style.textAlign: ""; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if (I31.nodeType==1){I3q(I31,""); if (textAlign=="" && I31.tagName && (I31.tagName.toUpperCase()=="DIV" || I31.tagName.toUpperCase()=="P")){if (X.o3i(I31,i3h))O3l= true; }}}}}continue; }else if (l1k.tagName.toUpperCase()=="LI"){var o2c=l1k.parentNode; var margins=[]; for (var O3m=0; O3m<o2c.childNodes.length; O3m++)margins.push(l3q(o2c.childNodes.item(O3m))); var l3m=1; for ( ; l3m<margins.length; l3m++)if (margins[l3m-1]!=margins[l3m])break; if (l3m==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var ig=0; ig<o2c.childNodes.length; ig++)I3q(o2c.childNodes.item(ig),""); I3q(o2c,margin); }continue; }var textAlign=l1k.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if ((l1k.tagName.toUpperCase()=="DIV" || l1k.tagName.toUpperCase()=="P" || HTMLEditor.o3j(l1k)) && textAlign==""){if (X.o3i(l1k,i3h))O3l= true; }}else {if (O3q){if (div==null){div=X.l1.createElement(X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P")div.style.margin="0px"; o3r(div); l1k.parentNode.insertBefore(div,l1k); }var o3n=(paragraph[paragraph.length-1]==i3h[1])?paragraph.length-1:paragraph.length; var O3n=(paragraph[0]==i3h[0])?1: 0; if (l1k.tagName && l1k.tagName.toUpperCase()=="BR" && ig==o3n-1 && ig==O3n){if (HTMLEditor.is_ie){div.appendChild(X.l1.createTextNode(String.fromCharCode(0240))); l1k.parentNode.removeChild(l1k); }else div.appendChild(l1k); }else if (l1k.tagName && l1k.tagName.toUpperCase()=="BR" && ig==o3n-1 && ig>O3n)l1k.parentNode.removeChild(l1k); else div.appendChild(l1k); if (l1k.tagName && l1k.tagName.toUpperCase()=="BR" && ig==paragraph.length-1){i3l(div); div=null; }if (l1k==i3h[1] && ig==paragraph.length-1){i3l(div); div=null; }}}}}}}for (var i=0; i<I3j.length; i++){var paragraph=I3j[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=l3k){if (i3k.length>0)I3l(); i3k=[]; l3k=paragraph[0].parentNode; }i3k.push(paragraph); }}if (i3k.length>0)I3l(); this.i1i(i3h,O3l); };HTMLEditor.prototype.O3r= function (l1x,par){var o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(this.O1h()): ""; if (this.iq())return; var ip=this.Ip(); var oq=this.Oq(ip); var l3r=HTMLEditor.is_ie?[oq.boundingLeft,oq.boundingTop]: [oq.startContainer,oq.startOffset]; var i3r=(HTMLEditor.is_ie && oq.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0); var I3r= {name: "none",value: "none" } ; switch (l1x.toLowerCase()){case "bold":I3r= {name: "font-weight",value: "bold",o3s: false } ; break; case "italic":I3r= {name: "font-style",value: "italic",o3s: false } ; break; case "underline":I3r= {name: "text-decoration",value: "underline",o3s: false } ; break; case "strikethrough":I3r= {name: "text-decoration",value: "line-through",o3s: false } ; break; case "superscript":I3r= {name: "vertical-align",value: "super",o3s: false } ; break; case "subscript":I3r= {name: "vertical-align",value: "sub",o3s: false } ; break; case "forecolor":I3r= {name: "color",value:par,o3s: false } ; break; case "backcolor":I3r= {name: "background-color",value:par,o3s: false } ; break; case "fontname":I3r= {name: "font-family",value:par,o3s: false } ; break; case "fontsize":I3r= {name: "font-size",value:par,o3s: false } ; break; }if (i3r){var l1e=this.i1e(); this.O3s(I3r,l1e, true); }else if (!HTMLEditor.is_Safari){if (this.iq())return; var l1e=this.l3s(); if (l1e.length>0){ this.O3s(I3r,l1e, false); if (HTMLEditor.is_ie && this.i3s!=null){ip=this.Ip(); oq=this.Oq(ip); oq.moveToBookmark(this.i3s); oq.select(); this.i3s=null; }else if (this.i3s!=null){if (this.i3s[0].nodeType==3){ip=this.Ip(); oq=this.l1.createRange(); oq.setStart(this.i3s[0],this.i3s[1]); oq.setEnd(this.i3s[0],this.i3s[1]); this.l16(ip); this.i16(ip,oq); }else { this.I3s(this.i3s[0],this.i3s[0]); this.i3s[0].parentNode.removeChild(this.i3s[0]); } this.i3s=null; }}else { this.o3t(I3r); }}};HTMLEditor.prototype.l3s= function (om){var i1q=[]; var o1h; var i3r; var ip=this.Ip(); var oq=this.Oq(ip); var O3t; var I3g; var O1y=HTMLEditor.il+"_right_add"; var l1y=HTMLEditor.il+"_left_add"; var l3t=HTMLEditor.il+"_middle_add"; if (HTMLEditor.is_ie && typeof om=="undefined"){oq.execCommand("bold"); this.i3s=oq.getBookmark(); oq.execCommand("bold"); }if (HTMLEditor.is_ie){var i3t=null; var I3t="<span id="+l3t+"></span>"; var o3u=oq.duplicate(); try {oq.pasteHTML(I3t); }catch (w){}i3t=this.l1.getElementById(l3t); if (i3t==null)return []; if (typeof om!="undefined")this.i3s=i3t; if (i3t.nextSibling!=null && !HTMLEditor.o38(i3t.nextSibling)){i3t.parentNode.removeChild(i3t); return []; }oq.expand("word"); oq.select(); if (oq.text.length==0){i3t.parentNode.removeChild(i3t); o3u.select(); return []; }var O2f=new RegExp(I3t,"ig"); if (!O2f.test(oq.htmlText.replace(/[\n\r]/g,""))){i3t.parentNode.removeChild(i3t); o3u.select(); return []; }O2f=new RegExp(I3t+"(\x3c/span>|&nbsp;|[\\s])*$","ig"); if (O2f.test(oq.htmlText.replace(/[\n\r]/g,""))){i3t.parentNode.removeChild(i3t); o3u.select(); return []; }while (oq.text.length>0 && oq.text.substr(oq.text.length-1,1)==" "){oq.moveEnd("character",-1); oq.select(); if (oq.text.length==0){i3t.parentNode.removeChild(i3t); o3u.select(); return []; }}if (typeof om=="undefined")i3t.parentNode.removeChild(i3t); return this.i1e(); }function l38(O3u){var O2f=/[\d\w]/; if (O2f.test(O3u))return false; O2f=/[\x80-\u024f]/; if (O2f.test(O3u))return false; O2f=/[\u0370-\u2000]/; if (O2f.test(O3u))return false; return true; }if (!this.I10("<span id='"+l1y+"'></span><span id='"+l3t+"'></span><span id='"+O1y+"'></span>"))return []; var o1z=this.l1.getElementById(l1y); var O1z=this.l1.getElementById(O1y); var l3u=this.l1.getElementById(l3t); HTMLEditor.I38(o1z,o1z.previousSibling, true ,o1z.parentNode,l38); try { this.I3s(o1z,O1z); }catch (w){}O3t=this.Ip(); I3g=this.Oq(O3t); o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(this.O1h()): ""; i3r=(HTMLEditor.is_ie && I3g.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0); if (!i3r || this.i1e().length==0){var i3u=this.l1.createTextNode(""); o1z.parentNode.insertBefore(i3u,o1z); o1z.parentNode.removeChild(o1z); O1z.parentNode.removeChild(O1z); l3u.parentNode.removeChild(l3u); var oq=this.l1.createRange(); oq.setStart(i3u,0); oq.setEnd(i3u,0); oq.setStart(i3u,0); oq.setEnd(i3u,0); this.l16(ip); this.i16(ip,oq); return []; }O1z.parentNode.insertBefore(o1z,l3u); HTMLEditor.I38(O1z,O1z.nextSibling, false ,O1z.parentNode,l38); this.I3s(o1z,O1z); O3t=this.Ip(); I3g=this.Oq(O3t); o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(this.O1h()): ""; i3r=(HTMLEditor.is_ie && I3g.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0); if (!i3r || this.i1e().length==0){var i3u=this.l1.createTextNode(""); o1z.parentNode.insertBefore(i3u,o1z); o1z.parentNode.removeChild(o1z); O1z.parentNode.removeChild(O1z); l3u.parentNode.removeChild(l3u); var oq=this.l1.createRange(); oq.setStart(i3u,0); oq.setEnd(i3u,0); oq.setStart(i3u,0); oq.setEnd(i3u,0); this.l16(ip); this.i16(ip,oq); return []; }HTMLEditor.I38(o1z,o1z.previousSibling, true ,o1z.parentNode,l38); this.I3s(o1z,O1z); O3t=this.Ip(); I3g=this.Oq(O3t); o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(this.O1h()): ""; i3r=(HTMLEditor.is_ie && I3g.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0); if (HTMLEditor.is_ie){if (typeof om!="undefined")this.i3s=l3u; else l3u.parentNode.removeChild(l3u); }else this.i3s=[l3u,0]; if (i3r){i1q=this.i1e(); }o1z.parentNode.removeChild(o1z); O1z.parentNode.removeChild(O1z); return i1q; };HTMLEditor.prototype.o3t= function (I3r){var name=I3r.name.replace(/-(\w)/g, function (I3u,o1x){return o1x.toUpperCase(); } ); var value=I3r.value; var o3s=I3r.o3s; if (this.M==null)this.M=[]; var o3v=[];var O3v= true; for (var i=0; i<this.M.length; i++){var l3v=this.M[i].name.replace(/-(\w)/g, function (I3u,o1x){return o1x.toUpperCase(); } ); var i3v=this.M[i].value; if (!(l3v==name && (i3v==value || o3s)))o3v.push(this.M[i]); else O3v= false; } this.M=o3v; if (O3v)this.M.push(I3r); };HTMLEditor.prototype.I3s= function (o1z,O1z){var ip=this.Ip(); var i3u=null; var I3v=null; if (HTMLEditor.is_ie){ip.empty(); ip=this.Ip(); var I3g=this.Oq(ip); var o3h=this.Oq(ip); try {if (o1z!=null)I3g.moveToElementText(o1z); if (O1z!=null)o3h.moveToElementText(O1z); if (o1z!=null && O1z!=null){I3g.setEndPoint("EndToEnd",o3h); I3g.select(); }else if (o1z!=null)I3g.select(); else if (O1z!=null)o3h.select(); }catch (t){}}else {try {i3u=this.l1.createTextNode(""); I3v=this.l1.createTextNode(""); o1z.parentNode.insertBefore(i3u,o1z); O1z.parentNode.insertBefore(I3v,O1z); var oq=this.l1.createRange(); oq.setStart(i3u,0); oq.setEnd(I3v,0); this.l16(ip); this.i16(ip,oq); }catch (t){}}};HTMLEditor.prototype.O3s= function (I3r,l1e,o3w){var name=I3r.name.replace(/-(\w)/g, function (I3u,o1x){return o1x.toUpperCase(); } ); var value=I3r.value; var o3s=I3r.o3s; var O3w= false; var l3w= false; this.o10(); var O1y=HTMLEditor.il+"_right"; var l1y=HTMLEditor.il+"_left"; var o1z=this.l1.createElement("SPAN"); o1z.id=l1y; var O1z=this.l1.createElement("SPAN"); O1z.id=O1y; l1e[0].parentNode.insertBefore(o1z,l1e[0]); if (l1e[l1e.length-1].nextSibling!=null)l1e[l1e.length-1].parentNode.insertBefore(O1z,l1e[l1e.length-1].nextSibling); else l1e[l1e.length-1].parentNode.appendChild(O1z); HTMLEditor.i1z(o1z); HTMLEditor.i1z(O1z); var i3w=[]; for (var i=0; i<l1e.length; i++){var I3w=l1e[i]; var par=I3w.parentNode; var ig; for (ig=0; ig<i3w.length; ig++){var parent=i3w[ig]; if (parent.parent==par){parent.o3x.push(I3w); break; }}if (ig==i3w.length){i3w.push( {parent:par,o3x: [I3w] } ); }}for (var i=0; i<i3w.length; i++){var parent=i3w[i]; if (parent.o3x.length>1){var o3x=parent.o3x; var O3x=this.l1.createElement("SPAN"); var l3x=this.l1.createElement("SPAN"); o3x[0].parentNode.insertBefore(O3x,o3x[0]); if (o3x[o3x.length-1].nextSibling!=null)o3x[o3x.length-1].parentNode.insertBefore(l3x,o3x[o3x.length-1].nextSibling); else o3x[o3x.length-1].parentNode.appendChild(l3x); HTMLEditor.l39(O3x,l3x); O3x.parentNode.removeChild(O3x); l3x.parentNode.removeChild(l3x); }}for (var i=0; i<l1e.length; i++){var I3w=l1e[i]; var par=I3w.parentNode; var i3x= false; while (par && par.tagName && par.childNodes.length==1 && HTMLEditor.O1e(par.tagName)){var I3x=par.tagName.toUpperCase(); if (((I3x=="I" || I3x=="EM") && I3r.name=="font-style") || ((I3x=="B" || I3x=="STRONG") && I3r.name=="font-weight") || ((I3x=="S" || I3x=="STRIKE") && I3r.name=="text-decoration") || ((I3x=="U") && I3r.name=="text-decoration") || ((I3x=="SUB" || I3x=="SUP") && I3r.name=="vertical-align")){var o3y=par; par=par.parentNode; while (o3y.firstChild)par.insertBefore(o3y.firstChild,o3y); par.removeChild(o3y); i3x= true; continue; }else if (par.style && par.style[name] && par.style[name].length>0){var O3y=par.style[name]; if (name.toLowerCase().indexOf("color")>=0 || name=="fontFamily" || name=="fontSize"){par.style[name]=value; }else {if (o3s){try {par.style[name]=par.style[name]+" "+value; if (O3y==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {if (!O3w){var i17=O3y.replace(value,""); if (name=="fontWeight" && O3y.toString()=="700")i17=""; if (i17==O3y){try {par.style[name]=par.style[name]+" "+value; if (O3y==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {par.style[name]=i17; l3w= true; }O3w= true; }else {if (l3w){par.style[name]=O3y.replace(value,""); }else {try {par.style[name]=par.style[name]+" "+value; if (O3y==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}}}}i3x= true; }par=par.parentNode; }if (!i3x && !l3w){var span; span=this.l1.createElement("SPAN"); span.style[name]=value; var l3y=I3w.parentNode; l3y.insertBefore(span,I3w); span.appendChild(I3w); O3w= true; }}var i3y=HTMLEditor.o20(o1z,O1z); var I3y=i3y.parent.childNodes.item(i3y.I20).previousSibling; var o3z=i3y.parent.childNodes.item(i3y.O21).nextSibling; o1z.parentNode.removeChild(o1z); O1z.parentNode.removeChild(O1z); var I20=0; var O21=i3y.parent.childNodes.length; if (I3y!=null){I20=HTMLEditor.o16(I3y); }if (o3z!=null){O21=HTMLEditor.o16(o3z)+1; if (O21<i3y.parent.childNodes.length){if (o3z.nodeType==3)O21++; else if (o3z.nodeType==1){var Ik=o3z.tagName.toUpperCase(); if (Ik!="TR" && Ik!="TD" && Ik!="LI")O21++; }}}HTMLEditor.I21(i3y.parent,this.l1,I20,O21); var X=this ; if (o3w)X.I1e(l1e); this.I0.setTimeout( function (){if (!HTMLEditor.is_ie)X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.O3k= function (I3j){if (I3j.length==0)return []; var o1z=this.l1.createElement("SPAN"); var O1z=this.l1.createElement("SPAN"); var O3z=I3j[0][0]; var l3z=I3j[I3j.length-1][I3j[I3j.length-1].length-1]; if (O3z==l3z && l3z.nodeType==1 && l3z.childNodes.length==0 && HTMLEditor.canHaveChildren(l3z)){l3z.appendChild(o1z); l3z.appendChild(O1z); }else {var i3z=HTMLEditor.I3z(O3z); i3z.parentNode.insertBefore(o1z,i3z); if (i3z==O3z){var i17=[]; i17.push(o1z); for (var i=0; i<I3j[0].length; i++)i17.push(I3j[0][i]); I3j[0]=i17; }var o40=HTMLEditor.o3g(l3z); if (o40.nextSibling)o40.parentNode.insertBefore(O1z,o40.nextSibling); else o40.parentNode.appendChild(O1z); if (o40==l3z){I3j[I3j.length-1].push(O1z);}}return [o1z,O1z]; };HTMLEditor.prototype.i1i= function (i3h,O3l){if (i3h.length==0)return; var o1z=i3h[0]; var O1z=i3h[1]; var ip=this.Ip(); var i3u=null; var I3v=null; if (HTMLEditor.is_ie){ip.empty(); ip=this.Ip(); var I3g=this.Oq(ip); var o3h=this.Oq(ip); try {if (o1z!=null && O1z!=null && o1z.nextSibling==O1z){i3u=this.l1.createTextNode(" "); O1z.parentNode.insertBefore(i3u,O1z); } this.O3g=null; if (o1z!=null){I3g.moveToElementText(o1z); }if (O1z!=null){o3h.moveToElementText(O1z); }if (o1z!=null && O1z!=null){I3g.setEndPoint("EndToStart",o3h); I3g.select(); if (i3u!=null){I3g.collapse( false); I3g.select(); i3u.parentNode.removeChild(i3u); }}else if (o1z!=null)I3g.select(); else if (O1z!=null)o3h.select(); }catch (w){}}else {try {var oq; var O2x=o1z.nextSibling; var O2y=O1z.previousSibling;this.O3g=null; if (O2x==O2y && O2x.nodeType==1 && O2x.tagName.toUpperCase()=="BR"){var l1u=HTMLEditor.o16(O2x); oq=this.l1.createRange(); oq.setStart(O2x.parentNode,l1u); oq.setEnd(O2x.parentNode,l1u); }else {i3u=this.l1.createTextNode(""); I3v=this.l1.createTextNode(""); o1z.parentNode.insertBefore(i3u,o1z); O1z.parentNode.insertBefore(I3v,O1z); oq=this.l1.createRange(); oq.setStart(i3u,0); oq.setEnd(I3v,0); } this.l16(ip); this.i16(ip,oq); }catch (w){}}var I1z=HTMLEditor.o20((o1z==null)?O1z:o1z,(O1z==null)?o1z:O1z); var parent=null; if (I1z!=null){parent=I1z.parent; }if (o1z!=null)o1z.parentNode.removeChild(o1z); if (O1z!=null)O1z.parentNode.removeChild(O1z); if (O3l && parent!=null){HTMLEditor.I21(parent,this.l1); if (!HTMLEditor.is_ie && i3u!=null && I3v!=null){var oq=this.l1.createRange(); oq.setStart(i3u,0); oq.setEnd(I3v,0); this.l16(ip); this.i16(ip,oq); }}};HTMLEditor.O39= function (o2x,Oe){for (var i=0; i<o2x.childNodes.length; i++){var I31=o2x.childNodes.item(i); if (I31==Oe)return i; if (I31.nodeType==1){if (HTMLEditor.O39(I31,Oe)>=0)return i; }}return -1; };HTMLEditor.I3z= function (o2x){if (typeof o2x.firstChild!="undefined" && o2x.firstChild!=null){if (typeof o2x.firstChild.childNodes!="undefined" && o2x.firstChild.childNodes!=null){return HTMLEditor.I3z(o2x.firstChild);}}return o2x; };HTMLEditor.o3g= function (o2x){if (typeof o2x.lastChild!="undefined" && o2x.lastChild!=null){if (typeof o2x.lastChild.childNodes!="undefined" && o2x.lastChild.childNodes!=null){return HTMLEditor.o3g(o2x.lastChild);}}return o2x; };HTMLEditor.i3c= function (o2x,Oe){if (o2x.firstChild){if (o2x.firstChild==Oe)return true; if (o2x.firstChild.childNodes)if (HTMLEditor.O39(o2x.firstChild,Oe)==0){return HTMLEditor.i3c(o2x.firstChild,Oe);}}return false; };HTMLEditor.I3c= function (o2x,Oe){if (o2x.lastChild){if (o2x.lastChild==Oe)return true; if (o2x.lastChild.childNodes)if (HTMLEditor.O39(o2x.lastChild,Oe)==o2x.lastChild.childNodes.length-1){return HTMLEditor.I3c(o2x.lastChild,Oe);}}return false; };HTMLEditor.o20= function (i20,o21){var oe=null; var par=i20.parentNode; var O40=i20; while (par){if (par.tagName && !HTMLEditor.O1e(par.tagName)){var O21=HTMLEditor.O39(par,o21); if (O21>=0){var I20=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==O40){I20=i; break; }}return {parent:par,I20:I20,O21:O21 } ; }}O40=par; par=par.parentNode; }return oe; };HTMLEditor.prototype.removeAlignment= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; this.o10(); this.O3j("left", true); this.O13(); var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); } ; HTMLEditor.l40= function (i20,o21){var oe=null; var par=i20.parentNode; var O40=i20; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1e(par.tagName)){var O21=HTMLEditor.O39(par,o21); if (O21>=0){var I20=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==O40){I20=i; break; }}return {parent:par,I20:I20,O21:O21 } ; }O40=par; par=par.parentNode; }return oe; };HTMLEditor.prototype.l1a= function (i40,om){var X=this ; if (HTMLEditor.is_ie){var ip=this.Ip(); var oq=this.Oq(ip); var i29= false; var html=""; if (i40=="x")this.o10(); if (ip.type.toLowerCase()=="control"){i29= true; html=HTMLEditor.getHTML(oq.item(0), true);}else {if (oq.text!=""){i29= true; html=oq.htmlText; var I40=oq.duplicate(); var l1e=this.i1e(); if (l1e.length<1)return; var I1z=HTMLEditor.l40(l1e[0],l1e[l1e.length-1]); if (I1z!=null && l1e[0].previousSibling && l1e[0].previousSibling.nodeType==3){var par=I1z.parent; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1e(par.tagName)){var ly=par.cloneNode( false); ly.innerHTML=html; html=ly.outerHTML; par=par.parentNode; }}ip=this.Ip(); ip.empty(); oq=this.Oq(ip); oq.setEndPoint("EndToEnd",I40); oq.setEndPoint("StartToStart",I40); oq.select(); }else if (oq.htmlText!=""){i29= true; html=oq.htmlText; }}if (i29){var src=this.l1.createElement("DIV"); src.innerHTML="!!!<span></span>"+html; src.removeChild(src.firstChild); src.removeChild(src.firstChild); var ok=HTMLEditor.getHTML(src, false , true); var l2t=new RegExp("(<[/]?)(teo"+HTMLEditor.il+":)","ig"); ok=ok.replace(l2t,"$1"); delete src; this.O31(ok, true); oq.select(); if (i40=="x"){ip.clear(); this.O10(); }}else {if (i40=="x"){ip.clear(); this.O10(); }}if (om)setTimeout( function (){X.updateToolbar(); } ,0144); }else {if (i40=="x"){ this.o10(); var ip=this.Ip(); var oq=this.Oq(ip); this.l16(ip); oq.deleteContents(); if (this.l1.body.innerHTML==""){ this.l1.body.innerHTML="<br/>"; oq.setStart(this.l1.body,0); oq.setEnd(this.l1.body,0); }if (HTMLEditor.l10)this.f= true; X.O13(); this.i16(ip,oq); }else {var ip=this.Ip(); var oq=this.Oq(ip); this.l16(ip); if (HTMLEditor.is_Safari)alert(this.Ie("safari-c","Use Apple-C")); else alert(this.Ie("moz-c","Use Ctrl-C")); if (HTMLEditor.l10)this.f= true; this.i16(ip,oq); }}};HTMLEditor.o16= function (ik){var l1u=0; if (ik.parentNode){for ( ; l1u<ik.parentNode.childNodes.length; l1u++)if (ik.parentNode.childNodes.item(l1u)==ik)break; }return l1u; };HTMLEditor.prototype.o41= function (Oj){var X=this ; this.o10(); if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X._paste(!X._NoPaste); X.Om(); } ,0);HTMLEditor._stopEvent(Oj); }else {if (!this.isWord && !this._NoPaste)setTimeout( function (){HTMLEditor.Ix(X,X.l1,!X.showAnchors); HTMLEditor.oy(X,X.l1,!X.showPlaceHolders); HTMLEditor.i12(X.l1.body); X.O41(X.l1.body); X.O13(); } ,012); else {var I1s=X.o1t(); if (I1s!=null){var div=X.l1.createElement("div"); div.style.display="inline"; div.style.borderStyle="none"; I1s.parentNode.insertBefore(div,I1s); div.appendChild(I1s); div.removeChild(I1s); div.innerHTML="x"; var ip=X.Ip(); var l1e=X.Oq(); X.l16(ip); l1e.setStart(div.firstChild,0); l1e.setEnd(div.firstChild,1); X.i16(ip,l1e); X.openWait(); setTimeout( function (){var parent=div.parentNode; if (X.isWord){div.innerHTML=HTMLEditor.I2l(div.innerHTML); HTMLEditor.I2v(div,X, true); HTMLEditor.I21(div,X.l1); }else {var l41=document.createElement("div"); l41.innerHTML=HTMLEditor.I2l(div.innerHTML); div.innerHTML=l41.innerText.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>").replace(/\cI/g,"&nbsp;"); delete l41; }while (div.firstChild)parent.insertBefore(div.firstChild,div); var i41=null; var I41=null; if (div.nextSibling && div.nextSibling.nodeType==3 && div.previousSibling && div.previousSibling.nodeType==3){i41=div.nextSibling; I41=div.previousSibling; }parent.removeChild(div); var o42=null; if (i41!=null && I41!=null){o42=I41.data.length; I41.data=""+I41.data+""+i41.data+""; i41.parentNode.removeChild(i41); }X.isWord= false; X.Om(); if (o42!=null){var ip=X.Ip(); var l1e=X.Oq(); X.l16(ip); l1e.setStart(I41,o42); l1e.setEnd(I41,o42); X.i16(ip,l1e); }X.O13(); } ,0); }else HTMLEditor._stopEvent(Oj); }}};HTMLEditor.prototype.O42= false; HTMLEditor.prototype.O28= function (Oj){try {var X=this ; if (HTMLEditor.is_ie){try {var oz=this.l1.selection; var Oz=this.Oq(oz); }catch (t){HTMLEditor._stopEvent(Oj); return false; }}if (!this._wasFocused)this.focusEditor(); if (this.isPopup()){HTMLEditor._stopEvent(Oj); return false; }var l42= false; if (X.Od && X.Od!=null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; if (X.iz){X.iz.select(); X.iz=null; }if (Oj.type=="keydown" || Oj.type=="keypress"){HTMLEditor._stopEvent(Oj); return; }l42= true; }if (typeof X.captureInDesign=="function"){if (X.captureInDesign(Oj) === false){HTMLEditor._stopEvent(Oj); return; }}if (HTMLEditor.is_ie && Oj.type=="mousedown" && Oj.ctrlKey){var ip=X.Ip(); var i42=Oj.clientX; var I42=Oj.clientY; setTimeout( function (){var ip=X.Ip(); if (ip.type.toLowerCase()!="control"){var oq=X.l1.body.createTextRange(); oq.moveToPoint(i42,I42); oq.select(); }ip=X.Ip(); var oq=X.Oq(ip); var parent=HTMLEditor.getSelParent(X); while (parent!=null && parent.tagName.toUpperCase()!="BODY"){if (parent.tagName.toUpperCase()=="A" && parent.href!=null && typeof parent.href!="undefined" && parent.href.length>0){window.open(parent.href,"LinkViewWindow"); break; }parent=parent.parentNode; }} ,(ip.type.toLowerCase()!="control")?0: 012); HTMLEditor._stopEvent(Oj); return false; }{var ik=(!HTMLEditor.is_ie)?Oj.target:Oj.srcElement; if (ik.tagName!=null && typeof ik.tagName!="undefined" && (ik.tagName.toUpperCase()=="HTML" || ik.tagName.toUpperCase()=="BODY")){if (X.o43!= true){X.o43= true; setTimeout( function (){if (!X.O43()){try {X.focusEditor(); }catch (w){}}X.o43= false; } ,0); }}else if (HTMLEditor.contentEditable(ik)!=null){setTimeout( function (){X.O43(); } ,(!HTMLEditor.is_ie && Oj.button && Oj.button==2)?0310: 0); }}if (l42 && HTMLEditor.is_ie){var l43=this.Ip(); var Oz; try {Oz=this.Oq(l43); if (l43.type.toLowerCase()=="control"){HTMLEditor._stopEvent(Oj); return false; }}catch (w){HTMLEditor._stopEvent(Oj); return false; }}var i43=(HTMLEditor.is_ie && Oj.type=="keydown") || (Oj.type=="keypress"); if (Oj.type=="keydown" && !HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (this.I43!=null){ this.I43.select(); this.I43=null; }if (i43 && !this.keyboardEnabled){HTMLEditor._stopEvent(Oj); return false; }var i40=String.fromCharCode(HTMLEditor.is_ie?Oj.keyCode:Oj.charCode).toLowerCase(); if (i43 && X._hotkeys!=null){if (X._hotkeys.length>0){var o44=X._hotkeys.length; var O44=i40; if (Oj.keyCode==022 || Oj.keyCode==021 || Oj.keyCode==020)O44=null; for (var i=0; i<o44; i++){var item=X._hotkeys[i]; if (item[1]==O44 && item[2]==Oj.altKey && item[3]==Oj.shiftKey && item[4]==Oj.ctrlKey){if (typeof item[0]=="function")setTimeout( function (){ (item[0])(X); X.O13(); X.focusEditor(); } ,0); HTMLEditor._stopEvent(Oj); return false; }}}}if (i43 && Oj.shiftKey && Oj.keyCode==055){ this.o41(Oj); }else if (i43 && Oj.ctrlKey && Oj.altKey && Oj.keyCode==044){var l44=null; var ik=HTMLEditor.getSelParent(X); while (ik && (ik.nodeType==3 || (ik.tagName && ik.tagName.toUpperCase()!="BODY"))){if (ik.nodeType==3 || !ik.tagName){ik=ik.parentNode; continue; }if (!HTMLEditor.I2y(ik) && ik.tagName.toUpperCase()!="P"){if (ik.tagName.toUpperCase()=="TD")while (ik.tagName.toUpperCase()!="TABLE")ik=ik.parentNode; else if (ik.tagName.toUpperCase()=="LI")while (ik.tagName.toUpperCase()!="OL" && ik.tagName.toUpperCase()!="UL")ik=ik.parentNode; l44=ik; break; }ik=ik.parentNode; }if (l44!=null){var ip=X.Ip(); var oq=X.Oq(ip); var O16=X.l1.createTextNode(""); l44.parentNode.insertBefore(O16,l44); if (HTMLEditor.is_ie){var I3g=X.Oq(ip); var o3h=X.Oq(ip); var i44=X.l1.createElement("span"); var I44=X.l1.createElement("span"); O16.parentNode.insertBefore(i44,O16); if (O16.nextSibling)O16.parentNode.insertBefore(I44,O16.nextSibling); else O16.parentNode.appendChild(I44); try {I3g.moveToElementText(i44); o3h.moveToElementText(I44); I3g.setEndPoint("EndToEnd",o3h); I3g.select(); }catch (t){}O16.parentNode.removeChild(i44); O16.parentNode.removeChild(I44); }else {X.l16(ip); oq.setStart(O16,0); oq.setEnd(O16,0); X.i16(ip,oq); }}}else if (HTMLEditor.is_ie && Oj.keyCode>=041 && Oj.keyCode<=050 && !Oj.shiftKey){var o45=Oj.keyCode; var O45=(o45==042 || o45==043 || o45==047 || o45==050); setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); if (ip.type.toLowerCase()=="control"){var ik=oq.item(0); if (!ik.contentEditable || ik.contentEditable=="false"){oq.remove(0); ip.empty(); oq=X.Oq(ip); var span=X.l1.createElement("SPAN"); span.appendChild(X.l1.createTextNode("")); if (O45){if (ik.nextSibling==null)ik.parentNode.appendChild(span); else ik.parentNode.insertBefore(span,ik.nextSibling); }else {ik.parentNode.insertBefore(span,ik); }oq.moveToElementText(span); oq.select(); setTimeout( function (){X.focusEditor(); X.updateToolbar(); X.focusEditor(); span.parentNode.removeChild(span); } ,012); }}} ,0); }else if (i43 && Oj.ctrlKey && !Oj.altKey){X.O42= false; var ip=null; var oq=null; var i40=String.fromCharCode((HTMLEditor.is_ie || HTMLEditor.l10)?Oj.keyCode:Oj.charCode).toLowerCase(); var l1x=null; var value=null; if (HTMLEditor.is_ie && Oj.keyCode==021){return false; }else if (!HTMLEditor.is_ie && Oj.keyCode==043 && !Oj.shiftKey){X.l12( true); }else if (Oj.keyCode==056 && this.O1a()){HTMLEditor._stopEvent(Oj); return false; }else if (Oj.keyCode==056 || Oj.keyCode==8){if ((HTMLEditor.is_ie && Oj.type=="keydown") || (!HTMLEditor.is_ie && Oj.type=="keypress"))this.o10(); }else {switch (i40){case "a":if (!HTMLEditor.is_ie){ip=this.Ip(); this.l16(ip); oq=this.Oq(); oq.selectNodeContents(this.l1.body); this.i16(ip,oq); HTMLEditor._stopEvent(Oj); return false; }else X.O42= true; break; case "z": this.undo(); HTMLEditor._stopEvent(Oj); return false; break; case "p":if (!HTMLEditor.is_ie){setTimeout( function (){X.o1b(); } ,0); HTMLEditor._stopEvent(Oj); return false; }break; case "y": this.redo(); HTMLEditor._stopEvent(Oj); return false; break; case "x":if (this.O1a()){HTMLEditor._stopEvent(Oj); return false; } this.o10(); if (HTMLEditor.is_ie){if (Oj.type=="keydown"){X.openWait(); setTimeout( function (){X.l1a(i40, false); X.Om(); } ,0); HTMLEditor._stopEvent(Oj); return false; }}break; case "c":if (this.O1a()){HTMLEditor._stopEvent(Oj); return false; }if (HTMLEditor.is_ie){if (Oj.type=="keydown"){X.openWait(); setTimeout( function (){X.l1a(i40, false); X.Om(); setTimeout( function (){X.i1a(); } ,0); } ,0); HTMLEditor._stopEvent(Oj); return false; }}break; case "v":if (this.O1a()){HTMLEditor._stopEvent(Oj); return false; } this.o41(Oj); break; case "b": this.bold(); HTMLEditor._stopEvent(Oj); return false; case "i": this.italic(); HTMLEditor._stopEvent(Oj); return false; case "u": this.underline(); HTMLEditor._stopEvent(Oj); return false; case "s":l1x="strikethrough"; break; case "l":l1x="justifyleft"; break; case "e":l1x="justifycenter"; break; case "r":l1x="justifyright"; break; case "j":l1x="justifyfull"; break; case "q":alert(this.l1.body.innerHTML); HTMLEditor._stopEvent(Oj); return false; break; case "0":var l45=this.Ie("your-browser","Your browser")+":\n\n"+navigator.userAgent; l45+="\n\nObout Editor: "+this.scriptVersion; alert(l45); HTMLEditor._stopEvent(Oj); return false; break; break; case "9":if (!HTMLEditor.is_ie){var ip=X.Ip(); var oq=X.Oq(ip); var o1x=oq.startContainer; var O1x=oq.endContainer; var i45=""; i45+="startContainer: "+(o1x.nodeType==1?o1x.tagName: "text")+"\n"; i45+="endContainer  : "+(O1x.nodeType==1?O1x.tagName: "text")+"\n"; if (o1x==O1x){i45+="startOffset: "+oq.startOffset+"\n"; i45+="endOffset  : "+oq.endOffset+"\n"; if (o1x.nodeType==1){o1x=o1x.childNodes.item(oq.startOffset); if (o1x && o1x.nodeType){i45+="startOffset node: "+(o1x.nodeType==1?o1x.tagName: "text")+"\n"; if (oq.startOffset!=oq.endOffset){o1x=o1x.childNodes.item(oq.endOffset); if (o1x && o1x.nodeType)i45+="endOffset node: "+(o1x.nodeType==1?o1x.tagName: "text")+"\n"; }}else i45+=o1x; }}alert(i45); }else {var ip=X.Ip(); var oq=X.Oq(ip); alert("boundingLeft: "+oq.boundingLeft+" boundingTop: "+oq.boundingTop+"\n"+"boundingWidth: "+oq.boundingWidth+" boundingHeight: "+oq.boundingHeight); }HTMLEditor._stopEvent(Oj); return false; break; }}if (l1x){ this.i1d(l1x, false ,value); if (l1x=="formatblock" && !HTMLEditor.is_ie){ this.o10(); this.I19( false); }HTMLEditor._stopEvent(Oj); if (l1x=="delete" || l1x=="paste"){ this.O10(); }}}else if (i43){if (HTMLEditor.is_ie && this.i28){var oq=this.Oq(this.Ip()); oq.select(); this.i28= false; }var i40=String.fromCharCode(HTMLEditor.is_ie?Oj.keyCode:Oj.charCode).toLowerCase(); if (X.O42){X.O42= false; function I45(){var i1b=X.Oq(X.Ip()); var parent=i1b.parentElement(); if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); parent.parentNode.removeChild(parent); }}setTimeout(I45,0); }if (this.O1a()){HTMLEditor._stopEvent(Oj); return false; }switch (Oj.keyCode){case 011:if (!this.suppressTab){if (!this.iq())this.I10("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); HTMLEditor._stopEvent(Oj); }else {if (!HTMLEditor.is_ie){HTMLEditor._stopEvent(Oj); }return true; }break; case 8:case 056:if ((HTMLEditor.is_ie && Oj.type=="keydown") || (!HTMLEditor.is_ie && Oj.type=="keypress"))this.o10(); if (!HTMLEditor.is_ie){var oq=this.Oq(this.Ip()); var o1x=oq.startContainer; var O1x=oq.endContainer; if (Oj.type=="keypress")if (HTMLEditor.contentEditable(o1x)!=null || HTMLEditor.contentEditable(O1x)!=null){HTMLEditor._stopEvent(Oj); return false; }if (o1x==O1x && o1x.nodeType==1 && o1x.tagName.toUpperCase()=="TD" && oq.startOffset==oq.startOffset && o1x.childNodes.item(oq.startOffset) && o1x.childNodes.item(oq.startOffset).tagName && o1x.childNodes.item(oq.startOffset).tagName.toUpperCase()=="BR"){var span=o1x.childNodes.item(oq.startOffset); var left=0,right=0; var o46,l1y,O1y; l1y=o46=span.previousSibling; while (o46){left++; o46=o46.previousSibling; }O1y=o46=span.nextSibling; while (o46){right++; o46=o46.nextSibling; }if ((Oj.keyCode==056 && right==0) || (Oj.keyCode==8 && left==0)){HTMLEditor._stopEvent(Oj); return false; }else if (Oj.keyCode==056 && o1x.firstChild==o1x.lastChild && o1x.firstChild.nodeType==1){HTMLEditor._stopEvent(Oj); return false; }}if (o1x==O1x && o1x.nodeType==3 && oq.startOffset==oq.endOffset){var data=o1x.data+""; if (Oj.keyCode==056)if (oq.startOffset==data.length && !(o1x.nextSibling && o1x.nextSibling.nodeType==3)){if (o1x.nextSibling){o1x.parentNode.removeChild(o1x.nextSibling); X.O13(); }HTMLEditor._stopEvent(Oj); return false; }if (Oj.keyCode==8)if (oq.startOffset==0 && !(o1x.previousSibling && o1x.previousSibling.nodeType==3)){if (o1x.previousSibling){o1x.parentNode.removeChild(o1x.previousSibling); X.O13(); }HTMLEditor._stopEvent(Oj); return false; }}if (Oj.keyCode==8 && o1x.nodeType==1 && o1x==O1x && oq.startOffset==oq.endOffset){var O46=o1x.childNodes.item(oq.startOffset); if (O46!=null && O46.nodeType==1 && O46.tagName.toUpperCase()=="BR"){O46=O46.previousSibling; if (O46!=null && O46.nodeType!=3){O46.parentNode.removeChild(O46); X.O13(); HTMLEditor._stopEvent(Oj); return false; }}}setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); var o1x=oq.startContainer; var O1x=oq.endContainer; if (HTMLEditor.contentEditable(o1x)!=null || HTMLEditor.contentEditable(O1x)!=null){X.I19( false); return; }if (o1x==O1x && o1x.nodeType==1 && HTMLEditor.O1e(o1x.tagName) && oq.startOffset==oq.endOffset && o1x.childNodes.length==0){while (o1x.parentNode.nodeType==1 && HTMLEditor.O1e(o1x.parentNode.tagName) && o1x.parentNode.childNodes.length==1)o1x=o1x.parentNode; var O2x=o1x.nextSibling; var O2y=o1x.previousSibling; var parent=o1x.parentNode; parent.removeChild(o1x); X.O13(); if (O2x==null && O2y==null){oq.setStart(parent,0); oq.setEnd(parent,0); }else if (O2x!=null && O2y!=null){if (O2x.nodeType==3 && O2y.nodeType==3){var o26=(""+O2y.data+"").length; O2y.appendData(O2x.data);parent.removeChild(O2x); oq.setStart(O2y,o26); oq.setEnd(O2y,o26); }else if (O2y.nodeType==3){var o26=(""+O2y.data+"").length; oq.setStart(O2y,o26); oq.setEnd(O2y,o26); }else if (O2x.nodeType==3){oq.setStart(O2x,0); oq.setEnd(O2x,0); }else {if (O2x.childNodes.length>0){oq.setStart(O2x,0); oq.setEnd(O2x,0); }else {var o26=HTMLEditor.o16(O2x); oq.setStart(parent,o26); oq.setEnd(parent,o26); }}}else if (O2y!=null){if (O2y.nodeType==3){var o26=(""+O2y.data+"").length; oq.setStart(O2y,o26); oq.setEnd(O2y,o26); }else {var o26=O2y.childNodes.length; if (o26>0){oq.setStart(O2y,o26); oq.setEnd(O2y,o26); }else {o26=HTMLEditor.o16(O2y); oq.setStart(parent,o26); oq.setEnd(parent,o26); }}}else if (O2x!=null){if (O2x.nodeType==3){oq.setStart(O2x,0); oq.setEnd(O2x,0); }else {var o26=O2x.childNodes.length; if (o26>0){oq.setStart(O2x,o26); oq.setEnd(O2x,o26); }else {o26=HTMLEditor.o16(O2x); oq.setStart(parent,o26); oq.setEnd(parent,o26); }}}X.l16(ip); X.i16(ip,oq); }} ,012); }else {var ip=X.Ip(); if (ip.type.toLowerCase()=="control"){if (Oj.keyCode==8){setTimeout( function (){X.i1a(); X.O13(); } ,0); HTMLEditor._stopEvent(Oj); return; }var i1b=X.Oq(ip); var l46=i1b.item(0); if (l46.tagName.toUpperCase()=="EMBED"){l46.src=""; l46.parentNode.removeChild(l46); while (i1b.length>0)i1b.remove(0); try {i1b.collapse( false); }catch (t){}HTMLEditor._stopEvent(Oj); X.o10(); setTimeout( function (){X.I19( false); X.O13(); } ,0); return; }}var I35=X.l1.body.getElementsByTagName("EMBED").length; if (I35>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); var i46=Oj.keyCode; setTimeout( function (){X.A.removeChild(popup); var I46=X.l1.body.getElementsByTagName("EMBED"); if (I35!=I46.length){X.o10(); setTimeout( function (){X.I19( false); X.O13(); } ,0); }} ,0); }setTimeout( function (){X.O10(); } ,5); break; }break; case 015:if ((!HTMLEditor.is_ie && Oj.type=="keypress") || (HTMLEditor.is_ie && Oj.type=="keydown"))this.o10(); if (HTMLEditor.is_ie && Oj.type=="keydown"){var ip=X.Ip(); if (ip.type.toLowerCase()=="control")break; var i1b=X.Oq(ip); if (!Oj.shiftKey){var o47=i1b.parentElement(); if (o47.tagName.toUpperCase()=="TEXTAREA")break; while (o47 && o47.tagName && o47.tagName.toUpperCase()!="BODY" && HTMLEditor.O1e(o47.tagName)){o47=o47.parentNode; }if (o47 && o47.tagName && (o47.tagName.toUpperCase()=="P" || o47.tagName.toUpperCase()=="LI")){if (o47.tagName.toUpperCase()=="LI"){function test(){i1b=X.Oq(X.Ip()); var parent=i1b.parentElement(); while (parent && parent.tagName && parent.tagName.toUpperCase()!="BODY" && HTMLEditor.O1e(parent.tagName)){parent=parent.parentNode; }if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){var i44=X.l1.createElement("span"); var O16=X.l1.createTextNode(" "); var I3h=parent; while (I3h.firstChild!=null && I3h.firstChild.nodeType==1)I3h=I3h.firstChild; if (I3h.nodeType==1){I3h.appendChild(O16); I3h.appendChild(i44); while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); }else {parent.parentNode.insertBefore(O16,parent); parent.parentNode.insertBefore(i44,parent); }parent.parentNode.removeChild(parent); i1b.moveToElementText(i44); i1b.select(); i44.parentNode.removeChild(i44); X.O13(); }}setTimeout(test,024); }break; }try {var l3t=HTMLEditor.il+"_middle_add"; var i3t=null; var I3t="<span id="+l3t+"></span>"; function O47(){var ip=X.Ip(); var oq=X.Oq(ip); if (i3t!=null){i3t.innerHTML="&nbsp;"; oq.moveToElementText(i3t); oq.select(); i3t.parentNode.insertBefore(i3t.firstChild,i3t); i3t.parentNode.removeChild(i3t); X.O13(); }}i1b.pasteHTML(I3t); var l47= false; i3t=X.l1.getElementById(l3t); if (i3t!=null){var nextSibling=i3t.nextSibling; var i47=i3t.parentNode; while (nextSibling==null && i47!=null && HTMLEditor.O1e(i47.tagName)){nextSibling=i47.nextSibling; i47=i47.parentNode; }if (nextSibling!=null && !HTMLEditor.o38(nextSibling) && nextSibling.tagName!=null && typeof nextSibling.tagName!="undefined"){var Ik=nextSibling.tagName.toUpperCase(); if (Ik!="BR" && Ik!="UL" && Ik!="OL" && Ik!="P"){l47= true; }}i3t.parentNode.removeChild(i3t); }i1b.pasteHTML("<br/>"+(l47?I3t: "")); if (l47)i3t=X.l1.getElementById(l3t); i1b.select(); if (l47){setTimeout(O47,0); HTMLEditor._stopEvent(Oj); return false; }}catch (w){}}else {break; }HTMLEditor._stopEvent(Oj); }else {if (!Oj.shiftKey && (HTMLEditor.is_Safari || HTMLEditor.l10)){var o47=HTMLEditor.getSelParent(this ); if (o47.nodeType==3){o47=o47.parentNode; }while (o47 && o47.tagName && o47.tagName.toUpperCase()!="BODY" && HTMLEditor.O1e(o47.tagName)){o47=o47.parentNode; }if (o47 && o47.tagName && (o47.tagName.toUpperCase()=="P" || o47.tagName.toUpperCase()=="LI")){break; } this.I10("<br/>"); HTMLEditor._stopEvent(Oj); X.O13(); }else if (HTMLEditor.is_Safari){ this.I10("<br/>"); HTMLEditor._stopEvent(Oj); X.O13(); }}break; }}else X.O42= false; if (HTMLEditor.is_ie && Oj.type=="keypress" && !Oj.ctrlKey){var i40=Oj.keyCode; var I47=X.Ip(); var o48=X.Oq(I47); if (o48.text.length>0){var O48=String.fromCharCode(i40); var l48=HTMLEditor.i48(Oj); var I48=(Oj.shiftKey && !l48) || l48; if (!I48)O48=O48.toLowerCase(); var o49=HTMLEditor.il+"StyleForTyping"; var O49=X.l1.getElementById(o49); if (O49!=null){O48="<span id='"+o49+"'></span>"+O48+"<span id='"+o49+o49+"'></span>"; O49.parentNode.removeChild(O49); }o48.pasteHTML(O48); if (O49!=null){X.l49(o49); O49=X.l1.getElementById(o49+o49); O49.parentNode.removeChild(O49); }HTMLEditor._stopEvent(Oj); X.O13(); return false; }}if (Oj.type=="mouseup" || Oj.type=="mousedown" || Oj.type=="keydown"){var i49= true; if (Oj.type=="keydown" && !Oj.ctrlKey){var i40=Oj.keyCode; if ((i40>=060 && i40<=0132) || (i40==040) || (i40==0015) || (i40>=0272 && i40<=0336) || (i40>=0140 && i40<=0157)){if (X.M!=null){X.o3v=[]; for (var I49=0; I49<X.M.length; I49++){X.o3v.push(X.M[I49]); }var o49=HTMLEditor.il+"StyleForTyping"; var o4a= true; if (!HTMLEditor.is_ie)X.I10("<span id='"+o49+"'></span>"); else {X.I10("<span id='"+o49+"'>&nbsp;</span>"); var O49=X.l1.getElementById(o49); if (O49 && O49.nextSibling && O49.nextSibling.nodeType==3){o4a= false; var I47=X.Ip(); var o48=X.Oq(I47); o48.moveToElementText(X.l1.getElementById(o49)); o48.select(); }else if (O49)O49.removeChild(O49.firstChild); }if (o4a)setTimeout( function (){X.l49(o49); X.O13(); } ,0); }}}if (!HTMLEditor.is_ie && (Oj.type=="mousedown" || (Oj.type=="keydown" && !Oj.ctrlKey))){X.I1b= false; X.l1c= false; X.i1c= false; X.I1c= false; X.o1d= false; X.O1d= false; }if (i49 || !HTMLEditor.is_ie){if (!X.O4a){if (X.l4a){clearTimeout(X.l4a); X.l4a=null; }X.i4a=3; function I4a(){try {if (HTMLEditor.is_ie){try {var oz=X.l1.selection; }catch (t){return false; }}if (HTMLEditor.is_ie)if (X.Ip().type=="None" && X.l1.queryCommandValue("backcolor")==0 && X.l1.queryCommandValue("forecolor")==0){X.i4a--; if (X.i4a>0){X.l4a=setTimeout(I4a,0144); return; }}X.O4a= true; X.updateToolbar(); X.O4a= false; X.l4a=null; if (!HTMLEditor.is_ie){X.focusEditor(); }}catch (t){}}X.l4a=setTimeout(I4a,0454); }}}if (!((!HTMLEditor.is_ie && (Oj.type=="keydown" || Oj.type=="keyup")) || (HTMLEditor.is_ie && (Oj.type=="keydown" || Oj.type=="keyup") && (Oj.keyCode==020 || Oj.keyCode==024))))X.M=null; if (HTMLEditor.is_Safari)setTimeout( function (){X.Oq(X.Ip()); } ,0); if (!HTMLEditor.is_ie)setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); if (oq.startContainer.nodeType!=3 && oq.startContainer==oq.endContainer)if (oq.startOffset==oq.endOffset)if (oq.startContainer.childNodes.item(oq.startOffset))if (oq.startContainer.childNodes.item(oq.startOffset).nodeType==3){var I15=oq.startContainer.childNodes.item(oq.startOffset); ip.collapseToEnd(); X.l16(ip); ip=X.Ip(); oq=X.Oq(ip); if (HTMLEditor.is_Safari){X.I12.type="Caret"; X.I12.focusNode=I15; X.I12.focusOffset=0; }else {oq.setStart(I15,0); oq.setEnd(I15,0); X.i16(ip,oq); }}} ,0144); if (!HTMLEditor.is_ie){var ip=X.Ip(); var oq=X.Oq(ip); X.o4b=oq.startContainer; X.O4b=oq.startOffset; }setTimeout( function (){try {X.i1a(); }catch (t){}} ,0144); if (Oj.type=="keydown"){if (X.l4b==null || typeof X.l4b=="undefined" || !X.l4b){X.l4b= true; setTimeout( function (){X.O13(); X.l4b= false; } ,012); }}return true; }catch (w){HTMLEditor._stopEvent(Oj); return false; }} ; HTMLEditor.prototype.l49= function (o49){var X=this ; var ik=X.l1.getElementById(o49); if (ik!=null){if (ik.nextSibling && ik.nextSibling.nodeType==3){var text=ik.nextSibling; ik.parentNode.removeChild(ik); var i4b=(""+text.data+"").indexOf(" "); if (i4b>0)text.splitText(i4b); else if (i4b==0)text.splitText(1); if (X.o3v!=null)for (var I49=0; I49<X.o3v.length; I49++)X.O3s(X.o3v[I49],[text], false); X.o3v=null; var ip=X.Ip(); if (!HTMLEditor.is_ie){var oq=X.l1.createRange(); oq.setStart(text,text.length); oq.setEnd(text,text.length); X.l16(ip); X.i16(ip,oq); }else {var I3g=X.Oq(ip); var i44=X.l1.createElement("span"); if (text.nextSibling)text.parentNode.insertBefore(i44,text.nextSibling); else text.parentNode.appendChild(i44); try {I3g.moveToElementText(i44); I3g.select(); }catch (t){}i44.parentNode.removeChild(i44); }}else ik.parentNode.removeChild(ik); }};HTMLEditor.prototype.O1a= function (){if (!this.iq())return false; var ip=this.Ip(); var oq=this.Oq(ip); var l1k; if (HTMLEditor.is_ie){l1k=oq.item(0); }else {l1k=oq.startContainer.childNodes.item(oq.startOffset); }if (l1k.tagName && l1k.tagName.toUpperCase()=="IMG" && l1k.getAttribute(HTMLEditor.is) && l1k.getAttribute(HTMLEditor.is).length>0){var I4b=this.Is(l1k); if (I4b!=null){if (HTMLEditor.is_ie){oq=this.l1.body.createControlRange(); oq.add(I4b); oq.select(); }else {try {var index=HTMLEditor.o16(I4b); ip.collapseToEnd(); this.l16(ip); oq=this.Oq(ip); oq.setStart(I4b.parentNode,index); oq.setEnd(I4b.parentNode,index+1); this.i16(ip,oq); }catch (t){return true; }}return false; }return true; }return false; };HTMLEditor.prototype.i1a= function (){if (HTMLEditor.is_ie){try {var oz=this.l1.selection; }catch (t){return false; }}var X=this ; var l44=null; var ik=HTMLEditor.getSelParent(X); while (ik && (ik.nodeType==3 || (ik.tagName && ik.tagName.toUpperCase()!="BODY"))){if (ik.nodeType==3 || !ik.tagName){ik=ik.parentNode; continue; }if (ik.tagName.toUpperCase()=="TABLE" && ik.getAttribute(HTMLEditor.ls) && ik.getAttribute(HTMLEditor.ls)=="yes"){l44=ik.rows.item(0).cells.item(0).firstChild; if (HTMLEditor.is_ie && l44.tagName.toUpperCase()=="P")l44=l44.firstChild; break; }ik=ik.parentNode; }if (l44!=null){var ip=X.Ip(); var oq=X.Oq(ip); if (HTMLEditor.is_ie){oq=X.l1.body.createControlRange(); oq.add(l44); oq.select(); }else {try {ip.collapseToEnd(); X.l16(ip); oq=X.Oq(ip); oq.setStart(l44.parentNode,0); oq.setEnd(l44.parentNode,1); X.i16(ip,oq); }catch (t){}}}};HTMLEditor.prototype.Ip= function (){if (HTMLEditor.is_ie){var ip=this.l1.selection; return ip; }else { this.focusEditor(); var ip; var oq; var ik; ip=this._iframe.contentWindow.getSelection(); oq=this.Oq(ip); ik=oq.startContainer; try {while (ik && ik.nodeType){ik=ik.parentNode; }}catch (t){ this.l16(ip); oq=this.Oq(ip); oq.setStart(this.o4b,this.O4b); oq.setEnd(this.o4b,this.O4b); this.i16(ip,oq); ip=this._iframe.contentWindow.getSelection(); }return ip; }} ; HTMLEditor.prototype.Oq= function (ip){if (HTMLEditor.is_ie){return ip.createRange(); }else { this.focusEditor(); if (typeof ip=="undefined"){return this.l1.createRange(); }else {try {var i1b=ip.getRangeAt(0); if (i1b==null && HTMLEditor.ij)o4c.O4c=l4c.l4c; return i1b; }catch (t){var X=this ; if (!(HTMLEditor.is_Safari && !HTMLEditor.ij) && ip.rangeCount==0){return this.l1.createRange(); }if (HTMLEditor.is_Safari){try {if (ip.type=="None"){if (X.I12){if (X.I12.type=="Caret"){ip.setPosition(X.I12.focusNode,X.I12.focusOffset); }else {ip.setBaseAndExtent(X.I12.anchorNode,X.I12.anchorOffset,X.I12.focusNode,X.I12.focusOffset); }}else {ip.setPosition(this.l1.body.firstChild,0); }}if (ip.type=="Caret"){var i1b=X.l1.createRange(); if (!X.I12)X.I12=new Object(); X.I12.type="Caret"; i1b.setStart(ip.focusNode,ip.focusOffset); i1b.setEnd(ip.focusNode,ip.focusOffset); X.I12.focusNode=ip.focusNode; X.I12.focusOffset=ip.focusOffset; return i1b; }if (!X.I12)X.I12=new Object(); X.I12.type="Range"; var i4c=ip.anchorNode; var I4c=ip.anchorOffset; if (i4c.nodeType==1 && i4c.childNodes.length==0){i4c=i4c.parentNode; I4c=HTMLEditor.O39(i4c,ip.anchorNode); }var o4d=ip.focusNode; var O4d=ip.focusOffset; if (o4d.nodeType==1 && o4d.childNodes.length==0){o4d=o4d.parentNode; O4d=HTMLEditor.O39(o4d,ip.focusNode); }var l4d=X.l1.createRange(); l4d.setStart(i4c,I4c); l4d.collapse( true); var i4d=X.l1.createRange(); i4d.setStart(o4d,O4d); i4d.collapse( true); var I4d=l4d.compareBoundaryPoints(l4d.START_TO_END,i4d)<0; var o4e=I4d?i4c:o4d; var O4e=I4d?I4c:O4d; var l4e=I4d?o4d:i4c; var i4e=I4d?O4d:I4c; var i1b=X.l1.createRange(); i1b.setStart(o4e,O4e); i1b.setEnd(l4e,i4e); X.I12.focusNode=l4e; X.I12.focusOffset=i4e; X.I12.anchorNode=o4e; X.I12.anchorOffset=O4e; return i1b; }catch (t){X.I12=null; ip.setPosition(this.l1.body.firstChild,0); }}}}}} ; HTMLEditor.prototype.I4e=null; HTMLEditor.prototype.getFormat= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var ip=this.Ip(); var oq=this.Oq(ip); var O1y=HTMLEditor.il+"_right"; var I1y; if (HTMLEditor.is_ie){I1y=oq.duplicate(); I1y.setEndPoint("StartToEnd",oq); }else {I1y=oq.cloneRange(); I1y.setStart(I1y.endContainer,I1y.endOffset); }if (this.I10("<span id='"+O1y+"'/>",I1y)){var O1z=this.l1.getElementById(O1y); var par=O1z.parentNode; this.I4e=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1e(par.tagName)){if (par.tagName.toUpperCase()!="A"){var ok=par.cloneNode( false); if (this.I4e==null){ this.I4e=ok; }else {ok.appendChild(this.I4e); this.I4e=ok; }}par=par.parentNode; }O1z.parentNode.removeChild(O1z); if (this.I4e){var l3g=this.l1.createElement("span"); l3g.appendChild(this.I4e); this.I4e=l3g.innerHTML; }}};HTMLEditor.prototype.applyFormat= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (this.I4e==null){setTimeout( function (){alert(X.Ie("copy-format","Copy Format.")); } ,0); return; }var l3g=this.l1.createElement("span"); l3g.innerHTML=this.I4e; var l1e=this.i1e(); if (l1e.length==0){setTimeout( function (){alert(X.Ie("select-text","Select some text.")); } ,0); delete l3g; return; } this.o10(); for (var i=0; i<l1e.length; i++){var par=l1e[i].parentNode; var o4f=l3g.firstChild.cloneNode( true); var i21=o4f; while (i21.firstChild)i21=i21.firstChild; par.insertBefore(o4f,l1e[i]); i21.appendChild(l1e[i]); } this.I1e(l1e); delete l3g; this.I0.setTimeout( function (){X.O13(); X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.i1e= function (O4f){try {var l4f=[]; if (this.iq())return l4f; var ip=this.Ip(); var oq=this.Oq(ip); var O1y=HTMLEditor.il+"_right"; var l1y=HTMLEditor.il+"_left"; var i1y=null; var I1y=null; var i4f; if (typeof O4f=="undefined"){if (HTMLEditor.is_ie){i1y=oq.duplicate(); I1y=oq.duplicate(); i1y.setEndPoint("EndToStart",oq); I1y.setEndPoint("StartToEnd",oq); }else {i1y=oq.cloneRange(); I1y=oq.cloneRange(); i1y.setEnd(i1y.startContainer,i1y.startOffset); I1y.setStart(I1y.endContainer,I1y.endOffset); i4f=i1y.endOffset; }if (!this.I10("<span id='"+O1y+"'/>",I1y))return l4f; {if (HTMLEditor.l10){i1y.setEnd(i1y.startContainer,i4f); i1y.setStart(i1y.startContainer,i4f); }if (!this.I10("<span id='"+l1y+"'/>",i1y)){var l1z=this.l1.getElementById(O1y); if (l1z!=null){ok=l1z.parentNode; ok.removeChild(l1z); }var I4f=this.l1.getElementById(o4g); if (I4f!=null){ok=I4f.parentNode; ok.removeChild(I4f); }return l4f; }}}else {var span; span=this.l1.createElement("SPAN"); span.id=O1y; this.l1.body.appendChild(span); span=this.l1.createElement("SPAN"); span.id=l1y; this.l1.body.insertBefore(span,this.l1.body.firstChild); }var o1z=this.l1.getElementById(l1y); var O1z=this.l1.getElementById(O1y); if (o1z==null || O1z==null){var ok; if (o1z!=null){ok=o1z.parentNode; ok.removeChild(o1z); }if (O1z!=null){ok=O1z.parentNode; ok.removeChild(O1z); }return []; }while (o1z.firstChild)o1z.removeChild(o1z.firstChild); while (O1z.firstChild)O1z.removeChild(O1z.firstChild); while (o1z.previousSibling && o1z.previousSibling.nodeType==3 && HTMLEditor.O12(""+o1z.previousSibling.data+"").length==0)o1z.parentNode.removeChild(o1z.previousSibling); while (o1z.nextSibling && o1z.nextSibling.nodeType==3 && HTMLEditor.O12(""+o1z.nextSibling.data+"").length==0)o1z.parentNode.removeChild(o1z.nextSibling); while (O1z.previousSibling && O1z.previousSibling.nodeType==3 && HTMLEditor.O12(""+O1z.previousSibling.data+"").length==0)O1z.parentNode.removeChild(O1z.previousSibling); while (O1z.nextSibling && O1z.nextSibling.nodeType==3 && HTMLEditor.O12(""+O1z.nextSibling.data+"").length==0)O1z.parentNode.removeChild(O1z.nextSibling); var i3x= false; var X=this ; function O4g(l4g,om){while (l4g){if (l4g.id && l4g.id==O1y){i3x= true; return; }if (l4g.nodeType==3){while (l4g.nextSibling && (l4g.nextSibling.nodeType==3 || (!HTMLEditor.is_ie && X.i3s!=null && X.i3s[0]==l4g.nextSibling))){if (l4g.nextSibling.nodeType==3)l4g.data=""+l4g.data+""+l4g.nextSibling.data+""; else {X.i3s[0]=l4g; X.i3s[1]=(""+l4g.data+"").length; }l4g.parentNode.removeChild(l4g.nextSibling); }if (HTMLEditor.O12(""+l4g.data+"").length>0)l4f.push(l4g); }else {if (!(l4g.tagName && (l4g.tagName.toUpperCase()=="MAP" || l4g.tagName.toUpperCase()=="AREA")))if (!(l4g.tagName && (l4g.tagName.toUpperCase()=="SCRIPT" || l4g.tagName.toUpperCase()=="NOSCRIPT")))if (!(l4g.style && (Oy(l4g,"display")=="none" || Oy(l4g,"visibility")=="hidden")))O4g(l4g.firstChild, false); }if (i3x)return; var I32=l4g.parentNode; if (om)while (l4g.nextSibling==null){l4g=l4g.parentNode; }l4g=l4g.nextSibling; }}O4g(o1z, true); var ok; ok=o1z.parentNode; ok.removeChild(o1z); ok=O1z.parentNode; ok.removeChild(O1z); if (typeof O4f=="undefined"){if (HTMLEditor.is_ie){ip.empty(); I1y.select(); }else {if (l4f.length>0){ this.l16(ip); var Oz=this.Oq(); Oz.setEnd(l4f[l4f.length-1],l4f[l4f.length-1].length); Oz.setStart(l4f[l4f.length-1],l4f[l4f.length-1].length); this.i16(ip,Oz); }}}return l4f; }catch (t){alert("_getTextNodeCollection: "+t.message); return []; }} ; HTMLEditor.prototype.lq= function (oq){if (HTMLEditor.is_ie)return oq.parentElement(); else {return oq.startContainer; }};HTMLEditor.prototype.getIconsUrls= function (){var X=this ; var oe=[]; for (var i=0; i<X._IconArray.length; i++){var folder=X._IconArray[i][0]; var og=X._IconArray[i][1]; for (var ig=0; ig<og.length; ig++)oe.push(X.l7+"/"+folder+"/"+og[ig]); }return oe; };HTMLEditor.prototype.ExecCommand= function (i4g,param){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.Oq(this.Ip()); this.o10(); this.i1d(i4g, false ,param); return true; };HTMLEditor.prototype.QueryCommand= function (i4g){if (this.mode()!="html")return false; switch (i4g.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.i1x(i4g); case "formatblock":var l15=this.I4g(); if (l15==null)return ""; var ik=l15.start; while (ik && ik.tagName && ik.tagName.toUpperCase()!="BODY" && ik.tagName.toUpperCase()!="TD"){if (/^h\d$/i.test(ik.tagName))return ik.tagName; ik=ik.parentNode; }return ""; }return this.l1.queryCommandValue(i4g); };HTMLEditor.prototype.i1d= function (i4g,UI,param){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }var ip; var oq; if (HTMLEditor.is_ie && !this.iq()){ip=this.Ip(); oq=this.Oq(ip); var o47=oq.parentElement(); if (o47.tagName.toUpperCase()=="TEXTAREA")return; }try {if (i4g.toLowerCase()!="createlink")this.o10(); if (HTMLEditor.is_Safari){ip=this.Ip(); }switch (i4g.toLowerCase()){case "createlink":if (HTMLEditor.is_ie || !UI){ this.l1.execCommand(i4g,UI,param); }else {if ((param=prompt("Enter URL"))){ this.l1.execCommand(i4g, false ,param); }}break; case "backcolor":case "forecolor":case "fontname":case "fontsize": this.O3r(i4g.toLowerCase(),param); break; case "indent": this.o3q( true); break; case "outdent": this.o3q( false); break; case "justifyleft": this.O3j("left"); break; case "justifyfull": this.O3j("justify"); break; case "justifycenter": this.O3j("center"); break; case "justifyright": this.O3j("right"); break; case "paragraph": this.O3j("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.O3j("remain", false ,param); break; }} this.l1.execCommand(i4g,UI,param); break; case "insertunorderedlist": this.l3n("UL"); break; case "insertorderedlist": this.l3n("OL"); break; case "bold":case "italic":case "underline":case "strikethrough":case "superscript":case "subscript": this.O3r(i4g.toLowerCase()); break; default: this.l1.execCommand(i4g,UI,param); break; } this.O13(); if (!HTMLEditor.is_ie){ip=this.Ip(); oq=this.Oq(ip); this.l16(ip); if (HTMLEditor.l10)setTimeout( function (){X.f= true; X.focusEditor(); X.i16(ip,oq); } ,0); this.i16(ip,oq); this.focusEditor(); }var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); }catch (t){alert("_execCommand: "+t.message); }} ; HTMLEditor.prototype.l16= function (ip){if (!HTMLEditor.is_Safari)ip.removeAllRanges(); };HTMLEditor.prototype.i16= function (ip,oq,om){if (!HTMLEditor.is_Safari)ip.addRange(oq); else {if (oq.startContainer==oq.endContainer && oq.startOffset==oq.endOffset){ip.setPosition(oq.startContainer,oq.startOffset); }else ip.setBaseAndExtent(oq.startContainer,oq.startOffset,oq.endContainer,oq.endOffset); }if (typeof om=="undefined")if (HTMLEditor.l10 && this.f)this._iframe.blur(); this.focusEditor(); };HTMLEditor.prototype.o4h= function (value){if (this.iq())return false; var oq=this.Oq(this.Ip()); var O4h=oq.duplicate(); var l4h=oq.duplicate(); O4h.setEndPoint("StartToStart",oq); O4h.setEndPoint("EndToStart",oq); l4h.setEndPoint("StartToEnd",oq); l4h.setEndPoint("EndToEnd",oq); var i4h=O4h.parentElement(); var I4h=l4h.parentElement(); if (i4h.parentNode!=I4h.parentNode || HTMLEditor.o4i(i4h)){function O4i(ik){var og=[]; while (ik!=null){og.push(ik); ik=ik.parentNode; }og.reverse(); return og; } ; var l4i=O4i(i4h.parentNode); var i4i=O4i(I4h.parentNode); var i=0; while (l4i[i]==i4i[i])i++; i4h=l4i[i]; I4h=i4i[i]; if (HTMLEditor.o4i(i4h)){while (HTMLEditor.o4i(i4h)){i--; i4h=l4i[i]; }I4h=i4h; }}var Oc=i4h; if (!Oc)return false; if (!this.rtlState()){ do {var I4i=Oc.style.marginLeft?parseInt(Oc.style.marginLeft): 0; I4i=I4i+value; if (I4i<=0)Oc.style.marginLeft=""; else Oc.style.marginLeft=I4i+"px"; if (Oc==I4h)break; Oc=Oc.nextSibling; }while (Oc);}else { do {var I4i=Oc.style.marginRight?parseInt(Oc.style.marginRight): 0; I4i=I4i+value; if (I4i<=0)Oc.style.marginRight=""; else Oc.style.marginRight=I4i+"px"; if (Oc==I4h)break; Oc=Oc.nextSibling; }while (Oc);}return true; };HTMLEditor.o4i= function (ik){if (!ik)return false; if (!ik.tagName)return false; var name=ik.tagName.toUpperCase(); switch (name){case "TD":case "TR":case "TBODY":case "LI":return true; default:return false; }};HTMLEditor.prototype.O1c= function (i4g){var l15=this.I4g(); if (l15==null)return false; try {var I3r= {name: "none",value: "none" } ; switch (i4g.toLowerCase()){case "bold":I3r= {name: "font-weight",value: "bold" } ; break; case "italic":I3r= {name: "font-style",value: "italic" } ; break; case "underline":I3r= {name: "text-decoration",value: "underline" } ; break; case "strikethrough":I3r= {name: "text-decoration",value: "line-through" } ; break; case "superscript":I3r= {name: "vertical-align",value: "super" } ; break; case "subscript":I3r= {name: "vertical-align",value: "sub" } ; break; }var O1t=l15.start; var o4j=l15.end; var O4j=HTMLEditor.Oy(O1t,I3r.name).toString().toLowerCase(); var l4j=HTMLEditor.Oy(o4j,I3r.name).toString().toLowerCase(); if (I3r.name=="font-weight" && O4j=="700")O4j="bold"; if (I3r.name=="font-weight" && l4j=="700")l4j="bold"; if (/MSIE (5|6)/.test(navigator.userAgent) && i4g.toLowerCase()=="strikethrough" && (O4j=="underline" || l4j=="underline")){while (O1t && HTMLEditor.O1e(O1t.tagName)){if (O1t.style.textDecoration.indexOf("line-through")>=0){O4j=O1t.style.textDecoration; break; }O1t=O1t.parentNode; }while (o4j && HTMLEditor.O1e(o4j.tagName)){if (o4j.style.textDecoration.indexOf("line-through")>=0){l4j=o4j.style.textDecoration; break; }o4j=o4j.parentNode; }}var oe=(O4j.indexOf(I3r.value)>=0) && (l4j.indexOf(I3r.value)>=0); if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var i4j=this.M[i]; if (i4j.name==I3r.name && i4j.value==I3r.value){oe=!oe; break; }}}return oe; }catch (w){return false; }} ; HTMLEditor.I1g= function (fontSize,X,l1f){var oe=fontSize.replace(/^(\d+)\.(\d+)px/i,"$1px"); if (!HTMLEditor.is_ie){if (oe && oe.length>0){var Oe=oe.toLowerCase().split(",")[0]; if (typeof l1f!="undefined"){var ik=document.getElementById(l1f); if (ik!=null){ik=ik.childNodes.item(1); var i; for (i=0; i<ik.options.length; i++){var O15=HTMLEditor.o1g(ik.options.item(i).value.toLowerCase().split(",")[0]); if (O15==Oe)break; }if (i==ik.options.length){var span=X.l1.createElement("SPAN"); X.l1.body.appendChild(span); for (i=1; i<0144; i++){span.style.fontSize=i+"pt"; if (HTMLEditor.Oy(span,"font-size").replace(/^(\d+)\.(\d+)px/i,"$1px")==Oe){Oe=i+"pt"; break; }}span.parentNode.removeChild(span); }}}oe=Oe; }}return oe; };HTMLEditor.prototype.o1e= function (i4g,l1f){var l15=this.I4g(); if (l15==null)return ""; try {if (i4g.toLowerCase()=="backcolor"){var ik=l15.start; while (ik){var I4j=HTMLEditor.Oy(ik,"background-color").toLowerCase(); if (I4j.length>0 && I4j!="transparent")return I4j; ik=ik.parentNode; }return "#FFFFFF"; }var I3r="none"; switch (i4g.toLowerCase()){case "forecolor":I3r="color"; break; case "fontname":I3r="font-family"; break; case "fontsize":I3r="font-size"; break; }var oe; if ((I3r=="font-size" || I3r=="font-family") && this._FontNotSet){oe=""; var par=l15.start; while (par!=null){if (I3r=="font-size"){if (par.style && par.style.fontSize && par.style.fontSize.length>0){oe=par.style.fontSize; break; }}else {if (par.style && par.style.fontFamily && par.style.fontFamily.length>0){oe=par.style.fontFamily; break; }}if (par.className && par.className.length>0)break; if (par.tagName.toUpperCase()=="BODY")break; if (par.tagName.toUpperCase()=="TD")break; par=par.parentNode; }}else {oe=HTMLEditor.Oy(l15.start,I3r).toLowerCase(); if (I3r=="font-size"){if (!HTMLEditor.is_ie){oe=HTMLEditor.I1g(oe,this,l1f); var par=l15.start; while (par!=null){if (par.style && par.style.fontSize && par.style.fontSize.length>0){oe=par.style.fontSize; break; }if (par.className && par.className.length>0)break; if (par.tagName.toUpperCase()=="BODY")break; if (par.tagName.toUpperCase()=="TD")break; par=par.parentNode; }}}}if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var i4j=this.M[i]; if (i4j.name==I3r){oe=i4j.value; break; }}}return oe; }catch (w){return ""; }} ; HTMLEditor.prototype.I4g= function (){if (this.iq())return null; try {var ip=this.Ip(); var oq=this.Oq(ip); var O1t=null; var o4j=null; if (!HTMLEditor.is_ie){function o4k(par,i20){var oe=null; while (oe==null){if (par.nodeType==3){if (i20 && oq.startContainer!=oq.endContainer && oq.startOffset==par.length && par.nextSibling){oe=o4k(par.nextSibling,i20); }else if (!i20 && oq.startContainer!=oq.endContainer && oq.endOffset==0 && par.previousSibling){oe=o4k(par.previousSibling,i20); }else oe=par; }else {if ((i20?par.firstChild:par.lastChild)==null)oe=null; else oe=o4k(i20?par.firstChild:par.lastChild,i20); }if (oe==null){par=i20?par.nextSibling:par.previousSibling; if (par==null)return null; }else return oe; }}O1t=o4k(oq.startContainer, true); if (O1t!=null && O1t.parentNode!=null)O1t=O1t.parentNode; if (O1t==null)O1t=oq.startContainer; o4j=o4k(oq.endContainer, false); if (o4j!=null && o4j.parentNode!=null)o4j=o4j.parentNode; if (o4j==null)o4j=oq.endContainer; }else {if (oq.text.length==0)O1t=o4j=this.lq(oq); else {var O1y=HTMLEditor.il+"_right_marker"; var l1y=HTMLEditor.il+"_left_marker"; var i1y=oq.duplicate(); var I1y=oq.duplicate(); i1y.setEndPoint("EndToStart",oq); I1y.setEndPoint("StartToEnd",oq); I1y.pasteHTML("<span id='"+O1y+"'/>"); i1y.pasteHTML("<span id='"+l1y+"'/>"); var o1z=this.l1.getElementById(l1y); var O1z=this.l1.getElementById(O1y); O1t=o1z.parentNode; o4j=O1z.parentNode; o1z.parentNode.removeChild(o1z); O1z.parentNode.removeChild(O1z); }}return {start:O1t,end:o4j } ; }catch (w){return null; }};HTMLEditor.prototype.O4k= function (l4k,oq){if (!HTMLEditor.is_ie){var ip=this.Ip(); if (typeof oq=="undefined"){try {oq=this.Oq(ip); }catch (Oj){alert(this.Ie("click-to-editor","Click to editing panel.")); this.l16(ip); return false; }}var I2a=oq.startContainer; var i4k=oq.startOffset; if (I2a.ownerDocument.id!="EditorDocument"){alert(this.Ie("click-to-editor","Click to editing panel.")); return false; }if ((oq.startContainer.nodeType==1 && oq.startContainer.tagName.toUpperCase()=="TR") || (oq.endContainer.nodeType==1 && oq.endContainer.tagName.toUpperCase()=="TR")){var X=this ; setTimeout( function (){alert(X.Ie("paste-fail","Not correct selection for inserting.")); } ,0); return false; } this.l16(ip); oq.deleteContents(); try {oq=this.Oq(); }catch (Oj){alert(this.Ie("click-to-editor","Click to editing panel.")); this.l16(ip); return false; }switch (I2a.nodeType){case 3:I2a=I2a.splitText(i4k); while (l4k.firstChild)I2a.parentNode.insertBefore(l4k.firstChild,I2a); oq.setStart(I2a,0); oq.setEnd(I2a,0); break; case 1:case 013:try { this.l16(ip); if (I2a.childNodes.length>=i4k+1){I2a=I2a.childNodes.item(i4k); while (l4k.firstChild)I2a.parentNode.insertBefore(l4k.firstChild,I2a); var O16=this.l1.createTextNode(""); I2a.parentNode.insertBefore(O16,I2a); I2a=O16; }else {var O16=this.l1.createTextNode(""); if (HTMLEditor.canHaveChildren(I2a)){while (l4k.firstChild)I2a.appendChild(l4k.firstChild); I2a.appendChild(O16); }else {while (l4k.firstChild)I2a.parentNode.insertBefore(l4k.firstChild,I2a); I2a.parentNode.insertBefore(O16,I2a); }I2a=O16; }if (I2a.nodeType==1){var par=I2a.parentNode; var I15=par; var ig=0; for ( ; ig<par.childNodes.length; ig++)if (I2a==par.childNodes.item(ig))break; oq.setStart(par,ig); oq.setEnd(par,ig); }else {oq.setStart(I2a,0); oq.setEnd(I2a,0); }}catch (Oj){alert(this.Ie("click-to-editor","Click to editing panel.")); this.l16(ip); return false; }break; }if (HTMLEditor.l10)this.f= true; this.i16(ip,oq); return true; }else {return null; }} ; HTMLEditor.prototype.I10= function (html,oq){ this.focusEditor(); var ip=this.Ip(); if (typeof oq=="undefined"){oq=this.Oq(ip); }if (HTMLEditor.is_ie){function i2p(O25,o1x){return "\x3cspan class=\""+HTMLEditor.il+"_script\" style=\'display:none;visibility:hidden;\'>"+o1x.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function O2q(O25,o1x,O1x,l2q){return o1x.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var I4k="\x3cspan id=\""+HTMLEditor.il+"\">111\x3cspan>\x3c/span>"+html+"</span>"; var o11=HTMLEditor.O11(I4k); var l11=HTMLEditor.i11(I4k); if (!this.NoScript)I4k=I4k.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,i2p); else I4k=I4k.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); var X=this ; try {oq.pasteHTML(I4k); }catch (t){setTimeout( function (){alert(X.Ie("paste-fail","Not correct selection for inserting.")); } ,0144); return false; }var i2t=this.l1.getElementById(HTMLEditor.il); i2t.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(i2t, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.il+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),O2q)+"<span>qqq</span>"; i2t.removeChild(i2t.firstChild); i2t.removeChild(i2t.lastChild); HTMLEditor.I11(i2t,o11); HTMLEditor.o12(i2t,l11); if (i2t.firstChild)i2t.removeChild(i2t.firstChild); if (i2t.firstChild)i2t.removeChild(i2t.firstChild); while (i2t.firstChild)i2t.parentNode.insertBefore(i2t.firstChild,i2t); i2t.parentNode.removeChild(i2t); delete i2t; return true; }else {var div=this.l1.createElement("div"); div.innerHTML=html; var I1p=div.getElementsByTagName("EMBED"); var i2v=[]; for (var i=0; i<I1p.length; i++)i2v.push(I1p[i]); for (var ig=0; ig<i2v.length; ig++){var embed=i2v[ig]; var img=document.createElement("IMG"); var O2u=embed.attributes; img.src=this.Q[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<O2u.length; ++i){var a=O2u.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); var value=a.value; if (name=="src")name="dummysrc"; else if (name=="bgcolor")name="dummybgcolor"; else if (name=="wmode")name="pseudomode"; img.setAttribute(name,value); }img.getAttribute("type");img.style.cssText="border: 1px dotted #000000; background-image: url('"+(img.getAttribute("type").toLowerCase()=="application/x-mplayer2"?this.Q[3]: this.Q[2])+"'); background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;"; embed.parentNode.insertBefore(img,embed); embed.parentNode.removeChild(embed); }var oe=this.O4k(div,oq); return oe; }} ; HTMLEditor.prototype.getDocument= function (){return this.l1; };HTMLEditor.prototype.getWindow= function (){if (HTMLEditor.is_Safari)return document.getElementById(this._hiddenContent+"_inner_iframe").contentWindow; else return this._iframe.contentWindow; };HTMLEditor.o4l=[]; HTMLEditor.O4l=null; HTMLEditor.l19=null; HTMLEditor.l4l= function (){for (var i=0; i<HTMLEditor.o4l.length; i++){HTMLEditor.o4l[i](); }HTMLEditor.o4l=[]; };HTMLEditor.i4l= function (t){function I4l(){setTimeout( function (){HTMLEditor.l4l(); } ,0); HTMLEditor.l19=null; if (HTMLEditor.O4l!=null){HTMLEditor.lc(document.getElementById(HTMLEditor.O4l),"mousedown",HTMLEditor.i4l); HTMLEditor.l17(HTMLEditor.O4l.substr(0,HTMLEditor.O4l.length-("__disabling").length)); }HTMLEditor.O4l=null; }if (HTMLEditor.l19){try {if (HTMLEditor.l19.name!="OboutEditorPreview"){I4l(); }else {setTimeout( function (){try {HTMLEditor.l19.focus(); }catch (t){}} ,0); if (typeof t!=undefined)HTMLEditor._stopEvent(t); return false; }}catch (t){I4l(); }}else I4l(); return true; };HTMLEditor.o4m= function (){if (!HTMLEditor.i4l())setTimeout(HTMLEditor.o4m,01750); else window.focus(); };HTMLEditor.prototype.O4m= function (l4m){var X=this ; if (HTMLEditor.l19)return; try {HTMLEditor.l19=window.open("","OboutEditorPreview","toolbar=0,status=1,scrollbars=1,resizable=1,width=600,height=400"); }catch (t){HTMLEditor.l19=null; return; }if (!HTMLEditor.l19)return; HTMLEditor.O4l=HTMLEditor.i13(X.mainDivId); if (HTMLEditor.O4l!=null)HTMLEditor.Ok(document.getElementById(HTMLEditor.O4l),"mousedown",HTMLEditor.i4l); function i4m(){try {if (!HTMLEditor.l19.document)setTimeout(i4m,0144); HTMLEditor.l19.focus(); }catch (t){HTMLEditor.l19.close(); HTMLEditor.l19=null; if (HTMLEditor.O4l!=null){HTMLEditor.lc(document.getElementById(HTMLEditor.O4l),"mousedown",HTMLEditor.i4l); HTMLEditor.l17(HTMLEditor.O4l.substr(0,HTMLEditor.O4l.length-("__disabling").length)); }HTMLEditor.O4l=null; X.O4m(l4m); }iw=HTMLEditor.l19.document; iw.open(); var html=new l25(); var i24=l4m; var I24= false; function o25(O25,o1x,O1x){i24=O1x; I24= true; }l4m.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,o25); l4m=i24; 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 I4m=new RegExp("<title>","gi"); if (X.D==null || !I4m.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 i25=0; i25<X._addCssFiles.length; i25++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[i25]+"\" 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(l4m); html.write("</body>"); html.write("</html>"); iw.write(html.toString()); iw.close(); setTimeout(HTMLEditor.o4m,0454); HTMLEditor.o4l.push( function (){X.focusEditor(); } ); }setTimeout(i4m,0); };HTMLEditor.prototype.preview= function (){var X=this ; if (HTMLEditor.l19)return; X.getContentWait( function (l4m){X.O4m(l4m); } ); };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 (o4n,O4n){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.Oq(this.Ip()); var html=""; var ip=this.Ip(); var oq=this.Oq(ip); if (HTMLEditor.is_ie && ip.type.toLowerCase()=="control"){ this.o10(); html=oq.item(0).outerHTML; return this.InsertHTML(o4n+html+O4n); }html=this.O1h(); if (html.length==0){return false; }var l1e=this.i1e(); if (l1e.length<1)return false; this.o10(); var i44=this.l1.createElement("span"); var I44=this.l1.createElement("span"); var l4n=l1e[0].parentNode; var i4n=l1e[l1e.length-1].parentNode; l4n.insertBefore(i44,l1e[0]); if (l1e[l1e.length-1].nextSibling)i4n.insertBefore(I44,l1e[l1e.length-1].nextSibling); else i4n.appendChild(I44); for (var i=0; i<l1e.length; i++){var par=l1e[i].parentNode; var ok=this.l1.createElement("SPAN"); try {function i2p(O25,o1x){return "\x3cspan class=\""+HTMLEditor.il+"_script\" style=\'display:none;visibility:hidden;\'>"+o1x.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function O2q(O25,o1x,O1x,l2q){return o1x.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var I4k=o4n+(""+l1e[i].data+"").replace(/^\s/,"&nbsp;")+O4n; var o11; if (HTMLEditor.is_ie){o11=HTMLEditor.O11(I4k); if (!this.NoScript)I4k=I4k.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,i2p); else I4k=I4k.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); }ok.innerHTML="!!!<span></span>"+I4k; ok.removeChild(ok.firstChild); ok.removeChild(ok.firstChild); if (HTMLEditor.is_ie){ok.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(ok, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.il+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),O2q)+"<span>qqq</span>"; ok.removeChild(ok.firstChild); ok.removeChild(ok.lastChild); HTMLEditor.I11(ok,o11); }while (ok.firstChild)par.insertBefore(ok.firstChild,l1e[i]); par.removeChild(l1e[i]); }catch (t){return false; }}if (!HTMLEditor.is_ie){l1e=[]; var i3x= false; function O4g(l4g,om){while (l4g){if (l4g==I44){i3x= true; return; }if (l4g.nodeType==3){while (l4g.nextSibling && l4g.nextSibling.nodeType==3){l4g.data=""+l4g.data+""+l4g.nextSibling.data+""; l4g.parentNode.removeChild(l4g.nextSibling); }if (HTMLEditor.O12(""+l4g.data+"").length>0)l1e.push(l4g); }else O4g(l4g.firstChild, false); if (i3x)return; var I32=l4g.parentNode; if (om)while (l4g.nextSibling==null){l4g=l4g.parentNode; }l4g=l4g.nextSibling; }}O4g(i44, true); oq=this.l1.createRange(); oq.setStart(l1e[0],0); oq.setEnd(l1e[l1e.length-1],(""+l1e[l1e.length-1].data+"").length); this.l16(ip); if (HTMLEditor.l10)this.f= true; this.i16(ip,oq); }else {ip=this.Ip(); var I3g=this.Oq(ip); var o3h=this.Oq(ip); try {I3g.moveToElementText(i44); o3h.moveToElementText(I44); I3g.setEndPoint("EndToEnd",o3h); I3g.select(); }catch (t){}}l4n.removeChild(i44); i4n.removeChild(I44); this.O13(); return true; } ; HTMLEditor.prototype.InsertHTML= function (html){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.Oq(this.Ip()); var I4n= false; var div=this.l1.createElement("div"); var o11; if (HTMLEditor.is_ie){o11=HTMLEditor.O11(html); }div.innerHTML=html; for (var i=0; i<div.childNodes.length; i++){var ik=div.childNodes.item(i); if (ik.nodeType==1 && !HTMLEditor.I2y(ik))I4n= true; } this.o10(); if (HTMLEditor.is_ie){var ip=this.Ip(); var oq=this.Oq(ip); if (ip.type.toLowerCase()=="control"){var l15=oq.item(0); var parent=l15.parentNode; oq.remove(0); parent.removeChild(l15); }}if (I4n){var I1s=this.o1t(); if (!I1s){ this.I19( false); return false; }var parent=I1s.parentNode; if (HTMLEditor.is_ie){HTMLEditor.I11(div,o11); }while (div.firstChild)parent.insertBefore(div.firstChild,I1s); parent.removeChild(I1s); this.O13(); return true; }else {var oe=this.I10(html); if (!oe){ this.I19( false); } this.O13(); return oe; }};HTMLEditor.prototype.O1h= function (){var ip=this.Ip(); var oq=this.Oq(ip); var o4o=null; if (HTMLEditor.is_ie){o4o=oq.htmlText; }else {if (HTMLEditor.is_Safari && (ip.type=="Caret" || ip.type=="None"))o4o=""; else {if (HTMLEditor.is_Safari){if (oq.cloneContents()==null)return ""; }o4o=HTMLEditor.getHTML(oq.cloneContents(), false); }}return o4o; } ; HTMLEditor.I21= function (l1k,iw,O4o,l4o,i4o){if (HTMLEditor.is_Safari)return; var I4o=0; var o4p=l1k.childNodes.length; if (typeof O4o!="undefined" && O4o!=null)I4o=O4o; if (typeof l4o!="undefined" && l4o!=null)o4p=l4o; for (var i=I4o; i<o4p; i++){var I31=l1k.childNodes.item(i);switch (I31.nodeType){case 1:if (I31.childNodes.length==0 && HTMLEditor.O1e(I31.tagName) && I31.tagName.toUpperCase()!="A" && !(I31.className.length>0 || (I31.getAttribute("class") && I31.getAttribute("class").length>0)) && !HTMLEditor.o36(I31)){l1k.removeChild(I31); i--; o4p--; continue; }if (I31.tagName.toUpperCase()=="SPAN"){while (I31.childNodes.length==1 && I31.firstChild.nodeType==1){if (I31.firstChild.tagName.toUpperCase()=="SPAN" && !HTMLEditor.o36(I31.firstChild)){var O2u=HTMLEditor.I37(I31.firstChild,[]); var O4p=HTMLEditor.l4p(I31.firstChild); var i4p=I31.firstChild; var I4p=i4p.childNodes; while (i4p.firstChild!=null){I31.insertBefore(i4p.firstChild,i4p); }for (var ig=0; ig<O4p.length; ig++){if (O4p[ig][1]){try {if (I31.style[O4p[ig][0]]){if (O4p[ig][0].toLowerCase().indexOf("color")>=0){I31.style[O4p[ig][0]]=O4p[ig][1]; }else {try {var i17=I31.style[O4p[ig][0]]; I31.style[O4p[ig][0]]=I31.style[O4p[ig][0]]+" "+O4p[ig][1]; if (i17==I31.style[O4p[ig][0]]){I31.style[O4p[ig][0]]=O4p[ig][1]; }}catch (t){I31.style[O4p[ig][0]]=O4p[ig][1]; }}}else I31.style[O4p[ig][0]]=O4p[ig][1]; }catch (o4q){}}}for (var ig=0; ig<O2u.length; ig++){if (O2u[ig][1])I31.setAttribute(O2u[ig][0],O2u[ig][1]); }I31.removeChild(i4p); continue; }else if (I31.firstChild.tagName.toUpperCase()=="SPAN" && HTMLEditor.o36(I31.firstChild)){var i24=I31.firstChild; I31.parentNode.insertBefore(I31.firstChild,I31); I31.parentNode.removeChild(I31); I31=i24; }break; }var O4q=[]; var l4q=I31.nextSibling; while (!HTMLEditor.o36(I31) && l4q && i+1<o4p && (l4q.nodeType==3 || (l4q.nodeType==1 && (l4q.tagName.toUpperCase()=="SPAN" || (l4q.tagName.toUpperCase()=="BR") && typeof i4o=="undefined") && !HTMLEditor.o36(l4q)))){if (l4q.nodeType==3){if ((""+l4q.data+"").length==0){l4q.parentNode.removeChild(l4q); l4q=I31.nextSibling; o4p--; }else {break; }}else {if (l4q.tagName.toUpperCase()=="BR"){O4q.push(l4q); l4q=l4q.nextSibling; }else {var O2u=HTMLEditor.I37(I31,[],l4q); var O4p=HTMLEditor.l4p(I31,l4q); if (O2u.length==0 && O4p.length==0 && I31.className==l4q.className){var O33=O4q.length; for (var ig=0; ig<O33; ig++){I31.appendChild(O4q[ig]); o4p--; }O4q=[]; while (l4q.firstChild)I31.appendChild(l4q.firstChild); l4q.parentNode.removeChild(l4q); l4q=I31.nextSibling; o4p--; }else break; }}}if (!HTMLEditor.o36(I31) && I31.className.length==0){var O2u=HTMLEditor.I37(I31,[]); var O4p=HTMLEditor.l4p(I31); if (O2u.length==0 && O4p.length==0){i--; o4p--; while (I31.firstChild){I31.parentNode.insertBefore(I31.firstChild,I31); o4p++; }I31.parentNode.removeChild(I31); continue; }}}if (I31.parentNode!=null)if (I31.childNodes.length==0 && HTMLEditor.O1e(I31.tagName) && I31.tagName.toUpperCase()!="A" && !(I31.className.length>0 || (I31.getAttribute("class") && I31.getAttribute("class").length>0)) && !HTMLEditor.o36(I31)){l1k.removeChild(I31); i--; o4p--; continue; }else HTMLEditor.I21(I31,iw); break; }}};HTMLEditor.i4q= function (l1k,i15){var count=0; if (l1k.attributes)for (var i=0; i<l1k.attributes.length; i++){var I29=l1k.attributes[i]; if (I29.name.toUpperCase()=="STYLE")continue; if (I29.name.toUpperCase()=="CLASS" && i15)continue; if (I29.specified)count++; }return count; };HTMLEditor.I37= function (l1k,i15,I4q){var i1q=[]; var parent=l1k.parentNode; if (typeof I4q!="undefined")parent=I4q; if (!parent || !parent.tagName || !HTMLEditor.O1e(parent.tagName))parent=null; if (l1k.attributes)for (var i=0; i<l1k.attributes.length; i++){var I29=l1k.attributes[i]; var o4r= false; for (var ig=0; ig<i15.length; ig++)if (I29.name.toUpperCase()==i15[ig].toUpperCase()){o4r= true; break; }if (o4r)continue; if (I29.name.toUpperCase()=="STYLE")continue; if (I29.name.toUpperCase().substr(0,4)=="_MOZ")continue; if (I29.specified)if (parent && parent.attributes && parent.attributes[I29.name]){var O4r=parent.attributes[I29.name]; if (O4r){if (I29.name!=O4r.name || I29.value!=O4r.value){i1q.push([I29.name,I29.value]); }}}else {if (I29.name.toUpperCase()=="CLASS" && I29.value=="")continue; i1q.push([I29.name,I29.value]); }}return i1q; };HTMLEditor.l4p= function (l1k,I4q){var i1q=[]; var parent=l1k.parentNode; if (typeof I4q!="undefined")parent=I4q; if (!parent || !parent.tagName || !HTMLEditor.O1e(parent.tagName))parent=null; function l4r(i,i4r){i4r=""+i4r; if (i.toLowerCase()=="textdecoration"){var I4r=i4r.split(" "); for (var ig=0; ig<I4r.length; ig++){i1q.push([i,HTMLEditor.O12(I4r[ig])]); }}else i1q.push([i,i4r]); }for (var i in l1k.style){if (i && typeof i=="string" && i!="accelerator"){var style=l1k.style[i]; if (style && typeof style=="string" && style!="accelerator"){if (parent && parent.style){var o4s=parent.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=o4s){l4r(i,style); }}else {if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length"){l4r(i,style); }}}}}if (typeof I4q!="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 o4s=l1k.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=o4s){l4r(i,style); }}}}return i1q; };HTMLEditor.O4s= function (ik){var name=ik.tagName.toUpperCase(); switch (name){case "TD":case "LI":case "FIELDSET":case "FORM":return true; case "DIV":if (ik.className==HTMLEditor.il)return false; else return true; default:return false; }};HTMLEditor.I2y= function (ik,om){if (ik && ik.style && ik.style.display && ik.style.display.toLowerCase()=="inline")return true; var name=ik.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return false; }}switch (name){case "TBODY":case "TR":case "TD":if (typeof om!="undefined"){var par=ik.parentNode; while (par && par.tagName && par.tagName.toUpperCase()!="TABLE")par=par.parentNode; if (par.tagName.toUpperCase()=="TABLE" && par.style && par.style.display && par.style.display.toLowerCase()=="inline")return true; }case "P":case "PRE":case "TABLE":case "OL":case "UL":case "LI":case "HR":case "DIV":case "BLOCKQUOTE":case "FORM":case "FIELDSET":case "LEGEND":return false; default:return true; }};HTMLEditor.l4s=[["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.i4s=["DIV","P","TD","TR","TABLE","TBODY","LI","OL","UL","FORM","INPUT"]; HTMLEditor.l2c= function (l1k){for (var i=0; i<HTMLEditor.i4s.length; i++)if (HTMLEditor.i4s[i].toUpperCase()==l1k.tagName.toUpperCase()){return true; }if (HTMLEditor.is_ie && l1k.scopeName.toUpperCase()!="HTML")return true; return false; };HTMLEditor.I1d= function (I4s){if (typeof I4s!="number"){return I4s; }var i1b=I4s&0377; var O2v=(I4s>>8)&0377; var b=(I4s>>020)&0377; return "rgb("+i1b+","+O2v+","+b+")"; } ; HTMLEditor.o4t= function (I4s){function l2u(i2u){return (i2u<020)?("0"+i2u.toString(020)):i2u.toString(020); } ; if (typeof I4s=="number"){var i1b=I4s&0377; var O2v=(I4s>>8)&0377; var b=(I4s>>020)&0377; return "#"+l2u(i1b)+l2u(O2v)+l2u(b); }if (I4s.substr(0,3)=="rgb"){var O2f=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/; if (I4s.match(O2f)){var i1b=parseInt(RegExp.$1); var O2v=parseInt(RegExp.$2); var b=parseInt(RegExp.$3); return "#"+l2u(i1b)+l2u(O2v)+l2u(b); }return null; }if (I4s.substr(0,1)=="#"){return I4s; }return null; } ; HTMLEditor.Iv= function (window,O4t){if (!/MSIE (5|6|7)/.test(navigator.userAgent))return; if ((/MSIE (7)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat")return; var l4t=/(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i,i4t,iw=window.document,I4t=[],o4u= {onhover:{O4u: "onmouseover",l4u: "onmouseout" } ,onactive:{O4u: "onmousedown",l4u: "onmouseup" }} ; var i4u=(typeof O4t=="undefined")?iw:O4t; function parseStylesheets(){window.attachEvent("onunload",I4u); var I25=iw.styleSheets,o26=I25.length; for (var i=0; i<o26; i++)l26(I25[i]); }function l26(i26){if (i26.imports){try {var imports=i26.imports,o26=imports.length; for (var i=0; i<o26; i++)l26(i26.imports[i]); }catch (o4v){}}try {var rules=(i4t=i26).rules,o26=rules.length; for (var ig=0; ig<o26; ig++)I26(rules[ig]); }catch (o4v){}}function I26(rule){var select=rule.selectorText,style=rule.style.cssText; if (!l4t.test(select) || !style)return; var O4v=select.replace(/[^:]+:([a-z-]+).*/i,"on$1"); var l4v=select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi,".$2"+O4v); var className=(/\.([a-z0-9_-]*on(hover|active))/i).exec(l4v)[1]; var i4v=select.replace(/:(hover|active).*$/,""); var elements=I4v(i4v); if (elements.length==0)return; i4t.addRule(l4v,style); for (var i=0; i<elements.length; i++)new o4w(elements[i],className,o4u[O4v]); }function o4w(I2a,className,O4w){if (!I2a.hovers)I2a.hovers= {} ; if (I2a.hovers[className])return; I2a.hovers[className]= true; l4w(I2a,O4w.O4u, function (){I2a.className+=" "+className; } ); l4w(I2a,O4w.l4u, function (){I2a.className=I2a.className.replace(new RegExp("\\s+"+className,"g"),""); } ); }function l4w(I2a,type,i4w){I2a.attachEvent(type,i4w); I4t[I4t.length]= {I2a:I2a,type:type,i4w:i4w } ; }function I4u(){for (var t,i=0; i<I4t.length; i++){t=I4t[i]; t.I2a.detachEvent(t.type,t.i4w); }}function I4v(rule){var I4w,o4x=[i4u]; I4w=rule.split(" "); for (var i=0; i<I4w.length; i++){o4x=O4x(I4w[i],o4x); }return o4x; }function O4x(select,elements){var i1q,I2a,o4x=[]; var l4x=(/#([a-z0-9_-]+)/i).exec(select); if (l4x)return [iw.getElementById(l4x[1])]; var i4x=(/\.([a-z0-9_-]+)/i).exec(select); var tagName=select.replace(/(\.|#|:)[a-z0-9_-]+/i,""); var I4x=i4x?new RegExp("\\b"+i4x[1]+"\\b"): false; for (var i=0; i<elements.length; i++){i1q=tagName?elements[i].all.tags(tagName):elements[i].all; for (var ig=0; ig<i1q.length; ig++){I2a=i1q[ig]; if (I4x && !I4x.test(I2a.className))continue; o4x[o4x.length]=I2a; }}return o4x; }parseStylesheets(); };HTMLEditor.prototype.parseInt=parseInt; HTMLEditor.prototype.isNaN=isNaN; HTMLEditor.prototype.Object=Object; HTMLEditor.prototype.Math=Math; HTMLEditor.o4y= function (s){return new String(s+"rnd="+Math.random()).replace(".",""); };function l25(O4y){ this.O4y=(typeof O4y!="undefined" && O4y); this.text=[]; this.write= function (Oh){if (!this.O4y || (this.text.length==0 && Oh!="\n") || (this.text.length>0 && (this.text[this.text.length-1]!="\n" || Oh!="\n")))this.text[this.text.length]=Oh; };this.writeln= function (Oh){ this.text[this.text.length]=Oh+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}HTMLEditor.prototype.l4y= function (X,i4y,O1r,I4y,o4z,O4z,l4z){ this.X=X; this.o4z=o4z; this.O4z=O4z; 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.Iz=null; if (HTMLEditor.is_ie && (X.Ip().type=="Text" || X.Ip().type=="None"))try {X.Iz=X.Oq(X.Ip()).duplicate(); }catch (t){}if (HTMLEditor.is_Safari){var i4z=X.Ip(); var I4z=X.Oq(i4z); X.Iz=I4z.cloneRange(); } this.iframe=this.openPopup(i4y,O1r,I4y,O4z,l4z); };HTMLEditor.prototype.l4y.prototype.middle= function (){var o50=this ; var X=this.X; var popup=this.iframe; var O50; var i8=parseInt(popup.clientWidth); var I8=parseInt(popup.clientHeight); if (i8==0)i8=parseInt(popup.offsetWidth); if (I8==0)I8=parseInt(popup.offsetHeight); var i2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; var l50=I2n/2-I8/2+i50(X.I0.document); if (l50<=0)l50=024; popup.style.top=l50+"px"; popup.style.left=i2n/2-i8/2+_GetScrollLeft(X.I0.document)+"px"; };HTMLEditor.prototype.clearPopups= function (I50){var X=this ; var oe= false; while (X.i1!=null && X.i1.length>0){var o51=X.i1[X.i1.length-1]; if (typeof I50!="undefined"){if (typeof o51.o4z=="function")o51.o4z(); o51.O51(null);}else o51.l51(); oe= true; }function i51(){if (X.I51 && X.I51.length>0)while (X.I51.length>0){var ik=X.I51.pop(); var popup=ik[1]; popup.parentNode.removeChild(popup); }}if (typeof I50=="undefined")setTimeout(i51,oe?01750: 0); else i51(); HTMLEditor.l19=null; if (o52!=null){o52.parentNode.removeChild(o52); o52=null; }if (O52!=null){O52.parentNode.removeChild(O52); O52=null; }return oe; };HTMLEditor.prototype.l4y.prototype.openPopup= function (i4y,O1r,I4y,O4z,l4z){var o50=this ; var X=this.X; var popup; function l52(event){if (X.i1)if (o50.number==X.i1.length){if (o50.iframe.contentWindow.document.body.childNodes.item(0).childNodes.length>1)if (!o50.iframe.contentWindow.document.getElementById("closePopup").disabled){o50.O51(o50.o4z); }}if (event)HTMLEditor._stopEvent(event); return false; } ; var i52; if (HTMLEditor.is_Safari)i52=O1r+"_safari"; else i52=O1r; if (!X.I51)X.I51=[]; if (typeof O4z=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.ij)){for (var i=0; i<X.I51.length; i++){if (X.I51[i][0]==i52){var iw; popup=X.I51[i][1]; popup.style.display=""; popup.style.zIndex=""+(045070+X.i1.length)+""; iw=popup.contentWindow.document; iw.getElementById("title").innerHTML=i4y; HTMLEditor.Ok(iw.getElementById("closePopup"),"click",l52); o50.l51=l52; try {O4z(popup); }catch (t){alert("Exception in open Popup("+i4y+"): "+t.message); } ; return popup; }}}popup=X.A.ownerDocument.createElement("iframe"); if (typeof O4z=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.ij)){X.I51.push([i52,popup]); }if (HTMLEditor.is_ie)popup.src="javascript:false;"; popup.style.visibility="hidden"; if (HTMLEditor.is_Safari)popup.className=i52; else popup.className=i52; popup.style.borderColor="white black black white"; popup.style.borderWidth="1px"; popup.style.borderStyle="solid"; popup.style.zIndex=""+(045070+X.i1.length)+""; popup.style.display=""; popup.style.position="absolute"; popup.scrolling="no"; popup.style.margin="0px";popup.style.padding="0px";popup.marginHeight="0"; popup.marginWidth="0"; if (HTMLEditor.ij)popup.name=X._hiddenContent+"_popup_"+i52; var O50; var i8=0144; var I8=0144; var I52=X.A; var ik=X._textArea.parentNode.parentNode; if (!X._InsideOboutWindow)while (ik!=X.A){if (HTMLEditor.Oy(ik,"position").toLowerCase()=="absolute"){I52=X._textArea.parentNode.parentNode; break; }ik=ik.parentNode; }var o2o=HTMLEditor.O2o(I52, false); var l1t=o2o.l1t,_top=o2o._top; var i2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; var o53=I2n/2-I8/2+i50(X.I0.document); var O53=i2n/2-i8/2+_GetScrollLeft(X.I0.document); popup.style.top=(o53-_top)+"px"; popup.style.left=(O53-l1t)+"px"; I52.appendChild(popup); function l27(){var iw=popup.contentWindow.document; if (!iw){if (!HTMLEditor.is_ie){window.setTimeout(l27,012); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var O50; var i8=parseInt(popup.clientWidth); var I8=parseInt(popup.clientHeight); if (i8==0)i8=parseInt(popup.offsetWidth); if (I8==0)I8=parseInt(popup.offsetHeight); var i2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; var o53=I2n/2-I8/2+i50(X.I0.document); var O53=i2n/2-i8/2+_GetScrollLeft(X.I0.document); popup.style.top=(o53-_top)+"px"; popup.style.left=(O53-l1t)+"px"; iw.open(); var html=new l25(); html.write("<html style='height:100%'>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.Q[014]))?X.O7: "")+X.Q[014]+"\" media=\"all\" />"); html.write("</head>"); html.write("<body style='height:100%'>"); html.write("<div id='mainFrame' class='frame' style='height:100%'>"); html.write("<table id='header' class='header' style='width:100%;margin:0px;padding:0px;' border=0><tr><td nowrap align=left style='padding-left:4px;'><span id='title'>title</span></td><td align=right style='width:100%'><img id='closePopup' src='"+X.Q[7]+"' alt='' /></td></tr></table>"); html.write("</div>"); html.write("</body>"); html.write("\x3ca href=\""+X.O7+"\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); iw.write(html.toString()); iw.close(); popup.style.visibility="visible"; function Ow(){var l53; var i53; var I53; var o54; try {l53=iw.getElementById("header"); i53=iw.getElementById("closePopup"); I53=iw.getElementById("title"); o54=iw.getElementById("mainFrame"); l53.className="header"; o54.className="frame"; I53.innerHTML=i4y; HTMLEditor.Ok(i53,"click",l52); o50.l51=l52; HTMLEditor.Ok(l53,"mousedown", function (event){if (event.srcElement && event.srcElement.tagName.toUpperCase()=="IMG")return false; var oe=o50.O54(HTMLEditor.is_ie?popup.contentWindow.event:event); return oe; } ); if (HTMLEditor.is_Safari){iw.body.addEventListener("mouseup",l54, false); }function i54(t){if (t.target.tagName.toUpperCase()=="INPUT" || t.target.tagName.toUpperCase()=="TEXTAREA" || t.target.tagName.toUpperCase()=="SELECT")return true; if (HTMLEditor.is_Safari)if (t.target.tagName.toUpperCase()=="TABLE" || t.target.tagName.toUpperCase()=="TR" || t.target.tagName.toUpperCase()=="TD" || t.target.tagName.toUpperCase()=="DIV")return true; return false; }if (HTMLEditor.is_ie){iw.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {iw.onmousedown=i54; }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 I4y=="function"){try {I4y(popup); }catch (t){alert("Exception in open Popup("+i4y+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var I54=iw.getElementsByTagName("input"); for (var i=0; i<I54.length; i++){I54[i].setAttribute("autocomplete","off"); }}}catch (t){try {HTMLEditor.lc(i53,"click",l52); }catch (t){}setTimeout(Ow,012); return false; }}setTimeout(Ow,012); } ; setTimeout(l27,024); return popup; } ; HTMLEditor.prototype.l4y.prototype.O51= function (o4z){var popup=this ; var X=this.X; var _iframe=this.iframe; var i1s=this.i1s; function o55(I28,l1k){var ok; try {ok=I28.removeChild(l1k); delete ok; }catch (t){}}if (X.i1==null)return false; var O55=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.Iz){if (HTMLEditor.is_Safari){X.i16(X.Ip(),X.Iz); X.Iz=null; }if (HTMLEditor.is_ie){try {X.Iz.select(); }catch (t){}}X.Iz=null; }try {X.focusEditor(); }catch (t){}}if (typeof o4z=="function"){try {o4z(); }catch (t){} ; }try {HTMLEditor.lc(_iframe.contentWindow.document.getElementById("closePopup"),"click",popup.l51); _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.O4z!="function" || (HTMLEditor.is_Safari && !HTMLEditor.ij)){o55(_iframe.parentNode,_iframe); delete popup; }}catch (t){}} ,012); return false; };var l55=null; var O52=null,o52=null; var i55=0; var I55=0; function o56(){if (document.all && document.body.attachEvent){if (document.body.setCapture)document.body.setCapture(); document.body.attachEvent("onmousemove",O56); document.body.attachEvent("onmouseup",l54); }else if (document.addEventListener){document.addEventListener("mousemove",O56, false); document.addEventListener("mouseup",l54, false); }l56(l55); }function l54(){if (document.all && document.body.detachEvent){document.body.detachEvent("onmousemove",O56); document.body.detachEvent("onmouseup",l54); if (document.body.releaseCapture)document.body.releaseCapture(); }else if (document.removeEventListener){document.removeEventListener("mousemove",O56, false); document.removeEventListener("mouseup",l54, false); }i56(l55); l55=null; }function O56(t){try {I56(t); HTMLEditor._stopEvent(t); i55=t.clientX; I55=t.clientY; }catch (w){l54(); }return false; }function l56(o57){if (o52!=null && o57.iframe.parentNode!=o52.parentNode){o52.parentNode.removeChild(o52); o52=null; }if (O52!=null && o57.iframe.parentNode!=O52.parentNode){O52.parentNode.removeChild(O52); O52=null; }if (o52==null){o52=document.createElement("div"); o52.style.display=""; o52.style.position="absolute";o52.style.margin="0px";o52.style.padding="0px";o52.style.top="0px"; o52.style.left="0px"; var O50=parseInt(document.body.clientHeight); if (O50<=0)O50=document.body.offsetHeight; o52.style.height=O50+"px"; O50=parseInt(document.body.clientWidth); if (O50<=0)O50=document.body.offsetWidth; o52.style.width=O50+"px"; o52.style.zIndex="20000"; o57.iframe.parentNode.appendChild(o52); }if (O52==null){O52=document.createElement("SPAN"); O52.className="MoveSpan"; O52.style.position="absolute"; O52.style.zIndex=0141520; o57.iframe.parentNode.appendChild(O52); }O52.style.visibility="visible"; o52.style.visibility="visible"; var O57=parseInt(o57.iframe.style.borderTopWidth)*2; O52.style.top=o57.iframe.style.top; O52.style.left=o57.iframe.style.left; var i8=o57.iframe.clientWidth; var I8=o57.iframe.clientHeight; if (i8==0)i8=o57.iframe.offsetWidth; if (I8==0)I8=o57.iframe.offsetHeight; O52.style.width=parseInt(i8)+((HTMLEditor.is_ie)?(parseInt(O57)): (0-parseInt(O57)))+"px"; O52.style.height=parseInt(I8)+((HTMLEditor.is_ie)?(parseInt(O57)): (0-parseInt(O57)))+"px"; O52.style.cursor="move"; o52.style.cursor="move"; }function i56(o57){try {o57.iframe.style.top=O52.style.top; o57.iframe.style.left=O52.style.left; O52.style.visibility="hidden"; o52.style.visibility="hidden"; }catch (t){}}function I56(t){var l57=l55.i57; var I57=l55.o58; var ik=O52; var left=0; var top=0; if (document.all){left=t.clientX*1+_GetScrollLeft(document)-l57; top=t.clientY*1+i50(document)-I57; }else {left=t.pageX*1-l57; top=t.pageY*1-I57; }if (left<0){left=0; }if (top<0){top=0; }ik.style.left=(left-l55.l1t)+"px"; ik.style.top=(top-l55._top)+"px"; if (HTMLEditor.is_Safari){l55.iframe.style.top=O52.style.top; l55.iframe.style.left=O52.style.left; }}HTMLEditor.prototype.l4y.prototype.O54= function (t){if (!HTMLEditor.is_ie && t.target.tagName.toUpperCase()=="IMG" && t.target.id=="closePopup")return true; l55=this ; this.i57=(t.offsetX==null)?t.layerX:t.offsetX; this.o58=(t.offsetY==null)?t.layerY:t.offsetY; if (HTMLEditor.is_ie){var ik=t.srcElement; while (ik && ik.tagName.toUpperCase()!="BODY"){ this.i57+=parseInt(ik.offsetLeft); this.o58+=parseInt(ik.offsetTop); ik=ik.offsetParent; if (ik){if (ik.clientLeft)this.i57+=parseInt(ik.clientLeft); if (ik.clientTop)this.o58+=parseInt(ik.clientTop); }}var O57=parseInt(this.iframe.style.borderWidth)*2; this.i57+=O57; this.o58+=O57; }i55=t.clientX; I55=t.clientY; var o2o=HTMLEditor.O2o(this.iframe.parentNode, false); this._top=o2o._top; this.l1t=o2o.l1t; HTMLEditor._stopEvent(t); o56(); return false; } ; HTMLEditor.O2o= function (I52,om){var position=HTMLEditor.O58(I52); if (HTMLEditor.is_ie && !om){var borderTopWidth; var borderLeftWidth; if ((/MSIE (7)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat"){borderTopWidth=2; borderLeftWidth=2; }else {var l58=(document.compatMode=="BackCompat")?document.body:document.documentElement; var top=HTMLEditor.Oy(l58,"border-top-width").toUpperCase(); borderTopWidth=parseInt(HTMLEditor.Oy(l58,"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.Oy(l58,"border-left-width").toUpperCase(); borderLeftWidth=parseInt(HTMLEditor.Oy(l58,"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 l58.border!="undefined" && l58.border!=null && !isNaN(parseInt(l58.border)))borderLeftWidth=borderTopWidth=parseInt(l58.border); }position.y-=borderTopWidth; position.x-=borderLeftWidth; }else if (HTMLEditor.l10){position.y--; position.x--; }return {_top:position.y,l1t:position.x } ; };HTMLEditor.getOffset= function (l1k){var position=HTMLEditor.O2o(l1k, false); return {y:position._top,x:position.l1t } ; };function i50(i58){if (i58.documentElement && i58.documentElement.scrollTop){return i58.documentElement.scrollTop; }else {return i58.body.scrollTop; }}function obout_scrollElement(Oc){try {var anchor; if (document.all)anchor=document.createElement("td"); else anchor=document.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; if (!document.all)Oc.parentNode.insertBefore(anchor,Oc); else {var I58=document.createElement("td"); I58.style.width="0px"; I58.style.height="20px"; Oc.parentNode.insertBefore(I58,Oc); I58.focus(); Oc.parentNode.removeChild(I58); var O2x=Oc.nextSibling; if (O2x==null)Oc.parentNode.appendChild(anchor); else Oc.parentNode.insertBefore(anchor,O2x); }anchor.focus(); if (!document.all)anchor.blur(); Oc.parentNode.removeChild(anchor); }catch (t){}}function _GetScrollDiffer(Oc,om){if (document.all && document.compatMode!="BackCompat")return true; do {Oc=Oc.parentNode; if (Oc.clientHeight>0 && Oc.scrollHeight && Oc.scrollHeight>0)if (Oc.scrollHeight>Oc.clientHeight){return true; }}while (Oc && Oc.tagName.toUpperCase()!="BODY");return false; }function _GetScrollLeft(i58){if (i58.documentElement && i58.documentElement.scrollLeft){return i58.documentElement.scrollLeft; }else {return i58.body.scrollLeft; }}HTMLEditor.prototype._Mozilla= function (o59){if (!HTMLEditor.is_ie && !o59 && HTMLEditor.O12(this.O1h()).length>0){var I32=this.l1.body.cloneNode( true); var ip=this.Ip(); var l1e=this.Oq(ip); this.l16(ip); var ik=l1e.startContainer; var O59=l1e.startOffset; var l59=[]; while (ik.nodeType==3 || ik.tagName.toUpperCase()!="BODY"){var O33=0; while (ik.previousSibling){O33++; ik=ik.previousSibling; }l59.push(O33); ik=ik.parentNode; }ik=l1e.endContainer; var i59=l1e.endOffset; var I59=[]; while (ik.nodeType==3 || ik.tagName.toUpperCase()!="BODY"){var O33=0; while (ik.previousSibling){O33++; ik=ik.previousSibling; }I59.push(O33); ik=ik.parentNode; } this.l1.body.innerHTML=""; while (I32.firstChild){ this.l1.body.appendChild(I32.firstChild); }var o5a=this.l1.body; for (var i=l59.length-1; i>=0; i--){o5a=o5a.childNodes.item(l59[i]); }var O5a=this.l1.body; for (var i=I59.length-1; i>=0; i--){O5a=O5a.childNodes.item(I59[i]); }var X=this ; this.I0.setTimeout( function (){ip=X.Ip(); l1e=X.Oq(); l1e.setStart(o5a,O59); l1e.setEnd(O5a,i59); X.i16(ip,l1e); } ,012); }};HTMLEditor.O55= function (){ this.iframe=null; this.l5a=null; this.i5a=null; this.I5a=null; };HTMLEditor.prototype.openPopup= function (i4y,O1r,I4y,o4z,l4z){var X=this ; if (X.i1==null)if (HTMLEditor.is_Safari){var ip=X.Ip(); var oq=X.Oq(ip); X.Iz=oq.cloneRange(); }if (HTMLEditor.is_ie && (X.Ip().type=="Text" || X.Ip().type=="None"))try {X.Iz=X.Oq(X.Ip()).duplicate(); }catch (t){}function l25(){ this.text=[]; this.write= function (Oh){ this.text[this.text.length]=Oh; };this.writeln= function (Oh){ this.text[this.text.length]=Oh+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}var popup=X.I0.document.createElement("iframe"); popup.id=X._hiddenContent+"_ifr_popup_"+O1r; if (HTMLEditor.is_ie)popup.src="javascript:false;"; var O55=new HTMLEditor.O55(); O55.iframe=popup; O55.enableEvents= function (){} ; O55.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(O55); O55.number=this.i1.length; O55.o4z=o4z; if (typeof l4z=="undefined")popup.className=O1r+"_safari"; else popup.className=O1r; 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 O50; var i8=0144; var I8=0144; var i2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; popup.style.top=I2n/2-I8/2+X.A.scrollTop+"px"; popup.style.left=i2n/2-i8/2+X.A.scrollLeft+"px"; this.A.appendChild(popup); function l52(event){if (HTMLEditor.is_ie)event=popup.contentWindow.event; if (X.i1)if (O55.number==X.i1.length)if (event.type=="click")X.O51(O55.o4z); HTMLEditor._stopEvent(event); return false; } ; function o5b(){popup=X.I0.document.getElementById(X._hiddenContent+"_ifr_popup_"+O1r); O55.iw=popup.document; if (!O55.iw){if (HTMLEditor.l24 || HTMLEditor.l10){X.I0.setTimeout(o5b,012); return false; }else {X.I0.alert("ERROR: IFRAME can't be initialized."); }}var O50; var i8=(typeof(popup.clientWidth)=="number")?(popup.clientWidth): (X.parseInt(popup.clientWidth)); var I8=(typeof(popup.clientHeight)=="number")?(popup.clientHeight): (X.parseInt(popup.clientHeight)); var i2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; popup.style.top=I2n/2-I8/2+X.A.scrollTop+"px"; popup.style.left=i2n/2-i8/2+X.A.scrollLeft+"px"; O55.iw.open(); var html=new l25(); html.write("<html>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.Q[014]))?X.O7: "")+X.Q[014]+"\" media=\"all\" />"); html.write("</head>"); html.write("<body>"); html.write("<div id='mainFrame' class='frame'>"); html.write("<div id='header' class='header'><img id='closePopup' src='"+X.Q[7]+"' alt='' /><span id='title'>Insert Image</span></div>"); html.write("</div>"); html.write("</body>"); html.write("\x3ca href=\""+X.O7+"/\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); O55.iw.write(html.toString()); O55.iw.close(); function Ow(){var l53; var i53; var I53; var o54; try {l53=O55.iw.getElementById("header"); i53=O55.iw.getElementById("closePopup"); I53=O55.iw.getElementById("title"); o54=O55.iw.getElementById("mainFrame"); l53.className="header"; o54.className="frame"; I53.innerHTML=i4y; i53.onclick=l52; X.I16(); function O5b(Oj){if (Oj)if (Oj.type=="mousedown" && Oj.button!=2){O55.l5b=new X.Object; O55.l5b.top=X.parseInt(popup.style.top)+"px"; O55.l5b.left=X.parseInt(popup.style.left)+"px"; O55.l5b.clientY=Oj.clientY; O55.l5b.clientX=Oj.clientX; O55.i5b= true; if (HTMLEditor.is_ie){popup.unselectable="on"; for (var i=0; i<O55.iw.all.length; i++)O55.iw.all(i).unselectable="on"; }}else if (Oj.type=="mouseup" || Oj.type=="mouseout"){O55.i5b= false; delete O55.l5b; O55.l5b=null; if (HTMLEditor.is_ie){popup.unselectable="off"; for (var i=0; i<O55.iw.all.length; i++)O55.iw.all(i).unselectable="off"; }}else if (Oj.type=="mousemove"){if (O55.i5b){O55.l5b.top+=Oj.clientY-O55.l5b.clientY; O55.l5b.left+=Oj.clientX-O55.l5b.clientX; O55.iframe.style.top=O55.l5b.top+"px"; O55.iframe.style.left=O55.l5b.left+"px"; }}return true; }HTMLEditor.Ov(l53,["mousedown","mouseup","mousemove","mouseout"], function (event){return O5b(HTMLEditor.is_ie?popup.contentWindow.event:event); } ); function i54(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){O55.iw.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {O55.iw.onmousedown=i54; }if (!HTMLEditor.is_ie){X.I0.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)-1+"px"; popup.style.left=X.parseInt(popup.style.left)-1+"px"; } ,2); X.I0.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)+1+"px"; popup.style.left=X.parseInt(popup.style.left)+1+"px"; } ,5); }if (typeof I4y=="function"){try {I4y(O55.iframe); }catch (t){X.I0.alert("Exception in open Popup("+i4y+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var I54=O55.iw.getElementsByTagName("input"); for (var i=0; i<I54.length; i++){I54[i].setAttribute("autocomplete","off"); I54[i].onfocus= function (){O55.I5a=this ; } ; }}}catch (t){try {HTMLEditor.lc(i53,"click",l52); }catch (t){}X.I0.setTimeout(Ow,012); return false; }}X.I0.setTimeout(Ow,012); } ; X.I0.setTimeout(o5b,024); return O55.iframe; } ; HTMLEditor.prototype.O51= function (o4z){var X=this ; function o55(I28,l1k){var ok; try {ok=I28.removeChild(l1k); delete ok; }catch (t){}}if (X.i1){var O55=X.i1.pop(); if (X.i1.length>0)X.i1[X.i1.length-1].enableEvents(); if (HTMLEditor.is_Safari){X.I0.setTimeout( function (){if (X.i1==null || X.i1.length==0)if (HTMLEditor.is_Safari)if (X.Iz){X.i16(X.Ip(),X.Iz); X.Iz=null; }if (typeof o4z=="function"){try {o4z(); }catch (t){} ; }if (O55.I5a){O55.I5a.blur(); }var ip=X.Ip(); var oq=X.Oq(ip); X.i16(ip,oq); X.focusEditor(); X.focusEditor(); o55(X.A,O55.iframe); X.I0.setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); X.i16(ip,oq); X.focusEditor(); X.focusEditor(); } ,012); } ,012); }else {if (typeof o4z=="function"){try {o4z(); }catch (t){} ; }o55(X.A,O55.iframe); }if (X.i1.length==0){X.i1=null; HTMLEditor.i1=null; X.popupClosed(); if (HTMLEditor.is_ie)if (X.Iz){try {X.Iz.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 o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(this.O1h()): ""; var ip=this.Ip(); var oq=this.Oq(ip); var l1e=null; var I5b= false; if (this.iq())return; if ((HTMLEditor.is_ie && oq.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0)){l1e=this.i1e(); }else if (!HTMLEditor.is_Safari){l1e=this.l3s(); I5b= true; }if (l1e!=null && l1e.length>0){var o5c= false; this.o10(); for (var i=0; i<l1e.length; i++){var par=l1e[i].parentNode; var i3x= false; try {while (par && par.childNodes.length==1 && HTMLEditor.O1e(par.tagName)){var Ik=par.tagName.toUpperCase(); var O5c=par.style?par.style.cssText: ""; var l5c=HTMLEditor.I37(par,["class"]); if (Ik=="SPAN" && par.className!=HTMLEditor.il && l5c.length==0 && (par.className.length>0 || name.length>0)){o5c= true; par.className=name; if (name==""){par.removeAttribute("class"); if (O5c.length==0){var parent=par.parentNode; while (par.firstChild)parent.insertBefore(par.firstChild,par); parent.removeChild(par); }}i3x= true; break; }par=par.parentNode; }}catch (t){ this.I0.alert(""+i+" "+l1e.length+" : "+t.message); }par=l1e[i].parentNode; if (!i3x){if (name !== ""){o5c= true; var ok=this.l1.createElement("SPAN"); ok.className=name; par.insertBefore(ok,l1e[i]); ok.appendChild(l1e[i]); }}}if (I5b){if (HTMLEditor.is_ie && this.i3s!=null){var ip=this.Ip(); var oq=this.Oq(ip); oq.moveToBookmark(this.i3s); oq.select(); this.i3s=null; }else if (this.i3s!=null){if (this.i3s[0].nodeType==3){var ip=this.Ip(); var oq=this.l1.createRange(); oq.setStart(this.i3s[0],this.i3s[1]); oq.setEnd(this.i3s[0],this.i3s[1]); this.l16(ip); this.i16(ip,oq); }else { this.I3s(this.i3s[0],this.i3s[0]); this.i3s[0].parentNode.removeChild(this.i3s[0]); } this.i3s=null; }}else {if (!HTMLEditor.is_ie){if (l1e.length>0){oq=this.l1.createRange(); oq.setStart(l1e[0],0); oq.setEnd(l1e[l1e.length-1],(""+l1e[l1e.length-1].data+"").length); this.l16(ip); this.i16(ip,oq); }}else {var ip=this.Ip(); var I3g=this.Oq(ip); var o3h=this.Oq(ip); var i44=this.l1.createElement("span"); var I44=this.l1.createElement("span"); l1e[0].parentNode.insertBefore(i44,l1e[0]); if (l1e[l1e.length-1].nextSibling)l1e[l1e.length-1].parentNode.insertBefore(I44,l1e[l1e.length-1].nextSibling); else l1e[l1e.length-1].parentNode.appendChild(I44); try {I3g.moveToElementText(i44); o3h.moveToElementText(I44); I3g.setEndPoint("EndToEnd",o3h); I3g.select(); }catch (t){}l1e[0].parentNode.removeChild(i44); l1e[l1e.length-1].parentNode.removeChild(I44); }}var X=this ; this.I0.setTimeout( function (){X.updateToolbar(); } ,5); if (!o5c){return false; }return true; }else {var parent=this.lq(oq); if (HTMLEditor.l10)this.f= true; if (parent.nodeType==3){parent=parent.parentNode; }var O4p=parent.style?parent.style.cssText: ""; var O2u=HTMLEditor.I37(parent,["class"]); if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.il && O2u.length==0){ this.o10(); parent.className=name; if (name==""){parent.removeAttribute("class"); if (O4p.length==0){var par=parent.parentNode; var i5c=null; var l33=0; var I5c,o5d; if (!HTMLEditor.is_ie){ip=this.Ip(); oq=this.Oq(ip); i5c=oq.startContainer; l33=oq.startOffset; }else {I5c=oq.offsetLeft; o5d=oq.offsetTop; }while (parent.firstChild)par.insertBefore(parent.firstChild,parent); par.removeChild(parent); if (!HTMLEditor.is_ie){var oq=this.Oq(); oq.setStart(i5c,l33); oq.setEnd(i5c,l33); this.l16(ip); this.i16(ip,oq); }else {if (ip.type.toLowerCase()!="control"){try {oq.moveToPoint(I5c,o5d); }catch (t){}}oq.select(); }}}var X=this ; this.I0.setTimeout( function (){X.updateToolbar(); } ,5); return true; }else if (HTMLEditor.l10)this.focusEditor(); }}return false; }catch (t){ this.I0.alert("setClass func: "+t.message); }};HTMLEditor.prototype.O41= function (l1k){if (this.relativeImages){var images=l1k.getElementsByTagName("IMG"); for (var i=0; i<images.length; i++){var O5d=images[i]; if (O5d.src.indexOf("http://")>=0){var i21=O5d.src; O5d.src="qwerty.gif"; var O33=O5d.src.indexOf("qwerty.gif"); if (i21.substr(0,O33)==O5d.src.substr(0,O33))i21=i21.substr(O33,i21.length-O33); O5d.src=i21; }}}};HTMLEditor.prototype._paste= function (om,l31){var X=this ; var ip=this.Ip(); var oq=this.Oq(ip); var l1t; var _top; if (!om){l1t=oq.offsetLeft; _top=oq.offsetTop; this.I10(this.I30()); X.O13(); return; }if (this._NoPaste)return; l1t=oq.offsetLeft; _top=oq.offsetTop; var ok=this.l1.createElement("span"); var I1s; var l5d=this.O31("", false ,l31); if ((/<[\/]*p[\s>]+/i.test(l5d)) || (/<[\/]*h/i.test(l5d))){I1s=this.o1t(); }else {I1s=this.l1.createElement("SPAN"); I1s.id=HTMLEditor.il; if (!this.I10(HTMLEditor.getHTML(I1s, true)))return; I1s=this.l1.getElementById(HTMLEditor.il); I1s.id=null; I1s.removeAttribute("id"); I1s.setAttribute("para","no"); }ok.innerHTML=l5d; if (!I1s){return; } this.O41(ok); var par=I1s.parentNode; var i4k=I1s.getAttribute("para"); if (i4k!="no"){if (i4k.indexOf("left")>=0 && ok.firstChild){if (ok.firstChild.tagName && ok.firstChild.tagName.toUpperCase()=="P"){while (ok.firstChild.firstChild)I1s.previousSibling.appendChild(ok.firstChild.firstChild); ok.removeChild(ok.firstChild); }}if (i4k.indexOf("right")>=0 && ok.lastChild){if (ok.lastChild.tagName && ok.lastChild.tagName.toUpperCase()=="P"){while (ok.lastChild.lastChild)I1s.nextSibling.insertBefore(ok.lastChild.lastChild,I1s.nextSibling.firstChild); ok.removeChild(ok.lastChild); }}}var i5d=I1s; var I5d=null; if (ok.childNodes.length==0 && i4k.indexOf("left")>=0 && i4k.indexOf("right")>=0){if (I1s.nextSibling.firstChild){I5d=this.l1.createElement("span"); i5d=I5d; I5d.innerHTML="111"; I1s.previousSibling.appendChild(I5d); }while (I1s.nextSibling.firstChild)I1s.previousSibling.appendChild(I1s.nextSibling.firstChild); par.removeChild(I1s.nextSibling); }else {while (ok.firstChild)par.insertBefore(ok.firstChild,I1s); }setTimeout( function (){var ip=X.Ip(); var oq=X.Oq(ip); if (ip.type.toLowerCase()=="control"){while (oq.length>0)oq.remove(0); }try {oq.collapse( false); }catch (t){}X.focusEditor(); HTMLEditor.o1k(i5d,X); if (I5d)I5d.parentNode.removeChild(I5d); par.removeChild(I1s); HTMLEditor.i12(X.l1.body); X.O13(); oq.select(); } ,0144); };HTMLEditor.I2v= function (o2x,X,o5e){for (var i=0; i<o2x.childNodes.length; i++){var I31=o2x.childNodes.item(i); if (I31.nodeType==1){var ot=null; if (o5e)for (var ig=0; ig<HTMLEditor.l4s.length; ig++){if (HTMLEditor.l4s[ig][0].toLowerCase()==I31.tagName.toLowerCase()){ot=HTMLEditor.l4s[ig]; break; }}if (ot){var span=X.l1.createElement("SPAN"); span.style["cssText"]=I31.style["cssText"]; if (HTMLEditor.is_ie)span.style[ot[1]]=ot[2]; else span.style[ot[3]]=ot[2]; while (I31.firstChild){span.appendChild(I31.firstChild); }o2x.insertBefore(span,I31); o2x.removeChild(I31); I31=span; }else if (I31.tagName.toLowerCase()=="font"){var span=X.l1.createElement("SPAN"); var save=I31.size; span.style["cssText"]=I31.style["cssText"]; if (I31.color)span.style.color=I31.color; if (I31.face)span.style.fontFamily=I31.face; while (I31.firstChild){span.appendChild(I31.firstChild); }o2x.insertBefore(span,I31); o2x.removeChild(I31); if (save){var font=X.l1.createElement("FONT"); font.size=save; o2x.insertBefore(font,span); if (span.style["cssText"].length>0){font.appendChild(span); I31=span; }else {while (span.firstChild){font.appendChild(span.firstChild); }o2x.removeChild(span); I31=font; }}else I31=span; }HTMLEditor.I2v(I31,X,o5e); }}};HTMLEditor.restoreOldTags= function (o2x,iw,X){for (var i=0; i<o2x.childNodes.length; i++){var I31=o2x.childNodes.item(i); if (I31.nodeType==1){if (I31.tagName.toUpperCase()=="BR"){if (I31.style && I31.style.cssText && I31.style.cssText.length>0){I31.style.cssText=""; I31.removeAttribute("style"); }continue; }if (!HTMLEditor.l2c(I31) && I31.tagName.toUpperCase()!="IMG"){var O4p=HTMLEditor.l4p(I31); var O5e=o2x; var l5e=HTMLEditor.l2c(I31); for (var o28=0; o28<O4p.length; o28++){var i5e=null; if (O4p[o28][0].toLowerCase()=="color" && O4p[o28][1])i5e=["color",O4p[o28][1]];if (O4p[o28][0].toLowerCase()=="backgroundcolor" && O4p[o28][1])i5e=["backgroundColor",O4p[o28][1]];if (O4p[o28][0].toLowerCase()=="fontfamily" && O4p[o28][1])i5e=["face",O4p[o28][1]];var O33=HTMLEditor.l4s.length; if (i5e)O33=1; for (var ig=0; ig<O33; ig++){if (HTMLEditor.l4s[ig][3].toLowerCase()==O4p[o28][0].toLowerCase() && HTMLEditor.l4s[ig][2].toLowerCase()==O4p[o28][1].toLowerCase() || i5e){if (l5e){if (i5e){HTMLEditor.I5e(I31,i5e[0],i5e[1],iw); I31.style[i5e[0]]=""; }else if (O4p[o28][1]){HTMLEditor.I5e(I31,O4p[o28][0],O4p[o28][1],iw); I31.style[O4p[o28][0]]=""; }}else {var tagName=(i5e)?"FONT":HTMLEditor.l4s[ig][0].toUpperCase(); var o5f=iw.createElement(tagName); if (i5e){if (i5e[0]=="color")o5f.color=i5e[1]; else if (i5e[0]=="face")o5f.face=i5e[1]; else o5f.style.cssText="background-color: "+i5e[1]; }O5e.insertBefore(o5f,I31); o5f.appendChild(I31); I31.style.cssText=""; O4p[o28][1]=null; for (var O5f=0; O5f<O4p.length; O5f++)if (O4p[O5f][1] && O4p[O5f][0].toLowerCase()!="textdecorationlinethrough" && O4p[O5f][0].toLowerCase()!="textdecorationunderline")I31.style[O4p[O5f][0]]=O4p[O5f][1]; if (I31.tagName.toLowerCase()=="span" && I31.style.cssText=="" && HTMLEditor.i4q(I31, false)==0){while (I31.firstChild){o5f.appendChild(I31.firstChild); }o5f.removeChild(I31); I31=o5f; }O5e=o5f; ig=O33; }}}}}HTMLEditor.restoreOldTags(I31,iw,X); }else if (I31.nodeType==8){}}};HTMLEditor.I5e= function (o2x,style,value,iw){if (o2x.childNodes.length==0){var o5f=iw.createElement("SPAN"); o2x.appendChild(o5f); o5f.style[style]=value; }else for (var i=0; i<o2x.childNodes.length; i++){var I31=o2x.childNodes.item(i); if (I31.nodeType==1){if (!I31.style[style])I31.style[style]=value; }else if (I31.nodeType==3){var o5f=iw.createElement("SPAN"); o2x.insertBefore(o5f,I31); o5f.appendChild(I31); o5f.style[style]=value; }}};function Oy(l5f,i5f){var I5f=""; if (l5f.nodeType==1)if (l5f.ownerDocument.defaultView && l5f.ownerDocument.defaultView.getComputedStyle)I5f=l5f.ownerDocument.defaultView.getComputedStyle(l5f,"").getPropertyValue(i5f); else if (l5f.currentStyle){try {i5f=i5f.replace(/-(\w)/g, function (I3u,o1x){return o1x.toUpperCase(); } ); I5f=l5f.currentStyle[i5f]; }catch (w){}}return I5f; }HTMLEditor.Oy=Oy; HTMLEditor.o5g= function (O5g){function l5g(){var I8=O5g.offsetHeight; var i8=O5g.offsetWidth; if (!document.all){I8-=6; i8-=2; }if (I8>parseInt(O5g.style.height) || i8>parseInt(O5g.style.width))return false; return true; }var i5g=O5g.innerHTML; var i=0; while (!l5g()){i++; O5g.innerHTML=i5g.substr(0,i5g.length-i-1)+"..."; }};HTMLEditor.I5g= function (event){HTMLEditor._stopEvent(event); return false; };HTMLEditor.o5h= function (X,O5h){if (O5h.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.Ok(O5h,"dragstart",HTMLEditor.I5g); else HTMLEditor.Ok(O5h,"draggesture",HTMLEditor.I5g); var o1y,cell,l5h,div; var iw=X.getDocument(); var i5h=iw.createElement("TABLE"); if (O5h.tagName && O5h.tagName.toUpperCase()=="IMG"){i5h.style.display="inline"; }i5h.border="0"; i5h.cellSpacing="0"; i5h.cellPadding="0"; i5h.style.borderWidth="0px"; i5h.setAttribute(X.noContextMenuAttributeName(),"yes"); o1y=i5h.insertRow(i5h.rows.length); l5h=o1y.insertCell(o1y.cells.length); l5h.style.fontSize="0px"; l5h.style.fontFamily="verdana"; l5h.style.padding="0px"; l5h.style.margin="0px"; l5h.style.borderWidth="0px"; l5h.setAttribute(X.noContextMenuAttributeName(),"yes"); cell=o1y.insertCell(o1y.cells.length); cell.vAlign="top"; cell.align="left"; cell.style.padding="0px"; cell.style.margin="0px"; cell.style.fontSize="0px"; cell.style.fontFamily="verdana"; cell.style.borderWidth="0px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.O7+"/pagebgright.jpg)"; cell.style.backgroundRepeat="repeat-y"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=iw.createElement("DIV"); div.style.width="10px"; div.style.height="10px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.O7+"/pagebgtopright.jpg)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); o1y=i5h.insertRow(i5h.rows.length); cell=o1y.insertCell(o1y.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.vAlign="top"; cell.align="left"; cell.style.backgroundImage="url("+X.O7+"/pagebgbottomwhite.gif)"; cell.style.backgroundRepeat="repeat-x"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=iw.createElement("DIV"); div.style.width="10px"; div.style.height="8px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.O7+"/pagebgbottomleftwhite.gif)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); cell=o1y.insertCell(o1y.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.O7+"/pagebgbottomright.gif)"; cell.style.backgroundRepeat="no-repeat"; cell.style.borderWidth="0px"; cell.innerHTML="&nbsp;"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); if (O5h.tagName && O5h.tagName.toUpperCase()!="IMG"){var I1s=X.o1t(O5h); if (I1s){var parent=I1s.parentNode; parent.insertBefore(O5h,I1s); parent.removeChild(I1s); }}O5h.parentNode.insertBefore(i5h,O5h); l5h.appendChild(O5h); O5h.setAttribute(X.attachedIdAttributeName(),"yes"); };HTMLEditor.I5h= function (X,O5h){if (O5h.getAttribute(X.attachedIdAttributeName()) && O5h.getAttribute(X.attachedIdAttributeName()).length>0)return true; else return false; };HTMLEditor.o5i= function (X,O5h){if (O5h.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.lc(O5h,"dragstart",HTMLEditor.I5g); else HTMLEditor.lc(O5h,"draggesture",HTMLEditor.I5g); var I4b=X.Is(O5h); if (I4b!=null){I4b.parentNode.insertBefore(O5h,I4b); I4b.parentNode.removeChild(I4b); O5h.removeAttribute(X.attachedIdAttributeName()); }};HTMLEditor.prototype.O5i= function (){var l5i=[]; var i5i=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>"()$%#*@&\-+=\/\\|><]/; var I5i=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>()$%#*@&\-+=\/\\|><]/; if (this.o1 && this.mode()=="html" && !this.isPopup()){var o1h=(!HTMLEditor.is_ie)?HTMLEditor.O12(this.O1h()): ""; var ip=this.Ip(); var oq=this.Oq(ip); var l1e; if (!this.iq() && ((HTMLEditor.is_ie && oq.text.length>0) || (!HTMLEditor.is_ie && o1h.length>0)))l1e=this.i1e(); else l1e=this.i1e( true); for (var i=0; i<l1e.length; i++){var par=l1e[i].parentNode; var o5j=-1; var O5j=-1; var l5j=""+l1e[i].data+""; var i5j=l5j.length; var I5j=""; var o5k= false; for (var ig=0; ig<i5j; ig++){var O5k=l5j.substr(ig,1); if (O5k.charCodeAt(0)>=02620 && O5k.charCodeAt(0)<=02777)o5k= true; O5j=((o5k?I5i:i5i).test(O5k) || (O5k.charCodeAt(0)&0170000)==020000)?0: 1; if (O5j!=o5j){if (o5j>=0){var l5k=this.l1.createTextNode(I5j); par.insertBefore(l5k,l1e[i]); if (isNaN(parseInt(I5j,012)) && o5j==1){l5i.push( {i5k: -1,I5k: (""+l5k.data+""),ref:l5k,o5c: false } ); }}I5j=""; o5j=O5j; }I5j+=O5k; }if (o5j>=0 && I5j.length>0){l1e[i].data=I5j; if (isNaN(parseInt(I5j,012)) && o5j==1)l5i.push( {i5k: -1,I5k: (""+l1e[i].data+""),ref:l1e[i],o5c: false } ); }}ip=this.Ip(); if (l1e.length>0){if (!HTMLEditor.is_ie){oq=this.l1.createRange(); oq.setStart(l1e[l1e.length-1],(""+l1e[l1e.length-1].data+"").length); oq.setEnd(l1e[l1e.length-1],(""+l1e[l1e.length-1].data+"").length); this.l16(ip); this.i16(ip,oq); }else {var I3g=this.Oq(ip); var i44=this.l1.createElement("span"); if (l1e[l1e.length-1].nextSibling)l1e[l1e.length-1].parentNode.insertBefore(i44,l1e[l1e.length-1].nextSibling); else l1e[l1e.length-1].parentNode.appendChild(i44); try {I3g.moveToElementText(i44); I3g.setEndPoint("EndToStart",I3g); I3g.select(); }catch (t){}l1e[l1e.length-1].parentNode.removeChild(i44); }}}return l5i; };HTMLEditor.prototype.I1q= function (Oo){var X=this ; X.openWait(); setTimeout( function (){Oo(X.O5i()); } ,0); };HTMLEditor.prototype.I1e= function (l1e){var ip=this.Ip(); if (!HTMLEditor.is_ie){var oq=this.l1.createRange(); oq.setStart(l1e[0],0); oq.setEnd(l1e[l1e.length-1],(""+l1e[l1e.length-1].data+"").length); this.l16(ip); this.i16(ip,oq); }else {var I3g=this.Oq(ip); var o3h=this.Oq(ip); var i44=this.l1.createElement("span"); var I44=this.l1.createElement("span"); l1e[0].parentNode.insertBefore(i44,l1e[0]); if (l1e[l1e.length-1].nextSibling)l1e[l1e.length-1].parentNode.insertBefore(I44,l1e[l1e.length-1].nextSibling); else l1e[l1e.length-1].parentNode.appendChild(I44); try {I3g.moveToElementText(i44); var o5l=I3g.moveStart("character",1); I3g.moveStart("character",-o5l); o3h.moveToElementText(I44); o5l=o3h.moveEnd("character",-1); o3h.moveEnd("character",-o5l); I3g.setEndPoint("EndToEnd",o3h); I3g.select(); }catch (t){}l1e[0].parentNode.removeChild(i44); l1e[l1e.length-1].parentNode.removeChild(I44); }};HTMLEditor.prototype.O5l= function (I48){var l1e=this.i1e(); var X=this ; var I5b= false; if (l1e.length==0)if (!HTMLEditor.is_Safari){l1e=this.l3s( true); I5b= true; }if (l1e!=null && l1e.length>0){ this.o10(); for (var i=0; i<l1e.length; i++){if (I48)l1e[i].data=(""+l1e[i].data+"").toUpperCase(); else l1e[i].data=(""+l1e[i].data+"").toLowerCase(); }if (I5b){if (HTMLEditor.is_ie && this.i3s!=null){var ip=this.Ip(); var oq=this.Oq(ip); oq.moveToElementText(this.i3s); oq.select(); this.i3s.parentNode.removeChild(this.i3s); this.i3s=null; }else if (this.i3s!=null){if (this.i3s[0].nodeType==3){var ip=this.Ip(); var oq=this.l1.createRange(); oq.setStart(this.i3s[0],this.i3s[1]); oq.setEnd(this.i3s[0],this.i3s[1]); this.l16(ip); this.i16(ip,oq); }else { this.I3s(this.i3s[0],this.i3s[0]); this.i3s[0].parentNode.removeChild(this.i3s[0]); } this.i3s=null; }}else this.I1e(l1e); this.I0.setTimeout( function (){X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); }};HTMLEditor.prototype.toUpperCase= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (this.iq())return; this.O5l( true); };HTMLEditor.prototype.toLowerCase= function (){if (!(this.o1 && this.mode()=="html" && !this.isPopup()))return; if (this.iq())return; this.O5l( false); };HTMLEditor.i32= function (ik){var O1j=ik.all; var o11=[]; var l3l=[];for (var i=0; i<O1j.length; i++){var a=O1j[i]; if (a.name && a.name.length>0){var Ik=a.tagName; var l5l=ik.getElementsByTagName(Ik); var O33=0; for (var ig=0; ig<l5l.length; ig++){if (l5l[ig]==a){O33=ig; break; }}l3l[Ik]=O33; o11.push([Ik,l3l[Ik],a.name]); }}return o11; };HTMLEditor.I34= function (ik,o11){for (var i=0; i<o11.length; i++){if (ik.getElementsByTagName(o11[i][0]).length>o11[i][1])ik.getElementsByTagName(o11[i][0])[o11[i][1]].name=o11[i][2]; }};HTMLEditor.i5l= function (ik){var O1j=ik.all; var o11=[]; var l3l=[];for (var i=0; i<O1j.length; i++){var a=O1j[i]; if (a.href && a.href.length>0 && !(a.src && a.src.length>0)){var Ik=a.tagName; var l5l=ik.getElementsByTagName(Ik); var O33=0; for (var ig=0; ig<l5l.length; ig++){if (l5l[ig]==a){O33=ig; break; }}l3l[Ik]=O33; o11.push([Ik,l3l[Ik],a.href]); }}return o11; };HTMLEditor.O11= function (l1b){var l3l=[];function I5l(O25,o1x,O1x,l2q,l34,o5m,O5m,l5m){var Ik=o1x.replace(/^<([^\s>]+)/,"$1"); var i5m= true; var i=0; for ( ; i<l3l.length; i++){if (l3l[i][0]==Ik){i5m= false; break; }}if (i5m){l3l[i]=[Ik]; }l3l[i].push(o5m); }var o2k=new RegExp("(\x3c[^\\s>\x3c]+)([^>\x3c]*?)(href=)(\"|\')([^\\4]*?)(\\4)((?:[^>\x3c]*?)>)","ig"); l1b.replace(o2k,I5l); return l3l; };HTMLEditor.I5m= function (ik,o11){for (var i=0; i<o11.length; i++){ik.getElementsByTagName(o11[i][0])[o11[i][1]].href=o11[i][2]; }};HTMLEditor.I11= function (ik,o11){for (var ig=0; ig<o11.length; ig++){var O1j=ik.getElementsByTagName(o11[ig][0]); var o28=1; for (var i=0; i<O1j.length; i++){if (!O1j[i].href)continue; if (o11[ig][o28] && o11[ig][o28].length>0){O1j[i].href=o11[ig][o28].replace(/&amp;/ig,"&"); }o28++; }}};HTMLEditor.o5n= function (ik){var O1j=ik.getElementsByTagName("IMG"); var o11=[]; for (var i=0; i<O1j.length; i++){var a=O1j[i]; o11.push((a.src && a.src.length>0)?a.src:null); }return o11; };HTMLEditor.O5n= function (l1b){var o11=[]; function I5l(O25,o1x,O1x,l2q,l34,o5m){o11.push(O25); return O25; }l1b.replace(/(<img(?:.*?)>)/ig,I5l); return o11; };HTMLEditor.l5n= function (l1b,o11){var i=-1; function I5l(O25,o1x,O1x,l2q,l34,o5m){i++; return o11[i]; }return l1b.replace(/(<img(?:.*?)>)/ig,I5l); };HTMLEditor.i11= function (l1b){var o11=[]; function I5l(O25,o1x,O1x,l2q,l34,o5m){o11.push(l2q); return O25; }l1b.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,I5l); return o11; };HTMLEditor.i5n= function (l1b){var o11=[[],[]]; function I5l(O25,o1x,O1x,l2q,l34,o5m){o11[0].push(l2q); return O25; }function o27(O25,o1x,O1x,l2q,l34,o5m){o11[1].push(l2q); return O25; }l1b.replace(/(<img(?:.*?))(width=)([^\s>]+)(\s*)((?:.*?)>)/ig,I5l); l1b.replace(/(<img(?:.*?))(height=)([^\s>]+)(\s*)((?:.*?)>)/ig,o27); return o11; };HTMLEditor.I5n= function (l1b,o11){var i=-1; var ig=-1; function I5l(O25,o1x,O1x,l2q,l34,o5m){i++; return o1x+O1x+o11[0][i]+l34+o5m; }function o27(O25,o1x,O1x,l2q,l34,o5m){ig++; return o1x+O1x+o11[1][ig]+l34+o5m; }return l1b.replace(/(<img(?:.*?))(width=")([^\s>]+)(")((?:.*?)>)/ig,I5l).replace(/(<img(?:.*?))(height=")([^\s>]+)(")((?:.*?)>)/ig,o27); };HTMLEditor.o5o= function (l1b){var o11=[]; function I5l(O25,o1x){o11.push(o1x); return O25; }l1b.replace(/(<area[^>]*?>)/ig,I5l); return o11; };HTMLEditor.O5o= function (l1b,o11){var i=-1; function I5l(O25,o1x){i++; return o11[i]; }return l1b.replace(/(<area[^>]*?>)/ig,I5l); };HTMLEditor.o12= function (ik,o11){var O1j=ik.getElementsByTagName("IMG"); var o28=0; for (var i=0; i<O1j.length; i++){if (!O1j[i].src)continue; if (o11[o28] && o11[o28].length>0){O1j[i].src=o11[o28].replace(/&amp;/ig,"&"); }o28++; }};HTMLEditor.l5o= function (l1b,o11){var i=-1; function I5l(O25,o1x,O1x,l2q,l34,o5m){i++; return o1x+O1x+o11[i]+l34+o5m; }return l1b.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,I5l); };HTMLEditor.i12= function (ik){var O1j=ik.getElementsByTagName("IMG"); for (var i=0; i<O1j.length; i++){if (O1j[i].getAttribute(HTMLEditor.is) && O1j[i].getAttribute(HTMLEditor.is).length>0){try {if (HTMLEditor.is_ie)HTMLEditor.lc(O1j[i],"dragstart",HTMLEditor.I5g); else HTMLEditor.lc(O1j[i],"draggesture",HTMLEditor.I5g); }catch (t){}if (HTMLEditor.is_ie)HTMLEditor.Ok(O1j[i],"dragstart",HTMLEditor.I5g); else HTMLEditor.Ok(O1j[i],"draggesture",HTMLEditor.I5g); }}};HTMLEditor.i13= function (id,om){var i5o=document.getElementById(id); if (!i5o)return null; if (!HTMLEditor.is_Safari && i5o.className=="ST_div" && (typeof om=="undefined" || om=="undefined")){i5o.parentNode.style.display="none"; return null; }return null; var I5o=document.getElementById(id+"__disabling"); var l1t=0,_top=0; var ik=i5o; var parent=HTMLEditor.o5p(i5o); if (parent==null)parent=document.body; var l4u=HTMLEditor.O5p(ik,(HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)?document.body:parent, false); var l4u=HTMLEditor.O5p(ik,parent, false); l1t=l4u.l1t; _top=l4u._top; var l5p; if (I5o!=null)l5p=I5o; else {l5p=document.createElement("DIV"); l5p.className="DisableSpan"; l5p.id=id+"__disabling"; l5p.style.position="absolute"; l5p.style.zIndex=01750; l5p.style.visibility="visible"; }if (!HTMLEditor.is_ie || (HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)){ik=parent; if (I5o==null)l5p.i5p=[]; while (ik && ik.tagName && ik.tagName.toUpperCase()!="BODY"){if (ik.scrollTop)_top-=parseInt(ik.scrollTop); if (ik.scrollLeft)l1t-=parseInt(ik.scrollLeft); if (I5o==null && HTMLEditor.I5p(ik)){var o5q= {O5q:ik.scrollTop,l5q:ik.scrollLeft } ; var i5q=l5p.i5p.length; var i4w=new Function("event","HTMLEditor_onParentScroll(event,\""+id+"__disabling"+"\",this,"+i5q+")"); l5p.i5p.push( {i4w:i4w,parent:ik,l15:o5q } ); HTMLEditor.Ok(ik,"scroll",i4w); }ik=ik.parentNode; }if (HTMLEditor.is_ie)parent=document.body; }if (I5o==null)parent.appendChild(l5p); l5p.style.top=_top+"px"; l5p.style.left=l1t+"px"; var i8=0; var I8=0; if (i8==0)i8=i5o.offsetWidth; if (I8==0)I8=i5o.offsetHeight; l5p.style.width=parseInt(i8)+"px"; l5p.style.height=parseInt(I8)+"px"; return id+"__disabling"; };HTMLEditor.O5p= function (I52,parent,om){var ik=I52; var _top=0,l1t=0; while (ik && typeof ik!="undefined" && ik!=parent && ik.tagName.toUpperCase()!="HTML"){var borderTopWidth; var borderLeftWidth; l1t+=parseInt(ik.offsetLeft); _top+=parseInt(ik.offsetTop); ik=ik.offsetParent; if (ik && typeof ik!="undefined"){if (ik.clientLeft)l1t+=parseInt(ik.clientLeft); if (ik.clientTop)_top+=parseInt(ik.clientTop); if (!HTMLEditor.is_ie && ((om && ik.tagName.toUpperCase()!="BODY") || (!om && (ik.tagName.toUpperCase()=="BODY" || HTMLEditor.l10)))){borderTopWidth=parseInt(HTMLEditor.Oy(ik,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; borderLeftWidth=parseInt(HTMLEditor.Oy(ik,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; l1t+=borderLeftWidth; _top+=borderTopWidth; }if (HTMLEditor.is_ie && !om && (ik.tagName.toUpperCase()=="TABLE" || (ik.tagName.toUpperCase()=="BODY" && document.compatMode=="BackCompat"))){var top=ik.tagName.toUpperCase()=="BODY"?HTMLEditor.Oy(ik,"border-top-width").toUpperCase(): ""; borderTopWidth=parseInt(HTMLEditor.Oy(ik,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; if (borderTopWidth==0){if (top=="THIN")borderTopWidth=1; else if (top=="MEDIUM")borderTopWidth=2; else if (top=="THICK")borderTopWidth=4; }var left=ik.tagName.toUpperCase()=="BODY"?HTMLEditor.Oy(ik,"border-left-width").toUpperCase(): ""; borderLeftWidth=parseInt(HTMLEditor.Oy(ik,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; if (borderLeftWidth==0){if (left=="THIN")borderLeftWidth=1; else if (left=="MEDIUM")borderLeftWidth=2; else if (left=="THICK")borderLeftWidth=4; }if (borderLeftWidth==0 && borderTopWidth==0 && typeof ik.border!="undefined" && ik.border!=null && !isNaN(parseInt(ik.border)))borderLeftWidth=borderTopWidth=parseInt(ik.border); l1t-=borderLeftWidth; _top-=borderTopWidth; }}}if (ik && typeof ik!="undefined" && HTMLEditor.is_ie && document.compatMode!="BackCompat"){var marginTop=parseInt(HTMLEditor.Oy(ik,"margin-top")); if (isNaN(marginTop))marginTop=0; var marginLeft=parseInt(HTMLEditor.Oy(ik,"margin-left")); if (isNaN(marginLeft))marginLeft=0; l1t+=marginLeft; _top+=marginTop; }if (!HTMLEditor.l10){ik=I52; while (ik && ik!=parent){if (ik.scrollTop)_top-=parseInt(ik.scrollTop); if (ik.scrollLeft)l1t-=parseInt(ik.scrollLeft); ik=ik.parentNode; }}return {_top:_top,l1t:l1t } ; };function HTMLEditor_onParentScroll(event,I5q,parent,i){var l1k=document.getElementById(I5q); var l15=l1k.i5p[i].l15; if (HTMLEditor.is_ie)parent=event.srcElement; l1k.style.top=parseInt(l1k.style.top)-(parent.scrollTop-l15.O5q)+"px"; l1k.style.left=parseInt(l1k.style.left)-(parent.scrollLeft-l15.l5q)+"px"; l15.O5q=parent.scrollTop; l15.l5q=parent.scrollLeft; }HTMLEditor.l17= function (id,om){var i5o=document.getElementById(id); if (!i5o)return null; if (!HTMLEditor.is_Safari && i5o.className=="ST_div" && (typeof om=="undefined" || om=="undefined")){i5o.parentNode.style.display=""; return null; }var ik=document.getElementById(id+"__disabling"); if (ik){if (typeof ik.i5p!=undefined && ik.i5p!=null && ik.i5p.length>0){for (var i=0; i<ik.i5p.length; i++)HTMLEditor.lc(ik.i5p[i].parent,"scroll",ik.i5p[i].i4w); }ik.parentNode.removeChild(ik); }};HTMLEditor.I5p= function (Oc){if (Oc.clientHeight>0 && Oc.scrollHeight && Oc.scrollHeight>0){var clientHeight=Oc.clientHeight; if (!HTMLEditor.is_ie){var borderTopWidth=parseInt(Oy(Oc,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; var borderBottomWidth=parseInt(Oy(Oc,"border-bottom-width")); if (isNaN(borderBottomWidth))borderBottomWidth=0; clientHeight+=(borderTopWidth+borderBottomWidth); }if (Oc.scrollHeight>clientHeight){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientHeight<Oc.offsetHeight)return true; }else return true; }}if (Oc.clientWidth>0 && Oc.scrollWidth && Oc.scrollWidth>0){var clientWidth=Oc.clientWidth; if (!HTMLEditor.is_ie){var borderLeftWidth=parseInt(Oy(Oc,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; var borderRightWidth=parseInt(Oy(Oc,"border-right-width")); if (isNaN(borderRightWidth))borderRightWidth=0; clientWidth+=(borderLeftWidth+borderRightWidth); }if (Oc.scrollWidth>clientWidth){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientWidth<Oc.offsetWidth)return true; }else return true; }}return false; };HTMLEditor.o5p= function (l1k){var Oc=l1k; do {Oc=Oc.parentNode; if (HTMLEditor.I5p(Oc))return Oc; }while (Oc && Oc.tagName.toUpperCase()!="BODY");return Oc; };HTMLEditor.o5r=null; try {HTMLEditor.o5r=(document.all)?document.body.onload:window.onload; }catch (w){}HTMLEditor.z= function (t,I5c){if (typeof I5c=="undefined")if (HTMLEditor.o5r!=null && typeof HTMLEditor.o5r=="function")HTMLEditor.o5r(t); HTMLEditor.Z= function (Oj){if (Oj){for (var i=0; i<HTMLEditor.o9.length; i++){if (HTMLEditor.o9[i].i9){var X=HTMLEditor.o9[i].X; if (X.Od && X.Od!=null){var ik; if (HTMLEditor.is_ie){Oj=window.event; ik=Oj.srcElement; }else {ik=Oj.target; }while (ik && ik!=X.Od)ik=ik.parentNode; if (ik==null){var ld=X.Od.parentNode.removeChild(X.Od); if (ld) delete ld; X.Od=null; X.Id=null; HTMLEditor.Od=null; if (X.iz){X.iz.select(); X.iz=null; }}}}}}return true; };setTimeout( function (){HTMLEditor.Ok(document.body,"mousedown", function (event){var oe= false; try {oe=HTMLEditor.Z(HTMLEditor.is_ie?window.event:event); }catch (t){}return oe; } ); } ,0454); if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (typeof window.Sys.WebForms.PageRequestManager.getInstance()._updateControls=="function")){var O5r=window.Sys.WebForms.PageRequestManager.getInstance()._updateControls; var l5r=window.Sys.WebForms.PageRequestManager.getInstance(); window.Sys.WebForms.PageRequestManager.getInstance()._updateControls= function (){var i5r=[]; for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; var I5r=document.getElementById(X.mainDivId); var o5s= false; var O5s; if (I5r==null){o5s= true; }else {if (arguments && arguments.length && arguments.length>0 && arguments[0] && arguments[0].length){for (var i=0; i<arguments[0].length; i++){O5s=arguments[0][i].substr(1).replace(/\$/g,"_"); var l5s=document.getElementById(O5s); if (l5s!=null){var Oc=I5r.parentNode; while (Oc && Oc!=l5s && Oc.tagName.toUpperCase()!="BODY"){Oc=Oc.parentNode; }if (Oc==l5s){o5s= true; break; }}}}}HTMLEditor.o9[ig].l9=o5s; if (o5s){try {X.Om(); }catch (o4q){} ; if (typeof X.Ia=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.Ia); X.Ia=null; }HTMLEditor.o9[ig].i9= false; if (!X._autoFocus && !X._wasFocused && I5r!=null){X.focusEditor(); HTMLEditor.l17(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.l17(X.ShowQuickFormatDivId); }if (I5r!=null)X.UnlinkEditorOject(); if (X.n!=null){i5r.push(X.n); }}}}var i5s=O5r.apply(l5r,arguments); while (i5r.length>0){try {var I5s=i5r.pop(); var ok=I5s.parentNode.removeChild(I5s); delete ok; }catch (w){}}setTimeout( function (){var o5t=[]; for (var ig=0; ig<HTMLEditor.o9.length; ig++){var X=HTMLEditor.o9[ig].X; var I5r=document.getElementById(X.mainDivId); if (I5r==null){o5t.push(X); }else {if (X.isActivated && X.mainDivVisible && X.O1=="html"){HTMLEditor.Ix(X,X.l1,!X.showAnchors); HTMLEditor.oy(X,X.l1,!X.showPlaceHolders); X.updateToolbar(); }try {X.i2o(); }catch (t){}}}for (var ig=0; ig<o5t.length; ig++){var X=o5t[ig]; try {X.i2o(); }catch (t){}X.UnlinkEditorOject(); HTMLEditor.ib(X); }} ,0); return i5s; } ; }if (typeof window.__doPostBack=="function"){var O5t=window.__doPostBack; window.__doPostBack= function (l4n,i4n){for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; if (document.getElementById(X.mainDivId)==null)continue; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X))return; }if (!(!X.AjaxCurrentContent && !X.o0))try {X.openWait(); }catch (t){} ; }}setTimeout( function (){for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; if (document.getElementById(X.mainDivId)==null)continue; if (HTMLEditor.is_Safari){try {X.Il(); }catch (t){} ; }}}O5t(l4n,i4n); } ,0); } ; }if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){var op=window.Sys.WebForms.PageRequestManager.getInstance(); if (op._oboutEditor_onFormSubmit==null || typeof op._oboutEditor_onFormSubmit=="undefined"){op._oboutEditor_onFormSubmit=op._onsubmit; op._onsubmit= function (){for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){HTMLEditor.o9[ig].X.Op= false; }}var oe= true; if (op._oboutEditor_onFormSubmit!=null && typeof op._oboutEditor_onFormSubmit!="undefined")oe=op._oboutEditor_onFormSubmit(); for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; if (!X.Op){try {oe=oe && X.__submit(); }catch (w){}}X.Op= false; }}return oe; } ; }}if (HTMLEditor.S())if (window.Sys && typeof window.Sys!="undefined")if (window.Sys.UI && typeof window.Sys.UI!="undefined")if (window.Sys.UI.DomElement && typeof window.Sys.UI.DomElement!="undefined")if (typeof window.Sys.UI.DomElement.setVisible=="function"){var G=window.Sys.UI.DomElement.setVisible; window.Sys.UI.DomElement.setVisible= function (ik,value){G(ik,value); for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; if (document.getElementById(X.mainDivId)!=null){var Oc=document.getElementById(X.mainDivId).parentNode; while (Oc && Oc!=ik && Oc.tagName && Oc.tagName.toUpperCase()!="BODY")Oc=Oc.parentNode; if (Oc==ik){if (!value){if (X.mainDivVisible && X.lr){X.setVisibility( false); }}else {if (X.Ot() && !X.mainDivVisible && X.lr){X.setVisibility( true); }}}}}}};}if (typeof window.Page_ClientValidate=="function"){var l5t=window.Page_ClientValidate; window.Page_ClientValidate= function (o1x){for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; var la=X.clientID; var I9=document.getElementById(la); var i17=""; if (I9==null){if (document.getElementsByName(la) && document.getElementsByName(la).length && document.getElementsByName(la).length>0)I9=document.getElementsByName(la)[0]; }if (I9!=null){if (X.clientValidation){i17=X.getContent(); }else {if (X.O1=="preview"){if (X.l14=="html")i17=X.o18; else i17=X.I13.value; }else if (HTMLEditor.is_ie){if (X.O1=="html"){i17=X.l1.body.innerHTML; }else {if (X.I13)i17=X.I13.value; }}else {i17=X.getHTML(); }i17=HTMLEditor.O12(i17); if (i17.length>0)if (i17.toLowerCase()=="<br />" || i17.toLowerCase()=="<br/>" || i17.toLowerCase()=="<br>")i17=""; else i17="content"; }I9.value=i17; }HTMLEditor.o9[ig].I9=I9; }}var oe=l5t(o1x); for (var ig=0; ig<HTMLEditor.o9.length; ig++){if (HTMLEditor.o9[ig].i9){var X=HTMLEditor.o9[ig].X; var I9=HTMLEditor.o9[ig].I9; if (I9!=null){I9.value=""; }}}return oe; } ; }};try {if (document.all)document.body.onload=HTMLEditor.z; else window.onload=HTMLEditor.z; }catch (w){setTimeout( function (){HTMLEditor.z(null, true); } ,0); }HTMLEditor.i5t=["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.I2l= function (html){var oe=HTMLEditor.O12(html.replace(/[\0-\x1f]+/g," ")); var I5t; oe=oe.replace(/^[^\0]+?<html(?:[^>]*?)>/gi,""); oe=oe.replace(/<\/html(?:[^>]*?)>[^\0]*$/gi,""); oe=oe.replace(/<head(?:[^>]*?)>[^\0]*?<\/head(?:[^>]*?)>/gi,""); oe=oe.replace(/<body[^>]*?>([^\0]*?)<\/body(?:[^>]*?)>/gi,"$1"); oe=oe.replace(/<\/?html(?:[^>]*?)>/gi,""); oe=oe.replace(/<\/?head(?:[^>]*?)>/gi,""); oe=oe.replace(/<\/?body(?:[^>]*?)>/gi,""); oe=oe.replace(/<!--(\w|\W)+?-->/ig,""); oe=oe.replace(/(<[\/]?)(?:o|v|x|p|w|\?xml):(\w+)([^>]*?>)/ig,"$1$2$3"); oe=oe.replace(/<(IMAGEDATA)([^>]*?)>/ig,"<img$2>"); oe=oe.replace(/<p[^>]*><p>&nbsp;<\/p><\/p>/ig,"<br>"); oe=oe.replace(/<p[^>]*?\/>/ig,"").replace(/<(p|div)[^>]*?>&nbsp;<\/(\1)[^>]*?>/ig,"").replace(/<(p|div)[^>]*?><\/(\1)[^>]*?>/ig,""); do {I5t=oe; oe=oe.replace(/<([^>]*)(?:class|size|lang|face|start|type|border|[ovwxp]:\w+)=(?:'[^']*'|"[^"]*"|[^> ]+)([^>]*)>/ig,"<$1$2>"); }while (oe!=I5t);var div=document.createElement("div"); div.innerHTML=oe; function I1v(Oc){var O33=Oc.childNodes.length; for (var i=0; i<Oc.childNodes.length; i++){var I31=Oc.childNodes.item(i); if (I31.nodeType==1){if (I31.tagName.indexOf("/")>=0){i--; I31.parentNode.removeChild(I31); }else {var search=I31.tagName.toLowerCase(); var ot= false; var o5u=HTMLEditor.i5t.length; for (var ig=0; ig<o5u; ig++)if (HTMLEditor.i5t[ig]==search){ot= true; break; }I1v(I31); if (!ot){i+=I31.childNodes.length; while (I31.firstChild)I31.parentNode.insertBefore(I31.firstChild,I31); I31.parentNode.removeChild(I31); i--; }else {var O5u=I31.style.backgroundColor; var l5u=I31.style.color; I31.style.cssText=""; I31.removeAttribute("style"); if (I31.getAttribute("width") && I31.getAttribute("width").length>0)I31.style.width=I31.getAttribute("width"); if (I31.width && I31.width.length>0)I31.style.width=I31.width; I31.width=""; try {I31.removeAttribute("width"); }catch (t){}if (I31.getAttribute("height") && I31.getAttribute("height").length>0)I31.style.height=I31.getAttribute("height"); if (I31.height && I31.height.length>0)I31.style.height=I31.height; I31.height=""; try {I31.removeAttribute("height"); }catch (t){}if (search=="table"){I31.style.borderLeftWidth="1px"; I31.style.borderLeftColor="black"; I31.style.borderLeftStyle="solid"; I31.style.borderTopWidth="1px"; I31.style.borderTopColor="black"; I31.style.borderTopStyle="solid"; I31.style.backgroundColor=O5u; I31.style.color=l5u; }if (search=="td"){I31.style.borderRightWidth="1px"; I31.style.borderRightColor="black"; I31.style.borderRightStyle="solid"; I31.style.borderBottomWidth="1px"; I31.style.borderBottomColor="black"; I31.style.borderBottomStyle="solid"; I31.style.backgroundColor=O5u; I31.style.color=l5u; }if (search=="font" || search=="span"){I31.style.backgroundColor=O5u; I31.style.color=l5u; var O2u=I31.attributes; var O33=0; for (var O5f=0; O5f<O2u.length; ++O5f){var a=O2u.item(O5f); if (!a.specified)continue; O33++; }if (O33==0 && I31.style.cssText==""){i+=I31.childNodes.length; while (I31.firstChild)I31.parentNode.insertBefore(I31.firstChild,I31); I31.parentNode.removeChild(I31); i--; }}}}}}}I1v(div); oe=HTMLEditor.O12(div.innerHTML); delete div; oe=oe.replace(/<[\/]?(xml|del|ins)[^>]*?>/ig,""); oe=oe.replace(/<(p|div)[^>]*?>/ig,""); oe=oe.replace(/<\/(p|div)[^>]*?>/ig,"<br>"); do {I5t=oe; oe=oe.replace(/<b><\/b>/ig,"").replace(/<i><\/i>/ig,"").replace(/<u><\/u>/ig,"").replace(/<strong><\/strong>/ig,"").replace(/<em><\/em>/ig,"").replace(/<sub><\/sub>/ig,"").replace(/<sup><\/sup>/ig,""); oe=oe.replace(/<span[^>]*?><\/span>/ig,"").replace(/<span>([^<]+?)<\/span>/ig,"$1"); oe=oe.replace(/<font[^>]*?><\/font>/ig,"").replace(/<font>([^<]+?)<\/font>/ig,"$1"); }while (oe!=I5t);oe=oe.replace(/&rsquo;/g,"'"); oe=oe.replace(/&lsquo;/g,"'"); oe=oe.replace(/&ndash;/g,"-"); oe=oe.replace(/&mdash;/g,"-"); oe=oe.replace(/&hellip;/g,"..."); oe=oe.replace(/&quot;/g,"\""); oe=oe.replace(/&ldquo;/g,"\""); oe=oe.replace(/&rdquo;/g,"\""); oe=oe.replace(/\cA/g,""); oe=oe.replace(/&bull;/g,""); oe=oe.replace(/[ ]+/g," ").replace(/(&nbsp;)+/g,"&nbsp;"); if (document.all)oe=oe.replace(/^[\0-\x1f]*&nbsp;/,""); return oe; };HTMLEditor.prototype.lz= function (Oj,clientX,clientY){var ip; var oq; var parent; var X=this ; if (HTMLEditor.l10)this.f= true; X.i1a(); if (HTMLEditor.is_Safari && Oj!=null){parent=Oj.target; }else {ip=X.Ip(); oq=X.Oq(ip); parent=HTMLEditor.getSelParent(X); }var i5u= false; var I5u=parent; var o5v=parent; X.O5v=[]; X.iz=null; while (o5v.nodeType==3 || (o5v.tagName && o5v.tagName.toUpperCase()!="BODY")){var par=o5v.parentNode; var l5v=0; for ( ; l5v<par.childNodes.length; l5v++)if (par.childNodes.item(l5v)==o5v)break; X.O5v.push(l5v); o5v=o5v.parentNode; }setTimeout( function (){var i5v=document.createElement("DIV"); i5v.className="CNTXT_div"; var html=new l25(); var I5v=0; html.write("<table>"); X.Id=[]; var o5w=X._ContextMenu; for (var ig=0; ig<o5w.length; ig++){o5w[ig][3]= false; }while (parent!=null){if (parent.tagName){if (parent.getAttribute(HTMLEditor.ls) && parent.getAttribute(HTMLEditor.ls).length>0){}else {var l9=(I5v>0); for (var ig=0; ig<o5w.length; ig++){var O5w=o5w[ig][0].toUpperCase().split(" "); var l5w= true; var tagName=parent.tagName; if (parent.getAttribute("dummytag") && parent.getAttribute("dummytag").length>0)tagName=parent.getAttribute("dummytag"); if (O5w[0]==tagName.toUpperCase() && O5w.length>1){var O2u=parent.attributes; var value=""; var name=""; l5w= false; for (var i=0; i<O2u.length; ++i){var a=O2u.item(i); if (!a.specified)continue; name=a.name.toUpperCase(); value=a.value.toUpperCase(); if (name==O5w[1]){l5w= true; break; }}if (l5w && O5w.length>2){if (O5w[2]!=value){l5w= false; }else {if (value.toLowerCase()=="application/x-mplayer2")i5u= true; }}}if (parent.className && parent.className==HTMLEditor.il)l5w= false; if (((O5w[0]==tagName.toUpperCase()) || (HTMLEditor.contentEditable(parent, true) && O5w[0].toLowerCase()=="#contenteditable#")) && !o5w[ig][3] && !o5w[ig][6] && l5w){if (HTMLEditor.contentEditable(parent, true) && O5w[0].toLowerCase()=="#contenteditable#"){l9= false; I5v=0; html.clear(); html.write("<table>"); X.Id=[]; for (var i5w=0; i5w<o5w.length; i5w++){o5w[i5w][3]= false; }}if (l9){X.Id.push([null,null]); html.write("<tr><td nowrap><hr></td></tr>"); I5v++; l9= false; }o5w[ig][3]= true; var I5w=HTMLEditor.is_ie || o5w[ig][4]; if (o5w[ig][5] && typeof o5w[ig][5]=="function"){I5w &= o5w[ig][5](X,parent); }if (I5w){var o5v=parent; var og=[]; while (o5v.tagName.toUpperCase()!="BODY"){var par=o5v.parentNode; var l5v=0; for ( ; l5v<par.childNodes.length; l5v++)if (par.childNodes.item(l5v)==o5v)break; og.push(l5v); o5v=o5v.parentNode; }X.Id.push([o5w[ig][1],og,(o5w[ig][5] && typeof o5w[ig][5]=="string")]); }else {X.Id.push([null,[]]); }if (o5w[ig][1]==null)html.write("<tr><td nowrap><hr></td></tr>"); else html.write("<tr><td nowrap>&nbsp;&nbsp;&nbsp;"+o5w[ig][2]+"</td></tr>"); I5v++; }}}}parent=parent.parentNode; }html.write("</table>"); if (I5v>0){if (HTMLEditor.is_ie){if (ip.type.toLowerCase()=="control"){try {X.iz=X.l1.body.createControlRange(); while (oq.length>0){X.iz.add(oq.item(0)); oq.remove(0); try {oq.collapse( false); }catch (t){}}ip.empty(); }catch (t){}}}var i1s=document.createElement("div"); i1s.innerHTML=html.toString(); var o5x=i1s.firstChild; o5x.className="CNTXT_menu"; for (var i=0; i<I5v; i++){var O5x=o5x.rows.item(i); if (X.Id[i][0])O5x.className="CNTXT_item"; else O5x.className="CNTXT_item_disable"; }function l5x(){for (var i=0; i<I5v; i++){var O5x=o5x.rows.item(i); var i5x=O5x.cells.item(0); i5x.style.width="auto"; i5x.style.verticalAlign="top"; i5x.style.borderWidth="0px"; i5x.style.margin="0px"; i5x.style.padding="0px"; i5x.style.fontWeight="normal"; if (X.Id[i][0]){O5x.className="CNTXT_item"; HTMLEditor.Ov([O5x],["mouseover"], function (t){var ik; if (HTMLEditor.is_ie){t=window.event; ik=t.srcElement; }else {ik=t.target; }while (ik && (!ik.tagName || ik.tagName.toUpperCase()!="TR"))ik=ik.parentNode; ik.className="CNTXT_item_over"; return true; } ); HTMLEditor.Ov([O5x],["mouseout"], function (t){var ik; if (HTMLEditor.is_ie){t=window.event; ik=t.srcElement; }else {ik=t.target; }while (ik && (!ik.tagName || ik.tagName.toUpperCase()!="TR"))ik=ik.parentNode; ik.className="CNTXT_item"; HTMLEditor._stopEvent(t); } ); HTMLEditor.Ov([O5x],["mousedown"], function (t){var ik; if (HTMLEditor.is_ie){t=window.event; ik=t.srcElement; }else {ik=t.target; }while (ik && (!ik.tagName || ik.tagName.toUpperCase()!="TR"))ik=ik.parentNode; HTMLEditor._stopEvent(t); setTimeout( function (){var i29= false; try {if (X.iz){if (X.iz.item(0).tagName.toUpperCase()!="EMBED"){X.iz.select(); X.iz=null; }else {while (X.iz.length>0){while (X.iz.length>0)X.iz.remove(0); try {X.iz.collapse( false); }catch (t){}}X.iz=null; }}else if (HTMLEditor.is_ie)if (oq!=null)try {oq.select(); }catch (t){}var I5x=X.Id[ik.rowIndex][0]; var o5y=X.l1.body; var O5y=X.l1.body; var l5y=!(X.Id[ik.rowIndex][2]); var og=X.Id[ik.rowIndex][1]; var ld=X.Od.parentNode.removeChild(X.Od); while (og.length>0)o5y=o5y.childNodes.item(og.pop()); while (X.O5v.length>0)O5y=O5y.childNodes.item(X.O5v.pop()); delete ld; if (HTMLEditor.is_Safari)if (X.Iz){var i5y=X.Ip(); var l1e=X.Iz; X.i16(i5y,l1e); X.Iz=null; }if (l5y){X.o10(); i29= true; }I5x(X,o5y,O5y); X.Od=null; HTMLEditor.Od=null; X.Id=null; }catch (w){try {if (i29)X.I19( false); if (HTMLEditor.is_ie){HTMLEditor.o1k(ik,X); }}catch (O2a){}}} ,012); } ); }else {O5x.className="CNTXT_item_disable"; }}}if (HTMLEditor.is_ie && i5u)setTimeout( function (){X.iz=null; oq=null; X.l2a(null,l5x);} ,0); else l5x(); HTMLEditor.Ov([i5v],["contextmenu"], function (t){try {if (HTMLEditor.is_ie)oq.select(); else X.i16(ip,oq); }catch (I5y){}HTMLEditor._stopEvent(t); return false; } ); i5v.style.position="absolute"; i5v.style.display=""; i5v.appendChild(o5x); i5v.style.visibility="hidden"; var I52=X.A; var ik=X._textArea.parentNode.parentNode; if (!X._InsideOboutWindow)while (ik!=X.A){if (HTMLEditor.Oy(ik,"position").toLowerCase()=="absolute"){I52=X._textArea.parentNode.parentNode; break; }ik=ik.parentNode; }I52.appendChild(i5v); var y; var x; var O50; var zIndex=045070; ik=X._iframe; var o5z=HTMLEditor.O2o(X._iframe, false); while (ik && typeof ik!="undefined" && ik!=I52){var O5z=parseInt(HTMLEditor.Oy(ik,"z-index")); if (!isNaN(O5z) && O5z>zIndex)zIndex=O5z+1; ik=ik.parentNode; }y=clientY+o5z._top; x=clientX+o5z.l1t; var i2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientWidth:X.I0.document.documentElement.clientWidth; var I2n=(X.I0.document.compatMode=="BackCompat")?X.A.clientHeight:X.I0.document.documentElement.clientHeight; var Height=I2n+i50(X.I0.document); var Width=i2n+_GetScrollLeft(X.I0.document); var l5z=i5v.offsetHeight; var i5z=i5v.offsetWidth; var I5z=y; var o60=x; if (I5z+l5z>Height)y-=I5z+l5z-Height; if (o60+i5z>Width)x-=o60+i5z-Width; i5v.style.top=y+"px"; i5v.style.left=x+"px"; X.Od=i5v; HTMLEditor.Od=i5v; i5v.style.visibility="visible"; i5v.style.zIndex=zIndex; }else { delete i5v; X.Od=null; HTMLEditor.Od=null; }} ,0); if (Oj!=null)HTMLEditor._stopEvent(Oj); return false; };HTMLEditor.prototype.o1b= function (){var ip; var oq; var parent; var X=this ; ip=X.Ip(); oq=X.Oq(ip); parent=HTMLEditor.getSelParent(X); var i2n=X.l1.body.offsetWidth; var I2n=X.l1.body.offsetHeight; var l50=I2n/2; if (l50<=0)l50=024; var clientY=l50; var clientX=i2n/2; X.lz(null,clientX,clientY); };HTMLEditor.i1w= function (ik,iw,om){var I1w; if (HTMLEditor.is_ie && ik.tagName && (ik.tagName.toUpperCase()=="EMBED" || ik.tagName.toUpperCase()=="OBJECT")){var div=iw.createElement("DIV"); try {div.innerHTML=ik.outerHTML; I1w=div.firstChild; }catch (t){I1w=ik; } delete div; }else I1w=ik.cloneNode(om); return I1w; };HTMLEditor.O2z= function (O60){var value; var O33; try {O33=parseInt(O60)-1; }catch (t){return O60; }switch (O33){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=O60.replace(/"/g,"&quot;"); }return value; };HTMLEditor.ic= function (Oj){if (Oj.propertyName=="style.display")if (HTMLEditor.l60==null || typeof HTMLEditor.l60=="undefined"){HTMLEditor.l60= function (){for (var i=0; i<HTMLEditor.Iu.length; i++){var parent=HTMLEditor.Iu[i]; if (parent.iu!=null)if (parent.iu!=""+parent.style.display+""){if (typeof parent.Ic=="function"){parent.Ic( {srcElement:parent,propertyName: "style.display" } ); }}parent.iu=parent.style.display; }setTimeout( function (){HTMLEditor.l60=null; } ,0); } ; setTimeout(HTMLEditor.l60,024); }};if (!HTMLEditor.is_ie)try {CSSStyleDeclaration.prototype.__defineSetter__("display", function (value){HTMLEditor.ic( {srcElement:parent,propertyName: "style.display" } ); this.setProperty("display",value,"important"); } ); }catch (w){}HTMLEditor.Iu=[]; HTMLEditor.od= function (l1k){var oe=[]; for (var i=0; i<HTMLEditor.Iu.length; i++){var l15=HTMLEditor.Iu[i]; if (l15!=l1k){oe.push(l15); }}HTMLEditor.Iu=oe; };if (!HTMLEditor.is_ie)try {HTMLElement.prototype.__defineGetter__("innerText", function (){var html=new l25( true); HTMLEditor.i60(this,html); return html.toString(); } );}catch (w){}HTMLEditor.i60= function (I2a,html){var o32=I2a.childNodes; for (var i=0; i<o32.length; i++){var Oc=o32[i]; if (Oc.nodeType==3)html.write(Oc.nodeValue.replace("\n","")); if (Oc.nodeType==1){var display=HTMLEditor.Oy(Oc,"display"); var visibility=HTMLEditor.Oy(Oc,"visibility"); if (HTMLEditor.I60(Oc))html.write("\n"); if (HTMLEditor.o61(Oc))html.write("\t"); if (display!="none" && visibility!="hidden")HTMLEditor.i60(Oc,html); if (HTMLEditor.O61(Oc))html.write("\n"); }}};HTMLEditor.I60= function (ik){var l61=" div table p pre ol ul blockquote form fieldset "; return (l61.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.O61= function (ik){var l61=" br div table tr p pre ol ul li hr blockquote form fieldset legend "; return (l61.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.o61= function (ik){var l61=" td li "; return (l61.indexOf(" "+ik.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.canHaveChildren= function (Oc){if (HTMLEditor.is_ie)return Oc.canHaveChildren; else return !/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(Oc.tagName.toLowerCase()); };HTMLEditor.contentEditable= function (ik,om){while (ik!=null){try {var i61=null; if (ik.contentEditable!=null && typeof ik.contentEditable!="undefined" && !(HTMLEditor.is_Safari || HTMLEditor.l10)){if (!ik.contentEditable || ik.contentEditable=="false")i61= false; else i61= true; }else {var value=ik.getAttribute("contenteditable"); if (typeof value=="boolean")i61=value; else if (typeof value=="string" && value.toLowerCase()=="false")i61= false; }if (i61!=null && typeof i61=="boolean"){if (!i61){return ik; }}}catch (w){}if (typeof om!="undefined" && om)return null; if (ik.tagName!=null && typeof ik.tagName!="undefined" && (ik.tagName.toUpperCase()=="BODY" || ik.tagName.toUpperCase()=="HTML"))break; ik=ik.parentNode; }return null; };HTMLEditor.prototype.O43= function (){var X=this ; var l43=this.Ip(); var oq; try {oq=this.Oq(l43); }catch (w){return false; }var ik; if (!HTMLEditor.is_ie){ik=HTMLEditor.contentEditable(oq.startContainer); if (ik==null)ik=HTMLEditor.contentEditable(oq.endContainer); }else ik=HTMLEditor.contentEditable(HTMLEditor.getSelParent(X)); if (HTMLEditor.is_ie && ik!=null){try {oq.remove(ik); }catch (t){}oq=X.l1.body.createControlRange(); oq.add(ik); oq.select(); }else if (!HTMLEditor.is_ie && ik!=null){var ip=X.Ip(); var O16; if (ik.nextSibling!=null && ik.nextSibling.nodeType==3){O16=ik.nextSibling; }else {O16=X.l1.createTextNode(""); if (ik.nextSibling!=null)ik.parentNode.insertBefore(O16,ik.nextSibling); else ik.parentNode.appendChild(O16); }X.l16(ip); var oq=X.Oq(ip); oq.setStart(O16,0); oq.setEnd(O16,0); X.i16(ip,oq); }return true; };HTMLEditor.i48= function (t){var I61=t.keyCode?t.keyCode:t.which; var o62=t.shiftKey?t.shiftKey: ((I61==020)? true : false); if (((I61>=0101 && I61<=0132) && !o62) || ((I61>=0141 && I61<=0172) && o62))return true; else return false; };HTMLEditor.O62= {l62: 1,i62: 2,I62: 3,o63: 4,O63: 5,l63: 6,i63: 7,I63: 8,o64: 011,O64: 012,l64: 013,i64: 014 } ; HTMLEditor.I64= function (I2a){return I2a.nodeType==HTMLEditor.O62.o64?I2a:I2a.ownerDocument || I2a.document; } ; HTMLEditor.o65= function (O65){var iw; if (O65.nodeType==HTMLEditor.O62.o64){iw=O65; }else {iw=HTMLEditor.I64(O65); }if (HTMLEditor.is_ie && iw.compatMode!="CSS1Compat"){return iw.body; }return iw.documentElement; };HTMLEditor.O58= function (ik){var iw=HTMLEditor.I64(ik); var l65=HTMLEditor.l24 && iw.getBoxObjectFor && HTMLEditor.Oy(ik,"position")=="absolute" && (ik.style.top=="" || ik.style.left==""); var i65=HTMLEditor.o2e && !HTMLEditor.O2j.O2j("1.8.0.11"); var i4k= {x: 0,y: 0 } ; var I65=HTMLEditor.o65(iw); if (ik==I65){return i4k; }var parent=null; var o66; if (iw.getBoxObjectFor && !l65 && !i65){o66=iw.getBoxObjectFor(ik); var O66=iw.getBoxObjectFor(I65); i4k.x=o66.screenX-O66.screenX; i4k.y=o66.screenY-O66.screenY; }else if (ik.getBoundingClientRect){o66=ik.getBoundingClientRect(); var scrollTop=I65.scrollTop; var scrollLeft=I65.scrollLeft; i4k.x=o66.left+scrollLeft; i4k.y=o66.top+scrollTop; }else {var l66=ik; while (ik && typeof ik!="undefined" && ik.tagName.toUpperCase()!="BODY" && ik.tagName.toUpperCase()!="HTML"){i4k.x+=parseInt(ik.offsetLeft); i4k.y+=parseInt(ik.offsetTop); ik=ik.offsetParent; if (ik && typeof ik!="undefined"){if (ik.clientLeft)i4k.x+=parseInt(ik.clientLeft); if (ik.clientTop)i4k.y+=parseInt(ik.clientTop); }}ik=l66; if (HTMLEditor.l10 || (HTMLEditor.i2d && HTMLEditor.Oy(ik,"position")=="absolute")){i4k.y-=iw.body.offsetTop; }parent=ik.offsetParent; while (parent && parent!=iw.body){i4k.x-=parent.scrollLeft; if (!HTMLEditor.l10 || parent.tagName!="TR"){i4k.y-=parent.scrollTop; }parent=parent.offsetParent; }}return i4k; } ; 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();
