if (typeof HTMLEditor!="function")HTMLEditor= function (O,o,Y,I,A,e,U){if (typeof HTMLEditor.Z!="function")HTMLEditor.z(null, true); var X=this ; this.W=Y.replace(/(.+)_editPanel/i,"$1");this.O=O; this._textArea=(typeof Y=="string")?(document.getElementById(Y)):Y; if (o!=null){try {o.UnlinkEditorOject(); }catch (w){} ; var V=0; if (o.v!=null && typeof o.v.pop=="function"){while (o.v.length>0){var T=o.v.pop(); if (typeof T[0]=="function"){try {clearTimeout(T[1]); }catch (t){}V++; }}o.v=null; }}if (o!=null && (typeof o!="undefined") && o!="undefined" && !HTMLEditor.S() && o._textArea==this._textArea && this._textArea!=null){}HTMLEditor.R(this ); if (this._textArea==null){if (HTMLEditor.S())return this ; else {setTimeout( function (){eval(" try{if(typeof "+X.W+"_start != 'undefined') "+X.W+"_start();}catch(e){}"); } ,0144); return this ; }}if (HTMLEditor.r()){ this.Q=U; this.P=e; this.scriptVersion=e[0]; this.defaultTable=new Object(); this.main_alerts=[]; this.popup_headers=[]; this._NoDrop= false; this._NoPaste= false; this.N=null; this.n=null; this.M=null; this.showAnchors= true; this.showPlaceHolders= true; this._AjaxWait= true; this.rtlSet= false; this.isWord= false; this._pleaseWait= true; this._validationGroup=""; this._causesValidation= true; this.m= false; this.scrollIntoView= true; this.L=null; this.relativeImages= false; this._hotkeys=null; this._addCssFiles=null; this._autoFocus= true; this._wasFocused= false; this.l= true; this.K=null; this.keyboardEnabled= true; this.clientValidation= false; this.predicatedTags= false; this.onLoadingStart=null; this.onLoadingEnd=null; this.k=0; this.J= false; this.j=0; this.H= false; this.h= false; this.G=null; this.g=null; this.F=null; this.f= true; this.D=null; this.d=null; this.C=null; this.c=null; this.B=null; this.fullHTML= false; this.defaultStyles=""; this.suppressTab= false; this.ignoreTab= false; this.AjaxCurrentContent= true; this.NoScript= false; this.InitialCleanUp= false; this.NoUnicode= true; this.o0= false; this.O0= false; this.ClientCancel=null; this.l0=(document.getElementById("propertiesScript_"+this.W)!=null); this.onDrop=null; this._remainLf= false; this.onClientContentChanged=null; this.i0=null; this.I0= true; this.captureInDesign=null; this.dfltBlockElement="P"; this.ShowQuickFormatDivId=null; this._hiddenContent=null; this._hiddenCSS=null; if ((typeof I=="undefined") || I==null)this.I=new HTMLEditor.o1(); else this.I=I; if ((typeof A=="undefined") || A==null)this.A=document.body; else this.A=A; this.O1=window; this.l1=null; this.i1="html"; this.I1=null; this.o2=null; this._CSSfile=""; this._StartEnd= false; this.HTMLEditor=HTMLEditor; this._ContextMenu=[["#contenteditable#",HTMLEditor.O2,"Make editable", false , true ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.l2,"Flash properties", false , true ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.i2,"Copy Flash", false , false ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.I2,"Cut Flash", false , false ,"inner", false],["EMBED type application/x-shockwave-flash",HTMLEditor.o3,"Delete Flash", false , true ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.O3,"Media properties", false , true ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.i2,"Copy Media", false , false ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.I2,"Cut Media", false , false ,"inner", false],["EMBED type application/x-mplayer2",HTMLEditor.o3,"Delete Media", false , true ,"inner", false],["INPUT",HTMLEditor.l3,"INPUT properties", false , true ,"inner", false],["INPUT",HTMLEditor.o3,"Delete INPUT", false , true ,"inner", false],["PLACEHOLDER",HTMLEditor.i3,"PlaceHolder properties", false , true ,"inner", false],["PLACEHOLDER",HTMLEditor.o3,"Delete PlaceHolder", false , true ,"inner", false],["IMG",HTMLEditor.I3,"Image properties", false , true ,"inner", false],["IMG",HTMLEditor.i2,"Copy Image", false , false ,"inner", false],["IMG",HTMLEditor.I2,"Cut Image", false , false ,"inner", false],["IMG",HTMLEditor.o3,"Delete Image", false , true ,"inner", false],["DIV",HTMLEditor.o4,"DIV properties", false , true ,"inner", false],["DIV",HTMLEditor.o3,"Remove DIV", false , true ,"inner", false],["DIV",HTMLEditor.O4,"Remove DIV tag", false , true ,"inner", false],["A href",HTMLEditor.l4,"URL Link properties", false , true ,"inner", false],["A href",HTMLEditor.O4,"Remove URL Link", false , true ,"inner", false],["A name",HTMLEditor.i4,"Anchor properties", false , true ,"inner", false],["A name",HTMLEditor.o3,"Delete Anchor", false , true ,"inner", false],["TD",HTMLEditor.I4,"Cell properties", false , true ,"inner", false],["TABLE",HTMLEditor.o5,"Table properties", false , true ,"inner", false],["TABLE",HTMLEditor.i2,"Copy Table", false , false ,"inner", false],["TABLE",HTMLEditor.I2,"Cut Table", false , false ,"inner", false],["TABLE",HTMLEditor.o3,"Delete Table", false , true ,"inner", false],["FORM",HTMLEditor.O5,"Form properties", false , true ,"inner", false],["FORM",HTMLEditor.o3,"Remove FORM", false , true ,"inner", false],["FORM",HTMLEditor.O4,"Remove FORM tag", false , true ,"inner", false],["BODY",HTMLEditor.l5,"Cut", false , false ,HTMLEditor.i5, false],["BODY",HTMLEditor.I5,"Copy", false , false ,HTMLEditor.i5, false],["BODY",HTMLEditor.o6,"Paste", false , false ,HTMLEditor.O6, false],["BODY",HTMLEditor.l6,"Paste Plain Text", false , true ,HTMLEditor.i6, false],["BODY",HTMLEditor.I6,"Delete", false , true ,HTMLEditor.i5, false],["BODY",null,"", false , true ,"inner", false],["BODY",HTMLEditor.o7,"Select All", false , true ,"inner", false]]; try {var O7="?"+document.getElementsByName("OboutEditorVersion")[0].value; this.O7=O7; var l7=document.getElementsByName("FolderScript")[0].value; var i7=document.getElementsByName("FolderScriptSession")[0].value; this.I7=document.getElementsByName("FolderStyle")[0].value; this.o8=document.getElementsByName("FolderIcon")[0].value; this._FolderScript=l7; this.O8=i7; this.l8=null; this._tableProperties=e[1]; this._cellProperties=e[2]; this._imageProperties=e[3]; this._flashProperties=e[4]; this._mediaProperties=e[5]; this._bgImageProperties=e[6]; this._mozPastePlain=e[7]; this._selectColor=e[8]; this._clearStyles=e[011]; this._urlProperties=e[012]; this._insertIcon=e[013]; this._insertAnchor=e[014]; this._insertPlaceHolder=e[015]; this._insertSpec=e[016]; this._imageBrows=e[017]; this._flashBrows=e[020]; this._mediaBrows=e[021]; this._urlBrows=e[022]; this._spellCheck=e[023]; this._customPopup=e[024]; var X=this ; HTMLEditor._CUROBJ_=X; HTMLEditor.i8=0; this.I8=null; if (HTMLEditor.o9(".HE_editPanel"))this.I8= {O9: this._textArea.offsetWidth,l9: this._textArea.offsetHeight } ; this.l1=null; }catch (t){alert("Init : "+t.message); }}else { this.scriptVersion="notsupported"; }} ; HTMLEditor.i9=[]; HTMLEditor.I9= function (X){ this.X=X; this.id=X.W; this.O=X.O; this.oa= false; this.Oa= true; this.la=null; } ; HTMLEditor.ia= function (O){for (var i=0; i<HTMLEditor.i9.length; i++){if (O==HTMLEditor.i9[i].O){return HTMLEditor.i9[i].X; }}return null; };HTMLEditor.Ia= function (clientID){for (var i=0; i<HTMLEditor.i9.length; i++){if (clientID==HTMLEditor.i9[i].id){return HTMLEditor.i9[i].X; }}return null; };function oboutGetEditor(ob){return HTMLEditor.ia(ob); }function oboutGetEditorByClientId(ob){return HTMLEditor.Ia(ob); }HTMLEditor.Ob= function (id){for (var i=0; i<HTMLEditor.i9.length; i++){if (id==HTMLEditor.i9[i].id){return HTMLEditor.i9[i].X; }}return null; };HTMLEditor.R= function (X){var id=X.W; var index=-1; for (var i=0; i<HTMLEditor.i9.length; i++){if (id==HTMLEditor.i9[i].id){if (HTMLEditor.S()){if (typeof X.lb=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.lb); X.lb=null; }}index=i; break; }}if (index>=0)HTMLEditor.i9[index]=new HTMLEditor.I9(X); else HTMLEditor.i9.push(new HTMLEditor.I9(X)); if (HTMLEditor.S()){X.lb= function (ib,Ib){try {if (X._AjaxWait){X.UnlinkEditorOject(); X.oc(); }}catch (t){}} ; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(X.lb); }};HTMLEditor.Oc= function (X){var id=X.W; var index= false; var lc=[]; for (var i=0; i<HTMLEditor.i9.length; i++){if (id!=HTMLEditor.i9[i].id){lc.push(HTMLEditor.i9[i]); }}HTMLEditor.i9=lc; };HTMLEditor.prototype.ic= function (){HTMLEditor.R(this ); };HTMLEditor.prototype.UnlinkEditorOject= function (){var X=this ; if (typeof X.g=="function"){if (document.getElementById(this.mainDivId)==null)return; var Ic=document.getElementById(this.mainDivId).parentNode; while (Ic && Ic.tagName && Ic.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.od(Ic,"propertychange",HTMLEditor.Od); Ic.ld=null; HTMLEditor.Id(Ic); }else {Ic.ld=null; HTMLEditor.Id(Ic); }Ic=Ic.parentNode; }X.J= false; }try {X.clearPopups( true); }catch (w){}try {if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; }}catch (w){}};HTMLEditor.S= function (){if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined"))return true; return false; };HTMLEditor.prototype.getScriptById= function (name){var ie=document.getElementById(name); if (ie==null){var cell=document.getElementById(this.mainDivId).firstChild.rows.item(0).cells.item(0); for (var i=0; i<cell.childNodes.length; i++){var item=cell.childNodes.item(i); if (item.tagName && item.tagName.toUpperCase()=="SCRIPT"){ie=item; break; }}}if (ie!=null){var text=ie.text; if (typeof text=="undefined" || text=="")text=ie.innerHTML; var Ie="try{null}catch(ex){}"; var of=text.indexOf(Ie); var Of=text.lastIndexOf(Ie); if (of>=0 && Of>=0){text=text.substring(of+Ie.length,Of); ie=new Object(); ie.text=text; }}return ie; };HTMLEditor.prototype.If= function (name,og){for (var i=0; i<this.main_alerts.length; i++){if (name.toLowerCase()==this.main_alerts[i].name.toLowerCase())return this.main_alerts[i].message; }return og; };HTMLEditor.prototype.Og= function (name,og){for (var i=0; i<this.popup_headers.length; i++){if (name.toLowerCase()==this.popup_headers[i].name.toLowerCase())return this.popup_headers[i].title; }return og; };HTMLEditor.prototype.lg= function (name,og){for (var i=0; i<this.popup_headers.length; i++){if (name.toLowerCase()==this.popup_headers[i].name.toLowerCase())return this.popup_headers[i].message; }return og; };HTMLEditor.prototype._context_menu_loc= function (ig){for (var i=0; i<this._ContextMenu.length; i++){var Ig=this._ContextMenu[i]; var oh=Ig[2].toLowerCase().replace(/\s/g,"-"); for (var Oh=0; Oh<ig.length; Oh++){var lh=ig[Oh]; var ih=lh[0].toLowerCase(); if (oh==ih){Ig[2]=lh[1]; break; }}}};HTMLEditor.prototype.RemoveContextMenuItem= function (Ih){var oi=Ih.toLowerCase(); for (var i=0; i<this._ContextMenu.length; i++){var Ig=this._ContextMenu[i]; var oh=Ig[2].toLowerCase().replace(/\s/g,"_"); if (oh==oi){Ig[6]= true; break; }}};HTMLEditor._CUROBJ_=null; HTMLEditor.restoreOldTags=null; HTMLEditor.oe=null; HTMLEditor.i8=0; HTMLEditor.prototype.Oi= function (ii){if (this.k==0 && typeof this.onLoadingStart=="function")this.onLoadingStart((typeof ii=="string")?ii: "popup"); this.k++; };HTMLEditor.prototype.Ii= function (ii){if (this.k>0){ this.k--; if (this.k==0 && typeof this.onLoadingEnd=="function")this.onLoadingEnd((typeof ii=="string")?ii: "popup"); }};HTMLEditor.prototype.oj= function (name){var ig=[]; var X=this ; var Oj; for (var i=1; i<arguments.length; i++)ig.push(arguments[i]); function lj(){X[name].apply(X,ig); }function ij(Ij){try {lj(); }catch (t){alert(t.message+"- Script loading failed..."); }if (!HTMLEditor.ok && !HTMLEditor.is_ie)setTimeout( function (){try {if (HTMLEditor.Ok)HTMLEditor.od(Oj,"load",ij); document.body.removeChild(Oj); }catch (t){alert("Late loaded function ("+name+"): "+t.message); }} ,5); HTMLEditor.i8--; if (HTMLEditor.i8==0)HTMLEditor._CUROBJ_=null; X.Ii("script"); }try {lj(); }catch (t){if (typeof X[name]=="string"){function lk(){if (HTMLEditor._CUROBJ_!=null)setTimeout(lk,0144); HTMLEditor._CUROBJ_=X; HTMLEditor.i8=0; var ob=X[name]; X[name]=null; X.Oi("script"); if (HTMLEditor.is_Safari && !HTMLEditor.Ok){var ik=document.getElementById(X._hiddenContent+"_ifr_"+name); if (ik!=null){HTMLEditor.od(ik,"load",ij); document.body.removeChild(ik); }Oj=document.createElement("IFRAME"); Oj.style.width="0px"; Oj.style.height="0px"; Oj.id=X._hiddenContent+"_ifr_"+name; HTMLEditor.Ik(Oj,"load",ij); document.body.appendChild(Oj); ik=document.getElementById(X._hiddenContent+"_ifr_"+name); ik.src=ob; }else {Oj=document.createElement("IFRAME"); Oj.width="0"; Oj.height="0"; Oj.style.display="none"; if (HTMLEditor.is_Safari){Oj.name=X._hiddenContent+"_ifr_"+name; }HTMLEditor.Ik(Oj,"load",ij); Oj.src=ob; document.body.appendChild(Oj); }HTMLEditor.i8++; }lk(); }}};HTMLEditor.prototype.ll= function (Ij){var il=Ij.target; var Il=il.tagName.toUpperCase(); if (!this.mainDivVisible)return true; if (Il=="INPUT" || Il=="TEXTAREA")return true; if (Ij.keyCode==8){HTMLEditor._stopEvent(Ij); return false; }var X=this ; setTimeout( function (){if (X.I1.body.offsetWidth==0 && X.mode()=="html" && X.mainDivVisible && X._iframe){X._textArea.value=X.getHTML(); var om=X._textArea.parentNode.removeChild(X.l1); X.l1=null; delete om; X.activate(); }} ,024); };HTMLEditor.Om="OboutMSIEparagraph"; HTMLEditor.prototype.Im= function (on){if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (this.j>0){try { this.On(); }catch (t){} ; return true; }else this.j=1; if (HTMLEditor.S()){if (!this.AjaxCurrentContent && !this.O0){if (this._hiddenContent){try {var In="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(In) && document.getElementsByName(In).length && document.getElementsByName(In).length>0){document.getElementsByName(In)[0].value=""; }}catch (t){}}document.getElementsByName(this.content_submitted_name)[0].value=""; document.getElementsByName(this.content_canceled_name)[0].value=""; return true; } this.O0= false; }if (!X.h){var oo=null;if (this._hiddenContent){try {var In="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(In) && document.getElementsByName(In).length && document.getElementsByName(In).length>0){document.getElementsByName(In)[0].value=this.ContentChanged()?"1": ""; }}catch (t){} this.UnlinkEditorOject(); var Oo=this._formSubmit(); var Io=Oo[0]; oo=Oo[1]; if (this._textArea.form){document.getElementsByName(this._hiddenContent)[0].value=Io; }}if (this._hiddenCSS){document.getElementsByName(this._hiddenCSS)[0].value=this._CSSfile; }X.setOriginal(oo); }else {if (this._hiddenContent){try {var In="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(In) && document.getElementsByName(In).length && document.getElementsByName(In).length>0){document.getElementsByName(In)[0].value=""; }}catch (t){}}}document.getElementsByName(this.content_submitted_name)[0].value=X.H?"1": ""; X.H= false; document.getElementsByName(this.content_canceled_name)[0].value=X.h?"1": ""; X.h= false; if (!this.op && this.mainDivVisible)return false; try { this.On(); }catch (t){} ; if (!this._textArea.form){try { this.On(); }catch (t){} ; return true; }if (typeof on!="undefined" && on== true){ this._textArea.form.submit(); }return true; };HTMLEditor.prototype.__cancel= function (){var X=this ; var ie= true; if (typeof this.ClientCancel=="function"){ie= false; var Op=this.ClientCancel; try {ie=Op(this ); }catch (t){alert("ClientCancel function call error: "+t.message); }}if (ie)if (this.content_canceled_event){X.j=0; var lp= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){lp=Page_ClientValidate(X._validationGroup); }else {lp=Page_ClientValidate(); }}}catch (w){}}if (lp){X.h= true; X.openWait(); var ip= false; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){try {var Ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (Ip._updatePanelIDs && Ip._updatePanelIDs.length && Ip._updatePanelIDs.length>0)ip= true; }catch (w){}}if (ip){setTimeout( function (){var Ip=window.Sys.WebForms.PageRequestManager.getInstance(); var form=Ip._form; Ip._postBackSettings=Ip._createPostBackSettings( true ,null,null); Ip._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.O0= true; Ip._onFormSubmit(); Function._validateParams=save; try {X.On(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Im( true); } ,0); }}}};HTMLEditor.prototype.__submit= function (on){ this.oq= true; if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X,on))return false; }X.j=0; if (typeof on!="undefined"){var lp= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){lp=Page_ClientValidate(X._validationGroup); }else {lp=Page_ClientValidate(); }}}catch (w){}}if (lp){X.H= true; X.openWait(); var ip= false; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){try {var Ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (Ip._updatePanelIDs && Ip._updatePanelIDs.length && Ip._updatePanelIDs.length>0)ip= true; }catch (w){}}if (ip){setTimeout( function (){var Ip=window.Sys.WebForms.PageRequestManager.getInstance(); var form=Ip._form; Ip._postBackSettings=Ip._createPostBackSettings( true ,null,null); Ip._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.O0= true; Ip._onFormSubmit(); Function._validateParams=save; try {X.On(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Im(on); } ,0); }}}else {X.Im(on); }return true; };HTMLEditor.prototype.submit= function (Oq){var X=this ; var lp= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){lp=Page_ClientValidate(X._validationGroup); }else {lp=Page_ClientValidate(); }}}catch (w){}}if (lp){X.openWait(); setTimeout( function (){X.Im(typeof Oq!="function"); if (typeof Oq=="function")Oq(); } ,0); }};HTMLEditor.getSelParent= function (X){var lq=X.iq(); var Iq=X.or(lq); var parent=null; if (HTMLEditor.is_ie){if (lq.type.toLowerCase()=="control")parent=Iq.item(0); else parent=X.Or(Iq); }else {parent=X.Or(Iq); if (parent.nodeType!=3 && Iq.startContainer==Iq.endContainer){var p=parent; parent=parent.childNodes.item(Iq.startOffset); if (parent==null)parent=p; }}return parent; };HTMLEditor.lr= function (il){var ir=" legend fieldset "; return (ir.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.prototype.Ir= function (){var il=HTMLEditor.getSelParent(this ); while (il && il.tagName && il.tagName.toUpperCase()!="BODY"){if (HTMLEditor.lr(il)){return true; }il=il.parentNode; }return false; };HTMLEditor.prototype.lr= function (){try {var lq=this.iq(); if (HTMLEditor.is_ie){if (lq.type.toLowerCase()=="control")return true; else return false; }else {var Iq=this.or(lq); var parent=this.Or(Iq); if (parent.nodeType!=3 && Iq.startContainer==Iq.endContainer){if (!parent.tagName)return false; if (Iq.startContainer.childNodes.item(Iq.startOffset)==null)return false; if (Iq.startOffset==Iq.endOffset && Iq.startContainer.childNodes.item(Iq.startOffset).tagName && Iq.startContainer.childNodes.item(Iq.startOffset).tagName.toUpperCase()=="BR")return false; if (parent.tagName.toUpperCase()=="BODY" && Iq.startOffset==0 && Iq.endOffset>0 && Iq.endOffset==parent.childNodes.length)return false; if (Iq.startOffset==Iq.endOffset && Iq.startContainer.childNodes.item(Iq.startOffset).nodeType==3){return false; }return true; }else return false; }}catch (t){return true; }};HTMLEditor.prototype.os=0; HTMLEditor.prototype.Os= false; HTMLEditor.prototype.op= false; HTMLEditor.prototype.ls= false; HTMLEditor.prototype.is= false; HTMLEditor.prototype.Is= false; HTMLEditor.prototype.isActivated= false; HTMLEditor.prototype.ot= false; HTMLEditor.Ot="obout-no-contextmenu"; HTMLEditor.prototype.noContextMenuAttributeName= function (){return HTMLEditor.Ot; };HTMLEditor.lt="obout-attached-id"; HTMLEditor.prototype.attachedIdAttributeName= function (){return HTMLEditor.lt; };HTMLEditor.prototype.it= function (il){var It=null; if (il.getAttribute(HTMLEditor.lt) && il.getAttribute(HTMLEditor.lt).length>0){var par=il.parentNode; while (par && par.tagName.toUpperCase()!="BODY"){if (par.tagName.toUpperCase()=="TABLE"){It=par; break; }par=par.parentNode; }}return It; };HTMLEditor.prototype.ou= function (){if (document.getElementById(this.mainDivId)==null)return false; var Ic=document.getElementById(this.mainDivId).parentNode; var Ou= true; while (Ic){if (Ic.style && Ic.style.display=="none"){Ou= false; break; }Ic=Ic.parentNode; }return Ou; };HTMLEditor.prototype.v=null; HTMLEditor.prototype.setTimeout= function (Op,lu){if (this.v!=null){try {var X=this ; var id=window.setTimeout( function (){Op( true);} ,lu); X.v.push([Op,id]); }catch (t){alert("setTimeout: "+t.message);}}else {window.setTimeout(Op,lu); }};HTMLEditor.prototype.iu= 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.iu.caller){ this.v[i][0]="none"; break; }}if (!this.ou() || !this.mainDivVisible){try { this.On(); }catch (t){} ; this.i1="undef"; return true; }return false; };HTMLEditor.prototype.activate= function (Iu){if (!this.is){if (typeof EditorBeforeActivate=="function"){ this.is= true; try {EditorBeforeActivate(this ); }catch (w){setTimeout( function (){alert("EditorBeforeActivate exception: "+w.message); } ,0); }}}var X=this ; var Ic=document.getElementById(this.mainDivId).parentNode; var Ou= true; X.v=null; this.M=null; if (this.ov && HTMLEditor.S()){}if (!HTMLEditor.is_Safari)if (!X.J){X.J= true; if ( true){X.g= function (event){if (!X.J){if (HTMLEditor.is_ie){HTMLEditor.od(event.srcElement,"propertychange",HTMLEditor.Od); event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }else {event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }return true; }var Ic=X._textArea; while (Ic!=null){if (Ic.nodeType!=1)break; if (Ic.tagName.toUpperCase()=="BODY")break; Ic=Ic.parentNode; }if (Ic==null || Ic.nodeType!=1){if (HTMLEditor.is_ie){HTMLEditor.od(event.srcElement,"propertychange",HTMLEditor.Od); event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }else {event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }X.J= false; return true; }if (X._textArea.form==null){setTimeout( function (){eval(X.W+"_start()"); } ,0); if (HTMLEditor.is_ie){HTMLEditor.od(event.srcElement,"propertychange",HTMLEditor.Od); event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }else {event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }X.J= false; try {var In="content_changed_"+X.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(In) && document.getElementsByName(In).length && document.getElementsByName(In).length>0){document.getElementsByName(In)[0].value=X.ContentChanged()?"1": ""; }}catch (t){}var Io=X._formSubmit()[0]; document.getElementsByName(X._hiddenContent)[0].value=Io; return true; }if (event.propertyName=="style.display"){var Ov=document.getElementById(X.mainDivId).parentNode; while (Ov && Ov.tagName && Ov.tagName.toUpperCase()!="BODY" && event.srcElement!=Ov){Ov=Ov.parentNode; }if (event.srcElement==Ov){X.lv=null; if (event.srcElement.style.display=="none"){if (X.mainDivVisible){X.lv= false; }}else {if (X.ou() && !X.mainDivVisible){X.lv= true; }}if (X._isCallBackPanel){try {X.clearPopups( true); }catch (w){}try {if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; }}catch (w){}if (HTMLEditor.is_ie){HTMLEditor.od(event.srcElement,"propertychange",HTMLEditor.Od); event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }else {event.srcElement.ld=null; HTMLEditor.Id(event.srcElement); }X.J= false; }else setTimeout( function (){if (X.lv!=null){var Ic=X._textArea; while (Ic!=null){if (Ic.nodeType!=1)break; if (Ic.tagName.toUpperCase()=="BODY")break; Ic=Ic.parentNode; }if (Ic.nodeType==1)try {X.setVisibility(X.lv); }catch (w){}}X.lv=null; } ,024); }}} ; X.lv=null; while (Ic && Ic.tagName && Ic.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.Ik(Ic,"propertychange",HTMLEditor.Od); }X.ld=Ic.ld; Ic.ld= function (Ij){if (X.ld!=null && typeof X.ld=="function")X.ld(Ij); X.g(Ij); };Ic.iv=Ic.style.display; HTMLEditor.Iv.push(Ic); Ic=Ic.parentNode; }}else {}}HTMLEditor._CUROBJ_=null; if (this.ov && !HTMLEditor.S()){ this.On(); this._textArea.style.display="none"; this.ov= false; if (HTMLEditor.is_ie){if (this.i1=="html"){ this._iframe.style.visibility="hidden"; this._iframe.style.visibility="visible"; this.focusEditor(); }else if (this.i1=="preview"){ this.ow.style.visibility="hidden"; this.ow.style.visibility="visible"; }}if (!X.Is){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.Ow([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var ie= false; try {ie=lw(HTMLEditor.is_ie?X.O1.event:event); }catch (t){}return ie; } ); X.Is= true; }}return; } this.op= false; this.Os= true; this.isActivated= false; this._wasFocused= false; if (!X.Is){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.Ow([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var ie= false; try {ie=lw(HTMLEditor.is_ie?X.O1.event:event); }catch (t){}return ie; } ); X.Is= true; }}if (!X.ls){if (!HTMLEditor.is_ie){ this.iw=this.updateToolbar; this.updateToolbar= function (){try { this.iw(); }catch (t){return; }} ; }}if (X.ou() && !this.mainDivVisible && document.getElementById(this.mainDivId).style.display!="none"){ this.mainDivVisible= true; if (typeof this._setRealSize=="function")this._setRealSize(); if (this._textArea.offsetWidth>0 && this._textArea.offsetHeight>0)this.I8= {O9: this._textArea.offsetWidth,l9: this._textArea.offsetHeight } ; }if (!X.ou() || !this.mainDivVisible){ this.On(); this.i1="text"; this.mainDivVisible= false; if (!this.ls){ this.ls= true; if (typeof EditorOnLoad=="function")setTimeout( function (){EditorOnLoad(X); } ,0); }if (HTMLEditor.is_Safari)setTimeout( function (){try {X.mainDivVisible= true; eval(X.W+"_start()"); }catch (t){}} ,0764); return; }HTMLEditor.Iw(window,document.getElementById(this.mainDivId)); function lw(Ij){if (Ij){if (X.isPopup()){HTMLEditor._stopEvent(Ij); return false; }}return true; }X.v=[]; try { this.ox(); }catch (t){alert("activate: "+t.message); }function Ox(lx){if (X.iu(lx))return; var ix; try {ix=X._iframe.contentWindow.document; }catch (t){X.setTimeout(Ox,012); return false; }try {if (!HTMLEditor.is_ie)X.I1.queryCommandValue("forecolor"); if (!ix || !ix.body || !X.I1 || !X.I1.body){X.setTimeout(Ox,012); return false; }}catch (t){if (!HTMLEditor.is_ie){X.setTimeout(Ox,012); }return false; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){if (X.ShowQuickFormatDivId!=null){X.Ix=document.getElementById(X.ShowQuickFormatDivId).offsetWidth; X.oy=document.getElementById(X.ShowQuickFormatDivId).offsetHeight; }else {X.Ix=0; X.oy=0; }X.Oy=document.getElementById(X.panelDivId).offsetWidth; }if (!HTMLEditor.is_ie){function ly(il){for (var i=0; i<il.childNodes.length; i++){if (il.childNodes.item(i).nodeType==1){if (il.childNodes.item(i).tagName.toUpperCase()=="SCRIPT"){il.childNodes.item(i).innerHTML=il.childNodes.item(i).innerHTML.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }else ly(il.childNodes.item(i)); }}}ly(X.I1.body); }if (HTMLEditor.is_ie)HTMLEditor.iy(X.I1.body,X.I1); HTMLEditor.Iy(X,X.I1,!X.showAnchors); HTMLEditor.oz(X,X.I1,!X.showPlaceHolders); if (X.rtlSet && !X.rtlState())X.rtl(); var body=ix.body; if (body.childNodes.length==1 && body.firstChild.tagName && body.firstChild.tagName.toUpperCase()=="DIV" && body.firstChild.style.cssText.length>0 && body.firstChild.style.direction.length>0 && Oz(body.firstChild,"position")!="absolute"){body.style.cssText=body.firstChild.style.cssText; var lz=body.firstChild; while (lz.firstChild)body.insertBefore(lz.firstChild,lz); body.removeChild(lz); }if (X.iz){body.style.cssText=X.iz; X.iz=null; }function Iz(Ij){if (Ij && Ij.type=="contextmenu"){if (!X.isPopup() && HTMLEditor.oe==null){if (HTMLEditor.is_ie){try {var o10=X.I1.selection; var O10=X.or(o10); }catch (t){HTMLEditor._stopEvent(Ij); return false; }}return X.l10(Ij,Ij.clientX,Ij.clientY); }else {HTMLEditor._stopEvent(Ij); return false; }}}HTMLEditor.Ow([body,X._iframe.contentWindow],["contextmenu"], function (event){var ie= false; if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; if (X.i10){X.i10.select(); X.i10=null; }}if (HTMLEditor.is_Safari){var lq=X.iq(); var Iq=X.or(lq); X.I10=Iq.cloneRange(); }try {ie=Iz(HTMLEditor.is_ie?X._iframe.contentWindow.event:event); }catch (t){}return ie; } ); HTMLEditor.Ik(body,HTMLEditor.is_ie?"drop": "dragdrop", function (event){X.o11(); if (typeof X.onDrop=="function")setTimeout( function (){X.onDrop(X); } ,0); return true; } ); X.O11(); if (HTMLEditor.l11)X.f= true; if (!HTMLEditor.is_Safari)X.setTimeout( function (lx){if (X.iu(lx))return; if (!HTMLEditor.is_ie){if (X.i11!=null){X.selectAll(); X.I11(X.i11); X.i11=null; }}if (HTMLEditor.is_ie && !X._autoFocus){var o12=HTMLEditor.O12(X.I1.body.innerHTML); var l12=HTMLEditor.i12(X.I1.body.innerHTML); X.I1.body.innerHTML=X.I1.body.innerHTML; HTMLEditor.I12(X.I1.body,o12); HTMLEditor.o13(X.I1.body,l12); if (document.compatMode=="BackCompat")ix.body.contentEditable= true; X._iframe.style.visibility="visible"; X.iq().empty(); }if (X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe && X._autoFocus){X.updateToolbar(); X.focusEditor(); if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && !HTMLEditor.l11){var anchor=X.I1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.I1.body.insertBefore(anchor,X.I1.body.firstChild); anchor.focus(); anchor.blur(); X.focusEditor(); X.I1.body.removeChild(anchor); }}}if (!HTMLEditor.is_ie)X.I1.body.innerHTML=HTMLEditor.O13(HTMLEditor.getHTML(X.I1.body, false , true)); if (!HTMLEditor.is_Safari || X.os>0)X.isActivated= true; if ((!X._StartEnd || !HTMLEditor.is_ie) && X._autoFocus){if (X.mode()=="html" && X.mainDivVisible && X._iframe && typeof Iu!="function"){if (HTMLEditor.is_ie){X.setTimeout( function (lx){if (X.iu(lx))return; X.focusEditor(); var lq=X.iq(); var Iq=X.or(lq); if (lq.type.toLowerCase()!="control"){Iq.moveEnd("textedit",1); Iq.collapse( false); }Iq.select(); X.updateToolbar(); X.focusEditor(); } ,0144); }else {X.l13( false); }}}HTMLEditor._CUROBJ_=null; if (X.scrollIntoView && !HTMLEditor.is_Safari)document.getElementById(X.mainDivId).scrollIntoView( false); if (X._autoFocus)X.focusEditor(); HTMLEditor.i13(X.I1.body); if (typeof Iu=="function")Iu(); X.op= true; if (HTMLEditor.I13){var o14=X.clientID+"_bottom_chMode()"; try {eval(o14); }catch (O14){} ; }} ,HTMLEditor.is_ie?012: 0144); if (HTMLEditor.is_Safari){HTMLEditor.i13(X.I1.body); X.isActivated= true; HTMLEditor._CUROBJ_=null; if (X.l14) delete X.l14; X.l14=new Object(); X.setTimeout( function (lx){if (X.iu(lx))return; if (X.i11!=null){X.selectAll(); X.I11(X.i11); X.i11=null; }if (!X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe){X.l13( false); }}X.op= true; } ,0144); }X.os++; X.On(); if (!X.ls){if (typeof EditorOnLoad=="function")X.setTimeout( function (lx){if (X.iu(lx))return; EditorOnLoad(X); } ,0310); }if (!X.ot){if (X._autoFocus){if (X._ModeHTML){if (X.l){X.l= false; X.i14=HTMLEditor.O13(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.I14(); }}X.setTimeout( function (lx){if (X.iu(lx))return; X.chMode("text"); } ,0764); }}}if (!X._autoFocus){X.o15=X.ot; X.setTimeout( function (lx){if (X.iu(lx))return; if (!X.o15 && X._ModeHTML){if (X.l){X.l= false; X.i14=HTMLEditor.O13(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.I14(); }}X.setTimeout( function (lx){if (X.iu(lx))return; X.chMode("text"); } ,0764); }else {HTMLEditor.O15(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.O15(X.ShowQuickFormatDivId, true); }} ,HTMLEditor.is_ie?0144: 012); }X.ls= true; X.ot= true; if (X.l){X.setTimeout( function (lx){if (X.iu(lx))return; X.l= false; X.i14=HTMLEditor.O13(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.I14(); }} ,0310); }if (HTMLEditor.is_ie && X._setRealSize && typeof X._setRealSize=="function"){X._textArea.style.display=""; X._setRealSize(); var height=X._textArea.offsetHeight; X._iframe.style.height=height+"px"; X.ow.style.height=height+"px"; if (HTMLEditor.is_ie)height-=2; X.l15.style.height=height+"px"; X.I8.l9=X._textArea.offsetHeight;X._textArea.style.display="none"; X._setRealSize=null; }}X.setTimeout(Ox,012); };HTMLEditor.prototype.ContentChanged= function (on){var i15=this.mode(); var I15=(typeof on=="undefined")? true :on;if (i15=="preview")i15=this.o16; try {if (this.l1 && i15=="html"){if (this.l)return false; if (this.i14){if (this.mode()=="preview"){return (!(this.i14==HTMLEditor.O13(this.O16))) && I15; }else {return !(this.i14==HTMLEditor.O13(HTMLEditor.getHTML(this.I1.body, false , true))); }}else return false; }else {if (this.l15 && this.l16!=null){return (!(HTMLEditor.O13(this.l16)==HTMLEditor.O13(this.l15.value)) || (this.i16 && I15)); }else {return false; }}}catch (t){return false; }};HTMLEditor.prototype.I14= function (){var X=this ; if (this.o0 || this.onClientContentChanged==null || typeof this.onClientContentChanged!="function")return; try {if (this.l1 && this.mode()=="html"){var I16=HTMLEditor.O13(this.I1.body.innerHTML); if (this.i0!=null){if (this.i0!=I16){var o17= {previous:{} ,current:{}} ; var div=document.createElement("div"); div.innerHTML=this.i0; o17.previous.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; o17.previous.htmlTextLength=HTMLEditor.O13(div.innerHTML).length; this.i0=I16; div.innerHTML=this.i0; o17.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; o17.current.htmlTextLength=HTMLEditor.O13(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(o17); }catch (t){}} ,0); delete div; }}else {var o17= {previous:{} ,current:{}} ; var div=document.createElement("div"); o17.previous.plainTextLength=0; o17.previous.htmlTextLength=0; this.i0=I16; div.innerHTML=this.i0; o17.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; o17.current.htmlTextLength=HTMLEditor.O13(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(o17); }catch (t){}} ,0); delete div; }}}catch (t){}};HTMLEditor.prototype.l13= function (O17){var X=this ; X.setTimeout( function (lx){if (X.iu(lx))return; var index=0; var l17=X.I1.body; var anchor=null; if (!X._StartEnd || O17){if (l17.lastChild && l17.lastChild.nodeType==3){l17=l17.lastChild; index=(""+l17.data+"").length; }else if (l17.lastChild && l17.lastChild.nodeType==1 && l17.lastChild.tagName.toUpperCase()=="BR"){index=HTMLEditor.i17(l17.lastChild); var I17=X.I1.createTextNode(""); l17.insertBefore(I17,l17.lastChild); l17=I17; index=0; }else {var I17=X.I1.createTextNode(""); l17.appendChild(I17); l17=I17; index=0; }}if (HTMLEditor.is_Safari){X.l14.type="Caret"; X.l14.focusNode=l17; X.l14.focusOffset=index; }else {var lq=X.iq(); X.o18(lq); var Iq=X.or(); Iq.setStart(l17,index); Iq.setEnd(l17,index); X.O18(lq,Iq); }if (anchor!=null){X.I1.body.removeChild(anchor); }X.updateToolbar(); X.focusEditor(); if (!X._StartEnd || O17)if (!HTMLEditor.is_Safari && !HTMLEditor.l11){try {var anchor=X.I1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.I1.body.appendChild(anchor); anchor.focus(); anchor.blur(); X.focusEditor(); X.I1.body.removeChild(anchor); }catch (t){}}} ,012); };HTMLEditor.prototype.l18= function (){} ; HTMLEditor.prototype.popupClosed= function (){} ; HTMLEditor.prototype.updateToolbar= function (){} ; HTMLEditor.prototype.i18= function (){var X=this ; var ik=HTMLEditor.getHTML(X.I1.body, false , true); var ie=[HTMLEditor.O13(ik),ik]; return ie; };HTMLEditor.prototype.setMode= function (mode,I18){var X=this ; switch (mode){case "preview":if (!this._autoFocus && !this._wasFocused){HTMLEditor.o19(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.o19(this.ShowQuickFormatDivId); }X.openWait(); X._waitSetMode= true; setTimeout( function (){var O19=""; X.o16=X.i1; if (X.i1=="html"){X.o11(); var l19=X.i18(); X.O16=l19[0]; O19=X.getHTML( false ,l19[1]); X.i19=O19; X.iz=X.I1.body.style.cssText; try {if (HTMLEditor.is_ie)X.iq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var om=X.l1.removeChild(X._iframe); X._iframe=null; delete om; }catch (t){}if (!HTMLEditor.is_Safari){X.oy=X.I8.l9; X.I19=X.I8.o1a; }if (X.ShowQuickFormatDivId!=null){HTMLEditor.O15(X.ShowQuickFormatDivId); }}else {if (X.l15){O19=X.l15.value; X.l15.style.display="none"; if (HTMLEditor.is_ie)X.l15.style.visibility="hidden"; if (!HTMLEditor.is_Safari){X.I8.l9=X.oy; X.I8.o1a=X.I19; X.ow.style.height=X.I8.l9; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){}}}X.ow.style.display=""; X.i1=mode; setTimeout( function (){X.O1a(O19); if (typeof I18=="function")try {I18(); }catch (t){} ; X._waitSetMode= false; try {X.ow.focus(); }catch (t){}} ,0); } ,0); break; case "text":if (X.i1=="preview"){var l1a; X.ow.style.display="none"; X.ow.src=HTMLEditor.is_ie?"javascript:false;": ""; if (HTMLEditor.is_ie)X.ow.style.visibility="hidden"; X.l15.style.display=""; if (X.o16=="html"){l1a=X.i19; X.l16=l1a; }else {l1a=X.l15.value; }X._waitSetMode= true; X.l15.value=""; X.i1=mode; setTimeout( function (){setTimeout( function (){X.l15.value=l1a; X.focusEditor(); X._waitSetMode= false; } ,0144); if (typeof I18=="function")try {I18(); }catch (t){} ; if (!HTMLEditor.is_Safari){X.I8.l9=X.oy; X.I8.o1a=X.I19; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.l15.style.height=parseInt(X.I8.l9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.l15.style.width="100%"; setTimeout( function (){X.l15.style.width=X.l15.offsetWidth+"px"; } ,0); }}if (HTMLEditor.is_ie)X.l15.style.visibility="visible"; } ,0); return; }else X.iz=X.I1.body.style.cssText; if (!this._autoFocus && !this._wasFocused){HTMLEditor.o19(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.o19(this.ShowQuickFormatDivId); }try {X.o11(); }catch (t){} ; X.openWait(); X._waitSetMode= true; X.o0= true; if (this.ou() && this.I0){var i1a=HTMLEditor.Om+"_right"; var I1a=HTMLEditor.Om+"_left"; var o1b=this.I1.createElement("SPAN"); o1b.id=I1a; var O1b=this.I1.createElement("SPAN"); O1b.id=i1a; try {if (!this.lr()){var l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(this.i1b()): ""; var lq=this.iq(); var Iq=this.or(lq); var I1b=(HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0); if (I1b){var o1c=this.O1c(); o1c[0].parentNode.insertBefore(o1b,o1c[0]); if (o1c[o1c.length-1].nextSibling!=null)o1c[o1c.length-1].parentNode.insertBefore(O1b,o1c[o1c.length-1].nextSibling); else o1c[o1c.length-1].parentNode.appendChild(O1b); }else {var l1c=this.I1.createElement("DIV"); l1c.appendChild(o1b); l1c.appendChild(O1b); this.I11(l1c.innerHTML); delete l1c; }}else {var i1c=HTMLEditor.getSelParent(this ); i1c.parentNode.insertBefore(o1b,i1c); if (i1c.nextSibling!=null)i1c.parentNode.insertBefore(O1b,i1c.nextSibling); else i1c.parentNode.appendChild(O1b); }}catch (w){var I1c=this.I1.getElementById(I1a); if (I1c!=null)I1c.parentNode.removeChild(I1c); I1c=this.I1.getElementById(i1a); if (I1c!=null)I1c.parentNode.removeChild(I1c); }}setTimeout( function (){var l19=X.i18(); X.O16=l19[0].replace(/<span id="OboutMSIEparagraph_left"><\/span>/,"").replace(/<span id="OboutMSIEparagraph_right"><\/span>/,""); var O19=X.getHTML( false ,l19[1]); var o1d=0; var O1d=0; var l1d; l1d=O19.indexOf("\x3cspan id=\"OboutMSIEparagraph_left\">\x3c/span>"); if (l1d>=0)o1d=l1d; O19=O19.replace(/<span id="OboutMSIEparagraph_left"><\/span>/,""); l1d=O19.indexOf("\x3cspan id=\"OboutMSIEparagraph_right\">\x3c/span>"); if (l1d>=0)O1d=l1d; O19=O19.replace(/<span id="OboutMSIEparagraph_right"><\/span>/,""); if (HTMLEditor.l11){var i1d=0; for (var i=0; i<o1d; i++)if (O19[i]=="\n")i1d++; o1d+=i1d; i1d=0; for (var i=0; i<O1d; i++)if (O19[i]=="\n")i1d++; O1d+=i1d; }X.ow.style.display="none"; if (HTMLEditor.is_ie)X.ow.style.visibility="hidden"; X.l16=O19; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.iq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var om=X.l1.removeChild(X._iframe); X._iframe=null; delete om; }catch (t){}X.l15.value=""; X.l15.style.display=""; X.i1=mode; setTimeout( function (){setTimeout( function (){X.l15.value=O19; X.o0= false; X.focusEditor(); X._waitSetMode= false; if (X.I0)if (X.l15.setSelectionRange && O1d>0){X.l15.setSelectionRange(O1d-1,O1d); var Ij=null; try {Ij=document.createEvent("KeyEvents"); Ij.initKeyEvent("keypress", true , true ,window, false , false , false , false ,0,X.l15.value.charCodeAt(O1d-1)); }catch (w){try {Ij=document.createEvent("Events"); }catch (I1d){Ij=document.createEvent("UIEvents"); } finally {Ij.initEvent("keypress", true , true); Ij.o1e=window; Ij.altKey= false; Ij.ctrlKey= false; Ij.shiftKey= false; Ij.O1e= false; Ij.keyCode=X.l15.value.charCodeAt(O1d-1); Ij.charCode=X.l15.value.charCodeAt(O1d-1); }}X.l15.focus(); X.l15.dispatchEvent(Ij); X.l15.setSelectionRange(o1d,O1d); }else HTMLEditor.setSelectionRange(X.l15,o1d,O1d); X.I0= true; } ,0144); if (typeof I18=="function")try {I18(); }catch (t){} ; if (!HTMLEditor.is_Safari && (X.ou() || !HTMLEditor.is_ie)){var l1e=document.getElementById(X.panelDivId); l1e.style.display="none"; }if (X.ShowQuickFormatDivId!=null){setTimeout( function (){HTMLEditor.O15(X.ShowQuickFormatDivId); } ,0); }if (!HTMLEditor.is_Safari){X.oy=X.I8.l9; X.I19=X.I8.o1a; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.l15.style.height=parseInt(X.I8.l9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.l15.style.width="100%"; setTimeout( function (){X.l15.style.width=X.l15.offsetWidth+"px"; } ,0); }}else {if (!HTMLEditor.is_Safari){X.l15.style.height=parseInt(X.I8.l9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+parseInt(X.I19)+"px";}}X.On(); if (HTMLEditor.is_ie)X.l15.style.visibility="visible"; X.focusEditor(); } ,0764); } ,0); break; case "html":if (X._iframe!=null)try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.iq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var om=X.l1.removeChild(X._iframe); X._iframe=null; delete om; }catch (t){}if (HTMLEditor.is_ie)if (this.ShowQuickFormatDivId!=null)HTMLEditor.o19(this.ShowQuickFormatDivId); X.openWait(); X._waitSetMode= true; if (HTMLEditor.is_Safari)X._textArea.style.display=""; X.setTimeout( function (lx){if (X.iu(lx)){if (typeof I18=="function")try {I18(); }catch (t){} ; return; }if (X.ContentChanged( false) || X.l || X.O16==null || typeof X.O16=="undefined"){X.F=null; X._textArea.value=X.getHTML(); X.iz=null; if (X.ow!=null)X.ow.src=HTMLEditor.is_ie?"javascript:false;": ""; }else {X._textArea.value=X.O16; }if (HTMLEditor.is_Safari)X._textArea.style.display="none"; if (HTMLEditor.is_Safari)X._textArea.style.visibility="hidden"; if (HTMLEditor.is_Safari)if (X.l15!=null)X.l15.style.visibility="hidden"; if (X.ShowQuickFormatDivId!=null)HTMLEditor.o19(X.ShowQuickFormatDivId); if (!X.ContentChanged( false)){if (X.K)if (X.i1e>0)X.i1e--; }if (!HTMLEditor.is_Safari){if (typeof X.oy!="undefined")X.I8.l9=X.oy; if (typeof X.I19!="undefined")X.I8.o1a=X.I19; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X.l15!=null){X.l15.style.width=parseInt(X.l15.style.width)-X.Ix+"px"; X.I8.O9=parseInt(X.l15.style.width)+(document.compatMode!="BackCompat"?4: 2)+"px"; }X.setTimeout( function (lx){if (X.iu(lx))return; try {var om=X._textArea.parentNode.removeChild(X.l1); X.l1=null; delete om; }catch (t){}var l1e=document.getElementById(X.panelDivId); l1e.style.display=""; X.activate(); X.i1=mode; if (typeof I18=="function")try {I18(); }catch (t){} ; if (!(HTMLEditor.is_Safari && X.__NoToolBar__))if (X.mainDivVisible){X.setTimeout( function (lx){if (X.iu(lx))return; X._onresize(); } ,0); }setTimeout( function (){X._waitSetMode= false; } ,0144); } ,0); } ,0); break; default:X._waitSetMode= false; alert("Mode <"+mode+"> not defined"); return false; }} ; HTMLEditor.o2=null; HTMLEditor.prototype.isPopup= function (){return (this.o2!=null || HTMLEditor.o2!=null || HTMLEditor.I1e!=null); };HTMLEditor.prototype.o1f= function (name){if (this.l1 && this.mode()=="html" && !this.isPopup()){ this._CSSfile=name; var om=this._textArea.parentNode.removeChild(this.l1); var save=this.I1.body.innerHTML; this.l1=null; delete om; this._textArea.value=save; this.activate(); return true; }return false; };HTMLEditor.prototype.undo= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.O1f( true); this.I14(); };HTMLEditor.prototype.redo= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.l1f(); this.I14(); };HTMLEditor.prototype.copy= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X.i1f(); X.I1f("c", true); X.On(); X.o1g(); } ,0);}else this.I1f("c", true); };HTMLEditor.prototype.cut= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X.i1f(); X.I1f("x", true); X.On(); } ,0);}else this.I1f("x", true); };HTMLEditor.prototype.deleteSelection= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){var lq=this.iq(); this.o11(); lq.clear(); this.O11(); }else this.I1f("x", true); };HTMLEditor.prototype.paste= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.o11(); this.openWait(); setTimeout( function (){X._paste( true); X.On(); } ,0);}else {var lq=this.iq(); var Iq=this.or(lq); this.o18(lq); if (HTMLEditor.is_Safari)alert(this.If("safari-v","Use Apple-V")); else alert(this.If("moz-v","Use Ctrl-V")); if (HTMLEditor.l11)this.f= true; this.O18(lq,Iq); this.isWord= false; }};HTMLEditor.prototype.pasteWord= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.o11(); this.openWait(); setTimeout( function (){X._paste( true , true); X.On(); } ,0);}else {var lq=this.iq(); var Iq=this.or(lq); var O1g=this.If("msword-switched","Pasting from MS Word is switched on. Just now:")+" "; O1g+=(HTMLEditor.is_Safari)?this.If("safari-v","Use Apple-V"): this.If("moz-v","Use Ctrl-V"); this.o18(lq); alert(O1g); if (HTMLEditor.l11)this.f= true; this.O18(lq,Iq); this.isWord= true; }};HTMLEditor.prototype.contextMenu= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; setTimeout( function (){X.l1g(); } ,0); };HTMLEditor.prototype.pasteText= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.o11(); this.openWait(); setTimeout( function (){X._paste( false); X.On(); } ,0);}else {var lq=this.iq(); var Iq=this.or(lq); var X=this ; var ix=X.I1; function i1g(I1g){if (I1g.length>0){X.o11(); X.I11(I1g); X.I14(); }X.focusEditor(); return true; } this.oj("_mozPastePlain",i1g,this.Og("paste-plain","Paste Plain Text")); }};HTMLEditor.prototype.selectAll= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_ie){var o1h=this.I1.body.createTextRange(); o1h.select(); }else {if (HTMLEditor.l11){ this.f= true; this.focusEditor(); }var lq=this.iq(); this.o18(lq); var Iq=this.or(); Iq.selectNodeContents(this.I1.body); if (HTMLEditor.l11)this.f= true; this.O18(lq,Iq); } this.updateToolbar(); };HTMLEditor.prototype.selectNone= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var lq=this.iq(); var Iq=this.or(lq); if (HTMLEditor.is_ie){Iq.setEndPoint("StartToEnd",Iq); Iq.select(); }else {if (HTMLEditor.l11){ this.f= true; this.focusEditor(); } this.o18(lq); Iq.setStart(Iq.endContainer,Iq.endOffset); this.O18(lq,Iq); }setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,0144); };HTMLEditor.prototype.rtl= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.I1.body.style.direction=(!this.rtlState())?"rtl": ""; this.updateToolbar(); };HTMLEditor.prototype.rtlState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; if (this.I1.body.style.direction && this.I1.body.style.direction=="rtl")return true; return false; };HTMLEditor.prototype.ltr= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.I1.body.style.direction=(!this.ltrState())?"": "rtl"; this.updateToolbar(); };HTMLEditor.prototype.ltrState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return true; if (!(this.I1.body.style.direction && this.I1.body.style.direction=="rtl"))return true; return false; };HTMLEditor.prototype.O1h= false; HTMLEditor.prototype.bold= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.l1h("bold"); };HTMLEditor.prototype.boldState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.i1h("bold"); };HTMLEditor.prototype.I1h= false; HTMLEditor.prototype.italic= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; this.l1h("italic"); };HTMLEditor.prototype.italicState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.i1h("italic"); };HTMLEditor.prototype.o1i= false; HTMLEditor.prototype.underline= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; this.l1h("underline"); };HTMLEditor.prototype.underlineState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.i1h("underline"); };HTMLEditor.prototype.O1i= false; HTMLEditor.prototype.strikeThrough= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.l1h("strikeThrough"); };HTMLEditor.prototype.strikeThroughState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.i1h("strikeThrough"); };HTMLEditor.prototype.l1i= false; HTMLEditor.prototype.subScript= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; this.l1h("subScript"); };HTMLEditor.prototype.subScriptState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.i1h("subScript"); };HTMLEditor.prototype.i1i= false; HTMLEditor.prototype.superScript= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.l1h("superScript"); };HTMLEditor.prototype.superScriptState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.i1h("superScript"); };HTMLEditor.prototype.foreColor= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function I1i(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.o1j("forecolor", false ,par); } ,0144); }else X.o1j("forecolor", false ,par); }if (HTMLEditor.is_Safari)this.or(this.iq()); setTimeout( function (){try {X.oj("_selectColor",X.lg("color","Font Color"),I1i); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.foreColorValue= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.lr())return "#000000"; var ie=HTMLEditor.O1j(this.l1j("forecolor")); return ie; };HTMLEditor.prototype.foreColorClear= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.or(this.iq()); this.o1j("forecolor", false ,""); };HTMLEditor.prototype.backColor= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function I1i(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.o1j("backcolor", false ,par); } ,0144); }else X.o1j("backcolor", false ,par); }if (HTMLEditor.is_Safari)this.or(this.iq()); setTimeout( function (){try {X.oj("_selectColor",X.Og("color","Background Color"),I1i); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.backColorValue= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.lr())return "#FFFFFF"; return HTMLEditor.O1j(this.l1j("backcolor")); };HTMLEditor.prototype.backColorClear= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.or(this.iq()); this.o1j("backcolor", false ,""); };HTMLEditor._styleTags=["strong","em","u","strike","s","span","font","b","sub","sup","a","i"]; HTMLEditor.i1j= function (Il){if (!Il)return false; for (var i=0; i<HTMLEditor._styleTags.length; i++)if (HTMLEditor._styleTags[i].toLowerCase()==Il.toLowerCase())return true; return false; };HTMLEditor.prototype.clearStyles= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari)this.or(this.iq()); setTimeout( function (){try {X.oj("_clearStyles"); X.I14(); }catch (t){}} ,012); };HTMLEditor.prototype.setClassName= function (name){var X=this ; if (!this._wasFocused)return; this.focusEditor(); if (HTMLEditor.is_Safari)this.or(this.iq()); try {var ie=this._setClassName(name); this.I14(); return ie; }catch (t){alert("setClassName: "+t.message); return false; } ; };HTMLEditor.prototype.AssignClassName= function (name){if (this.mode()!="html")return false; this.focusEditor(); if (HTMLEditor.is_Safari)this.or(this.iq()); if (this.lr()){ this.o11(); try {HTMLEditor.getSelParent(this ).className=name; }catch (t){ this.O1f( false); }}else this.setClassName(name); return true; };HTMLEditor.prototype.SelectedTextNodes= function (){if (this.mode()!="html")return []; this.focusEditor(); if (HTMLEditor.is_Safari)this.or(this.iq()); var o1c=this.O1c(); if (o1c.length>0)this.I1j(o1c); return o1c; };HTMLEditor.prototype.o1k= function (){if (this.mode()!="html")return null; this.focusEditor(); var lq=this.iq(); var Iq=this.or(lq); var parent=null; if (HTMLEditor.is_ie){if (lq.type.toLowerCase()=="control")parent=Iq.item(0); else parent=null; }else {parent=this.Or(Iq); if (parent.nodeType!=3 && Iq.startContainer==Iq.endContainer){if (!parent.tagName)return null; if (Iq.startContainer.childNodes.item(Iq.startOffset)==null)return null; if (Iq.startOffset==Iq.endOffset && Iq.startContainer.childNodes.item(Iq.startOffset).tagName && Iq.startContainer.childNodes.item(Iq.startOffset).tagName.toUpperCase()=="BR")return null; if (parent.tagName.toUpperCase()=="BODY" && Iq.startOffset==0 && Iq.endOffset>0 && Iq.endOffset==parent.childNodes.length)return null; parent=Iq.startContainer.childNodes.item(Iq.startOffset); }else return null; }return parent; };HTMLEditor.prototype.getClassName= function (){try {var lq=this.iq(); var Iq=this.or(lq); var parent; if (HTMLEditor.is_ie && lq.type.toLowerCase()=="control")parent=Iq.item(0); else parent=this.Or(Iq); if (parent.nodeType==3){parent=parent.parentNode; }while ( true){if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.Om && parent.className.length>0){return parent.className; }else {if (parent && parent.tagName && HTMLEditor.i1j(parent.tagName)){parent=parent.parentNode; continue; }else break; }}}catch (t){}return ""; };HTMLEditor.prototype.fontName= function (select,event){try {var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }HTMLEditor._stopEvent(event); if (event.type=="click" && !HTMLEditor.is_Safari)return false; var X=this ; if (HTMLEditor.is_Safari)this.or(this.iq()); this.l1h("fontname",select.options.item(select.selectedIndex).value); }catch (t){alert("FontName: "+t.message); } ; };HTMLEditor.prototype.O1k=0; HTMLEditor.prototype.fontNameState= function (l1k){var param=null; try {param=this.l1j("fontname"); }catch (t){}if (!this._FontNotSet)if (!param || param.length==0){if (!this.i1k)this.i1k=HTMLEditor.Oz(this.I1.body,"font-family"); param=this.i1k; }if (typeof l1k!="undefined"){var il=document.getElementById(l1k); il=il.childNodes.item(1); var i=0; if (param && param.length>0){var Ie=param.toLowerCase().split(",")[0]; for (i=0; i<il.options.length; i++){var I16=il.options.item(i).value.toLowerCase().split(",")[0]; if (I16==Ie)break; }if (i==il.options.length){try {var I1k=document.createElement("OPTION"); I1k.value=param; I1k.text=param.split(",")[0]; il.add(I1k,HTMLEditor.is_ie?i:null); X.O1k=0; }catch (t){var X=this ; if (X.O1k<012){setTimeout( function (){X.fontNameState(l1k); } ,0144); X.O1k++; }i=0; }}}il.selectedIndex=i; }return param; };HTMLEditor.o1l= function (O1l){var Ie=O1l.toString(); switch (Ie){case "1":Ie="8pt"; break; case "2":Ie="10pt"; break; case "3":Ie="12pt"; break; case "4":Ie="14pt"; break; case "5":Ie="18pt"; break; case "6":Ie="24pt"; break; case "7":Ie="36pt"; break; }return Ie; };HTMLEditor.prototype.fontSize= function (select,event){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }HTMLEditor._stopEvent(event); if (event.type=="click" && !HTMLEditor.is_Safari)return false; var X=this ; if (HTMLEditor.is_Safari)this.or(this.iq()); this.l1h("fontsize",HTMLEditor.o1l(select.options.item(select.selectedIndex).value)); };HTMLEditor.prototype.l1l=0; HTMLEditor.prototype.fontSizeState= function (l1k){var param=null; try {param=this.l1j("fontsize",l1k); }catch (t){}if (param)param=param.toString(); if (!this._FontNotSet)if (!param || param.length==0){if (!this.i1l){ this.i1l=HTMLEditor.Oz(this.I1.body,"font-size"); this.i1l=HTMLEditor.I1l(this.i1l,this,l1k); }param=this.i1l; }if (typeof l1k!="undefined"){try {var il=document.getElementById(l1k); il=il.childNodes.item(1); var i=0; if (param && param.length>0){var Ie=param.toLowerCase().split(",")[0]; for (i=0; i<il.options.length; i++){var I16=HTMLEditor.o1l(il.options.item(i).value.toLowerCase().split(",")[0]); if (I16==Ie)break; }if (i==il.options.length){try {var I1k=document.createElement("OPTION"); I1k.value=param; I1k.text=param; il.add(I1k,HTMLEditor.is_ie?i:null); X.l1l=0; }catch (t){var X=this ; if (X.l1l<012){setTimeout( function (){X.fontSizeState(l1k); } ,0144); X.l1l++; }i=0; }}}il.selectedIndex=i; }catch (t){alert("fontSizeState: "+t.message); }}return param; };HTMLEditor.prototype.justifyLeft= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.l1h("justifyLeft",value); };HTMLEditor.prototype.justifyFull= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.l1h("justifyFull",null); };HTMLEditor.prototype.justifyCenter= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.l1h("justifyCenter",value); };HTMLEditor.prototype.justifyRight= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.l1h("justifyRight",value); };HTMLEditor.prototype.paragraph= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.l1h("paragraph",value); };HTMLEditor.prototype.orderedList= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.l1h("InsertOrderedList",value); };HTMLEditor.prototype.bulletedList= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.l1h("InsertUnorderedList",value); };HTMLEditor.prototype.decreaseIndent= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.l1h("Outdent",value); };HTMLEditor.prototype.increaseIndent= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.l1h("Indent",value); };HTMLEditor.prototype.createLink= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari && !HTMLEditor.Ok){param=prompt("Enter URL"); this.SurroundHTML("<a href='"+param+"'>","</a>"); return; }try {if (this.l1 && this.mode()=="html" && !this.isPopup()){var l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(this.i1b()): ""; var lq=this.iq(); var Iq=this.or(lq); var o1m=null; if (!(this.lr() && HTMLEditor.getSelParent(this ).tagName && (HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="EMBED" || HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG")) && !(!this.lr() && ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0)))){ this.o11(); var O1m=this.I1.createElement("span"); O1m.innerHTML="new link"; O1m.id=HTMLEditor.Om; var l1m= true; if (HTMLEditor.is_ie && this.lr()){var i1c=Iq.item(0); var i1m=this.I1.createElement("span"); i1c.parentNode.insertBefore(i1m,i1c); o1m=O1m.firstChild; i1c.parentNode.insertBefore(o1m,i1c); var I1m=this.I1.createElement("span"); i1c.parentNode.insertBefore(I1m,i1c); i1c.parentNode.removeChild(i1c); this.o1n([i1m,I1m], false); l1m= false; }else { this.I11(HTMLEditor.getHTML(O1m, true)); var il=this.I1.getElementById(HTMLEditor.Om); o1m=il.firstChild; il.parentNode.insertBefore(il.firstChild,il); il.parentNode.removeChild(il); }if (!HTMLEditor.is_ie){Iq=this.or(); Iq.setStart(o1m,0); Iq.setEnd(o1m,(""+o1m.data+"").length); this.o18(lq); this.O18(lq,Iq); }else {if (l1m)Iq.select(); }l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(this.i1b()): ""; lq=this.iq(); Iq=this.or(lq); }if ((this.lr() && HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG") || (!this.lr() && ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0)))){ this.o11(); var O1n=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); var o17= {target: "default",href:O1n,title: "" } ; var l1n; function i1g(i1n){try {if (i1n){var I1n=X.I1.getElementsByTagName("A"); var o1o=0; for (var i=0; i<I1n.length; i++){var O1o= true; var a=I1n[i]; for (var Oh=0; Oh<l1n.length; Oh++)if (a==l1n[Oh]){O1o= false; break; }if (!O1o)continue; try {var l1o=a.href; a.href=o17.href; if (o17.target)a.target=o17.target; if (o17.title.length>0)a.title=o17.title; o1o=i; }catch (w){}}if (o1m)o1m.data=o17.href; if (HTMLEditor.l11)X.f= true; if (I1n.length>0){var i1o=I1n[o1o]; var O1m=X.I1.createElement("span"); O1m.innerHTML="&nbsp;"; if (i1o.nextSibling!=null)i1o.parentNode.insertBefore(O1m,i1o.nextSibling); else i1o.parentNode.appendChild(O1m); setTimeout( function (){HTMLEditor.I1o(O1m,X); setTimeout( function (){i1o.parentNode.removeChild(O1m); } ,0); } ,0); }setTimeout( function (){X.updateToolbar(); X.I14(); } ,5); }else {X.O1f( false); X.K.pop(); if (o1m){X.O1f( false); X.K.pop(); }}X.focusEditor(); }catch (t){alert("URL Link create: "+t.message); }return true; }var ik=X.I1.getElementsByTagName("A"); var I1n=[]; for (var i=0; i<ik.length; i++){try {var hr=ik[i].href; I1n.push([ik[i],""+hr+""]); }catch (w){}} this.o1j("createLink", false ,O1n); l1n=[]; for (var i=0; i<I1n.length; i++){var a=I1n[i][0]; var href=I1n[i][1]; if (a.href==href)l1n.push(a); } this.oj("_urlProperties",this.Og("link","Create an URL Link"),o17,i1g); }else {var X=this ; setTimeout( function (){window.alert("Please highlight text or image for the new link"); } ,0310); }}}catch (t){alert("createLink :"+t.message); }};HTMLEditor.l4= function (X,link){function i1g(i1n){if (!i1n){setTimeout( function (){X.O1f( false); } ,012); }else {if (link.title.length==0){link.title=null; link.removeAttribute("title"); }if (HTMLEditor.l11){X.f= true; X.focusEditor(); }X.I14(); }return true; }X.o11(); X.oj("_urlProperties",X.lg("link","Edit an URL Link"),link,i1g); };HTMLEditor.o1p=/^(([0-9]+(px|%|$))|$)/i; HTMLEditor.setSelectionRange= function (input,O1p,l1p){try {var start=(typeof O1p=="undefined")?0:O1p; var end=(typeof l1p=="undefined")?input.value.length:l1p; input.focus(); if (input.setSelectionRange){input.setSelectionRange(start,end); }else if (input.createTextRange){var Iq=input.createTextRange(); Iq.collapse( true); Iq.moveEnd("character",end); Iq.moveStart("character",start); Iq.select(); }}catch (t){}};HTMLEditor.prototype.insertDiv= function (){var X=this ; var i1p; var id=HTMLEditor.Om; var innerHTML="<div id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Div"; innerHTML+="</div>"; if (X.InsertHTML(innerHTML)){i1p=X.getDocument().getElementById(id); i1p.id=null; i1p.removeAttribute("id"); X.I1p(i1p, false); }};HTMLEditor.o4= function (X,i1p){X.SaveContent(); X.I1p(i1p, true); };HTMLEditor.prototype.I1p= function (i1p,o1q){var X=this ; function disableEvents(ix){ix.getElementById("idField").disabled= true; ix.getElementById("widthField").disabled= true; ix.getElementById("heightField").disabled= true; ix.getElementById("borderWidth").disabled= true; ix.getElementById("borderColor").disabled= true; ix.getElementById("borderStyle").disabled= true; ix.getElementById("bgColor").disabled= true; ix.getElementById("clearColor").disabled= true; ix.getElementById("clearColor").className="dbutton"; ix.getElementById("bgImage").disabled= true; ix.getElementById("clearImage").disabled= true; ix.getElementById("clearImage").className="dbutton"; }function enableEvents(ix){ix.getElementById("idField").disabled= false; ix.getElementById("widthField").disabled= false; ix.getElementById("heightField").disabled= false; ix.getElementById("borderWidth").disabled= false; ix.getElementById("borderColor").disabled= false; ix.getElementById("borderStyle").disabled= false; ix.getElementById("bgColor").disabled= false; ix.getElementById("clearColor").disabled= false; ix.getElementById("clearColor").className="button"; ix.getElementById("bgImage").disabled= false; ix.getElementById("clearImage").disabled= false; ix.getElementById("clearImage").className="dbutton"; }function color(){function O1q(par){X.l1q.getElementById("borderColor").style.backgroundColor=par; }X.oj("_selectColor",X.l1q.getElementById("borderColor").title,O1q); }function bgColor(){function i1q(par){X.l1q.getElementById("bgColor").value=""; X.l1q.getElementById("bgColor").style.backgroundColor=par; }X.oj("_selectColor",X.l1q.getElementById("bgColor").title,i1q); }function I1q(){X.l1q.getElementById("bgColor").value=X.o1r; X.l1q.getElementById("bgColor").style.backgroundColor=""; }function O1r(){var l1r=new Object(); var ix=X.l1q; l1r.src=""; l1r.i1r="LEFT"; l1r.I1r="TOP"; l1r.repeat="REPEAT"; l1r.o1s="FIXED"; if (ix.getElementById("bgImage").style.backgroundImage && ix.getElementById("bgImage").style.backgroundImage.length>0){var ik=ix.getElementById("bgImage").style.backgroundImage; ik=ik.replace(/^url\(["']?(.+)["']?\)$/i,"$1"); l1r.src=ik.replace(/(\s)/g,"%20"); }if (ix.getElementById("bgImage").style.backgroundPosition && ix.getElementById("bgImage").style.backgroundPosition.length>0){var ik=ix.getElementById("bgImage").style.backgroundPosition; ik=ik.split(" "); if (ik.length>0)l1r.i1r=ik[0]; if (ik.length>1)l1r.I1r=ik[1]; }if (ix.getElementById("bgImage").style.backgroundRepeat && ix.getElementById("bgImage").style.backgroundRepeat.length>0)l1r.repeat=ix.getElementById("bgImage").style.backgroundRepeat; if (ix.getElementById("bgImage").style.backgroundAttachment && ix.getElementById("bgImage").style.backgroundAttachment.length>0)l1r.o1s=ix.getElementById("bgImage").style.backgroundAttachment; function I1i(i1n){if (i1n){var save=ix.getElementById("bgImage").style.backgroundImage; ix.getElementById("bgImage").value=""; var O1s=(l1r.src.indexOf("'")>=0)?"\"": "'"; ix.getElementById("bgImage").style.backgroundImage=""; ix.getElementById("bgImage").style.backgroundImage="url("+O1s+l1r.src.replace(/(\s)/g,"%20")+O1s+")"; ix.getElementById("bgImage").style.backgroundRepeat=l1r.repeat; ix.getElementById("bgImage").style.backgroundAttachment=l1r.o1s; ix.getElementById("bgImage").style.backgroundPosition=l1r.i1r+" "+l1r.I1r; if (ix.getElementById("bgImage").style.backgroundImage.length==0){X.O1.setTimeout( function (){ix.getElementById("bgImage").style.backgroundImage=save; if (save.length==0)l1s(); X.O1.alert(X.If("bad-bg-img","Incorrect Image file for Background.")); } ,0); }}}X.oj("_bgImageProperties",ix.getElementById("bgImage").title,l1r,I1i); }function l1s(){X.l1q.getElementById("bgImage").value=X.i1s; X.l1q.getElementById("bgImage").style.backgroundImage=""; X.l1q.getElementById("bgImage").style.backgroundRepeat=""; X.l1q.getElementById("bgImage").style.backgroundAttachment=""; }function I1i(ix,I1s){if (ix!=null){var o1t=ix.getElementById("overflow").value.replace(/^[\s]+/,""); var width=ix.getElementById("widthField").value.replace(/^[\s]+/,""); var height=ix.getElementById("heightField").value.replace(/^[\s]+/,""); var borderWidth=ix.getElementById("borderWidth").value.replace(/^[\s]+/,""); var borderStyle=ix.getElementById("borderStyle").value.replace(/^[\s]+/,""); var borderColor=ix.getElementById("borderColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundColor=ix.getElementById("bgColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundImage=ix.getElementById("bgImage").style.backgroundImage.replace(/^[\s]+/,""); var backgroundRepeat=ix.getElementById("bgImage").style.backgroundRepeat.replace(/^[\s]+/,""); var backgroundAttachment=ix.getElementById("bgImage").style.backgroundAttachment.replace(/^[\s]+/,""); var backgroundPosition=ix.getElementById("bgImage").style.backgroundPosition.replace(/^[\s]+/,""); var id=ix.getElementById("idField").value.replace(/^[\s]+/,""); if (!HTMLEditor.o1p.test(width)){HTMLEditor.setSelectionRange(ix.getElementById("widthField")); return false; }if (!HTMLEditor.o1p.test(height)){HTMLEditor.setSelectionRange(ix.getElementById("heightField")); return false; }if (!HTMLEditor.o1p.test(borderWidth)){HTMLEditor.setSelectionRange(ix.getElementById("borderWidth")); return false; }if (id.length>0 && X.I1.getElementById(id)!=null && X.I1.getElementById(id)!=i1p){HTMLEditor.setSelectionRange(ix.getElementById("idField")); return false; }i1p.style.width=width; i1p.style.height=height; i1p.style.borderWidth=borderWidth; if (id.length>0)i1p.id=id; else {i1p.id=null; i1p.removeAttribute("id"); }i1p.style.overflow=o1t; if (borderStyle.length>0 && borderStyle!="none" && borderWidth.length>0)i1p.style.borderStyle=borderStyle; else i1p.style.borderStyle=""; i1p.style.borderColor=(borderWidth.length>0)?borderColor: ""; i1p.style.backgroundColor=backgroundColor; i1p.style.backgroundImage=backgroundImage; i1p.style.backgroundRepeat=backgroundRepeat; i1p.style.backgroundAttachment=backgroundAttachment; i1p.style.backgroundPosition=backgroundPosition; setTimeout( function (){if (HTMLEditor.is_Safari){i1p=(il.nextSibling)?i1p.nextSibling:i1p; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq); X.O18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var o1c=X.I1.body.createControlRange(); o1c.add(i1p); o1c.select(); }catch (t){}}else {if (HTMLEditor.l11)X.f= true; i1p=(i1p.nextSibling)?i1p.nextSibling:i1p; HTMLEditor.I1o(i1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function O1t(ix,I1s){if (ix!=null){var l1t=I1s.contentWindow.document.getElementById("realStylesFolder").href; X.o1r=ix.getElementById("bgColor").value; X.i1s=ix.getElementById("bgImage").value; ix.getElementById("idField").value=(i1p.id)?i1p.id: ""; ix.getElementById("widthField").value=(i1p.style.width)?i1p.style.width: ""; ix.getElementById("heightField").value=(i1p.style.height)?i1p.style.height: ""; ix.getElementById("borderWidth").value=(i1p.style.borderLeftWidth)?i1p.style.borderLeftWidth: ""; ix.getElementById("borderStyle").value=(i1p.style.borderLeftStyle)?i1p.style.borderLeftStyle: ""; ix.getElementById("overflow").value=(i1p.style.overflow)?i1p.style.overflow: ""; ix.getElementById("borderColor").style.backgroundColor=(i1p.style.borderLeftColor)?i1p.style.borderLeftColor: ""; ix.getElementById("bgColor").style.backgroundColor=(i1p.style.backgroundColor)?i1p.style.backgroundColor: ""; ix.getElementById("bgImage").style.backgroundImage=(i1p.style.backgroundImage)?i1p.style.backgroundImage: ""; ix.getElementById("bgImage").style.backgroundRepeat=(i1p.style.backgroundRepeat)?i1p.style.backgroundRepeat: ""; ix.getElementById("bgImage").style.backgroundAttachment=(i1p.style.backgroundAttachment)?i1p.style.backgroundAttachment: ""; ix.getElementById("bgImage").style.backgroundPosition=(i1p.style.backgroundPosition)?i1p.style.backgroundPosition: ""; if (ix.getElementById("bgColor").style.backgroundColor.length>0)ix.getElementById("bgColor").value=""; if (ix.getElementById("bgImage").style.backgroundImage.length>0)ix.getElementById("bgImage").value=""; HTMLEditor.Ow(ix.getElementById("borderColor"),["click"],color); HTMLEditor.Ow(ix.getElementById("bgColor"),["click"],bgColor); HTMLEditor.Ow(ix.getElementById("clearColor"),["click"],I1q); HTMLEditor.Ow(ix.getElementById("bgImage"),["click"],O1r); HTMLEditor.Ow(ix.getElementById("clearImage"),["click"],l1s); X.l1q=ix; }}var i1t=(X.P[032].length>0)?(X.P[032]): ("__div.aspx"); X.customPopup("popup_div","div",i1t,I1i,O1t, true ,o1q,enableEvents,disableEvents); };HTMLEditor.prototype.insertForm= function (){var X=this ; var i1p; var id=HTMLEditor.Om; var innerHTML="<form id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Form"; innerHTML+="</form>"; if (X.InsertHTML(innerHTML)){i1p=X.getDocument().getElementById(id); i1p.id=null; i1p.removeAttribute("id"); X.I1t(i1p, false); }};HTMLEditor.O5= function (X,i1p){X.SaveContent(); X.I1t(i1p, true); };HTMLEditor.prototype.I1t= function (i1p,o1q){var X=this ; function I1i(ix,I1s){if (ix!=null){var width=ix.getElementById("widthField").value.replace(/^[\s]+/,""); var height=ix.getElementById("heightField").value.replace(/^[\s]+/,""); var id=ix.getElementById("idField").value.replace(/^[\s]+/,""); var name=ix.getElementById("nameField").value.replace(/^[\s]+/,""); var action=ix.getElementById("actionField").value.replace(/^[\s]+/,""); var method=ix.getElementById("methodField").value.replace(/^[\s]+/,""); if (!HTMLEditor.o1p.test(width)){HTMLEditor.setSelectionRange(ix.getElementById("widthField")); return false; }if (!HTMLEditor.o1p.test(height)){HTMLEditor.setSelectionRange(ix.getElementById("heightField")); return false; }var o1u=X.I1.getElementsByTagName("FORM"); if (name.length>0)for (var i=0; i<o1u.length; i++){if (o1u[i].name==name && o1u[i]!=i1p){HTMLEditor.setSelectionRange(ix.getElementById("nameField")); return false; }}if (id.length>0 && X.I1.getElementById(id)!=null && X.I1.getElementById(id)!=i1p){HTMLEditor.setSelectionRange(ix.getElementById("idField")); return false; }i1p.style.width=width; i1p.style.height=height; if (id.length>0)i1p.id=id; else {i1p.id=null; i1p.removeAttribute("id"); }if (name.length>0){i1p.name=name; i1p.setAttribute("name",name); }else {i1p.name=""; i1p.removeAttribute("name"); }if (action.length>0)i1p.action=action; else {i1p.action=null; i1p.removeAttribute("action"); }try {if (method.length>0)i1p.method=method; else {i1p.removeAttribute("method"); }}catch (t){}setTimeout( function (){if (HTMLEditor.is_Safari){i1p=(il.nextSibling)?i1p.nextSibling:i1p; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq); X.O18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var o1c=X.I1.body.createControlRange(); o1c.add(i1p); o1c.select(); }catch (t){}}else {if (HTMLEditor.l11)X.f= true; i1p=(i1p.nextSibling)?i1p.nextSibling:i1p; HTMLEditor.I1o(i1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function O1t(ix,I1s){if (ix!=null){ix.getElementById("widthField").value=(i1p.style.width)?i1p.style.width: ""; ix.getElementById("heightField").value=(i1p.style.height)?i1p.style.height: ""; ix.getElementById("idField").value=(i1p.id)?i1p.id: ""; ix.getElementById("nameField").value=(i1p.name)?i1p.name: ""; ix.getElementById("actionField").value=(i1p.action)?i1p.action: ""; ix.getElementById("methodField").value=(i1p.method)?i1p.method: ""; }}var i1t=(X.P[035].length>0)?(X.P[035]): ("__form.aspx"); X.customPopup("popup_form","form",i1t,I1i,O1t, true ,o1q); };HTMLEditor.prototype.insertCheckBox= function (){ this.O1u("type='checkbox'"); };HTMLEditor.prototype.insertRadio= function (){ this.O1u("type='radio'"); };HTMLEditor.prototype.insertTextBox= function (){ this.O1u("type='text' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertPassword= function (){ this.O1u("type='password' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertHidden= function (){var X=this ; if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)setTimeout( function (){alert(X.If("safari-no-support","Not supported in Safari")); } ,0764); else if (!HTMLEditor.is_ie)setTimeout( function (){alert(X.If("mozilla-no-support","Not supported in Mozilla")); } ,0764); else this.O1u("type='hidden' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertButton= function (){ this.O1u("type='button' style='width:50px;height:22px;'"); };HTMLEditor.prototype.insertSubmit= function (){ this.O1u("type='submit' style='width:50px;height:22px;' value='Submit'"); };HTMLEditor.prototype.insertReset= function (){ this.O1u("type='reset' style='width:50px;height:22px;' value='Reset'"); };HTMLEditor.prototype.O1u= function (l1u){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var i1p=null; var id=HTMLEditor.Om; if (X.lr() && HTMLEditor.getSelParent(X).tagName.toUpperCase()=="INPUT"){i1p=HTMLEditor.getSelParent(X); X.SaveContent(); X.i1u(i1p, true); }else if (X.InsertHTML("<input id='"+id+"' "+l1u+" />")){i1p=X.getDocument().getElementById(id); i1p.id=null; i1p.removeAttribute("id"); X.i1u(i1p, false); if (HTMLEditor.is_Safari)setTimeout( function (){try {i1p.blur();}catch (t){}} ,0144); }return i1p; };HTMLEditor.l3= function (X,i1p){if (i1p.type=="image" || i1p.type=="file")return; X.SaveContent(); X.i1u(i1p, true); };HTMLEditor.prototype.i1u= function (i1p,o1q){var X=this ; function I1i(ix,I1s){if (ix!=null){var width=ix.getElementById("widthField").value.replace(/^[\s]+/,""); var height=ix.getElementById("heightField").value.replace(/^[\s]+/,""); var id=ix.getElementById("idField").value.replace(/^[\s]+/,""); var name=ix.getElementById("nameField").value.replace(/^[\s]+/,""); var value=ix.getElementById("valueField").value.replace(/^[\s]+/,""); var title=ix.getElementById("titleField").value.replace(/^[\s]+/,""); var type=((i1p.type && i1p.type.length>0)?i1p.type: "text").toLowerCase(); if (!HTMLEditor.o1p.test(width)){HTMLEditor.setSelectionRange(ix.getElementById("widthField")); return false; }if (!HTMLEditor.o1p.test(height)){HTMLEditor.setSelectionRange(ix.getElementById("heightField")); return false; }if (id.length>0 && X.I1.getElementById(id)!=null && X.I1.getElementById(id)!=i1p){HTMLEditor.setSelectionRange(ix.getElementById("idField")); return false; }i1p.style.width=width; i1p.style.height=height; if (id.length>0)i1p.id=id; else {i1p.id=null; i1p.removeAttribute("id"); }if (name.length>0){i1p.name=name; i1p.setAttribute("name",name); }else {i1p.name=""; i1p.removeAttribute("name"); }if (value.length>0){i1p.value=value; i1p.setAttribute("value",value); }else {i1p.value=""; i1p.removeAttribute("value"); }if (title.length>0)i1p.title=title; else {i1p.title=""; i1p.removeAttribute("title"); }if (type=="checkbox" || type=="radio"){i1p.checked=ix.getElementById("checkField").checked; if (!HTMLEditor.is_ie){if (i1p.checked)i1p.setAttribute("checked","true"); else i1p.removeAttribute("checked"); }}setTimeout( function (){if (HTMLEditor.is_Safari){i1p=(il.nextSibling)?i1p.nextSibling:i1p; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq); X.O18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var o1c=X.I1.body.createControlRange(); o1c.add(i1p); o1c.select(); }catch (t){}}else {if (HTMLEditor.l11)X.f= true; i1p=(i1p.nextSibling)?i1p.nextSibling:i1p; HTMLEditor.I1o(i1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function O1t(ix,I1s){if (ix!=null){var type=((i1p.type && i1p.type.length>0)?i1p.type: "text").toLowerCase(); if (type=="checkbox" || type=="radio")ix.getElementById("checkField").checked=i1p.checked; else ix.getElementById("checkField").style.display="none"; ix.getElementById("widthField").value=(i1p.style.width)?i1p.style.width: ""; ix.getElementById("heightField").value=(i1p.style.height)?i1p.style.height: ""; ix.getElementById("idField").value=(i1p.id)?i1p.id: ""; ix.getElementById("nameField").value=(i1p.name)?i1p.name: ""; ix.getElementById("valueField").value=(i1p.value)?i1p.value: ""; ix.getElementById("titleField").value=(i1p.title)?i1p.title: ""; ix.getElementById("inputType").innerHTML=""; try {ix.getElementById("inputType").innerHTML=ix.getElementById("input_"+type).value; }catch (t){alert(t.message);}}}var i1t=(X.P[041].length>0)?(X.P[041]): ("__input.aspx"); X.customPopup("popup_input","input",i1t,I1i,O1t, true ,o1q); };HTMLEditor.O4= function (X,link){X.o11(); var il=link.firstChild; while (link.firstChild)link.parentNode.insertBefore(link.firstChild,link); link.parentNode.removeChild(link); if (il)HTMLEditor.I1o(il,X); setTimeout( function (){X.updateToolbar(); } ,5); X.I14(); };HTMLEditor.prototype.insertIcon= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function i1g(i1n,html){if (!i1n){X.O1f( false); }else {if (!X.I11("<img src='"+html+"' id="+HTMLEditor.Om+">")){X.O1f( false); }else {var il=X.I1.getElementById(HTMLEditor.Om); il.id=null; il.removeAttribute("id"); if (X.relativeImages)il.src=html; if (!HTMLEditor.is_ie){setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq); if (HTMLEditor.l11)X.f= true; X.O18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.I14(); }}return true; }X.o11(); X.oj("_insertIcon",X.Og("icons","Insert an Icon"),i1g); };HTMLEditor.prototype.insertAnchor= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function i1g(i1n,text){if (!i1n || text.length==0){X.O1f( false); }else {if (!X.I11("<a name='"+text+"'>"+(X.showAnchors?("<img "+X.noContextMenuAttributeName()+"='yes' title='"+text+"' src='"+X.Q[0]+"'>"): "")+"</a>")){X.O1f( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq); if (HTMLEditor.l11)X.f= true; X.O18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.I14(); }}return true; }X.o11(); X.oj("_insertAnchor",X.Og("anchor","Insert Anchor"),i1g,""); };HTMLEditor.prototype.anchorsOn= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.showAnchors=!this.showAnchors; HTMLEditor.Iy(this,this.I1,!this.showAnchors);this.updateToolbar(); };HTMLEditor.prototype.anchorsOnState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.showAnchors; };HTMLEditor.Iy= function (X,I1,I1u){var I1n=I1.getElementsByTagName("A"); var ie= false; for (var i=0; i<I1n.length; i++){var a=I1n[i]; if (a.name && a.name.length>0){var o1v=a.firstChild; while (o1v){var O1v=o1v.nextSibling; if (o1v.tagName && o1v.tagName.toUpperCase()=="IMG" && o1v.src){if (o1v.src.indexOf(X.Q[0])>0){a.removeChild(o1v);ie= true; }}o1v=O1v; }if (!I1u){var img=I1.createElement("IMG"); img.title=a.name; img.src=X.Q[0]; img.setAttribute(X.noContextMenuAttributeName(),"yes"); if (a.firstChild)a.insertBefore(img,a.firstChild); else a.appendChild(img); }}}return ie; };HTMLEditor.i4= function (X,link){function i1g(i1n,text){if (!i1n || text.length==0){setTimeout( function (){X.O1f( false); } ,012); }else {link.name=text; try {link.firstChild.title=text; }catch (t){}if (HTMLEditor.is_ie){setTimeout( function (){try {var o1c=X.I1.body.createControlRange(); o1c.add(link.firstChild); o1c.select(); }catch (t){}} ,0); }else if (HTMLEditor.l11){X.f= true; X.focusEditor(); }X.I14(); }return true; }X.o11(); X.oj("_insertAnchor",X.lg("anchor","Edit Anchor"),i1g,link.name); };HTMLEditor.prototype.insertPlaceHolder= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function i1g(i1n,text){if (!i1n || text.length==0){X.O1f( false); }else {var Ih; if (X.showPlaceHolders || HTMLEditor.is_ie)Ih="\x3cimg dummytag=\"placeholder\" title=\'"+text+"' src='"+X.Q[4]+"'>"; else Ih="<placeholder name='"+text+"'/>"; if (!X.I11(Ih)){X.O1f( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq); if (HTMLEditor.l11)X.f= true; X.O18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (!X.showPlaceHolders)HTMLEditor.oz(X,X.I1, true); }X.I14(); }}return true; }X.o11(); X.oj("_insertPlaceHolder",X.Og("placeholder","Insert PlaceHolder"),i1g,""); };HTMLEditor.prototype.placeHoldersOn= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.showPlaceHolders=!this.showPlaceHolders; HTMLEditor.oz(this,this.I1,!this.showPlaceHolders);this.updateToolbar(); };HTMLEditor.prototype.placeHoldersOnState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.showPlaceHolders; };HTMLEditor.oz= function (X,I1,I1u){var ie= false; if (I1u){var l1v=I1.getElementsByTagName("IMG"); var I1n=[]; for (var i=0; i<l1v.length; i++)I1n.push(l1v[i]); for (var i=0; i<I1n.length; i++){var a=I1n[i]; var i1v=a.getAttribute("dummytag"); if (i1v && i1v.length>0 && i1v.toLowerCase()=="placeholder"){var I1v=I1.createElement("PLACEHOLDER"); var title=a.title; if (title==null || typeof title=="undefined")title=a.getAttribute("title"); I1v.name=title; I1v.setAttribute("name",title); a.parentNode.insertBefore(I1v,a); a.parentNode.removeChild(a); ie= true; }}}else {var l1v=I1.getElementsByTagName("PLACEHOLDER"); var I1n=[]; for (var i=0; i<l1v.length; i++)I1n.push(l1v[i]); for (var i=0; i<I1n.length; i++){var a=I1n[i]; var o1w= true; try {if (a.childNodes.length>0)o1w= false; }catch (w){}if (o1w){var name=a.name; if (name==null || typeof name=="undefined")name=a.getAttribute("name"); var img=I1.createElement("IMG"); img.title=name; img.src=X.Q[4]; img.setAttribute("dummytag","placeholder"); img.setAttribute("title",name); a.parentNode.insertBefore(img,a); a.parentNode.removeChild(a); }}}return ie; };HTMLEditor.i3= function (X,link){function i1g(i1n,text){if (!i1n || text.length==0){setTimeout( function (){X.O1f( false); } ,012); }else {link.title=text; link.setAttribute("title",text); if (HTMLEditor.is_ie){setTimeout( function (){var o1c=X.I1.body.createControlRange(); o1c.add(link); o1c.select(); } ,0); }else if (HTMLEditor.l11){X.f= true; X.focusEditor(); }X.I14(); }return true; }X.o11(); var title=link.title; if (title==null || typeof title=="undefined")title=link.getAttribute("title"); X.oj("_insertPlaceHolder",X.lg("placeholder","Edit PlaceHolder"),i1g,title); };HTMLEditor.prototype.insertSpec= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function i1g(i1n,html){if (!i1n){X.O1f( false); }else {if (!X.I11(html)){X.O1f( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq); if (HTMLEditor.l11)X.f= true; X.O18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.I14(); }}return true; }X.o11(); X.oj("_insertSpec",X.Og("special-characters","Insert a special character"),i1g); };HTMLEditor.prototype.spellCheck= function (Oq){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function i1g(i1n,O1w){if (!i1n){X.O1f( false); }else {if (HTMLEditor.l11){X.f= true; X.focusEditor(); }X.updateToolbar(); X.focusEditor(); }if (typeof Oq=="function")setTimeout( function (){Oq(i1n); X.I14(); } ,0); X.I14(); return true; }X.o11(); X.l1w( function (i1w){X.On(); X.updateToolbar(); X.oj("_spellCheck",X.Og("spell-checker","Spell checker"),i1w,i1g); } ); };HTMLEditor.prototype.customPopup= function (I1w,o1x,O1x,I1i,O1t,l1x,o1q,i1x,I1x){var X=this ; var o1y=I1i; if (I1i!=null && typeof I1i=="function"){o1y= function (ix,I1s){var ie=I1i(ix,I1s); if (ix!=null){setTimeout( function (){X.I14(); } ,0144); }return ie; } ; }X.oj("_customPopup",I1w,o1x,O1x,o1y,O1t,l1x,o1q,i1x,I1x); };HTMLEditor.prototype.insertHR= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; try { this.o11(); if (HTMLEditor.is_Safari)this.or(this.iq()); var O1y=this.I1.createElement("div"); O1y.innerHTML="<hr>"; var il=O1y.firstChild; var X=this ; var l1y=this.i1y(); if (!l1y)return; var parent=l1y.parentNode; parent.insertBefore(il,l1y); parent.removeChild(l1y); il=(il.nextSibling)?il.nextSibling:il; HTMLEditor.I1o(il,X); setTimeout( function (){X.I14(); X.updateToolbar(); } ,5); X.focusEditor(); return true; }catch (t){alert("HR: "+t.message); }};HTMLEditor.I1o= function (I1y,X){var il=I1y; if (HTMLEditor.is_ie){var lq=X.iq(); var Iq=X.or(lq); var o1z=0,_top=0; var O1z=(il.nodeType==3); var span; if (O1z){span=X.I1.createElement("SPAN"); il.parentNode.insertBefore(span,il); il=span; }while (il){if (il.tagName.toUpperCase()=="BODY")break; o1z+=il.offsetLeft; _top+=il.offsetTop; il=il.offsetParent; if (il){o1z+=il.clientLeft; _top+=il.clientTop; }}if (O1z){span.parentNode.removeChild(span); }if (lq.type.toLowerCase()!="control"){try {Iq.moveToPoint(o1z,_top); }catch (t){}}Iq.select(); }else {var lq=X.iq(); var Iq=X.or(); Iq.setStart(il,0); Iq.setEnd(il,0); X.o18(lq); if (HTMLEditor.l11)X.f= true; X.O18(lq,Iq); X.focusEditor(); }};HTMLEditor.prototype.getRange= function (){return this.or(this.iq()); };HTMLEditor.prototype.setRange= function (Iq){try {if (HTMLEditor.is_ie){Iq.select(); }else {var lq=this.iq(); this.o18(lq); this.O18(lq,Iq); } this.focusEditor(); }catch (t){}};HTMLEditor.prototype._butState= function (l1z,i1z){var id=document.getElementById(l1z); var il=id; this.I1z=i1z; var status=this.I1z(); if (il.tagName.toUpperCase()=="IMG"){var om=il.getAttribute("but_status"); if (om && om.length>0){if (om!=((status)?"_a": "_n")){il.setAttribute("but_status",((status)?"_a": "_n")); il.src=((status)?il.getAttribute("active_src"):il.getAttribute("passive_src")); }return; }var ik=il.src; var l1d=ik.search(/_[nahp]\.gif/i); if (l1d>0 && ik.substring(l1d,2).toLowerCase()!=((status)?"_a": "_n")){ik=ik.substring(0,l1d)+((status)?"_a.gif": "_n.gif"); il.src=ik; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.o20(il,ik);} ,0144); return; }}};HTMLEditor.prototype._butOver= function (il){return; if (this.isPopup())return; if (il.tagName.toUpperCase()=="IMG"){var ik=il.src; var l1d=ik.search(/_[nahp]\.gif/i); if (l1d>0){il.setAttribute("save_src",ik); if (ik.search(/_a\.gif/i)>0)ik=ik.substring(0,l1d)+"_p.gif"; else ik=ik.substring(0,l1d)+"_h.gif"; il.src=ik; il.setAttribute("save_over","1"); return; }}if (il.className=="HE_button")il.className="HE_button_over"; };HTMLEditor.prototype._butOut= function (il){return; if (il.tagName.toUpperCase()=="IMG"){var ik=il.src; var l1d=ik.search(/_[nahp]\.gif/i); if (l1d>0){var om=il.getAttribute("save_src"); if (om && om.length>0)il.src=om; il.setAttribute("save_over",""); return; }}if (il.className=="HE_button_over")il.className="HE_button"; };HTMLEditor.prototype._butDown= function (il){var X=this ; if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; if (X.i10){X.i10.select(); X.i10=null; }}if (this.isPopup())return; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (il.tagName.toUpperCase()=="IMG"){var X=this ; var om=il.getAttribute("but_status"); if (om && om.length>0){if (om!="_a"){il.setAttribute("but_status","_a"); il.src=il.getAttribute("active_src"); X.O20=setTimeout( function (){X._butUp(il); X.O20=null; } ,03720); }return; }var ik=il.src; var l1d=ik.search(/_[nahp]\.gif/i); if (l1d>0 && ik.substring(l1d,2).toLowerCase()!="_a"){ik=ik.substring(0,l1d)+"_a.gif"; il.src=ik; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.o20(il,ik);} ,0144); X.O20=setTimeout( function (){X._butUp(il); X.O20=null; } ,03720); return; }}};HTMLEditor.o20= function (il,l20){var i20=il.src.search(/_[nahp]\.gif/i); var I20=l20.search(/_[nahp]\.gif/i); if (i20>0 && I20>0 && il.src.substring(0,i20).toLowerCase()==l20.substring(0,I20).toLowerCase())return; il.src=l20; setTimeout( function (){HTMLEditor.o20(il,l20);} ,0144); };HTMLEditor.prototype._butUp= function (il){if (il.tagName.toUpperCase()=="IMG"){var X=this ; var om=il.getAttribute("but_status"); if (om && om.length>0){if (om!="_n"){if (X.O20){clearTimeout(X.O20); X.O20=null; }il.setAttribute("but_status","_n"); il.src=il.getAttribute("passive_src"); }return; }var ik=il.src; var l1d=ik.search(/_[nahp]\.gif/i); if (l1d>0 && ik.substring(l1d,2).toLowerCase()!="_n"){if (X.O20){clearTimeout(X.O20); X.O20=null; }ik=ik.substring(0,l1d)+"_n.gif"; il.src=ik; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.o20(il,ik);} ,0144); }}return true; };HTMLEditor.prototype.i1y= function (o21){var il=this.I1.createElement("SPAN"); var X=this ; il.id=HTMLEditor.Om; if (typeof o21=="undefined"){if (!this.I11(HTMLEditor.getHTML(il, true)))return null; }else {if (o21.nextSibling==null)o21.parentNode.appendChild(il); else o21.parentNode.insertBefore(il,o21.nextSibling); o21.parentNode.removeChild(o21); }il=this.I1.getElementById(HTMLEditor.Om); il.id=null; il.removeAttribute("id"); il.setAttribute("para","no"); var parent=il.parentNode; while (parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="TD" && parent.tagName.toUpperCase()!="P" && parent.tagName.toUpperCase()!="DIV"){if (HTMLEditor.i1j(parent.tagName))parent=parent.parentNode; else break; }if (parent.tagName.toUpperCase()=="P"){il.setAttribute("para",""); function O21(add,il,l21,i21){var I21; var par=HTMLEditor.o22(l21,X.I1, false); if (add)par.appendChild(add); while (il){if (il.nodeType==1 || (il.nodeType==3 && HTMLEditor.O13(""+il.data+"").length>0)){var text=null; if (il.tagName && il.tagName.toUpperCase()=="SCRIPT")text=il.text; var O22=HTMLEditor.o22(il,X.I1, true); if (par.childNodes.length==0 || !i21)par.appendChild(O22); else par.insertBefore(O22,par.firstChild); if (text!=null)O22.text=text; }il=i21?il.previousSibling:il.nextSibling;}if (par.childNodes.length==0){ delete par; par=null; }if (l21==parent)return par; else return O21(par,i21?l21.previousSibling:l21.nextSibling,l21.parentNode,i21); } ; var l22=O21(null,il.previousSibling,il.parentNode, true); var i22=O21(null,il.nextSibling,il.parentNode, false); var par=parent.parentNode; if (l22){par.insertBefore(l22,parent); il.setAttribute("para",il.getAttribute("para")+" left"); }par.insertBefore(il,parent); if (i22){par.insertBefore(i22,parent); il.setAttribute("para",il.getAttribute("para")+" right"); }par.removeChild(parent); }return il; };HTMLEditor.prototype.mode= function (){return this.i1; };HTMLEditor.prototype.l1h= function (I22,value){ this.o1j(I22, false ,value); };HTMLEditor.prototype.o23= function (I22){return this.i1h(I22); };HTMLEditor.prototype.O23= function (){if (HTMLEditor.is_ie)return "&nbsp;"; else return "<br/>"; };HTMLEditor.prototype.insertTable= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var lq=this.iq(); var Iq; try {Iq=this.or(lq); }catch (Ij){alert(this.If("click-to-editor","Click to editing panel.")); X.o18(lq); return; }if (HTMLEditor.getSelParent(this ).ownerDocument.id!="EditorDocument"){alert(this.If("click-to-editor","Click to editing panel.")); return false; }var X=this ; var ix=X.I1; this.o11(); var O1y=this.I1.createElement("div"); O1y.innerHTML="<table></table>"; var table=O1y.firstChild; function i1g(i1n){var il=table; if (i1n){il=il.firstChild.firstChild.firstChild; HTMLEditor.I1o(il,X); setTimeout( function (){X.updateToolbar(); X.I14(); } ,5); }else {X.O1f( false); }X.focusEditor(); return true; }table.style.width=this.defaultTable.width; table.style.height=this.defaultTable.height; table.cellPadding=this.defaultTable.cellPadding; table.cellSpacing=this.defaultTable.cellSpacing; table.style.borderLeftWidth=this.defaultTable.borderWidth; table.style.borderLeftColor=this.defaultTable.borderColor; table.style.borderLeftStyle=this.defaultTable.borderStyle; table.style.backgroundColor=this.defaultTable.backgroundColor; table.style.backgroundImage=this.defaultTable.backgroundImage; for (var i=0; i<this.defaultTable.rows; i++){var l23=table.insertRow(table.rows.length); for (var Oh=0; Oh<this.defaultTable.columns; Oh++){var cell=l23.insertCell(l23.cells.length); if (HTMLEditor.is_Safari){if (!cell.colSpan || parseInt(cell.colSpan)==0){cell.colSpan="1"; cell.setAttribute("colspan","1"); }if (!cell.rowSpan || parseInt(cell.rowSpan)==0){cell.rowSpan="1"; cell.setAttribute("rowspan","1"); }}cell.innerHTML=this.O23(); }}var l1y=this.i1y(); if (!l1y){X.O1f( false); return; }var parent=l1y.parentNode; parent.insertBefore(table,l1y); parent.removeChild(l1y); X.oj("_tableProperties",X.Og("table","Insert a Table"),table,i1g,0,0); };HTMLEditor.prototype.makeNotEditable= function (){var X=this ; if (!(X.l1 && X.mode()=="html" && !X.isPopup()))return; var l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(X.i1b()): ""; var lq=X.iq(); var Iq=X.or(lq); if (X.lr())return; if (!((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0)))return; var lq=X.iq(); var Iq=X.or(lq); var i23=HTMLEditor.Om+"_right"; var I23=HTMLEditor.Om+"_left"; var o24=null; var O24=null; if (HTMLEditor.is_ie){o24=Iq.duplicate(); O24=Iq.duplicate(); o24.setEndPoint("EndToStart",Iq); O24.setEndPoint("StartToEnd",Iq); }else {o24=Iq.cloneRange(); O24=Iq.cloneRange(); o24.setEnd(o24.startContainer,o24.startOffset); O24.setStart(O24.endContainer,O24.endOffset); }var o1b=null; var O1b=null; X.o11(); if (!X.I11("<span id='"+i23+"'/>",O24))return []; if (!X.I11("<span id='"+I23+"'/>",o24)){var l24=X.I1.getElementById(i23); if (l24!=null){ik=l24.parentNode; ik.removeChild(l24); }X.O1f( false); return; }o1b=X.I1.getElementById(I23); O1b=X.I1.getElementById(i23); if (o1b==null){var span=X.I1.createElement("SPAN"); span.id=I23; O1b.parentNode.insertBefore(span,O1b); o1b=span; }if (O1b==null){var span=X.I1.createElement("SPAN"); span.id=i23; if (o1b.nextSibling)o1b.parentNode.insertBefore(span,o1b.nextSibling); else o1b.parentNode.appendChild(span); O1b=span; }HTMLEditor.i24(o1b); HTMLEditor.i24(O1b); var I24=HTMLEditor.o25(o1b,O1b); var O25=null; if (I24!=null){var parent=I24.parent; var l25=parent.tagName.toUpperCase(); var il=null; if (l25=="TR" || l25=="TBODY" || l25=="TABLE"){var il=parent; while (il && il.tagName.toUpperCase()!="TABLE")il=il.parentNode; }else if (l25=="OL" || l25=="UL" || l25=="DL"){var il=parent; }if (il!=null){il.parentNode.insertBefore(o1b,il); if (il.nextSibling)il.parentNode.insertBefore(O1b,il.nextSibling); else il.parentNode.appendChild(O1b); I24=HTMLEditor.o25(o1b,O1b); parent=I24.parent;}var i25=I24.parent.childNodes.item(I24.I25); var o26=I24.parent.childNodes.item(I24.O26); var l26="SPAN"; O25=X.I1.createElement(l26); if (HTMLEditor.is_ie)O25.contentEditable="false"; else O25.setAttribute("contenteditable","false"); parent.insertBefore(O25,i25);while (i25!=null){var i26=i25.nextSibling; O25.appendChild(i25); if (i25==o26)break; i25=i26; }if (HTMLEditor.is_ie){Iq=X.I1.body.createControlRange(); Iq.add(O25); Iq.select(); }else {lq=X.iq(); var I17; if (O25.nextSibling!=null && O25.nextSibling.nodeType==3){I17=O25.nextSibling; }else {I17=X.I1.createTextNode(""); if (O25.nextSibling!=null)O25.parentNode.insertBefore(I17,O25.nextSibling); else O25.parentNode.appendChild(I17); }X.o18(lq); Iq=X.or(lq); Iq.setStart(I17,0); Iq.setEnd(I17,0); X.O18(lq,Iq); }}if (o1b!=null)o1b.parentNode.removeChild(o1b); if (O1b!=null)O1b.parentNode.removeChild(O1b); if (O25!=null){var index=HTMLEditor.i17(O25); HTMLEditor.I26(O25.parentNode,this.I1,index,index+1); }};HTMLEditor.prototype.insertIMG= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var lq=this.iq(); var Iq=this.or(lq); var X=this ; var ix=X.I1; this.o11(); function i1g(i1n){try {var il=ix.getElementById(HTMLEditor.Om); il.id=null; il.removeAttribute("id"); if (i1n){if (HTMLEditor.is_Safari){il=(il.nextSibling)?il.nextSibling:il; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq); X.O18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){var o1c=ix.body.createControlRange(); o1c.add(il); o1c.select(); }else {if (HTMLEditor.l11)X.f= true; il=(il.nextSibling)?il.nextSibling:il; HTMLEditor.I1o(il,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.I14(); }else {X.O1f( false); }X.focusEditor(); }catch (t){alert("IMG create: "+t.message); }return true; }var O1y=this.I1.createElement("div"); O1y.innerHTML="<img>"; var img=O1y.firstChild; img.id=HTMLEditor.Om; img.src=""; img.alt=""; img.border=0; img.align=""; img.vspace=0; img.hspace=0; if (!HTMLEditor.is_ie){}if (this.I11(HTMLEditor.getHTML(img, true))){var il=ix.getElementById(HTMLEditor.Om); this.oj("_imageProperties",this.Og("image","Insert Image"),il,i1g, true); }else {X.O1f( false); }};HTMLEditor.prototype.insertFlash= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var lq=this.iq(); var Iq=this.or(lq); var X=this ; var ix=X.I1; this.o11(); function i1g(i1n){try {var il=ix.getElementById(HTMLEditor.Om); il.id=null; il.removeAttribute("id"); if (i1n){if (HTMLEditor.is_Safari){il=(il.nextSibling)?il.nextSibling:il; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq); X.O18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){il.id=HTMLEditor.Om; this.o11(); setTimeout( function (){X.O1f( false); var I1c=X.I1.getElementById(HTMLEditor.Om); I1c.id=null; I1c.removeAttribute("id"); var o1c=X.I1.body.createControlRange(); o1c.add(I1c); o1c.select(); } ,0); }else {if (HTMLEditor.l11)X.f= true; il=(il.nextSibling)?il.nextSibling:il; HTMLEditor.I1o(il,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.I14(); }else {X.O1f( false); }X.focusEditor(); }catch (t){alert("Flash create: "+t.message); }return true; }var O1y=this.I1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); O1y.innerHTML="\x3cembed src=\""+src+"\" type=\"application/x-shockwave-flash\" id=\""+HTMLEditor.Om+"\" quality=\"high\" wmode=\"transparent\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" >"; }else {O1y.innerHTML="\x3cimg type=\"application/x-shockwave-flash\" dummytag=\"embed\" id=\""+HTMLEditor.Om+"\" quality=\"high\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\""+" src=\""+X.Q[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; O1y.firstChild.style.backgroundImage="url('"+X.Q[2]+"')"; }var o27=O1y.firstChild; var O27=HTMLEditor.getHTML(o27, true); if (this.I11(O27)){var il=ix.getElementById(HTMLEditor.Om); this.oj("_flashProperties",this.Og("flash","Insert Flash"),il,i1g); }else {X.O1f( false); }};HTMLEditor.prototype.insertMedia= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var lq=this.iq(); var Iq=this.or(lq); var X=this ; var ix=X.I1; this.o11(); function i1g(i1n){try {var il=ix.getElementById(HTMLEditor.Om); il.id=null; il.removeAttribute("id"); if (i1n){if (HTMLEditor.is_Safari){il=(il.nextSibling)?il.nextSibling:il; setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.o18(lq); X.O18(lq,Iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){il.id=HTMLEditor.Om; this.o11(); setTimeout( function (){X.O1f( false , function (){var I1c=X.I1.getElementById(HTMLEditor.Om); I1c.id=null; I1c.removeAttribute("id"); var o1c=X.I1.body.createControlRange(); o1c.add(I1c); o1c.select(); } ); } ,0); }else {if (HTMLEditor.l11)X.f= true; il=(il.nextSibling)?il.nextSibling:il; HTMLEditor.I1o(il,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.I14(); }else {X.O1f( false); }X.focusEditor(); }catch (t){alert("Media create: "+t.message); }return true; }var O1y=this.I1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); O1y.innerHTML="\x3cembed src=\""+src+"\" type=\"application/x-mplayer2\" id=\""+HTMLEditor.Om+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\" >"; }else {O1y.innerHTML="\x3cimg type=\"application/x-mplayer2\" dummytag=\"embed\" id=\""+HTMLEditor.Om+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\""+" src=\""+X.Q[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; O1y.firstChild.style.backgroundImage="url('"+X.Q[3]+"')"; }var o27=O1y.firstChild; if (this.I11(HTMLEditor.getHTML(o27, true))){var il=ix.getElementById(HTMLEditor.Om); this.oj("_mediaProperties",this.Og("media","Insert Media"),il,i1g); }else {X.O1f( false); }};HTMLEditor.o1= function (){ this.width="auto"; this.height="auto"; this.l27="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.i27=050; HTMLEditor.prototype._changeHeight= function (I27){var X=this ; var i26=document.getElementById(X.mainDivId); var o28=null; var height; if (this.ShowQuickFormatDivId!=null)o28=document.getElementById(X.ShowQuickFormatDivId); if (parseInt(X.l15.style.height)+I27<0)return; if (this.i1=="text"){if (this.ShowQuickFormatDivId!=null)HTMLEditor.o19(this.ShowQuickFormatDivId); }else {if (!this._autoFocus && !this._wasFocused){HTMLEditor.o19(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.o19(this.ShowQuickFormatDivId); }}var O19=i26.offsetWidth; try {height=parseInt(X._textArea.style.height)+I27+"px"; X._textArea.style.height=height; }catch (t){}height=parseInt(X.l15.style.height)+I27+"px"; X.l15.style.height=height; X.I8.l9=height; if (HTMLEditor.is_ie && document.compatMode!="BackCompat")X.I8.l9=parseInt(height)+2+"px"; if (!HTMLEditor.is_Safari){if (typeof X.oy!="undefined"){X.oy=parseInt(X.oy)+I27; }}if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+I27+"px"; }if (X.ow){X.ow.style.height=parseInt(X.ow.style.height)+I27+"px"; }if (o28){height=parseInt(o28.childNodes.item(1).style.height)+I27+"px"; o28.childNodes.item(1).style.height=height; }if (!HTMLEditor.is_ie){if (O19!=i26.offsetWidth){X._onresize(); }}if (X.i1=="text"){if (X.ShowQuickFormatDivId!=null)HTMLEditor.O15(X.ShowQuickFormatDivId); }else {if (!X._autoFocus && !X._wasFocused){HTMLEditor.O15(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.O15(X.ShowQuickFormatDivId, true); }}};HTMLEditor.prototype.increaseHeight= function (){ this._changeHeight(HTMLEditor.i27); };HTMLEditor.prototype.decreaseHeight= function (){ this._changeHeight(0-HTMLEditor.i27); };HTMLEditor.prototype.setHeight= function (size){try { this._changeHeight(size-document.getElementById(this.mainDivId).offsetHeight); }catch (t){}};HTMLEditor.prototype.getHeight= function (size){return document.getElementById(this.mainDivId).offsetHeight; };HTMLEditor.prototype._onresize= function (t){var X=this ; if (typeof t!="undefined"){if (!X._autoFocus && !X._wasFocused){HTMLEditor.o19(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.o19(X.ShowQuickFormatDivId); }}var i26=document.getElementById(X.mainDivId); var l1e=document.getElementById(X.panelDivId); if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.O28 && typeof X.O28!="undefined"){X.l15.style.visibility="hidden"; }try {if (X.I8.l28!=i26.offsetWidth){var width=i26.offsetWidth-X.I8.l28; if (!HTMLEditor.is_ie){if (X.I8.o1a!=l1e.offsetHeight)width-=2; X.l15.style.width=parseInt(X.l15.style.width)+width+"px"; X.I8.O9=X.l15.style.width; if (X._iframe){X._iframe.style.width=X.l15.style.width; }if (X.ow){X.ow.style.width=X.l15.style.width; }}if (HTMLEditor.I13){if (X._iframe){X._iframe.style.width=parseInt(X._iframe.style.width)+width+"px"; }}X.I8.l28=i26.offsetWidth; X.I8.i28=l1e.offsetWidth; }if (X.I8.o1a!=l1e.offsetHeight){var height=X.I8.o1a-((l1e.style.display=="none")?0:l1e.offsetHeight); X.l15.style.height=parseInt(X.l15.style.height)+height+(!HTMLEditor.is_ie && document.compatMode!="BackCompat"?2: 0)+"px";if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+height+"px"; var I28=(l1e.offsetWidth>0)?l1e.offsetWidth:X.Oy; if (!HTMLEditor.is_ie){X._iframe.style.width=I28-2+"px"; }}if (X.ow && X.ow.style.display!="none"){X.ow.style.height=parseInt(X.ow.style.height)+height+"px"; if (!HTMLEditor.is_ie){X.ow.style.width=I28-2+"px"; }}X.I8.l9=parseInt(X.I8.l9)+height+"px"; if (X.ow!=null && X.ow.style.display=="none")X.ow.style.height=X.I8.l9; if (!HTMLEditor.is_ie){X.I8.O9=I28-2+"px"; X.l15.style.width=I28-2+"px"; X.Oy=I28; }X.I8.o1a=l1e.offsetHeight; }}catch (t){}if (typeof t!="undefined"){if (!X._autoFocus && !X._wasFocused){HTMLEditor.O15(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.O15(X.ShowQuickFormatDivId, true); }}if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.O28 && typeof X.O28!="undefined"){X.O28=X.l15.value; X.l15.value=""; X.l15.style.visibility="hidden"; X.setTimeout( function (lx){if (X.iu(lx))return; X.l15.value=X.O28; X.O28=null;X.l15.style.visibility="visible"; X.focusEditor(); } ,036); }};HTMLEditor.prototype.O1a= function (O19){var X=this ; function o29(){var ix; if (HTMLEditor.is_Safari)ix=document.getElementById(X._hiddenContent+"_inner_iframePreview").contentWindow.document; else ix=X.ow.contentWindow.document; if (!ix){if (HTMLEditor.O29 || HTMLEditor.l11){setTimeout( function (){o29(); } ,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var l29=O19; var i29= false; function I29(o2a,l22,i22){l29=i22; i29= true; }O19.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,I29); O19=l29; ix.open(); var html=new O2a(); if (X.d!=null)html.write(X.d); html.write("<html"+(X.B!=null?X.B: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); if (X.D!=null)html.write(X.D); html.write("\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var l2a=0; l2a<X._addCssFiles.length; l2a++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[l2a]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }html.write("</head>"); html.write("<body"+(X.C!=null?X.C: "")+">"); html.write(O19); html.write("</body>"); html.write("</html>"); ix.write(html.toString()); ix.close(); if (HTMLEditor.is_ie)X.ow.style.visibility="visible"; setTimeout( function (){if (!HTMLEditor.is_Safari){var l1e=document.getElementById(X.panelDivId); l1e.style.display="none"; }if (X.ShowQuickFormatDivId!=null){}if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_ie){X.ow.style.width="100%"; setTimeout( function (){X.ow.style.width=X.ow.offsetWidth+"px"; X.l15.style.width=X.ow.offsetWidth+"px"; } ,0); X.ow.style.height=X.I8.l9; }}} ,0); X.On(); }setTimeout(o29,(HTMLEditor.O29 || HTMLEditor.l11)?0144: 0); };HTMLEditor.o9= function (className){if (HTMLEditor.is_Safari)return true; var i2a=document.styleSheets,I2a=i2a.length; var o2b= false; var O1w=[]; function O2b(l2b){if (l2b.imports){try {var imports=l2b.imports,I2a=imports.length; for (var i=0; i<I2a; i++)O2b(l2b.imports[i]); }catch (t){}}try {var rules=HTMLEditor.is_ie?l2b.rules:l2b.cssRules,I2a=rules.length; for (var Oh=0; Oh<I2a; Oh++)i2b(rules[Oh]); }catch (t){}}function i2b(rule){try {var select=rule.selectorText,style=rule.style; O1w.push( {select:select,style:style } ); }catch (w){}}for (var i=0; i<I2a; i++)O2b(i2a[i]); for (var i=0; i<O1w.length; i++){try {var item=O1w[i]; if (item.select.indexOf(className)>=0)return true; }catch (w){}}return o2b; };HTMLEditor.prototype.ox= function (){var X=this ; var Y=this._textArea; if (X.I8==null){if (HTMLEditor.o9(".HE_editPanel")){X.I8= {O9:X._textArea.offsetWidth,l9:X._textArea.offsetHeight } ; }else {setTimeout( function (){X.ox(); } ,062); return; }}var height=(this.I.height=="auto"?(parseInt(this.I8.l9)+"px"): this.I.height); height=parseInt(height); var width=(this.I.width=="auto"?(parseInt(this.I8.O9)+"px"): this.I.width); width=parseInt(width); var Ih=HTMLEditor.O13(X._textArea.value); if (X.F==null){X.F=[]; function I2b(o2a,l22){X.F.push(o2a); return ""; }Ih=Ih.replace(/(<style(?:[^>]*?)>(?:[^<]*?)<\/style(?:[^>]*?)>)/gi,I2b); X._textArea.value=Ih; }Y.style.display="none"; var o2c=document.createElement("div"); o2c.className="inner_htmlarea"; this.l1=o2c; Y.parentNode.insertBefore(o2c,Y); var iframe=document.createElement("iframe"); iframe.id=X._hiddenContent+"_inner_iframe"; iframe.name=X._hiddenContent+"_inner_iframe"; if (this.ignoreTab)iframe.tabIndex=-1; if (HTMLEditor.is_ie)iframe.src="javascript:false;"; if (HTMLEditor.is_ie)iframe.style.visibility="hidden"; iframe.className="inner_iframe"; o2c.appendChild(iframe); this._iframe=iframe; iframe.marginHeight="0"; iframe.marginWidth="0"; iframe.style.borderWidth="0px"; if (HTMLEditor.is_ie && !HTMLEditor.I13)iframe.style.width="100%"; else {if (!HTMLEditor.l11 && document.compatMode!="BackCompat")width-=2; iframe.style.width=width+"px"; }iframe.style.height=height+"px"; this.ow=document.createElement("iframe"); this.ow.style.display="none";if (HTMLEditor.is_ie)this.ow.style.visibility="hidden"; this.ow.id=X._hiddenContent+"_inner_iframePreview"; this.ow.name=X._hiddenContent+"_inner_iframePreview"; if (this.ignoreTab)this.ow.tabIndex=-1; if (HTMLEditor.is_ie)this.ow.src="javascript:false;"; this.ow.className="inner_iframe"; o2c.appendChild(this.ow); this.ow.marginHeight="0"; this.ow.marginWidth="0"; this.ow.style.borderWidth="0px"; if (HTMLEditor.is_ie)this.ow.style.width="100%"; else { this.ow.style.width=width+"px"; } this.ow.style.height=height+"px"; Y=document.createElement("textarea"); if (HTMLEditor.is_ie){width="100%"; }else width=parseInt(iframe.offsetWidth)+"px"; height=parseInt(iframe.offsetHeight); if (HTMLEditor.is_ie)if (document.compatMode!="BackCompat")height-=2; Y.style.width=width; Y.style.height=height+"px";Y.style.margin="0px"; Y.style.padding="0px"; Y.style.borderWidth="0px"; Y.style.overflow="auto"; if (this.ignoreTab)Y.tabIndex=-1; Y.style.display="none"; if (HTMLEditor.is_ie)Y.style.visibility="hidden"; o2c.appendChild(Y); this.l15=Y; function O2c(lx){if (X.iu(lx))return; var ix; if (HTMLEditor.is_Safari)ix=document.getElementById(X._hiddenContent+"_inner_iframe").contentWindow.document; else ix=X._iframe.contentWindow.document; if (!ix){if (HTMLEditor.O29 || HTMLEditor.l11){X.setTimeout(O2c,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}try {if (HTMLEditor.O29 || HTMLEditor.l11){ix.designMode="on"; }}catch (t){document.location.reload( true); return false; }X.I1=ix; ix.open(); var html=new O2a(); if (X.d!=null)html.write(X.d.replace(/(<!doctype [^>]*>)/ig,"")); html.write("<html"+(X.B!=null?X.B: "")+(HTMLEditor.is_ie?" xmlns:teo"+HTMLEditor.Om: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); html.write("\x3clink rel=\"stylesheet\" href=\""+X.Q[013]+"\" media=\"all\" />"); if (HTMLEditor.is_ie){html.write("<style> li {margin-top: 1px;} </style>"); }for (var l2c=0; l2c<X.F.length; l2c++)html.write(X.F[l2c]); html.write("\x3cstyle>\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var l2a=0; l2a<X._addCssFiles.length; l2a++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[l2a]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }if (X.D!=null)html.write(X.D.replace(/<meta[^\0]*?\/>/gi,"")); html.write("</head>"); html.write("<body id='editorBody'"+(X.C!=null?X.C: "")+">"); if (!HTMLEditor.is_ie){}else Ih=Ih.replace(/&amp;/ig,"&"); if (Ih.length==0){if (HTMLEditor.is_ie){}else {Ih="<br/>"; }}if (!HTMLEditor.is_ie){if (/<iframe/.test(Ih)){X.i11=Ih; Ih="";}else {X.i11=null; }}html.write(Ih); html.write("</body>"); html.write("</html>"); ix.write(html.toString()); ix.close(); if (HTMLEditor.is_ie && X._autoFocus)X._iframe.style.visibility="visible"; ix.id="EditorDocument"; if (HTMLEditor.is_ie){function i2c(il){if (il.nodeType==1 && il.tagName){var Il=il.tagName.toUpperCase(); if (Il!="INPUT" && Il!="TEXTAREA" && Il!="IFRAME"){il.unselectable="on"; }for (var I2c=0; I2c<il.childNodes.length; I2c++)i2c(il.childNodes.item(I2c)); }}i2c(document.getElementById(X.mainDivId)); ix.body.unselectable="off"; Y.unselectable="off"; if (X._autoFocus)ix.body.contentEditable= true; }else {try {if (X.panelDivId!=null)if (document.getElementById(X.panelDivId))document.getElementById(X.panelDivId).style.MozUserSelect="none"; if (X.bottomPanelDivId!=null)if (document.getElementById(X.bottomPanelDivId))document.getElementById(X.bottomPanelDivId).style.MozUserSelect="none"; }catch (t){}}HTMLEditor.Ow(ix,["keydown","keypress","mousedown","mouseup","dblclick"], function (event){return X.o2d(event); } ); if (HTMLEditor.l11)HTMLEditor.Ik(X._iframe,"blur", function (event){X.f= false; HTMLEditor._stopEvent(event); return true; } ); if (HTMLEditor.l11)HTMLEditor.Ik(X._iframe,"focus", function (event){X.f= true; HTMLEditor._stopEvent(event); return true; } ); if (X._NoDrop){if (HTMLEditor.is_ie){HTMLEditor.Ow(ix.body,["drop"], function (event){HTMLEditor._stopEvent(event); return false; } ); HTMLEditor.Ow(ix.body,["dragenter","dragover"], function (event){HTMLEditor._stopEvent(event); return false; } ); }else {HTMLEditor.Ow(ix,["dragdrop"], function (event){HTMLEditor._stopEvent(event); return false; } ); }}if (X._NoPaste && HTMLEditor.is_ie){HTMLEditor.Ow(ix.body,["beforepaste","paste"], function (event){HTMLEditor._stopEvent(event); return false; } ); }if (!X.O2d){var l1e=document.getElementById(X.mainDivId); X.I8.l28=l1e.offsetWidth; l1e=document.getElementById(X.panelDivId); X.I8.o1a=l1e.offsetHeight; X.I8.i28=l1e.offsetWidth; if (!l1e.style.width || l1e.style.width.indexOf("px")<0){X.O2d= true; HTMLEditor.Ik(X.O1,"resize", function (event){X._onresize(event); } ); }if (X.__NoToolBar__ || HTMLEditor.l11){if (X.__NoToolBar__)l1e.style.display="none"; X.setTimeout( function (lx){if (X.iu(lx))return; X._onresize(); if (HTMLEditor.is_Safari || HTMLEditor.l11){X._iframe.style.width="100%"; X.setTimeout( function (lx){if (X.iu(lx))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.l15.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }}else {X.setTimeout( function (lx){if (X.iu(lx))return; if (X.__NoToolBar__){var l1e=document.getElementById(X.panelDivId); l1e.style.display="none"; }if (HTMLEditor.is_Safari)X.setTimeout( function (lx){if (X.iu(lx))return; X._onresize(); } ,0); else {X._onresize(); }if (!HTMLEditor.is_ie){X._iframe.style.width="100%"; X.setTimeout( function (lx){if (X.iu(lx))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.l15.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }} ; X.setTimeout(O2c,(HTMLEditor.O29 || HTMLEditor.l11)?0144: 0); this.l2d= true; } ; HTMLEditor.o5= function (X,table,i2d){function i1g(i1n){if (!i1n){X.O1f( false); }else {if (HTMLEditor.l11){X.f= true; X.focusEditor(); }setTimeout( function (){X.updateToolbar(); X.I14(); } ,012); }return true; }var I2d=0,o2e=0; while (i2d!=null){if (i2d.tagName){if (i2d.tagName.toUpperCase()=="TD"){if (HTMLEditor.is_Safari){var O2e=i2d.parentNode; for (var i=0; i<O2e.cells.length; i++)if (O2e.cells.item(i)==i2d){o2e=i; break; }}else o2e=i2d.cellIndex; I2d=i2d.parentNode.rowIndex; break; }}i2d=i2d.parentNode; }X.o11(); if (table.getAttribute("width") && table.getAttribute("width").length>0){table.style.width=parseInt(table.getAttribute("width"))+"px"; table.removeAttribute("width"); }if (table.getAttribute("height") && table.getAttribute("height").length>0){table.style.width=parseInt(table.getAttribute("height"))+"px"; table.removeAttribute("height"); }if (table.getAttribute("background") && table.getAttribute("background").length>0){table.style.backgroundImage="url("+table.getAttribute("background")+")"; table.removeAttribute("background"); }if (table.getAttribute("border") && table.getAttribute("border").length>0){table.style.borderTopWidth=parseInt(table.getAttribute("border"))+"px"; table.style.borderLeftWidth=parseInt(table.getAttribute("border"))+"px"; table.removeAttribute("border"); }X.oj("_tableProperties",X.lg("table","Edit a Table"),table,i1g,I2d,o2e); };HTMLEditor.I4= function (X,cell){function i1g(i1n){if (!i1n){X.O1f( false); }else {if (HTMLEditor.l11){X.f= true; X.focusEditor(); }X.updateToolbar(); X.I14(); }return true; }X.o11(); X.oj("_cellProperties",X.lg("cell","Edit a Cell"),cell,i1g); };HTMLEditor.I3= function (X,img){function i1g(i1n){if (!i1n){setTimeout( function (){X.O1f( false); } ,012); }else {if (HTMLEditor.is_ie){setTimeout( function (){var o1c=X.I1.body.createControlRange(); o1c.add(img); o1c.select(); } ,0); }else if (HTMLEditor.l11){X.f= true; X.focusEditor(); }X.I14(); }return true; }X.o11(); X.oj("_imageProperties",X.lg("image","Edit an Image"),img,i1g); };HTMLEditor.prototype.editImage= function (img){if (img.tagName && img.tagName.toUpperCase()=="IMG")HTMLEditor.I3(this,img); };HTMLEditor.O2= function (X,il){var l2e= false; try {X.o11(); l2e= true; if (!HTMLEditor.is_ie)il=HTMLEditor.contentEditable(il); il.contentEditable="inherit"; il.removeAttribute("contenteditable"); if (il.tagName && (il.tagName.toUpperCase()=="SPAN" || il.tagName.toUpperCase()=="DIV")){var count=0; if (il.attributes)for (var i=0; i<il.attributes.length; i++){var i2e=il.attributes[i]; if (i2e.name.toUpperCase()=="STYLE")continue; if (i2e.specified)count++; }var I2e=(il.style)?il.style.cssText: ""; var par=il.parentNode; if (count==0 && I2e.length==0){while (il.firstChild!=null)par.insertBefore(il.firstChild,il); par.removeChild(il); }HTMLEditor.I26(par,X.I1); }}catch (w){try {if (l2e)X.O1f( false); if (HTMLEditor.is_ie){HTMLEditor.I1o(il,X); }}catch (O14){}}};HTMLEditor.l2= function (X,o27){function i1g(i1n){if (!i1n){setTimeout( function (){X.O1f( false); } ,0); }else {if (HTMLEditor.is_ie){o27.id=HTMLEditor.Om; X.o11(); setTimeout( function (){X.O1f( false); var I1c=X.I1.getElementById(HTMLEditor.Om); I1c.id=null; I1c.removeAttribute("id"); var o1c=X.I1.body.createControlRange(); o1c.add(I1c); o1c.select(); } ,0); }else if (HTMLEditor.l11){X.f= true; X.focusEditor(); }X.I14(); }return true; }X.o11(); X.oj("_flashProperties",X.lg("flash","Edit a Flash"),o27,i1g); };HTMLEditor.O3= function (X,media){function i1g(i1n){if (!i1n){setTimeout( function (){X.O1f( false); } ,012); }else {if (HTMLEditor.is_ie){X.o11(); setTimeout( function (){X.O1f( false); } ,012); }else if (HTMLEditor.l11){X.f= true; X.focusEditor(); }X.I14(); }return true; }X.o11(); X.oj("_mediaProperties",X.lg("media","Edit Media"),media,i1g); };HTMLEditor.prototype.o2f= function (media,Op){var X=this;if (media!=null){media.id=HTMLEditor.Om; }X.o11(); X.ow.style.display="none"; if (HTMLEditor.is_ie)X.ow.style.visibility="hidden"; try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); if (HTMLEditor.is_ie)X.iq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var om=X.l1.removeChild(X._iframe); X._textArea.value=""; X._textArea.style.visibility="hidden"; X._textArea.style.display=""; X._iframe=null; delete om; }catch (t){}setTimeout( function (){X.activate( function (){X.O2f( false); if (media!=null){var I1c=X.I1.getElementById(HTMLEditor.Om); I1c.id=null; I1c.removeAttribute("id"); media=I1c; }if (typeof Op=="function")Op(media); } ); } ,0); };HTMLEditor.o3= function (X,l2f){X.o11(); var i2f=l2f; if (i2f.getAttribute(HTMLEditor.lt) && i2f.getAttribute(HTMLEditor.lt).length>0){var ik=X.it(i2f); if (ik!=null)i2f=ik; }setTimeout( function (){if (HTMLEditor.is_ie){var lq=X.iq(); lq.empty(); }var par=i2f.parentNode; if (par!=null){par.removeChild(i2f); if (par.tagName && par.tagName.toUpperCase()=="TD" && par.childNodes.length==0){par.innerHTML=X.O23(); }}if (HTMLEditor.is_ie){var o17=X.K[X.i1e-1]; var lq=X.iq(); lq.empty(); var Iq=X.I1.body.createTextRange(); try {Iq.moveToPoint(o17.I2f,o17.o2g); }catch (t){}Iq.select(); Iq.execCommand("refresh", false , false); }X.I14(); } ,012); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.DeleteNode= function (l2f){HTMLEditor.o3(this,l2f); };HTMLEditor.l5= function (X,l2f){X.cut(); };HTMLEditor.I5= function (X,l2f){X.copy(); };HTMLEditor.o6= function (X,l2f){X.paste(); };HTMLEditor.l6= function (X,l2f){X.pasteText(); };HTMLEditor.I6= function (X,l2f){X.deleteSelection(); };HTMLEditor.o7= function (X,l2f){X.selectAll(); };HTMLEditor.i5= function (X,l2f){var l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(X.i1b()): ""; var lq=X.iq(); var Iq=X.or(lq); if (HTMLEditor.is_ie)if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; if (!X.lr() && ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0)))return true; return false; };HTMLEditor.O6= function (X,l2f){if (!X.lr()){if (!HTMLEditor.is_ie){var Iq=X.or(X.iq()); var l22=Iq.startContainer; var i22=Iq.endContainer; var il=HTMLEditor.contentEditable(l22); if (il==null)il=HTMLEditor.contentEditable(i22); if (il!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return !X._NoPaste; }return false; };HTMLEditor.i6= function (X,l2f){if (!X.lr()){if (!HTMLEditor.is_ie){var Iq=X.or(X.iq()); var l22=Iq.startContainer; var i22=Iq.endContainer; var il=HTMLEditor.contentEditable(l22); if (il==null)il=HTMLEditor.contentEditable(i22); if (il!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return true; }return false; };HTMLEditor.i2= function (X,l2f){var i2f=l2f; if (i2f.getAttribute(HTMLEditor.lt) && i2f.getAttribute(HTMLEditor.lt).length>0){var ik=X.it(i2f); if (ik!=null)i2f=ik; }setTimeout( function (){var O2g=X.I1.body.createControlRange(); O2g.add(i2f); O2g.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.i1f(); X.I1f("c", false); X.On(); X.o1g(); } ,0);}else {X.I1f("c", false); setTimeout( function (){X.iq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.I2= function (X,l2f){var i2f=l2f; if (i2f.getAttribute(HTMLEditor.lt) && i2f.getAttribute(HTMLEditor.lt).length>0){var ik=X.it(i2f); if (ik!=null)i2f=ik; }setTimeout( function (){var O2g=X.I1.body.createControlRange(); O2g.add(i2f); O2g.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.i1f(); X.I1f("x", false); X.On(); } ,0);}else {X.I1f("x", false); setTimeout( function (){X.iq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.O11= function (par){try {var il=this.I1.body; if (il.firstChild)if (il.firstChild.nodeType==3){var Ih=HTMLEditor.O13(""+il.firstChild.data+""); if (Ih.length==0)il.removeChild(il.firstChild); else if (Ih!=(""+il.firstChild.data+""))il.firstChild.data=Ih; }if (HTMLEditor.is_ie)if (il.childNodes.length==1){il=il.firstChild; if (il.nodeType==1)if (il.tagName.toLowerCase()=="p" || il.tagName.toLowerCase()=="ul" || il.tagName.toLowerCase()=="ol"){var l2g= false; var i2g=(il.tagName.toLowerCase()=="ul" || il.tagName.toLowerCase()=="ol")? true : false; function I2g(Ic){var ie= false; if (Ic.nodeType==1){if (!(i2g && Ic.tagName.toUpperCase()=="LI"))if (HTMLEditor.o2h(Ic) || Ic.tagName.toUpperCase()=="IMG" || Ic.tagName.toUpperCase()=="IFRAME" || Ic.tagName.toUpperCase()=="EMBED" || Ic.tagName.toUpperCase()=="SCRIPT")return true; if (Ic.childNodes.length>1)return true; if (Ic.childNodes.length==0)return false; ie |= I2g(Ic.firstChild); }else if (Ic.nodeType==3){ie |= true; }return ie; }if (il.childNodes.length==1){if (!I2g(il.firstChild)){il.removeChild(il.firstChild); l2g= true; }}if (l2g || il.parentNode.innerHTML.toLowerCase()=="<p>&nbsp;</p>")this.I1.body.removeChild(il); }} this.I14(); }catch (t){}};HTMLEditor.O2h=navigator.userAgent.toLowerCase(); HTMLEditor.is_ie=((HTMLEditor.O2h.indexOf("msie")!=-1) && (HTMLEditor.O2h.indexOf("opera")==-1)) && (window.opera==null || !window.opera); HTMLEditor.I13=(/MSIE (8)/.test(navigator.userAgent) && document.compatMode!="BackCompat"); HTMLEditor.l11=(HTMLEditor.O2h.indexOf("opera")!=-1) || window.opera; HTMLEditor.l2h=(HTMLEditor.O2h.indexOf("mac")!=-1); HTMLEditor.i2h=(HTMLEditor.is_ie && HTMLEditor.l2h); HTMLEditor.I2h=(HTMLEditor.is_ie && !HTMLEditor.l2h); HTMLEditor.O29=(navigator.product=="Gecko"); HTMLEditor.is_Safari=(HTMLEditor.O2h.indexOf("safari")!=-1); HTMLEditor.o2i=(HTMLEditor.O2h.indexOf("firefox")!=-1); HTMLEditor.O2i=(HTMLEditor.O2h.indexOf("safari")!=-1); HTMLEditor.l2i=(HTMLEditor.O2h.indexOf("firefox")!=-1); HTMLEditor.i2i=HTMLEditor.O29 && navigator.I2i=="Camino"; HTMLEditor.o2j=!HTMLEditor.l11 && navigator.userAgent.indexOf("Konqueror")!=-1; HTMLEditor.O2j=HTMLEditor.o2j || HTMLEditor.O2i; HTMLEditor.Ok=(/[^12]\.(\d+)\.(\d+) safari/i).test(HTMLEditor.O2h); HTMLEditor.ok=(HTMLEditor.O2h.indexOf("netscape")!=-1 && navigator.vendorSub.replace(/^(\d+)\.\d*/,"$1")<8) || (HTMLEditor.O29 && navigator.productSub<0114371117) || (HTMLEditor.is_Safari && !HTMLEditor.Ok); HTMLEditor.l2j= function (){var i2j="",I2j; if (HTMLEditor.l11){i2j=opera.i2j(); }else {if (HTMLEditor.O29){I2j=/rv:([^);]+)(\)|;)/; }else if (HTMLEditor.is_ie){I2j=/MSIE\s+([^);]+)(\)|;)/; }else if (HTMLEditor.O2i){I2j=/WebKit\/(\S+)/; }else if (HTMLEditor.o2j){I2j=/Konqueror\/([^);]+)(\)|;)/; }if (I2j){I2j.test(navigator.userAgent); i2j=RegExp.$1; }}return i2j; };HTMLEditor.compareVersions= function (o2k,O2k){var l2k=0,i2k=String(o2k).split("."),I2k=String(O2k).split("."),o2l=Math.max(i2k.length,I2k.length); for (var O2l=0; l2k==0 && O2l<o2l; O2l++){var l2l=i2k[O2l] || "",i2l=I2k[O2l] || "",I2l=new RegExp("(\\d*)(\\D*)","g"),o2m=new RegExp("(\\d*)(\\D*)","g"); do {var O2m=I2l.exec(l2l) || ["","",""],l2m=o2m.exec(i2l) || ["","",""]; if (O2m[0].length==0 && l2m[0].length==0){break; }var i2m=O2m[1].length==0?0:parseInt(O2m[1],012),I2m=l2m[1].length==0?0:parseInt(l2m[1],012); l2k=HTMLEditor.o2n(i2m,I2m) || HTMLEditor.o2n(O2m[2].length==0,l2m[2].length==0) || HTMLEditor.o2n(O2m[2],l2m[2]);}while (l2k==0);}return l2k;} ; HTMLEditor.o2n= function (left,right){if (left<right){return -1;}else if (left>right){return 1;}return 0;} ; HTMLEditor.O2n= function (l2n,i2n){return HTMLEditor.compareVersions(l2n,i2n); } ; HTMLEditor.I2n= function (i2j){return HTMLEditor.O2n(HTMLEditor.l2j(),i2j)>=0; } ; if (HTMLEditor.is_Safari && !HTMLEditor.Ok)( function (){var o2o=String.prototype.replace; String.prototype.replace= function (search,replace){if (typeof replace!="function"){return o2o.apply(this,arguments);}var Ih=""+this ; var O2o=replace; if (!(search instanceof RegExp)){var l2o=Ih.indexOf(search); return (l2o==-1?Ih:o2o.apply(Ih,[search,O2o(search,l2o,Ih)]));}var i2o=search; var O1w=[]; var I2o=i2o.lastIndex; var I2j; while ((I2j=i2o.exec(Ih))!=null){var l2o=I2j.index; var Ib=I2j.concat(l2o,Ih); O1w.push(Ih.slice(I2o,l2o),O2o.apply(null,Ib).toString()); if (!i2o.global){I2o+=RegExp.lastMatch.length; break; }else {I2o=i2o.lastIndex; }}O1w.push(Ih.slice(I2o)); return O1w.join(""); };} )(); HTMLEditor.r= function (){if (HTMLEditor.O29){if (navigator.productSub<0114321402 && !HTMLEditor.is_Safari){alert("Mozilla \x3c 1.3 Beta is not supported!\nI\'ll try, though, but it might not work."); }}if (HTMLEditor.l2h && !(HTMLEditor.is_Safari || HTMLEditor.o2i)){alert(this.If("mac-using","Use Safari or FireFox...")); return false; }if (HTMLEditor.l11){var i2j=0; var o2p=0; function test(o2a,l22,i22){i2j=parseInt(l22); o2p=parseInt(i22); }HTMLEditor.O2h.replace(/opera\/(\d+)\.(\d+)/ig,test); if (!(i2j*0144+o2p>=01630)){alert("Opera < 9.20 is not supported"); return false; }}return HTMLEditor.O29 || HTMLEditor.is_ie || HTMLEditor.l11; } ; HTMLEditor.Ik= function (il,O2p,Op){if (!il){return; }if (il.attachEvent)il.attachEvent("on"+O2p,Op); else {if (il.addEventListener)il.addEventListener(O2p,Op, true); }} ; HTMLEditor.Ow= function (il,l2p,Op){if (!il){return; }try {if (typeof il.push=="function"){for (var i=0; i<l2p.length; i++)for (var Oh=0; Oh<il.length; Oh++)HTMLEditor.Ik(il[Oh],l2p[i],Op); }else {for (var i=0; i<l2p.length; i++)HTMLEditor.Ik(il,l2p[i],Op); }}catch (t){ throw t; }} ; HTMLEditor.od= function (il,O2p,Op){if (il.detachEvent)il.detachEvent("on"+O2p,Op); else {if (il.removeEventListener)il.removeEventListener(O2p,Op, true); }} ; HTMLEditor.i2p= function (il,l2p,Op){if (il.push){for (var i=0; i<l2p.length; i++)for (var Oh=0; Oh<il.length; Oh++)HTMLEditor.od(il[Oh],l2p[i],Op); }else {for (var i=0; i<l2p.length; i++)HTMLEditor.od(il,l2p[i],Op); }} ; HTMLEditor._stopEvent= function (Ij){if (Ij)if (HTMLEditor.is_ie){Ij.cancelBubble= true; Ij.returnValue= false; }else {Ij.preventDefault(); Ij.stopPropagation(); }} ; HTMLEditor.prototype._stopEvent= function (Ij){HTMLEditor._stopEvent(Ij); };HTMLEditor.prototype._formSubmit= function (Ij){if (!this.op && this.mainDivVisible){try {return [document.getElementsByName(this._hiddenContent)[0].value,document.getElementsByName(this._hiddenContent)[0].value]; }catch (w){return ["",""]; }}var O19=""; if (this.i1=="preview"){O19=""; if (this.o16=="html")O19=this.i19; else O19=this.l15.value; if (HTMLEditor.is_Safari){}}else {if (this.i1=="html"){O19=this.getHTML(); }else {if (this.l15)O19=this.l15.value; else O19=this._textArea.value; }}if (this.NoScript){ this._textArea.value=this._textArea.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); O19=O19.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); }var I2p=O19.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"); if (!this._remainLf)I2p=HTMLEditor.O13(I2p); this._textArea.value=I2p; return [I2p,O19]; } ; HTMLEditor.prototype._prepareHTML= function (Ih){var save=this.i1; this.i1="text"; var o2q=(this.l15)? true : false; if (!o2q){var Y=document.createElement("textarea"); this.l15=Y; if (HTMLEditor.is_Safari)document.body.appendChild(Y); }if (!(this.ov && !HTMLEditor.S())){ this.l15.value=(this._textArea.value.length>0)?(this._textArea.value.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,"\"").replace(/&amp;/g,"&")): ((typeof Ih=="string")?Ih.replace(/&quot;/g,"\""):Ih.value); function O2q(o2a,l22){if (l22=="\\n")return "\n"; return l22.replace("\\\\","\\"); } this.l15.value=this.l15.value.replace(/([\\]+n)/g,O2q); if (this.InitialCleanUp)this.l15.value=HTMLEditor.l2q(HTMLEditor.O13(this.l15.value.replace(/[\n\r]+/g," "))); if (typeof Ih!="string")Ih.value=""; document.getElementsByName(this._hiddenContent)[0].value=HTMLEditor.O13(this.l15.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")); if (document.getElementsByName(this._hiddenContent+"_modified").length==0){var ik=document.createElement("input"); ik.type="hidden"; ik.name=this._hiddenContent+"_modified"; document.getElementsByName(this._hiddenContent)[0].parentNode.insertBefore(ik,document.getElementsByName(this._hiddenContent)[0]); }}if (this._textArea.style.visibility=="hidden")this._textArea.style.visibility="visible"; this.F=null; var ie=this.getHTML(); if (!o2q){ this.l15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; } this.i1=save; return ie; };HTMLEditor.prototype.setOriginal= function (oo){var X=this ; if (X.mode()=="preview"){X.i16= false; X.l= true; }else if (X.mode()=="text"){X.l16=X.l15.value; X.i16= false; X.l= true; }else {X.i14=HTMLEditor.O13((typeof oo!="undefined" && oo!=null)?oo:HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.I14(); }X.l= false; }return true; };HTMLEditor.prototype.setContent= function (Ih,i2q,I2q){if (this.mode()=="preview")return false; var X=this ; if (typeof I2q=="function"){ this.L=I2q; }function o2r(){if (typeof Ih=="string"){if (!X.ou() || !X.mainDivVisible){X._textArea.value=""; X._textArea.value=X._prepareHTML(Ih.replace(/"/g,"&quot;")); X.On(); X.I14(); return false; }try {try {if (X.mode()=="html")X.o11(); }catch (t){}var om=X._textArea.parentNode.removeChild(X.l1); X.l1=null; delete om; }catch (t){}try {X._textArea.value=""; X._textArea.value=X._prepareHTML(Ih.replace(/"/g,"&quot;")); if ((typeof i2q!="undefined") && i2q){X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.i1e=-1; }}X.activate(); if (X.mainDivVisible)setTimeout( function (){X.focusEditor(); } ,0454); }catch (t){X.On(); return false; }X.I14(); }else {if ((typeof i2q!="undefined") && i2q){X.i14=HTMLEditor.O13(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.I14(); }if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.i1e=-1; }}X.On(); }return true; }if (this.mode()=="text"){if (this.mainDivVisible){try {if (typeof Ih=="string")X.l15.value=Ih; if ((typeof i2q!="undefined") && i2q){X.l16=X.l15.value; X.i16= false; X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.i1e=-1; }}}catch (t){return false; }return true; }else {if (typeof Ih=="string"){X._textArea.value=""; X._textArea.value=X._prepareHTML(Ih.replace(/"/g,"&quot;")); if (X.l15!=null && X.l15!="undefined")X.l15.value=X._textArea.value; }return true; }}if (this.mode()=="html"){if (this.mainDivVisible){function O2r(){if (X.op){X.openWait(); setTimeout(o2r,0); }else {setTimeout(O2r,0144); }}O2r(); }return true; }return false; };HTMLEditor.prototype.getContent= function (l2r){var ie; if (this.i1=="preview"){if (this.o16=="html")ie=this.i19; else ie=this.l15.value; }else if (HTMLEditor.is_ie){if (this.i1=="html"){ie=this.getHTML(); }else {var o2q=(this.l15)? true : false; if (!o2q){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.l15=Y; this.l15.value=document.getElementsByName(this._hiddenContent)[0].value.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }ie=HTMLEditor.i2r(this.l15.value); if (!o2q){ this.l15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }}}else {ie=this.getHTML(); }if (!(typeof l2r!="undefined" && l2r)){ie=HTMLEditor.O13(ie); ie=ie.replace(/[\0-\x1f]+$/,""); }if (ie.length>=6)if (ie.substr(ie.length-5,5)=="<br/>")ie=ie.substr(0,ie.length-5); else if (ie.substr(ie.length-6,6)=="<br />")ie=ie.substr(0,ie.length-6); else if (ie.substr(ie.length-4,4)=="<br>")ie=ie.substr(0,ie.length-4); return ie; } ; HTMLEditor.prototype.TextSelected= function (){if (this.mode()!="html")return false; var l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(this.i1b()): ""; var lq=this.iq(); var Iq=this.or(lq); if (!this.lr() && ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0)))return true; else return false; };HTMLEditor.prototype.getContentWait= function (Oq,l2r){if (typeof Oq=="function"){var X=this ; X.openWait(); setTimeout( function (){Oq(X.getContent(l2r)); X.On(); } ,0); }} ; HTMLEditor.prototype.openWait= function (I2q){if (!this._pleaseWait)return; try {var Ic=document.getElementById(this.mainDivId).parentNode; var Ou= true; while (Ic){if (Ic.style && Ic.style.display=="none"){Ou= false; break; }Ic=Ic.parentNode; }if (this.N!=null || !Ou || !this.mainDivVisible)return; if (typeof I2q=="function"){ this.L=I2q; }var popup; var X=this ; popup=X.A.ownerDocument.createElement("div"); popup.className="popup_wait"; popup.innerHTML="<div><center><nobr>"+X.If("wait","Please wait...")+"<nobr></center></div>"; X.A.appendChild(popup); var O9=parseInt(popup.offsetWidth); var l9=parseInt(popup.offsetHeight); popup.style.display="none"; var y; var x; var I2r=(X.i1=="text")?(X.l1==null?null:X.l15): ((X.i1=="preview")?X.ow:X._iframe); if (I2r==null && X._textArea && X._textArea.style.o2s!="none" && X._textArea.style.visibility!="hidden")I2r=X._textArea; if (I2r==null || typeof I2r=="undefined")I2r=document.getElementById(X.mainDivId); var O2s=parseInt(I2r.offsetWidth); var l2s=parseInt(I2r.offsetHeight); var i2s=HTMLEditor.I2s(I2r, false); y=l2s/2-l9/2+i2s._top; x=O2s/2-O9/2+i2s.o1z; popup.style.top=y+"px"; popup.style.left=x+"px"; this.N=popup; popup.style.display=""; }catch (t){alert("openWait: "+t.message); }};HTMLEditor.prototype.On= function (){if (this.L!=null){var o2t=this.L; setTimeout(o2t,0764); this.L=null; }if (HTMLEditor.is_ie && this.mainDivVisible && this.ou() && this.i1=="html" && document.getElementById(this.mainDivId)!=null){try { this.updateToolbar(); }catch (t){} ; }if (this.N==null)return; var ik; try {ik=this.A.removeChild(this.N); delete ik; }catch (t){} this.N=null; };HTMLEditor.prototype.oc= function (I2q){try {if (document.getElementById(this.mainDivId)==null)return; var Ic=document.getElementById(this.mainDivId).parentNode; var Ou= true; while (Ic){if (Ic.style && Ic.style.display=="none"){Ou= false; break; }Ic=Ic.parentNode; }if (this.n!=null || !Ou || !this.mainDivVisible)return; var popup; var X=this ; popup=X.A.ownerDocument.createElement("div"); popup.style.zIndex="20000"; popup.style.position="absolute"; popup.innerHTML="\x3cimg src=\""+this.Q[6]+"\">"; X.A.appendChild(popup); var O9=parseInt(popup.clientWidth); var l9=parseInt(popup.clientHeight); popup.style.display="none"; var y; var x; var I2r=(X.i1=="text")?(X.l1==null?null:X.l15): ((X.i1=="preview")?X.ow:X._iframe); if (I2r==null && X._textArea && X._textArea.style.o2s!="none" && X._textArea.style.visibility!="hidden")I2r=X._textArea; if (I2r==null || typeof I2r=="undefined")I2r=document.getElementById(X.mainDivId); var O2s=parseInt(I2r.clientWidth); var l2s=parseInt(I2r.clientHeight); var i2s=HTMLEditor.I2s(I2r, false); y=l2s/2-l9/2+i2s._top; x=O2s/2-O9/2+i2s.o1z; popup.style.top=y+"px"; popup.style.left=x+"px"; this.n=popup; popup.style.display=""; }catch (t){}};HTMLEditor.prototype.O2t= function (){if (this.n==null)return; var ik=this.A.removeChild(this.n); delete ik; this.n=null; };HTMLEditor.prototype.setVisibility= function (p){if (!this.Os)return false; var X=this ; if (p){if (!X.mainDivVisible){X.mainDivVisible= true; document.getElementById(X.mainDivId).style.display="block"; if (X.os==0){if (X._setRealSize && typeof X._setRealSize=="function"){X._setRealSize(); }X.I8= {O9:X._textArea.offsetWidth,l9:X._textArea.offsetHeight } ; X.i1="html"; X.openWait(); X._textArea.style.visibility="hidden"; X.setTimeout( function (lx){if (X.iu(lx))return; X.activate(); } ,0); }else {X.chMode("html"); }}}else {if (X.mainDivVisible){var V=0; if (X.v!=null && typeof X.v.pop=="function"){while (X.v.length>0){var T=X.v.pop(); if (typeof T[0]=="function"){try {clearTimeout(T[1]); }catch (t){}V++; }}X.v=null; }try {X.On();}catch (w){} ; var l2t=X.clearPopups(); if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; }if (V>0)X.i1="undef"; var i2t= false; if (X.i1=="html" || X.i1=="preview"){if (X.i1=="html")X.I0= false; if (l2t)setTimeout( function (){X.chMode("text", function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ); } ,0764); else X.chMode("text", function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ); }else if (X.i1=="undef"){X.i1="text"; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.iq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; try {X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; }catch (t){} ; var om=null; try {om=X.l1.removeChild(X._iframe); }catch (t){} ; X._iframe=null; if (om!=null) delete om; om=null; try {om=X.l1.removeChild(X.ow); }catch (t){} ; X.ow=null; if (om!=null) delete om; om=null; try {om=X.l1.removeChild(X.l15); }catch (t){} ; X.l15=null; if (om!=null) delete om; om=null; try {om=X.l1.parentNode.removeChild(X.l1); }catch (t){} ; X.l1=null; if (om!=null) delete om; if (!HTMLEditor.is_Safari){X.oy=X.I8.l9; X.I19=X.I8.o1a; }X._textArea.style.display="block"; }catch (t){}i2t= true; }else if (X.i1=="text")i2t= true; if (X.ShowQuickFormatDivId!=null)HTMLEditor.o19(X.ShowQuickFormatDivId); if (i2t)setTimeout( function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ,024); }}document.getElementsByName(X.mainDivVisibleName)[0].value=(X.mainDivVisible)?"true": "false"; };HTMLEditor.i2r= function (Ih){return Ih.replace(/<br>/ig,"<br/>"); };HTMLEditor.prototype.getHTML= function (on,I2t){try {var i15=this.i1; if (i15=="preview"){i15=this.o16; if (i15=="html"){return this.i19; }}function o2u(o2a,l22){return "&#"+l22.charCodeAt(0).toString(012)+";"; }function O2u(o2a,l22){return "\x3cspan class=\""+HTMLEditor.Om+"_script\" style=\'display:none;visibility:hidden;\'>"+l22.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }var l2u=[]; function i2u(o2a,l22){l2u.push(l22); return "";}function I2u(o2a,l22,i22,o2v){return l22.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var O2v=-1; function l2v(o2a,l22,i22,o2v){O2v++; var i2v; if (!HTMLEditor.is_ie)i2v=l2u[O2v].replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); else i2v=l2u[O2v]; return l22+i2v+o2v; }function I2v(o2a,l22){X.c=l22; return o2a; } ; function o2w(o2a,l22){X.d=l22; return ""; } ; function O2w(o2a,l22){X.D=l22; return ""; } ; function I29(o2a,l22,i22){X.C=l22; return i22; } ; function l2w(o2a,l22){X.B=l22; return o2a; } ; switch (i15){case "html": this.O11(); var oo=(typeof I2t!="undefined"); if (typeof on=="undefined" || on== false){var i2w=!HTMLEditor.Iy(this,this.I1, true); var I2w=!HTMLEditor.oz(this,this.I1, true); oo=oo && i2w && I2w; }var o2x=""; if (this.F!=null)for (var i=0; i<this.F.length; i++){o2x+=this.F[i].replace(new RegExp("}\\s*","g"),"}\n").replace(/(<style(?:[^>]*?)>)/ig,"$1\n")+"\n"; }if (HTMLEditor.is_ie){var ik=(oo && typeof I2t!="undefined")?I2t:HTMLEditor.getHTML(this.I1.body, false , true); var O2x=ik; this.i16=!(this.i14==ik); ik=ik.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); ik=ik.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); ik=ik.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); ik=ik.replace(/(<p[^>]*?>)\s*(<span id="OboutMSIEparagraph_left"><\/span>)(&nbsp;)(<span id="OboutMSIEparagraph_right"><\/span>)\s*(<\/p[^>]*?>)/ig,"$1$2<br/>$4$5"); ik=ik.replace(/(<p[^>]*?>)\s*(<span id="OboutMSIEparagraph_left"><\/span><span id="OboutMSIEparagraph_right"><\/span>)(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1$2<br/>$4"); ik=ik.replace(/(<p[^>]*?>)\s*(&nbsp;)(<span id="OboutMSIEparagraph_left"><\/span><span id="OboutMSIEparagraph_right"><\/span>)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3$4"); ik=ik.replace(/(<p[^>]*?>)(<\/p[^>]*?>)/ig,"$1<br/>$2"); ik=ik.replace(/(<p[^>]*?>)(<span id="OboutMSIEparagraph_left"><\/span>)(<span id="OboutMSIEparagraph_right"><\/span>)(<\/p[^>]*?>)/ig,"$1$2<br/>$3$4"); if (O2x!=ik)this.O16=null; if (!(this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML)){ik=((this.I1.body.style.cssText.length>0)?"\x3cdiv style=\""+this.I1.body.style.cssText.replace("\"","'")+"\">": "")+ik+((this.I1.body.style.cssText.length>0)?"</div>": ""); }if (this.predicatedTags)ik=ik.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); if (this.NoScript)ik=ik.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); if (/<embed/ig.test(ik)){ik=ik.replace(/(<embed(?:.*?))(\sloop="true")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\splay="true")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\sbgcolor="")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\sscale="")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\shspace="0")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\svspace="0")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(\swmode="[^"]+")((?:.*?)>)/ig,"$1$3"); ik=ik.replace(/(<embed(?:.*?))(pseudomode=)("[^"]*")((?:.*?)>)/ig,"$1wmode=$3$4"); ik=ik.replace(/(<embed(?:.*?))(\swmode="")((?:.*?)>)/ig,"$1$3"); }var l2x=o2x+HTMLEditor.i2r(ik); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var i2x=""; if (this.d!=null)i2x+=this.d; i2x+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">"; if (this.I1.getElementById("oboutEditorDefaultStyle")==null){i2x+="\n\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; i2x+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"; }if (this._addCssFiles!=null){i2x+="\n"; for (var l2a=0; l2a<this._addCssFiles.length; l2a++){var I2x= true; if (this.D!=null && this.D.length>0){var o2y=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[l2a]+"\"","ig");if (o2y.test(this.D))I2x= false; }if (I2x)i2x+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[l2a]+"\" media=\"all\" />\n"; }}if (this.D!=null)i2x+=this.D; i2x+="\x3c/head>\n"; if (this.I1.body.style.cssText.length>0){var O2y="<div"+(this.C!=null?this.C: "")+"></div>"; var l2y=document.createElement("DIV"); l2y.innerHTML=O2y; l2y.firstChild.style.cssText+=";"+this.I1.body.style.cssText; O2y=HTMLEditor.getHTML(l2y, false , true); O2y=O2y.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");i2x+="<body"+O2y+">\n"; }else {i2x+="<body"+(this.C!=null?this.C: "")+">\n"; }i2x+=l2x+"\n"; i2x+="\x3c/body>\n\x3c/html>"; l2x=i2x; }if (this.NoUnicode)l2x=l2x.replace(/([\x80-\uffff])/g,o2u);if (HTMLEditor.O13(l2x)=="<br />")l2x=""; l2x=l2x.replace(/^([\n|\r]+)/,""); var i2y=new RegExp("(<[/]?)(teo"+HTMLEditor.Om+":)","ig"); l2x=l2x.replace(i2y,"$1"); return l2x; }var I2y=this.I1.createElement("DIV"); I2y.style.cssText=this.I1.body.style.cssText; if (!this.NoScript)this.I1.body.innerHTML.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,i2u); I2y.innerHTML=HTMLEditor.O13(this.I1.body.innerHTML); var Oo=(oo && typeof I2t!="undefined")?I2t:HTMLEditor.getHTML(this.I1.body, false , true); this.i16=!(this.i14==HTMLEditor.O13(Oo)); var l1v=I2y.getElementsByTagName("IMG"); var o2z=[]; for (var i=0; i<l1v.length; i++)o2z.push(l1v[i]); for (var Oh=0; Oh<o2z.length; Oh++){var img=o2z[Oh]; var i2e; i2e=img.getAttribute("dummytag"); if (i2e && i2e.length>0 && i2e.toLowerCase()=="embed"){var src=img.getAttribute("dummysrc"); var O2z=img.getAttribute("dummybgcolor"); var wmode=img.getAttribute("pseudomode"); var l2z=img.attributes; var embed=this.I1.createElement("EMBED"); var I2j=/(rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\))/ig; embed.src=src; embed.width=img.width; embed.height=img.height; if (O2z && O2z.length>0){function i2z(I2z){return (I2z<020)?("0"+I2z.toString(020)):I2z.toString(020); } ; function o30(O30,$1,$2,$3,$4){var o1h=parseInt($2); var l30=parseInt($3); var b=parseInt($4); return "#"+i2z(o1h)+i2z(l30)+i2z(b); }try {O2z=O2z.replace(I2j,o30); }catch (t){}embed.setAttribute("bgcolor",O2z); }if (wmode && wmode.length>0)embed.setAttribute("wmode",wmode); for (var i=0; i<l2z.length; ++i){var a=l2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); var value=a.value; if (name=="dummytag" || name=="dummysrc" || name=="dummybgcolor" || name=="style" || name=="wmode" || name=="pseudomode" || name=="src")continue; if (name=="loop" && value=="true")continue; if (name=="play" && value=="true")continue; if (name=="hspace" && value=="0")continue; if (name=="vspace" && value=="0")continue; if (name=="scale" && value.length==0)continue; if (name=="align" && value.length==0)continue; embed.setAttribute(name,value); }if (img.style.width && img.style.width.length>0)embed.style.width=img.style.width; if (img.style.height && img.style.height.length>0)embed.style.height=img.style.height; img.parentNode.insertBefore(embed,img); img.parentNode.removeChild(img); }}if (this.predicatedTags)HTMLEditor.restoreOldTags(I2y,document,this ); HTMLEditor.I26(I2y,document); var ik=HTMLEditor.getHTML(I2y,(I2y.style.cssText.length>0 && !(this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML))? true : false , true ,0); if (!this.NoScript)ik=ik.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,l2v); else ik=ik.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); delete I2y; if (this.predicatedTags)ik=ik.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); var l2x=o2x+HTMLEditor.i2r(ik); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var i2x=""; if (this.d!=null)i2x+=this.d; i2x+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">\n"; if (this.I1.getElementById("oboutEditorDefaultStyle")==null){i2x+="\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; i2x+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; }if (this._addCssFiles!=null){for (var l2a=0; l2a<this._addCssFiles.length; l2a++){var I2x= true; if (this.D!=null && this.D.length>0){var o2y=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[l2a]+"\"","ig");if (o2y.test(this.D))I2x= false; }if (I2x)i2x+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[l2a]+"\" media=\"all\" />\n"; }}if (this.D!=null)i2x+=this.D; i2x+="\x3c/head>\n"; if (this.I1.body.style.cssText.length>0){var O2y="<div"+(this.C!=null?this.C: "")+"></div>"; var l2y=document.createElement("DIV"); l2y.innerHTML=O2y; l2y.firstChild.style.cssText+=";"+this.I1.body.style.cssText; O2y=HTMLEditor.getHTML(l2y, false , true); O2y=O2y.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");i2x+="<body"+O2y+">\n"; }else {i2x+="<body"+(this.C!=null?this.C: "")+">\n"; }i2x+=l2x+"\n"; i2x+="\x3c/body>\n\x3c/html>"; l2x=i2x; }if (this.NoUnicode)l2x=l2x.replace(/([\x80-\uffff])/g,o2u);if (HTMLEditor.O13(l2x)=="<br />")l2x=""; l2x=l2x.replace(/^([\n|\r]+)/,""); return l2x; case "text":var o2q=(this.l15)? true : false; var ie; if (!o2q){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.l15=Y; this.l15.value=this._textArea.value; }if (this.NoScript)this.l15.value=this.l15.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/ig,""); this.D=null; this.C=null; this.c=null; this.B=null; this.d=null; var X=this ; this.l15.value=this.l15.value.replace(/<html(?=\s|>)([^>]*?)>/gi,l2w); this.l15.value=this.l15.value.replace(/<head(?=\s|>)([^>]*?)>/gi,I2v); this.l15.value=this.l15.value.replace(/^([^\0]+?)<html(?=\s|>)(?:[^>]*?)>/gi,o2w); this.l15.value=this.l15.value.replace(/<\/html(?=\s|>)(?:[^>]*?)>[^\0]*$/gi,""); this.l15.value=this.l15.value.replace(/<head(?=\s|>)(?:[^>]*?)>([^\0]*?)<\/head(?=\s|>)(?:[^>]*?)>/gi,O2w); this.l15.value=this.l15.value.replace(/<body(?=\s|>)([^>]*?)>([^\0]*?)<\/body(?=\s|>)(?:[^>]*?)>/gi,I29); this.l15.value=this.l15.value.replace(/<\/?html(?=\s|>)(?:[^>]*?)>/gi,""); this.l15.value=this.l15.value.replace(/<\/?head(?=\s|>)(?:[^>]*?)>/gi,""); this.l15.value=this.l15.value.replace(/<\/?body(?=\s|>)(?:[^>]*?)>/gi,""); this.l15.value=this.l15.value.replace(/<object(?:[^>]*?)>(?:[^\0]*?)(<embed(?:[^>]*?)>)(?:[^\0]*?)<\/object(?:[^>]*?)>/gi,"$1"); if (HTMLEditor.is_ie){var i30=this.l15.value.replace(/([\n\r]+<)/g,"<"); i30=HTMLEditor.O13(i30.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); i30=i30.replace(/(&amp;)/g,"&amp;amp;"); i30=i30.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); i30=i30.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); i30=i30.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); if (/<embed/ig.test(i30)){i30=i30.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); i30=i30.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); }ie=i30; }else {var src=document.createElement("DIV"); if (!this.NoScript)this.l15.value.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,i2u); src.innerHTML=HTMLEditor.O13(this.l15.value.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); var l1v=src.getElementsByTagName("EMBED"); var I30=[]; for (var i=0; i<l1v.length; i++)I30.push(l1v[i]); for (var Oh=0; Oh<I30.length; Oh++){var embed=I30[Oh]; var img=document.createElement("IMG"); var l2z=embed.attributes; img.src=this.Q[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<l2z.length; ++i){var a=l2z.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.o31(src,this, true); HTMLEditor.I26(src,document); var ik=HTMLEditor.O13(HTMLEditor.getHTML(src, false , true)); if (!this.NoScript)ik=ik.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,l2v); if (l2u.length>0){} delete src; ie=HTMLEditor.i2r(ik); }if (!o2q){ this.l15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }return ie; break; default:alert("Mode <"+mode+"> not defined"); return false; }}catch (t){ this.On(); return ""; }} ; HTMLEditor.prototype.O31= function (html){switch (this.i1){case "html": this.I1.body.innerHTML=html; break; case "text": this.l15.value=html; break; default:alert("Mode <"+mode+"> not defined"); }return false; } ; HTMLEditor.l31= function (il){var ir=" script style div span a del strong em u strike font b sub sup p iframe li ul ol placeholder textarea td tr "; return (ir.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.i31= function (il){var ir=" hr br "; return (ir.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.I31= function (Ih){return Ih.replace(/&/ig,"&amp;").replace(/</ig,"&lt;").replace(/>/ig,"&gt;").replace(/"/ig,"&quot;").replace(/\xa0/ig,"&nbsp;"); } ; HTMLEditor.iy= function (i1p,ix){var o32; for (var O32=i1p.firstChild; O32; O32=o32){if (O32.nodeType==1 || O32.nodeType==013){if (O32.tagName.length>0){if (O32.tagName.indexOf("/")>=0 && O32.tagName.toLowerCase().substr(O32.tagName.indexOf("/")+1)=="embed"){var o32=O32.nextSibling; O32.parentNode.removeChild(O32); continue; }var closed=(!(O32.hasChildNodes() || HTMLEditor.l31(O32))); if ((closed || O32.tagName.toLowerCase()=="placeholder") && !HTMLEditor.i31(O32) && O32.tagName.toLowerCase()!="embed"){var Il=O32.tagName.toLowerCase(); var O1v=O32.nextSibling; var ig=[]; while (O1v!=null){if (O1v.nodeType==O32.nodeType && O1v.tagName)if (O1v.tagName.indexOf("/")>=0)if (O1v.tagName.toLowerCase().substr(O1v.tagName.indexOf("/")+1)==Il){O1v.parentNode.removeChild(O1v); Il="teo"+HTMLEditor.Om+":"+O32.tagName; var l32=ix.createElement(Il); var l2z=O32.attributes; for (var i=0; i<l2z.length; ++i){var a=l2z.item(i); if (!a.specified)continue; l32.setAttribute(a.name,a.value); }l32.style.cssText=O32.style.cssText; if (O32.className.length>0)l32.className=O32.className; O32.parentNode.insertBefore(l32,O32); O32.parentNode.removeChild(O32); for (var i=0; i<ig.length; i++){l32.appendChild(ig[i]); }O32=l32; break; }ig.push(O1v); O1v=O1v.nextSibling; } delete ig; }}HTMLEditor.iy(O32,ix); }o32=O32.nextSibling; }};HTMLEditor.getHTML= function (O32,i32,I32){try {if (typeof I32=="undefined"){if (!i32 && O32.nodeType==1){return O32.innerHTML; }else if (i32 && O32.nodeType==1 && HTMLEditor.is_ie){return O32.outerHTML; }}}catch (t){}var html=new O2a( true); HTMLEditor.o33(html,O32,i32); return html.toString(); };HTMLEditor.o33= function (html,O32,i32,I32){switch (O32.nodeType){case 1:case 013:if (O32.tagName && O32.tagName.indexOf("/")>=0){if (HTMLEditor.is_ie){var Il=O32.tagName.toLowerCase().substr(O32.tagName.indexOf("/")+1); var O33=O32.previousSibling; if (Il=="embed")return; while (O33!=null){if (O33.nodeType==O32.nodeType && O33.tagName && O33.tagName.toLowerCase()==Il){html.write("</teo"+HTMLEditor.Om+":"+O32.tagName.toLowerCase().substr(O32.tagName.indexOf("/")+1)+">"); return; }O33=O33.previousSibling; }}return; }var closed; var l33; var i; if (i32 && O32.tagName.length>0){closed=(!(O32.hasChildNodes() || HTMLEditor.l31(O32))); l33= true; var i33=""; if (HTMLEditor.is_ie && O32.scopeName && typeof O32.scopeName!="undefined"){i33=(O32.scopeName.toUpperCase()=="HTML")?"": (O32.scopeName+":"); }if (HTMLEditor.is_ie && (closed || O32.tagName.toLowerCase()=="placeholder") && !HTMLEditor.i31(O32) && O32.tagName.toLowerCase()!="embed"){var Il=O32.tagName.toLowerCase(); var O1v=O32.nextSibling; while (O1v!=null){if (O1v.nodeType==O32.nodeType && O1v.tagName)if (O1v.tagName.indexOf("/")>=0)if (O1v.tagName.toLowerCase().substr(O1v.tagName.indexOf("/")+1)==Il){closed= false; l33= false; break; }O1v=O1v.nextSibling; }}if (!HTMLEditor.I33(O32)){html.write("\n"); }html.write("<"+((!closed && !l33)?"teo"+HTMLEditor.Om+":":i33)+O32.tagName.toLowerCase()); if (HTMLEditor.is_ie && O32.name && O32.name.length>0){html.write(" name"+"=\""+O32.name.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O32.value && O32.value.length>0 && O32.tagName.toLowerCase()!="textarea"){html.write(" value"+"=\""+O32.value.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O32.className && O32.className.length>0){html.write(" class"+"=\""+O32.className.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O32.align && O32.align.length>0){html.write(" align"+"=\""+O32.align.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O32.color && O32.color.length>0){html.write(" color"+"=\""+O32.color.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O32.size && O32.size.length>0 && O32.size!="+0"){html.write(" size"+"=\""+O32.size.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O32.shape && O32.shape.length>0){html.write(" shape"+"=\""+O32.shape.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && O32.coords && O32.coords.length>0){html.write(" coords"+"=\""+O32.coords.replace(/"/g,"&quot;")+"\""); }var l2z=O32.attributes; for (i=0; i<l2z.length; ++i){var a=l2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); if (name.substr(0,4)=="_moz"){continue; }if (name=="teoalign"){continue; }var value; if (name!="style"){if (name=="width"){value=O32.width; if (HTMLEditor.is_ie && value==0){var o34=0; O32.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?width=)([\\d]+)","ig"), function (o2a,l22){o34=l22; } ); if (value!=o34)value=o34; }}else if (name=="height"){value=O32.height; if (HTMLEditor.is_ie && value==0){var o34=0; O32.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?height=)([\\d]+)","ig"), function (o2a,l22){o34=l22; } ); if (value!=o34)value=o34; }}else if (HTMLEditor.is_ie && name=="name" && O32.name && O32.name.length>0)continue; else if (HTMLEditor.is_ie && name=="value" && O32.value && O32.value.length>0)continue; else if (HTMLEditor.is_ie && name=="align" && O32.align && O32.align.length>0)continue; else if (HTMLEditor.is_ie && name=="class" && O32.className && O32.className.length>0)continue; else if (HTMLEditor.is_ie && name=="color" && O32.color && O32.color.length>0)continue; else if (HTMLEditor.is_ie && name=="size" && O32.size && O32.size.length>0)continue; else if (HTMLEditor.is_ie && name=="shape" && O32.shape && O32.shape.length>0)continue; else if (HTMLEditor.is_ie && name=="coords" && O32.coords && O32.coords.length>0)continue; else {if (O32.tagName.toLowerCase()=="embed" && name=="align" && HTMLEditor.is_ie){value=HTMLEditor.O34(a.value); }else {value=a.value; if (name=="src" || name=="href"){if (HTMLEditor.is_ie){var o34=""; O32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=\")([^\"]*?)\"","ig"), function (o2a,l22){o34=l22; } ); if (o34=="")O32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=')([^']*?)'","ig"), function (o2a,l22){o34=l22; } ); if (o34=="")O32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=)([^s>]*?)","ig"), function (o2a,l22){o34=l22; } ); if (value!=o34 && o34!=""){value=o34; value=value.replace(/&amp;/g,"&"); }}value=value.replace(/(\(S\([A-Za-z0-9_]+\)\)\/)/,""); }value=value.replace(/"/g,"&quot;"); }}}else {continue; }var l34="\""; if ((""+value+"").indexOf("\"")>=0)l34="'"; if (name!=null)html.write(" "+name+"="+l34+value+l34); }if (O32.style.cssText.length>0){var name="style"; var I2j=/(rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\))/ig; var i34=/(url\((?:[^)]*)\))/ig; var I34=[]; function o35(O30,$1){I34.push($1); }O32.style.cssText.replace(i34,o35); var value=O32.style.cssText.toLowerCase(); var O35=0; function l35(){var ik=I34[O35]; O35++; return ik; }value=value.replace(i34,l35); function i2z(I2z){return (I2z<020)?("0"+I2z.toString(020)):I2z.toString(020); } ; function o30(O30,$1,$2,$3,$4){var o1h=parseInt($2); var l30=parseInt($3); var b=parseInt($4); return "#"+i2z(o1h)+i2z(l30)+i2z(b); }try {value=value.replace(I2j,o30); 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 l34="\""; if ((""+value+"").indexOf("\"")>=0)l34="'"; html.write(" "+name+"="+l34+value+l34); }}html.write(closed?" />": ">"); if (O32.tagName.toUpperCase()=="BR")html.write("\n"); }if (O32.tagName && O32.tagName.toUpperCase()=="SCRIPT")html.write(O32.text); for (i=O32.firstChild; i; i=i.nextSibling){HTMLEditor.o33(html,i, true);}if (i32 && O32.tagName.length>0 && !closed && l33){html.write("</"+i33+O32.tagName.toLowerCase()+">"); }break; case 3:html.write(HTMLEditor.I31(""+O32.data+"")); break; case 8:if (O32.length>0){html.write("<!--"+O32.data+"-->"); }else {html.write("<!---->"); }break; }} ; HTMLEditor.prototype.focusEditor= function (){switch (this.i1){case "html":if (this._iframe && this._iframe.contentWindow && this._iframe.contentWindow.focus && (this.isActivated || this._autoFocus)){if (!this._autoFocus && !this._wasFocused){if (HTMLEditor.is_ie && (""+this.I1.body.contentEditable+"")!="true")this.I1.body.contentEditable= true; HTMLEditor.o19(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.o19(this.ShowQuickFormatDivId, true); } this._wasFocused= true; this.i35=0; try {if (!HTMLEditor.l11)this._iframe.contentWindow.focus(); if (HTMLEditor.l11 && this.f){ this._iframe.focus(); }}catch (t){} ; if (HTMLEditor.is_ie)this.updateToolbar(); }break; case "text":if (this._autoFocus)try { this.l15.focus(); }catch (t){} ; break; default:break; }return this.I1; } ; HTMLEditor.prototype.I35= function (){var area=this.I1.createElement("textarea"); area.width="0"; area.height="0"; this.I1.appendChild(area); var o1h=area.createTextRange(); o1h.execCommand("paste"); var o36=area.value; o36=o36.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>"); this.I1.removeChild(area); return o36; } ; HTMLEditor.prototype.O36= function (text,on,l36){if (text!=""){text=text.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); text=text.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); text=text.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); }var iframe=this.I1.createElement("iframe"); iframe.width="0"; iframe.height="0"; if (HTMLEditor.is_ie)iframe.src="javascript:false;"; this.I1.appendChild(iframe); var ix=iframe.contentWindow.document; var html=new O2a(); html.write("<html>"); html.write("<head>"); html.write("<style> body { "+this.I.l27+" } </style>"); html.write("</head>"); html.write("<body>"); html.write(text); html.write("</body>"); html.write("</html>"); ix.write(html.toString()); ix.close(); ix.body.contentEditable= true; var o1h=ix.body.createTextRange(); var i36= false; if (text==""){o1h.execCommand("paste"); var I2y=ix.createElement("DIV"); for (var i=0; i<ix.body.childNodes.length; i++){var o1v=ix.body.childNodes.item(i); if (o1v.nodeType==8){var Ih=""+o1v.data+""; if (Ih.search(/StartFragment/i)>=0){if (o1v.nextSibling && o1v.nextSibling.nodeType==3){var Ih=""+o1v.nextSibling.data+""; if (Ih.length)if (Ih.charCodeAt(0)==0240){Ih=Ih.substr(1); o1v.nextSibling.data=Ih; i36= true; break; }}}}}if (typeof l36!="undefined" && l36)ix.body.innerHTML=HTMLEditor.l2q(ix.body.innerHTML); var Ih=HTMLEditor.O13(HTMLEditor.getHTML(ix.body, false , true)); Ih=Ih.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); ix.body.innerHTML=Ih; if (!on){HTMLEditor.Iy(this,ix,!this.showAnchors); HTMLEditor.oz(this,ix,!this.showPlaceHolders); var l1v=ix.body.getElementsByTagName("EMBED"); var I36=[]; for (var i=0; i<l1v.length; i++)I36.push(l1v[i]); for (var l2c=0; l2c<I36.length; l2c++)I36[l2c].parentNode.removeChild(I36[l2c]); } delete o1h; delete I2y; if (on && HTMLEditor.is_ie)o1h=ix.body.createTextRange(); }if (on && HTMLEditor.is_ie){if (text!=""){HTMLEditor.Iy(this,ix, true); HTMLEditor.oz(this,ix, true); }o1h.select(); o1h.execCommand("copy"); }var ie=HTMLEditor.O13(ix.body.innerHTML); ie=ie.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); ie=ie.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); ie=ie.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); ie=ie.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); ie=ie.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); var l1v=ix.body.getElementsByTagName("EMBED"); var I36=[]; for (var i=0; i<l1v.length; i++)I36.push(l1v[i]); for (var l2c=0; l2c<I36.length; l2c++)I36[l2c].parentNode.removeChild(I36[l2c]); iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var X=this ; X.I1.removeChild(iframe); delete iframe; return ie; };HTMLEditor.O13= function (Ih){return Ih.replace(/[\0-\x1f]/g,""); };HTMLEditor.o37= function (X,o1c,lq){ this.D=X.D; this.d=X.d; this.C=X.C; if (HTMLEditor.is_ie){ this.O37=HTMLEditor.l37(X.I1.body); this.i37=X.I1.body.innerHTML; this.I37=null; if (lq.type.toLowerCase()=="control"){try {var il=o1c.item(0); this.I37=[]; while (il && (il.nodeType==3 || !il.tagName || il.tagName.toUpperCase()!="BODY")){var o38=0; while (il.previousSibling){o38++; il=il.previousSibling; } this.I37.push(o38); il=il.parentNode; }}catch (t){}}else { this.I2f=o1c.offsetLeft; this.o2g=o1c.offsetTop; }}else {if (HTMLEditor.l11)this.i37=HTMLEditor.O13(X.I1.body.innerHTML); else this.i37=X.I1.body.cloneNode( true); this.I37=[]; this.O38=0; try {var il=o1c.startContainer; this.O38=o1c.startOffset; if (il && il.nodeType==1 && il.tagName.toUpperCase()=="HTML"){il=X.I1.body; setTimeout( function (){try {lq=X.iq(); o1c=X.or(); X.o18(lq); o1c.setStart(il,0); o1c.setEnd(il,0); X.O18(lq,o1c); }catch (t){}} ,012); }while (il && il.nodeType && (il.nodeType==3 || !il.tagName || il.tagName.toUpperCase()!="BODY")){var o38=0; while (il.previousSibling){o38++; if (HTMLEditor.l11){if (il.nodeType==3 && il.previousSibling!=null && il.previousSibling.nodeType==3)o38--; }il=il.previousSibling; } this.I37.push(o38); il=il.parentNode; }}catch (t){}}};HTMLEditor.l38=036; HTMLEditor.prototype.o11= function (){var lq; var Iq; var i38; try {try {lq=this.iq(); Iq=this.or(lq); }catch (t){}i38=new HTMLEditor.o37(this,Iq,lq); }catch (t){return; }if (!this.K){ this.K=[]; this.i1e=0; }while (this.i1e<this.K.length)this.K.pop(); if (this.K.length==HTMLEditor.l38){ this.K.reverse(); this.K.pop(); this.K.reverse(); } this.K.push(i38); this.i1e=this.K.length; };HTMLEditor.prototype.I38= function (){if (this.i1e>=0 && this.i1e<this.K.length){var o17=this.K[this.i1e]; var lq; var Iq; this.D=o17.D; this.d=o17.d; this.C=o17.C; if (HTMLEditor.is_ie){function o39(o2a,l22,i22,o2v,O39){return l22.replace(/\salign=[^\s>]*/ig,"")+((o2v=="\"X\"")?"": ("align="+o2v))+O39.replace(/\salign=[^\s>]*/ig,""); }var l1v=this.I1.body.getElementsByTagName("EMBED"); var I36=[]; for (var i=0; i<l1v.length; i++)I36.push(l1v[i]); for (var l2c=0; l2c<I36.length; l2c++)I36[l2c].parentNode.removeChild(I36[l2c]); var l39=o17.i37.replace(/&amp;/ig,"&"); l39=l39.replace(/(<embed(?:.*?))(teoalign=)("[^"]*")((?:.*?)>)/ig,o39); this.I1.body.innerHTML="!!!<span></span>"+HTMLEditor.O13(l39); if (this.I1.body.firstChild)this.I1.body.removeChild(this.I1.body.firstChild); if (this.I1.body.firstChild)this.I1.body.removeChild(this.I1.body.firstChild); var o12=HTMLEditor.O12(l39); HTMLEditor.I12(this.I1.body,o12); if (this.relativeImages){o12=HTMLEditor.i12(l39); HTMLEditor.o13(this.I1.body,o12); }HTMLEditor.i39(this.I1.body,o17.O37); HTMLEditor.Iy(this,this.I1,!this.showAnchors); HTMLEditor.oz(this,this.I1,!this.showPlaceHolders); if (o17.I37!=null){var il=this.I1.body; var i; try {for (i=o17.I37.length-1; i>=0; i--){il=il.childNodes.item(o17.I37[i]); }}catch (t){if (this.i1e>0){ this.i1e--; this.I38(); this.i1e++; }return; }try {var o1c=this.I1.body.createControlRange(); o1c.add(il); o1c.select(); }catch (t){}}else {var X=this ; setTimeout( function (){try {lq=X.iq(); Iq=X.or(lq); if (lq.type.toLowerCase()!="control"){try {Iq.moveToPoint(o17.I2f,o17.o2g); }catch (t){}}Iq.select(); }catch (t){}} ,0); }}else {if (HTMLEditor.l11){ this.I1.body.innerHTML=HTMLEditor.O13(o17.i37); }else { this.I1.body.innerHTML=""; for (var i=0; i<o17.i37.childNodes.length; i++){ this.I1.body.appendChild(o17.i37.childNodes.item(i).cloneNode( true)); }}HTMLEditor.Iy(this,this.I1,!this.showAnchors); HTMLEditor.oz(this,this.I1,!this.showPlaceHolders); try {lq=this.iq(); Iq=this.or(); this.o18(lq); }catch (t){}var Ih=""; var il=this.I1.body; for (var i=o17.I37.length-1; i>=0; i--){Ih+=" "+o17.I37[i]; il=il.childNodes.item(o17.I37[i]); }var I39=o17.O38; try {Iq.setStart(il,I39); Iq.setEnd(il,I39); }catch (t){HTMLEditor.i13(this.I1.body); return; }if (HTMLEditor.l11)this.f= true; try { this.O18(lq,Iq); }catch (t){}}try {HTMLEditor.i13(this.I1.body); }catch (t){}}};HTMLEditor.prototype.SaveContent= function (){ this.o11(); };HTMLEditor.prototype.RestoreContent= function (){ this.O1f( false); };HTMLEditor.prototype.O1f= function (O17,o3a){if (HTMLEditor.is_ie){var O3a=this.I1.body.getElementsByTagName("EMBED"); var l3a= false; if (O3a.length>0){for (var i=0; i<O3a.length; i++){var value=""; var l2z=O3a[i].attributes; for (var Oh=0; Oh<l2z.length; ++Oh){var a=l2z.item(Oh); if (!a.specified)continue; var name=a.name.toLowerCase(); if (name=="type"){value=a.value; break; }}if (value.toLowerCase()=="application/x-mplayer2"){l3a= true; break; }}}if (l3a){var X=this ; X.o2f(null, function (il){X.O2f(O17); if (typeof o3a=="function")o3a(); } ); }else this.O2f(O17); }else this.O2f(O17); };HTMLEditor.prototype.O2f= function (O17){if (this.K){if (this.i1e>0){if (this.i1e==this.K.length && O17){ this.o11(); } do {var i26=HTMLEditor.O13(this.I1.body.innerHTML); this.i1e--; this.I38(); }while (HTMLEditor.O13(this.I1.body.innerHTML)==i26 && this.i1e>0 && O17);var X=this ; setTimeout( function (){try {X.o1g(); X.updateToolbar(); }catch (t){}if (!O17)X.I14(); } ,5); }}};HTMLEditor.prototype.l1f= function (){if (this.K){if (this.i1e<this.K.length-1){ this.i1e++; var X=this ; var i3a; if (HTMLEditor.is_ie){i3a=X.I1.body.getElementsByTagName("EMBED").length; if (i3a>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); setTimeout( function (){X.A.removeChild(popup); } ,0); }} this.I38(); var X=this ; setTimeout( function (){X.o1g(); X.updateToolbar(); } ,5); }}};HTMLEditor.I3a= function (il){if (il.id && il.id.length>0 && il.id.indexOf(HTMLEditor.Om)>=0)return true; return false;};HTMLEditor.i24= function (il){var o3b=null; try {o3b=il.parentNode; }catch (t){}if (o3b){var O3b=null; while (o3b && o3b.tagName && o3b.tagName.toUpperCase()!="BODY" && HTMLEditor.i1j(o3b.tagName) && (o3b.tagName.toUpperCase()!="A")){O3b=o3b; o3b=o3b.parentNode; }if (O3b){function O21(add,il,l21,i21,on){var par=l21.cloneNode( false); if (add){if (add.push && typeof add.push=="function"){for (var l3b=0; l3b<add.length; l3b++){par.appendChild(add[l3b]); }}else par.appendChild(add); }if (on)par.appendChild(il); else while (il){var i3b=i21?il.previousSibling:il.nextSibling; if (il.nodeType==1 || (il.nodeType==3 && HTMLEditor.O13(""+il.data+"").length>0)){if (il.nodeType==1){if (il.tagName && HTMLEditor.i1j(il.tagName) && il.childNodes.length==0 && !HTMLEditor.I3a(il))il=null; }if (il){if (par.childNodes.length==0 || !i21)par.appendChild(il); else par.insertBefore(il,par.firstChild); }}il=i3b; }if (par.childNodes.length==0){ delete par; par=null; }else if (par.childNodes.length==1 && par.firstChild.nodeType==3 && (""+par.firstChild.data+"").length==0){ delete par; par=null; }else {if (!on && par.tagName && HTMLEditor.i1j(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.I3a(par)){var I3b=par.childNodes.length; for (var o3c=0; o3c<par.childNodes.length; o3c++){var O3c=par.childNodes.item(o3c); if (O3c.nodeType==1 && O3c.tagName && !HTMLEditor.i1j(O3c.tagName) && (O3c.tagName.toUpperCase()=="BR" || O3c.tagName.toUpperCase()=="TABLE" || HTMLEditor.I3a(O3c)))I3b--; }if (I3b==0){var l3c=[]; while (par.firstChild){var O3c=par.removeChild(par.firstChild); l3c.push(O3c); }par=l3c; }}}if (l21==O3b)return par; else {if (!on)return O21(par,i21?l21.previousSibling:l21.nextSibling,l21.parentNode,i21,on); else return O21(null,par,l21.parentNode,i21,on); }} ; o3b=il.parentNode; if (il.previousSibling==null && il.nextSibling==null && o3b && o3b.tagName && o3b.tagName.toUpperCase()!="BODY" && HTMLEditor.i1j(o3b.tagName) && HTMLEditor.i3c(o3b,["class","color","face","size"]).length>0)il=o3b; var l22=O21(null,il.previousSibling,il.parentNode, true , false); var i22=O21(null,il.nextSibling,il.parentNode, false , false); var par=O3b.parentNode; if (l22){if (l22.push && typeof l22.push=="function"){for (var l3b=0; l3b<l22.length; l3b++){par.insertBefore(l22[l3b],O3b); }}else par.insertBefore(l22,O3b); }if (il.nodeType==1 && il.tagName && (il.tagName.toUpperCase()=="BR" || il.tagName.toUpperCase()=="TABLE" || HTMLEditor.I3a(il)))par.insertBefore(il,O3b); else {var o2v=O21(null,il,il.parentNode, false , true); par.insertBefore(o2v,O3b); }if (i22){if (i22.push && typeof i22.push=="function"){for (var l3b=0; l3b<i22.length; l3b++){par.insertBefore(i22[l3b],O3b); }}else par.insertBefore(i22,O3b); }par.removeChild(O3b); }}};HTMLEditor.I3c= function (il){if (il.nodeType==3)return true; if (il.nodeType!=1)return false; if (!il.tagName || il.tagName.length==0)return false; if (il && il.style && il.style.display && il.style.display.toLowerCase()=="inline")return true; var name=il.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return false; }}switch (name){case "BR":case "TBODY":case "TR":case "TD":case "P":case "PRE":case "TABLE":case "OL":case "UL":case "LI":case "HR":case "DIV":case "BLOCKQUOTE":case "FORM":case "FIELDSET":case "LEGEND":return false; default:return true; }};HTMLEditor.o3d= function (i38,il,left,O3d){while (il){var i3b=left?il.previousSibling:il.nextSibling; if (!HTMLEditor.I3c(il)){var par=il.parentNode; if (!left)par.insertBefore(i38,il); else {if (il.nextSibling)par.insertBefore(i38,il.nextSibling); else par.appendChild(i38); }return i38; }else if (typeof O3d=="function" && il.nodeType==3){var Oh; var Ih=""+il.data+""; if (left){for (Oh=Ih.length-1; Oh>=0; Oh--){if (O3d(Ih.substr(Oh,1)))break; }}else {for (Oh=0; Oh<Ih.length; Oh++){if (O3d(Ih.substr(Oh,1)))break; }}if (Oh>=0 && Oh<Ih.length){var par=il.parentNode; var l3d; if ((Oh>0 || (left && Oh==0)) && (Oh<Ih.length-1 || (!left && Oh==Ih.length-1))){if (left)l3d=il.splitText(Oh+1); else l3d=il.splitText(Oh); par.insertBefore(i38,l3d); }else {if (!left)par.insertBefore(i38,il); else {if (il.nextSibling)par.insertBefore(i38,il.nextSibling); else par.appendChild(i38); }}return i38; }}il=left?il.lastChild:il.firstChild; if (il){var O1w=HTMLEditor.o3d(i38,il,left,O3d); if (O1w!=null)return O1w; }il=i3b; }return null; };HTMLEditor.i3d= function (i38,il,left,par,O3d){while ( true){var O1w=HTMLEditor.o3d(i38,il,left,O3d); if (O1w!=null)return O1w; if (par.tagName && HTMLEditor.i1j(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.I3a(par)){il=left?par.previousSibling:par.nextSibling; par=par.parentNode; }else {if (!left || par.firstChild==null)par.appendChild(i38); else par.insertBefore(i38,par.firstChild); return i38; }}};HTMLEditor.I3d= function (l17,il){if (il==l17)return l17; if (l17.nodeType==1){for (var i=0; i<l17.childNodes.length; i++){var o1v=l17.childNodes.item(i); if (il==o1v)return o1v; if (o1v.nodeType==1){var l1d=HTMLEditor.o3e(o1v,il); if (l1d>=0){if (o1v.tagName && HTMLEditor.i1j(o1v.tagName) && (o1v.tagName.toUpperCase()!="A") && !HTMLEditor.I3a(o1v))return HTMLEditor.I3d(o1v,il); else return o1v; }}}}return null; };HTMLEditor.O3e= function (l3e,i3e){function I3e(O1v){if (!HTMLEditor.I3c(O1v) || O1v.nodeType==3){HTMLEditor.i24(O1v); }else if (O1v.tagName && HTMLEditor.i1j(O1v.tagName) && (O1v.tagName.toUpperCase()!="A") && !HTMLEditor.I3a(O1v)){var o3f=O1v.firstChild; while (o3f!=null){var O3f=o3f.nextSibling; I3e(o3f); o3f=O3f; }}}var O1v=l3e; while (O1v!=null && O1v!=i3e){var nextSibling=O1v.nextSibling; I3e(O1v); O1v=nextSibling; }};HTMLEditor.prototype.l3f= function (o1b,O1b,i3f){var O1w=[]; var l3e=o1b; var i3e=(O1b.nextSibling!=null && O1b.nextSibling.tagName && O1b.nextSibling.tagName.toUpperCase()=="BR")?O1b.nextSibling:O1b; var I24=null; if (l3e==null || i3e==null){if (l3e!=null){I24=HTMLEditor.o25(l3e,l3e); }if (i3e!=null){I24=HTMLEditor.o25(i3e,i3e); }}else I24=HTMLEditor.o25(l3e,i3e); if (I24!=null){l3e=HTMLEditor.I3d(I24.parent.childNodes.item(I24.I25),l3e); i3e=HTMLEditor.I3d(I24.parent.childNodes.item(I24.O26),i3e); HTMLEditor.i24(l3e); HTMLEditor.i24(i3e); while (l3e.parentNode!=I24.parent)l3e=l3e.parentNode; while (i3e.parentNode!=I24.parent)i3e=i3e.parentNode; HTMLEditor.O3e(l3e.nextSibling,i3e); I24=null; if (o1b==null || O1b==null){if (o1b!=null){I24=HTMLEditor.o25(o1b,o1b); }if (O1b!=null){I24=HTMLEditor.o25(O1b,O1b); }}else I24=HTMLEditor.o25(o1b,O1b); if (I24!=null){HTMLEditor.I26(I24.parent,this.I1,I24.I25,I24.O26+1, true); }function I3f(O1v){if (!HTMLEditor.I3c(O1v)){return true; }else if (O1v.tagName && HTMLEditor.i1j(O1v.tagName) && (O1v.tagName.toUpperCase()!="A") && !HTMLEditor.I3a(O1v)){var o3f=O1v.firstChild; while (o3f!=null){O3f=o3f.nextSibling; var ik=I3f(o3f); if (ik)return true; o3f=O3f; }}return false; }var o3g=0; var O3g=[]; var l3g=0; if (l3e.tagName && i3e.tagName){if ((l3e.tagName.toUpperCase()=="TD" || l3e.tagName.toUpperCase()=="TR") && (i3e.tagName.toUpperCase()=="TD" || i3e.tagName.toUpperCase()=="TR")){while (l3e.tagName.toUpperCase()!="TABLE")l3e=l3e.parentNode; i3e=l3e; }else if ((l3e.tagName.toUpperCase()=="DD" || l3e.tagName.toUpperCase()=="DT") && (i3e.tagName.toUpperCase()=="DD" || i3e.tagName.toUpperCase()=="DT")){while (l3e.tagName && l3e.tagName.toUpperCase()!="DL")l3e=l3e.parentNode; i3e=l3e; }else if ((l3e.tagName.toUpperCase()=="LI") && (i3e.tagName.toUpperCase()=="LI")){while (l3e.tagName && l3e.tagName.toUpperCase()!="UL" && l3e.tagName.toUpperCase()!="OL"){l3e=l3e.parentNode; }i3e=l3e; }}var i3g=o1b?o1b:O1b; var I3g=O1b?O1b:o1b; var O1v=l3e; while ( true){if (!HTMLEditor.I3a(O1v)){var o3h=I3f(O1v); if (!o3h){if (O1v.nodeType && O1v.nodeType==3){var Ih=""+O1v.data+""; if (Ih.length==0 ||/^[\n\r]+$/.test(Ih)){var O3h=O1v.nextSibling; O1v.parentNode.removeChild(O1v); if (O1v==i3e)break; O1v=O3h; continue; }}O3g[l3g]=O1v; l3g++; }else {if (O1v.tagName && O1v.tagName.toUpperCase()=="BR"){O3g[l3g]=O1v; O1w[o3g]=O3g; o3g++; O3g=[]; l3g=0; }else if ((O1v==i3e || O1v==l3e) && !((O1v==i3e && O1v==l3e)?(HTMLEditor.l3h(O1v,i3g) && HTMLEditor.i3h(O1v,I3g)): (HTMLEditor.l3h(O1v,i3g) || HTMLEditor.i3h(O1v,I3g)))){if (O1v.tagName && (O1v.tagName.toUpperCase()=="TABLE" || O1v.tagName.toUpperCase()=="TBODY")){var table=O1v; while (table.tagName.toUpperCase()!="TABLE")table=table.parentNode; var I3h=0; var o3i=0; var O3i=table.rows.item(table.rows.length-1).cells.length-1; var l3i=table.rows.length-1; for (var i=0; i<table.rows.length; i++){var l23=table.rows.item(i); var Oh=0; for ( ; Oh<l23.cells.length; Oh++){var cell=l23.cells.item(Oh); if (HTMLEditor.o3e(cell,i3g)>=0){I3h=Oh; o3i=i; }if (HTMLEditor.o3e(cell,I3g)>=0){O3i=Oh; l3i=i; }}}for (var i=o3i; i<=l3i; i++)for (var Oh=((i==o3i)?I3h: 0); Oh<=((i==l3i)?O3i: (table.rows.item(i).cells.length-1)); Oh++){var cell=table.rows.item(i).cells.item(Oh); if (l3g>0){O1w[o3g]=O3g; o3g++; O3g=[]; l3g=0; }var i3i=(HTMLEditor.o3e(cell,i3g)>=0); var I3i=(HTMLEditor.o3e(cell,I3g)>=0); if (i3i || I3i){var o3j=i3g; var O3j=I3g; var i23=HTMLEditor.Om+"_right_"+i3f; var I23=HTMLEditor.Om+"_left_"+i3f; if (i3i){O3j=this.I1.createElement("span"); O3j.id=i23; cell.appendChild(O3j); }if (I3i){o3j=this.I1.createElement("span"); o3j.id=I23; if (cell.firstChild)cell.insertBefore(o3j,cell.firstChild); else cell.appendChild(o3j); }var l3j=this.l3f(o3j,O3j,i3f+1); for (var o3c=0; o3c<l3j.length; o3c++){O1w[o3g]=l3j[o3c]; o3g++; }if (o3j!=i3g)o3j.parentNode.removeChild(o3j); if (O3j!=I3g)O3j.parentNode.removeChild(O3j); }else {var i3j=0; var I3j=cell.childNodes.length; for (var I2c=i3j; I2c<I3j; I2c++){var il=cell.childNodes.item(I2c); if (!HTMLEditor.I3a(il)){O3g[l3g]=il; l3g++; }}if (O3g.length>0){O1w[o3g]=O3g; o3g++; O3g=[]; l3g=0; }}}}else if (O1v.tagName && (O1v.tagName.toUpperCase()=="UL" || O1v.tagName.toUpperCase()=="OL" || O1v.tagName.toUpperCase()=="DL")){var i2g=O1v; var o3k=0; var O3k=i2g.childNodes.length-1; for (var i=0; i<i2g.childNodes.length; i++){var l3k=i2g.childNodes.item(i); if (l3k.nodeType==1){if (l3k==i3g || HTMLEditor.o3e(l3k,i3g)>=0){o3k=i; }if (l3k==I3g || HTMLEditor.o3e(l3k,I3g)>=0){O3k=i; }}}for (var i=o3k; i<=O3k; i++){var l3k=i2g.childNodes.item(i); if (l3g>0){O1w[o3g]=O3g; o3g++; O3g=[]; l3g=0; }var i3i=(HTMLEditor.o3e(l3k,i3g)>=0); var I3i=(HTMLEditor.o3e(l3k,I3g)>=0); if (i3i || I3i){var o3j=i3g; var O3j=I3g; var i23=HTMLEditor.Om+"_right_"+i3f; var I23=HTMLEditor.Om+"_left_"+i3f; if (i3i){O3j=this.I1.createElement("span"); O3j.id=i23; l3k.appendChild(O3j); }if (I3i){o3j=this.I1.createElement("span"); o3j.id=I23; if (l3k.firstChild)l3k.insertBefore(o3j,l3k.firstChild); else l3k.appendChild(o3j); }var l3j=this.l3f(o3j,O3j,i3f+1); for (var o3c=0; o3c<l3j.length; o3c++){O1w[o3g]=l3j[o3c]; o3g++; }if (o3j!=i3g)o3j.parentNode.removeChild(o3j); if (O3j!=I3g)O3j.parentNode.removeChild(O3j); }else {var i3j=0; var I3j=l3k.childNodes.length; for (var I2c=i3j; I2c<I3j; I2c++){var il=l3k.childNodes.item(I2c); if (!HTMLEditor.I3a(il)){O3g[l3g]=il; l3g++; }}if (O3g.length>0){O1w[o3g]=O3g; o3g++; O3g=[]; l3g=0; }}}}else {var i3i=(HTMLEditor.o3e(O1v,i3g)>=0); var I3i=(HTMLEditor.o3e(O1v,I3g)>=0); if (l3g>0){O1w[o3g]=O3g; o3g++; O3g=[]; l3g=0; }if (i3i || I3i){var o3j=i3g; var O3j=I3g; var i23=HTMLEditor.Om+"_right_"+i3f; var I23=HTMLEditor.Om+"_left_"+i3f; if (i3i){O3j=this.I1.createElement("span"); O3j.id=i23; O1v.appendChild(O3j); }if (I3i){o3j=this.I1.createElement("span"); o3j.id=I23; if (O1v.firstChild)O1v.insertBefore(o3j,O1v.firstChild); else O1v.appendChild(o3j); }var l3j=this.l3f(o3j,O3j,i3f+1); for (var o3c=0; o3c<l3j.length; o3c++){O1w[o3g]=l3j[o3c]; o3g++; }if (o3j!=i3g)o3j.parentNode.removeChild(o3j); if (O3j!=I3g)O3j.parentNode.removeChild(O3j); }else {var i3j=0; var I3j=O1v.childNodes.length; for (var I2c=i3j; I2c<I3j; I2c++){var il=O1v.childNodes.item(I2c); if (!HTMLEditor.I3a(il)){O3g[l3g]=il; l3g++; }}if (O3g.length>0){O1w[o3g]=O3g; o3g++; O3g=[]; l3g=0; }}}}else {if (l3g>0){O1w[o3g]=O3g; o3g++; O3g=[]; l3g=0; }O3g[l3g]=O1v; O1w[o3g]=O3g; o3g++; O3g=[]; l3g=0; }}}if (O1v==i3e)break; O1v=O1v.nextSibling; }if (l3g>0){O1w[o3g]=O3g; }}return O1w; };HTMLEditor.prototype.getPseudoP= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return []; var O1w=[]; try {var lq=this.iq(); var Iq=this.or(lq); var i23=HTMLEditor.Om+"_right"; var I23=HTMLEditor.Om+"_left"; var o24=null; var O24=null; if (HTMLEditor.is_ie){if (lq.type.toLowerCase()!="control"){o24=Iq.duplicate(); O24=Iq.duplicate(); o24.setEndPoint("EndToStart",Iq); O24.setEndPoint("StartToEnd",Iq); }}else {o24=Iq.cloneRange(); O24=Iq.cloneRange(); o24.setEnd(o24.startContainer,o24.startOffset); O24.setStart(O24.endContainer,O24.endOffset); }var o1b=null; var O1b=null; if (HTMLEditor.is_ie && lq.type.toLowerCase()=="control"){var i1c=Iq.item(0); var i3k; i3k=this.I1.createElement("SPAN"); i3k.id=I23; i1c.parentNode.insertBefore(i3k,i1c); i3k=this.I1.createElement("SPAN"); i3k.id=i23; if (i1c.nextSibling==null)i1c.parentNode.appendChild(i3k); else i1c.parentNode.insertBefore(i3k,i1c.nextSibling); }else {if (!this.I11("<span id='"+i23+"'/>",O24))return []; if (!this.I11("<span id='"+I23+"'/>",o24)){var l24=this.I1.getElementById(i23); if (l24!=null){ik=l24.parentNode; ik.removeChild(l24); }return []; }}o1b=this.I1.getElementById(I23); O1b=this.I1.getElementById(i23); if (o1b!=null && O1b!=null){while (o1b.nextSibling==null){if (o1b.parentNode.nextSibling)o1b.parentNode.parentNode.insertBefore(o1b,o1b.parentNode.nextSibling); else o1b.parentNode.parentNode.appendChild(o1b); }}if (o1b!=null && O1b!=null){while (O1b.previousSibling==null)O1b.parentNode.parentNode.insertBefore(O1b,O1b.parentNode); if (O1b.previousSibling.nodeType==1 && O1b.previousSibling.tagName.toUpperCase()!="BR" && O1b.previousSibling.tagName.toUpperCase()!="IMG"){var o26=HTMLEditor.I3k(O1b.previousSibling); if (o26.nodeType==1 && HTMLEditor.canHaveChildren(o26))o26.appendChild(O1b); else o26.parentNode.appendChild(O1b); }if (O1b.previousSibling && O1b.previousSibling.nodeType==1 && O1b.previousSibling.tagName.toUpperCase()=="BR")O1b.parentNode.insertBefore(O1b,O1b.previousSibling); }if (o1b==null){var span=this.I1.createElement("SPAN"); span.id=I23; O1b.parentNode.insertBefore(span,O1b); o1b=span; }if (O1b==null){var span=this.I1.createElement("SPAN"); span.id=i23; if (o1b.nextSibling)o1b.parentNode.insertBefore(span,o1b.nextSibling); else o1b.parentNode.appendChild(span); O1b=span; }if (o1b!=null && O1b!=null){if (o1b.parentNode==O1b){O1b.parentNode.insertBefore(o1b,O1b); }else if (O1b.parentNode==o1b){if (o1b.nextSibling!=null)o1b.parentNode.insertBefore(O1b,o1b.nextSibling); else o1b.parentNode.appendChild(O1b); }}while (o1b.nextSibling!=null && o1b.nextSibling.nodeType==3 && (""+o1b.nextSibling.data+"").length==0)o1b.parentNode.removeChild(o1b.nextSibling); if (this.o3l==null && o1b!=null && O1b!=null && o1b.nextSibling==O1b){var par=O1b.parentNode; this.o3l=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.i1j(par.tagName)){if (par.tagName.toUpperCase()!="A"){var ik=par.cloneNode( false); if (this.o3l==null){ this.o3l=ik; }else {ik.appendChild(this.o3l); this.o3l=ik; }}par=par.parentNode; }if (this.o3l){var O3l=this.I1.createElement("span"); O3l.appendChild(this.o3l); this.o3l=O3l.innerHTML; }}var l3l=o1b; while (l3l && l3l.tagName && HTMLEditor.i1j(l3l.tagName) && (l3l.tagName.toUpperCase()!="A")){l3l=l3l.parentNode; }if (l3l!=null && (l3l.tagName.toUpperCase()=="P" || (l3l.tagName.length==2 && l3l.tagName.toUpperCase().substr(0,1)=="H" && parseInt(l3l.tagName.substr(1,1))>0))){if (l3l.firstChild!=null)l3l.insertBefore(o1b,l3l.firstChild); else l3l.appendChild(o1b); }else HTMLEditor.i3d(o1b,o1b.previousSibling, true ,o1b.parentNode); l3l=O1b; while (l3l && l3l.tagName && HTMLEditor.i1j(l3l.tagName) && (l3l.tagName.toUpperCase()!="A")){l3l=l3l.parentNode; }if (l3l!=null && (l3l.tagName.toUpperCase()=="P" || (l3l.tagName.length==2 && l3l.tagName.toUpperCase().substr(0,1)=="H" && parseInt(l3l.tagName.substr(1,1))>0))){l3l.appendChild(O1b); }else HTMLEditor.i3d(O1b,O1b.nextSibling, false ,O1b.parentNode); O1w=this.l3f(o1b,O1b,0); if (O1w.length==0 && o1b.previousSibling==null && O1b.nextSibling==null && o1b.nextSibling==O1b && (o1b.parentNode.tagName.toUpperCase()=="P" || o1b.parentNode.tagName.toUpperCase()=="DIV" || o1b.parentNode.tagName.toUpperCase()=="LI" || (o1b.parentNode.tagName.length==2 && o1b.parentNode.tagName.toUpperCase().substr(0,1)=="H" && parseInt(o1b.parentNode.tagName.substr(1,1))>0)))O1w=[[o1b.parentNode]]; if (HTMLEditor.is_ie){lq.empty(); lq=this.iq(); var i3l=this.or(lq); var I3l=this.or(lq); try {if (o1b!=null)i3l.moveToElementText(o1b); if (O1b!=null)I3l.moveToElementText(O1b); if (o1b!=null && O1b!=null){i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }else if (o1b!=null)i3l.select(); else if (O1b!=null)I3l.select(); }catch (t){}}if (o1b!=null)o1b.parentNode.removeChild(o1b); if (O1b!=null)O1b.parentNode.removeChild(O1b); }catch (t){alert("getPseudoP: "+t.message); var o3m=this.I1.getElementsByTagName("SPAN"); var del=[]; for (var i=0; i<o3m.length; i++){var span=o3m[i]; if (span.id && span.id.length>0){var i2o=new RegExp(HTMLEditor.Om,"ig"); if (i2o.test(span.id))del.push(span); }}for (var i=0; i<del.length; i++)del[i].parentNode.removeChild(del[i]); }return O1w; } ; HTMLEditor.prototype.O3m= function (i1p,l3m){var X=this ; if (i1p.firstChild){while (i1p.firstChild && i1p.firstChild.nodeType==3 && (""+i1p.firstChild.data+"")=="")i1p.removeChild(i1p.firstChild); var i3m=[]; while (i1p.firstChild){if (i1p.firstChild!=l3m[0] && i1p.firstChild!=l3m[1])i3m.push(i1p.firstChild); i1p.parentNode.insertBefore(i1p.firstChild,i1p); }if (i3m.length==0){var br=X.I1.createElement("BR"); i1p.parentNode.insertBefore(br,i1p); }if (HTMLEditor.is_ie && i3m.length==1 && i3m[0].nodeType==3){var Ih=""+i3m[0].data+""; if (Ih.length==1 && Ih.charCodeAt(0)==0240){var br=X.I1.createElement("BR"); i3m[0].parentNode.insertBefore(br,i3m[0]); i3m[0].parentNode.removeChild(i3m[0]); }}while (i1p.nextSibling && i1p.nextSibling.nodeType==3 && (""+i1p.nextSibling.data+"")=="")i1p.parentNode.removeChild(i1p.nextSibling); var previousSibling=(i1p.previousSibling && l3m[1]==i1p.previousSibling)?l3m[1].previousSibling:i1p.previousSibling; if (previousSibling && HTMLEditor.I3c(previousSibling))if (previousSibling.nodeType==1 && previousSibling.childNodes.length>0)previousSibling=HTMLEditor.I3k(previousSibling); if (HTMLEditor.I3c(previousSibling) && i1p.nextSibling!=null){var br=X.I1.createElement("BR"); i1p.parentNode.insertBefore(br,i1p); }}else {var br=X.I1.createElement("BR"); i1p.parentNode.insertBefore(br,i1p); }i1p.parentNode.removeChild(i1p); };HTMLEditor.prototype.I3m= function (i1p,l3m,o3n){var X=this ; i1p.style.textAlign=""; var O3n=0; var l2z=i1p.attributes; for (var I2c=0; I2c<l2z.length; ++I2c){var a=l2z.item(I2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; O3n++; }var l3n=i1p.style.cssText; var margin=0; var i3n; if (!(typeof o3n!="undefined" && o3n))if (i1p.tagName.toUpperCase()!="LI")try {i3n=parseInt(HTMLEditor.Oz(i1p,"margin-top")); if (isNaN(i3n))i3n=i1p.tagName.toUpperCase()=="P"?1: 0; margin+=i3n; i3n=parseInt(HTMLEditor.Oz(i1p,"margin-bottom")); if (isNaN(i3n))i3n=i1p.tagName.toUpperCase()=="P"?1: 0; margin+=i3n; i3n=parseInt(HTMLEditor.Oz(i1p,"margin-right")); if (isNaN(i3n))i3n=i1p.tagName.toUpperCase()=="P"?1: 0; margin+=i3n; i3n=parseInt(HTMLEditor.Oz(i1p,"margin-left")); if (isNaN(i3n))i3n=i1p.tagName.toUpperCase()=="P"?1: 0; margin+=i3n; }catch (t){margin=1; }i1p.style.margin=""; if ((O3n==0 && i1p.style.cssText.length==0 && margin==0) || (typeof o3n!="undefined" && o3n && i1p.tagName.toUpperCase()!="LI")){X.O3m(i1p,l3m); return true; }else {i1p.style.cssText=l3n; return false; }};HTMLEditor.I3n= function (il){var name=il.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return true; }}return false; };HTMLEditor.prototype.o3o= function (textAlign,O3o,l3o){var i3o=this.I3o(); var l3m=this.o3p(i3o); var O3p=null; var l3p=[]; var X=this ; var o3n=(typeof O3o!="undefined" && O3o)? true : false; var i3p=(typeof l3o=="string")? true : false; var I3p=(typeof l3o=="string")?l3o: ""; var o3q= false; var O3q= false; function l3q(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==l3m[0] || div.firstChild==l3m[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function i3q(){var firstChild=O3p.firstChild; var lastChild=O3p.lastChild; if (O3p.tagName && !HTMLEditor.I3c(O3p) && l3p[0][0]==firstChild && l3p[l3p.length-1][l3p[l3p.length-1].length-1]==lastChild && O3p.tagName.toUpperCase()!="TD" && O3p.tagName.toUpperCase()!="TH" && O3p.tagName.toUpperCase()!="FIELDSET" && O3p.tagName.toUpperCase()!="LEGEND"){var align=""; if (O3p.getAttribute("align") && O3p.getAttribute("align").length>0)align=O3p.getAttribute("align"); if (O3p.align && O3p.align.length>0)align=O3p.align; if (O3p.style.textAlign && O3p.style.textAlign.length>0)align=O3p.style.textAlign; O3p.align=""; O3p.setAttribute("align",""); O3p.removeAttribute("align"); if ((O3p.tagName.toUpperCase()=="DIV" || O3p.tagName.toUpperCase()=="P" || HTMLEditor.I3n(O3p)) && textAlign=="left" && o3n){if (X.I3m(O3p,l3m,o3n))o3q= true; }else {if (textAlign!="remain"){if (!(textAlign=="left" && o3n) || (O3p.tagName.toUpperCase()=="LI" && O3p.parentNode.style.textAlign.length>0))O3p.style.textAlign=textAlign; else O3p.style.textAlign=""; }if (o3n)O3p.style.margin=(O3p.tagName.toUpperCase()=="P")?"0px": ""; if (O3p.tagName.toUpperCase()=="LI"){var i2g=O3p.parentNode; var I3q=[]; for (var o3r=0; o3r<i2g.childNodes.length; o3r++)if (i2g.childNodes.item(o3r).nodeType==1)I3q.push(i2g.childNodes.item(o3r).style.textAlign); var O3r=1; for ( ; O3r<I3q.length; O3r++)if (I3q[O3r-1]!=I3q[O3r])break; if (O3r==I3q.length){var align=(I3q[0]=="left" && o3n)?"":I3q[0]; for (var Oh=0; Oh<i2g.childNodes.length; Oh++)if (i2g.childNodes.item(Oh).nodeType==1){i2g.childNodes.item(Oh).style.textAlign=""; if (o3n)i2g.childNodes.item(Oh).style.margin=(i2g.childNodes.item(Oh).tagName.toUpperCase()=="P")?"0px": ""; }i2g.style.textAlign=align; }}if ((O3p.tagName.toUpperCase()=="DIV" || O3p.tagName.toUpperCase()=="P" || HTMLEditor.I3n(O3p)) && i3p && I3p.toUpperCase()!=O3p.tagName.toUpperCase()){var l3r=X.I1.createElement(I3p); var l2z=O3p.attributes; for (var I2c=0; I2c<l2z.length; ++I2c){var a=l2z.item(I2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; l3r.setAttribute(a.name,a.value); }l3r.style.cssText=O3p.style.cssText; while (O3p.firstChild)l3r.appendChild(O3p.firstChild); O3p.parentNode.insertBefore(l3r,O3p); O3p.parentNode.removeChild(O3p); }}}else {var div=null; for (var i=0; i<l3p.length; i++){if (!i3p)div=null; var paragraph=l3p[i]; for (var Oh=0; Oh<paragraph.length; Oh++){var i1p=paragraph[Oh]; if (i1p.nodeType==1 && i1p.tagName && (i1p.tagName.toUpperCase()=="UL" || i1p.tagName.toUpperCase()=="OL" || i1p.tagName.toUpperCase()=="DL" || i1p.tagName.toUpperCase()=="DIV" || HTMLEditor.I3n(i1p) || i1p.tagName.toUpperCase()=="P" || i1p.tagName.toUpperCase()=="LI" || i1p.tagName.toUpperCase()=="TABLE")){l3q(div); div=null; if (textAlign!="remain")if (i1p.tagName.toUpperCase()!="TABLE" && !o3n)i1p.style.textAlign=textAlign; if (o3n)i1p.style.margin=(i1p.tagName.toUpperCase()=="P")?"0px": ""; if ((i1p.tagName.toUpperCase()=="UL" || i1p.tagName.toUpperCase()=="OL" || i1p.tagName.toUpperCase()=="DL")){for (var l2c=0; l2c<i1p.childNodes.length; l2c++){var li=i1p.childNodes.item(l2c); if (li.nodeType==1){li.style.textAlign=""; if (o3n)li.style.margin=(li.tagName.toUpperCase()=="P")?"0px": ""; for (var i3r=0; i3r<li.childNodes.length; i3r++){var o1v=li.childNodes.item(i3r); if (o1v.nodeType==1 && o3n)o1v.style.margin=(o1v.tagName.toUpperCase()=="P")?"0px": ""; if (o1v.nodeType==1 && o1v.tagName && (o1v.tagName.toUpperCase()=="DIV" || o1v.tagName.toUpperCase()=="P" || HTMLEditor.I3n(o1v))){if (X.I3m(o1v,l3m,o3n))o3q= true; }}}}if (textAlign=="left" && o3n)i1p.style.textAlign=""; continue; }else if (i1p.tagName.toUpperCase()=="LI"){if (textAlign!="remain"){if (!(textAlign=="left" && o3n) || i1p.parentNode.style.textAlign.length>0)i1p.style.textAlign=textAlign; else i1p.style.textAlign=""; }if (o3n)i1p.style.margin=(i1p.tagName.toUpperCase()=="P")?"0px": ""; var i2g=i1p.parentNode; var I3q=[]; for (var o3r=0; o3r<i2g.childNodes.length; o3r++)if (i2g.childNodes.item(o3r).nodeType==1)I3q.push(i2g.childNodes.item(o3r).style.textAlign); var O3r=1; for ( ; O3r<I3q.length; O3r++)if (I3q[O3r-1]!=I3q[O3r])break; if (O3r==I3q.length){var align=(I3q[0]=="left" && o3n)?"":I3q[0]; for (var Oh=0; Oh<i2g.childNodes.length; Oh++)if (i2g.childNodes.item(Oh).nodeType==1){i2g.childNodes.item(Oh).style.textAlign=""; if (o3n)i2g.childNodes.item(Oh).style.margin=(i2g.childNodes.item(Oh).tagName.toUpperCase()=="P")?"0px": ""; }i2g.style.textAlign=align; }continue; }else if (i1p.tagName.toUpperCase()=="TABLE"){if (textAlign!="remain"){if (!(textAlign=="left" && o3n))i1p.align=textAlign; else {i1p.align=""; i1p.removeAttribute("align"); }}}if ((i1p.tagName.toUpperCase()=="DIV" || i1p.tagName.toUpperCase()=="P" || HTMLEditor.I3n(i1p)) && textAlign=="left" && o3n){if (X.I3m(i1p,l3m,o3n))o3q= true; }if ((i1p.tagName.toUpperCase()=="DIV" || i1p.tagName.toUpperCase()=="P" || HTMLEditor.I3n(i1p)) && i3p && I3p.toUpperCase()!=i1p.tagName.toUpperCase()){var l3r=X.I1.createElement(I3p); var l2z=i1p.attributes; for (var I2c=0; I2c<l2z.length; ++I2c){var a=l2z.item(I2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; l3r.setAttribute(a.name,a.value); }l3r.style.cssText=i1p.style.cssText; while (i1p.firstChild)l3r.appendChild(i1p.firstChild); i1p.parentNode.insertBefore(l3r,i1p); i1p.parentNode.removeChild(i1p); }}else {if (!(textAlign=="left" && o3n) || i3p){if (div==null){div=X.I1.createElement(i3p?I3p:X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P" && !i3p)div.style.margin="0px"; if (!i3p)div.style.textAlign=textAlign; i1p.parentNode.insertBefore(div,i1p); if (X.I1.body.firstChild==div)O3q= true; }var I3r=(paragraph[paragraph.length-1]==l3m[1])?paragraph.length-1:paragraph.length; var o3s=(paragraph[0]==l3m[0])?1: 0; if (i1p.tagName && i1p.tagName.toUpperCase()=="BR" && Oh==I3r-1 && Oh==o3s){if (HTMLEditor.is_ie){div.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); i1p.parentNode.removeChild(i1p); }else div.appendChild(i1p); }else if (i1p.tagName && i1p.tagName.toUpperCase()=="BR" && Oh==I3r-1 && Oh>o3s && (!i3p || (i1p.nextSibling!=null && i1p.nextSibling==l3m[1])))i1p.parentNode.removeChild(i1p); else div.appendChild(i1p); if (i1p.tagName && i1p.tagName.toUpperCase()=="BR" && Oh==paragraph.length-1 && !i3p){l3q(div); div=null; }if (i1p==l3m[1] && Oh==paragraph.length-1){l3q(div); div=null; }}}}}}}for (var i=0; i<i3o.length; i++){var paragraph=i3o[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=O3p){if (l3p.length>0)i3q(); l3p=[]; O3p=paragraph[0].parentNode; }l3p.push(paragraph); }}if (l3p.length>0)i3q(); this.o1n(l3m,o3q); };HTMLEditor.prototype.I3o= function (){ this.o3l=null; var i3o=this.getPseudoP(); if (i3o.length==0){try {var Ih="<span id='"+HTMLEditor.Om+"_ll'></span><span id='"+HTMLEditor.Om+"_rr'></span><br>"; this.I11(Ih); var o1b=this.I1.getElementById(HTMLEditor.Om+"_ll"); var O1b=this.I1.getElementById(HTMLEditor.Om+"_rr"); var O19=this.o3l; this.o3l=null; this.o1n([o1b,O1b], false); this.o3l=O19; i3o=this.getPseudoP(); }catch (w){} ; }return i3o; };HTMLEditor.prototype.O3s= function (l3s){var i3o=this.I3o(); var l3m=this.o3p(i3o); var O3p=null; var l3p=[]; var X=this ; var i3s=null; var I3s=[]; var o3t=l3s.toUpperCase(); var o3q= false; function O3t(){if (i3s!=null){var l3t; l3t=i3s.cloneNode( false); i3s.parentNode.insertBefore(l3t,i3s); while (i3s.firstChild!=I3s[0])l3t.appendChild(i3s.firstChild); if (l3t.firstChild==null)l3t.parentNode.removeChild(l3t); if (i3s.tagName.toUpperCase()==o3t){for (var i=0; i<I3s.length; i++){var i1p=I3s[i]; if (i1p.nodeType==1 && i1p.tagName && i1p.tagName.toUpperCase()=="LI"){var O1o= false; i3s.parentNode.insertBefore(i1p,i3s); if (i1p.style.textAlign=="")i1p.style.textAlign=i3s.style.textAlign; if (i3s.childNodes.length==0 && i==I3s.length-1){i3s.parentNode.removeChild(i3s); i3s=null; }if (i1p.style.textAlign=="" || (i1p.style.textAlign.toLowerCase()=="left" && !X.rtlState()) || (i1p.style.textAlign.toLowerCase()=="right" && X.rtlState())){O1o=X.I3m(i1p,l3m); if (O1o)o3q= true; }if (!O1o){var i3t=X.I1.createElement(X.dfltBlockElement); var l2z=i1p.attributes; for (var I3t=0; I3t<l2z.length; ++I3t){var a=l2z.item(I3t); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; i3t.setAttribute(a.name,a.value); }i3t.style.cssText=i1p.style.cssText; if (i3t.tagName.toUpperCase()=="P")i3t.style.margin="0px"; while (i1p.firstChild)i3t.appendChild(i1p.firstChild); i1p.parentNode.insertBefore(i3t,i1p); i1p.parentNode.removeChild(i1p); }}else i3s.parentNode.insertBefore(i1p,i3s); }}else {var l3t=X.I1.createElement(o3t); var l2z=i3s.attributes; for (var I3t=0; I3t<l2z.length; ++I3t){var a=l2z.item(I3t); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; l3t.setAttribute(a.name,a.value); }l3t.style.cssText=i3s.style.cssText; i3s.parentNode.insertBefore(l3t,i3s); for (var i=0; i<I3s.length; i++){var i1p=I3s[i]; l3t.appendChild(i1p); }}if (i3s!=null){l3t=i3s.cloneNode( false); i3s.parentNode.insertBefore(l3t,i3s); while (i3s.firstChild)l3t.appendChild(i3s.firstChild); if (l3t.firstChild==null)l3t.parentNode.removeChild(l3t); i3s.parentNode.removeChild(i3s); }}i3s=null; I3s=[]; }function i3q(){var firstChild=O3p.firstChild; var lastChild=O3p.lastChild; if (O3p.tagName && !HTMLEditor.I3c(O3p) && l3p[0][0]==firstChild && l3p[l3p.length-1][l3p[l3p.length-1].length-1]==lastChild && (O3p.tagName.toUpperCase()=="OL" || O3p.tagName.toUpperCase()=="UL" || O3p.tagName.toUpperCase()=="DL" || O3p.tagName.toUpperCase()=="LI" || ((O3p.tagName.toUpperCase()=="P" || O3p.tagName.toUpperCase()=="DIV" || HTMLEditor.I3n(O3p)) && O3p.parentNode.tagName.toUpperCase()=="LI"))){O3t(); I3s=[]; if (O3p.tagName.toUpperCase()=="LI"){i3s=O3p.parentNode; I3s.push(O3p); }else if (O3p.tagName.toUpperCase()=="P" || O3p.tagName.toUpperCase()=="DIV" || HTMLEditor.I3n(O3p)){i3s=O3p.parentNode.parentNode; I3s.push(O3p.parentNode); }else {i3s=O3p; for (var i=0; i<l3p.length; i++){var paragraph=l3p[i]; for (var Oh=0; Oh<paragraph.length; Oh++){I3s.push(paragraph[Oh]); }}}O3t(); }else {var o3u=O3p.tagName.toUpperCase(); if (o3u=="LI" && (l3p.length<i3o.length)){if (i3s!=O3p.parentNode){O3t(); i3s=O3p.parentNode; I3s=[]; }I3s.push(O3p); }else if (o3u=="OL" || o3u=="UL" || o3u=="DL"){O3t(); i3s=O3p; I3s=[]; for (var i=0; i<l3p.length; i++){var paragraph=l3p[i]; for (var Oh=0; Oh<paragraph.length; Oh++){I3s.push(paragraph[Oh]); }}O3t(); }else {var li=null; var i2g=null; function O3u(){if (li!=null)if (li.childNodes==1 && (li.firstChild==l3m[0] || li.firstChild==l3m[1])){li.parentNode.insertBefore(li.firstChild,li); li.parentNode.removeChild(li); }li=null; }if (i3s!=null){O3t(); }if (l3p.length==1 && l3p[0].length==1 && l3p[0][0].nodeType==1 && l3p[0][0].tagName && (l3p[0][0].tagName.toUpperCase()=="OL" || l3p[0][0].tagName.toUpperCase()=="UL" || l3p[0][0].tagName.toUpperCase()=="DL")){var i1p=l3p[0][0]; i3s=i1p; I3s=[]; for (var i=0; i<i1p.childNodes.length; i++){var il=i1p.childNodes.item(i); I3s.push(il); }O3t(); }else for (var i=0; i<l3p.length; i++){var paragraph=l3p[i]; for (var Oh=0; Oh<paragraph.length; Oh++){var i1p=paragraph[Oh]; if (i2g==null){i2g=X.I1.createElement(o3t); i1p.parentNode.insertBefore(i2g,i1p); }if (!HTMLEditor.I3c(i1p) && !(i1p.tagName && i1p.tagName.toUpperCase()=="BR")){if (li && li.firstChild)O3u(); if (li==null){li=X.I1.createElement("LI"); i2g.appendChild(li); }li.appendChild(i1p); O3u(); }else {if (li==null){li=X.I1.createElement("LI"); i2g.appendChild(li); }var I3r=(paragraph[paragraph.length-1]==l3m[1])?paragraph.length-1:paragraph.length; var o3s=(paragraph[0]==l3m[0])?1: 0; if (i1p.tagName && i1p.tagName.toUpperCase()=="BR" && Oh==I3r-1 && Oh==o3s){if (HTMLEditor.is_ie){li.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); i1p.parentNode.removeChild(i1p); }else li.appendChild(i1p); }else if (i1p.tagName && i1p.tagName.toUpperCase()=="BR" && Oh==I3r-1 && Oh>o3s)i1p.parentNode.removeChild(i1p); else li.appendChild(i1p); if (i1p.tagName && i1p.tagName.toUpperCase()=="BR" && Oh==paragraph.length-1){O3u(); li=null; }if (i1p==l3m[1] && Oh==paragraph.length-1){O3u(); li=null; }}}if (li && li.firstChild)O3u(); }if (i2g!=null){var I3q=[]; for (var Oh=0; Oh<i2g.childNodes.length; Oh++)I3q.push(i2g.childNodes.item(Oh).style.textAlign); var O3r=1; for ( ; O3r<I3q.length; O3r++)if (I3q[O3r-1]!=I3q[O3r])break; if (O3r==I3q.length){var align=((I3q[0]=="left" && !X.rtlState()) || (I3q[0]=="right" && X.rtlState()))?"":I3q[0]; for (var Oh=0; Oh<i2g.childNodes.length; Oh++)i2g.childNodes.item(Oh).style.textAlign=""; i2g.style.textAlign=align; }}if (i2g!=null)if (i2g.parentNode.tagName.toUpperCase()=="P" && i2g.parentNode.childNodes.length==1){var l3u=i2g.parentNode; var i3u=l3u.cloneNode( false); l3u.parentNode.insertBefore(i2g,l3u); l3u.parentNode.removeChild(l3u); if (i2g.childNodes.length==1){var item=i2g.firstChild; while (item.firstChild)i3u.appendChild(item.firstChild); item.appendChild(i3u); }else delete i3u; }}}}for (var i=0; i<i3o.length; i++){var paragraph=i3o[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=O3p){if (l3p.length>0)i3q(); l3p=[]; O3p=paragraph[0].parentNode; }l3p.push(paragraph); }}if (l3p.length>0)i3q(); if (i3s!=null){O3t(); } this.o1n(l3m,o3q); };HTMLEditor.prototype.I3u= function (o3v){var i3o=this.I3o(); var l3m=this.o3p(i3o); var O3p=null; var l3p=[]; var X=this ; var o3q= false; function O3v(il){if (il.nodeType==1){var l3v=(!X.rtlState())?il.style.marginLeft:il.style.marginRight; if (l3v.length>0)return parseInt(l3v); }return 0; }function i3v(il,value){if (il.nodeType==1){if (il.tagName.toUpperCase()=="P" && value=="")value="0px"; if (!X.rtlState())il.style.marginLeft=value; else il.style.marginRight=value; }}function I3v(il){if (o3v)i3v(il,(O3v(il)+050)+"px"); else {if (il.tagName.toUpperCase()=="P"){if (O3v(il)>=050)i3v(il,(O3v(il)-050)+"px"); else i3v(il,"0px"); }else {if (O3v(il)>050)i3v(il,(O3v(il)-050)+"px"); else i3v(il,""); }}}function l3q(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==l3m[0] || div.firstChild==l3m[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function i3q(){var firstChild=O3p.firstChild; var lastChild=O3p.lastChild; if (O3p.tagName && !HTMLEditor.I3c(O3p) && l3p[0][0]==firstChild && l3p[l3p.length-1][l3p[l3p.length-1].length-1]==lastChild){var textAlign=""; if (O3p.getAttribute("align") && O3p.getAttribute("align").length>0)textAlign=O3p.getAttribute("align"); if (O3p.align && O3p.align.length>0)textAlign=O3p.align; if (O3p.style.textAlign && O3p.style.textAlign.length>0)textAlign=O3p.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; O3p.align=""; O3p.setAttribute("align",""); O3p.removeAttribute("align"); I3v(O3p); if ((O3p.tagName.toUpperCase()=="DIV" || O3p.tagName.toUpperCase()=="P" || HTMLEditor.I3n(O3p)) && textAlign==""){if (X.I3m(O3p,l3m))o3q= true; }else {if (textAlign!="" || (O3p.tagName.toUpperCase()=="LI" && O3p.parentNode.style.textAlign.length>0))O3p.style.textAlign=textAlign; else O3p.style.textAlign=""; if (O3p.tagName.toUpperCase()=="LI"){var i2g=O3p.parentNode; var margins=[]; for (var o3r=0; o3r<i2g.childNodes.length; o3r++)margins.push(O3v(i2g.childNodes.item(o3r))); var O3r=1; for ( ; O3r<margins.length; O3r++)if (margins[O3r-1]!=margins[O3r])break; if (O3r==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var Oh=0; Oh<i2g.childNodes.length; Oh++)i3v(i2g.childNodes.item(Oh),""); i3v(i2g,margin); }}}}else {for (var i=0; i<l3p.length; i++){var div=null; var paragraph=l3p[i]; for (var Oh=0; Oh<paragraph.length; Oh++){var i1p=paragraph[Oh]; if (i1p.nodeType==1 && i1p.tagName && (i1p.tagName.toUpperCase()=="UL" || i1p.tagName.toUpperCase()=="OL" || i1p.tagName.toUpperCase()=="DL" || i1p.tagName.toUpperCase()=="DIV" || HTMLEditor.I3n(i1p) || i1p.tagName.toUpperCase()=="P" || i1p.tagName.toUpperCase()=="LI")){l3q(div); div=null; I3v(i1p);if ((i1p.tagName.toUpperCase()=="UL" || i1p.tagName.toUpperCase()=="OL" || i1p.tagName.toUpperCase()=="DL")){for (var l2c=0; l2c<i1p.childNodes.length; l2c++){var li=i1p.childNodes.item(l2c); if (li.nodeType==1){i3v(li,""); for (var i3r=0; i3r<li.childNodes.length; i3r++){var o1v=li.childNodes.item(i3r); var textAlign=(o1v.nodeType==1)?i1p.style.textAlign: ""; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if (o1v.nodeType==1){i3v(o1v,""); if (textAlign=="" && o1v.tagName && (o1v.tagName.toUpperCase()=="DIV" || o1v.tagName.toUpperCase()=="P")){if (X.I3m(o1v,l3m))o3q= true; }}}}}continue; }else if (i1p.tagName.toUpperCase()=="LI"){var i2g=i1p.parentNode; var margins=[]; for (var o3r=0; o3r<i2g.childNodes.length; o3r++)margins.push(O3v(i2g.childNodes.item(o3r))); var O3r=1; for ( ; O3r<margins.length; O3r++)if (margins[O3r-1]!=margins[O3r])break; if (O3r==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var Oh=0; Oh<i2g.childNodes.length; Oh++)i3v(i2g.childNodes.item(Oh),""); i3v(i2g,margin); }continue; }var textAlign=i1p.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if ((i1p.tagName.toUpperCase()=="DIV" || i1p.tagName.toUpperCase()=="P" || HTMLEditor.I3n(i1p)) && textAlign==""){if (X.I3m(i1p,l3m))o3q= true; }}else {if (o3v){if (div==null){div=X.I1.createElement(X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P")div.style.margin="0px"; I3v(div); i1p.parentNode.insertBefore(div,i1p); }var I3r=(paragraph[paragraph.length-1]==l3m[1])?paragraph.length-1:paragraph.length; var o3s=(paragraph[0]==l3m[0])?1: 0; if (i1p.tagName && i1p.tagName.toUpperCase()=="BR" && Oh==I3r-1 && Oh==o3s){if (HTMLEditor.is_ie){div.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); i1p.parentNode.removeChild(i1p); }else div.appendChild(i1p); }else if (i1p.tagName && i1p.tagName.toUpperCase()=="BR" && Oh==I3r-1 && Oh>o3s)i1p.parentNode.removeChild(i1p); else div.appendChild(i1p); if (i1p.tagName && i1p.tagName.toUpperCase()=="BR" && Oh==paragraph.length-1){l3q(div); div=null; }if (i1p==l3m[1] && Oh==paragraph.length-1){l3q(div); div=null; }}}}}}}for (var i=0; i<i3o.length; i++){var paragraph=i3o[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=O3p){if (l3p.length>0)i3q(); l3p=[]; O3p=paragraph[0].parentNode; }l3p.push(paragraph); }}if (l3p.length>0)i3q(); this.o1n(l3m,o3q); };HTMLEditor.prototype.o3w= function (I22,par){var l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(this.i1b()): ""; if (this.lr())return; var lq=this.iq(); var Iq=this.or(lq); var O3w=HTMLEditor.is_ie?[Iq.boundingLeft,Iq.boundingTop]: [Iq.startContainer,Iq.startOffset]; var I1b=(HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0); var l3w= {name: "none",value: "none" } ; switch (I22.toLowerCase()){case "bold":l3w= {name: "font-weight",value: "bold",i3w: false } ; break; case "italic":l3w= {name: "font-style",value: "italic",i3w: false } ; break; case "underline":l3w= {name: "text-decoration",value: "underline",i3w: false } ; break; case "strikethrough":l3w= {name: "text-decoration",value: "line-through",i3w: false } ; break; case "superscript":l3w= {name: "vertical-align",value: "super",i3w: false } ; break; case "subscript":l3w= {name: "vertical-align",value: "sub",i3w: false } ; break; case "forecolor":l3w= {name: "color",value:par,i3w: false } ; break; case "backcolor":l3w= {name: "background-color",value:par,i3w: false } ; break; case "fontname":l3w= {name: "font-family",value:par,i3w: false } ; break; case "fontsize":l3w= {name: "font-size",value:par,i3w: false } ; break; }if (I1b){var o1c=this.O1c(); this.I3w(l3w,o1c, true); }else if (!HTMLEditor.is_Safari){if (this.lr())return; var o1c=this.o3x(); if (o1c.length>0){ this.I3w(l3w,o1c, false); if (HTMLEditor.is_ie && this.O3x!=null){lq=this.iq(); Iq=this.or(lq); Iq.moveToBookmark(this.O3x); Iq.select(); this.O3x=null; }else if (this.O3x!=null){if (this.O3x[0].nodeType==3){lq=this.iq(); Iq=this.I1.createRange(); Iq.setStart(this.O3x[0],this.O3x[1]); Iq.setEnd(this.O3x[0],this.O3x[1]); this.o18(lq); this.O18(lq,Iq); }else { this.l3x(this.O3x[0],this.O3x[0]); this.O3x[0].parentNode.removeChild(this.O3x[0]); } this.O3x=null; }}else { this.i3x(l3w); }}};HTMLEditor.prototype.o3x= function (on){var O1w=[]; var l1b; var I1b; var lq=this.iq(); var Iq=this.or(lq); var I3x; var i3l; var i23=HTMLEditor.Om+"_right_add"; var I23=HTMLEditor.Om+"_left_add"; var o3y=HTMLEditor.Om+"_middle_add"; if (HTMLEditor.is_ie && typeof on=="undefined"){Iq.execCommand("bold"); this.O3x=Iq.getBookmark(); Iq.execCommand("bold"); }if (HTMLEditor.is_ie){var O3y=null; var l3y="<span id="+o3y+"></span>"; var i3y=Iq.duplicate(); try {Iq.pasteHTML(l3y); }catch (w){}O3y=this.I1.getElementById(o3y); if (O3y==null)return []; if (typeof on!="undefined")this.O3x=O3y; if (O3y.nextSibling!=null && !HTMLEditor.I3c(O3y.nextSibling)){O3y.parentNode.removeChild(O3y); return []; }Iq.expand("word"); Iq.select(); if (Iq.text.length==0){O3y.parentNode.removeChild(O3y); i3y.select(); return []; }var I2j=new RegExp(l3y,"ig"); if (!I2j.test(Iq.htmlText.replace(/[\n\r]/g,""))){O3y.parentNode.removeChild(O3y); i3y.select(); return []; }I2j=new RegExp(l3y+"(\x3c/span>|&nbsp;|[\\s])*$","ig"); if (I2j.test(Iq.htmlText.replace(/[\n\r]/g,""))){O3y.parentNode.removeChild(O3y); i3y.select(); return []; }while (Iq.text.length>0 && Iq.text.substr(Iq.text.length-1,1)==" "){Iq.moveEnd("character",-1); Iq.select(); if (Iq.text.length==0){O3y.parentNode.removeChild(O3y); i3y.select(); return []; }}if (typeof on=="undefined")O3y.parentNode.removeChild(O3y); return this.O1c(); }function O3d(I3y){var I2j=/[\d\w]/; if (I2j.test(I3y))return false; I2j=/[\x80-\u024f]/; if (I2j.test(I3y))return false; I2j=/[\u0370-\u2000]/; if (I2j.test(I3y))return false; return true; }if (!this.I11("<span id='"+I23+"'></span><span id='"+o3y+"'></span><span id='"+i23+"'></span>"))return []; var o1b=this.I1.getElementById(I23); var O1b=this.I1.getElementById(i23); var o3z=this.I1.getElementById(o3y); HTMLEditor.i3d(o1b,o1b.previousSibling, true ,o1b.parentNode,O3d); try { this.l3x(o1b,O1b); }catch (w){}I3x=this.iq(); i3l=this.or(I3x); l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(this.i1b()): ""; I1b=(HTMLEditor.is_ie && i3l.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0); if (!I1b || this.O1c().length==0){var O3z=this.I1.createTextNode(""); o1b.parentNode.insertBefore(O3z,o1b); o1b.parentNode.removeChild(o1b); O1b.parentNode.removeChild(O1b); o3z.parentNode.removeChild(o3z); var Iq=this.I1.createRange(); Iq.setStart(O3z,0); Iq.setEnd(O3z,0); Iq.setStart(O3z,0); Iq.setEnd(O3z,0); this.o18(lq); this.O18(lq,Iq); return []; }O1b.parentNode.insertBefore(o1b,o3z); HTMLEditor.i3d(O1b,O1b.nextSibling, false ,O1b.parentNode,O3d); this.l3x(o1b,O1b); I3x=this.iq(); i3l=this.or(I3x); l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(this.i1b()): ""; I1b=(HTMLEditor.is_ie && i3l.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0); if (!I1b || this.O1c().length==0){var O3z=this.I1.createTextNode(""); o1b.parentNode.insertBefore(O3z,o1b); o1b.parentNode.removeChild(o1b); O1b.parentNode.removeChild(O1b); o3z.parentNode.removeChild(o3z); var Iq=this.I1.createRange(); Iq.setStart(O3z,0); Iq.setEnd(O3z,0); Iq.setStart(O3z,0); Iq.setEnd(O3z,0); this.o18(lq); this.O18(lq,Iq); return []; }HTMLEditor.i3d(o1b,o1b.previousSibling, true ,o1b.parentNode,O3d); this.l3x(o1b,O1b); I3x=this.iq(); i3l=this.or(I3x); l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(this.i1b()): ""; I1b=(HTMLEditor.is_ie && i3l.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0); if (HTMLEditor.is_ie){if (typeof on!="undefined")this.O3x=o3z; else o3z.parentNode.removeChild(o3z); }else this.O3x=[o3z,0]; if (I1b){O1w=this.O1c(); }o1b.parentNode.removeChild(o1b); O1b.parentNode.removeChild(O1b); return O1w; };HTMLEditor.prototype.i3x= function (l3w){var name=l3w.name.replace(/-(\w)/g, function (l3z,l22){return l22.toUpperCase(); } ); var value=l3w.value; var i3w=l3w.i3w; if (this.M==null)this.M=[]; var i3z=[];var I3z= true; for (var i=0; i<this.M.length; i++){var o40=this.M[i].name.replace(/-(\w)/g, function (l3z,l22){return l22.toUpperCase(); } ); var O40=this.M[i].value; if (!(o40==name && (O40==value || i3w)))i3z.push(this.M[i]); else I3z= false; } this.M=i3z; if (I3z)this.M.push(l3w); };HTMLEditor.prototype.l3x= function (o1b,O1b){var lq=this.iq(); var O3z=null; var l40=null; if (HTMLEditor.is_ie){lq.empty(); lq=this.iq(); var i3l=this.or(lq); var I3l=this.or(lq); try {if (o1b!=null)i3l.moveToElementText(o1b); if (O1b!=null)I3l.moveToElementText(O1b); if (o1b!=null && O1b!=null){i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }else if (o1b!=null)i3l.select(); else if (O1b!=null)I3l.select(); }catch (t){}}else {try {O3z=this.I1.createTextNode(""); l40=this.I1.createTextNode(""); o1b.parentNode.insertBefore(O3z,o1b); O1b.parentNode.insertBefore(l40,O1b); var Iq=this.I1.createRange(); Iq.setStart(O3z,0); Iq.setEnd(l40,0); this.o18(lq); this.O18(lq,Iq); }catch (t){}}};HTMLEditor.prototype.I3w= function (l3w,o1c,i40){var name=l3w.name.replace(/-(\w)/g, function (l3z,l22){return l22.toUpperCase(); } ); var value=l3w.value; var i3w=l3w.i3w; var I40= false; var o41= false; this.o11(); var i23=HTMLEditor.Om+"_right"; var I23=HTMLEditor.Om+"_left"; var o1b=this.I1.createElement("SPAN"); o1b.id=I23; var O1b=this.I1.createElement("SPAN"); O1b.id=i23; o1c[0].parentNode.insertBefore(o1b,o1c[0]); if (o1c[o1c.length-1].nextSibling!=null)o1c[o1c.length-1].parentNode.insertBefore(O1b,o1c[o1c.length-1].nextSibling); else o1c[o1c.length-1].parentNode.appendChild(O1b); HTMLEditor.i24(o1b); HTMLEditor.i24(O1b); var O41=[]; for (var i=0; i<o1c.length; i++){var l41=o1c[i]; var par=l41.parentNode; var Oh; for (Oh=0; Oh<O41.length; Oh++){var parent=O41[Oh]; if (parent.parent==par){parent.i41.push(l41); break; }}if (Oh==O41.length){O41.push( {parent:par,i41: [l41] } ); }}for (var i=0; i<O41.length; i++){var parent=O41[i]; if (parent.i41.length>1){var i41=parent.i41; var I41=this.I1.createElement("SPAN"); var o42=this.I1.createElement("SPAN"); i41[0].parentNode.insertBefore(I41,i41[0]); if (i41[i41.length-1].nextSibling!=null)i41[i41.length-1].parentNode.insertBefore(o42,i41[i41.length-1].nextSibling); else i41[i41.length-1].parentNode.appendChild(o42); HTMLEditor.O3e(I41,o42); I41.parentNode.removeChild(I41); o42.parentNode.removeChild(o42); }}for (var i=0; i<o1c.length; i++){var l41=o1c[i]; var par=l41.parentNode; var O42= false; while (par && par.tagName && par.childNodes.length==1 && HTMLEditor.i1j(par.tagName)){var l42=par.tagName.toUpperCase(); if (((l42=="I" || l42=="EM") && l3w.name=="font-style") || ((l42=="B" || l42=="STRONG") && l3w.name=="font-weight") || ((l42=="S" || l42=="STRIKE") && l3w.name=="text-decoration") || ((l42=="U") && l3w.name=="text-decoration") || ((l42=="SUB" || l42=="SUP") && l3w.name=="vertical-align")){var i42=par; par=par.parentNode; while (i42.firstChild)par.insertBefore(i42.firstChild,i42); par.removeChild(i42); O42= true; continue; }else if (par.style && par.style[name] && par.style[name].length>0){var I42=par.style[name]; if (name.toLowerCase().indexOf("color")>=0 || name=="fontFamily" || name=="fontSize"){par.style[name]=value; }else {if (i3w){try {par.style[name]=par.style[name]+" "+value; if (I42==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {if (!I40){var O19=I42.replace(value,""); if (name=="fontWeight" && I42.toString()=="700")O19=""; if (O19==I42){try {par.style[name]=par.style[name]+" "+value; if (I42==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {par.style[name]=O19; o41= true; }I40= true; }else {if (o41){par.style[name]=I42.replace(value,""); }else {try {par.style[name]=par.style[name]+" "+value; if (I42==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}}}}O42= true; }par=par.parentNode; }if (!O42 && !o41){var span; span=this.I1.createElement("SPAN"); span.style[name]=value; var o43=l41.parentNode; o43.insertBefore(span,l41); span.appendChild(l41); I40= true; }}var O43=HTMLEditor.o25(o1b,O1b); var l43=O43.parent.childNodes.item(O43.I25).previousSibling; var i43=O43.parent.childNodes.item(O43.O26).nextSibling; o1b.parentNode.removeChild(o1b); O1b.parentNode.removeChild(O1b); var I25=0; var O26=O43.parent.childNodes.length; if (l43!=null){I25=HTMLEditor.i17(l43); }if (i43!=null){O26=HTMLEditor.i17(i43)+1; if (O26<O43.parent.childNodes.length){if (i43.nodeType==3)O26++; else if (i43.nodeType==1){var Il=i43.tagName.toUpperCase(); if (Il!="TR" && Il!="TD" && Il!="LI")O26++; }}}HTMLEditor.I26(O43.parent,this.I1,I25,O26); var X=this ; if (i40)X.I1j(o1c); this.O1.setTimeout( function (){if (!HTMLEditor.is_ie)X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.o3p= function (i3o){if (i3o.length==0)return []; var o1b=this.I1.createElement("SPAN"); var O1b=this.I1.createElement("SPAN"); var I43=i3o[0][0]; var o44=i3o[i3o.length-1][i3o[i3o.length-1].length-1]; if (I43==o44 && o44.nodeType==1 && o44.childNodes.length==0 && HTMLEditor.canHaveChildren(o44)){o44.appendChild(o1b); o44.appendChild(O1b); }else {var O44=HTMLEditor.l44(I43); O44.parentNode.insertBefore(o1b,O44); if (O44==I43){var O19=[]; O19.push(o1b); for (var i=0; i<i3o[0].length; i++)O19.push(i3o[0][i]); i3o[0]=O19; }var i44=HTMLEditor.I3k(o44); if (i44.nextSibling)i44.parentNode.insertBefore(O1b,i44.nextSibling); else i44.parentNode.appendChild(O1b); if (i44==o44){i3o[i3o.length-1].push(O1b);}}return [o1b,O1b]; };HTMLEditor.prototype.o1n= function (l3m,o3q){if (l3m.length==0)return; var o1b=l3m[0]; var O1b=l3m[1]; var lq=this.iq(); var O3z=null; var l40=null; if (HTMLEditor.is_ie){lq.empty(); lq=this.iq(); var i3l=this.or(lq); var I3l=this.or(lq); try {if (o1b!=null && O1b!=null && o1b.nextSibling==O1b){O3z=this.I1.createTextNode(" "); O1b.parentNode.insertBefore(O3z,O1b); } this.o3l=null; if (o1b!=null){i3l.moveToElementText(o1b); }if (O1b!=null){I3l.moveToElementText(O1b); }if (o1b!=null && O1b!=null){i3l.setEndPoint("EndToStart",I3l); i3l.select(); if (O3z!=null){i3l.collapse( false); i3l.select(); O3z.parentNode.removeChild(O3z); }}else if (o1b!=null)i3l.select(); else if (O1b!=null)I3l.select(); }catch (w){}}else {try {var Iq; var O1v=o1b.nextSibling; var O33=O1b.previousSibling;this.o3l=null; if (O1v==O33 && O1v.nodeType==1 && O1v.tagName.toUpperCase()=="BR"){var l1d=HTMLEditor.i17(O1v); Iq=this.I1.createRange(); Iq.setStart(O1v.parentNode,l1d); Iq.setEnd(O1v.parentNode,l1d); }else {O3z=this.I1.createTextNode(""); l40=this.I1.createTextNode(""); o1b.parentNode.insertBefore(O3z,o1b); O1b.parentNode.insertBefore(l40,O1b); Iq=this.I1.createRange(); Iq.setStart(O3z,0); Iq.setEnd(l40,0); } this.o18(lq); this.O18(lq,Iq); }catch (w){}}var I24=HTMLEditor.o25((o1b==null)?O1b:o1b,(O1b==null)?o1b:O1b); var parent=null; if (I24!=null){parent=I24.parent; }if (o1b!=null)o1b.parentNode.removeChild(o1b); if (O1b!=null)O1b.parentNode.removeChild(O1b); if (o3q && parent!=null){HTMLEditor.I26(parent,this.I1); if (!HTMLEditor.is_ie && O3z!=null && l40!=null){var Iq=this.I1.createRange(); Iq.setStart(O3z,0); Iq.setEnd(l40,0); this.o18(lq); this.O18(lq,Iq); }}};HTMLEditor.o3e= function (O32,Ie){for (var i=0; i<O32.childNodes.length; i++){var o1v=O32.childNodes.item(i); if (o1v==Ie)return i; if (o1v.nodeType==1){if (HTMLEditor.o3e(o1v,Ie)>=0)return i; }}return -1; };HTMLEditor.l44= function (O32){if (typeof O32.firstChild!="undefined" && O32.firstChild!=null){if (typeof O32.firstChild.childNodes!="undefined" && O32.firstChild.childNodes!=null){return HTMLEditor.l44(O32.firstChild);}}return O32; };HTMLEditor.I3k= function (O32){if (typeof O32.lastChild!="undefined" && O32.lastChild!=null){if (typeof O32.lastChild.childNodes!="undefined" && O32.lastChild.childNodes!=null){return HTMLEditor.I3k(O32.lastChild);}}return O32; };HTMLEditor.l3h= function (O32,Ie){if (O32.firstChild){if (O32.firstChild==Ie)return true; if (O32.firstChild.childNodes)if (HTMLEditor.o3e(O32.firstChild,Ie)==0){return HTMLEditor.l3h(O32.firstChild,Ie);}}return false; };HTMLEditor.i3h= function (O32,Ie){if (O32.lastChild){if (O32.lastChild==Ie)return true; if (O32.lastChild.childNodes)if (HTMLEditor.o3e(O32.lastChild,Ie)==O32.lastChild.childNodes.length-1){return HTMLEditor.i3h(O32.lastChild,Ie);}}return false; };HTMLEditor.o25= function (i25,o26){var ie=null; var par=i25.parentNode; var I44=i25; while (par){if (par.tagName && !HTMLEditor.i1j(par.tagName)){var O26=HTMLEditor.o3e(par,o26); if (O26>=0){var I25=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==I44){I25=i; break; }}return {parent:par,I25:I25,O26:O26 } ; }}I44=par; par=par.parentNode; }return ie; };HTMLEditor.prototype.removeAlignment= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o11(); this.o3o("left", true); this.I14(); var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); } ; HTMLEditor.o45= function (i25,o26){var ie=null; var par=i25.parentNode; var I44=i25; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.i1j(par.tagName)){var O26=HTMLEditor.o3e(par,o26); if (O26>=0){var I25=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==I44){I25=i; break; }}return {parent:par,I25:I25,O26:O26 } ; }I44=par; par=par.parentNode; }return ie; };HTMLEditor.prototype.I1f= function (O45,on){var X=this ; if (HTMLEditor.is_ie){var lq=this.iq(); var Iq=this.or(lq); var l2e= false; var html=""; if (O45=="x")this.o11(); if (lq.type.toLowerCase()=="control"){l2e= true; html=HTMLEditor.getHTML(Iq.item(0), true);}else {if (Iq.text!=""){l2e= true; html=Iq.htmlText; var l45=Iq.duplicate(); var o1c=this.O1c(); if (o1c.length<1)return; var I24=HTMLEditor.o45(o1c[0],o1c[o1c.length-1]); if (I24!=null && o1c[0].previousSibling && o1c[0].previousSibling.nodeType==3){var par=I24.parent; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.i1j(par.tagName)){var lz=par.cloneNode( false); lz.innerHTML=html; html=lz.outerHTML; par=par.parentNode; }}lq=this.iq(); lq.empty(); Iq=this.or(lq); Iq.setEndPoint("EndToEnd",l45); Iq.setEndPoint("StartToStart",l45); Iq.select(); }else if (Iq.htmlText!=""){l2e= true; html=Iq.htmlText; }}if (l2e){var src=this.I1.createElement("DIV"); src.innerHTML="!!!<span></span>"+html; src.removeChild(src.firstChild); src.removeChild(src.firstChild); var ik=HTMLEditor.getHTML(src, false , true); var i2y=new RegExp("(<[/]?)(teo"+HTMLEditor.Om+":)","ig"); ik=ik.replace(i2y,"$1"); delete src; this.O36(ik, true); Iq.select(); if (O45=="x"){lq.clear(); this.O11(); }}else {if (O45=="x"){lq.clear(); this.O11(); }}if (on)setTimeout( function (){X.updateToolbar(); } ,0144); }else {if (O45=="x"){ this.o11(); var lq=this.iq(); var Iq=this.or(lq); this.o18(lq); Iq.deleteContents(); if (this.I1.body.innerHTML==""){ this.I1.body.innerHTML="<br/>"; Iq.setStart(this.I1.body,0); Iq.setEnd(this.I1.body,0); }if (HTMLEditor.l11)this.f= true; X.I14(); this.O18(lq,Iq); }else {var lq=this.iq(); var Iq=this.or(lq); this.o18(lq); if (HTMLEditor.is_Safari)alert(this.If("safari-c","Use Apple-C")); else alert(this.If("moz-c","Use Ctrl-C")); if (HTMLEditor.l11)this.f= true; this.O18(lq,Iq); }}};HTMLEditor.i17= function (il){var l1d=0; if (il.parentNode){for ( ; l1d<il.parentNode.childNodes.length; l1d++)if (il.parentNode.childNodes.item(l1d)==il)break; }return l1d; };HTMLEditor.prototype.i45= function (Ij){var X=this ; this.o11(); if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X._paste(!X._NoPaste); X.On(); } ,0);HTMLEditor._stopEvent(Ij); }else {if (!this.isWord && !this._NoPaste)setTimeout( function (){HTMLEditor.Iy(X,X.I1,!X.showAnchors); HTMLEditor.oz(X,X.I1,!X.showPlaceHolders); HTMLEditor.i13(X.I1.body); X.I45(X.I1.body); X.I14(); } ,012); else {var l1y=X.i1y(); if (l1y!=null){var div=X.I1.createElement("div"); div.style.display="inline"; div.style.borderStyle="none"; l1y.parentNode.insertBefore(div,l1y); div.appendChild(l1y); div.removeChild(l1y); div.innerHTML="xx"; var lq=X.iq(); var o1c=X.or(); X.o18(lq); o1c.setStart(div.firstChild,0); o1c.setEnd(div.firstChild,1); X.O18(lq,o1c); X.openWait(); setTimeout( function (){var parent=div.parentNode; div.lastChild.deleteData(div.lastChild.length-1,1); if (X.isWord){div.innerHTML=HTMLEditor.l2q(div.innerHTML); HTMLEditor.o31(div,X, true); HTMLEditor.I26(div,X.I1); }else {var o46=document.createElement("div"); o46.innerHTML=HTMLEditor.l2q(div.innerHTML); div.innerHTML=o46.innerText.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>").replace(/\cI/g,"&nbsp;"); delete o46; }while (div.firstChild)parent.insertBefore(div.firstChild,div); var O46=null; var l46=null; if (div.nextSibling && div.nextSibling.nodeType==3 && div.previousSibling && div.previousSibling.nodeType==3){O46=div.nextSibling; l46=div.previousSibling; }parent.removeChild(div); var i46=null; if (O46!=null && l46!=null){i46=l46.data.length; l46.data=""+l46.data+""+O46.data+""; O46.parentNode.removeChild(O46); }X.isWord= false; X.On(); if (i46!=null){var lq=X.iq(); var o1c=X.or(); X.o18(lq); o1c.setStart(l46,i46); o1c.setEnd(l46,i46); X.O18(lq,o1c); }X.I14(); } ,0); }else HTMLEditor._stopEvent(Ij); }}};HTMLEditor.prototype.I46= false; HTMLEditor.prototype.o2d= function (Ij){try {var X=this ; if (HTMLEditor.is_ie){try {var o10=this.I1.selection; var O10=this.or(o10); }catch (t){HTMLEditor._stopEvent(Ij); return false; }}if (!this._wasFocused)this.focusEditor(); if (this.isPopup()){HTMLEditor._stopEvent(Ij); return false; }var o47= false; if (X.oe && X.oe!=null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; if (X.i10){X.i10.select(); X.i10=null; }if (Ij.type=="keydown" || Ij.type=="keypress"){HTMLEditor._stopEvent(Ij); return; }o47= true; }if (typeof X.captureInDesign=="function"){if (X.captureInDesign(Ij) === false){HTMLEditor._stopEvent(Ij); return; }}if (HTMLEditor.is_ie && Ij.type=="mousedown" && Ij.ctrlKey){var lq=X.iq(); var O47=Ij.clientX; var l47=Ij.clientY; setTimeout( function (){var lq=X.iq(); if (lq.type.toLowerCase()!="control"){var Iq=X.I1.body.createTextRange(); Iq.moveToPoint(O47,l47); Iq.select(); }lq=X.iq(); var Iq=X.or(lq); var parent=HTMLEditor.getSelParent(X); while (parent!=null && parent.tagName.toUpperCase()!="BODY"){if (parent.tagName.toUpperCase()=="A" && parent.href!=null && typeof parent.href!="undefined" && parent.href.length>0){window.open(parent.href,"LinkViewWindow"); break; }parent=parent.parentNode; }} ,(lq.type.toLowerCase()!="control")?0: 012); HTMLEditor._stopEvent(Ij); return false; }{var il=(!HTMLEditor.is_ie)?Ij.target:Ij.srcElement; if (il.tagName!=null && typeof il.tagName!="undefined" && (il.tagName.toUpperCase()=="HTML" || il.tagName.toUpperCase()=="BODY")){if (X.i47!= true){X.i47= true; setTimeout( function (){if (!X.I47()){try {X.focusEditor(); }catch (w){}}X.i47= false; } ,0); }}else if (HTMLEditor.contentEditable(il)!=null){setTimeout( function (){X.I47(); } ,(!HTMLEditor.is_ie && Ij.button && Ij.button==2)?0310: 0); }}if (o47 && HTMLEditor.is_ie){var o48=this.iq(); var O10; try {O10=this.or(o48); if (o48.type.toLowerCase()=="control"){HTMLEditor._stopEvent(Ij); return false; }}catch (w){HTMLEditor._stopEvent(Ij); return false; }}var O48=(HTMLEditor.is_ie && Ij.type=="keydown") || (Ij.type=="keypress"); if (Ij.type=="keydown" && !HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (this.l48!=null){ this.l48.select(); this.l48=null; }if (O48 && !this.keyboardEnabled){HTMLEditor._stopEvent(Ij); return false; }var O45=String.fromCharCode(HTMLEditor.is_ie?Ij.keyCode:Ij.charCode).toLowerCase(); if (O48 && X._hotkeys!=null){if (X._hotkeys.length>0){var i48=X._hotkeys.length; var I48=O45; if (Ij.keyCode==022 || Ij.keyCode==021 || Ij.keyCode==020)I48=null; for (var i=0; i<i48; i++){var item=X._hotkeys[i]; if (item[1]==I48 && item[2]==Ij.altKey && item[3]==Ij.shiftKey && item[4]==Ij.ctrlKey){if (typeof item[0]=="function")setTimeout( function (){ (item[0])(X); X.I14(); X.focusEditor(); } ,0); HTMLEditor._stopEvent(Ij); return false; }}}}if (O48 && Ij.shiftKey && Ij.keyCode==055){ this.i45(Ij); }else if (O48 && Ij.ctrlKey && Ij.altKey && Ij.keyCode==044){var o49=null; var il=HTMLEditor.getSelParent(X); while (il && (il.nodeType==3 || (il.tagName && il.tagName.toUpperCase()!="BODY"))){if (il.nodeType==3 || !il.tagName){il=il.parentNode; continue; }if (!HTMLEditor.I33(il) && il.tagName.toUpperCase()!="P"){if (il.tagName.toUpperCase()=="TD")while (il.tagName.toUpperCase()!="TABLE")il=il.parentNode; else if (il.tagName.toUpperCase()=="LI")while (il.tagName.toUpperCase()!="OL" && il.tagName.toUpperCase()!="UL")il=il.parentNode; o49=il; break; }il=il.parentNode; }if (o49!=null){var lq=X.iq(); var Iq=X.or(lq); var I17=X.I1.createTextNode(""); o49.parentNode.insertBefore(I17,o49); if (HTMLEditor.is_ie){var i3l=X.or(lq); var I3l=X.or(lq); var O49=X.I1.createElement("span"); var l49=X.I1.createElement("span"); I17.parentNode.insertBefore(O49,I17); if (I17.nextSibling)I17.parentNode.insertBefore(l49,I17.nextSibling); else I17.parentNode.appendChild(l49); try {i3l.moveToElementText(O49); I3l.moveToElementText(l49); i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }catch (t){}I17.parentNode.removeChild(O49); I17.parentNode.removeChild(l49); }else {X.o18(lq); Iq.setStart(I17,0); Iq.setEnd(I17,0); X.O18(lq,Iq); }}}else if (HTMLEditor.is_ie && Ij.keyCode>=041 && Ij.keyCode<=050 && !Ij.shiftKey){var i49=Ij.keyCode; var I49=(i49==042 || i49==043 || i49==047 || i49==050); setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); if (lq.type.toLowerCase()=="control"){var il=Iq.item(0); if (!il.contentEditable || il.contentEditable=="false"){Iq.remove(0); lq.empty(); Iq=X.or(lq); var span=X.I1.createElement("SPAN"); span.appendChild(X.I1.createTextNode("")); if (I49){if (il.nextSibling==null)il.parentNode.appendChild(span); else il.parentNode.insertBefore(span,il.nextSibling); }else {il.parentNode.insertBefore(span,il); }Iq.moveToElementText(span); Iq.select(); setTimeout( function (){X.focusEditor(); X.updateToolbar(); X.focusEditor(); span.parentNode.removeChild(span); } ,012); }}} ,0); }else if (((O48 && !HTMLEditor.is_Safari) || (HTMLEditor.is_Safari && Ij.type=="keydown")) && Ij.ctrlKey && !Ij.altKey){X.I46= false; var lq=null; var Iq=null; var O45=String.fromCharCode((HTMLEditor.is_ie || HTMLEditor.l11 || HTMLEditor.is_Safari)?Ij.keyCode:Ij.charCode).toLowerCase(); var I22=null; var value=null; if ((HTMLEditor.is_ie || HTMLEditor.is_Safari) && Ij.keyCode==021){return false; }else if (!HTMLEditor.is_ie && Ij.keyCode==043 && !Ij.shiftKey){X.l13( true); }else if (Ij.keyCode==056 && this.i1f()){HTMLEditor._stopEvent(Ij); return false; }else if (Ij.keyCode==056 || Ij.keyCode==8){if ((HTMLEditor.is_ie && Ij.type=="keydown") || (!HTMLEditor.is_ie && Ij.type=="keypress"))this.o11(); }else {switch (O45){case "a":if (!HTMLEditor.is_ie){lq=this.iq(); this.o18(lq); Iq=this.or(); Iq.selectNodeContents(this.I1.body); this.O18(lq,Iq); HTMLEditor._stopEvent(Ij); return false; }else X.I46= true; break; case "z": this.undo(); HTMLEditor._stopEvent(Ij); return false; break; case "p":if (!HTMLEditor.is_ie){setTimeout( function (){X.l1g(); } ,0); HTMLEditor._stopEvent(Ij); return false; }break; case "y": this.redo(); HTMLEditor._stopEvent(Ij); return false; break; case "x":if (this.i1f()){HTMLEditor._stopEvent(Ij); return false; } this.o11(); if (HTMLEditor.is_ie){if (Ij.type=="keydown"){X.openWait(); setTimeout( function (){X.I1f(O45, false); X.On(); } ,0); HTMLEditor._stopEvent(Ij); return false; }}break; case "c":if (this.i1f()){HTMLEditor._stopEvent(Ij); return false; }if (HTMLEditor.is_ie){if (Ij.type=="keydown"){X.openWait(); setTimeout( function (){X.I1f(O45, false); X.On(); setTimeout( function (){X.o1g(); } ,0); } ,0); HTMLEditor._stopEvent(Ij); return false; }}break; case "v":if (this.i1f()){HTMLEditor._stopEvent(Ij); return false; } this.i45(Ij); break; case "b": this.bold(); HTMLEditor._stopEvent(Ij); return false; case "i": this.italic(); HTMLEditor._stopEvent(Ij); return false; case "u": this.underline(); HTMLEditor._stopEvent(Ij); return false; case "s":I22="strikethrough"; break; case "l":I22="justifyleft"; break; case "e":I22="justifycenter"; break; case "r":I22="justifyright"; break; case "j":I22="justifyfull"; break; case "q":alert(this.I1.body.innerHTML); HTMLEditor._stopEvent(Ij); return false; break; case "0":var o4a=this.If("your-browser","Your browser")+":\n\n"+navigator.userAgent; o4a+="\n\nObout Editor: "+this.scriptVersion; alert(o4a); HTMLEditor._stopEvent(Ij); return false; break; break; case "9":if (!HTMLEditor.is_ie){var lq=X.iq(); var Iq=X.or(lq); var l22=Iq.startContainer; var i22=Iq.endContainer; var O4a=""; O4a+="startContainer: "+(l22.nodeType==1?l22.tagName: "text")+"\n"; O4a+="endContainer  : "+(i22.nodeType==1?i22.tagName: "text")+"\n"; if (l22==i22){O4a+="startOffset: "+Iq.startOffset+"\n"; O4a+="endOffset  : "+Iq.endOffset+"\n"; if (l22.nodeType==1){l22=l22.childNodes.item(Iq.startOffset); if (l22 && l22.nodeType){O4a+="startOffset node: "+(l22.nodeType==1?l22.tagName: "text")+"\n"; if (Iq.startOffset!=Iq.endOffset){l22=i22.childNodes.item(Iq.endOffset); if (l22 && l22.nodeType)O4a+="endOffset node: "+(l22.nodeType==1?l22.tagName: "text")+"\n"; }}else O4a+=l22; }}alert(O4a); }else {var lq=X.iq(); var Iq=X.or(lq); alert("boundingLeft: "+Iq.boundingLeft+" boundingTop: "+Iq.boundingTop+"\n"+"boundingWidth: "+Iq.boundingWidth+" boundingHeight: "+Iq.boundingHeight); }HTMLEditor._stopEvent(Ij); return false; break; }}if (I22){ this.o1j(I22, false ,value); if (I22=="formatblock" && !HTMLEditor.is_ie){ this.o11(); this.O1f( false); }HTMLEditor._stopEvent(Ij); if (I22=="delete" || I22=="paste"){ this.O11(); }}}else if (((O48) || ((HTMLEditor.is_Safari || HTMLEditor.l11) && Ij.type=="keydown"))){if (HTMLEditor.is_ie && this.l2d){var Iq=this.or(this.iq()); Iq.select(); this.l2d= false; }var O45=String.fromCharCode(HTMLEditor.is_ie?Ij.keyCode:Ij.charCode).toLowerCase(); if (X.I46){X.I46= false; function l4a(){var o1h=X.or(X.iq()); var parent=o1h.parentElement(); if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); parent.parentNode.removeChild(parent); }}setTimeout(l4a,0); }if (this.i1f()){HTMLEditor._stopEvent(Ij); return false; }switch (Ij.keyCode){case 011:if (((HTMLEditor.is_Safari || HTMLEditor.l11) && Ij.type!="keydown"))break; if (!this.suppressTab){if (!this.lr())this.I11("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); HTMLEditor._stopEvent(Ij); }else {if (!HTMLEditor.is_ie){HTMLEditor._stopEvent(Ij); }return true; }break; case 8:case 056:if (((HTMLEditor.is_Safari || HTMLEditor.l11) && Ij.type!="keydown"))break; if (((HTMLEditor.is_ie || HTMLEditor.is_Safari) && Ij.type=="keydown") || (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && Ij.type=="keypress"))this.o11(); if (!HTMLEditor.is_ie){var Iq=this.or(this.iq()); var l22=Iq.startContainer; var i22=Iq.endContainer; if (Ij.type=="keypress")if (HTMLEditor.contentEditable(l22)!=null || HTMLEditor.contentEditable(i22)!=null){HTMLEditor._stopEvent(Ij); return false; }if (l22==i22 && l22.nodeType==1 && l22.tagName.toUpperCase()=="TD" && Iq.startOffset==Iq.startOffset && l22.childNodes.item(Iq.startOffset) && l22.childNodes.item(Iq.startOffset).tagName && l22.childNodes.item(Iq.startOffset).tagName.toUpperCase()=="BR"){var span=l22.childNodes.item(Iq.startOffset); var left=0,right=0; var i4a,I23,i23; I23=i4a=span.previousSibling; while (i4a){left++; i4a=i4a.previousSibling; }i23=i4a=span.nextSibling; while (i4a){right++; i4a=i4a.nextSibling; }if ((Ij.keyCode==056 && right==0) || (Ij.keyCode==8 && left==0)){HTMLEditor._stopEvent(Ij); return false; }else if (Ij.keyCode==056 && l22.firstChild==l22.lastChild && l22.firstChild.nodeType==1){HTMLEditor._stopEvent(Ij); return false; }}if (l22==i22 && l22.nodeType==3 && Iq.startOffset==Iq.endOffset && !HTMLEditor.l11){var data=l22.data+""; if (Ij.keyCode==056)if (Iq.startOffset==data.length && !(l22.nextSibling && l22.nextSibling.nodeType==3)){if (l22.nextSibling){l22.parentNode.removeChild(l22.nextSibling); X.I14(); }HTMLEditor._stopEvent(Ij); return false; }if (Ij.keyCode==8)if (Iq.startOffset==0 && !(l22.previousSibling && l22.previousSibling.nodeType==3)){if (l22.previousSibling){l22.parentNode.removeChild(l22.previousSibling); X.I14(); }HTMLEditor._stopEvent(Ij); return false; }}if (Ij.keyCode==8 && l22.nodeType==1 && l22==i22 && Iq.startOffset==Iq.endOffset){var I4a=l22.childNodes.item(Iq.startOffset); if (I4a!=null && I4a.nodeType==1 && I4a.tagName.toUpperCase()=="BR"){I4a=I4a.previousSibling; if (I4a!=null && I4a.nodeType!=3){I4a.parentNode.removeChild(I4a); X.I14(); HTMLEditor._stopEvent(Ij); return false; }}}setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); var l22=Iq.startContainer; var i22=Iq.endContainer; if (HTMLEditor.contentEditable(l22)!=null || HTMLEditor.contentEditable(i22)!=null){X.O1f( false); return; }if (HTMLEditor.l11 && l22==i22 && l22.nodeType==3 && (l22.data).length==0){l22.parentNode.removeChild(l22); }else if (l22==i22 && l22.nodeType==1 && HTMLEditor.i1j(l22.tagName) && Iq.startOffset==Iq.endOffset && l22.childNodes.length==0){while (l22.parentNode.nodeType==1 && HTMLEditor.i1j(l22.parentNode.tagName) && l22.parentNode.childNodes.length==1)l22=l22.parentNode; var O1v=l22.nextSibling; var O33=l22.previousSibling; var parent=l22.parentNode; parent.removeChild(l22); X.I14(); if (O1v==null && O33==null){Iq.setStart(parent,0); Iq.setEnd(parent,0); }else if (O1v!=null && O33!=null){if (O1v.nodeType==3 && O33.nodeType==3){var I2a=(""+O33.data+"").length; O33.appendData(O1v.data);parent.removeChild(O1v); Iq.setStart(O33,I2a); Iq.setEnd(O33,I2a); }else if (O33.nodeType==3){var I2a=(""+O33.data+"").length; Iq.setStart(O33,I2a); Iq.setEnd(O33,I2a); }else if (O1v.nodeType==3){Iq.setStart(O1v,0); Iq.setEnd(O1v,0); }else {if (O1v.childNodes.length>0){Iq.setStart(O1v,0); Iq.setEnd(O1v,0); }else {var I2a=HTMLEditor.i17(O1v); Iq.setStart(parent,I2a); Iq.setEnd(parent,I2a); }}}else if (O33!=null){if (O33.nodeType==3){var I2a=(""+O33.data+"").length; Iq.setStart(O33,I2a); Iq.setEnd(O33,I2a); }else {var I2a=O33.childNodes.length; if (I2a>0){Iq.setStart(O33,I2a); Iq.setEnd(O33,I2a); }else {I2a=HTMLEditor.i17(O33); Iq.setStart(parent,I2a); Iq.setEnd(parent,I2a); }}}else if (O1v!=null){if (O1v.nodeType==3){Iq.setStart(O1v,0); Iq.setEnd(O1v,0); }else {var I2a=O1v.childNodes.length; if (I2a>0){Iq.setStart(O1v,I2a); Iq.setEnd(O1v,I2a); }else {I2a=HTMLEditor.i17(O1v); Iq.setStart(parent,I2a); Iq.setEnd(parent,I2a); }}}X.o18(lq); X.O18(lq,Iq); }} ,012); }else {var lq=X.iq(); if (lq.type.toLowerCase()=="control"){if (Ij.keyCode==8){setTimeout( function (){X.o1g(); X.I14(); } ,0); HTMLEditor._stopEvent(Ij); return; }var o1h=X.or(lq); var o4b=o1h.item(0); if (o4b.tagName.toUpperCase()=="EMBED"){o4b.src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); o4b.parentNode.removeChild(o4b); while (o1h.length>0)o1h.remove(0); try {o1h.collapse( false); }catch (t){}HTMLEditor._stopEvent(Ij); X.o11(); setTimeout( function (){X.O1f( false); X.I14(); } ,0); return; }}var i3a=X.I1.body.getElementsByTagName("EMBED").length; if (i3a>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); var O4b=Ij.keyCode; setTimeout( function (){X.A.removeChild(popup); var l4b=X.I1.body.getElementsByTagName("EMBED"); if (i3a!=l4b.length){X.o11(); setTimeout( function (){X.O1f( false); X.I14(); } ,0); }} ,0); }setTimeout( function (){X.O11(); } ,5); break; }break; case 015:if (((HTMLEditor.is_Safari || HTMLEditor.l11) && Ij.type=="keydown"))break; if ((!HTMLEditor.is_ie && Ij.type=="keypress") || (HTMLEditor.is_ie && Ij.type=="keydown"))this.o11(); if (HTMLEditor.is_ie && Ij.type=="keydown"){var lq=X.iq(); if (lq.type.toLowerCase()=="control")break; var o1h=X.or(lq); if (!Ij.shiftKey){var i4b=o1h.parentElement(); if (i4b.tagName.toUpperCase()=="TEXTAREA")break; while (i4b && i4b.tagName && i4b.tagName.toUpperCase()!="BODY" && HTMLEditor.i1j(i4b.tagName)){i4b=i4b.parentNode; }if (i4b && i4b.tagName && (i4b.tagName.toUpperCase()=="P" || i4b.tagName.toUpperCase()=="LI")){if (i4b.tagName.toUpperCase()=="LI"){function test(){o1h=X.or(X.iq()); var parent=o1h.parentElement(); while (parent && parent.tagName && parent.tagName.toUpperCase()!="BODY" && HTMLEditor.i1j(parent.tagName)){parent=parent.parentNode; }if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){var O49=X.I1.createElement("span"); var I17=X.I1.createTextNode(" "); var i3m=parent; while (i3m.firstChild!=null && i3m.firstChild.nodeType==1)i3m=i3m.firstChild; if (i3m.nodeType==1){i3m.appendChild(I17); i3m.appendChild(O49); while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); }else {parent.parentNode.insertBefore(I17,parent); parent.parentNode.insertBefore(O49,parent); }parent.parentNode.removeChild(parent); o1h.moveToElementText(O49); o1h.select(); O49.parentNode.removeChild(O49); X.I14(); }}setTimeout(test,024); }break; }try {var o3y=HTMLEditor.Om+"_middle_add"; var O3y=null; var l3y="<span id="+o3y+"></span>"; function I4b(){var lq=X.iq(); var Iq=X.or(lq); if (O3y!=null){O3y.innerHTML="&nbsp;"; Iq.moveToElementText(O3y); Iq.select(); O3y.parentNode.insertBefore(O3y.firstChild,O3y); O3y.parentNode.removeChild(O3y); X.I14(); }}o1h.pasteHTML(l3y); var o4c= false; O3y=X.I1.getElementById(o3y); if (O3y!=null){var nextSibling=O3y.nextSibling; var O4c=O3y.parentNode; while (nextSibling==null && O4c!=null && HTMLEditor.i1j(O4c.tagName)){nextSibling=O4c.nextSibling; O4c=O4c.parentNode; }if (nextSibling!=null && !HTMLEditor.I3c(nextSibling) && nextSibling.tagName!=null && typeof nextSibling.tagName!="undefined"){var Il=nextSibling.tagName.toUpperCase(); if (Il!="BR" && Il!="UL" && Il!="OL" && Il!="P"){o4c= true; }}O3y.parentNode.removeChild(O3y); }o1h.pasteHTML("<br/>"+(o4c?l3y: "")); if (o4c)O3y=X.I1.getElementById(o3y); o1h.select(); if (o4c){setTimeout(I4b,0); HTMLEditor._stopEvent(Ij); return false; }}catch (w){}}else {break; }HTMLEditor._stopEvent(Ij); }else {if (!Ij.shiftKey && (HTMLEditor.is_Safari || HTMLEditor.l11)){var i4b=HTMLEditor.getSelParent(this ); if (i4b.nodeType==3){i4b=i4b.parentNode; }while (i4b && i4b.tagName && i4b.tagName.toUpperCase()!="BODY" && HTMLEditor.i1j(i4b.tagName)){i4b=i4b.parentNode; }if (i4b && i4b.tagName && (i4b.tagName.toUpperCase()=="P" || i4b.tagName.toUpperCase()=="LI")){break; }var l3y="<br />"; if (HTMLEditor.l11){var lq=X.iq(); var Iq=X.or(lq); if (Iq.startContainer==Iq.endContainer){if (Iq.startContainer.nodeType==1){var l4c=Iq.startContainer.childNodes.item(Iq.startOffset); if (l4c.nodeType==1 && l4c.tagName.toUpperCase()=="BR"){l3y+="<br />"; }}else if (Iq.startContainer.nodeType==3 && Iq.startOffset==Iq.endOffset && (Iq.startContainer.data).length==Iq.endOffset){l3y+="&nbsp;"; }}} this.I11(l3y); HTMLEditor._stopEvent(Ij); if (HTMLEditor.l11){var lq=X.iq(); var Iq=X.or(lq); if (Iq.startContainer==Iq.endContainer && Iq.startContainer.nodeType==3 && Iq.startOffset==Iq.endOffset && (Iq.startContainer.data).length==0){var i4c=Iq.startContainer.previousSibling; Iq.startContainer.parentNode.removeChild(Iq.startContainer); X.o18(lq); Iq=X.or(); Iq.setStart(i4c,0); Iq.setEnd(i4c,1); X.O18(lq,Iq); }}X.I14(); }else if (HTMLEditor.is_Safari){ this.I11("<br/>"); HTMLEditor._stopEvent(Ij); X.I14(); }}break; }}else X.I46= false; if (HTMLEditor.is_ie && Ij.type=="keypress" && !Ij.ctrlKey){var O45=Ij.keyCode; var I4c=X.iq(); var o4d=X.or(I4c); if (o4d.text.length>0){var O4d=String.fromCharCode(O45); var l4d=HTMLEditor.i4d(Ij); var I4d=(Ij.shiftKey && !l4d) || l4d; if (!I4d)O4d=O4d.toLowerCase(); var o4e=HTMLEditor.Om+"StyleForTyping"; var O4e=X.I1.getElementById(o4e); if (O4e!=null){O4d="<span id='"+o4e+"'></span>"+O4d+"<span id='"+o4e+o4e+"'></span>"; O4e.parentNode.removeChild(O4e); }o4d.pasteHTML(O4d); if (O4e!=null){X.l4e(o4e); O4e=X.I1.getElementById(o4e+o4e); O4e.parentNode.removeChild(O4e); }HTMLEditor._stopEvent(Ij); X.I14(); return false; }}if (Ij.type=="mouseup" || Ij.type=="mousedown" || Ij.type=="keydown"){var i4e= true; if (Ij.type=="keydown" && !Ij.ctrlKey){var O45=Ij.keyCode; if ((O45>=060 && O45<=0132) || (O45==040) || (O45==0015) || (O45>=0272 && O45<=0336) || (O45>=0140 && O45<=0157)){if (X.M!=null){X.i3z=[]; for (var I4e=0; I4e<X.M.length; I4e++){X.i3z.push(X.M[I4e]); }var o4e=HTMLEditor.Om+"StyleForTyping"; var o4f= true; if (!HTMLEditor.is_ie)X.I11("<span id='"+o4e+"'></span>"); else {X.I11("<span id='"+o4e+"'>&nbsp;</span>"); var O4e=X.I1.getElementById(o4e); if (O4e && O4e.nextSibling && O4e.nextSibling.nodeType==3){o4f= false; var I4c=X.iq(); var o4d=X.or(I4c); o4d.moveToElementText(X.I1.getElementById(o4e)); o4d.select(); }else if (O4e)O4e.removeChild(O4e.firstChild); }if (o4f)setTimeout( function (){X.l4e(o4e); X.I14(); } ,0); }}}if (!HTMLEditor.is_ie && (Ij.type=="mousedown" || (Ij.type=="keydown" && !Ij.ctrlKey))){X.O1h= false; X.I1h= false; X.o1i= false; X.O1i= false; X.l1i= false; X.i1i= false; }if (i4e || !HTMLEditor.is_ie){if (!X.O4f){if (X.l4f){clearTimeout(X.l4f); X.l4f=null; }X.i4f=3; function I4f(){try {if (HTMLEditor.is_ie){try {var o10=X.I1.selection; }catch (t){return false; }}if (HTMLEditor.is_ie)if (X.iq().type=="None" && X.I1.queryCommandValue("backcolor")==0 && X.I1.queryCommandValue("forecolor")==0){X.i4f--; if (X.i4f>0){X.l4f=setTimeout(I4f,0144); return; }}X.O4f= true; X.updateToolbar(); X.O4f= false; X.l4f=null; if (!HTMLEditor.is_ie){X.focusEditor(); }}catch (t){}}X.l4f=setTimeout(I4f,0454); }}}if (!((!HTMLEditor.is_ie && (Ij.type=="keydown" || Ij.type=="keyup")) || (HTMLEditor.is_ie && (Ij.type=="keydown" || Ij.type=="keyup") && (Ij.keyCode==020 || Ij.keyCode==024))))X.M=null; if (HTMLEditor.is_Safari)setTimeout( function (){X.or(X.iq()); } ,0); if (!HTMLEditor.is_ie)setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); if (Iq.startContainer.nodeType!=3 && Iq.startContainer==Iq.endContainer)if (Iq.startOffset==Iq.endOffset)if (Iq.startContainer.childNodes.item(Iq.startOffset))if (Iq.startContainer.childNodes.item(Iq.startOffset).nodeType==3){var l17=Iq.startContainer.childNodes.item(Iq.startOffset); lq.collapseToEnd(); X.o18(lq); lq=X.iq(); Iq=X.or(lq); if (HTMLEditor.is_Safari){X.l14.type="Caret"; X.l14.focusNode=l17; X.l14.focusOffset=0; }else {Iq.setStart(l17,0); Iq.setEnd(l17,0); X.O18(lq,Iq); }}} ,0144); if (!HTMLEditor.is_ie){var lq=X.iq(); var Iq=X.or(lq); X.o4g=Iq.startContainer; X.O4g=Iq.startOffset; }setTimeout( function (){try {X.o1g(); }catch (t){}} ,0144); if (Ij.type=="keydown"){if (X.l4g==null || typeof X.l4g=="undefined" || !X.l4g){X.l4g= true; setTimeout( function (){X.I14(); X.l4g= false; } ,012); }}return true; }catch (w){HTMLEditor._stopEvent(Ij); return false; }} ; HTMLEditor.prototype.l4e= function (o4e){var X=this ; var il=X.I1.getElementById(o4e); if (il!=null){if (il.nextSibling && il.nextSibling.nodeType==3){var text=il.nextSibling; il.parentNode.removeChild(il); var i4g=(""+text.data+"").indexOf(" "); if (i4g>0)text.splitText(i4g); else if (i4g==0)text.splitText(1); if (X.i3z!=null)for (var I4e=0; I4e<X.i3z.length; I4e++)X.I3w(X.i3z[I4e],[text], false); X.i3z=null; var lq=X.iq(); if (!HTMLEditor.is_ie){var Iq=X.I1.createRange(); Iq.setStart(text,text.length); Iq.setEnd(text,text.length); X.o18(lq); X.O18(lq,Iq); }else {var i3l=X.or(lq); var O49=X.I1.createElement("span"); if (text.nextSibling)text.parentNode.insertBefore(O49,text.nextSibling); else text.parentNode.appendChild(O49); try {i3l.moveToElementText(O49); i3l.select(); }catch (t){}O49.parentNode.removeChild(O49); }}else il.parentNode.removeChild(il); }};HTMLEditor.prototype.i1f= function (){if (!this.lr())return false; var lq=this.iq(); var Iq=this.or(lq); var i1p; if (HTMLEditor.is_ie){i1p=Iq.item(0); }else {i1p=Iq.startContainer.childNodes.item(Iq.startOffset); }if (i1p.tagName && i1p.tagName.toUpperCase()=="IMG" && i1p.getAttribute(HTMLEditor.lt) && i1p.getAttribute(HTMLEditor.lt).length>0){var I4g=this.it(i1p); if (I4g!=null){if (HTMLEditor.is_ie){Iq=this.I1.body.createControlRange(); Iq.add(I4g); Iq.select(); }else {try {var index=HTMLEditor.i17(I4g); lq.collapseToEnd(); this.o18(lq); Iq=this.or(lq); Iq.setStart(I4g.parentNode,index); Iq.setEnd(I4g.parentNode,index+1); this.O18(lq,Iq); }catch (t){return true; }}return false; }return true; }return false; };HTMLEditor.prototype.o1g= function (){if (HTMLEditor.is_ie){try {var o10=this.I1.selection; }catch (t){return false; }}var X=this ; var o49=null; var il=HTMLEditor.getSelParent(X); while (il && (il.nodeType==3 || (il.tagName && il.tagName.toUpperCase()!="BODY"))){if (il.nodeType==3 || !il.tagName){il=il.parentNode; continue; }if (il.tagName.toUpperCase()=="TABLE" && il.getAttribute(HTMLEditor.Ot) && il.getAttribute(HTMLEditor.Ot)=="yes"){o49=il.rows.item(0).cells.item(0).firstChild; if (HTMLEditor.is_ie && o49.tagName.toUpperCase()=="P")o49=o49.firstChild; break; }il=il.parentNode; }if (o49!=null){var lq=X.iq(); var Iq=X.or(lq); if (HTMLEditor.is_ie){Iq=X.I1.body.createControlRange(); Iq.add(o49); Iq.select(); }else {try {lq.collapseToEnd(); X.o18(lq); Iq=X.or(lq); Iq.setStart(o49.parentNode,0); Iq.setEnd(o49.parentNode,1); X.O18(lq,Iq); }catch (t){}}}};HTMLEditor.prototype.iq= function (){if (HTMLEditor.is_ie){var lq=this.I1.selection; return lq; }else { this.focusEditor(); var lq; var Iq; var il; lq=this._iframe.contentWindow.getSelection(); Iq=this.or(lq); il=Iq.startContainer; try {while (il && il.nodeType){il=il.parentNode; }}catch (t){ this.o18(lq); Iq=this.or(lq); Iq.setStart(this.o4g,this.O4g); Iq.setEnd(this.o4g,this.O4g); this.O18(lq,Iq); lq=this._iframe.contentWindow.getSelection(); }return lq; }} ; HTMLEditor.prototype.or= function (lq){if (HTMLEditor.is_ie){return lq.createRange(); }else { this.focusEditor(); if (typeof lq=="undefined"){return this.I1.createRange(); }else {try {var o1h=lq.getRangeAt(0); if (o1h==null && HTMLEditor.Ok)o4h.O4h=l4h.l4h; return o1h; }catch (t){var X=this ; if (!(HTMLEditor.is_Safari && !HTMLEditor.Ok) && lq.rangeCount==0){return this.I1.createRange(); }if (HTMLEditor.is_Safari){try {if (lq.type=="None"){if (X.l14){if (X.l14.type=="Caret"){lq.setPosition(X.l14.focusNode,X.l14.focusOffset); }else {lq.setBaseAndExtent(X.l14.anchorNode,X.l14.anchorOffset,X.l14.focusNode,X.l14.focusOffset); }}else {lq.setPosition(this.I1.body.firstChild,0); }}if (lq.type=="Caret"){var o1h=X.I1.createRange(); if (!X.l14)X.l14=new Object(); X.l14.type="Caret"; o1h.setStart(lq.focusNode,lq.focusOffset); o1h.setEnd(lq.focusNode,lq.focusOffset); X.l14.focusNode=lq.focusNode; X.l14.focusOffset=lq.focusOffset; return o1h; }if (!X.l14)X.l14=new Object(); X.l14.type="Range"; var i4h=lq.anchorNode; var I4h=lq.anchorOffset; if (i4h.nodeType==1 && i4h.childNodes.length==0){i4h=i4h.parentNode; I4h=HTMLEditor.o3e(i4h,lq.anchorNode); }var o4i=lq.focusNode; var O4i=lq.focusOffset; if (o4i.nodeType==1 && o4i.childNodes.length==0){o4i=o4i.parentNode; O4i=HTMLEditor.o3e(o4i,lq.focusNode); }var l4i=X.I1.createRange(); l4i.setStart(i4h,I4h); l4i.collapse( true); var i4i=X.I1.createRange(); i4i.setStart(o4i,O4i); i4i.collapse( true); var I4i=l4i.compareBoundaryPoints(l4i.START_TO_END,i4i)<0; var o4j=I4i?i4h:o4i; var O4j=I4i?I4h:O4i; var l4j=I4i?o4i:i4h; var i4j=I4i?O4i:I4h; var o1h=X.I1.createRange(); o1h.setStart(o4j,O4j); o1h.setEnd(l4j,i4j); X.l14.focusNode=l4j; X.l14.focusOffset=i4j; X.l14.anchorNode=o4j; X.l14.anchorOffset=O4j; return o1h; }catch (t){X.l14=null; lq.setPosition(this.I1.body.firstChild,0); }}}}}} ; HTMLEditor.prototype.I4j=null; HTMLEditor.prototype.getFormat= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var lq=this.iq(); var Iq=this.or(lq); var i23=HTMLEditor.Om+"_right"; var O24; if (HTMLEditor.is_ie){O24=Iq.duplicate(); O24.setEndPoint("StartToEnd",Iq); }else {O24=Iq.cloneRange(); O24.setStart(O24.endContainer,O24.endOffset); }if (this.I11("<span id='"+i23+"'/>",O24)){var O1b=this.I1.getElementById(i23); var par=O1b.parentNode; this.I4j=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.i1j(par.tagName)){if (par.tagName.toUpperCase()!="A"){var ik=par.cloneNode( false); if (this.I4j==null){ this.I4j=ik; }else {ik.appendChild(this.I4j); this.I4j=ik; }}par=par.parentNode; }O1b.parentNode.removeChild(O1b); if (this.I4j){var O3l=this.I1.createElement("span"); O3l.appendChild(this.I4j); this.I4j=O3l.innerHTML; }}};HTMLEditor.prototype.applyFormat= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (this.I4j==null){setTimeout( function (){alert(X.If("copy-format","Copy Format.")); } ,0); return; }var O3l=this.I1.createElement("span"); O3l.innerHTML=this.I4j; var o1c=this.O1c(); if (o1c.length==0){setTimeout( function (){alert(X.If("select-text","Select some text.")); } ,0); delete O3l; return; } this.o11(); for (var i=0; i<o1c.length; i++){var par=o1c[i].parentNode; var o4k=O3l.firstChild.cloneNode( true); var i26=o4k; while (i26.firstChild)i26=i26.firstChild; par.insertBefore(o4k,o1c[i]); i26.appendChild(o1c[i]); } this.I1j(o1c); delete O3l; this.O1.setTimeout( function (){X.I14(); X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.O1c= function (O4k){try {var l4k=[]; if (this.lr())return l4k; var lq=this.iq(); var Iq=this.or(lq); var i23=HTMLEditor.Om+"_right"; var I23=HTMLEditor.Om+"_left"; var o24=null; var O24=null; var i4k; if (typeof O4k=="undefined"){if (HTMLEditor.is_ie){o24=Iq.duplicate(); O24=Iq.duplicate(); o24.setEndPoint("EndToStart",Iq); O24.setEndPoint("StartToEnd",Iq); }else {o24=Iq.cloneRange(); O24=Iq.cloneRange(); o24.setEnd(o24.startContainer,o24.startOffset); O24.setStart(O24.endContainer,O24.endOffset); i4k=o24.endOffset; }if (!this.I11("<span id='"+i23+"'/>",O24))return l4k; {if (HTMLEditor.l11){o24.setEnd(o24.startContainer,i4k); o24.setStart(o24.startContainer,i4k); }if (!this.I11("<span id='"+I23+"'/>",o24)){var l24=this.I1.getElementById(i23); if (l24!=null){ik=l24.parentNode; ik.removeChild(l24); }var I4k=this.I1.getElementById(o4l); if (I4k!=null){ik=I4k.parentNode; ik.removeChild(I4k); }return l4k; }}}else {var span; span=this.I1.createElement("SPAN"); span.id=i23; this.I1.body.appendChild(span); span=this.I1.createElement("SPAN"); span.id=I23; this.I1.body.insertBefore(span,this.I1.body.firstChild); }var o1b=this.I1.getElementById(I23); var O1b=this.I1.getElementById(i23); if (o1b==null || O1b==null){var ik; if (o1b!=null){ik=o1b.parentNode; ik.removeChild(o1b); }if (O1b!=null){ik=O1b.parentNode; ik.removeChild(O1b); }return []; }while (o1b.firstChild)o1b.removeChild(o1b.firstChild); while (O1b.firstChild)O1b.removeChild(O1b.firstChild); while (o1b.previousSibling && o1b.previousSibling.nodeType==3 && HTMLEditor.O13(""+o1b.previousSibling.data+"").length==0)o1b.parentNode.removeChild(o1b.previousSibling); while (o1b.nextSibling && o1b.nextSibling.nodeType==3 && HTMLEditor.O13(""+o1b.nextSibling.data+"").length==0)o1b.parentNode.removeChild(o1b.nextSibling); while (O1b.previousSibling && O1b.previousSibling.nodeType==3 && HTMLEditor.O13(""+O1b.previousSibling.data+"").length==0)O1b.parentNode.removeChild(O1b.previousSibling); while (O1b.nextSibling && O1b.nextSibling.nodeType==3 && HTMLEditor.O13(""+O1b.nextSibling.data+"").length==0)O1b.parentNode.removeChild(O1b.nextSibling); var O42= false; var X=this ; function O4l(l4l,on){while (l4l){if (l4l.id && l4l.id==i23){O42= true; return; }if (l4l.nodeType==3){while (l4l.nextSibling && (l4l.nextSibling.nodeType==3 || (!HTMLEditor.is_ie && X.O3x!=null && X.O3x[0]==l4l.nextSibling))){if (l4l.nextSibling.nodeType==3)l4l.data=""+l4l.data+""+l4l.nextSibling.data+""; else {X.O3x[0]=l4l; X.O3x[1]=(""+l4l.data+"").length; }l4l.parentNode.removeChild(l4l.nextSibling); }if (HTMLEditor.O13(""+l4l.data+"").length>0)l4k.push(l4l); }else {if (!(l4l.tagName && (l4l.tagName.toUpperCase()=="MAP" || l4l.tagName.toUpperCase()=="AREA")))if (!(l4l.tagName && (l4l.tagName.toUpperCase()=="SCRIPT" || l4l.tagName.toUpperCase()=="NOSCRIPT")))if (!(l4l.style && (Oz(l4l,"display")=="none" || Oz(l4l,"visibility")=="hidden")))O4l(l4l.firstChild, false); }if (O42)return; var i37=l4l.parentNode; if (on)while (l4l.nextSibling==null){l4l=l4l.parentNode; }l4l=l4l.nextSibling; }}O4l(o1b, true); var ik; ik=o1b.parentNode; ik.removeChild(o1b); ik=O1b.parentNode; ik.removeChild(O1b); if (typeof O4k=="undefined"){if (HTMLEditor.is_ie){lq.empty(); O24.select(); }else {if (l4k.length>0){ this.o18(lq); var O10=this.or(); O10.setEnd(l4k[l4k.length-1],l4k[l4k.length-1].length); O10.setStart(l4k[l4k.length-1],l4k[l4k.length-1].length); this.O18(lq,O10); }}}return l4k; }catch (t){alert("_getTextNodeCollection: "+t.message); return []; }} ; HTMLEditor.prototype.Or= function (Iq){if (HTMLEditor.is_ie)return Iq.parentElement(); else {return Iq.startContainer; }};HTMLEditor.prototype.getIconsUrls= function (){var X=this ; var ie=[]; for (var i=0; i<X._IconArray.length; i++){var folder=X._IconArray[i][0]; var ig=X._IconArray[i][1]; for (var Oh=0; Oh<ig.length; Oh++)ie.push(X.o8+"/"+folder+"/"+ig[Oh]); }return ie; };HTMLEditor.prototype.ExecCommand= function (i4l,param){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.or(this.iq()); this.o11(); this.o1j(i4l, false ,param); return true; };HTMLEditor.prototype.QueryCommand= function (i4l){if (this.mode()!="html")return false; switch (i4l.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.o23(i4l); case "formatblock":var o17=this.I4l(); if (o17==null)return ""; var il=o17.start; while (il && il.tagName && il.tagName.toUpperCase()!="BODY" && il.tagName.toUpperCase()!="TD"){if (/^h\d$/i.test(il.tagName))return il.tagName; il=il.parentNode; }return ""; }return this.I1.queryCommandValue(i4l); };HTMLEditor.prototype.o1j= function (i4l,UI,param){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }var lq; var Iq; if (HTMLEditor.is_ie && !this.lr()){lq=this.iq(); Iq=this.or(lq); var i4b=Iq.parentElement(); if (i4b.tagName.toUpperCase()=="TEXTAREA")return; }try {if (i4l.toLowerCase()!="createlink")this.o11(); if (HTMLEditor.is_Safari){lq=this.iq(); }switch (i4l.toLowerCase()){case "createlink":if (HTMLEditor.is_ie || !UI){ this.I1.execCommand(i4l,UI,param); }else {if ((param=prompt("Enter URL"))){ this.I1.execCommand(i4l, false ,param); }}break; case "backcolor":case "forecolor":case "fontname":case "fontsize": this.o3w(i4l.toLowerCase(),param); break; case "indent": this.I3u( true); break; case "outdent": this.I3u( false); break; case "justifyleft": this.o3o("left"); break; case "justifyfull": this.o3o("justify"); break; case "justifycenter": this.o3o("center"); break; case "justifyright": this.o3o("right"); break; case "paragraph": this.o3o("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.o3o("remain", false ,param); break; }} this.I1.execCommand(i4l,UI,param); break; case "insertunorderedlist": this.O3s("UL"); break; case "insertorderedlist": this.O3s("OL"); break; case "bold":case "italic":case "underline":case "strikethrough":case "superscript":case "subscript": this.o3w(i4l.toLowerCase()); break; default: this.I1.execCommand(i4l,UI,param); break; } this.I14(); if (!HTMLEditor.is_ie){lq=this.iq(); Iq=this.or(lq); this.o18(lq); if (HTMLEditor.l11)setTimeout( function (){X.f= true; X.focusEditor(); X.O18(lq,Iq); } ,0); this.O18(lq,Iq); this.focusEditor(); }var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); }catch (t){alert("_execCommand: "+t.message); }} ; HTMLEditor.prototype.o18= function (lq){if (!HTMLEditor.is_Safari)lq.removeAllRanges(); };HTMLEditor.prototype.O18= function (lq,Iq,on){if (!HTMLEditor.is_Safari)lq.addRange(Iq); else {if (Iq.startContainer==Iq.endContainer && Iq.startOffset==Iq.endOffset){lq.setPosition(Iq.startContainer,Iq.startOffset); }else lq.setBaseAndExtent(Iq.startContainer,Iq.startOffset,Iq.endContainer,Iq.endOffset); }if (typeof on=="undefined")if (HTMLEditor.l11 && this.f)this._iframe.blur(); this.focusEditor(); };HTMLEditor.prototype.o4m= function (value){if (this.lr())return false; var Iq=this.or(this.iq()); var O4m=Iq.duplicate(); var l4m=Iq.duplicate(); O4m.setEndPoint("StartToStart",Iq); O4m.setEndPoint("EndToStart",Iq); l4m.setEndPoint("StartToEnd",Iq); l4m.setEndPoint("EndToEnd",Iq); var i4m=O4m.parentElement(); var I4m=l4m.parentElement(); if (i4m.parentNode!=I4m.parentNode || HTMLEditor.o4n(i4m)){function O4n(il){var ig=[]; while (il!=null){ig.push(il); il=il.parentNode; }ig.reverse(); return ig; } ; var l4n=O4n(i4m.parentNode); var i4n=O4n(I4m.parentNode); var i=0; while (l4n[i]==i4n[i])i++; i4m=l4n[i]; I4m=i4n[i]; if (HTMLEditor.o4n(i4m)){while (HTMLEditor.o4n(i4m)){i--; i4m=l4n[i]; }I4m=i4m; }}var Ic=i4m; if (!Ic)return false; if (!this.rtlState()){ do {var I4n=Ic.style.marginLeft?parseInt(Ic.style.marginLeft): 0; I4n=I4n+value; if (I4n<=0)Ic.style.marginLeft=""; else Ic.style.marginLeft=I4n+"px"; if (Ic==I4m)break; Ic=Ic.nextSibling; }while (Ic);}else { do {var I4n=Ic.style.marginRight?parseInt(Ic.style.marginRight): 0; I4n=I4n+value; if (I4n<=0)Ic.style.marginRight=""; else Ic.style.marginRight=I4n+"px"; if (Ic==I4m)break; Ic=Ic.nextSibling; }while (Ic);}return true; };HTMLEditor.o4n= function (il){if (!il)return false; if (!il.tagName)return false; var name=il.tagName.toUpperCase(); switch (name){case "TD":case "TR":case "TBODY":case "LI":return true; default:return false; }};HTMLEditor.prototype.i1h= function (i4l){var o17=this.I4l(); if (o17==null)return false; try {var l3w= {name: "none",value: "none" } ; switch (i4l.toLowerCase()){case "bold":l3w= {name: "font-weight",value: "bold" } ; break; case "italic":l3w= {name: "font-style",value: "italic" } ; break; case "underline":l3w= {name: "text-decoration",value: "underline" } ; break; case "strikethrough":l3w= {name: "text-decoration",value: "line-through" } ; break; case "superscript":l3w= {name: "vertical-align",value: "super" } ; break; case "subscript":l3w= {name: "vertical-align",value: "sub" } ; break; }var I1y=o17.start; var o4o=o17.end; var O4o=HTMLEditor.Oz(I1y,l3w.name).toString().toLowerCase(); var l4o=HTMLEditor.Oz(o4o,l3w.name).toString().toLowerCase(); if (l3w.name=="font-weight" && O4o=="700")O4o="bold"; if (l3w.name=="font-weight" && l4o=="700")l4o="bold"; if (/MSIE (5|6)/.test(navigator.userAgent) && i4l.toLowerCase()=="strikethrough" && (O4o=="underline" || l4o=="underline")){while (I1y && HTMLEditor.i1j(I1y.tagName)){if (I1y.style.textDecoration.indexOf("line-through")>=0){O4o=I1y.style.textDecoration; break; }I1y=I1y.parentNode; }while (o4o && HTMLEditor.i1j(o4o.tagName)){if (o4o.style.textDecoration.indexOf("line-through")>=0){l4o=o4o.style.textDecoration; break; }o4o=o4o.parentNode; }}var ie=(O4o.indexOf(l3w.value)>=0) && (l4o.indexOf(l3w.value)>=0); if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var i4o=this.M[i]; if (i4o.name==l3w.name && i4o.value==l3w.value){ie=!ie; break; }}}return ie; }catch (w){return false; }} ; HTMLEditor.I1l= function (fontSize,X,l1k){var ie=fontSize.replace(/^(\d+)\.(\d+)px/i,"$1px"); if (!HTMLEditor.is_ie){if (ie && ie.length>0){var Ie=ie.toLowerCase().split(",")[0]; if (typeof l1k!="undefined"){var il=document.getElementById(l1k); if (il!=null){il=il.childNodes.item(1); var i; for (i=0; i<il.options.length; i++){var I16=HTMLEditor.o1l(il.options.item(i).value.toLowerCase().split(",")[0]); if (I16==Ie)break; }if (i==il.options.length){var span=X.I1.createElement("SPAN"); X.I1.body.appendChild(span); for (i=1; i<0144; i++){span.style.fontSize=i+"pt"; if (HTMLEditor.Oz(span,"font-size").replace(/^(\d+)\.(\d+)px/i,"$1px")==Ie){Ie=i+"pt"; break; }}span.parentNode.removeChild(span); }}}ie=Ie; }}return ie; };HTMLEditor.prototype.l1j= function (i4l,l1k){var o17=this.I4l(); if (o17==null)return ""; try {if (i4l.toLowerCase()=="backcolor"){var il=o17.start; while (il){var I4o=HTMLEditor.Oz(il,"background-color").toLowerCase(); if (I4o.length>0 && I4o!="transparent")return I4o; il=il.parentNode; }return "#FFFFFF"; }var l3w="none"; switch (i4l.toLowerCase()){case "forecolor":l3w="color"; break; case "fontname":l3w="font-family"; break; case "fontsize":l3w="font-size"; break; }var ie; if ((l3w=="font-size" || l3w=="font-family") && this._FontNotSet){ie=""; var par=o17.start; while (par!=null){if (l3w=="font-size"){if (par.style && par.style.fontSize && par.style.fontSize.length>0){ie=par.style.fontSize; break; }}else {if (par.style && par.style.fontFamily && par.style.fontFamily.length>0){ie=par.style.fontFamily; break; }}if (par.className && par.className.length>0)break; if (par.tagName.toUpperCase()=="BODY")break; if (par.tagName.toUpperCase()=="TD")break; par=par.parentNode; }}else {ie=HTMLEditor.Oz(o17.start,l3w).toLowerCase(); if (l3w=="font-size"){if (!HTMLEditor.is_ie){ie=HTMLEditor.I1l(ie,this,l1k); var par=o17.start; while (par!=null){if (par.style && par.style.fontSize && par.style.fontSize.length>0){ie=par.style.fontSize; break; }if (par.className && par.className.length>0)break; if (par.tagName.toUpperCase()=="BODY")break; if (par.tagName.toUpperCase()=="TD")break; par=par.parentNode; }}}}if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var i4o=this.M[i]; if (i4o.name==l3w){ie=i4o.value; break; }}}return ie; }catch (w){return ""; }} ; HTMLEditor.prototype.I4l= function (){if (this.lr())return null; try {var lq=this.iq(); var Iq=this.or(lq); var I1y=null; var o4o=null; if (!HTMLEditor.is_ie){function o4p(par,i25){var ie=null; while (ie==null){if (par.nodeType==3){if (i25 && Iq.startContainer!=Iq.endContainer && Iq.startOffset==par.length && par.nextSibling){ie=o4p(par.nextSibling,i25); }else if (!i25 && Iq.startContainer!=Iq.endContainer && Iq.endOffset==0 && par.previousSibling){ie=o4p(par.previousSibling,i25); }else ie=par; }else {if ((i25?par.firstChild:par.lastChild)==null)ie=null; else ie=o4p(i25?par.firstChild:par.lastChild,i25); }if (ie==null){par=i25?par.nextSibling:par.previousSibling; if (par==null)return null; }else return ie; }}I1y=o4p(Iq.startContainer, true); if (I1y!=null && I1y.parentNode!=null)I1y=I1y.parentNode; if (I1y==null)I1y=Iq.startContainer; o4o=o4p(Iq.endContainer, false); if (o4o!=null && o4o.parentNode!=null)o4o=o4o.parentNode; if (o4o==null)o4o=Iq.endContainer; }else {if (Iq.text.length==0)I1y=o4o=this.Or(Iq); else {var i23=HTMLEditor.Om+"_right_marker"; var I23=HTMLEditor.Om+"_left_marker"; var o24=Iq.duplicate(); var O24=Iq.duplicate(); o24.setEndPoint("EndToStart",Iq); O24.setEndPoint("StartToEnd",Iq); O24.pasteHTML("<span id='"+i23+"'/>"); o24.pasteHTML("<span id='"+I23+"'/>"); var o1b=this.I1.getElementById(I23); var O1b=this.I1.getElementById(i23); I1y=o1b.parentNode; o4o=O1b.parentNode; o1b.parentNode.removeChild(o1b); O1b.parentNode.removeChild(O1b); }}return {start:I1y,end:o4o } ; }catch (w){return null; }};HTMLEditor.prototype.O4p= function (l4p,Iq){if (!HTMLEditor.is_ie){var lq=this.iq(); if (typeof Iq=="undefined"){try {Iq=this.or(lq); }catch (Ij){alert(this.If("click-to-editor","Click to editing panel.")); this.o18(lq); return false; }}var l2f=Iq.startContainer; var i4p=Iq.startOffset; if (l2f.ownerDocument.id!="EditorDocument"){alert(this.If("click-to-editor","Click to editing panel.")); return false; }if ((Iq.startContainer.nodeType==1 && Iq.startContainer.tagName.toUpperCase()=="TR") || (Iq.endContainer.nodeType==1 && Iq.endContainer.tagName.toUpperCase()=="TR")){var X=this ; setTimeout( function (){alert(X.If("paste-fail","Not correct selection for inserting.")); } ,0); return false; } this.o18(lq); Iq.deleteContents(); try {Iq=this.or(); }catch (Ij){alert(this.If("click-to-editor","Click to editing panel.")); this.o18(lq); return false; }switch (l2f.nodeType){case 3:if (i4p>0)l2f=l2f.splitText(i4p); while (l4p.firstChild)l2f.parentNode.insertBefore(l4p.firstChild,l2f); Iq.setStart(l2f,0); Iq.setEnd(l2f,0); break; case 1:case 013:try { this.o18(lq); if (l2f.childNodes.length>=i4p+1){l2f=l2f.childNodes.item(i4p); while (l4p.firstChild)l2f.parentNode.insertBefore(l4p.firstChild,l2f); var I17=this.I1.createTextNode(""); l2f.parentNode.insertBefore(I17,l2f); l2f=I17; }else {var I17=this.I1.createTextNode(""); if (HTMLEditor.canHaveChildren(l2f)){while (l4p.firstChild)l2f.appendChild(l4p.firstChild); l2f.appendChild(I17); }else {while (l4p.firstChild)l2f.parentNode.insertBefore(l4p.firstChild,l2f); l2f.parentNode.insertBefore(I17,l2f); }l2f=I17; }if (l2f.nodeType==1){var par=l2f.parentNode; var l17=par; var Oh=0; for ( ; Oh<par.childNodes.length; Oh++)if (l2f==par.childNodes.item(Oh))break; Iq.setStart(par,Oh); Iq.setEnd(par,Oh); }else {Iq.setStart(l2f,0); Iq.setEnd(l2f,0); }}catch (Ij){alert(this.If("click-to-editor","Click to editing panel.")); this.o18(lq); return false; }break; }if (HTMLEditor.l11)this.f= true; this.O18(lq,Iq); return true; }else {return null; }} ; HTMLEditor.prototype.I11= function (html,Iq){ this.focusEditor(); var lq=this.iq(); if (typeof Iq=="undefined"){Iq=this.or(lq); }if (HTMLEditor.is_ie){function O2u(o2a,l22){return "\x3cspan class=\""+HTMLEditor.Om+"_script\" style=\'display:none;visibility:hidden;\'>"+l22.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function I2u(o2a,l22,i22,o2v){return l22.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var I4p="\x3cspan id=\""+HTMLEditor.Om+"\">111\x3cspan>\x3c/span>"+html+"</span>"; var o12=HTMLEditor.O12(I4p); var l12=HTMLEditor.i12(I4p); if (!this.NoScript)I4p=I4p.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,O2u); else I4p=I4p.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); var X=this ; try {if (Iq.pasteHTML){Iq.pasteHTML(I4p); }else {var div=this.I1.createElement("DIV"); div.innerHTML=I4p; while (div.firstChild)Iq(0).parentNode.insertBefore(div.firstChild,Iq(0)); Iq(0).parentNode.removeChild(Iq(0)); Iq.remove(0); delete div; }}catch (t){setTimeout( function (){alert(X.If("paste-fail","Not correct selection for inserting.")); } ,0144); return false; }var I2y=this.I1.getElementById(HTMLEditor.Om); I2y.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(I2y, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.Om+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),I2u)+"<span>qqq</span>"; I2y.removeChild(I2y.firstChild); I2y.removeChild(I2y.lastChild); HTMLEditor.I12(I2y,o12); HTMLEditor.o13(I2y,l12); if (I2y.firstChild)I2y.removeChild(I2y.firstChild); if (I2y.firstChild)I2y.removeChild(I2y.firstChild); while (I2y.firstChild)I2y.parentNode.insertBefore(I2y.firstChild,I2y); I2y.parentNode.removeChild(I2y); delete I2y; return true; }else {var div=this.I1.createElement("div"); div.innerHTML=html; var l1v=div.getElementsByTagName("EMBED"); var I30=[]; for (var i=0; i<l1v.length; i++)I30.push(l1v[i]); for (var Oh=0; Oh<I30.length; Oh++){var embed=I30[Oh]; var img=document.createElement("IMG"); var l2z=embed.attributes; img.src=this.Q[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<l2z.length; ++i){var a=l2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); var value=a.value; if (name=="src")name="dummysrc"; else if (name=="bgcolor")name="dummybgcolor"; else if (name=="wmode")name="pseudomode"; img.setAttribute(name,value); }img.getAttribute("type");img.style.cssText="border: 1px dotted #000000; background-image: url('"+(img.getAttribute("type").toLowerCase()=="application/x-mplayer2"?this.Q[3]: this.Q[2])+"'); background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;"; embed.parentNode.insertBefore(img,embed); embed.parentNode.removeChild(embed); }var ie=this.O4p(div,Iq); return ie; }} ; HTMLEditor.prototype.getDocument= function (){return this.I1; };HTMLEditor.prototype.getWindow= function (){if (HTMLEditor.is_Safari)return document.getElementById(this._hiddenContent+"_inner_iframe").contentWindow; else return this._iframe.contentWindow; };HTMLEditor.o4q=[]; HTMLEditor.O4q=null; HTMLEditor.I1e=null; HTMLEditor.l4q= function (){for (var i=0; i<HTMLEditor.o4q.length; i++){HTMLEditor.o4q[i](); }HTMLEditor.o4q=[]; };HTMLEditor.i4q= function (t){function I4q(){setTimeout( function (){HTMLEditor.l4q(); } ,0); HTMLEditor.I1e=null; if (HTMLEditor.O4q!=null){HTMLEditor.od(document.getElementById(HTMLEditor.O4q),"mousedown",HTMLEditor.i4q); HTMLEditor.o19(HTMLEditor.O4q.substr(0,HTMLEditor.O4q.length-("__disabling").length)); }HTMLEditor.O4q=null; }if (HTMLEditor.I1e){try {if (HTMLEditor.I1e.name!="OboutEditorPreview"){I4q(); }else {setTimeout( function (){try {HTMLEditor.I1e.focus(); }catch (t){}} ,0); if (typeof t!=undefined)HTMLEditor._stopEvent(t); return false; }}catch (t){I4q(); }}else I4q(); return true; };HTMLEditor.o4r= function (){if (!HTMLEditor.i4q())setTimeout(HTMLEditor.o4r,01750); else window.focus(); };HTMLEditor.prototype.O4r= function (l4r){var X=this ; if (HTMLEditor.I1e)return; try {HTMLEditor.I1e=window.open("","OboutEditorPreview","toolbar=0,status=1,scrollbars=1,resizable=1,width=600,height=400"); }catch (t){HTMLEditor.I1e=null; return; }if (!HTMLEditor.I1e)return; HTMLEditor.O4q=HTMLEditor.O15(X.mainDivId); if (HTMLEditor.O4q!=null)HTMLEditor.Ik(document.getElementById(HTMLEditor.O4q),"mousedown",HTMLEditor.i4q); function i4r(){try {if (!HTMLEditor.I1e.document)setTimeout(i4r,0144); HTMLEditor.I1e.focus(); }catch (t){HTMLEditor.I1e.close(); HTMLEditor.I1e=null; if (HTMLEditor.O4q!=null){HTMLEditor.od(document.getElementById(HTMLEditor.O4q),"mousedown",HTMLEditor.i4q); HTMLEditor.o19(HTMLEditor.O4q.substr(0,HTMLEditor.O4q.length-("__disabling").length)); }HTMLEditor.O4q=null; X.O4r(l4r); }ix=HTMLEditor.I1e.document; ix.open(); var html=new O2a(); var l29=l4r; var i29= false; function I29(o2a,l22,i22){l29=i22; i29= true; }l4r.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,I29); l4r=l29; if (X.d!=null)html.write(X.d); html.write("<html"+(X.B!=null?X.B: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); var I4r=new RegExp("<title>","gi"); if (X.D==null || !I4r.test(X.D))html.write("<title>Obout Editor Preview</title>"); if (X.D!=null)html.write(X.D); html.write("\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var l2a=0; l2a<X._addCssFiles.length; l2a++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[l2a]+"\" 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(l4r); html.write("</body>"); html.write("</html>"); ix.write(html.toString()); ix.close(); setTimeout(HTMLEditor.o4r,0454); HTMLEditor.o4q.push( function (){X.focusEditor(); } ); }setTimeout(i4r,0); };HTMLEditor.prototype.preview= function (){var X=this ; if (HTMLEditor.I1e)return; X.getContentWait( function (l4r){X.O4r(l4r); } ); };HTMLEditor.prototype.print= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_ie)eval(this._iframe.name+".print()"); else this.getWindow().print(); };HTMLEditor.prototype.SurroundHTML= function (o4s,O4s){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.or(this.iq()); var html=""; var lq=this.iq(); var Iq=this.or(lq); if (HTMLEditor.is_ie && lq.type.toLowerCase()=="control"){ this.o11(); html=Iq.item(0).outerHTML; return this.InsertHTML(o4s+html+O4s); }html=this.i1b(); if (html.length==0){return false; }var o1c=this.O1c(); if (o1c.length<1)return false; this.o11(); var O49=this.I1.createElement("span"); var l49=this.I1.createElement("span"); var l4s=o1c[0].parentNode; var i4s=o1c[o1c.length-1].parentNode; l4s.insertBefore(O49,o1c[0]); if (o1c[o1c.length-1].nextSibling)i4s.insertBefore(l49,o1c[o1c.length-1].nextSibling); else i4s.appendChild(l49); for (var i=0; i<o1c.length; i++){var par=o1c[i].parentNode; var ik=this.I1.createElement("SPAN"); try {function O2u(o2a,l22){return "\x3cspan class=\""+HTMLEditor.Om+"_script\" style=\'display:none;visibility:hidden;\'>"+l22.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function I2u(o2a,l22,i22,o2v){return l22.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var I4p=o4s+(""+o1c[i].data+"").replace(/^\s/,"&nbsp;")+O4s; var o12; if (HTMLEditor.is_ie){o12=HTMLEditor.O12(I4p); if (!this.NoScript)I4p=I4p.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,O2u); else I4p=I4p.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); }ik.innerHTML="!!!<span></span>"+I4p; ik.removeChild(ik.firstChild); ik.removeChild(ik.firstChild); if (HTMLEditor.is_ie){ik.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(ik, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.Om+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),I2u)+"<span>qqq</span>"; ik.removeChild(ik.firstChild); ik.removeChild(ik.lastChild); HTMLEditor.I12(ik,o12); }while (ik.firstChild)par.insertBefore(ik.firstChild,o1c[i]); par.removeChild(o1c[i]); }catch (t){return false; }}if (!HTMLEditor.is_ie){o1c=[]; var O42= false; function O4l(l4l,on){while (l4l){if (l4l==l49){O42= true; return; }if (l4l.nodeType==3){while (l4l.nextSibling && l4l.nextSibling.nodeType==3){l4l.data=""+l4l.data+""+l4l.nextSibling.data+""; l4l.parentNode.removeChild(l4l.nextSibling); }if (HTMLEditor.O13(""+l4l.data+"").length>0)o1c.push(l4l); }else O4l(l4l.firstChild, false); if (O42)return; var i37=l4l.parentNode; if (on)while (l4l.nextSibling==null){l4l=l4l.parentNode; }l4l=l4l.nextSibling; }}O4l(O49, true); Iq=this.I1.createRange(); Iq.setStart(o1c[0],0); Iq.setEnd(o1c[o1c.length-1],(""+o1c[o1c.length-1].data+"").length); this.o18(lq); if (HTMLEditor.l11)this.f= true; this.O18(lq,Iq); }else {lq=this.iq(); var i3l=this.or(lq); var I3l=this.or(lq); try {i3l.moveToElementText(O49); I3l.moveToElementText(l49); i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }catch (t){}}l4s.removeChild(O49); i4s.removeChild(l49); this.I14(); return true; } ; HTMLEditor.prototype.InsertHTML= function (html){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.or(this.iq()); var I4s= false; var div=this.I1.createElement("div"); var o12; if (HTMLEditor.is_ie){o12=HTMLEditor.O12(html); }div.innerHTML=html; for (var i=0; i<div.childNodes.length; i++){var il=div.childNodes.item(i); if (il.nodeType==1 && !HTMLEditor.I33(il))I4s= true; } this.o11(); if (HTMLEditor.is_ie){var lq=this.iq(); var Iq=this.or(lq); if (lq.type.toLowerCase()=="control"){var o17=Iq.item(0); var parent=o17.parentNode; Iq.remove(0); parent.removeChild(o17); }}if (I4s){var l1y=this.i1y(); if (!l1y){ this.O1f( false); return false; }var parent=l1y.parentNode; if (HTMLEditor.is_ie){HTMLEditor.I12(div,o12); }while (div.firstChild)parent.insertBefore(div.firstChild,l1y); parent.removeChild(l1y); this.I14(); return true; }else {var ie=this.I11(html); if (!ie){ this.O1f( false); } this.I14(); return ie; }};HTMLEditor.prototype.i1b= function (){var lq=this.iq(); var Iq=this.or(lq); var o4t=null; if (HTMLEditor.is_ie){o4t=Iq.htmlText; }else {if (HTMLEditor.is_Safari && (lq.type=="Caret" || lq.type=="None"))o4t=""; else {if (HTMLEditor.is_Safari){if (Iq.cloneContents()==null)return ""; }o4t=HTMLEditor.getHTML(Iq.cloneContents(), false); }}return o4t; } ; HTMLEditor.I26= function (i1p,ix,O4t,l4t,i4t){if (HTMLEditor.is_Safari)return; var I4t=0; var o4u=i1p.childNodes.length; if (typeof O4t!="undefined" && O4t!=null)I4t=O4t; if (typeof l4t!="undefined" && l4t!=null)o4u=l4t; for (var i=I4t; i<o4u && i<i1p.childNodes.length; i++){var o1v=i1p.childNodes.item(i);if (o1v.parentNode!=i1p){continue; }switch (o1v.nodeType){case 1:if (o1v.childNodes.length==0 && HTMLEditor.i1j(o1v.tagName) && o1v.tagName.toUpperCase()!="A" && !(o1v.className.length>0 || (o1v.getAttribute("class") && o1v.getAttribute("class").length>0)) && !HTMLEditor.I3a(o1v)){i1p.removeChild(o1v); i--; o4u--; continue; }if (o1v.tagName.toUpperCase()=="SPAN"){while (o1v.childNodes.length==1 && o1v.firstChild.nodeType==1){if (o1v.firstChild.tagName.toUpperCase()=="SPAN" && !HTMLEditor.I3a(o1v.firstChild)){var l2z=HTMLEditor.i3c(o1v.firstChild,[]); var O4u=HTMLEditor.l4u(o1v.firstChild); var i4u=o1v.firstChild; var I4u=i4u.childNodes; while (i4u.firstChild!=null){o1v.insertBefore(i4u.firstChild,i4u); }for (var Oh=0; Oh<O4u.length; Oh++){if (O4u[Oh][1]){try {if (o1v.style[O4u[Oh][0]]){if (O4u[Oh][0].toLowerCase().indexOf("color")>=0){o1v.style[O4u[Oh][0]]=O4u[Oh][1]; }else {try {var O19=o1v.style[O4u[Oh][0]]; o1v.style[O4u[Oh][0]]=o1v.style[O4u[Oh][0]]+" "+O4u[Oh][1]; if (O19==o1v.style[O4u[Oh][0]]){o1v.style[O4u[Oh][0]]=O4u[Oh][1]; }}catch (t){o1v.style[O4u[Oh][0]]=O4u[Oh][1]; }}}else o1v.style[O4u[Oh][0]]=O4u[Oh][1]; }catch (o4v){}}}for (var Oh=0; Oh<l2z.length; Oh++){if (l2z[Oh][1])o1v.setAttribute(l2z[Oh][0],l2z[Oh][1]); }o1v.removeChild(i4u); continue; }else if (o1v.firstChild.tagName.toUpperCase()=="SPAN" && HTMLEditor.I3a(o1v.firstChild)){var l29=o1v.firstChild; o1v.parentNode.insertBefore(o1v.firstChild,o1v); o1v.parentNode.removeChild(o1v); o1v=l29; }break; }var O4v=[]; var l4v=o1v.nextSibling; while (!HTMLEditor.I3a(o1v) && l4v && i+1<o4u && (l4v.nodeType==3 || (l4v.nodeType==1 && (l4v.tagName.toUpperCase()=="SPAN" || (l4v.tagName.toUpperCase()=="BR") && typeof i4t=="undefined") && !HTMLEditor.I3a(l4v)))){if (l4v.nodeType==3){if ((""+l4v.data+"").length==0){l4v.parentNode.removeChild(l4v); l4v=o1v.nextSibling; o4u--; }else {break; }}else {if (l4v.tagName.toUpperCase()=="BR"){O4v.push(l4v); l4v=l4v.nextSibling; }else {var l2z=HTMLEditor.i3c(o1v,[],l4v); var O4u=HTMLEditor.l4u(o1v,l4v); if (l2z.length==0 && O4u.length==0 && o1v.className==l4v.className){var o38=O4v.length; for (var Oh=0; Oh<o38; Oh++){o1v.appendChild(O4v[Oh]); o4u--; }O4v=[]; while (l4v.firstChild)o1v.appendChild(l4v.firstChild); l4v.parentNode.removeChild(l4v); l4v=o1v.nextSibling; o4u--; }else break; }}}if (!HTMLEditor.I3a(o1v) && o1v.className.length==0){var l2z=HTMLEditor.i3c(o1v,[]); var O4u=HTMLEditor.l4u(o1v); if (l2z.length==0 && O4u.length==0){i--; o4u--; while (o1v.firstChild){o1v.parentNode.insertBefore(o1v.firstChild,o1v); o4u++; }o1v.parentNode.removeChild(o1v); continue; }}}if (o1v.parentNode!=null)if (o1v.childNodes.length==0 && HTMLEditor.i1j(o1v.tagName) && o1v.tagName.toUpperCase()!="A" && !(o1v.className.length>0 || (o1v.getAttribute("class") && o1v.getAttribute("class").length>0)) && !HTMLEditor.I3a(o1v)){i1p.removeChild(o1v); i--; o4u--; continue; }else HTMLEditor.I26(o1v,ix); break; }}};HTMLEditor.i4v= function (i1p,O17){var count=0; if (i1p.attributes)for (var i=0; i<i1p.attributes.length; i++){var i2e=i1p.attributes[i]; if (i2e.name.toUpperCase()=="STYLE")continue; if (i2e.name.toUpperCase()=="CLASS" && O17)continue; if (i2e.specified)count++; }return count; };HTMLEditor.i3c= function (i1p,O17,I4v){var O1w=[]; var parent=i1p.parentNode; if (typeof I4v!="undefined")parent=I4v; if (!parent || !parent.tagName || !HTMLEditor.i1j(parent.tagName))parent=null; if (i1p.attributes)for (var i=0; i<i1p.attributes.length; i++){var i2e=i1p.attributes[i]; var o4w= false; for (var Oh=0; Oh<O17.length; Oh++)if (i2e.name.toUpperCase()==O17[Oh].toUpperCase()){o4w= true; break; }if (o4w)continue; if (i2e.name.toUpperCase()=="STYLE")continue; if (i2e.name.toUpperCase().substr(0,4)=="_MOZ")continue; if (i2e.specified)if (parent && parent.attributes && parent.attributes[i2e.name]){var O4w=parent.attributes[i2e.name]; if (O4w){if (i2e.name!=O4w.name || i2e.value!=O4w.value){O1w.push([i2e.name,i2e.value]); }}}else {if (i2e.name.toUpperCase()=="CLASS" && i2e.value=="")continue; O1w.push([i2e.name,i2e.value]); }}return O1w; };HTMLEditor.l4u= function (i1p,I4v){var O1w=[]; var parent=i1p.parentNode; if (typeof I4v!="undefined")parent=I4v; if (!parent || !parent.tagName || !HTMLEditor.i1j(parent.tagName))parent=null; function l4w(i,i4w){i4w=""+i4w; if (i.toLowerCase()=="textdecoration"){var I4w=i4w.split(" "); for (var Oh=0; Oh<I4w.length; Oh++){O1w.push([i,HTMLEditor.O13(I4w[Oh])]); }}else O1w.push([i,i4w]); }for (var i in i1p.style){if (i && typeof i=="string" && i!="accelerator"){var style=i1p.style[i]; if (style && typeof style=="string" && style!="accelerator"){if (parent && parent.style){var o4x=parent.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=o4x){l4w(i,style); }}else {if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length"){l4w(i,style); }}}}}if (typeof I4v!="undefined")for (var i in parent.style){if (i && typeof i=="string" && i!="accelerator"){var style=parent.style[i]; if (style && typeof style=="string" && style!="accelerator"){var o4x=i1p.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=o4x){l4w(i,style); }}}}return O1w; };HTMLEditor.O4x= function (il){var name=il.tagName.toUpperCase(); switch (name){case "TD":case "LI":case "FIELDSET":case "FORM":return true; case "DIV":if (il.className==HTMLEditor.Om)return false; else return true; default:return false; }};HTMLEditor.I33= function (il,on){if (il && il.style && il.style.display && il.style.display.toLowerCase()=="inline")return true; var name=il.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return false; }}switch (name){case "TBODY":case "TR":case "TD":if (typeof on!="undefined"){var par=il.parentNode; while (par && par.tagName && par.tagName.toUpperCase()!="TABLE")par=par.parentNode; if (par.tagName.toUpperCase()=="TABLE" && par.style && par.style.display && par.style.display.toLowerCase()=="inline")return true; }case "P":case "PRE":case "TABLE":case "OL":case "UL":case "LI":case "HR":case "DIV":case "BLOCKQUOTE":case "FORM":case "FIELDSET":case "LEGEND":return false; default:return true; }};HTMLEditor.l4x=[["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.i4x=["DIV","P","TD","TR","TABLE","TBODY","LI","OL","UL","FORM","INPUT"]; HTMLEditor.o2h= function (i1p){for (var i=0; i<HTMLEditor.i4x.length; i++)if (HTMLEditor.i4x[i].toUpperCase()==i1p.tagName.toUpperCase()){return true; }if (HTMLEditor.is_ie && i1p.scopeName.toUpperCase()!="HTML")return true; return false; };HTMLEditor.O1j= function (I4x){if (typeof I4x!="number"){return I4x; }var o1h=I4x&0377; var l30=(I4x>>8)&0377; var b=(I4x>>020)&0377; return "rgb("+o1h+","+l30+","+b+")"; } ; HTMLEditor.o4y= function (I4x){function i2z(I2z){return (I2z<020)?("0"+I2z.toString(020)):I2z.toString(020); } ; if (typeof I4x=="number"){var o1h=I4x&0377; var l30=(I4x>>8)&0377; var b=(I4x>>020)&0377; return "#"+i2z(o1h)+i2z(l30)+i2z(b); }if (I4x.substr(0,3)=="rgb"){var I2j=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/; if (I4x.match(I2j)){var o1h=parseInt(RegExp.$1); var l30=parseInt(RegExp.$2); var b=parseInt(RegExp.$3); return "#"+i2z(o1h)+i2z(l30)+i2z(b); }return null; }if (I4x.substr(0,1)=="#"){return I4x; }return null; } ; HTMLEditor.Iw= function (window,O4y){if (!/MSIE (5|6|7|8)/.test(navigator.userAgent))return; if ((/MSIE (7|8)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat")return; var l4y=/(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i,i4y,ix=window.document,I4y=[],o4z= {onhover:{O4z: "onmouseover",l4z: "onmouseout" } ,onactive:{O4z: "onmousedown",l4z: "onmouseup" }} ; var i4z=(typeof O4y=="undefined")?ix:O4y; function parseStylesheets(){window.attachEvent("onunload",I4z); var i2a=ix.styleSheets,I2a=i2a.length; for (var i=0; i<I2a; i++)O2b(i2a[i]); }function O2b(l2b){if (l2b.imports){try {var imports=l2b.imports,I2a=imports.length; for (var i=0; i<I2a; i++)O2b(l2b.imports[i]); }catch (o50){}}try {var rules=(i4y=l2b).rules,I2a=rules.length; for (var Oh=0; Oh<I2a; Oh++)i2b(rules[Oh]); }catch (o50){}}function i2b(rule){var select=rule.selectorText,style=rule.style.cssText; if (!l4y.test(select) || !style)return; var O50=select.replace(/[^:]+:([a-z-]+).*/i,"on$1"); var l50=select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi,".$2"+O50); var className=(/\.([a-z0-9_-]*on(hover|active))/i).exec(l50)[1]; var i50=select.replace(/:(hover|active).*$/,""); var elements=I50(i50); if (elements.length==0)return; i4y.addRule(l50,style); for (var i=0; i<elements.length; i++)new o51(elements[i],className,o4z[O50]); }function o51(l2f,className,O51){if (!l2f.hovers)l2f.hovers= {} ; if (l2f.hovers[className])return; l2f.hovers[className]= true; l51(l2f,O51.O4z, function (){l2f.className+=" "+className; } ); l51(l2f,O51.l4z, function (){l2f.className=l2f.className.replace(new RegExp("\\s+"+className,"g"),""); } ); }function l51(l2f,type,i51){l2f.attachEvent(type,i51); I4y[I4y.length]= {l2f:l2f,type:type,i51:i51 } ; }function I4z(){for (var t,i=0; i<I4y.length; i++){t=I4y[i]; t.l2f.detachEvent(t.type,t.i51); }}function I50(rule){var I51,o52=[i4z]; I51=rule.split(" "); for (var i=0; i<I51.length; i++){o52=O52(I51[i],o52); }return o52; }function O52(select,elements){var O1w,l2f,o52=[]; var l52=(/#([a-z0-9_-]+)/i).exec(select); if (l52)return [ix.getElementById(l52[1])]; var i52=(/\.([a-z0-9_-]+)/i).exec(select); var tagName=select.replace(/(\.|#|:)[a-z0-9_-]+/i,""); var I52=i52?new RegExp("\\b"+i52[1]+"\\b"): false; for (var i=0; i<elements.length; i++){O1w=tagName?elements[i].all.tags(tagName):elements[i].all; for (var Oh=0; Oh<O1w.length; Oh++){l2f=O1w[Oh]; if (I52 && !I52.test(l2f.className))continue; o52[o52.length]=l2f; }}return o52; }parseStylesheets(); };HTMLEditor.prototype.parseInt=parseInt; HTMLEditor.prototype.isNaN=isNaN; HTMLEditor.prototype.Object=Object; HTMLEditor.prototype.Math=Math; HTMLEditor.o53= function (s){return new String(s+"rnd="+Math.random()).replace(".",""); };function O2a(O53){ this.O53=(typeof O53!="undefined" && O53); this.text=[]; this.write= function (Ih){if (!this.O53 || (this.text.length==0 && Ih!="\n") || (this.text.length>0 && (this.text[this.text.length-1]!="\n" || Ih!="\n")))this.text[this.text.length]=Ih; };this.writeln= function (Ih){ this.text[this.text.length]=Ih+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}HTMLEditor.prototype.l53= function (X,i53,I1w,I53,o54,O54,l54){ this.X=X; this.o54=o54; this.O54=O54; this.enableEvents= function (){} ; this.disableEvents= function (){} ; if (!X.o2){X.o2=[]; HTMLEditor.o2=X.o2; }if (X.o2.length>0)X.o2[X.o2.length-1].disableEvents(); X.o2.push(this ); this.number=X.o2.length; X.I10=null; if (HTMLEditor.is_ie && (X.iq().type=="Text" || X.iq().type=="None"))try {X.I10=X.or(X.iq()).duplicate(); }catch (t){}if (HTMLEditor.is_Safari){var i54=X.iq(); var I54=X.or(i54); X.I10=I54.cloneRange(); } this.iframe=this.openPopup(i53,I1w,I53,O54,l54); };HTMLEditor.prototype.l53.prototype.middle= function (){var o55=this ; var X=this.X; var popup=this.iframe; var O55; var O9=parseInt(popup.clientWidth); var l9=parseInt(popup.clientHeight); if (O9==0)O9=parseInt(popup.offsetWidth); if (l9==0)l9=parseInt(popup.offsetHeight); var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var l2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var l55=l2s/2-l9/2+i55(X.O1.document); if (l55<=0)l55=024; popup.style.top=l55+"px"; popup.style.left=O2s/2-O9/2+_GetScrollLeft(X.O1.document)+"px"; };HTMLEditor.prototype.clearPopups= function (I55){var X=this ; var ie= false; while (X.o2!=null && X.o2.length>0){var o56=X.o2[X.o2.length-1]; if (typeof I55!="undefined"){if (typeof o56.o54=="function")o56.o54(); o56.O56(null);}else o56.l56(); ie= true; }function i56(){if (X.I56 && X.I56.length>0)while (X.I56.length>0){var il=X.I56.pop(); var popup=il[1]; popup.parentNode.removeChild(popup); }}if (typeof I55=="undefined")setTimeout(i56,ie?01750: 0); else i56(); HTMLEditor.I1e=null; if (o57!=null){o57.parentNode.removeChild(o57); o57=null; }if (O57!=null){O57.parentNode.removeChild(O57); O57=null; }return ie; };HTMLEditor.prototype.l53.prototype.openPopup= function (i53,I1w,I53,O54,l54){var o55=this ; var X=this.X; var popup; function l57(event){if (X.o2)if (o55.number==X.o2.length){if (o55.iframe.contentWindow.document.body.childNodes.item(0).childNodes.length>1)if (!o55.iframe.contentWindow.document.getElementById("closePopup").disabled){o55.O56(o55.o54); }}if (event)HTMLEditor._stopEvent(event); return false; } ; var i57; if (HTMLEditor.is_Safari)i57=I1w+"_safari"; else i57=I1w; if (!X.I56)X.I56=[]; if (typeof O54=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.Ok)){for (var i=0; i<X.I56.length; i++){if (X.I56[i][0]==i57){var ix; popup=X.I56[i][1]; popup.style.display=""; popup.style.zIndex=""+(045070+X.o2.length)+""; ix=popup.contentWindow.document; ix.getElementById("title").innerHTML=i53; HTMLEditor.Ik(ix.getElementById("closePopup"),"click",l57); o55.l56=l57; try {O54(popup); }catch (t){alert("Exception in open Popup("+i53+"): "+t.message); } ; return popup; }}}popup=X.A.ownerDocument.createElement("iframe"); if (typeof O54=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.Ok)){X.I56.push([i57,popup]); }if (HTMLEditor.is_ie)popup.src="javascript:false;"; popup.style.visibility="hidden"; if (HTMLEditor.is_Safari)popup.className=i57; else popup.className=i57; popup.style.borderColor="white black black white"; popup.style.borderWidth="1px"; popup.style.borderStyle="solid"; popup.style.zIndex=""+(045070+X.o2.length)+""; popup.style.display=""; popup.style.position="absolute"; popup.scrolling="no"; popup.style.margin="0px";popup.style.padding="0px";popup.marginHeight="0"; popup.marginWidth="0"; if (HTMLEditor.Ok)popup.name=X._hiddenContent+"_popup_"+i57; var O55; var O9=0144; var l9=0144; var I57=X.A; var il=X._textArea.parentNode.parentNode; if (!X._InsideOboutWindow)while (il!=X.A){if (HTMLEditor.Oz(il,"position").toLowerCase()=="absolute"){I57=X._textArea.parentNode.parentNode; break; }il=il.parentNode; }var i2s=HTMLEditor.I2s(I57, false); var o1z=i2s.o1z,_top=i2s._top; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var l2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var o58=l2s/2-l9/2+i55(X.O1.document); var O58=O2s/2-O9/2+_GetScrollLeft(X.O1.document); popup.style.top=(o58-_top)+"px"; popup.style.left=(O58-o1z)+"px"; I57.appendChild(popup); function O2c(){var ix=popup.contentWindow.document; if (!ix){if (!HTMLEditor.is_ie){window.setTimeout(O2c,012); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var O55; var O9=parseInt(popup.clientWidth); var l9=parseInt(popup.clientHeight); if (O9==0)O9=parseInt(popup.offsetWidth); if (l9==0)l9=parseInt(popup.offsetHeight); var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var l2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var o58=l2s/2-l9/2+i55(X.O1.document); var O58=O2s/2-O9/2+_GetScrollLeft(X.O1.document); popup.style.top=(o58-_top)+"px"; popup.style.left=(O58-o1z)+"px"; ix.open(); var html=new O2a(); html.write("<html style='height:100%'>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.Q[014]))?X.I7: "")+X.Q[014]+"\" media=\"all\" />"); html.write("</head>"); html.write("<body style='height:100%'>"); html.write("<div id='mainFrame' class='frame' style='height:100%'>"); html.write("<table id='header' class='header' style='width:100%;margin:0px;padding:0px;' border=0><tr><td nowrap align=left style='padding-left:4px;'><span id='title'>title</span></td><td align=right style='width:100%'><img id='closePopup' src='"+X.Q[7]+"' alt='' /></td></tr></table>"); html.write("</div>"); html.write("</body>"); html.write("\x3ca href=\""+X.I7+"\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); ix.write(html.toString()); ix.close(); popup.style.visibility="visible"; function Ox(){var l58; var i58; var I58; var o59; try {l58=ix.getElementById("header"); i58=ix.getElementById("closePopup"); I58=ix.getElementById("title"); o59=ix.getElementById("mainFrame"); l58.className="header"; o59.className="frame"; I58.innerHTML=i53; HTMLEditor.Ik(i58,"click",l57); o55.l56=l57; HTMLEditor.Ik(l58,"mousedown", function (event){if (event.srcElement && event.srcElement.tagName.toUpperCase()=="IMG")return false; var ie=o55.O59(HTMLEditor.is_ie?popup.contentWindow.event:event); return ie; } ); if (HTMLEditor.is_Safari){ix.body.addEventListener("mouseup",l59, false); }function i59(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){ix.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {ix.onmousedown=i59; }if (!HTMLEditor.is_ie){setTimeout( function (){popup.style.top=parseInt(popup.style.top)-1+"px"; popup.style.left=parseInt(popup.style.left)-1+"px"; } ,2); setTimeout( function (){popup.style.top=parseInt(popup.style.top)+1+"px"; popup.style.left=parseInt(popup.style.left)+1+"px"; } ,5); }if (typeof I53=="function"){try {I53(popup); }catch (t){alert("Exception in open Popup("+i53+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var I59=ix.getElementsByTagName("input"); for (var i=0; i<I59.length; i++){I59[i].setAttribute("autocomplete","off"); }}}catch (t){try {HTMLEditor.od(i58,"click",l57); }catch (t){}setTimeout(Ox,012); return false; }}setTimeout(Ox,012); } ; setTimeout(O2c,024); return popup; } ; HTMLEditor.prototype.l53.prototype.O56= function (o54){var popup=this ; var X=this.X; var _iframe=this.iframe; var O1y=this.O1y; function o5a(i2d,i1p){var ik; try {ik=i2d.removeChild(i1p); delete ik; }catch (t){}}if (X.o2==null)return false; var O5a=X.o2.pop(); if (X.o2.length>0)X.o2[X.o2.length-1].enableEvents(); setTimeout( function (){if (X.o2!=null)if (X.o2.length==0){X.o2=null; HTMLEditor.o2=null; ; X.popupClosed(); if (X.I10){if (HTMLEditor.is_Safari){X.O18(X.iq(),X.I10); X.I10=null; }if (HTMLEditor.is_ie){try {X.I10.select(); }catch (t){}}X.I10=null; }try {X.focusEditor(); }catch (t){}}if (typeof o54=="function"){try {o54(); }catch (t){} ; }try {HTMLEditor.od(_iframe.contentWindow.document.getElementById("closePopup"),"click",popup.l56); _iframe.style.display="none"; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (typeof popup.O54!="function" || (HTMLEditor.is_Safari && !HTMLEditor.Ok)){o5a(_iframe.parentNode,_iframe); delete popup; }}catch (t){}} ,012); return false; };var l5a=null; var O57=null,o57=null; var i5a=0; var I5a=0; function o5b(){if (document.all && document.body.attachEvent){if (document.body.setCapture)document.body.setCapture(); document.body.attachEvent("onmousemove",O5b); document.body.attachEvent("onmouseup",l59); }else if (document.addEventListener){document.addEventListener("mousemove",O5b, false); document.addEventListener("mouseup",l59, false); }l5b(l5a); }function l59(){if (document.all && document.body.detachEvent){document.body.detachEvent("onmousemove",O5b); document.body.detachEvent("onmouseup",l59); if (document.body.releaseCapture)document.body.releaseCapture(); }else if (document.removeEventListener){document.removeEventListener("mousemove",O5b, false); document.removeEventListener("mouseup",l59, false); }i5b(l5a); l5a=null; }function O5b(t){try {I5b(t); HTMLEditor._stopEvent(t); i5a=t.clientX; I5a=t.clientY; }catch (w){l59(); }return false; }function l5b(o5c){if (o57!=null && o5c.iframe.parentNode!=o57.parentNode){o57.parentNode.removeChild(o57); o57=null; }if (O57!=null && o5c.iframe.parentNode!=O57.parentNode){O57.parentNode.removeChild(O57); O57=null; }if (o57==null){o57=document.createElement("div"); o57.style.display=""; o57.style.position="absolute";o57.style.margin="0px";o57.style.padding="0px";o57.style.top="0px"; o57.style.left="0px"; var O55=parseInt(document.body.clientHeight); if (O55<=0)O55=document.body.offsetHeight; o57.style.height=O55+"px"; O55=parseInt(document.body.clientWidth); if (O55<=0)O55=document.body.offsetWidth; o57.style.width=O55+"px"; o57.style.zIndex="20000"; o5c.iframe.parentNode.appendChild(o57); }if (O57==null){O57=document.createElement("SPAN"); O57.className="MoveSpan"; O57.style.position="absolute"; O57.style.zIndex=0141520; o5c.iframe.parentNode.appendChild(O57); }O57.style.visibility="visible"; o57.style.visibility="visible"; var O5c=parseInt(o5c.iframe.style.borderTopWidth)*2; O57.style.top=o5c.iframe.style.top; O57.style.left=o5c.iframe.style.left; var O9=o5c.iframe.clientWidth; var l9=o5c.iframe.clientHeight; if (O9==0)O9=o5c.iframe.offsetWidth; if (l9==0)l9=o5c.iframe.offsetHeight; O57.style.width=parseInt(O9)+((HTMLEditor.is_ie)?(parseInt(O5c)): (0-parseInt(O5c)))+"px"; O57.style.height=parseInt(l9)+((HTMLEditor.is_ie)?(parseInt(O5c)): (0-parseInt(O5c)))+"px"; O57.style.cursor="move"; o57.style.cursor="move"; }function i5b(o5c){try {o5c.iframe.style.top=O57.style.top; o5c.iframe.style.left=O57.style.left; O57.style.visibility="hidden"; o57.style.visibility="hidden"; }catch (t){}}function I5b(t){var l5c=l5a.i5c; var I5c=l5a.o5d; var il=O57; var left=0; var top=0; if (document.all){left=t.clientX*1+_GetScrollLeft(document)-l5c; top=t.clientY*1+i55(document)-I5c; }else {left=t.pageX*1-l5c; top=t.pageY*1-I5c; }if (left<0){left=0; }if (top<0){top=0; }il.style.left=(left-l5a.o1z)+"px"; il.style.top=(top-l5a._top)+"px"; if (HTMLEditor.is_Safari){l5a.iframe.style.top=O57.style.top; l5a.iframe.style.left=O57.style.left; }}HTMLEditor.prototype.l53.prototype.O59= function (t){if (!HTMLEditor.is_ie && t.target.tagName.toUpperCase()=="IMG" && t.target.id=="closePopup")return true; l5a=this ; this.i5c=(t.offsetX==null)?t.layerX:t.offsetX; this.o5d=(t.offsetY==null)?t.layerY:t.offsetY; if (HTMLEditor.is_ie){var il=t.srcElement; while (il && il.tagName.toUpperCase()!="BODY"){ this.i5c+=parseInt(il.offsetLeft); this.o5d+=parseInt(il.offsetTop); il=il.offsetParent; if (il){if (il.clientLeft)this.i5c+=parseInt(il.clientLeft); if (il.clientTop)this.o5d+=parseInt(il.clientTop); }}var O5c=parseInt(this.iframe.style.borderWidth)*2; this.i5c+=O5c; this.o5d+=O5c; }i5a=t.clientX; I5a=t.clientY; var i2s=HTMLEditor.I2s(this.iframe.parentNode, false); this._top=i2s._top; this.o1z=i2s.o1z; HTMLEditor._stopEvent(t); o5b(); return false; } ; HTMLEditor.I2s= function (I57,on){var position=HTMLEditor.O5d(I57); if (HTMLEditor.is_ie && !on){var borderTopWidth; var borderLeftWidth; if ((/MSIE (7)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat"){borderTopWidth=2; borderLeftWidth=2; }else {var l5d=(document.compatMode=="BackCompat")?document.body:document.documentElement; var top=HTMLEditor.Oz(l5d,"border-top-width").toUpperCase(); borderTopWidth=parseInt(HTMLEditor.Oz(l5d,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; if (borderTopWidth==0){if (top=="THIN")borderTopWidth=1; else if (top=="MEDIUM")borderTopWidth=2; else if (top=="THICK")borderTopWidth=4; }var left=HTMLEditor.Oz(l5d,"border-left-width").toUpperCase(); borderLeftWidth=parseInt(HTMLEditor.Oz(l5d,"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 l5d.border!="undefined" && l5d.border!=null && !isNaN(parseInt(l5d.border)))borderLeftWidth=borderTopWidth=parseInt(l5d.border); }position.y-=borderTopWidth; position.x-=borderLeftWidth; }else if (HTMLEditor.l11){position.y--; position.x--; }return {_top:position.y,o1z:position.x } ; };HTMLEditor.getOffset= function (i1p){var position=HTMLEditor.I2s(i1p, false); return {y:position._top,x:position.o1z } ; };function i55(i5d){if (i5d.documentElement && i5d.documentElement.scrollTop){return i5d.documentElement.scrollTop; }else {return i5d.body.scrollTop; }}function obout_scrollElement(Ic){try {var anchor; if (document.all)anchor=document.createElement("td"); else anchor=document.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; if (!document.all)Ic.parentNode.insertBefore(anchor,Ic); else {var I5d=document.createElement("td"); I5d.style.width="0px"; I5d.style.height="20px"; Ic.parentNode.insertBefore(I5d,Ic); I5d.focus(); Ic.parentNode.removeChild(I5d); var O1v=Ic.nextSibling; if (O1v==null)Ic.parentNode.appendChild(anchor); else Ic.parentNode.insertBefore(anchor,O1v); }anchor.focus(); if (!document.all)anchor.blur(); Ic.parentNode.removeChild(anchor); }catch (t){}}function _GetScrollDiffer(Ic,on){if (document.all && document.compatMode!="BackCompat")return true; do {Ic=Ic.parentNode; if (Ic.clientHeight>0 && Ic.scrollHeight && Ic.scrollHeight>0)if (Ic.scrollHeight>Ic.clientHeight){return true; }}while (Ic && Ic.tagName.toUpperCase()!="BODY");return false; }function _GetScrollLeft(i5d){if (i5d.documentElement && i5d.documentElement.scrollLeft){return i5d.documentElement.scrollLeft; }else {return i5d.body.scrollLeft; }}HTMLEditor.prototype._Mozilla= function (o5e){if (!HTMLEditor.is_ie && !o5e && HTMLEditor.O13(this.i1b()).length>0){var i37=this.I1.body.cloneNode( true); var lq=this.iq(); var o1c=this.or(lq); this.o18(lq); var il=o1c.startContainer; var O5e=o1c.startOffset; var l5e=[]; while (il.nodeType==3 || il.tagName.toUpperCase()!="BODY"){var o38=0; while (il.previousSibling){o38++; il=il.previousSibling; }l5e.push(o38); il=il.parentNode; }il=o1c.endContainer; var i5e=o1c.endOffset; var I5e=[]; while (il.nodeType==3 || il.tagName.toUpperCase()!="BODY"){var o38=0; while (il.previousSibling){o38++; il=il.previousSibling; }I5e.push(o38); il=il.parentNode; } this.I1.body.innerHTML=""; while (i37.firstChild){ this.I1.body.appendChild(i37.firstChild); }var o5f=this.I1.body; for (var i=l5e.length-1; i>=0; i--){o5f=o5f.childNodes.item(l5e[i]); }var O5f=this.I1.body; for (var i=I5e.length-1; i>=0; i--){O5f=O5f.childNodes.item(I5e[i]); }var X=this ; this.O1.setTimeout( function (){lq=X.iq(); o1c=X.or(); o1c.setStart(o5f,O5e); o1c.setEnd(O5f,i5e); X.O18(lq,o1c); } ,012); }};HTMLEditor.O5a= function (){ this.iframe=null; this.l5f=null; this.i5f=null; this.I5f=null; };HTMLEditor.prototype.openPopup= function (i53,I1w,I53,o54,l54){var X=this ; if (X.o2==null)if (HTMLEditor.is_Safari){var lq=X.iq(); var Iq=X.or(lq); X.I10=Iq.cloneRange(); }if (HTMLEditor.is_ie && (X.iq().type=="Text" || X.iq().type=="None"))try {X.I10=X.or(X.iq()).duplicate(); }catch (t){}function O2a(){ this.text=[]; this.write= function (Ih){ this.text[this.text.length]=Ih; };this.writeln= function (Ih){ this.text[this.text.length]=Ih+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}var popup=X.O1.document.createElement("iframe"); popup.id=X._hiddenContent+"_ifr_popup_"+I1w; if (HTMLEditor.is_ie)popup.src="javascript:false;"; var O5a=new HTMLEditor.O5a(); O5a.iframe=popup; O5a.enableEvents= function (){} ; O5a.disableEvents= function (){} ; if (!this.o2){ this.o2=[]; HTMLEditor.o2=this.o2; }if (this.o2.length>0)this.o2[X.o2.length-1].disableEvents(); this.o2.push(O5a); O5a.number=this.o2.length; O5a.o54=o54; if (typeof l54=="undefined")popup.className=I1w+"_safari"; else popup.className=I1w; popup.style.borderColor="white black black white"; popup.style.borderWidth="1px"; popup.style.borderStyle="solid"; popup.style.display=""; popup.style.position="absolute";popup.scrolling="no"; popup.style.margin="0px";popup.style.padding="0px";popup.marginHeight="0"; popup.marginWidth="0"; var O55; var O9=0144; var l9=0144; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var l2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; popup.style.top=l2s/2-l9/2+X.A.scrollTop+"px"; popup.style.left=O2s/2-O9/2+X.A.scrollLeft+"px"; this.A.appendChild(popup); function l57(event){if (HTMLEditor.is_ie)event=popup.contentWindow.event; if (X.o2)if (O5a.number==X.o2.length)if (event.type=="click")X.O56(O5a.o54); HTMLEditor._stopEvent(event); return false; } ; function o5g(){popup=X.O1.document.getElementById(X._hiddenContent+"_ifr_popup_"+I1w); O5a.ix=popup.document; if (!O5a.ix){if (HTMLEditor.O29 || HTMLEditor.l11){X.O1.setTimeout(o5g,012); return false; }else {X.O1.alert("ERROR: IFRAME can't be initialized."); }}var O55; var O9=(typeof(popup.clientWidth)=="number")?(popup.clientWidth): (X.parseInt(popup.clientWidth)); var l9=(typeof(popup.clientHeight)=="number")?(popup.clientHeight): (X.parseInt(popup.clientHeight)); var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var l2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; popup.style.top=l2s/2-l9/2+X.A.scrollTop+"px"; popup.style.left=O2s/2-O9/2+X.A.scrollLeft+"px"; O5a.ix.open(); var html=new O2a(); html.write("<html>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.Q[014]))?X.I7: "")+X.Q[014]+"\" media=\"all\" />"); html.write("</head>"); html.write("<body>"); html.write("<div id='mainFrame' class='frame'>"); html.write("<div id='header' class='header'><img id='closePopup' src='"+X.Q[7]+"' alt='' /><span id='title'>Insert Image</span></div>"); html.write("</div>"); html.write("</body>"); html.write("\x3ca href=\""+X.I7+"/\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); O5a.ix.write(html.toString()); O5a.ix.close(); function Ox(){var l58; var i58; var I58; var o59; try {l58=O5a.ix.getElementById("header"); i58=O5a.ix.getElementById("closePopup"); I58=O5a.ix.getElementById("title"); o59=O5a.ix.getElementById("mainFrame"); l58.className="header"; o59.className="frame"; I58.innerHTML=i53; i58.onclick=l57; X.l18(); function O5g(Ij){if (Ij)if (Ij.type=="mousedown" && Ij.button!=2){O5a.l5g=new X.Object; O5a.l5g.top=X.parseInt(popup.style.top)+"px"; O5a.l5g.left=X.parseInt(popup.style.left)+"px"; O5a.l5g.clientY=Ij.clientY; O5a.l5g.clientX=Ij.clientX; O5a.i5g= true; if (HTMLEditor.is_ie){popup.unselectable="on"; for (var i=0; i<O5a.ix.all.length; i++)O5a.ix.all(i).unselectable="on"; }}else if (Ij.type=="mouseup" || Ij.type=="mouseout"){O5a.i5g= false; delete O5a.l5g; O5a.l5g=null; if (HTMLEditor.is_ie){popup.unselectable="off"; for (var i=0; i<O5a.ix.all.length; i++)O5a.ix.all(i).unselectable="off"; }}else if (Ij.type=="mousemove"){if (O5a.i5g){O5a.l5g.top+=Ij.clientY-O5a.l5g.clientY; O5a.l5g.left+=Ij.clientX-O5a.l5g.clientX; O5a.iframe.style.top=O5a.l5g.top+"px"; O5a.iframe.style.left=O5a.l5g.left+"px"; }}return true; }HTMLEditor.Ow(l58,["mousedown","mouseup","mousemove","mouseout"], function (event){return O5g(HTMLEditor.is_ie?popup.contentWindow.event:event); } ); function i59(t){if (t.target.tagName.toUpperCase()=="INPUT" || t.target.tagName.toUpperCase()=="TEXTAREA" || t.target.tagName.toUpperCase()=="SELECT")return true; if (HTMLEditor.is_Safari)if (t.target.tagName.toUpperCase()=="TABLE" || t.target.tagName.toUpperCase()=="TR" || t.target.tagName.toUpperCase()=="TD" || t.target.tagName.toUpperCase()=="DIV")return true; return false; }if (HTMLEditor.is_ie){O5a.ix.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {O5a.ix.onmousedown=i59; }if (!HTMLEditor.is_ie){X.O1.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)-1+"px"; popup.style.left=X.parseInt(popup.style.left)-1+"px"; } ,2); X.O1.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)+1+"px"; popup.style.left=X.parseInt(popup.style.left)+1+"px"; } ,5); }if (typeof I53=="function"){try {I53(O5a.iframe); }catch (t){X.O1.alert("Exception in open Popup("+i53+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var I59=O5a.ix.getElementsByTagName("input"); for (var i=0; i<I59.length; i++){I59[i].setAttribute("autocomplete","off"); I59[i].onfocus= function (){O5a.I5f=this ; } ; }}}catch (t){try {HTMLEditor.od(i58,"click",l57); }catch (t){}X.O1.setTimeout(Ox,012); return false; }}X.O1.setTimeout(Ox,012); } ; X.O1.setTimeout(o5g,024); return O5a.iframe; } ; HTMLEditor.prototype.O56= function (o54){var X=this ; function o5a(i2d,i1p){var ik; try {ik=i2d.removeChild(i1p); delete ik; }catch (t){}}if (X.o2){var O5a=X.o2.pop(); if (X.o2.length>0)X.o2[X.o2.length-1].enableEvents(); if (HTMLEditor.is_Safari){X.O1.setTimeout( function (){if (X.o2==null || X.o2.length==0)if (HTMLEditor.is_Safari)if (X.I10){X.O18(X.iq(),X.I10); X.I10=null; }if (typeof o54=="function"){try {o54(); }catch (t){} ; }if (O5a.I5f){O5a.I5f.blur(); }var lq=X.iq(); var Iq=X.or(lq); X.O18(lq,Iq); X.focusEditor(); X.focusEditor(); o5a(X.A,O5a.iframe); X.O1.setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); X.O18(lq,Iq); X.focusEditor(); X.focusEditor(); } ,012); } ,012); }else {if (typeof o54=="function"){try {o54(); }catch (t){} ; }o5a(X.A,O5a.iframe); }if (X.o2.length==0){X.o2=null; HTMLEditor.o2=null; X.popupClosed(); if (HTMLEditor.is_ie)if (X.I10){try {X.I10.select(); }catch (t){} ; }try {X.focusEditor(); }catch (t){}}}return false; };HTMLEditor.prototype._setClassName= function (name){try {if (this.l1 && this.mode()=="html" && !this.isPopup()){var l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(this.i1b()): ""; var lq=this.iq(); var Iq=this.or(lq); var o1c=null; var I5g= false; if (this.lr())return; if ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0)){o1c=this.O1c(); }else if (!HTMLEditor.is_Safari){o1c=this.o3x(); I5g= true; }if (o1c!=null && o1c.length>0){var o5h= false; this.o11(); for (var i=0; i<o1c.length; i++){var par=o1c[i].parentNode; var O42= false; try {while (par && par.childNodes.length==1 && HTMLEditor.i1j(par.tagName)){var Il=par.tagName.toUpperCase(); var O5h=par.style?par.style.cssText: ""; var l5h=HTMLEditor.i3c(par,["class"]); if (Il=="SPAN" && par.className!=HTMLEditor.Om && l5h.length==0 && (par.className.length>0 || name.length>0)){o5h= true; par.className=name; if (name==""){par.removeAttribute("class"); if (O5h.length==0){var parent=par.parentNode; while (par.firstChild)parent.insertBefore(par.firstChild,par); parent.removeChild(par); }}O42= true; break; }par=par.parentNode; }}catch (t){ this.O1.alert(""+i+" "+o1c.length+" : "+t.message); }par=o1c[i].parentNode; if (!O42){if (name !== ""){o5h= true; var ik=this.I1.createElement("SPAN"); ik.className=name; par.insertBefore(ik,o1c[i]); ik.appendChild(o1c[i]); }}}if (I5g){if (HTMLEditor.is_ie && this.O3x!=null){var lq=this.iq(); var Iq=this.or(lq); Iq.moveToBookmark(this.O3x); Iq.select(); this.O3x=null; }else if (this.O3x!=null){if (this.O3x[0].nodeType==3){var lq=this.iq(); var Iq=this.I1.createRange(); Iq.setStart(this.O3x[0],this.O3x[1]); Iq.setEnd(this.O3x[0],this.O3x[1]); this.o18(lq); this.O18(lq,Iq); }else { this.l3x(this.O3x[0],this.O3x[0]); this.O3x[0].parentNode.removeChild(this.O3x[0]); } this.O3x=null; }}else {if (!HTMLEditor.is_ie){if (o1c.length>0){Iq=this.I1.createRange(); Iq.setStart(o1c[0],0); Iq.setEnd(o1c[o1c.length-1],(""+o1c[o1c.length-1].data+"").length); this.o18(lq); this.O18(lq,Iq); }}else {var lq=this.iq(); var i3l=this.or(lq); var I3l=this.or(lq); var O49=this.I1.createElement("span"); var l49=this.I1.createElement("span"); o1c[0].parentNode.insertBefore(O49,o1c[0]); if (o1c[o1c.length-1].nextSibling)o1c[o1c.length-1].parentNode.insertBefore(l49,o1c[o1c.length-1].nextSibling); else o1c[o1c.length-1].parentNode.appendChild(l49); try {i3l.moveToElementText(O49); I3l.moveToElementText(l49); i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }catch (t){}o1c[0].parentNode.removeChild(O49); o1c[o1c.length-1].parentNode.removeChild(l49); }}var X=this ; this.O1.setTimeout( function (){X.updateToolbar(); } ,5); if (!o5h){return false; }return true; }else {var parent=this.Or(Iq); if (HTMLEditor.l11)this.f= true; if (parent.nodeType==3){parent=parent.parentNode; }var O4u=parent.style?parent.style.cssText: ""; var l2z=HTMLEditor.i3c(parent,["class"]); if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.Om && l2z.length==0){ this.o11(); parent.className=name; if (name==""){parent.removeAttribute("class"); if (O4u.length==0){var par=parent.parentNode; var i5h=null; var O38=0; var I5h,o5i; if (!HTMLEditor.is_ie){lq=this.iq(); Iq=this.or(lq); i5h=Iq.startContainer; O38=Iq.startOffset; }else {I5h=Iq.offsetLeft; o5i=Iq.offsetTop; }while (parent.firstChild)par.insertBefore(parent.firstChild,parent); par.removeChild(parent); if (!HTMLEditor.is_ie){var Iq=this.or(); Iq.setStart(i5h,O38); Iq.setEnd(i5h,O38); this.o18(lq); this.O18(lq,Iq); }else {if (lq.type.toLowerCase()!="control"){try {Iq.moveToPoint(I5h,o5i); }catch (t){}}Iq.select(); }}}var X=this ; this.O1.setTimeout( function (){X.updateToolbar(); } ,5); return true; }else if (HTMLEditor.l11)this.focusEditor(); }}return false; }catch (t){ this.O1.alert("setClass func: "+t.message); }};HTMLEditor.prototype.I45= function (i1p){if (this.relativeImages){var images=i1p.getElementsByTagName("IMG"); for (var i=0; i<images.length; i++){var O5i=images[i]; if (O5i.src.indexOf("http://")>=0){var i26=O5i.src; O5i.src="qwerty.gif"; var o38=O5i.src.indexOf("qwerty.gif"); if (i26.substr(0,o38)==O5i.src.substr(0,o38))i26=i26.substr(o38,i26.length-o38); O5i.src=i26; }}}};HTMLEditor.prototype._paste= function (on,l36){var X=this ; var lq=this.iq(); var Iq=this.or(lq); var o1z; var _top; if (!on){o1z=Iq.offsetLeft; _top=Iq.offsetTop; this.I11(this.I35()); X.I14(); return; }if (this._NoPaste)return; o1z=Iq.offsetLeft; _top=Iq.offsetTop; var ik=this.I1.createElement("span"); var l1y; var l5i=this.O36("", false ,l36); if ((/<[\/]*p[\s>]+/i.test(l5i)) || (/<[\/]*h/i.test(l5i))){l1y=this.i1y(); }else {l1y=this.I1.createElement("SPAN"); l1y.id=HTMLEditor.Om; if (!this.I11(HTMLEditor.getHTML(l1y, true)))return; l1y=this.I1.getElementById(HTMLEditor.Om); l1y.id=null; l1y.removeAttribute("id"); l1y.setAttribute("para","no"); }ik.innerHTML=l5i; if (!l1y){return; } this.I45(ik); var par=l1y.parentNode; var i4p=l1y.getAttribute("para"); if (i4p!="no"){if (i4p.indexOf("left")>=0 && ik.firstChild){if (ik.firstChild.tagName && ik.firstChild.tagName.toUpperCase()=="P"){while (ik.firstChild.firstChild)l1y.previousSibling.appendChild(ik.firstChild.firstChild); ik.removeChild(ik.firstChild); }}if (i4p.indexOf("right")>=0 && ik.lastChild){if (ik.lastChild.tagName && ik.lastChild.tagName.toUpperCase()=="P"){while (ik.lastChild.lastChild)l1y.nextSibling.insertBefore(ik.lastChild.lastChild,l1y.nextSibling.firstChild); ik.removeChild(ik.lastChild); }}}var i5i=l1y; var I5i=null; if (ik.childNodes.length==0 && i4p.indexOf("left")>=0 && i4p.indexOf("right")>=0){if (l1y.nextSibling.firstChild){I5i=this.I1.createElement("span"); i5i=I5i; I5i.innerHTML="111"; l1y.previousSibling.appendChild(I5i); }while (l1y.nextSibling.firstChild)l1y.previousSibling.appendChild(l1y.nextSibling.firstChild); par.removeChild(l1y.nextSibling); }else {while (ik.firstChild)par.insertBefore(ik.firstChild,l1y); }setTimeout( function (){var lq=X.iq(); var Iq=X.or(lq); if (lq.type.toLowerCase()=="control"){while (Iq.length>0)Iq.remove(0); }try {Iq.collapse( false); }catch (t){}X.focusEditor(); HTMLEditor.I1o(i5i,X); if (I5i)I5i.parentNode.removeChild(I5i); par.removeChild(l1y); HTMLEditor.i13(X.I1.body); X.I14(); Iq.select(); } ,0144); };HTMLEditor.o31= function (O32,X,o5j){for (var i=0; i<O32.childNodes.length; i++){var o1v=O32.childNodes.item(i); if (o1v.nodeType==1){var It=null; if (o5j)for (var Oh=0; Oh<HTMLEditor.l4x.length; Oh++){if (HTMLEditor.l4x[Oh][0].toLowerCase()==o1v.tagName.toLowerCase()){It=HTMLEditor.l4x[Oh]; break; }}if (It){var span=X.I1.createElement("SPAN"); span.style["cssText"]=o1v.style["cssText"]; if (HTMLEditor.is_ie)span.style[It[1]]=It[2]; else span.style[It[3]]=It[2]; while (o1v.firstChild){span.appendChild(o1v.firstChild); }O32.insertBefore(span,o1v); O32.removeChild(o1v); o1v=span; }else if (o1v.tagName.toLowerCase()=="font"){var span=X.I1.createElement("SPAN"); var save=o1v.size; span.style["cssText"]=o1v.style["cssText"]; if (o1v.color)span.style.color=o1v.color; if (o1v.face)span.style.fontFamily=o1v.face; while (o1v.firstChild){span.appendChild(o1v.firstChild); }O32.insertBefore(span,o1v); O32.removeChild(o1v); if (save){var font=X.I1.createElement("FONT"); font.size=save; O32.insertBefore(font,span); if (span.style["cssText"].length>0){font.appendChild(span); o1v=span; }else {while (span.firstChild){font.appendChild(span.firstChild); }O32.removeChild(span); o1v=font; }}else o1v=span; }HTMLEditor.o31(o1v,X,o5j); }}};HTMLEditor.restoreOldTags= function (O32,ix,X){for (var i=0; i<O32.childNodes.length; i++){var o1v=O32.childNodes.item(i); if (o1v.nodeType==1){if (o1v.tagName.toUpperCase()=="BR"){if (o1v.style && o1v.style.cssText && o1v.style.cssText.length>0){o1v.style.cssText=""; o1v.removeAttribute("style"); }continue; }if (!HTMLEditor.o2h(o1v) && o1v.tagName.toUpperCase()!="IMG"){var O4u=HTMLEditor.l4u(o1v); var O5j=O32; var l5j=HTMLEditor.o2h(o1v); for (var I2c=0; I2c<O4u.length; I2c++){var i5j=null; if (O4u[I2c][0].toLowerCase()=="color" && O4u[I2c][1])i5j=["color",O4u[I2c][1]];if (O4u[I2c][0].toLowerCase()=="backgroundcolor" && O4u[I2c][1])i5j=["backgroundColor",O4u[I2c][1]];if (O4u[I2c][0].toLowerCase()=="fontfamily" && O4u[I2c][1])i5j=["face",O4u[I2c][1]];var o38=HTMLEditor.l4x.length; if (i5j)o38=1; for (var Oh=0; Oh<o38; Oh++){if (HTMLEditor.l4x[Oh][3].toLowerCase()==O4u[I2c][0].toLowerCase() && HTMLEditor.l4x[Oh][2].toLowerCase()==O4u[I2c][1].toLowerCase() || i5j){if (l5j){if (i5j){HTMLEditor.I5j(o1v,i5j[0],i5j[1],ix); o1v.style[i5j[0]]=""; }else if (O4u[I2c][1]){HTMLEditor.I5j(o1v,O4u[I2c][0],O4u[I2c][1],ix); o1v.style[O4u[I2c][0]]=""; }}else {var tagName=(i5j)?"FONT":HTMLEditor.l4x[Oh][0].toUpperCase(); var o5k=ix.createElement(tagName); if (i5j){if (i5j[0]=="color")o5k.color=i5j[1]; else if (i5j[0]=="face")o5k.face=i5j[1]; else o5k.style.cssText="background-color: "+i5j[1]; }O5j.insertBefore(o5k,o1v); o5k.appendChild(o1v); o1v.style.cssText=""; O4u[I2c][1]=null; for (var O5k=0; O5k<O4u.length; O5k++)if (O4u[O5k][1] && O4u[O5k][0].toLowerCase()!="textdecorationlinethrough" && O4u[O5k][0].toLowerCase()!="textdecorationunderline")o1v.style[O4u[O5k][0]]=O4u[O5k][1]; if (o1v.tagName.toLowerCase()=="span" && o1v.style.cssText=="" && HTMLEditor.i4v(o1v, false)==0){while (o1v.firstChild){o5k.appendChild(o1v.firstChild); }o5k.removeChild(o1v); o1v=o5k; }O5j=o5k; Oh=o38; }}}}}HTMLEditor.restoreOldTags(o1v,ix,X); }else if (o1v.nodeType==8){}}};HTMLEditor.I5j= function (O32,style,value,ix){if (O32.childNodes.length==0){var o5k=ix.createElement("SPAN"); O32.appendChild(o5k); o5k.style[style]=value; }else for (var i=0; i<O32.childNodes.length; i++){var o1v=O32.childNodes.item(i); if (o1v.nodeType==1){if (!o1v.style[style])o1v.style[style]=value; }else if (o1v.nodeType==3){var o5k=ix.createElement("SPAN"); O32.insertBefore(o5k,o1v); o5k.appendChild(o1v); o5k.style[style]=value; }}};function Oz(l5k,i5k){var I5k=""; try {if (l5k.nodeType==1)if (l5k.ownerDocument.defaultView && l5k.ownerDocument.defaultView.getComputedStyle)I5k=l5k.ownerDocument.defaultView.getComputedStyle(l5k,"").getPropertyValue(i5k); else if (l5k.currentStyle){try {i5k=i5k.replace(/-(\w)/g, function (l3z,l22){return l22.toUpperCase(); } ); I5k=l5k.currentStyle[i5k]; }catch (w){}}}catch (t){}return I5k; }HTMLEditor.Oz=Oz; HTMLEditor.o5l= function (O5l){function l5l(){var l9=O5l.offsetHeight; var O9=O5l.offsetWidth; if (!document.all){l9-=6; O9-=2; }if (l9>parseInt(O5l.style.height) || O9>parseInt(O5l.style.width))return false; return true; }var i5l=O5l.innerHTML; var i=0; while (!l5l()){i++; O5l.innerHTML=i5l.substr(0,i5l.length-i-1)+"..."; }};HTMLEditor.I5l= function (event){HTMLEditor._stopEvent(event); return false; };HTMLEditor.o5m= function (X,O5m){if (O5m.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.Ik(O5m,"dragstart",HTMLEditor.I5l); else HTMLEditor.Ik(O5m,"draggesture",HTMLEditor.I5l); var l23,cell,l5m,div; var ix=X.getDocument(); var i5m=ix.createElement("TABLE"); if (O5m.tagName && O5m.tagName.toUpperCase()=="IMG"){i5m.style.display="inline"; }i5m.border="0"; i5m.cellSpacing="0"; i5m.cellPadding="0"; i5m.style.borderWidth="0px"; i5m.setAttribute(X.noContextMenuAttributeName(),"yes"); l23=i5m.insertRow(i5m.rows.length); l5m=l23.insertCell(l23.cells.length); l5m.style.fontSize="0px"; l5m.style.fontFamily="verdana"; l5m.style.padding="0px"; l5m.style.margin="0px"; l5m.style.borderWidth="0px"; l5m.setAttribute(X.noContextMenuAttributeName(),"yes"); cell=l23.insertCell(l23.cells.length); cell.vAlign="top"; cell.align="left"; cell.style.padding="0px"; cell.style.margin="0px"; cell.style.fontSize="0px"; cell.style.fontFamily="verdana"; cell.style.borderWidth="0px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.I7+"/pagebgright.jpg)"; cell.style.backgroundRepeat="repeat-y"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=ix.createElement("DIV"); div.style.width="10px"; div.style.height="10px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.I7+"/pagebgtopright.jpg)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); l23=i5m.insertRow(i5m.rows.length); cell=l23.insertCell(l23.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.vAlign="top"; cell.align="left"; cell.style.backgroundImage="url("+X.I7+"/pagebgbottomwhite.gif)"; cell.style.backgroundRepeat="repeat-x"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=ix.createElement("DIV"); div.style.width="10px"; div.style.height="8px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.I7+"/pagebgbottomleftwhite.gif)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); cell=l23.insertCell(l23.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.I7+"/pagebgbottomright.gif)"; cell.style.backgroundRepeat="no-repeat"; cell.style.borderWidth="0px"; cell.innerHTML="&nbsp;"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); if (O5m.tagName && O5m.tagName.toUpperCase()!="IMG"){var l1y=X.i1y(O5m); if (l1y){var parent=l1y.parentNode; parent.insertBefore(O5m,l1y); parent.removeChild(l1y); }}O5m.parentNode.insertBefore(i5m,O5m); l5m.appendChild(O5m); O5m.setAttribute(X.attachedIdAttributeName(),"yes"); };HTMLEditor.I5m= function (X,O5m){if (O5m.getAttribute(X.attachedIdAttributeName()) && O5m.getAttribute(X.attachedIdAttributeName()).length>0)return true; else return false; };HTMLEditor.o5n= function (X,O5m){if (O5m.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.od(O5m,"dragstart",HTMLEditor.I5l); else HTMLEditor.od(O5m,"draggesture",HTMLEditor.I5l); var I4g=X.it(O5m); if (I4g!=null){I4g.parentNode.insertBefore(O5m,I4g); I4g.parentNode.removeChild(I4g); O5m.removeAttribute(X.attachedIdAttributeName()); }};HTMLEditor.prototype.O5n= function (){var l5n=[]; var i5n=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>"()$%#*@&\-+=\/\\|><]/; var I5n=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>()$%#*@&\-+=\/\\|><]/; if (this.l1 && this.mode()=="html" && !this.isPopup()){var l1b=(!HTMLEditor.is_ie)?HTMLEditor.O13(this.i1b()): ""; var lq=this.iq(); var Iq=this.or(lq); var o1c; if (!this.lr() && ((HTMLEditor.is_ie && Iq.text.length>0) || (!HTMLEditor.is_ie && l1b.length>0)))o1c=this.O1c(); else o1c=this.O1c( true); for (var i=0; i<o1c.length; i++){var par=o1c[i].parentNode; var o5o=-1; var O5o=-1; var l5o=""+o1c[i].data+""; var i5o=l5o.length; var I5o=""; var o5p= false; for (var Oh=0; Oh<i5o; Oh++){var O5p=l5o.substr(Oh,1); if (O5p.charCodeAt(0)>=02620 && O5p.charCodeAt(0)<=02777)o5p= true; O5o=((o5p?I5n:i5n).test(O5p) || (O5p.charCodeAt(0)&0170000)==020000)?0: 1; if (O5o!=o5o){if (o5o>=0){var l5p=this.I1.createTextNode(I5o); par.insertBefore(l5p,o1c[i]); if (isNaN(parseInt(I5o,012)) && o5o==1){l5n.push( {i5p: -1,I5p: (""+l5p.data+""),ref:l5p,o5h: false } ); }}I5o=""; o5o=O5o; }I5o+=O5p; }if (o5o>=0 && I5o.length>0){o1c[i].data=I5o; if (isNaN(parseInt(I5o,012)) && o5o==1)l5n.push( {i5p: -1,I5p: (""+o1c[i].data+""),ref:o1c[i],o5h: false } ); }}lq=this.iq(); if (o1c.length>0){if (!HTMLEditor.is_ie){Iq=this.I1.createRange(); Iq.setStart(o1c[o1c.length-1],(""+o1c[o1c.length-1].data+"").length); Iq.setEnd(o1c[o1c.length-1],(""+o1c[o1c.length-1].data+"").length); this.o18(lq); this.O18(lq,Iq); }else {var i3l=this.or(lq); var O49=this.I1.createElement("span"); if (o1c[o1c.length-1].nextSibling)o1c[o1c.length-1].parentNode.insertBefore(O49,o1c[o1c.length-1].nextSibling); else o1c[o1c.length-1].parentNode.appendChild(O49); try {i3l.moveToElementText(O49); i3l.setEndPoint("EndToStart",i3l); i3l.select(); }catch (t){}o1c[o1c.length-1].parentNode.removeChild(O49); }}}return l5n; };HTMLEditor.prototype.l1w= function (Op){var X=this ; X.openWait(); setTimeout( function (){Op(X.O5n()); } ,0); };HTMLEditor.prototype.I1j= function (o1c){var lq=this.iq(); if (!HTMLEditor.is_ie){var Iq=this.I1.createRange(); Iq.setStart(o1c[0],0); Iq.setEnd(o1c[o1c.length-1],(""+o1c[o1c.length-1].data+"").length); this.o18(lq); this.O18(lq,Iq); }else {var i3l=this.or(lq); var I3l=this.or(lq); var O49=this.I1.createElement("span"); var l49=this.I1.createElement("span"); o1c[0].parentNode.insertBefore(O49,o1c[0]); if (o1c[o1c.length-1].nextSibling)o1c[o1c.length-1].parentNode.insertBefore(l49,o1c[o1c.length-1].nextSibling); else o1c[o1c.length-1].parentNode.appendChild(l49); try {i3l.moveToElementText(O49); var o5q=i3l.moveStart("character",1); i3l.moveStart("character",-o5q); I3l.moveToElementText(l49); o5q=I3l.moveEnd("character",-1); I3l.moveEnd("character",-o5q); i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }catch (t){}o1c[0].parentNode.removeChild(O49); o1c[o1c.length-1].parentNode.removeChild(l49); }};HTMLEditor.prototype.O5q= function (I4d){var o1c=this.O1c(); var X=this ; var I5g= false; if (o1c.length==0)if (!HTMLEditor.is_Safari){o1c=this.o3x( true); I5g= true; }if (o1c!=null && o1c.length>0){ this.o11(); for (var i=0; i<o1c.length; i++){if (I4d)o1c[i].data=(""+o1c[i].data+"").toUpperCase(); else o1c[i].data=(""+o1c[i].data+"").toLowerCase(); }if (I5g){if (HTMLEditor.is_ie && this.O3x!=null){var lq=this.iq(); var Iq=this.or(lq); Iq.moveToElementText(this.O3x); Iq.select(); this.O3x.parentNode.removeChild(this.O3x); this.O3x=null; }else if (this.O3x!=null){if (this.O3x[0].nodeType==3){var lq=this.iq(); var Iq=this.I1.createRange(); Iq.setStart(this.O3x[0],this.O3x[1]); Iq.setEnd(this.O3x[0],this.O3x[1]); this.o18(lq); this.O18(lq,Iq); }else { this.l3x(this.O3x[0],this.O3x[0]); this.O3x[0].parentNode.removeChild(this.O3x[0]); } this.O3x=null; }}else this.I1j(o1c); this.O1.setTimeout( function (){X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); }};HTMLEditor.prototype.toUpperCase= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (this.lr())return; this.O5q( true); };HTMLEditor.prototype.toLowerCase= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (this.lr())return; this.O5q( false); };HTMLEditor.l37= function (il){var I1n=il.all; var o12=[]; var O3q=[];for (var i=0; i<I1n.length; i++){var a=I1n[i]; if (a.name && a.name.length>0){var Il=a.tagName; var l5q=il.getElementsByTagName(Il); var o38=0; for (var Oh=0; Oh<l5q.length; Oh++){if (l5q[Oh]==a){o38=Oh; break; }}O3q[Il]=o38; o12.push([Il,O3q[Il],a.name]); }}return o12; };HTMLEditor.i39= function (il,o12){for (var i=0; i<o12.length; i++){if (il.getElementsByTagName(o12[i][0]).length>o12[i][1])il.getElementsByTagName(o12[i][0])[o12[i][1]].name=o12[i][2]; }};HTMLEditor.i5q= function (il){var I1n=il.all; var o12=[]; var O3q=[];for (var i=0; i<I1n.length; i++){var a=I1n[i]; if (a.href && a.href.length>0 && !(a.src && a.src.length>0)){var Il=a.tagName; var l5q=il.getElementsByTagName(Il); var o38=0; for (var Oh=0; Oh<l5q.length; Oh++){if (l5q[Oh]==a){o38=Oh; break; }}O3q[Il]=o38; o12.push([Il,O3q[Il],a.href]); }}return o12; };HTMLEditor.O12= function (I1g){var O3q=[];function I5q(o2a,l22,i22,o2v,O39,o5r,O5r,l5r){var Il=l22.replace(/^<([^\s>]+)/,"$1"); var i5r= true; var i=0; for ( ; i<O3q.length; i++){if (O3q[i][0]==Il){i5r= false; break; }}if (i5r){O3q[i]=[Il]; }O3q[i].push(o5r); }var i2o=new RegExp("(\x3c[^\\s>\x3c]+)([^>\x3c]*?)(href=)(\"|\')([^\\4]*?)(\\4)((?:[^>\x3c]*?)>)","ig"); I1g.replace(i2o,I5q); return O3q; };HTMLEditor.I5r= function (il,o12){for (var i=0; i<o12.length; i++){il.getElementsByTagName(o12[i][0])[o12[i][1]].href=o12[i][2]; }};HTMLEditor.I12= function (il,o12){for (var Oh=0; Oh<o12.length; Oh++){var I1n=il.getElementsByTagName(o12[Oh][0]); var I2c=1; for (var i=0; i<I1n.length; i++){try {if (!I1n[i].href)continue; if (o12[Oh][I2c] && o12[Oh][I2c].length>0){var o5s; if (HTMLEditor.is_ie){o5s=I1n[i].innerHTML; }I1n[i].href=o12[Oh][I2c].replace(/&amp;/ig,"&"); if (HTMLEditor.is_ie){I1n[i].innerHTML=o5s; }}I2c++; }catch (w){}}}};HTMLEditor.O5s= function (il){var I1n=il.getElementsByTagName("IMG"); var o12=[]; for (var i=0; i<I1n.length; i++){var a=I1n[i]; o12.push((a.src && a.src.length>0)?a.src:null); }return o12; };HTMLEditor.l5s= function (I1g){var o12=[]; function I5q(o2a,l22,i22,o2v,O39,o5r){o12.push(o2a); return o2a; }I1g.replace(/(<img(?:.*?)>)/ig,I5q); return o12; };HTMLEditor.i5s= function (I1g,o12){var i=-1; function I5q(o2a,l22,i22,o2v,O39,o5r){i++; return o12[i]; }return I1g.replace(/(<img(?:.*?)>)/ig,I5q); };HTMLEditor.i12= function (I1g){var o12=[]; function I5q(o2a,l22,i22,o2v,O39,o5r){o12.push(o2v); return o2a; }I1g.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,I5q); return o12; };HTMLEditor.I5s= function (I1g){var o12=[[],[]]; function I5q(o2a,l22,i22,o2v,O39,o5r){o12[0].push(o2v); return o2a; }function I2b(o2a,l22,i22,o2v,O39,o5r){o12[1].push(o2v); return o2a; }I1g.replace(/(<img(?:.*?))(width=)([^\s>]+)(\s*)((?:.*?)>)/ig,I5q); I1g.replace(/(<img(?:.*?))(height=)([^\s>]+)(\s*)((?:.*?)>)/ig,I2b); return o12; };HTMLEditor.o5t= function (I1g,o12){var i=-1; var Oh=-1; function I5q(o2a,l22,i22,o2v,O39,o5r){i++; return l22+i22+o12[0][i]+O39+o5r; }function I2b(o2a,l22,i22,o2v,O39,o5r){Oh++; return l22+i22+o12[1][Oh]+O39+o5r; }return I1g.replace(/(<img(?:.*?))(width=")([^\s>]+)(")((?:.*?)>)/ig,I5q).replace(/(<img(?:.*?))(height=")([^\s>]+)(")((?:.*?)>)/ig,I2b); };HTMLEditor.O5t= function (I1g){var o12=[]; function I5q(o2a,l22){o12.push(l22); return o2a; }I1g.replace(/(<area[^>]*?>)/ig,I5q); return o12; };HTMLEditor.l5t= function (I1g,o12){var i=-1; function I5q(o2a,l22){i++; return o12[i]; }return I1g.replace(/(<area[^>]*?>)/ig,I5q); };HTMLEditor.o13= function (il,o12){var I1n=il.getElementsByTagName("IMG"); var I2c=0; for (var i=0; i<I1n.length; i++){if (!I1n[i].src)continue; if (o12[I2c] && o12[I2c].length>0){I1n[i].src=o12[I2c].replace(/&amp;/ig,"&"); }I2c++; }};HTMLEditor.i5t= function (I1g,o12){var i=-1; function I5q(o2a,l22,i22,o2v,O39,o5r){i++; return l22+i22+o12[i]+O39+o5r; }return I1g.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,I5q); };HTMLEditor.i13= function (il){var I1n=il.getElementsByTagName("IMG"); for (var i=0; i<I1n.length; i++){if (I1n[i].getAttribute(HTMLEditor.lt) && I1n[i].getAttribute(HTMLEditor.lt).length>0){try {if (HTMLEditor.is_ie)HTMLEditor.od(I1n[i],"dragstart",HTMLEditor.I5l); else HTMLEditor.od(I1n[i],"draggesture",HTMLEditor.I5l); }catch (t){}if (HTMLEditor.is_ie)HTMLEditor.Ik(I1n[i],"dragstart",HTMLEditor.I5l); else HTMLEditor.Ik(I1n[i],"draggesture",HTMLEditor.I5l); }}};HTMLEditor.O15= function (id,on){var I5t=document.getElementById(id); if (!I5t)return null; if (!HTMLEditor.is_Safari && I5t.className=="ST_div" && (typeof on=="undefined" || on=="undefined")){I5t.parentNode.style.display="none"; return null; }return null; var o5u=document.getElementById(id+"__disabling"); var o1z=0,_top=0; var il=I5t; var parent=HTMLEditor.O5u(I5t); if (parent==null)parent=document.body; var l4z=HTMLEditor.l5u(il,(HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)?document.body:parent, false); var l4z=HTMLEditor.l5u(il,parent, false); o1z=l4z.o1z; _top=l4z._top; var i5u; if (o5u!=null)i5u=o5u; else {i5u=document.createElement("DIV"); i5u.className="DisableSpan"; i5u.id=id+"__disabling"; i5u.style.position="absolute"; i5u.style.zIndex=01750; i5u.style.visibility="visible"; }if (!HTMLEditor.is_ie || (HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)){il=parent; if (o5u==null)i5u.I5u=[]; while (il && il.tagName && il.tagName.toUpperCase()!="BODY"){if (il.scrollTop)_top-=parseInt(il.scrollTop); if (il.scrollLeft)o1z-=parseInt(il.scrollLeft); if (o5u==null && HTMLEditor.o5v(il)){var O5v= {l5v:il.scrollTop,i5v:il.scrollLeft } ; var I5v=i5u.I5u.length; var i51=new Function("event","HTMLEditor_onParentScroll(event,\""+id+"__disabling"+"\",this,"+I5v+")"); i5u.I5u.push( {i51:i51,parent:il,o17:O5v } ); HTMLEditor.Ik(il,"scroll",i51); }il=il.parentNode; }if (HTMLEditor.is_ie)parent=document.body; }if (o5u==null)parent.appendChild(i5u); i5u.style.top=_top+"px"; i5u.style.left=o1z+"px"; var O9=0; var l9=0; if (O9==0)O9=I5t.offsetWidth; if (l9==0)l9=I5t.offsetHeight; i5u.style.width=parseInt(O9)+"px"; i5u.style.height=parseInt(l9)+"px"; return id+"__disabling"; };HTMLEditor.l5u= function (I57,parent,on){var il=I57; var _top=0,o1z=0; while (il && typeof il!="undefined" && il!=parent && il.tagName.toUpperCase()!="HTML"){var borderTopWidth; var borderLeftWidth; o1z+=parseInt(il.offsetLeft); _top+=parseInt(il.offsetTop); il=il.offsetParent; if (il && typeof il!="undefined"){if (il.clientLeft)o1z+=parseInt(il.clientLeft); if (il.clientTop)_top+=parseInt(il.clientTop); if (!HTMLEditor.is_ie && ((on && il.tagName.toUpperCase()!="BODY") || (!on && (il.tagName.toUpperCase()=="BODY" || HTMLEditor.l11)))){borderTopWidth=parseInt(HTMLEditor.Oz(il,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; borderLeftWidth=parseInt(HTMLEditor.Oz(il,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; o1z+=borderLeftWidth; _top+=borderTopWidth; }if (HTMLEditor.is_ie && !on && (il.tagName.toUpperCase()=="TABLE" || (il.tagName.toUpperCase()=="BODY" && document.compatMode=="BackCompat"))){var top=il.tagName.toUpperCase()=="BODY"?HTMLEditor.Oz(il,"border-top-width").toUpperCase(): ""; borderTopWidth=parseInt(HTMLEditor.Oz(il,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; if (borderTopWidth==0){if (top=="THIN")borderTopWidth=1; else if (top=="MEDIUM")borderTopWidth=2; else if (top=="THICK")borderTopWidth=4; }var left=il.tagName.toUpperCase()=="BODY"?HTMLEditor.Oz(il,"border-left-width").toUpperCase(): ""; borderLeftWidth=parseInt(HTMLEditor.Oz(il,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; if (borderLeftWidth==0){if (left=="THIN")borderLeftWidth=1; else if (left=="MEDIUM")borderLeftWidth=2; else if (left=="THICK")borderLeftWidth=4; }if (borderLeftWidth==0 && borderTopWidth==0 && typeof il.border!="undefined" && il.border!=null && !isNaN(parseInt(il.border)))borderLeftWidth=borderTopWidth=parseInt(il.border); o1z-=borderLeftWidth; _top-=borderTopWidth; }}}if (il && typeof il!="undefined" && HTMLEditor.is_ie && document.compatMode!="BackCompat"){var marginTop=parseInt(HTMLEditor.Oz(il,"margin-top")); if (isNaN(marginTop))marginTop=0; var marginLeft=parseInt(HTMLEditor.Oz(il,"margin-left")); if (isNaN(marginLeft))marginLeft=0; o1z+=marginLeft; _top+=marginTop; }if (!HTMLEditor.l11){il=I57; while (il && il!=parent){if (il.scrollTop)_top-=parseInt(il.scrollTop); if (il.scrollLeft)o1z-=parseInt(il.scrollLeft); il=il.parentNode; }}return {_top:_top,o1z:o1z } ; };function HTMLEditor_onParentScroll(event,o5w,parent,i){var i1p=document.getElementById(o5w); var o17=i1p.I5u[i].o17; if (HTMLEditor.is_ie)parent=event.srcElement; i1p.style.top=parseInt(i1p.style.top)-(parent.scrollTop-o17.l5v)+"px"; i1p.style.left=parseInt(i1p.style.left)-(parent.scrollLeft-o17.i5v)+"px"; o17.l5v=parent.scrollTop; o17.i5v=parent.scrollLeft; }HTMLEditor.o19= function (id,on){var I5t=document.getElementById(id); if (!I5t)return null; if (!HTMLEditor.is_Safari && I5t.className=="ST_div" && (typeof on=="undefined" || on=="undefined")){I5t.parentNode.style.display=""; return null; }var il=document.getElementById(id+"__disabling"); if (il){if (typeof il.I5u!=undefined && il.I5u!=null && il.I5u.length>0){for (var i=0; i<il.I5u.length; i++)HTMLEditor.od(il.I5u[i].parent,"scroll",il.I5u[i].i51); }il.parentNode.removeChild(il); }};HTMLEditor.o5v= function (Ic){if (Ic.clientHeight>0 && Ic.scrollHeight && Ic.scrollHeight>0){var clientHeight=Ic.clientHeight; if (!HTMLEditor.is_ie){var borderTopWidth=parseInt(Oz(Ic,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; var borderBottomWidth=parseInt(Oz(Ic,"border-bottom-width")); if (isNaN(borderBottomWidth))borderBottomWidth=0; clientHeight+=(borderTopWidth+borderBottomWidth); }if (Ic.scrollHeight>clientHeight){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientHeight<Ic.offsetHeight)return true; }else return true; }}if (Ic.clientWidth>0 && Ic.scrollWidth && Ic.scrollWidth>0){var clientWidth=Ic.clientWidth; if (!HTMLEditor.is_ie){var borderLeftWidth=parseInt(Oz(Ic,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; var borderRightWidth=parseInt(Oz(Ic,"border-right-width")); if (isNaN(borderRightWidth))borderRightWidth=0; clientWidth+=(borderLeftWidth+borderRightWidth); }if (Ic.scrollWidth>clientWidth){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientWidth<Ic.offsetWidth)return true; }else return true; }}return false; };HTMLEditor.O5u= function (i1p){var Ic=i1p; do {Ic=Ic.parentNode; if (HTMLEditor.o5v(Ic))return Ic; }while (Ic && Ic.tagName.toUpperCase()!="BODY");return Ic; };if (typeof HTMLEditor.z!="function"){HTMLEditor.O5w=null; try {HTMLEditor.O5w=(document.all)?document.body.onload:window.onload; }catch (w){}HTMLEditor.z= function (t,I5h){if (typeof I5h=="undefined"){if (document.all)document.body.onload=HTMLEditor.O5w; else window.onload=HTMLEditor.O5w; if (HTMLEditor.O5w!=null && typeof HTMLEditor.O5w=="function")HTMLEditor.O5w(t); }HTMLEditor.Z= function (Ij){if (Ij){for (var i=0; i<HTMLEditor.i9.length; i++){if (HTMLEditor.i9[i].Oa){var X=HTMLEditor.i9[i].X; if (X.oe && X.oe!=null){var il; if (HTMLEditor.is_ie){Ij=window.event; il=Ij.srcElement; }else {il=Ij.target; }while (il && il!=X.oe)il=il.parentNode; if (il==null){var Oe=X.oe.parentNode.removeChild(X.oe); if (Oe) delete Oe; X.oe=null; X.le=null; HTMLEditor.oe=null; if (X.i10){X.i10.select(); X.i10=null; }}}}}}return true; };setTimeout( function (){HTMLEditor.Ik(document.body,"mousedown", function (event){var ie= false; try {ie=HTMLEditor.Z(HTMLEditor.is_ie?window.event:event); }catch (t){}return ie; } ); } ,0454); if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (typeof window.Sys.WebForms.PageRequestManager.getInstance()._updateControls=="function")){var l5w=window.Sys.WebForms.PageRequestManager.getInstance()._updateControls; var i5w=window.Sys.WebForms.PageRequestManager.getInstance(); window.Sys.WebForms.PageRequestManager.getInstance()._updateControls= function (){var I5w=[]; for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; var o5x=document.getElementById(X.mainDivId); var O5x= false; var l5x; if (o5x==null){O5x= true; }else {if (arguments && arguments.length && arguments.length>0 && arguments[0] && arguments[0].length){for (var i=0; i<arguments[0].length; i++){l5x=arguments[0][i].substr(1).replace(/\$/g,"_"); var i5x=document.getElementById(l5x); if (i5x!=null){var Ic=o5x.parentNode; while (Ic && Ic!=i5x && Ic.tagName.toUpperCase()!="BODY"){Ic=Ic.parentNode; }if (Ic==i5x){O5x= true; break; }}}}}HTMLEditor.i9[Oh].oa=O5x; if (O5x){try {X.On(); }catch (o4v){} ; if (typeof X.lb=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.lb); X.lb=null; }HTMLEditor.i9[Oh].Oa= false; if (!X._autoFocus && !X._wasFocused && o5x!=null){X.focusEditor(); HTMLEditor.o19(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.o19(X.ShowQuickFormatDivId); }if (o5x!=null)X.UnlinkEditorOject(); if (X.n!=null){I5w.push(X.n); }}}}var I5x=l5w.apply(i5w,arguments); while (I5w.length>0){try {var o5y=I5w.pop(); var ik=o5y.parentNode.removeChild(o5y); delete ik; }catch (w){}}setTimeout( function (){var O5y=[]; for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){var X=HTMLEditor.i9[Oh].X; var o5x=document.getElementById(X.mainDivId); if (o5x==null){O5y.push(X); }else {if (X.isActivated && X.mainDivVisible && X.i1=="html"){HTMLEditor.Iy(X,X.I1,!X.showAnchors); HTMLEditor.oz(X,X.I1,!X.showPlaceHolders); X.updateToolbar(); }try {X.O2t(); }catch (t){}}}for (var Oh=0; Oh<O5y.length; Oh++){var X=O5y[Oh]; try {X.O2t(); }catch (t){}X.UnlinkEditorOject(); HTMLEditor.Oc(X); }} ,0); return I5x; } ; }if (typeof window.__doPostBack=="function"){var l5y=window.__doPostBack; window.__doPostBack= function (l4s,i4s){for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; if (document.getElementById(X.mainDivId)==null)continue; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X))return; }if (!(!X.AjaxCurrentContent && !X.O0))try {X.openWait(); }catch (t){} ; }}setTimeout( function (){for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; if (document.getElementById(X.mainDivId)==null)continue; if (HTMLEditor.is_Safari){try {X.Im(); }catch (t){} ; }}}l5y(l4s,i4s); } ,0); } ; }if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){var Ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (Ip._oboutEditor_onFormSubmit==null || typeof Ip._oboutEditor_onFormSubmit=="undefined"){Ip._oboutEditor_onFormSubmit=Ip._onsubmit; Ip._onsubmit= function (){for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){HTMLEditor.i9[Oh].X.oq= false; }}var ie= true; if (Ip._oboutEditor_onFormSubmit!=null && typeof Ip._oboutEditor_onFormSubmit!="undefined")ie=Ip._oboutEditor_onFormSubmit(); for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; if (!X.oq){try {ie=ie && X.__submit(); }catch (w){}}X.oq= false; }}return ie; } ; }}if (HTMLEditor.S())if (window.Sys && typeof window.Sys!="undefined")if (window.Sys.UI && typeof window.Sys.UI!="undefined")if (window.Sys.UI.DomElement && typeof window.Sys.UI.DomElement!="undefined")if (typeof window.Sys.UI.DomElement.setVisible=="function"){var G=window.Sys.UI.DomElement.setVisible; window.Sys.UI.DomElement.setVisible= function (il,value){G(il,value); for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; if (document.getElementById(X.mainDivId)!=null){var Ic=document.getElementById(X.mainDivId).parentNode; while (Ic && Ic!=il && Ic.tagName && Ic.tagName.toUpperCase()!="BODY")Ic=Ic.parentNode; if (Ic==il){if (!value){if (X.mainDivVisible && X.Os){X.setVisibility( false); }}else {if (X.ou() && !X.mainDivVisible && X.Os){X.setVisibility( true); }}}}}}};}if (typeof window.Page_ClientValidate=="function"){var i5y=window.Page_ClientValidate; window.Page_ClientValidate= function (l22){for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; var ob=X.clientID; var la=document.getElementById(ob); var O19=""; if (la==null){if (document.getElementsByName(ob) && document.getElementsByName(ob).length && document.getElementsByName(ob).length>0)la=document.getElementsByName(ob)[0]; }if (la!=null){if (X.clientValidation){O19=X.getContent(); }else {if (X.i1=="preview"){if (X.o16=="html")O19=X.i19; else O19=X.l15.value; }else if (HTMLEditor.is_ie){if (X.i1=="html"){O19=X.I1.body.innerHTML; }else {if (X.l15)O19=X.l15.value; }}else {O19=X.getHTML(); }O19=HTMLEditor.O13(O19); if (O19.length>0)if (O19.toLowerCase()=="<br />" || O19.toLowerCase()=="<br/>" || O19.toLowerCase()=="<br>")O19=""; else O19="content"; }la.value=O19; }HTMLEditor.i9[Oh].la=la; }}var ie=i5y(l22); for (var Oh=0; Oh<HTMLEditor.i9.length; Oh++){if (HTMLEditor.i9[Oh].Oa){var X=HTMLEditor.i9[Oh].X; var la=HTMLEditor.i9[Oh].la; if (la!=null){la.value=""; }}}return ie; } ; }};try {if (document.all)document.body.onload=HTMLEditor.z; else window.onload=HTMLEditor.z; }catch (w){setTimeout( function (){HTMLEditor.z(null, true); } ,0); }}HTMLEditor.I5y=["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.l2q= function (html){var ie=HTMLEditor.O13(html.replace(/[\0-\x1f]+/g," ")); var o5z; ie=ie.replace(/^[^\0]+?<html(?:[^>]*?)>/gi,""); ie=ie.replace(/<\/html(?:[^>]*?)>[^\0]*$/gi,""); ie=ie.replace(/<head(?:[^>]*?)>[^\0]*?<\/head(?:[^>]*?)>/gi,""); ie=ie.replace(/<body[^>]*?>([^\0]*?)<\/body(?:[^>]*?)>/gi,"$1"); ie=ie.replace(/<\/?html(?:[^>]*?)>/gi,""); ie=ie.replace(/<\/?head(?:[^>]*?)>/gi,""); ie=ie.replace(/<\/?body(?:[^>]*?)>/gi,""); ie=ie.replace(/<!--(\w|\W)+?-->/ig,""); ie=ie.replace(/(<[\/]?)(?:o|v|x|p|w|\?xml):(\w+)([^>]*?>)/ig,"$1$2$3"); ie=ie.replace(/<(IMAGEDATA)([^>]*?)>/ig,"<img$2>"); ie=ie.replace(/<p[^>]*><p>&nbsp;<\/p><\/p>/ig,"<br>"); ie=ie.replace(/<p[^>]*?\/>/ig,"").replace(/<(p|div)[^>]*?>&nbsp;<\/(\1)[^>]*?>/ig,"").replace(/<(p|div)[^>]*?><\/(\1)[^>]*?>/ig,""); do {o5z=ie; ie=ie.replace(/<([^>]*)(?:class|size|lang|face|start|type|border|[ovwxp]:\w+)=(?:'[^']*'|"[^"]*"|[^> ]+)([^>]*)>/ig,"<$1$2>"); }while (ie!=o5z);var div=document.createElement("div"); div.innerHTML=ie; function O21(Ic){var o38=Ic.childNodes.length; for (var i=0; i<Ic.childNodes.length; i++){var o1v=Ic.childNodes.item(i); if (o1v.nodeType==1){if (o1v.tagName.indexOf("/")>=0){i--; o1v.parentNode.removeChild(o1v); }else {var search=o1v.tagName.toLowerCase(); var It= false; var O5z=HTMLEditor.I5y.length; for (var Oh=0; Oh<O5z; Oh++)if (HTMLEditor.I5y[Oh]==search){It= true; break; }O21(o1v); if (!It){i+=o1v.childNodes.length; while (o1v.firstChild)o1v.parentNode.insertBefore(o1v.firstChild,o1v); o1v.parentNode.removeChild(o1v); i--; }else {var l5z=o1v.style.backgroundColor; var i5z=o1v.style.color; o1v.style.cssText=""; o1v.removeAttribute("style"); if (o1v.getAttribute("width") && o1v.getAttribute("width").length>0)o1v.style.width=o1v.getAttribute("width"); if (o1v.width && o1v.width.length>0)o1v.style.width=o1v.width; o1v.width=""; try {o1v.removeAttribute("width"); }catch (t){}if (o1v.getAttribute("height") && o1v.getAttribute("height").length>0)o1v.style.height=o1v.getAttribute("height"); if (o1v.height && o1v.height.length>0)o1v.style.height=o1v.height; o1v.height=""; try {o1v.removeAttribute("height"); }catch (t){}if (search=="table"){o1v.style.borderLeftWidth="1px"; o1v.style.borderLeftColor="black"; o1v.style.borderLeftStyle="solid"; o1v.style.borderTopWidth="1px"; o1v.style.borderTopColor="black"; o1v.style.borderTopStyle="solid"; o1v.style.backgroundColor=l5z; o1v.style.color=i5z; }if (search=="td"){o1v.style.borderRightWidth="1px"; o1v.style.borderRightColor="black"; o1v.style.borderRightStyle="solid"; o1v.style.borderBottomWidth="1px"; o1v.style.borderBottomColor="black"; o1v.style.borderBottomStyle="solid"; o1v.style.backgroundColor=l5z; o1v.style.color=i5z; }if (search=="font" || search=="span"){o1v.style.backgroundColor=l5z; o1v.style.color=i5z; var l2z=o1v.attributes; var o38=0; for (var O5k=0; O5k<l2z.length; ++O5k){var a=l2z.item(O5k); if (!a.specified)continue; o38++; }if (o38==0 && o1v.style.cssText==""){i+=o1v.childNodes.length; while (o1v.firstChild)o1v.parentNode.insertBefore(o1v.firstChild,o1v); o1v.parentNode.removeChild(o1v); i--; }}}}}}}O21(div); ie=HTMLEditor.O13(div.innerHTML); delete div; ie=ie.replace(/<[\/]?(xml|del|ins)[^>]*?>/ig,""); ie=ie.replace(/<(p|div)[^>]*?>/ig,""); ie=ie.replace(/<\/(p|div)[^>]*?>/ig,"<br>"); do {o5z=ie; ie=ie.replace(/<b><\/b>/ig,"").replace(/<i><\/i>/ig,"").replace(/<u><\/u>/ig,"").replace(/<strong><\/strong>/ig,"").replace(/<em><\/em>/ig,"").replace(/<sub><\/sub>/ig,"").replace(/<sup><\/sup>/ig,""); ie=ie.replace(/<span[^>]*?><\/span>/ig,"").replace(/<span>([^<]+?)<\/span>/ig,"$1"); ie=ie.replace(/<font[^>]*?><\/font>/ig,"").replace(/<font>([^<]+?)<\/font>/ig,"$1"); }while (ie!=o5z);ie=ie.replace(/&rsquo;/g,"'"); ie=ie.replace(/&lsquo;/g,"'"); ie=ie.replace(/&ndash;/g,"-"); ie=ie.replace(/&mdash;/g,"-"); ie=ie.replace(/&hellip;/g,"..."); ie=ie.replace(/&quot;/g,"\""); ie=ie.replace(/&ldquo;/g,"\""); ie=ie.replace(/&rdquo;/g,"\""); ie=ie.replace(/\cA/g,""); ie=ie.replace(/&bull;/g,""); ie=ie.replace(/[ ]+/g," ").replace(/(&nbsp;)+/g,"&nbsp;"); if (document.all)ie=ie.replace(/^[\0-\x1f]*&nbsp;/,""); return ie; };HTMLEditor.prototype.l10= function (Ij,clientX,clientY){var lq; var Iq; var parent; var X=this ; if (HTMLEditor.l11)this.f= true; X.o1g(); if (HTMLEditor.is_Safari && Ij!=null){parent=Ij.target; }else {lq=X.iq(); Iq=X.or(lq); parent=HTMLEditor.getSelParent(X); }var I5z= false; var o60=parent; var O60=parent; X.l60=[]; X.i10=null; while (O60.nodeType==3 || (O60.tagName && O60.tagName.toUpperCase()!="BODY")){var par=O60.parentNode; var i60=0; for ( ; i60<par.childNodes.length; i60++)if (par.childNodes.item(i60)==O60)break; X.l60.push(i60); O60=O60.parentNode; }setTimeout( function (){var I60=document.createElement("DIV"); I60.className="CNTXT_div"; var html=new O2a(); var o61=0; html.write("<table>"); X.le=[]; var O61=X._ContextMenu; for (var Oh=0; Oh<O61.length; Oh++){O61[Oh][3]= false; }while (parent!=null){if (parent.tagName){if (parent.getAttribute(HTMLEditor.Ot) && parent.getAttribute(HTMLEditor.Ot).length>0){}else {var oa=(o61>0); for (var Oh=0; Oh<O61.length; Oh++){var l61=O61[Oh][0].toUpperCase().split(" "); var i61= true; var tagName=parent.tagName; if (parent.getAttribute("dummytag") && parent.getAttribute("dummytag").length>0)tagName=parent.getAttribute("dummytag"); if (l61[0]==tagName.toUpperCase() && l61.length>1){var l2z=parent.attributes; var value=""; var name=""; i61= false; for (var i=0; i<l2z.length; ++i){var a=l2z.item(i); if (!a.specified)continue; name=a.name.toUpperCase(); value=a.value.toUpperCase(); if (name==l61[1]){i61= true; break; }}if (i61 && l61.length>2){if (l61[2]!=value){i61= false; }else {if (value.toLowerCase()=="application/x-mplayer2")I5z= true; }}}if (parent.className && parent.className==HTMLEditor.Om)i61= false; if (((l61[0]==tagName.toUpperCase()) || (HTMLEditor.contentEditable(parent, true) && l61[0].toLowerCase()=="#contenteditable#")) && !O61[Oh][3] && !O61[Oh][6] && i61){if (HTMLEditor.contentEditable(parent, true) && l61[0].toLowerCase()=="#contenteditable#"){oa= false; o61=0; html.clear(); html.write("<table>"); X.le=[]; for (var I61=0; I61<O61.length; I61++){O61[I61][3]= false; }}if (oa){X.le.push([null,null]); html.write("<tr><td nowrap><hr></td></tr>"); o61++; oa= false; }O61[Oh][3]= true; var o62=HTMLEditor.is_ie || O61[Oh][4]; if (O61[Oh][5] && typeof O61[Oh][5]=="function"){o62 &= O61[Oh][5](X,parent); }if (o62){var O60=parent; var ig=[]; while (O60.tagName.toUpperCase()!="BODY"){var par=O60.parentNode; var i60=0; for ( ; i60<par.childNodes.length; i60++)if (par.childNodes.item(i60)==O60)break; ig.push(i60); O60=O60.parentNode; }X.le.push([O61[Oh][1],ig,(O61[Oh][5] && typeof O61[Oh][5]=="string")]); }else {X.le.push([null,[]]); }if (O61[Oh][1]==null)html.write("<tr><td nowrap><hr></td></tr>"); else html.write("<tr><td nowrap>&nbsp;&nbsp;&nbsp;"+O61[Oh][2]+"</td></tr>"); o61++; }}}}parent=parent.parentNode; }html.write("</table>"); if (o61>0){if (HTMLEditor.is_ie){if (lq.type.toLowerCase()=="control"){try {X.i10=X.I1.body.createControlRange(); while (Iq.length>0){X.i10.add(Iq.item(0)); Iq.remove(0); try {Iq.collapse( false); }catch (t){}}lq.empty(); }catch (t){}}}var O1y=document.createElement("div"); O1y.innerHTML=html.toString(); var O62=O1y.firstChild; O62.className="CNTXT_menu"; for (var i=0; i<o61; i++){var l62=O62.rows.item(i); if (X.le[i][0])l62.className="CNTXT_item"; else l62.className="CNTXT_item_disable"; }function i62(){for (var i=0; i<o61; i++){var l62=O62.rows.item(i); var I62=l62.cells.item(0); I62.style.width="auto"; I62.style.verticalAlign="top"; I62.style.borderWidth="0px"; I62.style.margin="0px"; I62.style.padding="0px"; I62.style.fontWeight="normal"; if (X.le[i][0]){l62.className="CNTXT_item"; HTMLEditor.Ow([l62],["mouseover"], function (t){var il; if (HTMLEditor.is_ie){t=window.event; il=t.srcElement; }else {il=t.target; }while (il && (!il.tagName || il.tagName.toUpperCase()!="TR"))il=il.parentNode; il.className="CNTXT_item_over"; return true; } ); HTMLEditor.Ow([l62],["mouseout"], function (t){var il; if (HTMLEditor.is_ie){t=window.event; il=t.srcElement; }else {il=t.target; }while (il && (!il.tagName || il.tagName.toUpperCase()!="TR"))il=il.parentNode; il.className="CNTXT_item"; HTMLEditor._stopEvent(t); } ); HTMLEditor.Ow([l62],["mousedown"], function (t){var il; if (HTMLEditor.is_ie){t=window.event; il=t.srcElement; }else {il=t.target; }while (il && (!il.tagName || il.tagName.toUpperCase()!="TR"))il=il.parentNode; HTMLEditor._stopEvent(t); setTimeout( function (){var l2e= false; try {if (X.i10){if (X.i10.item(0).tagName.toUpperCase()!="EMBED"){X.i10.select(); X.i10=null; }else {while (X.i10.length>0){while (X.i10.length>0)X.i10.remove(0); try {X.i10.collapse( false); }catch (t){}}X.i10=null; }}else if (HTMLEditor.is_ie)if (Iq!=null)try {Iq.select(); }catch (t){}var o63=X.le[il.rowIndex][0]; var O63=X.I1.body; var l63=X.I1.body; var i63=!(X.le[il.rowIndex][2]); var ig=X.le[il.rowIndex][1]; var Oe=X.oe.parentNode.removeChild(X.oe); while (ig.length>0)O63=O63.childNodes.item(ig.pop()); while (X.l60.length>0)l63=l63.childNodes.item(X.l60.pop()); delete Oe; if (HTMLEditor.is_Safari)if (X.I10){var I63=X.iq(); var o1c=X.I10; X.O18(I63,o1c); X.I10=null; }if (i63){X.o11(); l2e= true; }o63(X,O63,l63); X.oe=null; HTMLEditor.oe=null; X.le=null; }catch (w){try {if (l2e)X.O1f( false); if (HTMLEditor.is_ie){HTMLEditor.I1o(il,X); }}catch (O14){}}} ,012); } ); }else {l62.className="CNTXT_item_disable"; }}}if (HTMLEditor.is_ie && I5z)setTimeout( function (){X.i10=null; Iq=null; X.o2f(null,i62);} ,0); else i62(); HTMLEditor.Ow([I60],["contextmenu"], function (t){try {if (HTMLEditor.is_ie)Iq.select(); else X.O18(lq,Iq); }catch (o64){}HTMLEditor._stopEvent(t); return false; } ); I60.style.position="absolute"; I60.style.display=""; I60.appendChild(O62); I60.style.visibility="hidden"; var I57=X.A; var il=X._textArea.parentNode.parentNode; var o1z=0,_top=0; if (!X._InsideOboutWindow)while (il!=X.A){if (HTMLEditor.Oz(il,"position").toLowerCase()=="absolute"){I57=X._textArea.parentNode.parentNode; var i2s=HTMLEditor.I2s((X.O1.document.compatMode=="BackCompat" && HTMLEditor.is_ie)?I57:il, false); o1z=i2s.o1z; _top=i2s._top; break; }il=il.parentNode; }I57.appendChild(I60); var y; var x; var O55; var zIndex=045070; il=X._iframe; var O64=HTMLEditor.I2s(X._iframe, false); while (il && typeof il!="undefined" && il!=I57){var l64=parseInt(HTMLEditor.Oz(il,"z-index")); if (!isNaN(l64) && l64>zIndex)zIndex=l64+1; il=il.parentNode; }y=clientY+O64._top-_top; x=clientX+O64.o1z-o1z; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var l2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var Height=l2s+i55(X.O1.document); var Width=O2s+_GetScrollLeft(X.O1.document); var i64=I60.offsetHeight; var I64=I60.offsetWidth; var o65=y; var O65=x; if (o65+i64>Height)y-=o65+i64-Height; if (O65+I64>Width)x-=O65+I64-Width; I60.style.top=y+"px"; I60.style.left=x+"px"; X.oe=I60; HTMLEditor.oe=I60; I60.style.visibility="visible"; I60.style.zIndex=zIndex; }else { delete I60; X.oe=null; HTMLEditor.oe=null; }} ,0); if (Ij!=null)HTMLEditor._stopEvent(Ij); return false; };HTMLEditor.prototype.l1g= function (){var lq; var Iq; var parent; var X=this ; lq=X.iq(); Iq=X.or(lq); parent=HTMLEditor.getSelParent(X); var O2s=X.I1.body.offsetWidth; var l2s=X.I1.body.offsetHeight; var l55=l2s/2; if (l55<=0)l55=024; var clientY=l55; var clientX=O2s/2; X.l10(null,clientX,clientY); };HTMLEditor.o22= function (il,ix,on){var O22; if (HTMLEditor.is_ie && il.tagName && (il.tagName.toUpperCase()=="EMBED" || il.tagName.toUpperCase()=="OBJECT")){var div=ix.createElement("DIV"); try {div.innerHTML=il.outerHTML; O22=div.firstChild; }catch (t){O22=il; } delete div; }else O22=il.cloneNode(on); return O22; };HTMLEditor.O34= function (l65){var value; var o38; try {o38=parseInt(l65)-1; }catch (t){return l65; }switch (o38){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=l65.replace(/"/g,"&quot;"); }return value; };HTMLEditor.Od= function (Ij){if (Ij.propertyName=="style.display")if (HTMLEditor.i65==null || typeof HTMLEditor.i65=="undefined"){HTMLEditor.i65= function (){for (var i=0; i<HTMLEditor.Iv.length; i++){var parent=HTMLEditor.Iv[i]; if (parent.iv!=null)if (parent.iv!=""+parent.style.display+""){if (typeof parent.ld=="function"){parent.ld( {srcElement:parent,propertyName: "style.display" } ); }}parent.iv=parent.style.display; }setTimeout( function (){HTMLEditor.i65=null; } ,0); } ; setTimeout(HTMLEditor.i65,024); }};if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari)try {CSSStyleDeclaration.prototype.__defineSetter__("display", function (value){HTMLEditor.Od( {srcElement:parent,propertyName: "style.display" } ); this.setProperty("display",value,"important"); } ); }catch (w){}HTMLEditor.Iv=[]; HTMLEditor.Id= function (i1p){var ie=[]; for (var i=0; i<HTMLEditor.Iv.length; i++){var o17=HTMLEditor.Iv[i]; if (o17!=i1p){ie.push(o17); }}HTMLEditor.Iv=ie; };if (!HTMLEditor.is_ie)try {HTMLElement.prototype.__defineGetter__("innerText", function (){var html=new O2a( true); HTMLEditor.I65(this,html); return html.toString(); } );}catch (w){}HTMLEditor.I65= function (l2f,html){var I36=l2f.childNodes; for (var i=0; i<I36.length; i++){var Ic=I36[i]; if (Ic.nodeType==3)html.write(Ic.nodeValue.replace("\n","")); if (Ic.nodeType==1){var display=HTMLEditor.Oz(Ic,"display"); var visibility=HTMLEditor.Oz(Ic,"visibility"); if (HTMLEditor.o66(Ic))html.write("\n"); if (HTMLEditor.O66(Ic))html.write("\t"); if (display!="none" && visibility!="hidden")HTMLEditor.I65(Ic,html); if (HTMLEditor.l66(Ic))html.write("\n"); }}};HTMLEditor.o66= function (il){var i66=" div table p pre ol ul blockquote form fieldset "; return (i66.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.l66= function (il){var i66=" br div table tr p pre ol ul li hr blockquote form fieldset legend "; return (i66.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.O66= function (il){var i66=" td li "; return (i66.indexOf(" "+il.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.canHaveChildren= function (Ic){if (HTMLEditor.is_ie)return Ic.canHaveChildren; else return !/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(Ic.tagName.toLowerCase()); };HTMLEditor.contentEditable= function (il,on){while (il!=null){try {var I66=null; if (il.contentEditable!=null && typeof il.contentEditable!="undefined" && !(HTMLEditor.is_Safari || HTMLEditor.l11)){if (!il.contentEditable || il.contentEditable=="false")I66= false; else I66= true; }else {var value=il.getAttribute("contenteditable"); if (typeof value=="boolean")I66=value; else if (typeof value=="string" && value.toLowerCase()=="false")I66= false; }if (I66!=null && typeof I66=="boolean"){if (!I66){return il; }}}catch (w){}if (typeof on!="undefined" && on)return null; if (il.tagName!=null && typeof il.tagName!="undefined" && (il.tagName.toUpperCase()=="BODY" || il.tagName.toUpperCase()=="HTML"))break; il=il.parentNode; }return null; };HTMLEditor.prototype.I47= function (){var X=this ; var o48=this.iq(); var Iq; try {Iq=this.or(o48); }catch (w){return false; }var il; if (!HTMLEditor.is_ie){il=HTMLEditor.contentEditable(Iq.startContainer); if (il==null)il=HTMLEditor.contentEditable(Iq.endContainer); }else il=HTMLEditor.contentEditable(HTMLEditor.getSelParent(X)); if (HTMLEditor.is_ie && il!=null){try {Iq.remove(il); }catch (t){}Iq=X.I1.body.createControlRange(); Iq.add(il); Iq.select(); }else if (!HTMLEditor.is_ie && il!=null){var lq=X.iq(); var I17; if (il.nextSibling!=null && il.nextSibling.nodeType==3){I17=il.nextSibling; }else {I17=X.I1.createTextNode(""); if (il.nextSibling!=null)il.parentNode.insertBefore(I17,il.nextSibling); else il.parentNode.appendChild(I17); }X.o18(lq); var Iq=X.or(lq); Iq.setStart(I17,0); Iq.setEnd(I17,0); X.O18(lq,Iq); }return true; };HTMLEditor.i4d= function (t){var o67=t.keyCode?t.keyCode:t.which; var O67=t.shiftKey?t.shiftKey: ((o67==020)? true : false); if (((o67>=0101 && o67<=0132) && !O67) || ((o67>=0141 && o67<=0172) && O67))return true; else return false; };HTMLEditor.l67= {i67: 1,I67: 2,o68: 3,O68: 4,l68: 5,i68: 6,I68: 7,o69: 8,O69: 011,l69: 012,i69: 013,I69: 014 } ; HTMLEditor.o6a= function (l2f){return l2f.nodeType==HTMLEditor.l67.O69?l2f:l2f.ownerDocument || l2f.document; } ; HTMLEditor.O6a= function (l6a){var ix; if (l6a.nodeType==HTMLEditor.l67.O69){ix=l6a; }else {ix=HTMLEditor.o6a(l6a); }if (HTMLEditor.is_ie && ix.compatMode!="CSS1Compat"){return ix.body; }return ix.documentElement; };HTMLEditor.O5d= function (il){var ix=HTMLEditor.o6a(il); var i6a=HTMLEditor.O29 && ix.getBoxObjectFor && HTMLEditor.Oz(il,"position")=="absolute" && (il.style.top=="" || il.style.left==""); var I6a=HTMLEditor.i2i && !HTMLEditor.I2n.I2n("1.8.0.11"); var i4p= {x: 0,y: 0 } ; var o6b=HTMLEditor.O6a(ix); if (il==o6b){return i4p; }var parent=null; var O6b; if (ix.getBoxObjectFor && !i6a && !I6a){O6b=ix.getBoxObjectFor(il); var l6b=ix.getBoxObjectFor(o6b); i4p.x=O6b.screenX-l6b.screenX; i4p.y=O6b.screenY-l6b.screenY; }else if (il.getBoundingClientRect){O6b=il.getBoundingClientRect(); var scrollTop=o6b.scrollTop; var scrollLeft=o6b.scrollLeft; i4p.x=O6b.left+scrollLeft; i4p.y=O6b.top+scrollTop; }else {var i6b=il; while (il && typeof il!="undefined" && il.tagName.toUpperCase()!="BODY" && il.tagName.toUpperCase()!="HTML"){i4p.x+=parseInt(il.offsetLeft); i4p.y+=parseInt(il.offsetTop); il=il.offsetParent; if (il && typeof il!="undefined"){if (il.clientLeft)i4p.x+=parseInt(il.clientLeft); if (il.clientTop)i4p.y+=parseInt(il.clientTop); }}il=i6b; if (HTMLEditor.l11 || (HTMLEditor.O2i && HTMLEditor.Oz(il,"position")=="absolute")){i4p.y-=ix.body.offsetTop; }parent=il.offsetParent; while (parent && parent!=ix.body){i4p.x-=parent.scrollLeft; if (!HTMLEditor.l11 || parent.tagName!="TR"){i4p.y-=parent.scrollTop; }parent=parent.offsetParent; }}return i4p; } ; 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();
