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){} this.R=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.Q()){ this.P=U; this.N=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.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; this.imagePopupName=null; this.imageCallback=null; this.imageBrowseTitle=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._editIMG,"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.I3,"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.O4,"URL Link properties", false , true ,"inner", false],["A href",HTMLEditor.o4,"Remove URL Link", false , true ,"inner", false],["A name",HTMLEditor.l4,"Anchor properties", false , true ,"inner", false],["A name",HTMLEditor.o3,"Delete Anchor", false , true ,"inner", false],["TD",HTMLEditor.i4,"Cell properties", false , true ,"inner", false],["TABLE",HTMLEditor.I4,"Table properties", false , true ,"inner", false],["TABLE",HTMLEditor.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.O5,"Cut", false , false ,HTMLEditor.l5, false],["BODY",HTMLEditor.i5,"Copy", false , false ,HTMLEditor.l5, false],["BODY",HTMLEditor.I5,"Paste", false , false ,HTMLEditor.o6, false],["BODY",HTMLEditor.O6,"Paste Plain Text", false , true ,HTMLEditor.l6, false],["BODY",HTMLEditor.i6,"Delete", false , true ,HTMLEditor.l5, false],["BODY",null,"", false , true ,"inner", false],["BODY",HTMLEditor.I6,"Select All", false , true ,"inner", false]]; try {var o7="?"+document.getElementsByName("OboutEditorVersion")[0].value; this.o7=o7; var O7=document.getElementsByName("FolderScript")[0].value; var l7=document.getElementsByName("FolderScriptSession")[0].value; this.i7=document.getElementsByName("FolderStyle")[0].value; this.I7=document.getElementsByName("FolderIcon")[0].value; this._FolderScript=O7; this.o8=l7; this.O8=null; this._tableProperties=e[1]; this._cellProperties=e[2]; this._imageProperties=e[3]; this._flashProperties=e[4]; this._mediaProperties=e[5]; this._bgImageProperties=e[6]; this._mozPastePlain=e[7]; this._selectColor=e[8]; this._clearStyles=e[011]; this._urlProperties=e[012]; this._insertIcon=e[013]; this._insertAnchor=e[014]; this._insertPlaceHolder=e[015]; this._insertSpec=e[016]; this._imageBrows=e[017]; this._flashBrows=e[020]; this._mediaBrows=e[021]; this._urlBrows=e[022]; this._spellCheck=e[023]; this._customPopup=e[024]; var X=this ; HTMLEditor._CUROBJ_=X; HTMLEditor.l8=0; this.i8=null; if (HTMLEditor.I8(".HE_editPanel"))this.i8= {o9: this._textArea.offsetWidth,O9: this._textArea.offsetHeight } ; this.l1=null; }catch (t){alert("Init : "+t.message); }}else { this.scriptVersion="notsupported"; }} ; HTMLEditor.l9=[]; HTMLEditor.i9= function (X){ this.X=X; this.id=X.W; this.O=X.O; this.I9= false; this.oa= true; this.Oa=null; } ; HTMLEditor.la= function (O){for (var i=0; i<HTMLEditor.l9.length; i++){if (O==HTMLEditor.l9[i].O){return HTMLEditor.l9[i].X; }}return null; };HTMLEditor.ia= function (clientID){for (var i=0; i<HTMLEditor.l9.length; i++){if (clientID==HTMLEditor.l9[i].id){return HTMLEditor.l9[i].X; }}return null; };function oboutGetEditor(Ia){return HTMLEditor.la(Ia); }function oboutGetEditorByClientId(Ia){return HTMLEditor.ia(Ia); }HTMLEditor.ob= function (id){for (var i=0; i<HTMLEditor.l9.length; i++){if (id==HTMLEditor.l9[i].id){return HTMLEditor.l9[i].X; }}return null; };HTMLEditor.r= function (X){var id=X.W; var index=-1; for (var i=0; i<HTMLEditor.l9.length; i++){if (id==HTMLEditor.l9[i].id){if (HTMLEditor.S()){if (typeof X.Ob=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.Ob); X.Ob=null; }}index=i; break; }}if (index>=0){X.R=HTMLEditor.l9[index].X.R; HTMLEditor.l9[index]=new HTMLEditor.i9(X); }else HTMLEditor.l9.push(new HTMLEditor.i9(X)); if (HTMLEditor.S()){X.Ob= function (lb,ib){try {if (X._AjaxWait){X.UnlinkEditorOject(); X.Ib(); }}catch (t){}} ; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(X.Ob); }};HTMLEditor.oc= function (X){var id=X.W; var index= false; var Oc=[]; for (var i=0; i<HTMLEditor.l9.length; i++){if (id!=HTMLEditor.l9[i].id){Oc.push(HTMLEditor.l9[i]); }}HTMLEditor.l9=Oc; };HTMLEditor.prototype.lc= function (){HTMLEditor.r(this ); };HTMLEditor.prototype.UnlinkEditorOject= function (){var X=this ; if (typeof X.g=="function"){if (document.getElementById(this.mainDivId)==null)return; var ic=document.getElementById(this.mainDivId).parentNode; while (ic && ic.tagName && ic.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.Ic(ic,"propertychange",HTMLEditor.od); ic.Od=null; HTMLEditor.ld(ic); }else {ic.Od=null; HTMLEditor.ld(ic); }ic=ic.parentNode; }X.J= false; }try {X.clearPopups( true); }catch (w){}try {if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; }}catch (w){}};HTMLEditor.S= function (){if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined"))return true; return false; };HTMLEditor.prototype.getScriptById= function (name){var le=document.getElementById(name); if (le==null){var cell=document.getElementById(this.mainDivId).firstChild.rows.item(0).cells.item(0); for (var i=0; i<cell.childNodes.length; i++){var item=cell.childNodes.item(i); if (item.tagName && item.tagName.toUpperCase()=="SCRIPT"){le=item; break; }}}if (le!=null){var text=le.text; if (typeof text=="undefined" || text=="")text=le.innerHTML; var ie="try{null}catch(ex){}"; var Ie=text.indexOf(ie); var of=text.lastIndexOf(ie); if (Ie>=0 && of>=0){text=text.substring(Ie+ie.length,of); le=new Object(); le.text=text; }}return le; };HTMLEditor.prototype.Of= function (name,If){for (var i=0; i<this.main_alerts.length; i++){if (name.toLowerCase()==this.main_alerts[i].name.toLowerCase())return this.main_alerts[i].message; }return If; };HTMLEditor.prototype.og= function (name,If){for (var i=0; i<this.popup_headers.length; i++){if (name.toLowerCase()==this.popup_headers[i].name.toLowerCase())return this.popup_headers[i].title; }return If; };HTMLEditor.prototype.Og= function (name,If){for (var i=0; i<this.popup_headers.length; i++){if (name.toLowerCase()==this.popup_headers[i].name.toLowerCase())return this.popup_headers[i].message; }return If; };HTMLEditor.prototype._context_menu_loc= function (lg){for (var i=0; i<this._ContextMenu.length; i++){var ig=this._ContextMenu[i]; var Ig=ig[2].toLowerCase().replace(/\s/g,"-"); for (var oh=0; oh<lg.length; oh++){var Oh=lg[oh]; var lh=Oh[0].toLowerCase(); if (Ig==lh){ig[2]=Oh[1]; break; }}}};HTMLEditor.prototype.RemoveContextMenuItem= function (ih){var Ih=ih.toLowerCase(); for (var i=0; i<this._ContextMenu.length; i++){var ig=this._ContextMenu[i]; var Ig=ig[2].toLowerCase().replace(/\s/g,"_"); if (Ig==Ih){ig[6]= true; break; }}};HTMLEditor._CUROBJ_=null; HTMLEditor.restoreOldTags=null; HTMLEditor.Id=null; HTMLEditor.l8=0; HTMLEditor.prototype.oi= function (Oi,name){if (this.k==0 && typeof this.onLoadingStart=="function")this.onLoadingStart((typeof Oi=="string")?Oi: "popup",name); this.k++; };HTMLEditor.prototype.ii= function (Oi,name){if (this.k>0){ this.k--; if (this.k==0 && typeof this.onLoadingEnd=="function")this.onLoadingEnd((typeof Oi=="string")?Oi: "popup",name); }};HTMLEditor.prototype.Ii= function (name){var lg=[]; var X=this ; var oj; for (var i=1; i<arguments.length; i++)lg.push(arguments[i]); function Oj(){X[name].apply(X,lg); }function lj(ij){try {Oj(); }catch (t){alert(t.message+"- Script loading failed..."); }if (!HTMLEditor.Ij && !HTMLEditor.is_ie)setTimeout( function (){try {if (HTMLEditor.ok)HTMLEditor.Ic(oj,"load",lj); document.body.removeChild(oj); }catch (t){alert("Late loaded function ("+name+"): "+t.message); }} ,5); HTMLEditor.l8--; if (HTMLEditor.l8==0)HTMLEditor._CUROBJ_=null; X.ii("script",name); }try {Oj(); }catch (t){if (typeof X[name]=="string"){function Ok(){if (HTMLEditor._CUROBJ_!=null)setTimeout(Ok,0144); HTMLEditor._CUROBJ_=X; HTMLEditor.l8=0; var Ia=X[name]; X[name]=null; X.oi("script",name); if (HTMLEditor.is_Safari && !HTMLEditor.ok){var lk=document.getElementById(X._hiddenContent+"_ifr_"+name); if (lk!=null){HTMLEditor.Ic(lk,"load",lj); document.body.removeChild(lk); }oj=document.createElement("IFRAME"); oj.style.width="0px"; oj.style.height="0px"; oj.id=X._hiddenContent+"_ifr_"+name; HTMLEditor.ik(oj,"load",lj); document.body.appendChild(oj); lk=document.getElementById(X._hiddenContent+"_ifr_"+name); lk.src=Ia; }else {oj=document.createElement("IFRAME"); oj.width="0"; oj.height="0"; oj.style.display="none"; if (HTMLEditor.is_Safari){oj.name=X._hiddenContent+"_ifr_"+name; }HTMLEditor.ik(oj,"load",lj); oj.src=Ia; document.body.appendChild(oj); }HTMLEditor.l8++; }Ok(); }}};HTMLEditor.prototype.Ik= function (ij){var ll=ij.target; var il=ll.tagName.toUpperCase(); if (!this.mainDivVisible)return true; if (il=="INPUT" || il=="TEXTAREA")return true; if (ij.keyCode==8){HTMLEditor._stopEvent(ij); return false; }var X=this ; setTimeout( function (){if (X.I1.body.offsetWidth==0 && X.mode()=="html" && X.mainDivVisible && X._iframe){X._textArea.value=X.getHTML(); var Il=X._textArea.parentNode.removeChild(X.l1); X.l1=null; delete Il; X.activate(); }} ,024); };HTMLEditor.om="OboutMSIEparagraph"; HTMLEditor.prototype.Om= function (Im){if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (this.j>0){try { this.on(); }catch (t){} ; return true; }else this.j=1; if (HTMLEditor.S()){if (!this.AjaxCurrentContent && !this.O0){if (this._hiddenContent){try {var On="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(On) && document.getElementsByName(On).length && document.getElementsByName(On).length>0){document.getElementsByName(On)[0].value=""; }}catch (t){}}document.getElementsByName(this.content_submitted_name)[0].value=""; document.getElementsByName(this.content_canceled_name)[0].value=""; return true; } this.O0= false; }if (!X.h){var In=null;if (this._hiddenContent){try {var On="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(On) && document.getElementsByName(On).length && document.getElementsByName(On).length>0){document.getElementsByName(On)[0].value=this.ContentChanged()?"1": ""; }}catch (t){} this.UnlinkEditorOject(); var oo=this._formSubmit(); var Oo=oo[0]; In=oo[1]; if (this._textArea.form){document.getElementsByName(this._hiddenContent)[0].value=Oo; }}if (this._hiddenCSS){document.getElementsByName(this._hiddenCSS)[0].value=this._CSSfile; }X.setOriginal(In); }else {if (this._hiddenContent){try {var On="content_changed_"+this.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(On) && document.getElementsByName(On).length && document.getElementsByName(On).length>0){document.getElementsByName(On)[0].value=""; }}catch (t){}}}document.getElementsByName(this.content_submitted_name)[0].value=X.H?"1": ""; X.H= false; document.getElementsByName(this.content_canceled_name)[0].value=X.h?"1": ""; X.h= false; if (!this.Io && this.mainDivVisible)return false; try { this.on(); }catch (t){} ; if (!this._textArea.form){try { this.on(); }catch (t){} ; return true; }if (typeof Im!="undefined" && Im== true){ this._textArea.form.submit(); }return true; };HTMLEditor.prototype.__cancel= function (){var X=this ; var le= true; if (typeof this.ClientCancel=="function"){le= false; var op=this.ClientCancel; try {le=op(this ); }catch (t){alert("ClientCancel function call error: "+t.message); }}if (le)if (this.content_canceled_event){X.j=0; var Op= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Op=Page_ClientValidate(X._validationGroup); }else {Op=Page_ClientValidate(); }}}catch (w){}}if (Op){X.h= true; X.openWait(); var lp= false; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){try {var ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (ip._updatePanelIDs && ip._updatePanelIDs.length && ip._updatePanelIDs.length>0)lp= true; }catch (w){}}if (lp){setTimeout( function (){var ip=window.Sys.WebForms.PageRequestManager.getInstance(); var form=ip._form; ip._postBackSettings=ip._createPostBackSettings( true ,null,null); ip._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.O0= true; ip._onFormSubmit(); Function._validateParams=save; try {X.on(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Om( true); } ,0); }}}};HTMLEditor.prototype.__submit= function (Im){ this.Ip= true; if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X,Im))return false; }X.j=0; if (typeof Im!="undefined"){var Op= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Op=Page_ClientValidate(X._validationGroup); }else {Op=Page_ClientValidate(); }}}catch (w){}}if (Op){X.H= true; X.openWait(); var lp= false; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){try {var ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (ip._updatePanelIDs && ip._updatePanelIDs.length && ip._updatePanelIDs.length>0)lp= true; }catch (w){}}if (lp){setTimeout( function (){var ip=window.Sys.WebForms.PageRequestManager.getInstance(); var form=ip._form; ip._postBackSettings=ip._createPostBackSettings( true ,null,null); ip._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.O0= true; ip._onFormSubmit(); Function._validateParams=save; try {X.on(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.Om(Im); } ,0); }}}else {X.Om(Im); }return true; };HTMLEditor.prototype.submit= function (oq){var X=this ; var Op= true; if (X._causesValidation){try {if (typeof Page_ClientValidate=="function"){if (X._validationGroup.length>0){Op=Page_ClientValidate(X._validationGroup); }else {Op=Page_ClientValidate(); }}}catch (w){}}if (Op){X.openWait(); setTimeout( function (){X.Om(typeof oq!="function"); if (typeof oq=="function")oq(); } ,0); }};HTMLEditor.getSelParent= function (X){var Oq=X.lq(); var iq=X.Iq(Oq); var parent=null; if (HTMLEditor.is_ie){if (Oq.type.toLowerCase()=="control")parent=iq.item(0); else parent=X.or(iq); }else {parent=X.or(iq); if (parent.nodeType!=3 && iq.startContainer==iq.endContainer){var p=parent; parent=parent.childNodes.item(iq.startOffset); if (parent==null)parent=p; }}return parent; };HTMLEditor.isControl= function (ll){var Or=" legend fieldset "; return (Or.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.prototype.lr= function (){var ll=HTMLEditor.getSelParent(this ); while (ll && ll.tagName && ll.tagName.toUpperCase()!="BODY"){if (HTMLEditor.isControl(ll)){return true; }ll=ll.parentNode; }return false; };HTMLEditor.prototype.isControl= function (){try {var Oq=this.lq(); if (HTMLEditor.is_ie){if (Oq.type.toLowerCase()=="control")return true; else return false; }else {var iq=this.Iq(Oq); var parent=this.or(iq); if (parent.nodeType!=3 && iq.startContainer==iq.endContainer){if (!parent.tagName)return false; if (iq.startContainer.childNodes.item(iq.startOffset)==null)return false; if (iq.startOffset==iq.endOffset && iq.startContainer.childNodes.item(iq.startOffset).tagName && iq.startContainer.childNodes.item(iq.startOffset).tagName.toUpperCase()=="BR")return false; if (parent.tagName.toUpperCase()=="BODY" && iq.startOffset==0 && iq.endOffset>0 && iq.endOffset==parent.childNodes.length)return false; if (iq.startOffset==iq.endOffset && iq.startContainer.childNodes.item(iq.startOffset).nodeType==3){return false; }return true; }else return false; }}catch (t){return true; }};HTMLEditor.prototype.ir=0; HTMLEditor.prototype.Ir= false; HTMLEditor.prototype.Io= false; HTMLEditor.prototype.os= false; HTMLEditor.prototype.Os= false; HTMLEditor.prototype.ls= false; HTMLEditor.prototype.isActivated= false; HTMLEditor.prototype.is= false; HTMLEditor.Is="obout-no-contextmenu"; HTMLEditor.prototype.noContextMenuAttributeName= function (){return HTMLEditor.Is; };HTMLEditor.ot="obout-attached-id"; HTMLEditor.prototype.attachedIdAttributeName= function (){return HTMLEditor.ot; };HTMLEditor.prototype.Ot= function (ll){var lt=null; if (ll.getAttribute(HTMLEditor.ot) && ll.getAttribute(HTMLEditor.ot).length>0){var par=ll.parentNode; while (par && par.tagName.toUpperCase()!="BODY"){if (par.tagName.toUpperCase()=="TABLE"){lt=par; break; }par=par.parentNode; }}return lt; };HTMLEditor.prototype.it= function (){if (document.getElementById(this.mainDivId)==null)return false; var ic=document.getElementById(this.mainDivId).parentNode; var It= true; while (ic){if (ic.style && ic.style.display=="none"){It= false; break; }ic=ic.parentNode; }return It; };HTMLEditor.prototype.v=null; HTMLEditor.prototype.setTimeout= function (op,ou){if (this.v!=null){try {var X=this ; var id=window.setTimeout( function (){op( true);} ,ou); X.v.push([op,id]); }catch (t){alert("setTimeout: "+t.message);}}else {window.setTimeout(op,ou); }};HTMLEditor.prototype.Ou= function (){var X=this ; if (this.v)for (var i=0; i<this.v.length; i++){if (typeof this.v[i][0]=="function" && this.v[i][0]==X.Ou.caller){ this.v[i][0]="none"; break; }}if (!this.it() || !this.mainDivVisible){try { this.on(); }catch (t){} ; this.i1="undef"; return true; }return false; };HTMLEditor.prototype.activate= function (lu){if (!this.Os){if (typeof EditorBeforeActivate=="function"){ this.Os= true; try {EditorBeforeActivate(this ); }catch (w){setTimeout( function (){alert("EditorBeforeActivate exception: "+w.message); } ,0); }}}var X=this ; var ic=document.getElementById(this.mainDivId).parentNode; var It= true; X.v=null; this.M=null; if (this.iu && HTMLEditor.S()){}if (!HTMLEditor.is_Safari)if (!X.J){X.J= true; if ( true){X.g= function (event){if (!X.J){if (HTMLEditor.is_ie){HTMLEditor.Ic(event.srcElement,"propertychange",HTMLEditor.od); event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }else {event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }return true; }var ic=X._textArea; while (ic!=null){if (ic.nodeType!=1)break; if (ic.tagName.toUpperCase()=="BODY")break; ic=ic.parentNode; }if (ic==null || ic.nodeType!=1){if (HTMLEditor.is_ie){HTMLEditor.Ic(event.srcElement,"propertychange",HTMLEditor.od); event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }else {event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }X.J= false; return true; }if (X._textArea.form==null){setTimeout( function (){eval(X.W+"_start()"); } ,0); if (HTMLEditor.is_ie){HTMLEditor.Ic(event.srcElement,"propertychange",HTMLEditor.od); event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }else {event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }X.J= false; try {var On="content_changed_"+X.content_submitted_name.substr(("content_submitted_").length); if (document.getElementsByName(On) && document.getElementsByName(On).length && document.getElementsByName(On).length>0){document.getElementsByName(On)[0].value=X.ContentChanged()?"1": ""; }}catch (t){}var Oo=X._formSubmit()[0]; document.getElementsByName(X._hiddenContent)[0].value=Oo; return true; }if (event.propertyName=="style.display"){var Iu=document.getElementById(X.mainDivId).parentNode; while (Iu && Iu.tagName && Iu.tagName.toUpperCase()!="BODY" && event.srcElement!=Iu){Iu=Iu.parentNode; }if (event.srcElement==Iu){X.ov=null; if (event.srcElement.style.display=="none"){if (X.mainDivVisible){X.ov= false; }}else {if (X.it() && !X.mainDivVisible){X.ov= true; }}if (X._isCallBackPanel){try {X.clearPopups( true); }catch (w){}try {if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; }}catch (w){}if (HTMLEditor.is_ie){HTMLEditor.Ic(event.srcElement,"propertychange",HTMLEditor.od); event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }else {event.srcElement.Od=null; HTMLEditor.ld(event.srcElement); }X.J= false; }else setTimeout( function (){if (X.ov!=null){var ic=X._textArea; while (ic!=null){if (ic.nodeType!=1)break; if (ic.tagName.toUpperCase()=="BODY")break; ic=ic.parentNode; }if (ic.nodeType==1)try {X.setVisibility(X.ov); }catch (w){}}X.ov=null; } ,024); }}} ; X.ov=null; while (ic && ic.tagName && ic.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.ik(ic,"propertychange",HTMLEditor.od); }X.Od=ic.Od; ic.Od= function (ij){if (X.Od!=null && typeof X.Od=="function")X.Od(ij); X.g(ij); };ic.Ov=ic.style.display; HTMLEditor.lv.push(ic); ic=ic.parentNode; }}else {}}HTMLEditor._CUROBJ_=null; if (this.iu && !HTMLEditor.S()){ this.on(); this._textArea.style.display="none"; this.iu= false; if (HTMLEditor.is_ie){if (this.i1=="html"){ this._iframe.style.visibility="hidden"; this._iframe.style.visibility="visible"; this.focusEditor(); }else if (this.i1=="preview"){ this.iv.style.visibility="hidden"; this.iv.style.visibility="visible"; }}if (!X.ls){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.Iv([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var le= false; try {le=ow(HTMLEditor.is_ie?X.O1.event:event); }catch (t){}return le; } ); X.ls= true; }}return; } this.Io= false; this.Ir= true; this.isActivated= false; this._wasFocused= false; if (!X.ls){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.Iv([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var le= false; try {le=ow(HTMLEditor.is_ie?X.O1.event:event); }catch (t){}return le; } ); X.ls= true; }}if (!X.os){if (!HTMLEditor.is_ie){ this.Ow=this.updateToolbar; this.updateToolbar= function (){try { this.Ow(); }catch (t){return; }} ; }}if (X.it() && !this.mainDivVisible && document.getElementById(this.mainDivId).style.display!="none"){ this.mainDivVisible= true; if (typeof this._setRealSize=="function")this._setRealSize(); if (this._textArea.offsetWidth>0 && this._textArea.offsetHeight>0)this.i8= {o9: this._textArea.offsetWidth,O9: this._textArea.offsetHeight } ; }if (!X.it() || !this.mainDivVisible){ this.on(); this.i1="text"; this.mainDivVisible= false; if (!this.os){ this.os= true; if (typeof EditorOnLoad=="function")setTimeout( function (){EditorOnLoad(X); } ,0); }return; }HTMLEditor.lw(window,document.getElementById(this.mainDivId)); function ow(ij){if (ij){if (X.isPopup()){HTMLEditor._stopEvent(ij); return false; }}return true; }X.v=[]; try { this.iw(); }catch (t){alert("activate: "+t.message); }function Iw(ox){if (X.Ou(ox))return; var Ox; try {Ox=X._iframe.contentWindow.document; }catch (t){X.setTimeout(Iw,012); return false; }try {if (!HTMLEditor.is_ie)X.I1.queryCommandValue("forecolor"); if (!Ox || !Ox.body || !X.I1 || !X.I1.body){X.setTimeout(Iw,012); return false; }}catch (t){if (!HTMLEditor.is_ie){X.setTimeout(Iw,012); }return false; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){if (X.ShowQuickFormatDivId!=null){X.lx=document.getElementById(X.ShowQuickFormatDivId).offsetWidth; X.ix=document.getElementById(X.ShowQuickFormatDivId).offsetHeight; }else {X.lx=0; X.ix=0; }X.Ix=document.getElementById(X.panelDivId).offsetWidth; }if (!HTMLEditor.is_ie){function oy(ll){for (var i=0; i<ll.childNodes.length; i++){if (ll.childNodes.item(i).nodeType==1){if (ll.childNodes.item(i).tagName.toUpperCase()=="SCRIPT"){ll.childNodes.item(i).innerHTML=ll.childNodes.item(i).innerHTML.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }else oy(ll.childNodes.item(i)); }}}oy(X.I1.body); }if (HTMLEditor.is_ie)HTMLEditor.Oy(X.I1.body,X.I1); HTMLEditor.ly(X,X.I1,!X.showAnchors); HTMLEditor.iy(X,X.I1,!X.showPlaceHolders); if (X.rtlSet && !X.rtlState())X.rtl(); var body=Ox.body; if (body.childNodes.length==1 && body.firstChild.tagName && body.firstChild.tagName.toUpperCase()=="DIV" && body.firstChild.style.cssText.length>0 && body.firstChild.style.direction.length>0 && Iy(body.firstChild,"position")!="absolute"){body.style.cssText=body.firstChild.style.cssText; var oz=body.firstChild; while (oz.firstChild)body.insertBefore(oz.firstChild,oz); body.removeChild(oz); }if (X.Oz){body.style.cssText=X.Oz; X.Oz=null; }function lz(ij){if (ij && ij.type=="contextmenu"){if (!X.isPopup() && HTMLEditor.Id==null){if (HTMLEditor.is_ie){try {var iz=X.I1.selection; var Iz=X.Iq(iz); }catch (t){HTMLEditor._stopEvent(ij); return false; }}return X.o10(ij,ij.clientX,ij.clientY); }else {HTMLEditor._stopEvent(ij); return false; }}}HTMLEditor.Iv([body,X._iframe.contentWindow],["contextmenu"], function (event){var le= false; if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; if (X.O10){X.O10.select(); X.O10=null; }}if (HTMLEditor.is_Safari){var Oq=X.lq(); var iq=X.Iq(Oq); X.l10=iq.cloneRange(); }try {le=lz(HTMLEditor.is_ie?X._iframe.contentWindow.event:event); }catch (t){}return le; } ); HTMLEditor.ik(body,HTMLEditor.is_ie?"drop": "dragdrop", function (event){X.i10(); if (typeof X.onDrop=="function")setTimeout( function (){X.onDrop(X); } ,0); return true; } ); X.I10(); if (HTMLEditor.o11)X.f= true; if (!HTMLEditor.is_Safari)X.setTimeout( function (ox){if (X.Ou(ox))return; if (!HTMLEditor.is_ie){if (X.O11!=null){X.selectAll(); X.l11(X.O11); X.O11=null; }}if (HTMLEditor.is_ie && !X._autoFocus){var i11=HTMLEditor.I11(X.I1.body.innerHTML); var o12=HTMLEditor.O12(X.I1.body.innerHTML); X.I1.body.innerHTML=X.I1.body.innerHTML; HTMLEditor.l12(X.I1.body,i11); HTMLEditor.i12(X.I1.body,o12); if (document.compatMode=="BackCompat")Ox.body.contentEditable= true; X._iframe.style.visibility="visible"; X.lq().empty(); }if (X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe && X._autoFocus){X.updateToolbar(); X.focusEditor(); if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && !HTMLEditor.o11){var anchor=X.I1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.I1.body.insertBefore(anchor,X.I1.body.firstChild); anchor.focus(); anchor.blur(); X.focusEditor(); X.I1.body.removeChild(anchor); }}}if (!HTMLEditor.is_ie)X.I1.body.innerHTML=HTMLEditor.I12(HTMLEditor.getHTML(X.I1.body, false , true)); if (!HTMLEditor.is_Safari || X.ir>0)X.isActivated= true; if ((!X._StartEnd || !HTMLEditor.is_ie) && X._autoFocus){if (X.mode()=="html" && X.mainDivVisible && X._iframe && typeof lu!="function"){if (HTMLEditor.is_ie){X.setTimeout( function (ox){if (X.Ou(ox))return; X.focusEditor(); var Oq=X.lq(); var iq=X.Iq(Oq); if (Oq.type.toLowerCase()!="control"){iq.moveEnd("textedit",1); iq.collapse( false); }iq.select(); X.updateToolbar(); X.focusEditor(); } ,0144); }else {X.o13( false); }}}HTMLEditor._CUROBJ_=null; if (X.scrollIntoView && !HTMLEditor.is_Safari)document.getElementById(X.mainDivId).scrollIntoView( false); if (X._autoFocus)X.focusEditor(); HTMLEditor.O13(X.I1.body); if (typeof lu=="function")lu(); X.Io= true; if (HTMLEditor.l13){var i13=X.clientID+"_bottom_chMode()"; try {eval(i13); }catch (I13){} ; }} ,HTMLEditor.is_ie?012: 0144); if (HTMLEditor.is_Safari){HTMLEditor.O13(X.I1.body); X.isActivated= true; HTMLEditor._CUROBJ_=null; if (X.o14) delete X.o14; X.o14=new Object(); X.setTimeout( function (ox){if (X.Ou(ox))return; if (X.O11!=null){X.selectAll(); X.l11(X.O11); X.O11=null; }if (!X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe){X.o13( false); }}X.Io= true; } ,0144); }X.ir++; X.on(); if (!X.os){if (typeof EditorOnLoad=="function")X.setTimeout( function (ox){if (X.Ou(ox))return; EditorOnLoad(X); } ,0310); }if (!X.is){if (X._autoFocus){if (X._ModeHTML || X._PreviewOnInit){if (X.l){X.l= false; X.O14=HTMLEditor.I12(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l14(); }}X.setTimeout( function (ox){if (X.Ou(ox))return; X.chMode(X._ModeHTML?"text": "preview"); } ,0764); }}}if (!X._autoFocus){X.i14=X.is; X.setTimeout( function (ox){if (X.Ou(ox))return; if (!X.i14 && (X._ModeHTML || X._PreviewOnInit)){if (X.l){X.l= false; X.O14=HTMLEditor.I12(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l14(); }}X.setTimeout( function (ox){if (X.Ou(ox))return; X.chMode(X._ModeHTML?"text": "preview"); } ,0764); }else {HTMLEditor.I14(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I14(X.ShowQuickFormatDivId, true); }} ,HTMLEditor.is_ie?0144: 012); }X.os= true; X.is= true; if (X.l){X.setTimeout( function (ox){if (X.Ou(ox))return; X.l= false; X.O14=HTMLEditor.I12(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l14(); }} ,0310); }if (HTMLEditor.is_ie && X._setRealSize && typeof X._setRealSize=="function"){X._textArea.style.display=""; X._setRealSize(); var height=X._textArea.offsetHeight; X._iframe.style.height=height+"px"; X.iv.style.height=height+"px"; if (HTMLEditor.is_ie)height-=2; X.o15.style.height=height+"px"; X.i8.O9=X._textArea.offsetHeight;X._textArea.style.display="none"; X._setRealSize=null; }}X.setTimeout(Iw,012); };HTMLEditor.prototype.ContentChanged= function (Im){var O15=this.mode(); var l15=(typeof Im=="undefined")? true :Im;if (O15=="preview")O15=this.i15; try {if (this.l1 && O15=="html"){if (this.l)return false; if (this.O14){if (this.mode()=="preview"){return (!(this.O14==HTMLEditor.I12(this.I15))) && l15; }else {return !(this.O14==HTMLEditor.I12(HTMLEditor.getHTML(this.I1.body, false , true))); }}else return false; }else {if (this.o15 && this.o16!=null){return (!(HTMLEditor.I12(this.o16)==HTMLEditor.I12(this.o15.value)) || (this.O16 && l15)); }else {return false; }}}catch (t){return false; }};HTMLEditor.prototype.l14= function (){var X=this ; if (this.o0 || this.onClientContentChanged==null || typeof this.onClientContentChanged!="function")return; try {if (this.l1 && this.mode()=="html"){var l16=HTMLEditor.I12(this.I1.body.innerHTML); if (this.i0!=null){if (this.i0!=l16){var i16= {previous:{} ,current:{}} ; var div=document.createElement("div"); div.innerHTML=this.i0; i16.previous.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; i16.previous.htmlTextLength=HTMLEditor.I12(div.innerHTML).length; this.i0=l16; div.innerHTML=this.i0; i16.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; i16.current.htmlTextLength=HTMLEditor.I12(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(i16); }catch (t){}} ,0); delete div; }}else {var i16= {previous:{} ,current:{}} ; var div=document.createElement("div"); i16.previous.plainTextLength=0; i16.previous.htmlTextLength=0; this.i0=l16; div.innerHTML=this.i0; i16.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; i16.current.htmlTextLength=HTMLEditor.I12(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(i16); }catch (t){}} ,0); delete div; }}}catch (t){}};HTMLEditor.prototype.o13= function (I16){var X=this ; X.setTimeout( function (ox){if (X.Ou(ox))return; var index=0; var o17=X.I1.body; var anchor=null; if (!X._StartEnd || I16){if (o17.lastChild && o17.lastChild.nodeType==3){o17=o17.lastChild; index=(""+o17.data+"").length; }else if (o17.lastChild && o17.lastChild.nodeType==1 && o17.lastChild.tagName.toUpperCase()=="BR"){index=HTMLEditor.O17(o17.lastChild); var l17=X.I1.createTextNode(""); o17.insertBefore(l17,o17.lastChild); o17=l17; index=0; }else {var l17=X.I1.createTextNode(""); o17.appendChild(l17); o17=l17; index=0; }}if (HTMLEditor.is_Safari){X.o14.type="Caret"; X.o14.focusNode=o17; X.o14.focusOffset=index; }else {var Oq=X.lq(); X.i17(Oq); var iq=X.Iq(); iq.setStart(o17,index); iq.setEnd(o17,index); X.I17(Oq,iq); }if (anchor!=null){X.I1.body.removeChild(anchor); }X.updateToolbar(); X.focusEditor(); if (!X._StartEnd || I16)if (!HTMLEditor.is_Safari && !HTMLEditor.o11){try {var anchor=X.I1.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; X.I1.body.appendChild(anchor); anchor.focus(); anchor.blur(); X.focusEditor(); X.I1.body.removeChild(anchor); }catch (t){}}} ,012); };HTMLEditor.prototype.o18= function (){} ; HTMLEditor.prototype.popupClosed= function (){} ; HTMLEditor.prototype.updateToolbar= function (){} ; HTMLEditor.prototype.O18= function (){var X=this ; var lk=HTMLEditor.getHTML(X.I1.body, false , true); var le=[HTMLEditor.I12(lk),lk]; return le; };HTMLEditor.prototype.setMode= function (mode,l18){var X=this ; switch (mode){case "preview":if (!this._autoFocus && !this._wasFocused){HTMLEditor.i18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId); }X.openWait(); X._waitSetMode= true; setTimeout( function (){var I18=""; X.i15=X.i1; if (X.i1=="html"){X.i10(); var o19=X.O18(); X.I15=o19[0]; I18=X.getHTML( false ,o19[1]); X.O19=I18; X.Oz=X.I1.body.style.cssText; try {if (HTMLEditor.is_ie)X.lq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var Il=X.l1.removeChild(X._iframe); X._iframe=null; delete Il; }catch (t){}if (!HTMLEditor.is_Safari){X.ix=X.i8.O9; X.l19=X.i8.i19; }if (X.ShowQuickFormatDivId!=null){HTMLEditor.I14(X.ShowQuickFormatDivId); }}else {if (X.o15){I18=X.o15.value; X.o15.style.display="none"; if (HTMLEditor.is_ie)X.o15.style.visibility="hidden"; if (!HTMLEditor.is_Safari){X.i8.O9=X.ix; X.i8.i19=X.l19; X.iv.style.height=X.i8.O9; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){}}}X.iv.style.display=""; X.i1=mode; setTimeout( function (){X.I19(I18); if (typeof l18=="function")try {l18(); }catch (t){} ; X._waitSetMode= false; try {X.iv.focus(); }catch (t){}} ,0); } ,0); break; case "text":if (X.i1=="preview"){var o1a; X.iv.style.display="none"; X.iv.src=HTMLEditor.is_ie?"javascript:false;": ""; if (HTMLEditor.is_ie)X.iv.style.visibility="hidden"; X.o15.style.display=""; if (X.i15=="html"){o1a=X.O19; X.o16=o1a; }else {o1a=X.o15.value; }X._waitSetMode= true; X.o15.value=""; X.i1=mode; setTimeout( function (){setTimeout( function (){X.o15.value=o1a; X.focusEditor(); X._waitSetMode= false; } ,0144); if (typeof l18=="function")try {l18(); }catch (t){} ; if (!HTMLEditor.is_Safari){X.i8.O9=X.ix; X.i8.i19=X.l19; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.o15.style.height=parseInt(X.i8.O9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.o15.style.width="100%"; setTimeout( function (){X.o15.style.width=X.o15.offsetWidth+"px"; } ,0); }}if (HTMLEditor.is_ie)X.o15.style.visibility="visible"; } ,0); return; }else X.Oz=X.I1.body.style.cssText; if (!this._autoFocus && !this._wasFocused){HTMLEditor.i18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId); }try {X.i10(); }catch (t){} ; X.openWait(); X._waitSetMode= true; X.o0= true; if (this.it() && this.I0){var O1a=HTMLEditor.om+"_right"; var l1a=HTMLEditor.om+"_left"; var i1a=this.I1.createElement("SPAN"); i1a.id=l1a; var I1a=this.I1.createElement("SPAN"); I1a.id=O1a; try {if (!this.isControl()){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; var Oq=this.lq(); var iq=this.Iq(Oq); var l1b=(HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (l1b){var i1b=this.I1b(); i1b[0].parentNode.insertBefore(i1a,i1b[0]); if (i1b[i1b.length-1].nextSibling!=null)i1b[i1b.length-1].parentNode.insertBefore(I1a,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(I1a); }else {var o1c=this.I1.createElement("DIV"); o1c.appendChild(i1a); o1c.appendChild(I1a); this.l11(o1c.innerHTML); delete o1c; }}else {var O1c=HTMLEditor.getSelParent(this ); O1c.parentNode.insertBefore(i1a,O1c); if (O1c.nextSibling!=null)O1c.parentNode.insertBefore(I1a,O1c.nextSibling); else O1c.parentNode.appendChild(I1a); }}catch (w){var l1c=this.I1.getElementById(l1a); if (l1c!=null)l1c.parentNode.removeChild(l1c); l1c=this.I1.getElementById(O1a); if (l1c!=null)l1c.parentNode.removeChild(l1c); }}setTimeout( function (){var o19=X.O18(); X.I15=o19[0].replace(/<span id="OboutMSIEparagraph_left"><\/span>/,"").replace(/<span id="OboutMSIEparagraph_right"><\/span>/,""); var I18=X.getHTML( false ,o19[1]); var i1c=0; var I1c=0; var o1d; o1d=I18.indexOf("\x3cspan id=\"OboutMSIEparagraph_left\">\x3c/span>"); if (o1d>=0)i1c=o1d; I18=I18.replace(/<span id="OboutMSIEparagraph_left"><\/span>/,""); o1d=I18.indexOf("\x3cspan id=\"OboutMSIEparagraph_right\">\x3c/span>"); if (o1d>=0)I1c=o1d; I18=I18.replace(/<span id="OboutMSIEparagraph_right"><\/span>/,""); if (HTMLEditor.o11){var O1d=0; for (var i=0; i<i1c; i++)if (I18[i]=="\n")O1d++; i1c+=O1d; O1d=0; for (var i=0; i<I1c; i++)if (I18[i]=="\n")O1d++; I1c+=O1d; }X.iv.style.display="none"; if (HTMLEditor.is_ie)X.iv.style.visibility="hidden"; X.o16=I18; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.lq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var Il=X.l1.removeChild(X._iframe); X._iframe=null; delete Il; }catch (t){}X.o15.value=""; X.o15.style.display=""; X.i1=mode; setTimeout( function (){setTimeout( function (){X.o15.value=I18; X.o0= false; X.focusEditor(); X._waitSetMode= false; if (X.I0)if (X.o15.setSelectionRange && I1c>0){X.o15.setSelectionRange(I1c-1,I1c); var ij=null; try {ij=document.createEvent("KeyEvents"); ij.initKeyEvent("keypress", true , true ,window, false , false , false , false ,0,X.o15.value.charCodeAt(I1c-1)); }catch (w){try {ij=document.createEvent("Events"); }catch (l1d){ij=document.createEvent("UIEvents"); } finally {ij.initEvent("keypress", true , true); ij.i1d=window; ij.altKey= false; ij.ctrlKey= false; ij.shiftKey= false; ij.I1d= false; ij.keyCode=X.o15.value.charCodeAt(I1c-1); ij.charCode=X.o15.value.charCodeAt(I1c-1); }}X.o15.focus(); X.o15.dispatchEvent(ij); X.o15.setSelectionRange(i1c,I1c); }else HTMLEditor.setSelectionRange(X.o15,i1c,I1c); X.I0= true; } ,0144); if (typeof l18=="function")try {l18(); }catch (t){} ; if (!HTMLEditor.is_Safari && (X.it() || !HTMLEditor.is_ie)){var o1e=document.getElementById(X.panelDivId); o1e.style.display="none"; }if (X.ShowQuickFormatDivId!=null){setTimeout( function (){HTMLEditor.I14(X.ShowQuickFormatDivId); } ,0); }if (!HTMLEditor.is_Safari){X.ix=X.i8.O9; X.l19=X.i8.i19; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.o15.style.height=parseInt(X.i8.O9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.o15.style.width="100%"; setTimeout( function (){X.o15.style.width=X.o15.offsetWidth+"px"; } ,0); }}else {if (!HTMLEditor.is_Safari){X.o15.style.height=parseInt(X.i8.O9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+parseInt(X.l19)+"px";}}X.on(); if (HTMLEditor.is_ie)X.o15.style.visibility="visible"; X.focusEditor(); } ,0764); } ,0); break; case "html":if (X._iframe!=null)try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.lq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var Il=X.l1.removeChild(X._iframe); X._iframe=null; delete Il; }catch (t){}if (HTMLEditor.is_ie)if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId); X.openWait(); X._waitSetMode= true; if (HTMLEditor.is_Safari)X._textArea.style.display=""; X.setTimeout( function (ox){if (X.Ou(ox)){if (typeof l18=="function")try {l18(); }catch (t){} ; return; }if (X.ContentChanged( false) || X.l || X.I15==null || typeof X.I15=="undefined"){X.F=null; X._textArea.value=X.getHTML(); X.Oz=null; if (X.iv!=null)X.iv.src=HTMLEditor.is_ie?"javascript:false;": ""; }else {X._textArea.value=X.I15; }if (HTMLEditor.is_Safari)X._textArea.style.display="none"; if (HTMLEditor.is_Safari)X._textArea.style.visibility="hidden"; if (HTMLEditor.is_Safari)if (X.o15!=null)X.o15.style.visibility="hidden"; if (X.ShowQuickFormatDivId!=null)HTMLEditor.i18(X.ShowQuickFormatDivId); if (!X.ContentChanged( false)){if (X.K)if (X.O1e>0)X.O1e--; }if (!HTMLEditor.is_Safari){if (typeof X.ix!="undefined")X.i8.O9=X.ix; if (typeof X.l19!="undefined")X.i8.i19=X.l19; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X.o15!=null){X.o15.style.width=parseInt(X.o15.style.width)-X.lx+"px"; X.i8.o9=parseInt(X.o15.style.width)+(document.compatMode!="BackCompat"?4: 2)+"px"; }X.setTimeout( function (ox){if (X.Ou(ox))return; try {var Il=X._textArea.parentNode.removeChild(X.l1); X.l1=null; delete Il; }catch (t){}var o1e=document.getElementById(X.panelDivId); o1e.style.display=""; X.activate(); X.i1=mode; if (typeof l18=="function")try {l18(); }catch (t){} ; if (!(HTMLEditor.is_Safari && X.__NoToolBar__))if (X.mainDivVisible){X.setTimeout( function (ox){if (X.Ou(ox))return; X._onresize(); } ,0); }setTimeout( function (){X._waitSetMode= false; } ,0144); } ,0); } ,0); break; default:X._waitSetMode= false; alert("Mode <"+mode+"> not defined"); return false; }} ; HTMLEditor.o2=null; HTMLEditor.prototype.isPopup= function (){return (this.o2!=null || HTMLEditor.o2!=null || HTMLEditor.l1e!=null); };HTMLEditor.prototype.i1e= function (name){if (this.l1 && this.mode()=="html" && !this.isPopup()){ this._CSSfile=name; var Il=this._textArea.parentNode.removeChild(this.l1); var save=this.I1.body.innerHTML; this.l1=null; delete Il; this._textArea.value=save; this.activate(); return true; }return false; };HTMLEditor.prototype.undo= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.I1e( true); this.l14(); };HTMLEditor.prototype.redo= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1f(); this.l14(); };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.O1f(); X.l1f("c", true); X.on(); X.i1f(); } ,0);}else this.l1f("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.O1f(); X.l1f("x", true); X.on(); } ,0);}else this.l1f("x", true); };HTMLEditor.prototype.deleteSelection= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){var Oq=this.lq(); this.i10(); Oq.clear(); this.I10(); }else this.l1f("x", true); };HTMLEditor.prototype.paste= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.i10(); this.openWait(); setTimeout( function (){X._paste( true); X.on(); } ,0);}else {var Oq=this.lq(); var iq=this.Iq(Oq); this.i17(Oq); if (HTMLEditor.is_Safari)alert(this.Of("safari-v","Use Apple-V")); else alert(this.Of("moz-v","Use Ctrl-V")); if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); this.isWord= false; }};HTMLEditor.prototype.pasteWord= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.i10(); this.openWait(); setTimeout( function (){X._paste( true , true); X.on(); } ,0);}else {var Oq=this.lq(); var iq=this.Iq(Oq); var I1f=this.Of("msword-switched","Pasting from MS Word is switched on. Just now:")+" "; I1f+=(HTMLEditor.is_Safari)?this.Of("safari-v","Use Apple-V"): this.Of("moz-v","Use Ctrl-V"); this.i17(Oq); alert(I1f); if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); this.isWord= true; }};HTMLEditor.prototype.contextMenu= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; setTimeout( function (){X.o1g(); } ,0); };HTMLEditor.prototype.pasteText= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.i10(); this.openWait(); setTimeout( function (){X._paste( false); X.on(); } ,0);}else {var Oq=this.lq(); var iq=this.Iq(Oq); var X=this ; var Ox=X.I1; function O1g(l1g){if (l1g.length>0){X.i10(); X.l11(l1g); X.l14(); }X.focusEditor(); return true; } this.Ii("_mozPastePlain",O1g,this.og("paste-plain","Paste Plain Text")); }};HTMLEditor.prototype.selectAll= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_ie){var i1g=this.I1.body.createTextRange(); i1g.select(); }else {if (HTMLEditor.o11){ this.f= true; this.focusEditor(); }var Oq=this.lq(); this.i17(Oq); var iq=this.Iq(); iq.selectNodeContents(this.I1.body); if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); } this.updateToolbar(); };HTMLEditor.prototype.selectNone= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var Oq=this.lq(); var iq=this.Iq(Oq); if (HTMLEditor.is_ie){iq.setEndPoint("StartToEnd",iq); iq.select(); }else {if (HTMLEditor.o11){ this.f= true; this.focusEditor(); } this.i17(Oq); iq.setStart(iq.endContainer,iq.endOffset); this.I17(Oq,iq); }setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,0144); };HTMLEditor.prototype.rtl= function (){if (!(this.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.I1g= false; HTMLEditor.prototype.bold= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("bold"); };HTMLEditor.prototype.boldState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("bold"); };HTMLEditor.prototype.l1h= false; HTMLEditor.prototype.italic= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; this.o1h("italic"); };HTMLEditor.prototype.italicState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("italic"); };HTMLEditor.prototype.i1h= false; HTMLEditor.prototype.underline= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; this.o1h("underline"); };HTMLEditor.prototype.underlineState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("underline"); };HTMLEditor.prototype.I1h= false; HTMLEditor.prototype.strikeThrough= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("strikeThrough"); };HTMLEditor.prototype.strikeThroughState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("strikeThrough"); };HTMLEditor.prototype.o1i= false; HTMLEditor.prototype.subScript= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; this.o1h("subScript"); };HTMLEditor.prototype.subScriptState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("subScript"); };HTMLEditor.prototype.O1i= false; HTMLEditor.prototype.superScript= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("superScript"); };HTMLEditor.prototype.superScriptState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.O1h("superScript"); };HTMLEditor.prototype.foreColor= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1i(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.i1i("forecolor", false ,par); } ,0144); }else X.i1i("forecolor", false ,par); }if (HTMLEditor.is_Safari)this.Iq(this.lq()); setTimeout( function (){try {X.Ii("_selectColor",X.Og("color","Font Color"),l1i); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.foreColorValue= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.isControl())return "#000000"; var le=HTMLEditor.I1i(this.o1j("forecolor")); return le; };HTMLEditor.prototype.foreColorClear= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.Iq(this.lq()); this.i1i("forecolor", false ,""); };HTMLEditor.prototype.backColor= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function l1i(par){if (HTMLEditor.is_Safari){setTimeout( function (){X.i1i("backcolor", false ,par); } ,0144); }else X.i1i("backcolor", false ,par); }if (HTMLEditor.is_Safari)this.Iq(this.lq()); setTimeout( function (){try {X.Ii("_selectColor",X.og("color","Background Color"),l1i); }catch (t){alert(t.message); }} ,012); };HTMLEditor.prototype.backColorValue= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return ""; if (this.isControl())return "#FFFFFF"; return HTMLEditor.I1i(this.o1j("backcolor")); };HTMLEditor.prototype.backColorClear= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)this.Iq(this.lq()); this.i1i("backcolor", false ,""); };HTMLEditor._styleTags=["strong","em","u","strike","s","span","font","b","sub","sup","a","i"]; HTMLEditor.O1j= function (il){if (!il)return false; for (var i=0; i<HTMLEditor._styleTags.length; i++)if (HTMLEditor._styleTags[i].toLowerCase()==il.toLowerCase())return true; return false; };HTMLEditor.prototype.clearStyles= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari)this.Iq(this.lq()); setTimeout( function (){try {X.Ii("_clearStyles"); X.l14(); }catch (t){}} ,012); };HTMLEditor.prototype.setClassName= function (name){var X=this ; if (!this._wasFocused)return; this.focusEditor(); if (HTMLEditor.is_Safari)this.Iq(this.lq()); try {var le=this._setClassName(name); this.l14(); return le; }catch (t){alert("setClassName: "+t.message); return false; } ; };HTMLEditor.prototype.AssignClassName= function (name){if (this.mode()!="html")return false; this.focusEditor(); if (HTMLEditor.is_Safari)this.Iq(this.lq()); if (this.isControl()){ this.i10(); try {HTMLEditor.getSelParent(this ).className=name; }catch (t){ this.I1e( false); }}else this.setClassName(name); return true; };HTMLEditor.prototype.SelectedTextNodes= function (){if (this.mode()!="html")return []; this.focusEditor(); if (HTMLEditor.is_Safari)this.Iq(this.lq()); var i1b=this.I1b(); if (i1b.length>0)this.l1j(i1b); return i1b; };HTMLEditor.prototype.i1j= function (){if (this.mode()!="html")return null; this.focusEditor(); var Oq=this.lq(); var iq=this.Iq(Oq); var parent=null; if (HTMLEditor.is_ie){if (Oq.type.toLowerCase()=="control")parent=iq.item(0); else parent=null; }else {parent=this.or(iq); if (parent.nodeType!=3 && iq.startContainer==iq.endContainer){if (!parent.tagName)return null; if (iq.startContainer.childNodes.item(iq.startOffset)==null)return null; if (iq.startOffset==iq.endOffset && iq.startContainer.childNodes.item(iq.startOffset).tagName && iq.startContainer.childNodes.item(iq.startOffset).tagName.toUpperCase()=="BR")return null; if (parent.tagName.toUpperCase()=="BODY" && iq.startOffset==0 && iq.endOffset>0 && iq.endOffset==parent.childNodes.length)return null; parent=iq.startContainer.childNodes.item(iq.startOffset); }else return null; }return parent; };HTMLEditor.prototype.getClassName= function (){try {var Oq=this.lq(); var iq=this.Iq(Oq); var parent; if (HTMLEditor.is_ie && Oq.type.toLowerCase()=="control")parent=iq.item(0); else parent=this.or(iq); if (parent.nodeType==3){parent=parent.parentNode; }while ( true){if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.om && parent.className.length>0){return parent.className; }else {if (parent && parent.tagName && HTMLEditor.O1j(parent.tagName)){parent=parent.parentNode; continue; }else break; }}}catch (t){}return ""; };HTMLEditor.prototype.fontName= function (select,event){try {var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }HTMLEditor._stopEvent(event); if (event.type=="click" && !HTMLEditor.is_Safari)return false; var X=this ; if (HTMLEditor.is_Safari)this.Iq(this.lq()); this.o1h("fontname",select.options.item(select.selectedIndex).value); }catch (t){alert("FontName: "+t.message); } ; };HTMLEditor.prototype.I1j=0; HTMLEditor.prototype.fontNameState= function (o1k){var param=null; try {param=this.o1j("fontname"); }catch (t){}if (!this._FontNotSet)if (!param || param.length==0){if (!this.O1k)this.O1k=HTMLEditor.Iy(this.I1.body,"font-family"); param=this.O1k; }if (typeof o1k!="undefined"){var ll=document.getElementById(o1k); ll=ll.childNodes.item(1); var i=0; if (param && param.length>0){var ie=param.toLowerCase().split(",")[0]; for (i=0; i<ll.options.length; i++){var l16=ll.options.item(i).value.toLowerCase().split(",")[0]; if (l16==ie)break; }if (i==ll.options.length){try {var l1k=document.createElement("OPTION"); l1k.value=param; l1k.text=param.split(",")[0]; ll.add(l1k,HTMLEditor.is_ie?i:null); X.I1j=0; }catch (t){var X=this ; if (X.I1j<012){setTimeout( function (){X.fontNameState(o1k); } ,0144); X.I1j++; }i=0; }}}ll.selectedIndex=i; }return param; };HTMLEditor.i1k= function (I1k){var ie=I1k.toString(); switch (ie){case "1":ie="8pt"; break; case "2":ie="10pt"; break; case "3":ie="12pt"; break; case "4":ie="14pt"; break; case "5":ie="18pt"; break; case "6":ie="24pt"; break; case "7":ie="36pt"; break; }return ie; };HTMLEditor.prototype.fontSize= function (select,event){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }HTMLEditor._stopEvent(event); if (event.type=="click" && !HTMLEditor.is_Safari)return false; var X=this ; if (HTMLEditor.is_Safari)this.Iq(this.lq()); this.o1h("fontsize",HTMLEditor.i1k(select.options.item(select.selectedIndex).value)); };HTMLEditor.prototype.o1l=0; HTMLEditor.prototype.fontSizeState= function (o1k){var param=null; try {param=this.o1j("fontsize",o1k); }catch (t){}if (param)param=param.toString(); if (!this._FontNotSet)if (!param || param.length==0){if (!this.O1l){ this.O1l=HTMLEditor.Iy(this.I1.body,"font-size"); this.O1l=HTMLEditor.l1l(this.O1l,this,o1k); }param=this.O1l; }if (typeof o1k!="undefined"){try {var ll=document.getElementById(o1k); ll=ll.childNodes.item(1); var i=0; if (param && param.length>0){var ie=param.toLowerCase().split(",")[0]; for (i=0; i<ll.options.length; i++){var l16=HTMLEditor.i1k(ll.options.item(i).value.toLowerCase().split(",")[0]); if (l16==ie)break; }if (i==ll.options.length){try {var l1k=document.createElement("OPTION"); l1k.value=param; l1k.text=param; ll.add(l1k,HTMLEditor.is_ie?i:null); X.o1l=0; }catch (t){var X=this ; if (X.o1l<012){setTimeout( function (){X.fontSizeState(o1k); } ,0144); X.o1l++; }i=0; }}}ll.selectedIndex=i; }catch (t){alert("fontSizeState: "+t.message); }}return param; };HTMLEditor.prototype.justifyLeft= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("justifyLeft",value); };HTMLEditor.prototype.justifyFull= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("justifyFull",null); };HTMLEditor.prototype.justifyCenter= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("justifyCenter",value); };HTMLEditor.prototype.justifyRight= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("justifyRight",value); };HTMLEditor.prototype.paragraph= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1h("paragraph",value); };HTMLEditor.prototype.orderedList= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1h("InsertOrderedList",value); };HTMLEditor.prototype.bulletedList= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1h("InsertUnorderedList",value); };HTMLEditor.prototype.decreaseIndent= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1h("Outdent",value); };HTMLEditor.prototype.increaseIndent= function (value){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; this.o1h("Indent",value); };HTMLEditor.prototype.createLink= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_Safari && !HTMLEditor.ok){param=prompt("Enter URL"); this.SurroundHTML("<a href='"+param+"'>","</a>"); return; }try {if (this.l1 && this.mode()=="html" && !this.isPopup()){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; var Oq=this.lq(); var iq=this.Iq(Oq); var i1l=null; if (!(this.isControl() && HTMLEditor.getSelParent(this ).tagName && (HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="EMBED" || HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG")) && !(!this.isControl() && ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))){ this.i10(); var I1l=this.I1.createElement("span"); I1l.innerHTML="new link"; I1l.id=HTMLEditor.om; var o1m= true; if (HTMLEditor.is_ie && this.isControl()){var O1c=iq.item(0); var O1m=this.I1.createElement("span"); O1c.parentNode.insertBefore(O1m,O1c); i1l=I1l.firstChild; O1c.parentNode.insertBefore(i1l,O1c); var l1m=this.I1.createElement("span"); O1c.parentNode.insertBefore(l1m,O1c); O1c.parentNode.removeChild(O1c); this.i1m([O1m,l1m], false); o1m= false; }else { this.l11(HTMLEditor.getHTML(I1l, true)); var ll=this.I1.getElementById(HTMLEditor.om); i1l=ll.firstChild; ll.parentNode.insertBefore(ll.firstChild,ll); ll.parentNode.removeChild(ll); }if (!HTMLEditor.is_ie){iq=this.Iq(); iq.setStart(i1l,0); iq.setEnd(i1l,(""+i1l.data+"").length); this.i17(Oq); this.I17(Oq,iq); }else {if (o1m)iq.select(); }o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; Oq=this.lq(); iq=this.Iq(Oq); }if ((this.isControl() && HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG") || (!this.isControl() && ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))){ this.i10(); var I1m=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); var i16= {target: "default",href:I1m,title: "" } ; var o1n; function O1g(O1n){try {if (O1n){var l1n=X.I1.getElementsByTagName("A"); var i1n=0; for (var i=0; i<l1n.length; i++){var I1n= true; var a=l1n[i]; for (var oh=0; oh<o1n.length; oh++)if (a==o1n[oh]){I1n= false; break; }if (!I1n)continue; try {var o1o=a.href; a.href=i16.href; if (i16.target)a.target=i16.target; if (i16.title.length>0)a.title=i16.title; i1n=i; }catch (w){}}if (i1l)i1l.data=i16.href; if (HTMLEditor.o11)X.f= true; if (l1n.length>0){var O1o=l1n[i1n]; var I1l=X.I1.createElement("span"); I1l.innerHTML="&nbsp;"; if (O1o.nextSibling!=null)O1o.parentNode.insertBefore(I1l,O1o.nextSibling); else O1o.parentNode.appendChild(I1l); setTimeout( function (){HTMLEditor.l1o(I1l,X); setTimeout( function (){O1o.parentNode.removeChild(I1l); } ,0); } ,0); }setTimeout( function (){X.updateToolbar(); X.l14(); } ,5); }else {X.I1e( false); X.K.pop(); if (i1l){X.I1e( false); X.K.pop(); }}X.focusEditor(); }catch (t){alert("URL Link create: "+t.message); }return true; }var lk=X.I1.getElementsByTagName("A"); var l1n=[]; for (var i=0; i<lk.length; i++){try {var hr=lk[i].href; l1n.push([lk[i],""+hr+""]); }catch (w){}} this.i1i("createLink", false ,I1m); o1n=[]; for (var i=0; i<l1n.length; i++){var a=l1n[i][0]; var href=l1n[i][1]; if (a.href==href)o1n.push(a); } this.Ii("_urlProperties",this.og("link","Create URL Link"),i16,O1g); }else {var X=this ; setTimeout( function (){window.alert("Please highlight text or image for the new link"); } ,0310); }}}catch (t){alert("createLink :"+t.message); }};HTMLEditor.O4= function (X,link){function O1g(O1n){if (!O1n){setTimeout( function (){X.I1e( false); } ,012); }else {if (link.title.length==0){link.title=null; link.removeAttribute("title"); }if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); X.Ii("_urlProperties",X.Og("link","Edit URL Link"),link,O1g); };HTMLEditor.i1o=/^(([0-9]+(px|%|$))|$)/i; HTMLEditor.setSelectionRange= function (input,I1o,o1p){try {var start=(typeof I1o=="undefined")?0:I1o; var end=(typeof o1p=="undefined")?input.value.length:o1p; input.focus(); if (input.setSelectionRange){input.setSelectionRange(start,end); }else if (input.createTextRange){var iq=input.createTextRange(); iq.collapse( true); iq.moveEnd("character",end); iq.moveStart("character",start); iq.select(); }}catch (t){}};HTMLEditor.prototype.insertDiv= function (){var X=this ; var O1p; var id=HTMLEditor.om; var innerHTML="<div id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Div"; innerHTML+="</div>"; if (X.InsertHTML(innerHTML)){O1p=X.getDocument().getElementById(id); O1p.id=null; O1p.removeAttribute("id"); X.l1p(O1p, false); }};HTMLEditor.I3= function (X,O1p){X.SaveContent(); X.l1p(O1p, true); };HTMLEditor.prototype.l1p= function (O1p,i1p){var X=this ; function disableEvents(Ox){Ox.getElementById("idField").disabled= true; Ox.getElementById("widthField").disabled= true; Ox.getElementById("heightField").disabled= true; Ox.getElementById("borderWidth").disabled= true; Ox.getElementById("borderColor").disabled= true; Ox.getElementById("borderStyle").disabled= true; Ox.getElementById("bgColor").disabled= true; Ox.getElementById("clearColor").disabled= true; Ox.getElementById("clearColor").className="dbutton"; Ox.getElementById("bgImage").disabled= true; Ox.getElementById("clearImage").disabled= true; Ox.getElementById("clearImage").className="dbutton"; }function enableEvents(Ox){Ox.getElementById("idField").disabled= false; Ox.getElementById("widthField").disabled= false; Ox.getElementById("heightField").disabled= false; Ox.getElementById("borderWidth").disabled= false; Ox.getElementById("borderColor").disabled= false; Ox.getElementById("borderStyle").disabled= false; Ox.getElementById("bgColor").disabled= false; Ox.getElementById("clearColor").disabled= false; Ox.getElementById("clearColor").className="button"; Ox.getElementById("bgImage").disabled= false; Ox.getElementById("clearImage").disabled= false; Ox.getElementById("clearImage").className="dbutton"; }function color(){function I1p(par){X.o1q.getElementById("borderColor").style.backgroundColor=par; }X.Ii("_selectColor",X.o1q.getElementById("borderColor").title,I1p); }function bgColor(){function O1q(par){X.o1q.getElementById("bgColor").value=""; X.o1q.getElementById("bgColor").style.backgroundColor=par; }X.Ii("_selectColor",X.o1q.getElementById("bgColor").title,O1q); }function l1q(){X.o1q.getElementById("bgColor").value=X.i1q; X.o1q.getElementById("bgColor").style.backgroundColor=""; }function I1q(){var o1r=new Object(); var Ox=X.o1q; o1r.src=""; o1r.O1r="LEFT"; o1r.l1r="TOP"; o1r.repeat="REPEAT"; o1r.i1r="FIXED"; if (Ox.getElementById("bgImage").style.backgroundImage && Ox.getElementById("bgImage").style.backgroundImage.length>0){var lk=Ox.getElementById("bgImage").style.backgroundImage; lk=lk.replace(/^url\(["']?(.+)["']?\)$/i,"$1"); o1r.src=lk.replace(/(\s)/g,"%20"); }if (Ox.getElementById("bgImage").style.backgroundPosition && Ox.getElementById("bgImage").style.backgroundPosition.length>0){var lk=Ox.getElementById("bgImage").style.backgroundPosition; lk=lk.split(" "); if (lk.length>0)o1r.O1r=lk[0]; if (lk.length>1)o1r.l1r=lk[1]; }if (Ox.getElementById("bgImage").style.backgroundRepeat && Ox.getElementById("bgImage").style.backgroundRepeat.length>0)o1r.repeat=Ox.getElementById("bgImage").style.backgroundRepeat; if (Ox.getElementById("bgImage").style.backgroundAttachment && Ox.getElementById("bgImage").style.backgroundAttachment.length>0)o1r.i1r=Ox.getElementById("bgImage").style.backgroundAttachment; function l1i(O1n){if (O1n){var save=Ox.getElementById("bgImage").style.backgroundImage; Ox.getElementById("bgImage").value=""; var I1r=(o1r.src.indexOf("'")>=0)?"\"": "'"; Ox.getElementById("bgImage").style.backgroundImage=""; Ox.getElementById("bgImage").style.backgroundImage="url("+I1r+o1r.src.replace(/(\s)/g,"%20")+I1r+")"; Ox.getElementById("bgImage").style.backgroundRepeat=o1r.repeat; Ox.getElementById("bgImage").style.backgroundAttachment=o1r.i1r; Ox.getElementById("bgImage").style.backgroundPosition=o1r.O1r+" "+o1r.l1r; if (Ox.getElementById("bgImage").style.backgroundImage.length==0){X.O1.setTimeout( function (){Ox.getElementById("bgImage").style.backgroundImage=save; if (save.length==0)o1s(); X.O1.alert(X.Of("bad-bg-img","Incorrect Image file for Background.")); } ,0); }}}X.Ii("_bgImageProperties",Ox.getElementById("bgImage").title,o1r,l1i); }function o1s(){X.o1q.getElementById("bgImage").value=X.O1s; X.o1q.getElementById("bgImage").style.backgroundImage=""; X.o1q.getElementById("bgImage").style.backgroundRepeat=""; X.o1q.getElementById("bgImage").style.backgroundAttachment=""; }function l1i(Ox,l1s){if (Ox!=null){var i1s=Ox.getElementById("overflow").value.replace(/^[\s]+/,""); var width=Ox.getElementById("widthField").value.replace(/^[\s]+/,""); var height=Ox.getElementById("heightField").value.replace(/^[\s]+/,""); var borderWidth=Ox.getElementById("borderWidth").value.replace(/^[\s]+/,""); var borderStyle=Ox.getElementById("borderStyle").value.replace(/^[\s]+/,""); var borderColor=Ox.getElementById("borderColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundColor=Ox.getElementById("bgColor").style.backgroundColor.replace(/^[\s]+/,""); var backgroundImage=Ox.getElementById("bgImage").style.backgroundImage.replace(/^[\s]+/,""); var backgroundRepeat=Ox.getElementById("bgImage").style.backgroundRepeat.replace(/^[\s]+/,""); var backgroundAttachment=Ox.getElementById("bgImage").style.backgroundAttachment.replace(/^[\s]+/,""); var backgroundPosition=Ox.getElementById("bgImage").style.backgroundPosition.replace(/^[\s]+/,""); var id=Ox.getElementById("idField").value.replace(/^[\s]+/,""); if (!HTMLEditor.i1o.test(width)){HTMLEditor.setSelectionRange(Ox.getElementById("widthField")); return false; }if (!HTMLEditor.i1o.test(height)){HTMLEditor.setSelectionRange(Ox.getElementById("heightField")); return false; }if (!HTMLEditor.i1o.test(borderWidth)){HTMLEditor.setSelectionRange(Ox.getElementById("borderWidth")); return false; }if (id.length>0 && X.I1.getElementById(id)!=null && X.I1.getElementById(id)!=O1p){HTMLEditor.setSelectionRange(Ox.getElementById("idField")); return false; }O1p.style.width=width; O1p.style.height=height; O1p.style.borderWidth=borderWidth; if (id.length>0)O1p.id=id; else {O1p.id=null; O1p.removeAttribute("id"); }O1p.style.overflow=i1s; if (borderStyle.length>0 && borderStyle!="none" && borderWidth.length>0)O1p.style.borderStyle=borderStyle; else O1p.style.borderStyle=""; O1p.style.borderColor=(borderWidth.length>0)?borderColor: ""; O1p.style.backgroundColor=backgroundColor; O1p.style.backgroundImage=backgroundImage; O1p.style.backgroundRepeat=backgroundRepeat; O1p.style.backgroundAttachment=backgroundAttachment; O1p.style.backgroundPosition=backgroundPosition; setTimeout( function (){if (HTMLEditor.is_Safari){O1p=(ll.nextSibling)?O1p.nextSibling:O1p; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1b=X.I1.body.createControlRange(); i1b.add(O1p); i1b.select(); }catch (t){}}else {if (HTMLEditor.o11)X.f= true; O1p=(O1p.nextSibling)?O1p.nextSibling:O1p; HTMLEditor.l1o(O1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1s(Ox,l1s){if (Ox!=null){var o1t=l1s.contentWindow.document.getElementById("realStylesFolder").href; X.i1q=Ox.getElementById("bgColor").value; X.O1s=Ox.getElementById("bgImage").value; Ox.getElementById("idField").value=(O1p.id)?O1p.id: ""; Ox.getElementById("widthField").value=(O1p.style.width)?O1p.style.width: ""; Ox.getElementById("heightField").value=(O1p.style.height)?O1p.style.height: ""; Ox.getElementById("borderWidth").value=(O1p.style.borderLeftWidth)?O1p.style.borderLeftWidth: ""; Ox.getElementById("borderStyle").value=(O1p.style.borderLeftStyle)?O1p.style.borderLeftStyle: ""; Ox.getElementById("overflow").value=(O1p.style.overflow)?O1p.style.overflow: ""; Ox.getElementById("borderColor").style.backgroundColor=(O1p.style.borderLeftColor)?O1p.style.borderLeftColor: ""; Ox.getElementById("bgColor").style.backgroundColor=(O1p.style.backgroundColor)?O1p.style.backgroundColor: ""; Ox.getElementById("bgImage").style.backgroundImage=(O1p.style.backgroundImage)?O1p.style.backgroundImage: ""; Ox.getElementById("bgImage").style.backgroundRepeat=(O1p.style.backgroundRepeat)?O1p.style.backgroundRepeat: ""; Ox.getElementById("bgImage").style.backgroundAttachment=(O1p.style.backgroundAttachment)?O1p.style.backgroundAttachment: ""; Ox.getElementById("bgImage").style.backgroundPosition=(O1p.style.backgroundPosition)?O1p.style.backgroundPosition: ""; if (Ox.getElementById("bgColor").style.backgroundColor.length>0)Ox.getElementById("bgColor").value=""; if (Ox.getElementById("bgImage").style.backgroundImage.length>0)Ox.getElementById("bgImage").value=""; HTMLEditor.Iv(Ox.getElementById("borderColor"),["click"],color); HTMLEditor.Iv(Ox.getElementById("bgColor"),["click"],bgColor); HTMLEditor.Iv(Ox.getElementById("clearColor"),["click"],l1q); HTMLEditor.Iv(Ox.getElementById("bgImage"),["click"],I1q); HTMLEditor.Iv(Ox.getElementById("clearImage"),["click"],o1s); X.o1q=Ox; }}var O1t=(X.N[032].length>0)?(X.N[032]): ("__div.aspx"); X.customPopup("popup_div","div",O1t,l1i,I1s, true ,i1p,enableEvents,disableEvents); };HTMLEditor.prototype.insertForm= function (){var X=this ; var O1p; var id=HTMLEditor.om; var innerHTML="<form id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Form"; innerHTML+="</form>"; if (X.InsertHTML(innerHTML)){O1p=X.getDocument().getElementById(id); O1p.id=null; O1p.removeAttribute("id"); X.l1t(O1p, false); }};HTMLEditor.o5= function (X,O1p){X.SaveContent(); X.l1t(O1p, true); };HTMLEditor.prototype.l1t= function (O1p,i1p){var X=this ; function l1i(Ox,l1s){if (Ox!=null){var width=Ox.getElementById("widthField").value.replace(/^[\s]+/,""); var height=Ox.getElementById("heightField").value.replace(/^[\s]+/,""); var id=Ox.getElementById("idField").value.replace(/^[\s]+/,""); var name=Ox.getElementById("nameField").value.replace(/^[\s]+/,""); var action=Ox.getElementById("actionField").value.replace(/^[\s]+/,""); var method=Ox.getElementById("methodField").value.replace(/^[\s]+/,""); if (!HTMLEditor.i1o.test(width)){HTMLEditor.setSelectionRange(Ox.getElementById("widthField")); return false; }if (!HTMLEditor.i1o.test(height)){HTMLEditor.setSelectionRange(Ox.getElementById("heightField")); return false; }var i1t=X.I1.getElementsByTagName("FORM"); if (name.length>0)for (var i=0; i<i1t.length; i++){if (i1t[i].name==name && i1t[i]!=O1p){HTMLEditor.setSelectionRange(Ox.getElementById("nameField")); return false; }}if (id.length>0 && X.I1.getElementById(id)!=null && X.I1.getElementById(id)!=O1p){HTMLEditor.setSelectionRange(Ox.getElementById("idField")); return false; }O1p.style.width=width; O1p.style.height=height; if (id.length>0)O1p.id=id; else {O1p.id=null; O1p.removeAttribute("id"); }if (name.length>0){O1p.name=name; O1p.setAttribute("name",name); }else {O1p.name=""; O1p.removeAttribute("name"); }if (action.length>0)O1p.action=action; else {O1p.action=null; O1p.removeAttribute("action"); }try {if (method.length>0)O1p.method=method; else {O1p.removeAttribute("method"); }}catch (t){}setTimeout( function (){if (HTMLEditor.is_Safari){O1p=(ll.nextSibling)?O1p.nextSibling:O1p; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1b=X.I1.body.createControlRange(); i1b.add(O1p); i1b.select(); }catch (t){}}else {if (HTMLEditor.o11)X.f= true; O1p=(O1p.nextSibling)?O1p.nextSibling:O1p; HTMLEditor.l1o(O1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1s(Ox,l1s){if (Ox!=null){Ox.getElementById("widthField").value=(O1p.style.width)?O1p.style.width: ""; Ox.getElementById("heightField").value=(O1p.style.height)?O1p.style.height: ""; Ox.getElementById("idField").value=(O1p.id)?O1p.id: ""; Ox.getElementById("nameField").value=(O1p.name)?O1p.name: ""; Ox.getElementById("actionField").value=(O1p.action)?O1p.action: ""; Ox.getElementById("methodField").value=(O1p.method)?O1p.method: ""; }}var O1t=(X.N[035].length>0)?(X.N[035]): ("__form.aspx"); X.customPopup("popup_form","form",O1t,l1i,I1s, true ,i1p); };HTMLEditor.prototype.insertCheckBox= function (){ this.I1t("type='checkbox'"); };HTMLEditor.prototype.insertRadio= function (){ this.I1t("type='radio'"); };HTMLEditor.prototype.insertTextBox= function (){ this.I1t("type='text' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertPassword= function (){ this.I1t("type='password' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertHidden= function (){var X=this ; if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_Safari)setTimeout( function (){alert(X.Of("safari-no-support","Not supported in Safari")); } ,0764); else if (!HTMLEditor.is_ie)setTimeout( function (){alert(X.Of("mozilla-no-support","Not supported in Mozilla")); } ,0764); else this.I1t("type='hidden' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertButton= function (){ this.I1t("type='button' style='width:50px;height:22px;'"); };HTMLEditor.prototype.insertSubmit= function (){ this.I1t("type='submit' style='width:50px;height:22px;' value='Submit'"); };HTMLEditor.prototype.insertReset= function (){ this.I1t("type='reset' style='width:50px;height:22px;' value='Reset'"); };HTMLEditor.prototype.I1t= function (o1u){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var O1p=null; var id=HTMLEditor.om; if (X.isControl() && HTMLEditor.getSelParent(X).tagName.toUpperCase()=="INPUT"){O1p=HTMLEditor.getSelParent(X); X.SaveContent(); X.O1u(O1p, true); }else if (X.InsertHTML("<input id='"+id+"' "+o1u+" />")){O1p=X.getDocument().getElementById(id); O1p.id=null; O1p.removeAttribute("id"); X.O1u(O1p, false); if (HTMLEditor.is_Safari)setTimeout( function (){try {O1p.blur();}catch (t){}} ,0144); }return O1p; };HTMLEditor.l3= function (X,O1p){if (O1p.type=="image" || O1p.type=="file")return; X.SaveContent(); X.O1u(O1p, true); };HTMLEditor.prototype.O1u= function (O1p,i1p){var X=this ; function l1i(Ox,l1s){if (Ox!=null){var width=Ox.getElementById("widthField").value.replace(/^[\s]+/,""); var height=Ox.getElementById("heightField").value.replace(/^[\s]+/,""); var id=Ox.getElementById("idField").value.replace(/^[\s]+/,""); var name=Ox.getElementById("nameField").value.replace(/^[\s]+/,""); var value=Ox.getElementById("valueField").value.replace(/^[\s]+/,""); var title=Ox.getElementById("titleField").value.replace(/^[\s]+/,""); var type=((O1p.type && O1p.type.length>0)?O1p.type: "text").toLowerCase(); if (!HTMLEditor.i1o.test(width)){HTMLEditor.setSelectionRange(Ox.getElementById("widthField")); return false; }if (!HTMLEditor.i1o.test(height)){HTMLEditor.setSelectionRange(Ox.getElementById("heightField")); return false; }if (id.length>0 && X.I1.getElementById(id)!=null && X.I1.getElementById(id)!=O1p){HTMLEditor.setSelectionRange(Ox.getElementById("idField")); return false; }O1p.style.width=width; O1p.style.height=height; if (id.length>0)O1p.id=id; else {O1p.id=null; O1p.removeAttribute("id"); }if (name.length>0){O1p.name=name; O1p.setAttribute("name",name); }else {O1p.name=""; O1p.removeAttribute("name"); }if (value.length>0){O1p.value=value; O1p.setAttribute("value",value); }else {O1p.value=""; O1p.removeAttribute("value"); }if (title.length>0)O1p.title=title; else {O1p.title=""; O1p.removeAttribute("title"); }if (type=="checkbox" || type=="radio"){O1p.checked=Ox.getElementById("checkField").checked; if (!HTMLEditor.is_ie){if (O1p.checked)O1p.setAttribute("checked","true"); else O1p.removeAttribute("checked"); }}setTimeout( function (){if (HTMLEditor.is_Safari){O1p=(ll.nextSibling)?O1p.nextSibling:O1p; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1b=X.I1.body.createControlRange(); i1b.add(O1p); i1b.select(); }catch (t){}}else {if (HTMLEditor.o11)X.f= true; O1p=(O1p.nextSibling)?O1p.nextSibling:O1p; HTMLEditor.l1o(O1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1s(Ox,l1s){if (Ox!=null){var type=((O1p.type && O1p.type.length>0)?O1p.type: "text").toLowerCase(); if (type=="checkbox" || type=="radio")Ox.getElementById("checkField").checked=O1p.checked; else Ox.getElementById("checkField").style.display="none"; Ox.getElementById("widthField").value=(O1p.style.width)?O1p.style.width: ""; Ox.getElementById("heightField").value=(O1p.style.height)?O1p.style.height: ""; Ox.getElementById("idField").value=(O1p.id)?O1p.id: ""; Ox.getElementById("nameField").value=(O1p.name)?O1p.name: ""; Ox.getElementById("valueField").value=(O1p.value)?O1p.value: ""; Ox.getElementById("titleField").value=(O1p.title)?O1p.title: ""; Ox.getElementById("inputType").innerHTML=""; try {Ox.getElementById("inputType").innerHTML=Ox.getElementById("input_"+type).value; }catch (t){alert(t.message);}}}var O1t=(X.N[041].length>0)?(X.N[041]): ("__input.aspx"); X.customPopup("popup_input","input",O1t,l1i,I1s, true ,i1p); };HTMLEditor.o4= function (X,link){X.i10(); var ll=link.firstChild; while (link.firstChild)link.parentNode.insertBefore(link.firstChild,link); link.parentNode.removeChild(link); if (ll)HTMLEditor.l1o(ll,X); setTimeout( function (){X.updateToolbar(); } ,5); X.l14(); };HTMLEditor.prototype.insertIcon= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,html){if (!O1n){X.I1e( false); }else {if (!X.l11("<img src='"+html+"' id="+HTMLEditor.om+">")){X.I1e( false); }else {var ll=X.I1.getElementById(HTMLEditor.om); ll.id=null; ll.removeAttribute("id"); if (X.relativeImages)ll.src=html; if (!HTMLEditor.is_ie){setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); if (HTMLEditor.o11)X.f= true; X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.l14(); }}return true; }X.i10(); X.Ii("_insertIcon",X.og("icons","Insert an Icon"),O1g); };HTMLEditor.prototype.insertAnchor= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,text){if (!O1n || text.length==0){X.I1e( false); }else {if (!X.l11("<a name='"+text+"'>"+(X.showAnchors?("<img "+X.noContextMenuAttributeName()+"='yes' title='"+text+"' src='"+X.P[0]+"'>"): "")+"</a>")){X.I1e( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); if (HTMLEditor.o11)X.f= true; X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.l14(); }}return true; }X.i10(); X.Ii("_insertAnchor",X.og("anchor","Insert Anchor"),O1g,""); };HTMLEditor.prototype.anchorsOn= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.showAnchors=!this.showAnchors; HTMLEditor.ly(this,this.I1,!this.showAnchors);this.updateToolbar(); };HTMLEditor.prototype.anchorsOnState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.showAnchors; };HTMLEditor.ly= function (X,I1,l1u){var l1n=I1.getElementsByTagName("A"); var le= false; for (var i=0; i<l1n.length; i++){var a=l1n[i]; if (a.name && a.name.length>0){var i1u=a.firstChild; while (i1u){var I1u=i1u.nextSibling; if (i1u.tagName && i1u.tagName.toUpperCase()=="IMG" && i1u.src){if (i1u.src.indexOf(X.P[0])>0){a.removeChild(i1u);le= true; }}i1u=I1u; }if (!l1u){var img=I1.createElement("IMG"); img.title=a.name; img.src=X.P[0]; img.setAttribute(X.noContextMenuAttributeName(),"yes"); if (a.firstChild)a.insertBefore(img,a.firstChild); else a.appendChild(img); }}}return le; };HTMLEditor.l4= function (X,link){function O1g(O1n,text){if (!O1n || text.length==0){setTimeout( function (){X.I1e( false); } ,012); }else {link.name=text; try {link.firstChild.title=text; }catch (t){}if (HTMLEditor.is_ie){setTimeout( function (){try {var i1b=X.I1.body.createControlRange(); i1b.add(link.firstChild); i1b.select(); }catch (t){}} ,0); }else if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); X.Ii("_insertAnchor",X.Og("anchor","Edit Anchor"),O1g,link.name); };HTMLEditor.prototype.insertPlaceHolder= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,text){if (!O1n || text.length==0){X.I1e( false); }else {var ih; if (X.showPlaceHolders || HTMLEditor.is_ie)ih="\x3cimg dummytag=\"placeholder\" title=\'"+text+"' src='"+X.P[4]+"'>"; else ih="<placeholder name='"+text+"'/>"; if (!X.l11(ih)){X.I1e( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); if (HTMLEditor.o11)X.f= true; X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (!X.showPlaceHolders)HTMLEditor.iy(X,X.I1, true); }X.l14(); }}return true; }X.i10(); X.Ii("_insertPlaceHolder",X.og("placeholder","Insert PlaceHolder"),O1g,""); };HTMLEditor.prototype.placeHoldersOn= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.showPlaceHolders=!this.showPlaceHolders; HTMLEditor.iy(this,this.I1,!this.showPlaceHolders);this.updateToolbar(); };HTMLEditor.prototype.placeHoldersOnState= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return false; return this.showPlaceHolders; };HTMLEditor.iy= function (X,I1,l1u){var le= false; if (l1u){var o1v=I1.getElementsByTagName("IMG"); var l1n=[]; for (var i=0; i<o1v.length; i++)l1n.push(o1v[i]); for (var i=0; i<l1n.length; i++){var a=l1n[i]; var O1v=a.getAttribute("dummytag"); if (O1v && O1v.length>0 && O1v.toLowerCase()=="placeholder"){var l1v=I1.createElement("PLACEHOLDER"); var title=a.title; if (title==null || typeof title=="undefined")title=a.getAttribute("title"); l1v.name=title; l1v.setAttribute("name",title); a.parentNode.insertBefore(l1v,a); a.parentNode.removeChild(a); le= true; }}}else {var o1v=I1.getElementsByTagName("PLACEHOLDER"); var l1n=[]; for (var i=0; i<o1v.length; i++)l1n.push(o1v[i]); for (var i=0; i<l1n.length; i++){var a=l1n[i]; var i1v= true; try {if (a.childNodes.length>0)i1v= false; }catch (w){}if (i1v){var name=a.name; if (name==null || typeof name=="undefined")name=a.getAttribute("name"); var img=I1.createElement("IMG"); img.title=name; img.src=X.P[4]; img.setAttribute("dummytag","placeholder"); img.setAttribute("title",name); a.parentNode.insertBefore(img,a); a.parentNode.removeChild(a); }}}return le; };HTMLEditor.i3= function (X,link){function O1g(O1n,text){if (!O1n || text.length==0){setTimeout( function (){X.I1e( false); } ,012); }else {link.title=text; link.setAttribute("title",text); if (HTMLEditor.is_ie){setTimeout( function (){var i1b=X.I1.body.createControlRange(); i1b.add(link); i1b.select(); } ,0); }else if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); var title=link.title; if (title==null || typeof title=="undefined")title=link.getAttribute("title"); X.Ii("_insertPlaceHolder",X.Og("placeholder","Edit PlaceHolder"),O1g,title); };HTMLEditor.prototype.insertSpec= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,html){if (!O1n){X.I1e( false); }else {if (!X.l11(html)){X.I1e( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); if (HTMLEditor.o11)X.f= true; X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }X.l14(); }}return true; }X.i10(); X.Ii("_insertSpec",X.og("special-characters","Insert a special character"),O1g); };HTMLEditor.prototype.spellCheck= function (oq){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,I1v){if (!O1n){X.I1e( false); }else {if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.updateToolbar(); X.focusEditor(); }if (typeof oq=="function")setTimeout( function (){oq(O1n); X.l14(); } ,0); X.l14(); return true; }X.i10(); X.o1w( function (O1w){X.on(); X.updateToolbar(); X.Ii("_spellCheck",X.og("spell-checker","Spell checker"),O1w,O1g); } ); };HTMLEditor.prototype.customPopup= function (l1w,i1w,I1w,l1i,I1s,o1x,i1p,O1x,l1x){var X=this ; var i1x=l1i; if (l1i!=null && typeof l1i=="function"){i1x= function (Ox,l1s){var le=l1i(Ox,l1s); if (Ox!=null){setTimeout( function (){X.l14(); } ,0144); }return le; } ; }X.Ii("_customPopup",l1w,i1w,I1w,i1x,I1s,o1x,i1p,O1x,l1x); };HTMLEditor.prototype.insertHR= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; try { this.i10(); if (HTMLEditor.is_Safari)this.Iq(this.lq()); var I1x=this.I1.createElement("div"); I1x.innerHTML="<hr>"; var ll=I1x.firstChild; var X=this ; var o1y=this.O1y(); if (!o1y)return; var parent=o1y.parentNode; parent.insertBefore(ll,o1y); parent.removeChild(o1y); ll=(ll.nextSibling)?ll.nextSibling:ll; HTMLEditor.l1o(ll,X); setTimeout( function (){X.l14(); X.updateToolbar(); } ,5); X.focusEditor(); return true; }catch (t){alert("HR: "+t.message); }};HTMLEditor.l1o= function (l1y,X){var ll=l1y; if (HTMLEditor.is_ie){var Oq=X.lq(); var iq=X.Iq(Oq); var i1y=0,_top=0; var I1y=(ll.nodeType==3); var span; if (I1y){span=X.I1.createElement("SPAN"); ll.parentNode.insertBefore(span,ll); ll=span; }while (ll){if (ll.tagName.toUpperCase()=="BODY")break; i1y+=ll.offsetLeft; _top+=ll.offsetTop; ll=ll.offsetParent; if (ll){i1y+=ll.clientLeft; _top+=ll.clientTop; }}if (I1y){span.parentNode.removeChild(span); }if (Oq.type.toLowerCase()!="control"){try {iq.moveToPoint(i1y,_top); }catch (t){}}iq.select(); }else {var Oq=X.lq(); var iq=X.Iq(); iq.setStart(ll,0); iq.setEnd(ll,0); X.i17(Oq); if (HTMLEditor.o11)X.f= true; X.I17(Oq,iq); X.focusEditor(); }};HTMLEditor.prototype.getRange= function (){return this.Iq(this.lq()); };HTMLEditor.prototype.setRange= function (iq){try {if (HTMLEditor.is_ie){iq.select(); }else {var Oq=this.lq(); this.i17(Oq); this.I17(Oq,iq); } this.focusEditor(); }catch (t){}};HTMLEditor.prototype._butState= function (o1z,O1z){var id=document.getElementById(o1z); var ll=id; this.l1z=O1z; var status=this.l1z(); if (ll.tagName.toUpperCase()=="IMG"){var Il=ll.getAttribute("but_status"); if (Il && Il.length>0){if (Il!=((status)?"_a": "_n")){ll.setAttribute("but_status",((status)?"_a": "_n")); ll.src=((status)?ll.getAttribute("active_src"):ll.getAttribute("passive_src")); }return; }var lk=ll.src; var o1d=lk.search(/_[nahp]\.gif/i); if (o1d>0 && lk.substring(o1d,2).toLowerCase()!=((status)?"_a": "_n")){lk=lk.substring(0,o1d)+((status)?"_a.gif": "_n.gif"); ll.src=lk; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.i1z(ll,lk);} ,0144); return; }}};HTMLEditor.prototype._butOver= function (ll){return; if (this.isPopup())return; if (ll.tagName.toUpperCase()=="IMG"){var lk=ll.src; var o1d=lk.search(/_[nahp]\.gif/i); if (o1d>0){ll.setAttribute("save_src",lk); if (lk.search(/_a\.gif/i)>0)lk=lk.substring(0,o1d)+"_p.gif"; else lk=lk.substring(0,o1d)+"_h.gif"; ll.src=lk; ll.setAttribute("save_over","1"); return; }}if (ll.className=="HE_button")ll.className="HE_button_over"; };HTMLEditor.prototype._butOut= function (ll){return; if (ll.tagName.toUpperCase()=="IMG"){var lk=ll.src; var o1d=lk.search(/_[nahp]\.gif/i); if (o1d>0){var Il=ll.getAttribute("save_src"); if (Il && Il.length>0)ll.src=Il; ll.setAttribute("save_over",""); return; }}if (ll.className=="HE_button_over")ll.className="HE_button"; };HTMLEditor.prototype._butDown= function (ll){var X=this ; if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; if (X.O10){X.O10.select(); X.O10=null; }}if (this.isPopup())return; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (ll.tagName.toUpperCase()=="IMG"){var X=this ; var Il=ll.getAttribute("but_status"); if (Il && Il.length>0){if (Il!="_a"){ll.setAttribute("but_status","_a"); ll.src=ll.getAttribute("active_src"); X.I1z=setTimeout( function (){X._butUp(ll); X.I1z=null; } ,03720); }return; }var lk=ll.src; var o1d=lk.search(/_[nahp]\.gif/i); if (o1d>0 && lk.substring(o1d,2).toLowerCase()!="_a"){lk=lk.substring(0,o1d)+"_a.gif"; ll.src=lk; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.i1z(ll,lk);} ,0144); X.I1z=setTimeout( function (){X._butUp(ll); X.I1z=null; } ,03720); return; }}};HTMLEditor.i1z= function (ll,o20){var O20=ll.src.search(/_[nahp]\.gif/i); var l20=o20.search(/_[nahp]\.gif/i); if (O20>0 && l20>0 && ll.src.substring(0,O20).toLowerCase()==o20.substring(0,l20).toLowerCase())return; ll.src=o20; setTimeout( function (){HTMLEditor.i1z(ll,o20);} ,0144); };HTMLEditor.prototype._butUp= function (ll){if (ll.tagName.toUpperCase()=="IMG"){var X=this ; var Il=ll.getAttribute("but_status"); if (Il && Il.length>0){if (Il!="_n"){if (X.I1z){clearTimeout(X.I1z); X.I1z=null; }ll.setAttribute("but_status","_n"); ll.src=ll.getAttribute("passive_src"); }return; }var lk=ll.src; var o1d=lk.search(/_[nahp]\.gif/i); if (o1d>0 && lk.substring(o1d,2).toLowerCase()!="_n"){if (X.I1z){clearTimeout(X.I1z); X.I1z=null; }lk=lk.substring(0,o1d)+"_n.gif"; ll.src=lk; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.i1z(ll,lk);} ,0144); }}return true; };HTMLEditor.prototype.O1y= function (i20){var ll=this.I1.createElement("SPAN"); var X=this ; ll.id=HTMLEditor.om; if (typeof i20=="undefined"){if (!this.l11(HTMLEditor.getHTML(ll, true)))return null; }else {if (i20.nextSibling==null)i20.parentNode.appendChild(ll); else i20.parentNode.insertBefore(ll,i20.nextSibling); i20.parentNode.removeChild(i20); }ll=this.I1.getElementById(HTMLEditor.om); ll.id=null; ll.removeAttribute("id"); ll.setAttribute("para","no"); var parent=ll.parentNode; while (parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="TD" && parent.tagName.toUpperCase()!="P" && parent.tagName.toUpperCase()!="DIV"){if (HTMLEditor.O1j(parent.tagName))parent=parent.parentNode; else break; }if (parent.tagName.toUpperCase()=="P"){ll.setAttribute("para",""); function I20(add,ll,o21,O21){var l21; var par=HTMLEditor.i21(o21,X.I1, false); if (add)par.appendChild(add); while (ll){if (ll.nodeType==1 || (ll.nodeType==3 && HTMLEditor.I12(""+ll.data+"").length>0)){var text=null; if (ll.tagName && ll.tagName.toUpperCase()=="SCRIPT")text=ll.text; var I21=HTMLEditor.i21(ll,X.I1, true); if (par.childNodes.length==0 || !O21)par.appendChild(I21); else par.insertBefore(I21,par.firstChild); if (text!=null)I21.text=text; }ll=O21?ll.previousSibling:ll.nextSibling;}if (par.childNodes.length==0){ delete par; par=null; }if (o21==parent)return par; else return I20(par,O21?o21.previousSibling:o21.nextSibling,o21.parentNode,O21); } ; var o22=I20(null,ll.previousSibling,ll.parentNode, true); var O22=I20(null,ll.nextSibling,ll.parentNode, false); var par=parent.parentNode; if (o22){par.insertBefore(o22,parent); ll.setAttribute("para",ll.getAttribute("para")+" left"); }par.insertBefore(ll,parent); if (O22){par.insertBefore(O22,parent); ll.setAttribute("para",ll.getAttribute("para")+" right"); }par.removeChild(parent); }return ll; };HTMLEditor.prototype.mode= function (){return this.i1; };HTMLEditor.prototype.o1h= function (l22,value){ this.i1i(l22, false ,value); };HTMLEditor.prototype.i22= function (l22){return this.O1h(l22); };HTMLEditor.prototype.I22= function (){if (HTMLEditor.is_ie)return "&nbsp;"; else return "<br/>"; };HTMLEditor.prototype.insertTable= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var Oq=this.lq(); var iq; try {iq=this.Iq(Oq); }catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); X.i17(Oq); return; }if (HTMLEditor.getSelParent(this ).ownerDocument.id!="EditorDocument"){alert(this.Of("click-to-editor","Click to editing panel.")); return false; }var X=this ; var Ox=X.I1; this.i10(); var I1x=this.I1.createElement("div"); I1x.innerHTML="<table></table>"; var table=I1x.firstChild; function O1g(O1n){var ll=table; if (O1n){ll=ll.firstChild.firstChild.firstChild; HTMLEditor.l1o(ll,X); setTimeout( function (){X.updateToolbar(); X.l14(); } ,5); }else {X.I1e( false); }X.focusEditor(); return true; }table.style.width=this.defaultTable.width; table.style.height=this.defaultTable.height; table.cellPadding=this.defaultTable.cellPadding; table.cellSpacing=this.defaultTable.cellSpacing; table.style.borderLeftWidth=this.defaultTable.borderWidth; table.style.borderLeftColor=this.defaultTable.borderColor; table.style.borderLeftStyle=this.defaultTable.borderStyle; table.style.backgroundColor=this.defaultTable.backgroundColor; table.style.backgroundImage=this.defaultTable.backgroundImage; for (var i=0; i<this.defaultTable.rows; i++){var o23=table.insertRow(table.rows.length); for (var oh=0; oh<this.defaultTable.columns; oh++){var cell=o23.insertCell(o23.cells.length); if (HTMLEditor.is_Safari){if (!cell.colSpan || parseInt(cell.colSpan)==0){cell.colSpan="1"; cell.setAttribute("colspan","1"); }if (!cell.rowSpan || parseInt(cell.rowSpan)==0){cell.rowSpan="1"; cell.setAttribute("rowspan","1"); }}cell.innerHTML=this.I22(); }}var o1y=this.O1y(); if (!o1y){X.I1e( false); return; }var parent=o1y.parentNode; parent.insertBefore(table,o1y); parent.removeChild(o1y); X.Ii("_tableProperties",X.og("table","Insert a Table"),table,O1g,0,0); };HTMLEditor.prototype.makeNotEditable= function (){var X=this ; if (!(X.l1 && X.mode()=="html" && !X.isPopup()))return; var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(X.O1b()): ""; var Oq=X.lq(); var iq=X.Iq(Oq); if (X.isControl())return; if (!((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))return; var Oq=X.lq(); var iq=X.Iq(Oq); var O23=HTMLEditor.om+"_right"; var l23=HTMLEditor.om+"_left"; var i23=null; var I23=null; if (HTMLEditor.is_ie){i23=iq.duplicate(); I23=iq.duplicate(); i23.setEndPoint("EndToStart",iq); I23.setEndPoint("StartToEnd",iq); }else {i23=iq.cloneRange(); I23=iq.cloneRange(); i23.setEnd(i23.startContainer,i23.startOffset); I23.setStart(I23.endContainer,I23.endOffset); }var i1a=null; var I1a=null; X.i10(); if (!X.l11("<span id='"+O23+"'/>",I23))return []; if (!X.l11("<span id='"+l23+"'/>",i23)){var o24=X.I1.getElementById(O23); if (o24!=null){lk=o24.parentNode; lk.removeChild(o24); }X.I1e( false); return; }i1a=X.I1.getElementById(l23); I1a=X.I1.getElementById(O23); if (i1a==null){var span=X.I1.createElement("SPAN"); span.id=l23; I1a.parentNode.insertBefore(span,I1a); i1a=span; }if (I1a==null){var span=X.I1.createElement("SPAN"); span.id=O23; if (i1a.nextSibling)i1a.parentNode.insertBefore(span,i1a.nextSibling); else i1a.parentNode.appendChild(span); I1a=span; }HTMLEditor.O24(i1a); HTMLEditor.O24(I1a); var l24=HTMLEditor.i24(i1a,I1a); var I24=null; if (l24!=null){var parent=l24.parent; var o25=parent.tagName.toUpperCase(); var ll=null; if (o25=="TR" || o25=="TBODY" || o25=="TABLE"){var ll=parent; while (ll && ll.tagName.toUpperCase()!="TABLE")ll=ll.parentNode; }else if (o25=="OL" || o25=="UL" || o25=="DL"){var ll=parent; }if (ll!=null){ll.parentNode.insertBefore(i1a,ll); if (ll.nextSibling)ll.parentNode.insertBefore(I1a,ll.nextSibling); else ll.parentNode.appendChild(I1a); l24=HTMLEditor.i24(i1a,I1a); parent=l24.parent;}var O25=l24.parent.childNodes.item(l24.l25); var i25=l24.parent.childNodes.item(l24.I25); var o26="SPAN"; I24=X.I1.createElement(o26); if (HTMLEditor.is_ie)I24.contentEditable="false"; else I24.setAttribute("contenteditable","false"); parent.insertBefore(I24,O25);while (O25!=null){var O26=O25.nextSibling; I24.appendChild(O25); if (O25==i25)break; O25=O26; }if (HTMLEditor.is_ie){iq=X.I1.body.createControlRange(); iq.add(I24); iq.select(); }else {Oq=X.lq(); var l17; if (I24.nextSibling!=null && I24.nextSibling.nodeType==3){l17=I24.nextSibling; }else {l17=X.I1.createTextNode(""); if (I24.nextSibling!=null)I24.parentNode.insertBefore(l17,I24.nextSibling); else I24.parentNode.appendChild(l17); }X.i17(Oq); iq=X.Iq(Oq); iq.setStart(l17,0); iq.setEnd(l17,0); X.I17(Oq,iq); }}if (i1a!=null)i1a.parentNode.removeChild(i1a); if (I1a!=null)I1a.parentNode.removeChild(I1a); if (I24!=null){var index=HTMLEditor.O17(I24); HTMLEditor.l26(I24.parentNode,this.I1,index,index+1); }};HTMLEditor.prototype.insertIMG= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var Oq=this.lq(); var iq=this.Iq(Oq); var X=this ; var Ox=X.I1; this.i10(); function O1g(O1n){try {var ll=Ox.getElementById(HTMLEditor.om); ll.id=null; ll.removeAttribute("id"); var img=ll; if (O1n){if (HTMLEditor.is_Safari){ll=(ll.nextSibling)?ll.nextSibling:ll; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){var i1b=Ox.body.createControlRange(); i1b.add(ll); i1b.select(); }else {if (HTMLEditor.o11)X.f= true; ll=(ll.nextSibling)?ll.nextSibling:ll; HTMLEditor.l1o(ll,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.l14(); }else {X.I1e( false); }if (typeof X.imageCallback=="function"){X.imageCallback(O1n?img:null); }X.focusEditor(); }catch (t){alert("IMG create: "+t.message); }return true; }var I1x=this.I1.createElement("div"); I1x.innerHTML="<img>"; var img=I1x.firstChild; img.id=HTMLEditor.om; img.src=""; img.alt=""; img.border=0; img.align=""; img.vspace=0; img.hspace=0; if (!HTMLEditor.is_ie){}if (this.l11(HTMLEditor.getHTML(img, true))){var ll=Ox.getElementById(HTMLEditor.om); var i26=(typeof X.imagePopupName=="string")?X.imagePopupName: "image"; this.Ii("_imageProperties",this.og(i26,"Insert Image"),ll,O1g, true); }else {X.I1e( false); }};HTMLEditor.prototype.insertFlash= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var Oq=this.lq(); var iq=this.Iq(Oq); var X=this ; var Ox=X.I1; this.i10(); function O1g(O1n){try {var ll=Ox.getElementById(HTMLEditor.om); ll.id=null; ll.removeAttribute("id"); if (O1n){if (HTMLEditor.is_Safari){ll=(ll.nextSibling)?ll.nextSibling:ll; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){ll.id=HTMLEditor.om; this.i10(); setTimeout( function (){X.I1e( false); var l1c=X.I1.getElementById(HTMLEditor.om); l1c.id=null; l1c.removeAttribute("id"); var i1b=X.I1.body.createControlRange(); i1b.add(l1c); i1b.select(); } ,0); }else {if (HTMLEditor.o11)X.f= true; ll=(ll.nextSibling)?ll.nextSibling:ll; HTMLEditor.l1o(ll,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.l14(); }else {X.I1e( false); }X.focusEditor(); }catch (t){alert("Flash create: "+t.message); }return true; }var I1x=this.I1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); I1x.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 {I1x.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.P[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; I1x.firstChild.style.backgroundImage="url('"+X.P[2]+"')"; }var I26=I1x.firstChild; var o27=HTMLEditor.getHTML(I26, true); if (this.l11(o27)){var ll=Ox.getElementById(HTMLEditor.om); this.Ii("_flashProperties",this.og("flash","Insert Flash"),ll,O1g); }else {X.I1e( false); }};HTMLEditor.prototype.insertMedia= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var Oq=this.lq(); var iq=this.Iq(Oq); var X=this ; var Ox=X.I1; this.i10(); function O1g(O1n){try {var ll=Ox.getElementById(HTMLEditor.om); ll.id=null; ll.removeAttribute("id"); if (O1n){if (HTMLEditor.is_Safari){ll=(ll.nextSibling)?ll.nextSibling:ll; setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.i17(Oq); X.I17(Oq,iq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){ll.id=HTMLEditor.om; this.i10(); setTimeout( function (){X.I1e( false , function (){var l1c=X.I1.getElementById(HTMLEditor.om); l1c.id=null; l1c.removeAttribute("id"); var i1b=X.I1.body.createControlRange(); i1b.add(l1c); i1b.select(); } ); } ,0); }else {if (HTMLEditor.o11)X.f= true; ll=(ll.nextSibling)?ll.nextSibling:ll; HTMLEditor.l1o(ll,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.l14(); }else {X.I1e( false); }X.focusEditor(); }catch (t){alert("Media create: "+t.message); }return true; }var I1x=this.I1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); I1x.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 {I1x.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.P[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; I1x.firstChild.style.backgroundImage="url('"+X.P[3]+"')"; }var I26=I1x.firstChild; if (this.l11(HTMLEditor.getHTML(I26, true))){var ll=Ox.getElementById(HTMLEditor.om); this.Ii("_mediaProperties",this.og("media","Insert Media"),ll,O1g); }else {X.I1e( false); }};HTMLEditor.o1= function (){ this.width="auto"; this.height="auto"; this.O27="background-color: #fff; font-family: verdana,sans-serif; border-width: 0px;"+"margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "+"padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; font-size: 10pt; color:#404040;"; } ; HTMLEditor.l27=050; HTMLEditor.prototype._changeHeight= function (i27){var X=this ; var O26=document.getElementById(X.mainDivId); var I27=null; var height; if (this.ShowQuickFormatDivId!=null)I27=document.getElementById(X.ShowQuickFormatDivId); if (parseInt(X.o15.style.height)+i27<0)return; if (this.i1=="text"){if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId); }else {if (!this._autoFocus && !this._wasFocused){HTMLEditor.i18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId); }}var I18=O26.offsetWidth; try {height=parseInt(X._textArea.style.height)+i27+"px"; X._textArea.style.height=height; }catch (t){}height=parseInt(X.o15.style.height)+i27+"px"; X.o15.style.height=height; X.i8.O9=height; if (HTMLEditor.is_ie && document.compatMode!="BackCompat")X.i8.O9=parseInt(height)+2+"px"; if (!HTMLEditor.is_Safari){if (typeof X.ix!="undefined"){X.ix=parseInt(X.ix)+i27; }}if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+i27+"px"; }if (X.iv){X.iv.style.height=parseInt(X.iv.style.height)+i27+"px"; }if (I27){height=parseInt(I27.childNodes.item(1).style.height)+i27+"px"; I27.childNodes.item(1).style.height=height; }if (!HTMLEditor.is_ie){if (I18!=O26.offsetWidth){X._onresize(); }}if (X.i1=="text"){if (X.ShowQuickFormatDivId!=null)HTMLEditor.I14(X.ShowQuickFormatDivId); }else {if (!X._autoFocus && !X._wasFocused){HTMLEditor.I14(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I14(X.ShowQuickFormatDivId, true); }}};HTMLEditor.prototype.increaseHeight= function (){ this._changeHeight(HTMLEditor.l27); };HTMLEditor.prototype.decreaseHeight= function (){ this._changeHeight(0-HTMLEditor.l27); };HTMLEditor.prototype.setHeight= function (size){try { this._changeHeight(size-document.getElementById(this.mainDivId).offsetHeight); }catch (t){}};HTMLEditor.prototype.getHeight= function (size){return document.getElementById(this.mainDivId).offsetHeight; };HTMLEditor.prototype._onresize= function (t){var X=this ; if (typeof t!="undefined"){if (!X._autoFocus && !X._wasFocused){HTMLEditor.i18(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.i18(X.ShowQuickFormatDivId); }}var O26=document.getElementById(X.mainDivId); var o1e=document.getElementById(X.panelDivId); if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.o28 && typeof X.o28!="undefined"){X.o15.style.visibility="hidden"; }try {if (X.i8.O28!=O26.offsetWidth){var width=O26.offsetWidth-X.i8.O28; if (!HTMLEditor.is_ie){if (X.i8.i19!=o1e.offsetHeight)width-=2; X.o15.style.width=parseInt(X.o15.style.width)+width+"px"; X.i8.o9=X.o15.style.width; if (X._iframe){X._iframe.style.width=X.o15.style.width; }if (X.iv){X.iv.style.width=X.o15.style.width; }}if (HTMLEditor.l13){if (X._iframe){X._iframe.style.width=parseInt(X._iframe.style.width)+width+"px"; }}X.i8.O28=O26.offsetWidth; X.i8.l28=o1e.offsetWidth; }if (X.i8.i19!=o1e.offsetHeight){var height=X.i8.i19-((o1e.style.display=="none")?0:o1e.offsetHeight); X.o15.style.height=parseInt(X.o15.style.height)+height+(!HTMLEditor.is_ie && document.compatMode!="BackCompat"?2: 0)+"px";if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+height+"px"; var i28=(o1e.offsetWidth>0)?o1e.offsetWidth:X.Ix; if (!HTMLEditor.is_ie){X._iframe.style.width=i28-2+"px"; }}if (X.iv && X.iv.style.display!="none"){X.iv.style.height=parseInt(X.iv.style.height)+height+"px"; if (!HTMLEditor.is_ie){X.iv.style.width=i28-2+"px"; }}X.i8.O9=parseInt(X.i8.O9)+height+"px"; if (X.iv!=null && X.iv.style.display=="none")X.iv.style.height=X.i8.O9; if (!HTMLEditor.is_ie){X.i8.o9=i28-2+"px"; X.o15.style.width=i28-2+"px"; X.Ix=i28; }X.i8.i19=o1e.offsetHeight; }}catch (t){}if (typeof t!="undefined"){if (!X._autoFocus && !X._wasFocused){HTMLEditor.I14(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.I14(X.ShowQuickFormatDivId, true); }}if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.o28 && typeof X.o28!="undefined"){X.o28=X.o15.value; X.o15.value=""; X.o15.style.visibility="hidden"; X.setTimeout( function (ox){if (X.Ou(ox))return; X.o15.value=X.o28; X.o28=null;X.o15.style.visibility="visible"; X.focusEditor(); } ,036); }};HTMLEditor.prototype.I19= function (I18){var X=this ; function I28(){var Ox; if (HTMLEditor.is_Safari)Ox=document.getElementById(X._hiddenContent+"_inner_iframePreview").contentWindow.document; else Ox=X.iv.contentWindow.document; if (!Ox){if (HTMLEditor.o29 || HTMLEditor.o11){setTimeout( function (){I28(); } ,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var O29=I18; var l29= false; function i29(I29,o22,O22){O29=O22; l29= true; }I18.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,i29); I18=O29; Ox.open(); var html=new o2a(); if (X.d!=null)html.write(X.d); html.write("<html"+(X.B!=null?X.B: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); if (X.D!=null)html.write(X.D); html.write("\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var O2a=0; O2a<X._addCssFiles.length; O2a++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[O2a]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }html.write("</head>"); html.write("<body"+(X.C!=null?X.C: "")+">"); html.write(I18); html.write("</body>"); html.write("</html>"); Ox.write(html.toString()); Ox.close(); if (HTMLEditor.is_ie)X.iv.style.visibility="visible"; setTimeout( function (){if (!HTMLEditor.is_Safari){var o1e=document.getElementById(X.panelDivId); o1e.style.display="none"; }if (X.ShowQuickFormatDivId!=null){}if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_ie){X.iv.style.width="100%"; setTimeout( function (){X.iv.style.width=X.iv.offsetWidth+"px"; X.o15.style.width=X.iv.offsetWidth+"px"; } ,0); X.iv.style.height=X.i8.O9; }}} ,0); X.on(); }setTimeout(I28,(HTMLEditor.o29 || HTMLEditor.o11)?0144: 0); };HTMLEditor.I8= function (className){if (HTMLEditor.is_Safari)return true; var l2a=document.styleSheets,i2a=l2a.length; var I2a= false; var I1v=[]; function o2b(O2b){if (O2b.imports){try {var imports=O2b.imports,i2a=imports.length; for (var i=0; i<i2a; i++)o2b(O2b.imports[i]); }catch (t){}}try {var rules=HTMLEditor.is_ie?O2b.rules:O2b.cssRules,i2a=rules.length; for (var oh=0; oh<i2a; oh++)l2b(rules[oh]); }catch (t){}}function l2b(rule){try {var select=rule.selectorText,style=rule.style; I1v.push( {select:select,style:style } ); }catch (w){}}for (var i=0; i<i2a; i++)o2b(l2a[i]); for (var i=0; i<I1v.length; i++){try {var item=I1v[i]; if (item.select.indexOf(className)>=0)return true; }catch (w){}}return I2a; };HTMLEditor.prototype.iw= function (){var X=this ; var Y=this._textArea; if (X.i8==null){if (HTMLEditor.I8(".HE_editPanel")){X.i8= {o9:X._textArea.offsetWidth,O9:X._textArea.offsetHeight } ; }else {setTimeout( function (){X.iw(); } ,062); return; }}var height=(this.I.height=="auto"?(parseInt(this.i8.O9)+"px"): this.I.height); height=parseInt(height); var width=(this.I.width=="auto"?(parseInt(this.i8.o9)+"px"): this.I.width); width=parseInt(width); var ih=HTMLEditor.I12(X._textArea.value); if (X.F==null){X.F=[]; function i2b(I29,o22){X.F.push(I29); return ""; }ih=ih.replace(/(<style(?:[^>]*?)>(?:[^<]*?)<\/style(?:[^>]*?)>)/gi,i2b); X._textArea.value=ih; }Y.style.display="none"; var I2b=document.createElement("div"); I2b.className="inner_htmlarea"; this.l1=I2b; Y.parentNode.insertBefore(I2b,Y); var iframe=document.createElement("iframe"); iframe.id=X._hiddenContent+"_inner_iframe"; iframe.name=X._hiddenContent+"_inner_iframe"; if (this.ignoreTab)iframe.tabIndex=-1; if (HTMLEditor.is_ie)iframe.src="javascript:false;"; if (HTMLEditor.is_ie)iframe.style.visibility="hidden"; iframe.className="inner_iframe"; I2b.appendChild(iframe); this._iframe=iframe; iframe.marginHeight="0"; iframe.marginWidth="0"; iframe.style.borderWidth="0px"; if (HTMLEditor.is_ie && !HTMLEditor.l13)iframe.style.width="100%"; else {if (!HTMLEditor.o11 && document.compatMode!="BackCompat")width-=2; iframe.style.width=width+"px"; }iframe.style.height=height+"px"; this.iv=document.createElement("iframe"); this.iv.style.display="none";if (HTMLEditor.is_ie)this.iv.style.visibility="hidden"; this.iv.id=X._hiddenContent+"_inner_iframePreview"; this.iv.name=X._hiddenContent+"_inner_iframePreview"; if (this.ignoreTab)this.iv.tabIndex=-1; if (HTMLEditor.is_ie)this.iv.src="javascript:false;"; this.iv.className="inner_iframe"; I2b.appendChild(this.iv); this.iv.marginHeight="0"; this.iv.marginWidth="0"; this.iv.style.borderWidth="0px"; if (HTMLEditor.is_ie)this.iv.style.width="100%"; else { this.iv.style.width=width+"px"; } this.iv.style.height=height+"px"; Y=document.createElement("textarea"); if (HTMLEditor.is_ie){width="100%"; }else width=parseInt(iframe.offsetWidth)+"px"; height=parseInt(iframe.offsetHeight); if (HTMLEditor.is_ie)if (document.compatMode!="BackCompat")height-=2; Y.style.width=width; Y.style.height=height+"px";Y.style.margin="0px"; Y.style.padding="0px"; Y.style.borderWidth="0px"; Y.style.overflow="auto"; if (this.ignoreTab)Y.tabIndex=-1; Y.style.display="none"; if (HTMLEditor.is_ie)Y.style.visibility="hidden"; I2b.appendChild(Y); this.o15=Y; function o2c(ox){if (X.Ou(ox))return; var Ox; if (HTMLEditor.is_Safari)Ox=document.getElementById(X._hiddenContent+"_inner_iframe").contentWindow.document; else Ox=X._iframe.contentWindow.document; if (!Ox){if (HTMLEditor.o29 || HTMLEditor.o11){X.setTimeout(o2c,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}try {if (HTMLEditor.o29 || HTMLEditor.o11){Ox.designMode="on"; }}catch (t){document.location.reload( true); return false; }X.I1=Ox; Ox.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.P[013]+"\" media=\"all\" />"); if (HTMLEditor.is_ie){html.write("<style> li {margin-top: 1px;} </style>"); }for (var O2c=0; O2c<X.F.length; O2c++)html.write(X.F[O2c]); html.write("\x3cstyle>\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var O2a=0; O2a<X._addCssFiles.length; O2a++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[O2a]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }if (X.D!=null)html.write(X.D.replace(/<meta[^\0]*?\/>/gi,"")); html.write("</head>"); html.write("<body id='editorBody'"+(X.C!=null?X.C: "")+">"); if (!HTMLEditor.is_ie){}else ih=ih.replace(/&amp;/ig,"&"); if (ih.length==0){if (HTMLEditor.is_ie){}else {ih="<br/>"; }}if (!HTMLEditor.is_ie){if (/<iframe/.test(ih)){X.O11=ih; ih="";}else {X.O11=null; }}html.write(ih); html.write("</body>"); html.write("</html>"); Ox.write(html.toString()); Ox.close(); if (HTMLEditor.is_ie && X._autoFocus)X._iframe.style.visibility="visible"; Ox.id="EditorDocument"; if (HTMLEditor.is_ie){function l2c(ll){if (ll.nodeType==1 && ll.tagName){var il=ll.tagName.toUpperCase(); if (il!="INPUT" && il!="TEXTAREA" && il!="IFRAME"){ll.unselectable="on"; }for (var i2c=0; i2c<ll.childNodes.length; i2c++)l2c(ll.childNodes.item(i2c)); }}l2c(document.getElementById(X.mainDivId)); Ox.body.unselectable="off"; Y.unselectable="off"; if (X._autoFocus)Ox.body.contentEditable= true; }else {try {if (X.panelDivId!=null)if (document.getElementById(X.panelDivId))document.getElementById(X.panelDivId).style.MozUserSelect="none"; if (X.bottomPanelDivId!=null)if (document.getElementById(X.bottomPanelDivId))document.getElementById(X.bottomPanelDivId).style.MozUserSelect="none"; }catch (t){}}HTMLEditor.Iv(Ox,["keydown","keypress","mousedown","mouseup","dblclick"], function (event){return X.I2c(event); } ); if (HTMLEditor.o11)HTMLEditor.ik(X._iframe,"blur", function (event){X.f= false; HTMLEditor._stopEvent(event); return true; } ); if (HTMLEditor.o11)HTMLEditor.ik(X._iframe,"focus", function (event){X.f= true; HTMLEditor._stopEvent(event); return true; } ); if (X._NoDrop){if (HTMLEditor.is_ie){HTMLEditor.Iv(Ox.body,["drop"], function (event){HTMLEditor._stopEvent(event); return false; } ); HTMLEditor.Iv(Ox.body,["dragenter","dragover"], function (event){HTMLEditor._stopEvent(event); return false; } ); }else {HTMLEditor.Iv(Ox,["dragdrop"], function (event){HTMLEditor._stopEvent(event); return false; } ); }}if (X._NoPaste && HTMLEditor.is_ie){HTMLEditor.Iv(Ox.body,["beforepaste","paste"], function (event){HTMLEditor._stopEvent(event); return false; } ); }if (!X.o2d){var o1e=document.getElementById(X.mainDivId); X.i8.O28=o1e.offsetWidth; o1e=document.getElementById(X.panelDivId); X.i8.i19=o1e.offsetHeight; X.i8.l28=o1e.offsetWidth; if (!o1e.style.width || o1e.style.width.indexOf("px")<0){X.o2d= true; HTMLEditor.ik(X.O1,"resize", function (event){X._onresize(event); } ); }if (X.__NoToolBar__ || HTMLEditor.o11){if (X.__NoToolBar__)o1e.style.display="none"; X.setTimeout( function (ox){if (X.Ou(ox))return; X._onresize(); if (HTMLEditor.is_Safari || HTMLEditor.o11){X._iframe.style.width="100%"; X.setTimeout( function (ox){if (X.Ou(ox))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.o15.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }}else {X.setTimeout( function (ox){if (X.Ou(ox))return; if (X.__NoToolBar__){var o1e=document.getElementById(X.panelDivId); o1e.style.display="none"; }if (HTMLEditor.is_Safari)X.setTimeout( function (ox){if (X.Ou(ox))return; X._onresize(); } ,0); else {X._onresize(); }if (!HTMLEditor.is_ie){X._iframe.style.width="100%"; X.setTimeout( function (ox){if (X.Ou(ox))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.o15.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }} ; X.setTimeout(o2c,(HTMLEditor.o29 || HTMLEditor.o11)?0144: 0); this.O2d= true; } ; HTMLEditor.I4= function (X,table,l2d){function O1g(O1n){if (!O1n){X.I1e( false); }else {if (HTMLEditor.o11){X.f= true; X.focusEditor(); }setTimeout( function (){X.updateToolbar(); X.l14(); } ,012); }return true; }var i2d=0,I2d=0; while (l2d!=null){if (l2d.tagName){if (l2d.tagName.toUpperCase()=="TD"){if (HTMLEditor.is_Safari){var o2e=l2d.parentNode; for (var i=0; i<o2e.cells.length; i++)if (o2e.cells.item(i)==l2d){I2d=i; break; }}else I2d=l2d.cellIndex; i2d=l2d.parentNode.rowIndex; break; }}l2d=l2d.parentNode; }X.i10(); if (table.getAttribute("width") && table.getAttribute("width").length>0){table.style.width=parseInt(table.getAttribute("width"))+"px"; table.removeAttribute("width"); }if (table.getAttribute("height") && table.getAttribute("height").length>0){table.style.width=parseInt(table.getAttribute("height"))+"px"; table.removeAttribute("height"); }if (table.getAttribute("background") && table.getAttribute("background").length>0){table.style.backgroundImage="url("+table.getAttribute("background")+")"; table.removeAttribute("background"); }if (table.getAttribute("border") && table.getAttribute("border").length>0){table.style.borderTopWidth=parseInt(table.getAttribute("border"))+"px"; table.style.borderLeftWidth=parseInt(table.getAttribute("border"))+"px"; table.removeAttribute("border"); }X.Ii("_tableProperties",X.Og("table","Edit a Table"),table,O1g,i2d,I2d); };HTMLEditor.i4= function (X,cell){function O1g(O1n){if (!O1n){X.I1e( false); }else {if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.updateToolbar(); X.l14(); }return true; }X.i10(); X.Ii("_cellProperties",X.Og("cell","Edit a Cell"),cell,O1g); };HTMLEditor._editIMG= function (X,img){function O1g(O1n){if (!O1n){setTimeout( function (){X.I1e( false); } ,012); }else {if (HTMLEditor.is_ie){setTimeout( function (){var i1b=X.I1.body.createControlRange(); i1b.add(img); i1b.select(); } ,0); }else if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }if (typeof X.imageCallback=="function"){X.imageCallback(O1n?img:null); }return true; }X.i10(); var i26=(typeof X.imagePopupName=="string")?X.imagePopupName: "image"; X.Ii("_imageProperties",X.Og(i26,"Edit an Image"),img,O1g); };HTMLEditor.prototype.editImage= function (img){if (img.tagName && img.tagName.toUpperCase()=="IMG")HTMLEditor._editIMG(this,img); };HTMLEditor.O2= function (X,ll){var O2e= false; try {X.i10(); O2e= true; if (!HTMLEditor.is_ie)ll=HTMLEditor.contentEditable(ll); ll.contentEditable="inherit"; ll.removeAttribute("contenteditable"); if (ll.tagName && (ll.tagName.toUpperCase()=="SPAN" || ll.tagName.toUpperCase()=="DIV")){var count=0; if (ll.attributes)for (var i=0; i<ll.attributes.length; i++){var l2e=ll.attributes[i]; if (l2e.name.toUpperCase()=="STYLE")continue; if (l2e.specified)count++; }var i2e=(ll.style)?ll.style.cssText: ""; var par=ll.parentNode; if (count==0 && i2e.length==0){while (ll.firstChild!=null)par.insertBefore(ll.firstChild,ll); par.removeChild(ll); }HTMLEditor.l26(par,X.I1); }}catch (w){try {if (O2e)X.I1e( false); if (HTMLEditor.is_ie){HTMLEditor.l1o(ll,X); }}catch (I13){}}};HTMLEditor.l2= function (X,I26){function O1g(O1n){if (!O1n){setTimeout( function (){X.I1e( false); } ,0); }else {if (HTMLEditor.is_ie){I26.id=HTMLEditor.om; X.i10(); setTimeout( function (){X.I1e( false); var l1c=X.I1.getElementById(HTMLEditor.om); l1c.id=null; l1c.removeAttribute("id"); var i1b=X.I1.body.createControlRange(); i1b.add(l1c); i1b.select(); } ,0); }else if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); X.Ii("_flashProperties",X.Og("flash","Edit a Flash"),I26,O1g); };HTMLEditor.O3= function (X,media){function O1g(O1n){if (!O1n){setTimeout( function (){X.I1e( false); } ,012); }else {if (HTMLEditor.is_ie){X.i10(); setTimeout( function (){X.I1e( false); } ,012); }else if (HTMLEditor.o11){X.f= true; X.focusEditor(); }X.l14(); }return true; }X.i10(); X.Ii("_mediaProperties",X.Og("media","Edit Media"),media,O1g); };HTMLEditor.prototype.I2e= function (media,op){var X=this;if (media!=null){media.id=HTMLEditor.om; }X.i10(); X.iv.style.display="none"; if (HTMLEditor.is_ie)X.iv.style.visibility="hidden"; try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); if (HTMLEditor.is_ie)X.lq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var Il=X.l1.removeChild(X._iframe); X._textArea.value=""; X._textArea.style.visibility="hidden"; X._textArea.style.display=""; X._iframe=null; delete Il; }catch (t){}setTimeout( function (){X.activate( function (){X.o2f( false); if (media!=null){var l1c=X.I1.getElementById(HTMLEditor.om); l1c.id=null; l1c.removeAttribute("id"); media=l1c; }if (typeof op=="function")op(media); } ); } ,0); };HTMLEditor.o3= function (X,O2f){X.i10(); var l2f=O2f; if (l2f.getAttribute(HTMLEditor.ot) && l2f.getAttribute(HTMLEditor.ot).length>0){var lk=X.Ot(l2f); if (lk!=null)l2f=lk; }setTimeout( function (){if (HTMLEditor.is_ie){var Oq=X.lq(); Oq.empty(); }var par=l2f.parentNode; if (par!=null){par.removeChild(l2f); if (par.tagName && par.tagName.toUpperCase()=="TD" && par.childNodes.length==0){par.innerHTML=X.I22(); }}if (HTMLEditor.is_ie){var i16=X.K[X.O1e-1]; var Oq=X.lq(); Oq.empty(); var iq=X.I1.body.createTextRange(); try {iq.moveToPoint(i16.i2f,i16.I2f); }catch (t){}iq.select(); iq.execCommand("refresh", false , false); }X.l14(); } ,012); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.DeleteNode= function (O2f){HTMLEditor.o3(this,O2f); };HTMLEditor.O5= function (X,O2f){X.cut(); };HTMLEditor.i5= function (X,O2f){X.copy(); };HTMLEditor.I5= function (X,O2f){X.paste(); };HTMLEditor.O6= function (X,O2f){X.pasteText(); };HTMLEditor.i6= function (X,O2f){X.deleteSelection(); };HTMLEditor.I6= function (X,O2f){X.selectAll(); };HTMLEditor.l5= function (X,O2f){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(X.O1b()): ""; var Oq=X.lq(); var iq=X.Iq(Oq); if (HTMLEditor.is_ie)if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; if (!X.isControl() && ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))return true; return false; };HTMLEditor.o6= function (X,O2f){if (!X.isControl()){if (!HTMLEditor.is_ie){var iq=X.Iq(X.lq()); var o22=iq.startContainer; var O22=iq.endContainer; var ll=HTMLEditor.contentEditable(o22); if (ll==null)ll=HTMLEditor.contentEditable(O22); if (ll!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return !X._NoPaste; }return false; };HTMLEditor.l6= function (X,O2f){if (!X.isControl()){if (!HTMLEditor.is_ie){var iq=X.Iq(X.lq()); var o22=iq.startContainer; var O22=iq.endContainer; var ll=HTMLEditor.contentEditable(o22); if (ll==null)ll=HTMLEditor.contentEditable(O22); if (ll!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return true; }return false; };HTMLEditor.i2= function (X,O2f){var l2f=O2f; if (l2f.getAttribute(HTMLEditor.ot) && l2f.getAttribute(HTMLEditor.ot).length>0){var lk=X.Ot(l2f); if (lk!=null)l2f=lk; }setTimeout( function (){var o2g=X.I1.body.createControlRange(); o2g.add(l2f); o2g.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.O1f(); X.l1f("c", false); X.on(); X.i1f(); } ,0);}else {X.l1f("c", false); setTimeout( function (){X.lq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.I2= function (X,O2f){var l2f=O2f; if (l2f.getAttribute(HTMLEditor.ot) && l2f.getAttribute(HTMLEditor.ot).length>0){var lk=X.Ot(l2f); if (lk!=null)l2f=lk; }setTimeout( function (){var o2g=X.I1.body.createControlRange(); o2g.add(l2f); o2g.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.O1f(); X.l1f("x", false); X.on(); } ,0);}else {X.l1f("x", false); setTimeout( function (){X.lq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.I10= function (par){try {var ll=this.I1.body; if (ll.firstChild)if (ll.firstChild.nodeType==3){var ih=HTMLEditor.I12(""+ll.firstChild.data+""); if (ih.length==0)ll.removeChild(ll.firstChild); else if (ih!=(""+ll.firstChild.data+""))ll.firstChild.data=ih; }if (HTMLEditor.is_ie)if (ll.childNodes.length==1){ll=ll.firstChild; if (ll.nodeType==1)if (ll.tagName.toLowerCase()=="p" || ll.tagName.toLowerCase()=="ul" || ll.tagName.toLowerCase()=="ol"){var O2g= false; var l2g=(ll.tagName.toLowerCase()=="ul" || ll.tagName.toLowerCase()=="ol")? true : false; function i2g(ic){var le= false; if (ic.nodeType==1){if (!(l2g && ic.tagName.toUpperCase()=="LI"))if (HTMLEditor.I2g(ic) || ic.tagName.toUpperCase()=="IMG" || ic.tagName.toUpperCase()=="IFRAME" || ic.tagName.toUpperCase()=="EMBED" || ic.tagName.toUpperCase()=="SCRIPT")return true; if (ic.childNodes.length>1)return true; if (ic.childNodes.length==0)return false; le |= i2g(ic.firstChild); }else if (ic.nodeType==3){le |= true; }return le; }if (ll.childNodes.length==1){if (!i2g(ll.firstChild)){ll.removeChild(ll.firstChild); O2g= true; }}if (O2g || ll.parentNode.innerHTML.toLowerCase()=="<p>&nbsp;</p>")this.I1.body.removeChild(ll); }} this.l14(); }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.l13=(/MSIE (8)/.test(navigator.userAgent) && document.compatMode!="BackCompat"); HTMLEditor.o11=(HTMLEditor.o2h.indexOf("opera")!=-1) || window.opera; HTMLEditor.O2h=(HTMLEditor.o2h.indexOf("mac")!=-1); HTMLEditor.l2h=(HTMLEditor.is_ie && HTMLEditor.O2h); HTMLEditor.i2h=(HTMLEditor.is_ie && !HTMLEditor.O2h); HTMLEditor.o29=(navigator.product=="Gecko"); HTMLEditor.is_Safari=(HTMLEditor.o2h.indexOf("safari")!=-1); HTMLEditor.I2h=(HTMLEditor.o2h.indexOf("firefox")!=-1); HTMLEditor.o2i=(HTMLEditor.o2h.indexOf("safari")!=-1); HTMLEditor.O2i=(HTMLEditor.o2h.indexOf("firefox")!=-1); HTMLEditor.l2i=HTMLEditor.o29 && navigator.i2i=="Camino"; HTMLEditor.I2i=!HTMLEditor.o11 && navigator.userAgent.indexOf("Konqueror")!=-1; HTMLEditor.o2j=HTMLEditor.I2i || HTMLEditor.o2i; HTMLEditor.ok=(/[^12]\.(\d+)\.(\d+) safari/i).test(HTMLEditor.o2h); HTMLEditor.Ij=(HTMLEditor.o2h.indexOf("netscape")!=-1 && navigator.vendorSub.replace(/^(\d+)\.\d*/,"$1")<8) || (HTMLEditor.o29 && navigator.productSub<0114371117) || (HTMLEditor.is_Safari && !HTMLEditor.ok); HTMLEditor.O2j= function (){var l2j="",i2j; if (HTMLEditor.o11){l2j=opera.l2j(); }else {if (HTMLEditor.o29){i2j=/rv:([^);]+)(\)|;)/; }else if (HTMLEditor.is_ie){i2j=/MSIE\s+([^);]+)(\)|;)/; }else if (HTMLEditor.o2i){i2j=/WebKit\/(\S+)/; }else if (HTMLEditor.I2i){i2j=/Konqueror\/([^);]+)(\)|;)/; }if (i2j){i2j.test(navigator.userAgent); l2j=RegExp.$1; }}return l2j; };HTMLEditor.compareVersions= function (I2j,o2k){var O2k=0,l2k=String(I2j).split("."),i2k=String(o2k).split("."),I2k=Math.max(l2k.length,i2k.length); for (var o2l=0; O2k==0 && o2l<I2k; o2l++){var O2l=l2k[o2l] || "",l2l=i2k[o2l] || "",i2l=new RegExp("(\\d*)(\\D*)","g"),I2l=new RegExp("(\\d*)(\\D*)","g"); do {var o2m=i2l.exec(O2l) || ["","",""],O2m=I2l.exec(l2l) || ["","",""]; if (o2m[0].length==0 && O2m[0].length==0){break; }var l2m=o2m[1].length==0?0:parseInt(o2m[1],012),i2m=O2m[1].length==0?0:parseInt(O2m[1],012); O2k=HTMLEditor.I2m(l2m,i2m) || HTMLEditor.I2m(o2m[2].length==0,O2m[2].length==0) || HTMLEditor.I2m(o2m[2],O2m[2]);}while (O2k==0);}return O2k;} ; HTMLEditor.I2m= function (left,right){if (left<right){return -1;}else if (left>right){return 1;}return 0;} ; HTMLEditor.o2n= function (O2n,l2n){return HTMLEditor.compareVersions(O2n,l2n); } ; HTMLEditor.i2n= function (l2j){return HTMLEditor.o2n(HTMLEditor.O2j(),l2j)>=0; } ; if (HTMLEditor.is_Safari && !HTMLEditor.ok)( function (){var I2n=String.prototype.replace; String.prototype.replace= function (search,replace){if (typeof replace!="function"){return I2n.apply(this,arguments);}var ih=""+this ; var o2o=replace; if (!(search instanceof RegExp)){var O2o=ih.indexOf(search); return (O2o==-1?ih:I2n.apply(ih,[search,o2o(search,O2o,ih)]));}var l2o=search; var I1v=[]; var i2o=l2o.lastIndex; var i2j; while ((i2j=l2o.exec(ih))!=null){var O2o=i2j.index; var ib=i2j.concat(O2o,ih); I1v.push(ih.slice(i2o,O2o),o2o.apply(null,ib).toString()); if (!l2o.global){i2o+=RegExp.lastMatch.length; break; }else {i2o=l2o.lastIndex; }}I1v.push(ih.slice(i2o)); return I1v.join(""); };} )(); HTMLEditor.Q= function (){if (HTMLEditor.o29){if (navigator.productSub<0114321402 && !HTMLEditor.is_Safari){alert("Mozilla \x3c 1.3 Beta is not supported!\nI\'ll try, though, but it might not work."); }}if (HTMLEditor.O2h && !(HTMLEditor.is_Safari || HTMLEditor.I2h)){alert(this.Of("mac-using","Use Safari or FireFox...")); return false; }if (HTMLEditor.o11){var l2j=0; var I2o=0; function test(I29,o22,O22){l2j=parseInt(o22); I2o=parseInt(O22); }HTMLEditor.o2h.replace(/opera\/(\d+)\.(\d+)/ig,test); if (!(l2j*0144+I2o>=01630)){alert("Opera < 9.20 is not supported"); return false; }}return HTMLEditor.o29 || HTMLEditor.is_ie || HTMLEditor.o11; } ; HTMLEditor.ik= function (ll,o2p,op){if (!ll){return; }if (ll.attachEvent)ll.attachEvent("on"+o2p,op); else {if (ll.addEventListener)ll.addEventListener(o2p,op, true); }} ; HTMLEditor.Iv= function (ll,O2p,op){if (!ll){return; }try {if (typeof ll.push=="function"){for (var i=0; i<O2p.length; i++)for (var oh=0; oh<ll.length; oh++)HTMLEditor.ik(ll[oh],O2p[i],op); }else {for (var i=0; i<O2p.length; i++)HTMLEditor.ik(ll,O2p[i],op); }}catch (t){ throw t; }} ; HTMLEditor.Ic= function (ll,o2p,op){if (ll.detachEvent)ll.detachEvent("on"+o2p,op); else {if (ll.removeEventListener)ll.removeEventListener(o2p,op, true); }} ; HTMLEditor.l2p= function (ll,O2p,op){if (ll.push){for (var i=0; i<O2p.length; i++)for (var oh=0; oh<ll.length; oh++)HTMLEditor.Ic(ll[oh],O2p[i],op); }else {for (var i=0; i<O2p.length; i++)HTMLEditor.Ic(ll,O2p[i],op); }} ; HTMLEditor._stopEvent= function (ij){if (ij)if (HTMLEditor.is_ie){ij.cancelBubble= true; ij.returnValue= false; }else {ij.preventDefault(); ij.stopPropagation(); }} ; HTMLEditor.prototype._stopEvent= function (ij){HTMLEditor._stopEvent(ij); };HTMLEditor.prototype._formSubmit= function (ij){if (!this.Io && this.mainDivVisible){try {return [document.getElementsByName(this._hiddenContent)[0].value,document.getElementsByName(this._hiddenContent)[0].value]; }catch (w){return ["",""]; }}var I18=""; if (this.i1=="preview"){I18=""; if (this.i15=="html")I18=this.O19; else I18=this.o15.value; if (HTMLEditor.is_Safari){}}else {if (this.i1=="html"){I18=this.getHTML(); }else {if (this.o15)I18=this.o15.value; else I18=this._textArea.value; }}if (this.NoScript){ this._textArea.value=this._textArea.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); I18=I18.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); }var i2p=I18.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"); if (!this._remainLf)i2p=HTMLEditor.I12(i2p); this._textArea.value=i2p; return [i2p,I18]; } ; HTMLEditor.prototype._prepareHTML= function (ih){var save=this.i1; this.i1="text"; var I2p=(this.o15)? true : false; if (!I2p){var Y=document.createElement("textarea"); this.o15=Y; if (HTMLEditor.is_Safari)document.body.appendChild(Y); }if (!(this.iu && !HTMLEditor.S())){ this.o15.value=(this._textArea.value.length>0)?(this._textArea.value.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,"\"").replace(/&amp;/g,"&")): ((typeof ih=="string")?ih.replace(/&quot;/g,"\""):ih.value); function o2q(I29,o22){if (o22=="\\n")return "\n"; return o22.replace("\\\\","\\"); } this.o15.value=this.o15.value.replace(/([\\]+n)/g,o2q); if (this.InitialCleanUp)this.o15.value=HTMLEditor.O2q(HTMLEditor.I12(this.o15.value.replace(/[\n\r]+/g," "))); if (typeof ih!="string")ih.value=""; document.getElementsByName(this._hiddenContent)[0].value=HTMLEditor.I12(this.o15.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")); if (document.getElementsByName(this._hiddenContent+"_modified").length==0){var lk=document.createElement("input"); lk.type="hidden"; lk.name=this._hiddenContent+"_modified"; document.getElementsByName(this._hiddenContent)[0].parentNode.insertBefore(lk,document.getElementsByName(this._hiddenContent)[0]); }}if (this._textArea.style.visibility=="hidden")this._textArea.style.visibility="visible"; this.F=null; var le=this.getHTML(); if (!I2p){ this.o15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; } this.i1=save; return le; };HTMLEditor.prototype.setOriginal= function (In){var X=this ; if (X.mode()=="preview"){X.O16= false; X.l= true; }else if (X.mode()=="text"){X.o16=X.o15.value; X.O16= false; X.l= true; }else {X.O14=HTMLEditor.I12((typeof In!="undefined" && In!=null)?In:HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l14(); }X.l= false; }return true; };HTMLEditor.prototype.setContent= function (ih,l2q,i2q){if (this.mode()=="preview")return false; var X=this ; if (typeof i2q=="function"){ this.L=i2q; }function I2q(){if (typeof ih=="string"){if (!X.it() || !X.mainDivVisible){X._textArea.value=""; X._textArea.value=X._prepareHTML(ih.replace(/"/g,"&quot;")); X.on(); X.l14(); return false; }try {try {if (X.mode()=="html")X.i10(); }catch (t){}var Il=X._textArea.parentNode.removeChild(X.l1); X.l1=null; delete Il; }catch (t){}try {X._textArea.value=""; X._textArea.value=X._prepareHTML(ih.replace(/"/g,"&quot;")); if ((typeof l2q!="undefined") && l2q){X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O1e=-1; }}X.activate(); if (X.mainDivVisible)setTimeout( function (){X.focusEditor(); } ,0454); }catch (t){X.on(); return false; }X.l14(); }else {if ((typeof l2q!="undefined") && l2q){X.O14=HTMLEditor.I12(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.l14(); }if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O1e=-1; }}X.on(); }return true; }if (this.mode()=="text"){if (this.mainDivVisible){try {if (typeof ih=="string")X.o15.value=ih; if ((typeof l2q!="undefined") && l2q){X.o16=X.o15.value; X.O16= false; X.l= true; if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O1e=-1; }}}catch (t){return false; }return true; }else {if (typeof ih=="string"){X._textArea.value=""; X._textArea.value=X._prepareHTML(ih.replace(/"/g,"&quot;")); if (X.o15!=null && X.o15!="undefined")X.o15.value=X._textArea.value; }return true; }}if (this.mode()=="html"){if (this.mainDivVisible){function o2r(){if (X.Io){X.openWait(); setTimeout(I2q,0); }else {setTimeout(o2r,0144); }}o2r(); }return true; }return false; };HTMLEditor.prototype.getContent= function (O2r){var le; if (this.i1=="preview"){if (this.i15=="html")le=this.O19; else le=this.o15.value; }else if (HTMLEditor.is_ie){if (this.i1=="html"){le=this.getHTML(); }else {var I2p=(this.o15)? true : false; if (!I2p){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.o15=Y; this.o15.value=document.getElementsByName(this._hiddenContent)[0].value.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }le=HTMLEditor.l2r(this.o15.value); if (!I2p){ this.o15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }}}else {le=this.getHTML(); }if (!(typeof O2r!="undefined" && O2r)){le=HTMLEditor.I12(le); le=le.replace(/[\0-\x1f]+$/,""); }if (le.length>=6)if (le.substr(le.length-5,5)=="<br/>")le=le.substr(0,le.length-5); else if (le.substr(le.length-6,6)=="<br />")le=le.substr(0,le.length-6); else if (le.substr(le.length-4,4)=="<br>")le=le.substr(0,le.length-4); return le; } ; HTMLEditor.prototype.TextSelected= function (){if (this.mode()!="html")return false; var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; var Oq=this.lq(); var iq=this.Iq(Oq); if (!this.isControl() && ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))return true; else return false; };HTMLEditor.prototype.getContentWait= function (oq,O2r){if (typeof oq=="function"){var X=this ; X.openWait(); setTimeout( function (){oq(X.getContent(O2r)); X.on(); } ,0); }} ; HTMLEditor.prototype.openWait= function (i2q){if (!this._pleaseWait)return; try {var ic=document.getElementById(this.mainDivId).parentNode; var It= true; while (ic){if (ic.style && ic.style.display=="none"){It= false; break; }ic=ic.parentNode; }if (this.n!=null || !It || !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.Of("wait","Please wait...")+"<nobr></center></div>"; X.A.appendChild(popup); var o9=parseInt(popup.offsetWidth); var O9=parseInt(popup.offsetHeight); popup.style.display="none"; var y; var x; var i2r=(X.i1=="text")?(X.l1==null?null:X.o15): ((X.i1=="preview")?X.iv:X._iframe); if (i2r==null && X._textArea && X._textArea.style.I2r!="none" && X._textArea.style.visibility!="hidden")i2r=X._textArea; if (i2r==null || typeof i2r=="undefined")i2r=document.getElementById(X.mainDivId); var o2s=parseInt(i2r.offsetWidth); var O2s=parseInt(i2r.offsetHeight); var l2s=HTMLEditor.i2s(i2r, false); y=O2s/2-O9/2+l2s._top; x=o2s/2-o9/2+l2s.i1y; popup.style.top=y+"px"; popup.style.left=x+"px"; this.n=popup; popup.style.display=""; }catch (t){alert("openWait: "+t.message); }};HTMLEditor.prototype.on= function (){if (this.L!=null){var I2s=this.L; setTimeout(I2s,0764); this.L=null; }if (HTMLEditor.is_ie && this.mainDivVisible && this.it() && this.i1=="html" && document.getElementById(this.mainDivId)!=null){try { this.updateToolbar(); }catch (t){} ; }if (this.n==null)return; var lk; try {lk=this.n.parentNode.removeChild(this.n); delete lk; }catch (t){} this.n=null; };HTMLEditor.prototype.Ib= function (i2q){try {if (document.getElementById(this.mainDivId)==null)return; var ic=document.getElementById(this.mainDivId).parentNode; var It= true; while (ic){if (ic.style && ic.style.display=="none"){It= false; break; }ic=ic.parentNode; }if (this.R!=null || !It || !this.mainDivVisible)return; var popup; var X=this ; popup=X.A.ownerDocument.createElement("div"); popup.style.zIndex="20000"; popup.style.position="absolute"; popup.innerHTML="\x3cimg src=\""+this.P[6]+"\">"; X.A.appendChild(popup); var o9=parseInt(popup.clientWidth); var O9=parseInt(popup.clientHeight); popup.style.display="none"; var y; var x; var i2r=(X.i1=="text")?(X.l1==null?null:X.o15): ((X.i1=="preview")?X.iv:X._iframe); if (i2r==null && X._textArea && X._textArea.style.I2r!="none" && X._textArea.style.visibility!="hidden")i2r=X._textArea; if (i2r==null || typeof i2r=="undefined")i2r=document.getElementById(X.mainDivId); var o2s=parseInt(i2r.clientWidth); var O2s=parseInt(i2r.clientHeight); var l2s=HTMLEditor.i2s(i2r, false); y=O2s/2-O9/2+l2s._top; x=o2s/2-o9/2+l2s.i1y; popup.style.top=y+"px"; popup.style.left=x+"px"; this.R=popup; popup.style.display=""; }catch (t){}};HTMLEditor.prototype.o2t= function (){if (this.R==null)return; var lk=this.A.removeChild(this.R); delete lk; this.R=null; };HTMLEditor.prototype.setVisibility= function (p){if (!this.Ir)return false; var X=this ; if (p){if (!X.mainDivVisible){X.mainDivVisible= true; document.getElementById(X.mainDivId).style.display="block"; if (X.ir==0){if (X._setRealSize && typeof X._setRealSize=="function"){X._setRealSize(); }X.i8= {o9:X._textArea.offsetWidth,O9:X._textArea.offsetHeight } ; X.i1="html"; X.openWait(); X._textArea.style.visibility="hidden"; X.setTimeout( function (ox){if (X.Ou(ox))return; X.activate(); } ,0); }else {X.chMode("html"); }}}else {if (X.mainDivVisible){var V=0; if (X.v!=null && typeof X.v.pop=="function"){while (X.v.length>0){var T=X.v.pop(); if (typeof T[0]=="function"){try {clearTimeout(T[1]); }catch (t){}V++; }}X.v=null; }try {X.on();}catch (w){} ; var O2t=X.clearPopups(); if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; }if (V>0)X.i1="undef"; var l2t= false; if (X.i1=="html" || X.i1=="preview"){if (X.i1=="html")X.I0= false; if (O2t)setTimeout( function (){X.chMode("text", function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ); } ,0764); else X.chMode("text", function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ); }else if (X.i1=="undef"){X.i1="text"; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.lq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; try {X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; }catch (t){} ; var Il=null; try {Il=X.l1.removeChild(X._iframe); }catch (t){} ; X._iframe=null; if (Il!=null) delete Il; Il=null; try {Il=X.l1.removeChild(X.iv); }catch (t){} ; X.iv=null; if (Il!=null) delete Il; Il=null; try {Il=X.l1.removeChild(X.o15); }catch (t){} ; X.o15=null; if (Il!=null) delete Il; Il=null; try {Il=X.l1.parentNode.removeChild(X.l1); }catch (t){} ; X.l1=null; if (Il!=null) delete Il; if (!HTMLEditor.is_Safari){X.ix=X.i8.O9; X.l19=X.i8.i19; }X._textArea.style.display="block"; }catch (t){}l2t= true; }else if (X.i1=="text")l2t= true; if (X.ShowQuickFormatDivId!=null)HTMLEditor.i18(X.ShowQuickFormatDivId); if (l2t)setTimeout( function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ,024); }}document.getElementsByName(X.mainDivVisibleName)[0].value=(X.mainDivVisible)?"true": "false"; };HTMLEditor.l2r= function (ih){return ih.replace(/<br>/ig,"<br/>"); };HTMLEditor.prototype.getHTML= function (Im,i2t){try {var O15=this.i1; if (O15=="preview"){O15=this.i15; if (O15=="html"){return this.O19; }}function I2t(I29,o22){return "&#"+o22.charCodeAt(0).toString(012)+";"; }function o2u(I29,o22){return "\x3cspan class=\""+HTMLEditor.om+"_script\" style=\'display:none;visibility:hidden;\'>"+o22.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }var O2u=[]; function l2u(I29,o22){O2u.push(o22); return "";}function i2u(I29,o22,O22,I2u){return o22.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var o2v=-1; function O2v(I29,o22,O22,I2u){o2v++; var l2v; if (!HTMLEditor.is_ie)l2v=O2u[o2v].replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); else l2v=O2u[o2v]; return o22+l2v+I2u; }function i2v(I29,o22){X.c=o22; return I29; } ; function I2v(I29,o22){X.d=o22; return ""; } ; function o2w(I29,o22){X.D=o22; return ""; } ; function i29(I29,o22,O22){X.C=o22; return O22; } ; function O2w(I29,o22){X.B=o22; return I29; } ; switch (O15){case "html": this.I10(); var In=(typeof i2t!="undefined"); if (typeof Im=="undefined" || Im== false){var l2w=!HTMLEditor.ly(this,this.I1, true); var i2w=!HTMLEditor.iy(this,this.I1, true); In=In && l2w && i2w; }var I2w=""; if (this.F!=null)for (var i=0; i<this.F.length; i++){I2w+=this.F[i].replace(new RegExp("}\\s*","g"),"}\n").replace(/(<style(?:[^>]*?)>)/ig,"$1\n")+"\n"; }if (HTMLEditor.is_ie){var lk=(In && typeof i2t!="undefined")?i2t:HTMLEditor.getHTML(this.I1.body, false , true); var o2x=lk; this.O16=!(this.O14==lk); lk=lk.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); lk=lk.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); lk=lk.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); lk=lk.replace(/(<p[^>]*?>)\s*(<span id="OboutMSIEparagraph_left"><\/span>)(&nbsp;)(<span id="OboutMSIEparagraph_right"><\/span>)\s*(<\/p[^>]*?>)/ig,"$1$2<br/>$4$5"); lk=lk.replace(/(<p[^>]*?>)\s*(<span id="OboutMSIEparagraph_left"><\/span><span id="OboutMSIEparagraph_right"><\/span>)(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1$2<br/>$4"); lk=lk.replace(/(<p[^>]*?>)\s*(&nbsp;)(<span id="OboutMSIEparagraph_left"><\/span><span id="OboutMSIEparagraph_right"><\/span>)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3$4"); lk=lk.replace(/(<p[^>]*?>)(<\/p[^>]*?>)/ig,"$1<br/>$2"); lk=lk.replace(/(<p[^>]*?>)(<span id="OboutMSIEparagraph_left"><\/span>)(<span id="OboutMSIEparagraph_right"><\/span>)(<\/p[^>]*?>)/ig,"$1$2<br/>$3$4"); if (o2x!=lk)this.I15=null; if (!(this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML)){lk=((this.I1.body.style.cssText.length>0)?"\x3cdiv style=\""+this.I1.body.style.cssText.replace("\"","'")+"\">": "")+lk+((this.I1.body.style.cssText.length>0)?"</div>": ""); }if (this.predicatedTags)lk=lk.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); if (this.NoScript)lk=lk.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); if (/<embed/ig.test(lk)){lk=lk.replace(/(<embed(?:.*?))(\sloop="true")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\splay="true")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\sbgcolor="")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\sscale="")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\shspace="0")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\svspace="0")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(\swmode="[^"]+")((?:.*?)>)/ig,"$1$3"); lk=lk.replace(/(<embed(?:.*?))(pseudomode=)("[^"]*")((?:.*?)>)/ig,"$1wmode=$3$4"); lk=lk.replace(/(<embed(?:.*?))(\swmode="")((?:.*?)>)/ig,"$1$3"); }var O2x=I2w+HTMLEditor.l2r(lk); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var l2x=""; if (this.d!=null)l2x+=this.d; l2x+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">"; if (this.I1.getElementById("oboutEditorDefaultStyle")==null){l2x+="\n\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; l2x+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"; }if (this._addCssFiles!=null){l2x+="\n"; for (var O2a=0; O2a<this._addCssFiles.length; O2a++){var i2x= true; if (this.D!=null && this.D.length>0){var I2x=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[O2a]+"\"","ig");if (I2x.test(this.D))i2x= false; }if (i2x)l2x+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[O2a]+"\" media=\"all\" />\n"; }}if (this.D!=null)l2x+=this.D; l2x+="\x3c/head>\n"; if (this.I1.body.style.cssText.length>0){var o2y="<div"+(this.C!=null?this.C: "")+"></div>"; var O2y=document.createElement("DIV"); O2y.innerHTML=o2y; O2y.firstChild.style.cssText+=";"+this.I1.body.style.cssText; o2y=HTMLEditor.getHTML(O2y, false , true); o2y=o2y.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");l2x+="<body"+o2y+">\n"; }else {l2x+="<body"+(this.C!=null?this.C: "")+">\n"; }l2x+=O2x+"\n"; l2x+="\x3c/body>\n\x3c/html>"; O2x=l2x; }if (this.NoUnicode)O2x=O2x.replace(/([\x80-\uffff])/g,I2t);if (HTMLEditor.I12(O2x)=="<br />")O2x=""; O2x=O2x.replace(/^([\n|\r]+)/,""); var l2y=new RegExp("(<[/]?)(teo"+HTMLEditor.om+":)","ig"); O2x=O2x.replace(l2y,"$1"); return O2x; }var i2y=this.I1.createElement("DIV"); i2y.style.cssText=this.I1.body.style.cssText; if (!this.NoScript)this.I1.body.innerHTML.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,l2u); i2y.innerHTML=HTMLEditor.I12(this.I1.body.innerHTML); var oo=(In && typeof i2t!="undefined")?i2t:HTMLEditor.getHTML(this.I1.body, false , true); this.O16=!(this.O14==HTMLEditor.I12(oo)); var o1v=i2y.getElementsByTagName("IMG"); var I2y=[]; for (var i=0; i<o1v.length; i++)I2y.push(o1v[i]); for (var oh=0; oh<I2y.length; oh++){var img=I2y[oh]; var l2e; l2e=img.getAttribute("dummytag"); if (l2e && l2e.length>0 && l2e.toLowerCase()=="embed"){var src=img.getAttribute("dummysrc"); var o2z=img.getAttribute("dummybgcolor"); var wmode=img.getAttribute("pseudomode"); var O2z=img.attributes; var embed=this.I1.createElement("EMBED"); var i2j=/(rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\))/ig; embed.src=src; embed.width=img.width; embed.height=img.height; if (o2z && o2z.length>0){function l2z(i2z){return (i2z<020)?("0"+i2z.toString(020)):i2z.toString(020); } ; function I2z(o30,$1,$2,$3,$4){var i1g=parseInt($2); var O30=parseInt($3); var b=parseInt($4); return "#"+l2z(i1g)+l2z(O30)+l2z(b); }try {o2z=o2z.replace(i2j,I2z); }catch (t){}embed.setAttribute("bgcolor",o2z); }if (wmode && wmode.length>0)embed.setAttribute("wmode",wmode); for (var i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); var value=a.value; if (name=="dummytag" || name=="dummysrc" || name=="dummybgcolor" || name=="style" || name=="wmode" || name=="pseudomode" || name=="src")continue; if (name=="loop" && value=="true")continue; if (name=="play" && value=="true")continue; if (name=="hspace" && value=="0")continue; if (name=="vspace" && value=="0")continue; if (name=="scale" && value.length==0)continue; if (name=="align" && value.length==0)continue; embed.setAttribute(name,value); }if (img.style.width && img.style.width.length>0)embed.style.width=img.style.width; if (img.style.height && img.style.height.length>0)embed.style.height=img.style.height; img.parentNode.insertBefore(embed,img); img.parentNode.removeChild(img); }}if (this.predicatedTags)HTMLEditor.restoreOldTags(i2y,document,this ); HTMLEditor.l26(i2y,document); var lk=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)lk=lk.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,O2v); else lk=lk.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); delete i2y; if (this.predicatedTags)lk=lk.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); var O2x=I2w+HTMLEditor.l2r(lk); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var l2x=""; if (this.d!=null)l2x+=this.d; l2x+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">\n"; if (this.I1.getElementById("oboutEditorDefaultStyle")==null){l2x+="\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; l2x+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; }if (this._addCssFiles!=null){for (var O2a=0; O2a<this._addCssFiles.length; O2a++){var i2x= true; if (this.D!=null && this.D.length>0){var I2x=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[O2a]+"\"","ig");if (I2x.test(this.D))i2x= false; }if (i2x)l2x+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[O2a]+"\" media=\"all\" />\n"; }}if (this.D!=null)l2x+=this.D; l2x+="\x3c/head>\n"; if (this.I1.body.style.cssText.length>0){var o2y="<div"+(this.C!=null?this.C: "")+"></div>"; var O2y=document.createElement("DIV"); O2y.innerHTML=o2y; O2y.firstChild.style.cssText+=";"+this.I1.body.style.cssText; o2y=HTMLEditor.getHTML(O2y, false , true); o2y=o2y.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");l2x+="<body"+o2y+">\n"; }else {l2x+="<body"+(this.C!=null?this.C: "")+">\n"; }l2x+=O2x+"\n"; l2x+="\x3c/body>\n\x3c/html>"; O2x=l2x; }if (this.NoUnicode)O2x=O2x.replace(/([\x80-\uffff])/g,I2t);if (HTMLEditor.I12(O2x)=="<br />")O2x=""; O2x=O2x.replace(/^([\n|\r]+)/,""); return O2x; case "text":var I2p=(this.o15)? true : false; var le; if (!I2p){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.o15=Y; this.o15.value=this._textArea.value; }if (this.NoScript)this.o15.value=this.o15.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/ig,""); this.D=null; this.C=null; this.c=null; this.B=null; this.d=null; var X=this ; this.o15.value=this.o15.value.replace(/<html(?=\s|>)([^>]*?)>/gi,O2w); this.o15.value=this.o15.value.replace(/<head(?=\s|>)([^>]*?)>/gi,i2v); this.o15.value=this.o15.value.replace(/^([^\0]+?)<html(?=\s|>)(?:[^>]*?)>/gi,I2v); this.o15.value=this.o15.value.replace(/<\/html(?=\s|>)(?:[^>]*?)>[^\0]*$/gi,""); this.o15.value=this.o15.value.replace(/<head(?=\s|>)(?:[^>]*?)>([^\0]*?)<\/head(?=\s|>)(?:[^>]*?)>/gi,o2w); this.o15.value=this.o15.value.replace(/<body(?=\s|>)([^>]*?)>([^\0]*?)<\/body(?=\s|>)(?:[^>]*?)>/gi,i29); this.o15.value=this.o15.value.replace(/<\/?html(?=\s|>)(?:[^>]*?)>/gi,""); this.o15.value=this.o15.value.replace(/<\/?head(?=\s|>)(?:[^>]*?)>/gi,""); this.o15.value=this.o15.value.replace(/<\/?body(?=\s|>)(?:[^>]*?)>/gi,""); this.o15.value=this.o15.value.replace(/<object(?:[^>]*?)>(?:[^\0]*?)(<embed(?:[^>]*?)>)(?:[^\0]*?)<\/object(?:[^>]*?)>/gi,"$1"); if (HTMLEditor.is_ie){var l30=this.o15.value.replace(/([\n\r]+<)/g,"<"); l30=HTMLEditor.I12(l30.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); l30=l30.replace(/(&amp;)/g,"&amp;amp;"); l30=l30.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); l30=l30.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); l30=l30.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); if (/<embed/ig.test(l30)){l30=l30.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); l30=l30.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); }le=l30; }else {var src=document.createElement("DIV"); if (!this.NoScript)this.o15.value.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,l2u); src.innerHTML=HTMLEditor.I12(this.o15.value.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); var o1v=src.getElementsByTagName("EMBED"); var i30=[]; for (var i=0; i<o1v.length; i++)i30.push(o1v[i]); for (var oh=0; oh<i30.length; oh++){var embed=i30[oh]; var img=document.createElement("IMG"); var O2z=embed.attributes; img.src=this.P[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); var value=a.value; if (name=="src")name="dummysrc"; else if (name=="bgcolor")name="dummybgcolor"; else if (name=="wmode")name="pseudomode"; img.setAttribute(name,value); }img.style.cssText="border: 1px dotted #000000; background-image: url('"+(img.getAttribute("type").toLowerCase()=="application/x-mplayer2"?this.P[3]: this.P[2])+"'); background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;"; if (embed.style.width && embed.style.width.length>0)img.style.width=embed.style.width; if (embed.style.height && embed.style.height.length>0)img.style.height=embed.style.height; embed.parentNode.insertBefore(img,embed); embed.parentNode.removeChild(embed); }if (this.predicatedTags)HTMLEditor.I30(src,this, true); HTMLEditor.l26(src,document); var lk=HTMLEditor.I12(HTMLEditor.getHTML(src, false , true)); if (!this.NoScript)lk=lk.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,O2v); if (O2u.length>0){} delete src; le=HTMLEditor.l2r(lk); }if (!I2p){ this.o15=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }return le; break; default:alert("Mode <"+mode+"> not defined"); return false; }}catch (t){ this.on(); return ""; }} ; HTMLEditor.prototype.o31= function (html){switch (this.i1){case "html": this.I1.body.innerHTML=html; break; case "text": this.o15.value=html; break; default:alert("Mode <"+mode+"> not defined"); }return false; } ; HTMLEditor.O31= function (ll){var Or=" script style div span a del strong em u strike font b sub sup p iframe li ul ol placeholder textarea td tr "; return (Or.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.l31= function (ll){var Or=" hr br "; return (Or.indexOf(" "+ll.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.Oy= function (O1p,Ox){var I31; for (var o32=O1p.firstChild; o32; o32=I31){if (o32.nodeType==1 || o32.nodeType==013){if (o32.tagName.length>0){if (o32.tagName.indexOf("/")>=0 && o32.tagName.toLowerCase().substr(o32.tagName.indexOf("/")+1)=="embed"){var I31=o32.nextSibling; o32.parentNode.removeChild(o32); continue; }var closed=(!(o32.hasChildNodes() || HTMLEditor.O31(o32))); if ((closed || o32.tagName.toLowerCase()=="placeholder") && !HTMLEditor.l31(o32) && o32.tagName.toLowerCase()!="embed"){var il=o32.tagName.toLowerCase(); var I1u=o32.nextSibling; var lg=[]; while (I1u!=null){if (I1u.nodeType==o32.nodeType && I1u.tagName)if (I1u.tagName.indexOf("/")>=0)if (I1u.tagName.toLowerCase().substr(I1u.tagName.indexOf("/")+1)==il){I1u.parentNode.removeChild(I1u); il="teo"+HTMLEditor.om+":"+o32.tagName; var O32=Ox.createElement(il); var O2z=o32.attributes; for (var i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; O32.setAttribute(a.name,a.value); }O32.style.cssText=o32.style.cssText; if (o32.className.length>0)O32.className=o32.className; o32.parentNode.insertBefore(O32,o32); o32.parentNode.removeChild(o32); for (var i=0; i<lg.length; i++){O32.appendChild(lg[i]); }o32=O32; break; }lg.push(I1u); I1u=I1u.nextSibling; } delete lg; }}HTMLEditor.Oy(o32,Ox); }I31=o32.nextSibling; }};HTMLEditor.getHTML= function (o32,l32,i32){try {if (typeof i32=="undefined"){if (!l32 && o32.nodeType==1){return o32.innerHTML; }else if (l32 && o32.nodeType==1 && HTMLEditor.is_ie){return o32.outerHTML; }}}catch (t){}var html=new o2a( true); HTMLEditor.I32(html,o32,l32); return html.toString(); };HTMLEditor.I32= function (html,o32,l32,i32){switch (o32.nodeType){case 1:case 013:if (o32.tagName && o32.tagName.indexOf("/")>=0){if (HTMLEditor.is_ie){var il=o32.tagName.toLowerCase().substr(o32.tagName.indexOf("/")+1); var o33=o32.previousSibling; if (il=="embed")return; while (o33!=null){if (o33.nodeType==o32.nodeType && o33.tagName && o33.tagName.toLowerCase()==il){html.write("</teo"+HTMLEditor.om+":"+o32.tagName.toLowerCase().substr(o32.tagName.indexOf("/")+1)+">"); return; }o33=o33.previousSibling; }}return; }var closed; var O33; var i; if (l32 && o32.tagName.length>0){closed=(!(o32.hasChildNodes() || HTMLEditor.O31(o32))); O33= true; var l33=""; if (HTMLEditor.is_ie && o32.scopeName && typeof o32.scopeName!="undefined"){l33=(o32.scopeName.toUpperCase()=="HTML")?"": (o32.scopeName+":"); }if (HTMLEditor.is_ie && (closed || o32.tagName.toLowerCase()=="placeholder") && !HTMLEditor.l31(o32) && o32.tagName.toLowerCase()!="embed"){var il=o32.tagName.toLowerCase(); var I1u=o32.nextSibling; while (I1u!=null){if (I1u.nodeType==o32.nodeType && I1u.tagName)if (I1u.tagName.indexOf("/")>=0)if (I1u.tagName.toLowerCase().substr(I1u.tagName.indexOf("/")+1)==il){closed= false; O33= false; break; }I1u=I1u.nextSibling; }}if (!HTMLEditor.i33(o32)){html.write("\n"); }html.write("<"+((!closed && !O33)?"teo"+HTMLEditor.om+":":l33)+o32.tagName.toLowerCase()); if (HTMLEditor.is_ie && o32.name && o32.name.length>0){html.write(" name"+"=\""+o32.name.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.value && o32.value.length>0 && o32.tagName.toLowerCase()!="textarea"){html.write(" value"+"=\""+o32.value.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.className && o32.className.length>0){html.write(" class"+"=\""+o32.className.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.align && o32.align.length>0){html.write(" align"+"=\""+o32.align.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.color && o32.color.length>0){html.write(" color"+"=\""+o32.color.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.size && o32.size.length>0 && o32.size!="+0"){html.write(" size"+"=\""+o32.size.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.shape && o32.shape.length>0){html.write(" shape"+"=\""+o32.shape.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && o32.coords && o32.coords.length>0){html.write(" coords"+"=\""+o32.coords.replace(/"/g,"&quot;")+"\""); }var O2z=o32.attributes; for (i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); if (name.substr(0,4)=="_moz"){continue; }if (name=="teoalign"){continue; }var value; if (name!="style"){if (name=="width"){value=o32.width; if (HTMLEditor.is_ie && value==0){var I33=0; o32.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?width=)([\\d]+)","ig"), function (I29,o22){I33=o22; } ); if (value!=I33)value=I33; }}else if (name=="height"){value=o32.height; if (HTMLEditor.is_ie && value==0){var I33=0; o32.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?height=)([\\d]+)","ig"), function (I29,o22){I33=o22; } ); if (value!=I33)value=I33; }}else if (HTMLEditor.is_ie && name=="name" && o32.name && o32.name.length>0)continue; else if (HTMLEditor.is_ie && name=="value" && o32.value && o32.value.length>0)continue; else if (HTMLEditor.is_ie && name=="align" && o32.align && o32.align.length>0)continue; else if (HTMLEditor.is_ie && name=="class" && o32.className && o32.className.length>0)continue; else if (HTMLEditor.is_ie && name=="color" && o32.color && o32.color.length>0)continue; else if (HTMLEditor.is_ie && name=="size" && o32.size && o32.size.length>0)continue; else if (HTMLEditor.is_ie && name=="shape" && o32.shape && o32.shape.length>0)continue; else if (HTMLEditor.is_ie && name=="coords" && o32.coords && o32.coords.length>0)continue; else {if (o32.tagName.toLowerCase()=="embed" && name=="align" && HTMLEditor.is_ie){value=HTMLEditor.o34(a.value); }else {value=a.value; if (name=="src" || name=="href"){if (HTMLEditor.is_ie){var I33=""; o32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=\")([^\"]*?)\"","ig"), function (I29,o22){I33=o22; } ); if (I33=="")o32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=')([^']*?)'","ig"), function (I29,o22){I33=o22; } ); if (I33=="")o32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=)([^s>]*?)","ig"), function (I29,o22){I33=o22; } ); if (value!=I33 && I33!=""){value=I33; value=value.replace(/&amp;/g,"&"); }}value=value.replace(/(\(S\([A-Za-z0-9_]+\)\)\/)/,""); }value=value.replace(/"/g,"&quot;"); }}}else {continue; }var O34="\""; if ((""+value+"").indexOf("\"")>=0)O34="'"; if (name!=null)html.write(" "+name+"="+O34+value+O34); }if (o32.style.cssText.length>0){var name="style"; var i2j=/(rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\))/ig; var l34=/(url\((?:[^)]*)\))/ig; var i34=[]; function I34(o30,$1){i34.push($1); }o32.style.cssText.replace(l34,I34); var value=o32.style.cssText.toLowerCase(); var o35=0; function O35(){var lk=i34[o35]; o35++; return lk; }value=value.replace(l34,O35); function l2z(i2z){return (i2z<020)?("0"+i2z.toString(020)):i2z.toString(020); } ; function I2z(o30,$1,$2,$3,$4){var i1g=parseInt($2); var O30=parseInt($3); var b=parseInt($4); return "#"+l2z(i1g)+l2z(O30)+l2z(b); }try {value=value.replace(i2j,I2z); value=value.replace(/(font-weight\s*:\s*)(700)/ig,"$1bold"); }catch (t){}value=value.replace(/([\s]*-moz-[^;]*[;][\s]*)/ig,"").replace(/(-moz-.*)$/i,""); value=value.replace(/(background-position: 0% 0%[;]*[\s]*)/ig,""); if (value.length>0){var O34="\""; if ((""+value+"").indexOf("\"")>=0)O34="'"; html.write(" "+name+"="+O34+value+O34); }}html.write(closed?" />": ">"); if (o32.tagName.toUpperCase()=="BR")html.write("\n"); }if (o32.tagName && o32.tagName.toUpperCase()=="SCRIPT")html.write(o32.text); for (i=o32.firstChild; i; i=i.nextSibling){HTMLEditor.I32(html,i, true);}if (l32 && o32.tagName.length>0 && !closed && O33){html.write("</"+l33+o32.tagName.toLowerCase()+">"); }break; case 3:html.write(HTMLEditor.i31(""+o32.data+"")); break; case 8:if (o32.length>0){html.write("<!--"+o32.data+"-->"); }else {html.write("<!---->"); }break; }} ; HTMLEditor.prototype.focusEditor= function (){switch (this.i1){case "html":if (this._iframe && this._iframe.contentWindow && this._iframe.contentWindow.focus && (this.isActivated || this._autoFocus)){if (!this._autoFocus && !this._wasFocused){if (HTMLEditor.is_ie && (""+this.I1.body.contentEditable+"")!="true")this.I1.body.contentEditable= true; HTMLEditor.i18(this.panelDivId); if (this.ShowQuickFormatDivId!=null)HTMLEditor.i18(this.ShowQuickFormatDivId, true); } this._wasFocused= true; this.l35=0; try {if (!HTMLEditor.o11)this._iframe.contentWindow.focus(); if (HTMLEditor.o11 && this.f){ this._iframe.focus(); }}catch (t){} ; if (HTMLEditor.is_ie)this.updateToolbar(); }break; case "text":if (this._autoFocus)try { this.o15.focus(); }catch (t){} ; break; default:break; }return this.I1; } ; HTMLEditor.prototype.i35= function (){var area=this.I1.createElement("textarea"); area.width="0"; area.height="0"; this.I1.appendChild(area); var i1g=area.createTextRange(); i1g.execCommand("paste"); var I35=area.value; I35=I35.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>"); this.I1.removeChild(area); return I35; } ; HTMLEditor.prototype.o36= function (text,Im,O36){if (text!=""){text=text.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); text=text.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); text=text.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); }var iframe=this.I1.createElement("iframe"); iframe.width="0"; iframe.height="0"; if (HTMLEditor.is_ie)iframe.src="javascript:false;"; this.I1.appendChild(iframe); var Ox=iframe.contentWindow.document; var html=new o2a(); html.write("<html>"); html.write("<head>"); html.write("<style> body { "+this.I.O27+" } </style>"); html.write("</head>"); html.write("<body>"); html.write(text); html.write("</body>"); html.write("</html>"); Ox.write(html.toString()); Ox.close(); Ox.body.contentEditable= true; var i1g=Ox.body.createTextRange(); var l36= false; if (text==""){i1g.execCommand("paste"); var i2y=Ox.createElement("DIV"); for (var i=0; i<Ox.body.childNodes.length; i++){var i1u=Ox.body.childNodes.item(i); if (i1u.nodeType==8){var ih=""+i1u.data+""; if (ih.search(/StartFragment/i)>=0){if (i1u.nextSibling && i1u.nextSibling.nodeType==3){var ih=""+i1u.nextSibling.data+""; if (ih.length)if (ih.charCodeAt(0)==0240){ih=ih.substr(1); i1u.nextSibling.data=ih; l36= true; break; }}}}}if (typeof O36!="undefined" && O36)Ox.body.innerHTML=HTMLEditor.O2q(Ox.body.innerHTML); var ih=HTMLEditor.I12(HTMLEditor.getHTML(Ox.body, false , true)); ih=ih.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); Ox.body.innerHTML=ih; if (!Im){HTMLEditor.ly(this,Ox,!this.showAnchors); HTMLEditor.iy(this,Ox,!this.showPlaceHolders); var o1v=Ox.body.getElementsByTagName("EMBED"); var i36=[]; for (var i=0; i<o1v.length; i++)i36.push(o1v[i]); for (var O2c=0; O2c<i36.length; O2c++)i36[O2c].parentNode.removeChild(i36[O2c]); } delete i1g; delete i2y; if (Im && HTMLEditor.is_ie)i1g=Ox.body.createTextRange(); }if (Im && HTMLEditor.is_ie){if (text!=""){HTMLEditor.ly(this,Ox, true); HTMLEditor.iy(this,Ox, true); }i1g.select(); i1g.execCommand("copy"); }var le=HTMLEditor.I12(Ox.body.innerHTML); le=le.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); le=le.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); le=le.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); le=le.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); le=le.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); var o1v=Ox.body.getElementsByTagName("EMBED"); var i36=[]; for (var i=0; i<o1v.length; i++)i36.push(o1v[i]); for (var O2c=0; O2c<i36.length; O2c++)i36[O2c].parentNode.removeChild(i36[O2c]); iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var X=this ; X.I1.removeChild(iframe); delete iframe; return le; };HTMLEditor.I12= function (ih){return ih.replace(/[\0-\x1f]/g,""); };HTMLEditor.I36= function (X,i1b,Oq){ this.D=X.D; this.d=X.d; this.C=X.C; if (HTMLEditor.is_ie){ this.o37=HTMLEditor.O37(X.I1.body); this.l37=X.I1.body.innerHTML; this.i37=null; if (Oq.type.toLowerCase()=="control"){try {var ll=i1b.item(0); this.i37=[]; while (ll && (ll.nodeType==3 || !ll.tagName || ll.tagName.toUpperCase()!="BODY")){var I37=0; while (ll.previousSibling){I37++; ll=ll.previousSibling; } this.i37.push(I37); ll=ll.parentNode; }}catch (t){}}else { this.i2f=i1b.offsetLeft; this.I2f=i1b.offsetTop; }}else {if (HTMLEditor.o11)this.l37=HTMLEditor.I12(X.I1.body.innerHTML); else this.l37=X.I1.body.cloneNode( true); this.i37=[]; this.o38=0; try {var ll=i1b.startContainer; this.o38=i1b.startOffset; if (ll && ll.nodeType==1 && ll.tagName.toUpperCase()=="HTML"){ll=X.I1.body; setTimeout( function (){try {Oq=X.lq(); i1b=X.Iq(); X.i17(Oq); i1b.setStart(ll,0); i1b.setEnd(ll,0); X.I17(Oq,i1b); }catch (t){}} ,012); }while (ll && ll.nodeType && (ll.nodeType==3 || !ll.tagName || ll.tagName.toUpperCase()!="BODY")){var I37=0; while (ll.previousSibling){I37++; if (HTMLEditor.o11){if (ll.nodeType==3 && ll.previousSibling!=null && ll.previousSibling.nodeType==3)I37--; }ll=ll.previousSibling; } this.i37.push(I37); ll=ll.parentNode; }}catch (t){}}};HTMLEditor.O38=036; HTMLEditor.prototype.i10= function (){var Oq; var iq; var l38; try {try {Oq=this.lq(); iq=this.Iq(Oq); }catch (t){}l38=new HTMLEditor.I36(this,iq,Oq); }catch (t){return; }if (!this.K){ this.K=[]; this.O1e=0; }while (this.O1e<this.K.length)this.K.pop(); if (this.K.length==HTMLEditor.O38){ this.K.reverse(); this.K.pop(); this.K.reverse(); } this.K.push(l38); this.O1e=this.K.length; };HTMLEditor.prototype.i38= function (){if (this.O1e>=0 && this.O1e<this.K.length){var i16=this.K[this.O1e]; var Oq; var iq; this.D=i16.D; this.d=i16.d; this.C=i16.C; if (HTMLEditor.is_ie){function I38(I29,o22,O22,I2u,o39){return o22.replace(/\salign=[^\s>]*/ig,"")+((I2u=="\"X\"")?"": ("align="+I2u))+o39.replace(/\salign=[^\s>]*/ig,""); }var o1v=this.I1.body.getElementsByTagName("EMBED"); var i36=[]; for (var i=0; i<o1v.length; i++)i36.push(o1v[i]); for (var O2c=0; O2c<i36.length; O2c++)i36[O2c].parentNode.removeChild(i36[O2c]); var O39=i16.l37.replace(/&amp;/ig,"&"); O39=O39.replace(/(<embed(?:.*?))(teoalign=)("[^"]*")((?:.*?)>)/ig,I38); this.I1.body.innerHTML="!!!<span></span>"+HTMLEditor.I12(O39); if (this.I1.body.firstChild)this.I1.body.removeChild(this.I1.body.firstChild); if (this.I1.body.firstChild)this.I1.body.removeChild(this.I1.body.firstChild); var i11=HTMLEditor.I11(O39); HTMLEditor.l12(this.I1.body,i11); if (this.relativeImages){i11=HTMLEditor.O12(O39); HTMLEditor.i12(this.I1.body,i11); }HTMLEditor.l39(this.I1.body,i16.o37); HTMLEditor.ly(this,this.I1,!this.showAnchors); HTMLEditor.iy(this,this.I1,!this.showPlaceHolders); if (i16.i37!=null){var ll=this.I1.body; var i; try {for (i=i16.i37.length-1; i>=0; i--){ll=ll.childNodes.item(i16.i37[i]); }}catch (t){if (this.O1e>0){ this.O1e--; this.i38(); this.O1e++; }return; }try {var i1b=this.I1.body.createControlRange(); i1b.add(ll); i1b.select(); }catch (t){}}else {var X=this ; setTimeout( function (){try {Oq=X.lq(); iq=X.Iq(Oq); if (Oq.type.toLowerCase()!="control"){try {iq.moveToPoint(i16.i2f,i16.I2f); }catch (t){}}iq.select(); }catch (t){}} ,0); }}else {if (HTMLEditor.o11){ this.I1.body.innerHTML=HTMLEditor.I12(i16.l37); }else { this.I1.body.innerHTML=""; for (var i=0; i<i16.l37.childNodes.length; i++){ this.I1.body.appendChild(i16.l37.childNodes.item(i).cloneNode( true)); }}HTMLEditor.ly(this,this.I1,!this.showAnchors); HTMLEditor.iy(this,this.I1,!this.showPlaceHolders); try {Oq=this.lq(); iq=this.Iq(); this.i17(Oq); }catch (t){}var ih=""; var ll=this.I1.body; for (var i=i16.i37.length-1; i>=0; i--){ih+=" "+i16.i37[i]; ll=ll.childNodes.item(i16.i37[i]); }var i39=i16.o38; try {iq.setStart(ll,i39); iq.setEnd(ll,i39); }catch (t){HTMLEditor.O13(this.I1.body); return; }if (HTMLEditor.o11)this.f= true; try { this.I17(Oq,iq); }catch (t){}}try {HTMLEditor.O13(this.I1.body); }catch (t){}}};HTMLEditor.prototype.SaveContent= function (){ this.i10(); };HTMLEditor.prototype.RestoreContent= function (){ this.I1e( false); };HTMLEditor.prototype.I1e= function (I16,I39){if (HTMLEditor.is_ie){var o3a=this.I1.body.getElementsByTagName("EMBED"); var O3a= false; if (o3a.length>0){for (var i=0; i<o3a.length; i++){var value=""; var O2z=o3a[i].attributes; for (var oh=0; oh<O2z.length; ++oh){var a=O2z.item(oh); if (!a.specified)continue; var name=a.name.toLowerCase(); if (name=="type"){value=a.value; break; }}if (value.toLowerCase()=="application/x-mplayer2"){O3a= true; break; }}}if (O3a){var X=this ; X.I2e(null, function (ll){X.o2f(I16); if (typeof I39=="function")I39(); } ); }else this.o2f(I16); }else this.o2f(I16); };HTMLEditor.prototype.o2f= function (I16){if (this.K){if (this.O1e>0){if (this.O1e==this.K.length && I16){ this.i10(); } do {var O26=HTMLEditor.I12(this.I1.body.innerHTML); this.O1e--; this.i38(); }while (HTMLEditor.I12(this.I1.body.innerHTML)==O26 && this.O1e>0 && I16);var X=this ; setTimeout( function (){try {X.i1f(); X.updateToolbar(); }catch (t){}if (!I16)X.l14(); } ,5); }}};HTMLEditor.prototype.o1f= function (){if (this.K){if (this.O1e<this.K.length-1){ this.O1e++; var X=this ; var l3a; if (HTMLEditor.is_ie){l3a=X.I1.body.getElementsByTagName("EMBED").length; if (l3a>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); setTimeout( function (){X.A.removeChild(popup); } ,0); }} this.i38(); var X=this ; setTimeout( function (){X.i1f(); X.updateToolbar(); } ,5); }}};HTMLEditor.i3a= function (ll){if (ll.id && ll.id.length>0 && ll.id.indexOf(HTMLEditor.om)>=0)return true; return false;};HTMLEditor.O24= function (ll){var I3a=null; try {I3a=ll.parentNode; }catch (t){}if (I3a){var o3b=null; while (I3a && I3a.tagName && I3a.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(I3a.tagName) && (I3a.tagName.toUpperCase()!="A")){var O2z=HTMLEditor.O3b(I3a,["class","color","face","size"]); if (O2z.length>0)break; o3b=I3a; I3a=I3a.parentNode; }if (o3b){function I20(add,ll,o21,O21,Im){var par=o21.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 (Im)par.appendChild(ll); else while (ll){var i3b=O21?ll.previousSibling:ll.nextSibling; if (ll.nodeType==1 || (ll.nodeType==3 && HTMLEditor.I12(""+ll.data+"").length>0)){if (ll.nodeType==1){if (ll.tagName && HTMLEditor.O1j(ll.tagName) && ll.childNodes.length==0 && !HTMLEditor.i3a(ll))ll=null; }if (ll){if (par.childNodes.length==0 || !O21)par.appendChild(ll); else par.insertBefore(ll,par.firstChild); }}ll=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 (!Im && par.tagName && HTMLEditor.O1j(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.O1j(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 (o21==o3b)return par; else {if (!Im)return I20(par,O21?o21.previousSibling:o21.nextSibling,o21.parentNode,O21,Im); else return I20(null,par,o21.parentNode,O21,Im); }} ; I3a=ll.parentNode; if (ll.previousSibling==null && ll.nextSibling==null && I3a && I3a.tagName && I3a.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(I3a.tagName) && HTMLEditor.O3b(I3a,["class","color","face","size"]).length>0)ll=I3a; var o22=I20(null,ll.previousSibling,ll.parentNode, true , false); var O22=I20(null,ll.nextSibling,ll.parentNode, false , false); var par=o3b.parentNode; if (o22){if (o22.push && typeof o22.push=="function"){for (var l3b=0; l3b<o22.length; l3b++){par.insertBefore(o22[l3b],o3b); }}else par.insertBefore(o22,o3b); }if (ll.nodeType==1 && ll.tagName && (ll.tagName.toUpperCase()=="BR" || ll.tagName.toUpperCase()=="TABLE" || HTMLEditor.i3a(ll)))par.insertBefore(ll,o3b); else {var I2u=I20(null,ll,ll.parentNode, false , true); par.insertBefore(I2u,o3b); }if (O22){if (O22.push && typeof O22.push=="function"){for (var l3b=0; l3b<O22.length; l3b++){par.insertBefore(O22[l3b],o3b); }}else par.insertBefore(O22,o3b); }par.removeChild(o3b); }}};HTMLEditor.i3c= function (ll){if (ll.nodeType==3)return true; if (ll.nodeType!=1)return false; if (!ll.tagName || ll.tagName.length==0)return false; if (ll && ll.style && ll.style.display && ll.style.display.toLowerCase()=="inline")return true; var name=ll.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return false; }}switch (name){case "BR":case "TBODY":case "TR":case "TD":case "P":case "PRE":case "TABLE":case "OL":case "UL":case "LI":case "HR":case "DIV":case "BLOCKQUOTE":case "FORM":case "FIELDSET":case "LEGEND":return false; default:return true; }};HTMLEditor.I3c= function (l38,ll,left,o3d){while (ll){var i3b=left?ll.previousSibling:ll.nextSibling; if (!HTMLEditor.i3c(ll)){var par=ll.parentNode; if (!left)par.insertBefore(l38,ll); else {if (ll.nextSibling)par.insertBefore(l38,ll.nextSibling); else par.appendChild(l38); }return l38; }else if (typeof o3d=="function" && ll.nodeType==3){var oh; var ih=""+ll.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=ll.parentNode; var O3d; if ((oh>0 || (left && oh==0)) && (oh<ih.length-1 || (!left && oh==ih.length-1))){if (left)O3d=ll.splitText(oh+1); else O3d=ll.splitText(oh); par.insertBefore(l38,O3d); }else {if (!left)par.insertBefore(l38,ll); else {if (ll.nextSibling)par.insertBefore(l38,ll.nextSibling); else par.appendChild(l38); }}return l38; }}ll=left?ll.lastChild:ll.firstChild; if (ll){var I1v=HTMLEditor.I3c(l38,ll,left,o3d); if (I1v!=null)return I1v; }ll=i3b; }return null; };HTMLEditor.l3d= function (l38,ll,left,par,o3d){while ( true){var I1v=HTMLEditor.I3c(l38,ll,left,o3d); if (I1v!=null)return I1v; if (par.tagName && HTMLEditor.O1j(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.i3a(par)){ll=left?par.previousSibling:par.nextSibling; par=par.parentNode; }else {if (!left || par.firstChild==null)par.appendChild(l38); else par.insertBefore(l38,par.firstChild); return l38; }}};HTMLEditor.i3d= function (o17,ll){if (ll==o17)return o17; if (o17.nodeType==1){for (var i=0; i<o17.childNodes.length; i++){var i1u=o17.childNodes.item(i); if (ll==i1u)return i1u; if (i1u.nodeType==1){var o1d=HTMLEditor.I3d(i1u,ll); if (o1d>=0){if (i1u.tagName && HTMLEditor.O1j(i1u.tagName) && (i1u.tagName.toUpperCase()!="A") && !HTMLEditor.i3a(i1u))return HTMLEditor.i3d(i1u,ll); else return i1u; }}}}return null; };HTMLEditor.o3e= function (O3e,l3e){function i3e(I1u){while (I1u.nodeType==3 && I1u.nextSibling!=null && I1u.nextSibling.nodeType==3){I1u.data=""+I1u.data+""+I1u.nextSibling.data+""; I1u.parentNode.removeChild(I1u.nextSibling); }if (!HTMLEditor.i3c(I1u) || I1u.nodeType==3){HTMLEditor.O24(I1u); }else if (I1u.tagName && HTMLEditor.O1j(I1u.tagName) && (I1u.tagName.toUpperCase()!="A") && !HTMLEditor.i3a(I1u)){var I3e=I1u.firstChild; while (I3e!=null){var o3f=I3e.nextSibling; i3e(I3e); I3e=o3f; }}}var I1u=O3e; while (I1u!=null && I1u!=l3e){var nextSibling=I1u.nextSibling; i3e(I1u); I1u=nextSibling; }};HTMLEditor.prototype.O3f= function (i1a,I1a,l3f){var I1v=[]; var O3e=i1a; var l3e=(I1a.nextSibling!=null && I1a.nextSibling.tagName && I1a.nextSibling.tagName.toUpperCase()=="BR")?I1a.nextSibling:I1a; var i3f=null; if (i1a==null || I1a==null){if (i1a!=null){i3f=HTMLEditor.i24(i1a,i1a); }if (I1a!=null){i3f=HTMLEditor.i24(I1a,I1a); }}else i3f=HTMLEditor.i24(i1a,I1a); if (i3f!=null){HTMLEditor.l26(i3f.parent,this.I1,i3f.l25,i3f.I25+1, true); }var l24=null; if (O3e==null || l3e==null){if (O3e!=null){l24=HTMLEditor.i24(O3e,O3e); }if (l3e!=null){l24=HTMLEditor.i24(l3e,l3e); }}else l24=HTMLEditor.i24(O3e,l3e); if (l24!=null){O3e=HTMLEditor.i3d(l24.parent.childNodes.item(l24.l25),O3e); l3e=HTMLEditor.i3d(l24.parent.childNodes.item(l24.I25),l3e); HTMLEditor.O24(O3e); HTMLEditor.O24(l3e); while (O3e.parentNode!=l24.parent)O3e=O3e.parentNode; while (l3e.parentNode!=l24.parent)l3e=l3e.parentNode; HTMLEditor.o3e(O3e.nextSibling,l3e); function I3f(I1u){if (!HTMLEditor.i3c(I1u)){return true; }else if (I1u.tagName && HTMLEditor.O1j(I1u.tagName) && (I1u.tagName.toUpperCase()!="A") && !HTMLEditor.i3a(I1u)){var I3e=I1u.firstChild; while (I3e!=null){o3f=I3e.nextSibling; var lk=I3f(I3e); if (lk)return true; I3e=o3f; }}return false; }var o3g=0; var O3g=[]; var l3g=0; if (O3e.tagName && l3e.tagName){if ((O3e.tagName.toUpperCase()=="TD" || O3e.tagName.toUpperCase()=="TR") && (l3e.tagName.toUpperCase()=="TD" || l3e.tagName.toUpperCase()=="TR")){while (O3e.tagName.toUpperCase()!="TABLE")O3e=O3e.parentNode; l3e=O3e; }else if ((O3e.tagName.toUpperCase()=="DD" || O3e.tagName.toUpperCase()=="DT") && (l3e.tagName.toUpperCase()=="DD" || l3e.tagName.toUpperCase()=="DT")){while (O3e.tagName && O3e.tagName.toUpperCase()!="DL")O3e=O3e.parentNode; l3e=O3e; }else if ((O3e.tagName.toUpperCase()=="LI") && (l3e.tagName.toUpperCase()=="LI")){while (O3e.tagName && O3e.tagName.toUpperCase()!="UL" && O3e.tagName.toUpperCase()!="OL"){O3e=O3e.parentNode; }l3e=O3e; }}var i3g=i1a?i1a:I1a; var I3g=I1a?I1a:i1a; var I1u=O3e; while ( true){if (!HTMLEditor.i3a(I1u)){var o3h=I3f(I1u); if (!o3h){if (I1u.nodeType && I1u.nodeType==3){var ih=""+I1u.data+""; if (ih.length==0 ||/^[\n\r]+$/.test(ih)){var O3h=I1u.nextSibling; I1u.parentNode.removeChild(I1u); if (I1u==l3e)break; I1u=O3h; continue; }}O3g[l3g]=I1u; l3g++; }else {if (I1u.tagName && I1u.tagName.toUpperCase()=="BR"){O3g[l3g]=I1u; I1v[o3g]=O3g; o3g++; O3g=[]; l3g=0; }else if ((I1u==l3e || I1u==O3e) && !((I1u==l3e && I1u==O3e)?(HTMLEditor.l3h(I1u,i3g) && HTMLEditor.i3h(I1u,I3g)): (HTMLEditor.l3h(I1u,i3g) || HTMLEditor.i3h(I1u,I3g)))){if (I1u.tagName && (I1u.tagName.toUpperCase()=="TABLE" || I1u.tagName.toUpperCase()=="TBODY")){var table=I1u; 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 o23=table.rows.item(i); var oh=0; for ( ; oh<o23.cells.length; oh++){var cell=o23.cells.item(oh); if (HTMLEditor.I3d(cell,i3g)>=0){I3h=oh; o3i=i; }if (HTMLEditor.I3d(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){I1v[o3g]=O3g; o3g++; O3g=[]; l3g=0; }var i3i=(HTMLEditor.I3d(cell,i3g)>=0); var I3i=(HTMLEditor.I3d(cell,I3g)>=0); if (i3i || I3i){var o3j=i3g; var O3j=I3g; var O23=HTMLEditor.om+"_right_"+l3f; var l23=HTMLEditor.om+"_left_"+l3f; if (i3i){O3j=this.I1.createElement("span"); O3j.id=O23; cell.appendChild(O3j); }if (I3i){o3j=this.I1.createElement("span"); o3j.id=l23; if (cell.firstChild)cell.insertBefore(o3j,cell.firstChild); else cell.appendChild(o3j); }var l3j=this.O3f(o3j,O3j,l3f+1); for (var o3c=0; o3c<l3j.length; o3c++){I1v[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 ll=cell.childNodes.item(i2c); if (!HTMLEditor.i3a(ll)){O3g[l3g]=ll; l3g++; }}if (O3g.length>0){I1v[o3g]=O3g; o3g++; O3g=[]; l3g=0; }}}}else if (I1u.tagName && (I1u.tagName.toUpperCase()=="UL" || I1u.tagName.toUpperCase()=="OL" || I1u.tagName.toUpperCase()=="DL")){var l2g=I1u; var o3k=0; var O3k=l2g.childNodes.length-1; for (var i=0; i<l2g.childNodes.length; i++){var l3k=l2g.childNodes.item(i); if (l3k.nodeType==1){if (l3k==i3g || HTMLEditor.I3d(l3k,i3g)>=0){o3k=i; }if (l3k==I3g || HTMLEditor.I3d(l3k,I3g)>=0){O3k=i; }}}for (var i=o3k; i<=O3k; i++){var l3k=l2g.childNodes.item(i); if (l3g>0){I1v[o3g]=O3g; o3g++; O3g=[]; l3g=0; }var i3i=(HTMLEditor.I3d(l3k,i3g)>=0); var I3i=(HTMLEditor.I3d(l3k,I3g)>=0); if (i3i || I3i){var o3j=i3g; var O3j=I3g; var O23=HTMLEditor.om+"_right_"+l3f; var l23=HTMLEditor.om+"_left_"+l3f; if (i3i){O3j=this.I1.createElement("span"); O3j.id=O23; l3k.appendChild(O3j); }if (I3i){o3j=this.I1.createElement("span"); o3j.id=l23; if (l3k.firstChild)l3k.insertBefore(o3j,l3k.firstChild); else l3k.appendChild(o3j); }var l3j=this.O3f(o3j,O3j,l3f+1); for (var o3c=0; o3c<l3j.length; o3c++){I1v[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 ll=l3k.childNodes.item(i2c); if (!HTMLEditor.i3a(ll)){O3g[l3g]=ll; l3g++; }}if (O3g.length>0){I1v[o3g]=O3g; o3g++; O3g=[]; l3g=0; }}}}else {var i3i=(HTMLEditor.I3d(I1u,i3g)>=0); var I3i=(HTMLEditor.I3d(I1u,I3g)>=0); if (l3g>0){I1v[o3g]=O3g; o3g++; O3g=[]; l3g=0; }if (i3i || I3i){var o3j=i3g; var O3j=I3g; var O23=HTMLEditor.om+"_right_"+l3f; var l23=HTMLEditor.om+"_left_"+l3f; if (i3i){O3j=this.I1.createElement("span"); O3j.id=O23; I1u.appendChild(O3j); }if (I3i){o3j=this.I1.createElement("span"); o3j.id=l23; if (I1u.firstChild)I1u.insertBefore(o3j,I1u.firstChild); else I1u.appendChild(o3j); }var l3j=this.O3f(o3j,O3j,l3f+1); for (var o3c=0; o3c<l3j.length; o3c++){I1v[o3g]=l3j[o3c]; o3g++; }if (o3j!=i3g)o3j.parentNode.removeChild(o3j); if (O3j!=I3g)O3j.parentNode.removeChild(O3j); }else {var i3j=0; var I3j=I1u.childNodes.length; for (var i2c=i3j; i2c<I3j; i2c++){var ll=I1u.childNodes.item(i2c); if (!HTMLEditor.i3a(ll)){O3g[l3g]=ll; l3g++; }}if (O3g.length>0){I1v[o3g]=O3g; o3g++; O3g=[]; l3g=0; }}}}else {if (l3g>0){I1v[o3g]=O3g; o3g++; O3g=[]; l3g=0; }O3g[l3g]=I1u; I1v[o3g]=O3g; o3g++; O3g=[]; l3g=0; }}}if (I1u==l3e)break; I1u=I1u.nextSibling; }if (l3g>0){I1v[o3g]=O3g; }}return I1v; };HTMLEditor.prototype.getPseudoP= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return []; var I1v=[]; try {var Oq=this.lq(); var iq=this.Iq(Oq); var O23=HTMLEditor.om+"_right"; var l23=HTMLEditor.om+"_left"; var i23=null; var I23=null; if (HTMLEditor.is_ie){if (Oq.type.toLowerCase()!="control"){i23=iq.duplicate(); I23=iq.duplicate(); i23.setEndPoint("EndToStart",iq); I23.setEndPoint("StartToEnd",iq); }}else {i23=iq.cloneRange(); I23=iq.cloneRange(); i23.setEnd(i23.startContainer,i23.startOffset); I23.setStart(I23.endContainer,I23.endOffset); }var i1a=null; var I1a=null; if (HTMLEditor.is_ie && Oq.type.toLowerCase()=="control"){var O1c=iq.item(0); var i3k; i3k=this.I1.createElement("SPAN"); i3k.id=l23; O1c.parentNode.insertBefore(i3k,O1c); i3k=this.I1.createElement("SPAN"); i3k.id=O23; if (O1c.nextSibling==null)O1c.parentNode.appendChild(i3k); else O1c.parentNode.insertBefore(i3k,O1c.nextSibling); }else {if (!this.l11("<span id='"+O23+"'/>",I23))return []; if (!this.l11("<span id='"+l23+"'/>",i23)){var o24=this.I1.getElementById(O23); if (o24!=null){lk=o24.parentNode; lk.removeChild(o24); }return []; }}i1a=this.I1.getElementById(l23); I1a=this.I1.getElementById(O23); if (i1a!=null && I1a!=null){if (I1a.nextSibling && I1a.nextSibling==i1a){I1a.parentNode.insertBefore(i1a,I1a); }while (i1a.nextSibling==null){if (i1a.parentNode.nextSibling)i1a.parentNode.parentNode.insertBefore(i1a,i1a.parentNode.nextSibling); else i1a.parentNode.parentNode.appendChild(i1a); }}if (i1a!=null && I1a!=null){while (I1a.previousSibling==null)I1a.parentNode.parentNode.insertBefore(I1a,I1a.parentNode); if (I1a.previousSibling.nodeType==1 && I1a.previousSibling.tagName.toUpperCase()!="BR" && I1a.previousSibling.tagName.toUpperCase()!="IMG"){var i25=HTMLEditor.I3k(I1a.previousSibling); if (i25.nodeType==1 && HTMLEditor.canHaveChildren(i25))i25.appendChild(I1a); else i25.parentNode.appendChild(I1a); }if (I1a.previousSibling && I1a.previousSibling.nodeType==1 && I1a.previousSibling.tagName.toUpperCase()=="BR")I1a.parentNode.insertBefore(I1a,I1a.previousSibling); }if (i1a==null){var span=this.I1.createElement("SPAN"); span.id=l23; I1a.parentNode.insertBefore(span,I1a); i1a=span; }if (I1a==null){var span=this.I1.createElement("SPAN"); span.id=O23; if (i1a.nextSibling)i1a.parentNode.insertBefore(span,i1a.nextSibling); else i1a.parentNode.appendChild(span); I1a=span; }if (i1a!=null && I1a!=null){if (i1a.parentNode==I1a){I1a.parentNode.insertBefore(i1a,I1a); }else if (I1a.parentNode==i1a){if (i1a.nextSibling!=null)i1a.parentNode.insertBefore(I1a,i1a.nextSibling); else i1a.parentNode.appendChild(I1a); }}while (i1a.nextSibling!=null && i1a.nextSibling.nodeType==3 && (""+i1a.nextSibling.data+"").length==0)i1a.parentNode.removeChild(i1a.nextSibling); if (this.o3l==null && i1a!=null && I1a!=null && i1a.nextSibling==I1a){var par=I1a.parentNode; this.o3l=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(par.tagName)){if (par.tagName.toUpperCase()!="A"){var lk=par.cloneNode( false); if (this.o3l==null){ this.o3l=lk; }else {lk.appendChild(this.o3l); this.o3l=lk; }}par=par.parentNode; }if (this.o3l){var O3l=this.I1.createElement("span"); O3l.appendChild(this.o3l); this.o3l=O3l.innerHTML; }}var l3l=i1a; while (l3l && l3l.tagName && HTMLEditor.O1j(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(i1a,l3l.firstChild); else l3l.appendChild(i1a); }else HTMLEditor.l3d(i1a,i1a.previousSibling, true ,i1a.parentNode); l3l=I1a; while (l3l && l3l.tagName && HTMLEditor.O1j(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(I1a); }else HTMLEditor.l3d(I1a,I1a.nextSibling, false ,I1a.parentNode); I1v=this.O3f(i1a,I1a,0); if (I1v.length==0 && i1a.previousSibling==null && I1a.nextSibling==null && i1a.nextSibling==I1a && (i1a.parentNode.tagName.toUpperCase()=="P" || i1a.parentNode.tagName.toUpperCase()=="DIV" || i1a.parentNode.tagName.toUpperCase()=="LI" || (i1a.parentNode.tagName.length==2 && i1a.parentNode.tagName.toUpperCase().substr(0,1)=="H" && parseInt(i1a.parentNode.tagName.substr(1,1))>0)))I1v=[[i1a.parentNode]]; if (HTMLEditor.is_ie){Oq.empty(); Oq=this.lq(); var i3l=this.Iq(Oq); var I3l=this.Iq(Oq); try {if (i1a!=null)i3l.moveToElementText(i1a); if (I1a!=null)I3l.moveToElementText(I1a); if (i1a!=null && I1a!=null){i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }else if (i1a!=null)i3l.select(); else if (I1a!=null)I3l.select(); }catch (t){}}if (i1a!=null)i1a.parentNode.removeChild(i1a); if (I1a!=null)I1a.parentNode.removeChild(I1a); }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 l2o=new RegExp(HTMLEditor.om,"ig"); if (l2o.test(span.id))del.push(span); }}for (var i=0; i<del.length; i++)del[i].parentNode.removeChild(del[i]); }return I1v; } ; HTMLEditor.prototype.O3m= function (O1p,l3m){var X=this ; if (O1p.firstChild){while (O1p.firstChild && O1p.firstChild.nodeType==3 && (""+O1p.firstChild.data+"")=="")O1p.removeChild(O1p.firstChild); var i3m=[]; while (O1p.firstChild){if (O1p.firstChild!=l3m[0] && O1p.firstChild!=l3m[1])i3m.push(O1p.firstChild); O1p.parentNode.insertBefore(O1p.firstChild,O1p); }if (i3m.length==0){var br=X.I1.createElement("BR"); O1p.parentNode.insertBefore(br,O1p); }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 (O1p.nextSibling && O1p.nextSibling.nodeType==3 && (""+O1p.nextSibling.data+"")=="")O1p.parentNode.removeChild(O1p.nextSibling); var previousSibling=(O1p.previousSibling && l3m[1]==O1p.previousSibling)?l3m[1].previousSibling:O1p.previousSibling; if (previousSibling && HTMLEditor.i3c(previousSibling))if (previousSibling.nodeType==1 && previousSibling.childNodes.length>0)previousSibling=HTMLEditor.I3k(previousSibling); if (HTMLEditor.i3c(previousSibling) && O1p.nextSibling!=null){var br=X.I1.createElement("BR"); O1p.parentNode.insertBefore(br,O1p); }}else {var br=X.I1.createElement("BR"); O1p.parentNode.insertBefore(br,O1p); }O1p.parentNode.removeChild(O1p); };HTMLEditor.prototype.I3m= function (O1p,l3m,o3n){var X=this ; O1p.style.textAlign=""; var O3n=0; var O2z=O1p.attributes; for (var i2c=0; i2c<O2z.length; ++i2c){var a=O2z.item(i2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; O3n++; }var l3n=O1p.style.cssText; var margin=0; var i3n; if (!(typeof o3n!="undefined" && o3n))if (O1p.tagName.toUpperCase()!="LI")try {i3n=parseInt(HTMLEditor.Iy(O1p,"margin-top")); if (isNaN(i3n))i3n=O1p.tagName.toUpperCase()=="P"?1: 0; margin+=i3n; i3n=parseInt(HTMLEditor.Iy(O1p,"margin-bottom")); if (isNaN(i3n))i3n=O1p.tagName.toUpperCase()=="P"?1: 0; margin+=i3n; i3n=parseInt(HTMLEditor.Iy(O1p,"margin-right")); if (isNaN(i3n))i3n=O1p.tagName.toUpperCase()=="P"?1: 0; margin+=i3n; i3n=parseInt(HTMLEditor.Iy(O1p,"margin-left")); if (isNaN(i3n))i3n=O1p.tagName.toUpperCase()=="P"?1: 0; margin+=i3n; }catch (t){margin=1; }O1p.style.margin=""; if ((O3n==0 && O1p.style.cssText.length==0 && margin==0) || (typeof o3n!="undefined" && o3n && O1p.tagName.toUpperCase()!="LI")){X.O3m(O1p,l3m); return true; }else {O1p.style.cssText=l3n; return false; }};HTMLEditor.I3n= function (ll){var name=ll.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return true; }}return false; };HTMLEditor.prototype.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 l2g=O3p.parentNode; var I3q=[]; for (var o3r=0; o3r<l2g.childNodes.length; o3r++)if (l2g.childNodes.item(o3r).nodeType==1)I3q.push(l2g.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<l2g.childNodes.length; oh++)if (l2g.childNodes.item(oh).nodeType==1){l2g.childNodes.item(oh).style.textAlign=""; if (o3n)l2g.childNodes.item(oh).style.margin=(l2g.childNodes.item(oh).tagName.toUpperCase()=="P")?"0px": ""; }l2g.style.textAlign=align; }}if ((O3p.tagName.toUpperCase()=="DIV" || O3p.tagName.toUpperCase()=="P" || HTMLEditor.I3n(O3p)) && i3p && I3p.toUpperCase()!=O3p.tagName.toUpperCase()){var l3r=X.I1.createElement(I3p); var O2z=O3p.attributes; for (var i2c=0; i2c<O2z.length; ++i2c){var a=O2z.item(i2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; 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 O1p=paragraph[oh]; if (O1p.nodeType==1 && O1p.tagName && (O1p.tagName.toUpperCase()=="UL" || O1p.tagName.toUpperCase()=="OL" || O1p.tagName.toUpperCase()=="DL" || O1p.tagName.toUpperCase()=="DIV" || HTMLEditor.I3n(O1p) || O1p.tagName.toUpperCase()=="P" || O1p.tagName.toUpperCase()=="LI" || O1p.tagName.toUpperCase()=="TABLE")){l3q(div); div=null; if (textAlign!="remain")if (O1p.tagName.toUpperCase()!="TABLE" && !o3n)O1p.style.textAlign=textAlign; if (o3n)O1p.style.margin=(O1p.tagName.toUpperCase()=="P")?"0px": ""; if ((O1p.tagName.toUpperCase()=="UL" || O1p.tagName.toUpperCase()=="OL" || O1p.tagName.toUpperCase()=="DL")){for (var O2c=0; O2c<O1p.childNodes.length; O2c++){var li=O1p.childNodes.item(O2c); 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 i1u=li.childNodes.item(i3r); if (i1u.nodeType==1 && o3n)i1u.style.margin=(i1u.tagName.toUpperCase()=="P")?"0px": ""; if (i1u.nodeType==1 && i1u.tagName && (i1u.tagName.toUpperCase()=="DIV" || i1u.tagName.toUpperCase()=="P" || HTMLEditor.I3n(i1u))){if (X.I3m(i1u,l3m,o3n))o3q= true; }}}}if (textAlign=="left" && o3n)O1p.style.textAlign=""; continue; }else if (O1p.tagName.toUpperCase()=="LI"){if (textAlign!="remain"){if (!(textAlign=="left" && o3n) || O1p.parentNode.style.textAlign.length>0)O1p.style.textAlign=textAlign; else O1p.style.textAlign=""; }if (o3n)O1p.style.margin=(O1p.tagName.toUpperCase()=="P")?"0px": ""; var l2g=O1p.parentNode; var I3q=[]; for (var o3r=0; o3r<l2g.childNodes.length; o3r++)if (l2g.childNodes.item(o3r).nodeType==1)I3q.push(l2g.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<l2g.childNodes.length; oh++)if (l2g.childNodes.item(oh).nodeType==1){l2g.childNodes.item(oh).style.textAlign=""; if (o3n)l2g.childNodes.item(oh).style.margin=(l2g.childNodes.item(oh).tagName.toUpperCase()=="P")?"0px": ""; }l2g.style.textAlign=align; }continue; }else if (O1p.tagName.toUpperCase()=="TABLE"){if (textAlign!="remain"){if (!(textAlign=="left" && o3n) && textAlign!="justify")O1p.align=textAlign; else {O1p.align=""; O1p.removeAttribute("align"); }}}if ((O1p.tagName.toUpperCase()=="DIV" || O1p.tagName.toUpperCase()=="P" || HTMLEditor.I3n(O1p)) && textAlign=="left" && o3n){if (X.I3m(O1p,l3m,o3n))o3q= true; }if ((O1p.tagName.toUpperCase()=="DIV" || O1p.tagName.toUpperCase()=="P" || HTMLEditor.I3n(O1p)) && i3p && I3p.toUpperCase()!=O1p.tagName.toUpperCase()){var l3r=X.I1.createElement(I3p); var O2z=O1p.attributes; for (var i2c=0; i2c<O2z.length; ++i2c){var a=O2z.item(i2c); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; l3r.setAttribute(a.name,a.value); }l3r.style.cssText=O1p.style.cssText; while (O1p.firstChild)l3r.appendChild(O1p.firstChild); O1p.parentNode.insertBefore(l3r,O1p); O1p.parentNode.removeChild(O1p); }}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; O1p.parentNode.insertBefore(div,O1p); 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 (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==I3r-1 && oh==o3s){if (HTMLEditor.is_ie){div.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); O1p.parentNode.removeChild(O1p); }else div.appendChild(O1p); }else if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==I3r-1 && oh>o3s && (!i3p || (O1p.nextSibling!=null && O1p.nextSibling==l3m[1])))O1p.parentNode.removeChild(O1p); else div.appendChild(O1p); if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==paragraph.length-1 && !i3p){l3q(div); div=null; }if (O1p==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.i1m(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.l11(ih); var i1a=this.I1.getElementById(HTMLEditor.om+"_ll"); var I1a=this.I1.getElementById(HTMLEditor.om+"_rr"); var I18=this.o3l; this.o3l=null; this.i1m([i1a,I1a], false); this.o3l=I18; 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 O1p=I3s[i]; if (O1p.nodeType==1 && O1p.tagName && O1p.tagName.toUpperCase()=="LI"){var I1n= false; i3s.parentNode.insertBefore(O1p,i3s); if (O1p.style.textAlign=="")O1p.style.textAlign=i3s.style.textAlign; if (i3s.childNodes.length==0 && i==I3s.length-1){i3s.parentNode.removeChild(i3s); i3s=null; }if (O1p.style.textAlign=="" || (O1p.style.textAlign.toLowerCase()=="left" && !X.rtlState()) || (O1p.style.textAlign.toLowerCase()=="right" && X.rtlState())){I1n=X.I3m(O1p,l3m); if (I1n)o3q= true; }if (!I1n){var i3t=X.I1.createElement(X.dfltBlockElement); var O2z=O1p.attributes; for (var I3t=0; I3t<O2z.length; ++I3t){var a=O2z.item(I3t); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; i3t.setAttribute(a.name,a.value); }i3t.style.cssText=O1p.style.cssText; if (i3t.tagName.toUpperCase()=="P")i3t.style.margin="0px"; while (O1p.firstChild)i3t.appendChild(O1p.firstChild); O1p.parentNode.insertBefore(i3t,O1p); O1p.parentNode.removeChild(O1p); }}else i3s.parentNode.insertBefore(O1p,i3s); }}else {var l3t=X.I1.createElement(o3t); var O2z=i3s.attributes; for (var I3t=0; I3t<O2z.length; ++I3t){var a=O2z.item(I3t); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; l3t.setAttribute(a.name,a.value); }l3t.style.cssText=i3s.style.cssText; i3s.parentNode.insertBefore(l3t,i3s); for (var i=0; i<I3s.length; i++){var O1p=I3s[i]; l3t.appendChild(O1p); }}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 l2g=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 O1p=l3p[0][0]; i3s=O1p; I3s=[]; for (var i=0; i<O1p.childNodes.length; i++){var ll=O1p.childNodes.item(i); I3s.push(ll); }O3t(); }else for (var i=0; i<l3p.length; i++){var paragraph=l3p[i]; for (var oh=0; oh<paragraph.length; oh++){var O1p=paragraph[oh]; if (l2g==null){l2g=X.I1.createElement(o3t); O1p.parentNode.insertBefore(l2g,O1p); }if (!HTMLEditor.i3c(O1p) && !(O1p.tagName && O1p.tagName.toUpperCase()=="BR")){if (li && li.firstChild)O3u(); if (li==null){li=X.I1.createElement("LI"); l2g.appendChild(li); }li.appendChild(O1p); O3u(); }else {if (li==null){li=X.I1.createElement("LI"); l2g.appendChild(li); }var I3r=(paragraph[paragraph.length-1]==l3m[1])?paragraph.length-1:paragraph.length; var o3s=(paragraph[0]==l3m[0])?1: 0; if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==I3r-1 && oh==o3s){if (HTMLEditor.is_ie){li.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); O1p.parentNode.removeChild(O1p); }else li.appendChild(O1p); }else if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==I3r-1 && oh>o3s)O1p.parentNode.removeChild(O1p); else li.appendChild(O1p); if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==paragraph.length-1){O3u(); li=null; }if (O1p==l3m[1] && oh==paragraph.length-1){O3u(); li=null; }}}if (li && li.firstChild)O3u(); }if (l2g!=null){var I3q=[]; for (var oh=0; oh<l2g.childNodes.length; oh++)I3q.push(l2g.childNodes.item(oh).style.textAlign); var O3r=1; for ( ; O3r<I3q.length; O3r++)if (I3q[O3r-1]!=I3q[O3r])break; if (O3r==I3q.length){var align=((I3q[0]=="left" && !X.rtlState()) || (I3q[0]=="right" && X.rtlState()))?"":I3q[0]; for (var oh=0; oh<l2g.childNodes.length; oh++)l2g.childNodes.item(oh).style.textAlign=""; l2g.style.textAlign=align; }}if (l2g!=null)if (l2g.parentNode.tagName.toUpperCase()=="P" && l2g.parentNode.childNodes.length==1){var l3u=l2g.parentNode; var i3u=l3u.cloneNode( false); l3u.parentNode.insertBefore(l2g,l3u); l3u.parentNode.removeChild(l3u); if (l2g.childNodes.length==1){var item=l2g.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.i1m(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(ll){if (ll.nodeType==1){var l3v=(!X.rtlState())?ll.style.marginLeft:ll.style.marginRight; if (l3v.length>0)return parseInt(l3v); }return 0; }function i3v(ll,value){if (ll.nodeType==1){if (ll.tagName.toUpperCase()=="P" && value=="")value="0px"; if (!X.rtlState())ll.style.marginLeft=value; else ll.style.marginRight=value; }}function I3v(ll){if (o3v)i3v(ll,(O3v(ll)+050)+"px"); else {if (ll.tagName.toUpperCase()=="P"){if (O3v(ll)>=050)i3v(ll,(O3v(ll)-050)+"px"); else i3v(ll,"0px"); }else {if (O3v(ll)>050)i3v(ll,(O3v(ll)-050)+"px"); else i3v(ll,""); }}}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 l2g=O3p.parentNode; var margins=[]; for (var o3r=0; o3r<l2g.childNodes.length; o3r++)margins.push(O3v(l2g.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<l2g.childNodes.length; oh++)i3v(l2g.childNodes.item(oh),""); i3v(l2g,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 O1p=paragraph[oh]; if (O1p.nodeType==1 && O1p.tagName && (O1p.tagName.toUpperCase()=="UL" || O1p.tagName.toUpperCase()=="OL" || O1p.tagName.toUpperCase()=="DL" || O1p.tagName.toUpperCase()=="DIV" || HTMLEditor.I3n(O1p) || O1p.tagName.toUpperCase()=="P" || O1p.tagName.toUpperCase()=="LI")){l3q(div); div=null; I3v(O1p);if ((O1p.tagName.toUpperCase()=="UL" || O1p.tagName.toUpperCase()=="OL" || O1p.tagName.toUpperCase()=="DL")){for (var O2c=0; O2c<O1p.childNodes.length; O2c++){var li=O1p.childNodes.item(O2c); if (li.nodeType==1){i3v(li,""); for (var i3r=0; i3r<li.childNodes.length; i3r++){var i1u=li.childNodes.item(i3r); var textAlign=(i1u.nodeType==1)?O1p.style.textAlign: ""; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if (i1u.nodeType==1){i3v(i1u,""); if (textAlign=="" && i1u.tagName && (i1u.tagName.toUpperCase()=="DIV" || i1u.tagName.toUpperCase()=="P")){if (X.I3m(i1u,l3m))o3q= true; }}}}}continue; }else if (O1p.tagName.toUpperCase()=="LI"){var l2g=O1p.parentNode; var margins=[]; for (var o3r=0; o3r<l2g.childNodes.length; o3r++)margins.push(O3v(l2g.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<l2g.childNodes.length; oh++)i3v(l2g.childNodes.item(oh),""); i3v(l2g,margin); }continue; }var textAlign=O1p.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if ((O1p.tagName.toUpperCase()=="DIV" || O1p.tagName.toUpperCase()=="P" || HTMLEditor.I3n(O1p)) && textAlign==""){if (X.I3m(O1p,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); O1p.parentNode.insertBefore(div,O1p); }var I3r=(paragraph[paragraph.length-1]==l3m[1])?paragraph.length-1:paragraph.length; var o3s=(paragraph[0]==l3m[0])?1: 0; if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==I3r-1 && oh==o3s){if (HTMLEditor.is_ie){div.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); O1p.parentNode.removeChild(O1p); }else div.appendChild(O1p); }else if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==I3r-1 && oh>o3s)O1p.parentNode.removeChild(O1p); else div.appendChild(O1p); if (O1p.tagName && O1p.tagName.toUpperCase()=="BR" && oh==paragraph.length-1){l3q(div); div=null; }if (O1p==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.i1m(l3m,o3q); };HTMLEditor.prototype.o3w= function (l22,par){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; if (this.isControl())return; var Oq=this.lq(); var iq=this.Iq(Oq); var O3w=HTMLEditor.is_ie?[iq.boundingLeft,iq.boundingTop]: [iq.startContainer,iq.startOffset]; var l1b=(HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); var l3w= {name: "none",value: "none" } ; switch (l22.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 (l1b){var i1b=this.I1b(); this.I3w(l3w,i1b, true); }else if (!HTMLEditor.is_Safari){if (this.isControl())return; var i1b=this.o3x(); if (i1b.length>0){ this.I3w(l3w,i1b, false); if (HTMLEditor.is_ie && this.O3x!=null){Oq=this.lq(); iq=this.Iq(Oq); iq.moveToBookmark(this.O3x); iq.select(); this.O3x=null; }else if (this.O3x!=null){if (this.O3x[0].nodeType==3){Oq=this.lq(); iq=this.I1.createRange(); iq.setStart(this.O3x[0],this.O3x[1]); iq.setEnd(this.O3x[0],this.O3x[1]); this.i17(Oq); this.I17(Oq,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 (Im){var I1v=[]; var o1b; var l1b; var Oq=this.lq(); var iq=this.Iq(Oq); var I3x; var i3l; var O23=HTMLEditor.om+"_right_add"; var l23=HTMLEditor.om+"_left_add"; var o3y=HTMLEditor.om+"_middle_add"; if (HTMLEditor.is_ie && typeof Im=="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 Im!="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 Im=="undefined")O3y.parentNode.removeChild(O3y); return this.I1b(); }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.l11("<span id='"+l23+"'></span><span id='"+o3y+"'></span><span id='"+O23+"'></span>"))return []; var i1a=this.I1.getElementById(l23); var I1a=this.I1.getElementById(O23); var o3z=this.I1.getElementById(o3y); HTMLEditor.l3d(i1a,i1a.previousSibling, true ,i1a.parentNode,o3d); try { this.l3x(i1a,I1a); }catch (w){}I3x=this.lq(); i3l=this.Iq(I3x); o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; l1b=(HTMLEditor.is_ie && i3l.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (!l1b || this.I1b().length==0){var O3z=this.I1.createTextNode(""); i1a.parentNode.insertBefore(O3z,i1a); i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); 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.i17(Oq); this.I17(Oq,iq); return []; }I1a.parentNode.insertBefore(i1a,o3z); HTMLEditor.l3d(I1a,I1a.nextSibling, false ,I1a.parentNode,o3d); this.l3x(i1a,I1a); I3x=this.lq(); i3l=this.Iq(I3x); o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; l1b=(HTMLEditor.is_ie && i3l.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (!l1b || this.I1b().length==0){var O3z=this.I1.createTextNode(""); i1a.parentNode.insertBefore(O3z,i1a); i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); 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.i17(Oq); this.I17(Oq,iq); return []; }HTMLEditor.l3d(i1a,i1a.previousSibling, true ,i1a.parentNode,o3d); this.l3x(i1a,I1a); I3x=this.lq(); i3l=this.Iq(I3x); o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; l1b=(HTMLEditor.is_ie && i3l.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (HTMLEditor.is_ie){if (typeof Im!="undefined")this.O3x=o3z; else o3z.parentNode.removeChild(o3z); }else this.O3x=[o3z,0]; if (l1b){I1v=this.I1b(); }i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); return I1v; };HTMLEditor.prototype.i3x= function (l3w){var name=l3w.name.replace(/-(\w)/g, function (l3z,o22){return o22.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,o22){return o22.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 (i1a,I1a){var Oq=this.lq(); var O3z=null; var l40=null; if (HTMLEditor.is_ie){Oq.empty(); Oq=this.lq(); var i3l=this.Iq(Oq); var I3l=this.Iq(Oq); try {if (i1a!=null)i3l.moveToElementText(i1a); if (I1a!=null)I3l.moveToElementText(I1a); if (i1a!=null && I1a!=null){i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }else if (i1a!=null)i3l.select(); else if (I1a!=null)I3l.select(); }catch (t){}}else {try {O3z=this.I1.createTextNode(""); l40=this.I1.createTextNode(""); i1a.parentNode.insertBefore(O3z,i1a); I1a.parentNode.insertBefore(l40,I1a); var iq=this.I1.createRange(); iq.setStart(O3z,0); iq.setEnd(l40,0); this.i17(Oq); this.I17(Oq,iq); }catch (t){}}};HTMLEditor.prototype.I3w= function (l3w,i1b,i40){var name=l3w.name.replace(/-(\w)/g, function (l3z,o22){return o22.toUpperCase(); } ); var value=l3w.value; var i3w=l3w.i3w; var I40= false; var o41= false; this.i10(); var O23=HTMLEditor.om+"_right"; var l23=HTMLEditor.om+"_left"; var i1a=this.I1.createElement("SPAN"); i1a.id=l23; var I1a=this.I1.createElement("SPAN"); I1a.id=O23; i1b[0].parentNode.insertBefore(i1a,i1b[0]); if (i1b[i1b.length-1].nextSibling!=null)i1b[i1b.length-1].parentNode.insertBefore(I1a,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(I1a); HTMLEditor.O24(i1a); HTMLEditor.O24(I1a); var O41=[]; for (var i=0; i<i1b.length; i++){var l41=i1b[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<i1b.length; i++){var l41=i1b[i]; var par=l41.parentNode; var O42= false; while (par && par.tagName && par.childNodes.length==1 && HTMLEditor.O1j(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 I18=I42.replace(value,""); if (name=="fontWeight" && I42.toString()=="700")I18=""; if (I18==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]=I18; 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.i24(i1a,I1a); var l43=O43.parent.childNodes.item(O43.l25).previousSibling; var i43=O43.parent.childNodes.item(O43.I25).nextSibling; i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); var l25=0; var I25=O43.parent.childNodes.length; if (l43!=null){l25=HTMLEditor.O17(l43); }if (i43!=null){I25=HTMLEditor.O17(i43)+1; if (I25<O43.parent.childNodes.length){if (i43.nodeType==3)I25++; else if (i43.nodeType==1){var il=i43.tagName.toUpperCase(); if (il!="TR" && il!="TD" && il!="LI")I25++; }}}HTMLEditor.l26(O43.parent,this.I1,l25,I25); var X=this ; if (i40)X.l1j(i1b); 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 i1a=this.I1.createElement("SPAN"); var I1a=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(i1a); o44.appendChild(I1a); }else {var O44=HTMLEditor.l44(I43); O44.parentNode.insertBefore(i1a,O44); if (O44==I43){var I18=[]; I18.push(i1a); for (var i=0; i<i3o[0].length; i++)I18.push(i3o[0][i]); i3o[0]=I18; }var i44=HTMLEditor.I3k(o44); if (i44.nextSibling)i44.parentNode.insertBefore(I1a,i44.nextSibling); else i44.parentNode.appendChild(I1a); if (i44==o44){i3o[i3o.length-1].push(I1a);}}return [i1a,I1a]; };HTMLEditor.prototype.i1m= function (l3m,o3q){if (l3m.length==0)return; var i1a=l3m[0]; var I1a=l3m[1]; var Oq=this.lq(); var O3z=null; var l40=null; if (HTMLEditor.is_ie){Oq.empty(); Oq=this.lq(); var i3l=this.Iq(Oq); var I3l=this.Iq(Oq); try {if (i1a!=null && I1a!=null && i1a.nextSibling==I1a){O3z=this.I1.createTextNode(" "); I1a.parentNode.insertBefore(O3z,I1a); } this.o3l=null; if (i1a!=null){i3l.moveToElementText(i1a); }if (I1a!=null){I3l.moveToElementText(I1a); }if (i1a!=null && I1a!=null){i3l.setEndPoint("EndToStart",I3l); i3l.select(); if (O3z!=null){i3l.collapse( false); i3l.select(); O3z.parentNode.removeChild(O3z); }}else if (i1a!=null)i3l.select(); else if (I1a!=null)I3l.select(); }catch (w){}}else {try {var iq; var I1u=i1a.nextSibling; var o33=I1a.previousSibling;this.o3l=null; if (I1u==o33 && I1u.nodeType==1 && I1u.tagName.toUpperCase()=="BR"){var o1d=HTMLEditor.O17(I1u); iq=this.I1.createRange(); iq.setStart(I1u.parentNode,o1d); iq.setEnd(I1u.parentNode,o1d); }else {O3z=this.I1.createTextNode(""); l40=this.I1.createTextNode(""); i1a.parentNode.insertBefore(O3z,i1a); I1a.parentNode.insertBefore(l40,I1a); iq=this.I1.createRange(); iq.setStart(O3z,0); iq.setEnd(l40,0); } this.i17(Oq); this.I17(Oq,iq); }catch (w){}}var l24=HTMLEditor.i24((i1a==null)?I1a:i1a,(I1a==null)?i1a:I1a); var parent=null; if (l24!=null){parent=l24.parent; }if (i1a!=null)i1a.parentNode.removeChild(i1a); if (I1a!=null)I1a.parentNode.removeChild(I1a); if (o3q && parent!=null){HTMLEditor.l26(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.i17(Oq); this.I17(Oq,iq); }}};HTMLEditor.I3d= function (o32,ie){for (var i=0; i<o32.childNodes.length; i++){var i1u=o32.childNodes.item(i); if (i1u==ie)return i; if (i1u.nodeType==1){if (HTMLEditor.I3d(i1u,ie)>=0)return i; }}return -1; };HTMLEditor.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.I3d(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.I3d(o32.lastChild,ie)==o32.lastChild.childNodes.length-1){return HTMLEditor.i3h(o32.lastChild,ie);}}return false; };HTMLEditor.i24= function (O25,i25){var le=null; var par=O25.parentNode; var I44=O25; while (par){var lt= false; if (par.tagName){lt= true; if (HTMLEditor.O1j(par.tagName)){var O2z=HTMLEditor.O3b(par,["class","color","face","size"]); if (O2z.length==0){lt= false; }}}if (lt){var I25=HTMLEditor.I3d(par,i25); if (I25>=0){var l25=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==I44){l25=i; break; }}return {parent:par,l25:l25,I25:I25 } ; }}I44=par; par=par.parentNode; }return le; };HTMLEditor.prototype.removeAlignment= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.i10(); this.o3o("left", true); this.l14(); var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); } ; HTMLEditor.o45= function (O25,i25){var le=null; var par=O25.parentNode; var I44=O25; while (par){var I25=HTMLEditor.I3d(par,i25); if (I25>=0){var l25=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==I44){l25=i; break; }}return {parent:par,l25:l25,I25:I25 } ; }if (par.tagName.toUpperCase()=="BODY" || !HTMLEditor.O1j(par.tagName)){break; }I44=par; par=par.parentNode; }return le; };HTMLEditor.prototype.l1f= function (O45,Im){var X=this ; if (HTMLEditor.is_ie){var Oq=this.lq(); var iq=this.Iq(Oq); var O2e= false; var html=""; if (O45=="x")this.i10(); if (Oq.type.toLowerCase()=="control"){O2e= true; html=HTMLEditor.getHTML(iq.item(0), true);}else {if (iq.text!=""){O2e= true; html=iq.htmlText; var l45=iq.duplicate(); var i1b=this.I1b(); if (i1b.length<1)return; var l24=HTMLEditor.o45(i1b[0],i1b[i1b.length-1]); if (l24!=null && i1b[0].previousSibling && i1b[0].previousSibling.nodeType==3){var par=l24.parent; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(par.tagName)){var oz=par.cloneNode( false); oz.innerHTML=html; html=oz.outerHTML; par=par.parentNode; }}Oq=this.lq(); Oq.empty(); iq=this.Iq(Oq); iq.setEndPoint("EndToEnd",l45); iq.setEndPoint("StartToStart",l45); iq.select(); }else if (iq.htmlText!=""){O2e= true; html=iq.htmlText; }}if (O2e){var src=this.I1.createElement("DIV"); src.innerHTML="!!!<span></span>"+html; src.removeChild(src.firstChild); src.removeChild(src.firstChild); var lk=HTMLEditor.getHTML(src, false , true); var l2y=new RegExp("(<[/]?)(teo"+HTMLEditor.om+":)","ig"); lk=lk.replace(l2y,"$1"); delete src; this.o36(lk, true); iq.select(); if (O45=="x"){Oq.clear(); this.I10(); }}else {if (O45=="x"){Oq.clear(); this.I10(); }}if (Im)setTimeout( function (){X.updateToolbar(); } ,0144); }else {if (O45=="x"){ this.i10(); var Oq=this.lq(); var iq=this.Iq(Oq); this.i17(Oq); iq.deleteContents(); if (this.I1.body.innerHTML==""){ this.I1.body.innerHTML="<br/>"; iq.setStart(this.I1.body,0); iq.setEnd(this.I1.body,0); }if (HTMLEditor.o11)this.f= true; X.l14(); this.I17(Oq,iq); }else {var Oq=this.lq(); var iq=this.Iq(Oq); this.i17(Oq); if (HTMLEditor.is_Safari)alert(this.Of("safari-c","Use Apple-C")); else alert(this.Of("moz-c","Use Ctrl-C")); if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); }}};HTMLEditor.O17= function (ll){var o1d=0; if (ll.parentNode){for ( ; o1d<ll.parentNode.childNodes.length; o1d++)if (ll.parentNode.childNodes.item(o1d)==ll)break; }return o1d; };HTMLEditor.prototype._commonPaste= function (ij){var X=this ; this.i10(); if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X._paste(!X._NoPaste); X.on(); } ,0);HTMLEditor._stopEvent(ij); }else {if (!this.isWord && !this._NoPaste)setTimeout( function (){HTMLEditor.ly(X,X.I1,!X.showAnchors); HTMLEditor.iy(X,X.I1,!X.showPlaceHolders); HTMLEditor.O13(X.I1.body); X.i45(X.I1.body); X.l14(); } ,012); else {var o1y=X.O1y(); if (o1y!=null){var div=X.I1.createElement("div"); div.style.display="inline"; div.style.borderStyle="none"; o1y.parentNode.insertBefore(div,o1y); div.appendChild(o1y); div.removeChild(o1y); div.innerHTML="xx"; var Oq=X.lq(); var i1b=X.Iq(); X.i17(Oq); i1b.setStart(div.firstChild,0); i1b.setEnd(div.firstChild,1); X.I17(Oq,i1b); X.openWait(); setTimeout( function (){var parent=div.parentNode; div.lastChild.deleteData(div.lastChild.length-1,1); if (X.isWord){div.innerHTML=HTMLEditor.O2q(div.innerHTML); HTMLEditor.I30(div,X, true); HTMLEditor.l26(div,X.I1); }else {var I45=document.createElement("div"); I45.innerHTML=HTMLEditor.O2q(div.innerHTML); div.innerHTML=I45.innerText.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>").replace(/\cI/g,"&nbsp;"); delete I45; }while (div.firstChild)parent.insertBefore(div.firstChild,div); var o46=null; var O46=null; if (div.nextSibling && div.nextSibling.nodeType==3 && div.previousSibling && div.previousSibling.nodeType==3){o46=div.nextSibling; O46=div.previousSibling; }parent.removeChild(div); var l46=null; if (o46!=null && O46!=null){l46=O46.data.length; O46.data=""+O46.data+""+o46.data+""; o46.parentNode.removeChild(o46); }X.isWord= false; X.on(); if (l46!=null){var Oq=X.lq(); var i1b=X.Iq(); X.i17(Oq); i1b.setStart(O46,l46); i1b.setEnd(O46,l46); X.I17(Oq,i1b); }X.l14(); } ,0); }else HTMLEditor._stopEvent(ij); }}};HTMLEditor.prototype.i46= false; HTMLEditor.prototype.I2c= function (ij){try {var X=this ; if (HTMLEditor.is_ie){try {var iz=this.I1.selection; var Iz=this.Iq(iz); }catch (t){HTMLEditor._stopEvent(ij); return false; }}if (!this._wasFocused)this.focusEditor(); if (this.isPopup()){HTMLEditor._stopEvent(ij); return false; }var I46= false; if (X.Id && X.Id!=null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; if (X.O10){X.O10.select(); X.O10=null; }if (ij.type=="keydown" || ij.type=="keypress"){HTMLEditor._stopEvent(ij); return; }I46= true; }if (typeof X.captureInDesign=="function"){if (X.captureInDesign(ij) === false){HTMLEditor._stopEvent(ij); return; }}if (HTMLEditor.is_ie && ij.type=="mousedown" && ij.ctrlKey){var Oq=X.lq(); var o47=ij.clientX; var O47=ij.clientY; setTimeout( function (){var Oq=X.lq(); if (Oq.type.toLowerCase()!="control"){var iq=X.I1.body.createTextRange(); iq.moveToPoint(o47,O47); iq.select(); }Oq=X.lq(); var iq=X.Iq(Oq); var parent=HTMLEditor.getSelParent(X); while (parent!=null && parent.tagName.toUpperCase()!="BODY"){if (parent.tagName.toUpperCase()=="A" && parent.href!=null && typeof parent.href!="undefined" && parent.href.length>0){window.open(parent.href,"LinkViewWindow"); break; }parent=parent.parentNode; }} ,(Oq.type.toLowerCase()!="control")?0: 012); HTMLEditor._stopEvent(ij); return false; }{var ll=(!HTMLEditor.is_ie)?ij.target:ij.srcElement; if (ll.tagName!=null && typeof ll.tagName!="undefined" && (ll.tagName.toUpperCase()=="HTML" || ll.tagName.toUpperCase()=="BODY")){if (X.l47!= true){X.l47= true; setTimeout( function (){if (!X.i47()){try {X.focusEditor(); }catch (w){}}X.l47= false; } ,0); }}else if (HTMLEditor.contentEditable(ll)!=null){setTimeout( function (){X.i47(); } ,(!HTMLEditor.is_ie && ij.button && ij.button==2)?0310: 0); }}if (I46 && HTMLEditor.is_ie){var I47=this.lq(); var Iz; try {Iz=this.Iq(I47); if (I47.type.toLowerCase()=="control"){HTMLEditor._stopEvent(ij); return false; }}catch (w){HTMLEditor._stopEvent(ij); return false; }}var o48=(HTMLEditor.is_ie && ij.type=="keydown") || (ij.type=="keypress"); if (ij.type=="keydown" && !HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (this.O48!=null){ this.O48.select(); this.O48=null; }if (o48 && !this.keyboardEnabled){HTMLEditor._stopEvent(ij); return false; }var O45=String.fromCharCode(HTMLEditor.is_ie?ij.keyCode:ij.charCode).toLowerCase(); if (o48 && X._hotkeys!=null){if (X._hotkeys.length>0){var l48=X._hotkeys.length; var i48=O45; if (ij.keyCode==022 || ij.keyCode==021 || ij.keyCode==020)i48=null; for (var i=0; i<l48; i++){var item=X._hotkeys[i]; if (item[1]==i48 && item[2]==ij.altKey && item[3]==ij.shiftKey && item[4]==ij.ctrlKey){if (typeof item[0]=="function")setTimeout( function (){ (item[0])(X); X.l14(); X.focusEditor(); } ,0); HTMLEditor._stopEvent(ij); return false; }}}}if (o48 && ij.shiftKey && ij.keyCode==055){ this._commonPaste(ij); }else if (o48 && ij.ctrlKey && ij.altKey && ij.keyCode==044){var I48=null; var ll=HTMLEditor.getSelParent(X); while (ll && (ll.nodeType==3 || (ll.tagName && ll.tagName.toUpperCase()!="BODY"))){if (ll.nodeType==3 || !ll.tagName){ll=ll.parentNode; continue; }if (!HTMLEditor.i33(ll) && ll.tagName.toUpperCase()!="P"){if (ll.tagName.toUpperCase()=="TD")while (ll.tagName.toUpperCase()!="TABLE")ll=ll.parentNode; else if (ll.tagName.toUpperCase()=="LI")while (ll.tagName.toUpperCase()!="OL" && ll.tagName.toUpperCase()!="UL")ll=ll.parentNode; I48=ll; break; }ll=ll.parentNode; }if (I48!=null){var Oq=X.lq(); var iq=X.Iq(Oq); var l17=X.I1.createTextNode(""); I48.parentNode.insertBefore(l17,I48); if (HTMLEditor.is_ie){var i3l=X.Iq(Oq); var I3l=X.Iq(Oq); var o49=X.I1.createElement("span"); var O49=X.I1.createElement("span"); l17.parentNode.insertBefore(o49,l17); if (l17.nextSibling)l17.parentNode.insertBefore(O49,l17.nextSibling); else l17.parentNode.appendChild(O49); try {i3l.moveToElementText(o49); I3l.moveToElementText(O49); i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }catch (t){}l17.parentNode.removeChild(o49); l17.parentNode.removeChild(O49); }else {X.i17(Oq); iq.setStart(l17,0); iq.setEnd(l17,0); X.I17(Oq,iq); }}}else if (HTMLEditor.is_ie && ij.keyCode>=041 && ij.keyCode<=050 && !ij.shiftKey){var l49=ij.keyCode; var i49=(l49==042 || l49==043 || l49==047 || l49==050); setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); if (Oq.type.toLowerCase()=="control"){var ll=iq.item(0); if (!ll.contentEditable || ll.contentEditable=="false"){iq.remove(0); Oq.empty(); iq=X.Iq(Oq); var span=X.I1.createElement("SPAN"); span.appendChild(X.I1.createTextNode("")); if (i49){if (ll.nextSibling==null)ll.parentNode.appendChild(span); else ll.parentNode.insertBefore(span,ll.nextSibling); }else {ll.parentNode.insertBefore(span,ll); }iq.moveToElementText(span); iq.select(); setTimeout( function (){X.focusEditor(); X.updateToolbar(); X.focusEditor(); span.parentNode.removeChild(span); } ,012); }}} ,0); }else if (((o48 && !HTMLEditor.is_Safari) || (HTMLEditor.is_Safari && ij.type=="keydown")) && ij.ctrlKey && !ij.altKey){X.i46= false; var Oq=null; var iq=null; var O45=String.fromCharCode((HTMLEditor.is_ie || HTMLEditor.o11 || HTMLEditor.is_Safari)?ij.keyCode:ij.charCode).toLowerCase(); var l22=null; var value=null; if ((HTMLEditor.is_ie || HTMLEditor.is_Safari) && ij.keyCode==021){return false; }else if (!HTMLEditor.is_ie && ij.keyCode==043 && !ij.shiftKey){X.o13( true); }else if (ij.keyCode==056 && this.O1f()){HTMLEditor._stopEvent(ij); return false; }else if (ij.keyCode==056 || ij.keyCode==8){if ((HTMLEditor.is_ie && ij.type=="keydown") || (!HTMLEditor.is_ie && ij.type=="keypress"))this.i10(); }else {switch (O45){case "a":if (!HTMLEditor.is_ie){Oq=this.lq(); this.i17(Oq); iq=this.Iq(); iq.selectNodeContents(this.I1.body); this.I17(Oq,iq); HTMLEditor._stopEvent(ij); return false; }else X.i46= true; break; case "z": this.undo(); HTMLEditor._stopEvent(ij); return false; break; case "p":if (!HTMLEditor.is_ie){setTimeout( function (){X.o1g(); } ,0); HTMLEditor._stopEvent(ij); return false; }break; case "y": this.redo(); HTMLEditor._stopEvent(ij); return false; break; case "x":if (this.O1f()){HTMLEditor._stopEvent(ij); return false; } this.i10(); if (HTMLEditor.is_ie){if (ij.type=="keydown"){X.openWait(); setTimeout( function (){X.l1f(O45, false); X.on(); } ,0); HTMLEditor._stopEvent(ij); return false; }}break; case "c":if (this.O1f()){HTMLEditor._stopEvent(ij); return false; }if (HTMLEditor.is_ie){if (ij.type=="keydown"){X.openWait(); setTimeout( function (){X.l1f(O45, false); X.on(); setTimeout( function (){X.i1f(); } ,0); } ,0); HTMLEditor._stopEvent(ij); return false; }}break; case "v":if (this.O1f()){HTMLEditor._stopEvent(ij); return false; } this._commonPaste(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":l22="strikethrough"; break; case "l":l22="justifyleft"; break; case "e":l22="justifycenter"; break; case "r":l22="justifyright"; break; case "j":l22="justifyfull"; break; case "q":alert(this.I1.body.innerHTML); HTMLEditor._stopEvent(ij); return false; break; case "0":var I49=this.Of("your-browser","Your browser")+":\n\n"+navigator.userAgent; I49+="\n\nObout Editor: "+this.scriptVersion; alert(I49); HTMLEditor._stopEvent(ij); return false; break; break; case "9":if (!HTMLEditor.is_ie){var Oq=X.lq(); var iq=X.Iq(Oq); var o22=iq.startContainer; var O22=iq.endContainer; var o4a=""; o4a+="startContainer: "+(o22.nodeType==1?o22.tagName: "text")+"\n"; o4a+="endContainer  : "+(O22.nodeType==1?O22.tagName: "text")+"\n"; if (o22==O22){o4a+="startOffset: "+iq.startOffset+"\n"; o4a+="endOffset  : "+iq.endOffset+"\n"; if (o22.nodeType==1){o22=o22.childNodes.item(iq.startOffset); if (o22 && o22.nodeType){o4a+="startOffset node: "+(o22.nodeType==1?o22.tagName: "text")+"\n"; if (iq.startOffset!=iq.endOffset){o22=O22.childNodes.item(iq.endOffset); if (o22 && o22.nodeType)o4a+="endOffset node: "+(o22.nodeType==1?o22.tagName: "text")+"\n"; }}else o4a+=o22; }}alert(o4a); }else {var Oq=X.lq(); var iq=X.Iq(Oq); alert("boundingLeft: "+iq.boundingLeft+" boundingTop: "+iq.boundingTop+"\n"+"boundingWidth: "+iq.boundingWidth+" boundingHeight: "+iq.boundingHeight); }HTMLEditor._stopEvent(ij); return false; break; }}if (l22){ this.i1i(l22, false ,value); if (l22=="formatblock" && !HTMLEditor.is_ie){ this.i10(); this.I1e( false); }HTMLEditor._stopEvent(ij); if (l22=="delete" || l22=="paste"){ this.I10(); }}}else if (((o48) || ((HTMLEditor.is_Safari || HTMLEditor.o11) && ij.type=="keydown"))){if (HTMLEditor.is_ie && this.O2d){var iq=this.Iq(this.lq()); iq.select(); this.O2d= false; }var O45=String.fromCharCode(HTMLEditor.is_ie?ij.keyCode:ij.charCode).toLowerCase(); if (X.i46){X.i46= false; function O4a(){var i1g=X.Iq(X.lq()); var parent=i1g.parentElement(); if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); parent.parentNode.removeChild(parent); }}setTimeout(O4a,0); }if (this.O1f()){HTMLEditor._stopEvent(ij); return false; }switch (ij.keyCode){case 011:if (((HTMLEditor.is_Safari || HTMLEditor.o11) && ij.type!="keydown"))break; if (!this.suppressTab){if (!this.isControl())this.l11("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); HTMLEditor._stopEvent(ij); }else {if (!HTMLEditor.is_ie){HTMLEditor._stopEvent(ij); }return true; }break; case 8:case 056:if (((HTMLEditor.is_Safari || HTMLEditor.o11) && ij.type!="keydown"))break; if (((HTMLEditor.is_ie || HTMLEditor.is_Safari) && ij.type=="keydown") || (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && ij.type=="keypress"))this.i10(); if (!HTMLEditor.is_ie){var iq=this.Iq(this.lq()); var o22=iq.startContainer; var O22=iq.endContainer; if (ij.type=="keypress")if (HTMLEditor.contentEditable(o22)!=null || HTMLEditor.contentEditable(O22)!=null){HTMLEditor._stopEvent(ij); return false; }if (o22==O22 && o22.nodeType==1 && o22.tagName.toUpperCase()=="TD" && iq.startOffset==iq.startOffset && o22.childNodes.item(iq.startOffset) && o22.childNodes.item(iq.startOffset).tagName && o22.childNodes.item(iq.startOffset).tagName.toUpperCase()=="BR"){var span=o22.childNodes.item(iq.startOffset); var left=0,right=0; var l4a,l23,O23; l23=l4a=span.previousSibling; while (l4a){left++; l4a=l4a.previousSibling; }O23=l4a=span.nextSibling; while (l4a){right++; l4a=l4a.nextSibling; }if ((ij.keyCode==056 && right==0) || (ij.keyCode==8 && left==0)){HTMLEditor._stopEvent(ij); return false; }else if (ij.keyCode==056 && o22.firstChild==o22.lastChild && o22.firstChild.nodeType==1){HTMLEditor._stopEvent(ij); return false; }}if (o22==O22 && o22.nodeType==3 && iq.startOffset==iq.endOffset && !HTMLEditor.o11){var data=o22.data+""; if (ij.keyCode==056)if (iq.startOffset==data.length && !(o22.nextSibling && o22.nextSibling.nodeType==3)){if (o22.nextSibling){o22.parentNode.removeChild(o22.nextSibling); X.l14(); }HTMLEditor._stopEvent(ij); return false; }if (ij.keyCode==8)if (iq.startOffset==0 && !(o22.previousSibling && o22.previousSibling.nodeType==3)){if (o22.previousSibling){o22.parentNode.removeChild(o22.previousSibling); X.l14(); }HTMLEditor._stopEvent(ij); return false; }}if (ij.keyCode==8 && o22.nodeType==1 && o22==O22 && iq.startOffset==iq.endOffset){var i4a=o22.childNodes.item(iq.startOffset); if (i4a!=null && i4a.nodeType==1 && i4a.tagName.toUpperCase()=="BR"){i4a=i4a.previousSibling; if (i4a!=null && i4a.nodeType!=3){i4a.parentNode.removeChild(i4a); X.l14(); HTMLEditor._stopEvent(ij); return false; }}}setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); var o22=iq.startContainer; var O22=iq.endContainer; if (HTMLEditor.contentEditable(o22)!=null || HTMLEditor.contentEditable(O22)!=null){X.I1e( false); return; }if (HTMLEditor.o11 && o22==O22 && o22.nodeType==3 && (o22.data).length==0){o22.parentNode.removeChild(o22); }else if (o22==O22 && o22.nodeType==1 && HTMLEditor.O1j(o22.tagName) && iq.startOffset==iq.endOffset && o22.childNodes.length==0){while (o22.parentNode.nodeType==1 && HTMLEditor.O1j(o22.parentNode.tagName) && o22.parentNode.childNodes.length==1)o22=o22.parentNode; var I1u=o22.nextSibling; var o33=o22.previousSibling; var parent=o22.parentNode; parent.removeChild(o22); X.l14(); if (I1u==null && o33==null){iq.setStart(parent,0); iq.setEnd(parent,0); }else if (I1u!=null && o33!=null){if (I1u.nodeType==3 && o33.nodeType==3){var i2a=(""+o33.data+"").length; o33.appendData(I1u.data);parent.removeChild(I1u); 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 (I1u.nodeType==3){iq.setStart(I1u,0); iq.setEnd(I1u,0); }else {if (I1u.childNodes.length>0){iq.setStart(I1u,0); iq.setEnd(I1u,0); }else {var i2a=HTMLEditor.O17(I1u); 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.O17(o33); iq.setStart(parent,i2a); iq.setEnd(parent,i2a); }}}else if (I1u!=null){if (I1u.nodeType==3){iq.setStart(I1u,0); iq.setEnd(I1u,0); }else {var i2a=I1u.childNodes.length; if (i2a>0){iq.setStart(I1u,i2a); iq.setEnd(I1u,i2a); }else {i2a=HTMLEditor.O17(I1u); iq.setStart(parent,i2a); iq.setEnd(parent,i2a); }}}X.i17(Oq); X.I17(Oq,iq); }} ,012); }else {var Oq=X.lq(); if (Oq.type.toLowerCase()=="control"){if (ij.keyCode==8){setTimeout( function (){X.i1f(); X.l14(); } ,0); HTMLEditor._stopEvent(ij); return; }var i1g=X.Iq(Oq); var I4a=i1g.item(0); if (I4a.tagName.toUpperCase()=="EMBED"){I4a.src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); I4a.parentNode.removeChild(I4a); while (i1g.length>0)i1g.remove(0); try {i1g.collapse( false); }catch (t){}HTMLEditor._stopEvent(ij); X.i10(); setTimeout( function (){X.I1e( false); X.l14(); } ,0); return; }}var l3a=X.I1.body.getElementsByTagName("EMBED").length; if (l3a>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); var o4b=ij.keyCode; setTimeout( function (){X.A.removeChild(popup); var O4b=X.I1.body.getElementsByTagName("EMBED"); if (l3a!=O4b.length){X.i10(); setTimeout( function (){X.I1e( false); X.l14(); } ,0); }} ,0); }setTimeout( function (){X.I10(); } ,5); break; }break; case 015:if (((HTMLEditor.is_Safari || HTMLEditor.o11) && ij.type=="keydown"))break; if ((!HTMLEditor.is_ie && ij.type=="keypress") || (HTMLEditor.is_ie && ij.type=="keydown"))this.i10(); if (HTMLEditor.is_ie && ij.type=="keydown"){var Oq=X.lq(); if (Oq.type.toLowerCase()=="control")break; var i1g=X.Iq(Oq); if (!ij.shiftKey){var l4b=i1g.parentElement(); if (l4b.tagName.toUpperCase()=="TEXTAREA")break; while (l4b && l4b.tagName && l4b.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(l4b.tagName)){l4b=l4b.parentNode; }if (l4b && l4b.tagName && (l4b.tagName.toUpperCase()=="P" || l4b.tagName.toUpperCase()=="LI")){if (l4b.tagName.toUpperCase()=="LI"){function test(){i1g=X.Iq(X.lq()); var parent=i1g.parentElement(); while (parent && parent.tagName && parent.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(parent.tagName)){parent=parent.parentNode; }if (parent && parent.nodeType==1 && parent.tagName.toUpperCase()=="P"){var o49=X.I1.createElement("span"); var l17=X.I1.createTextNode(" "); var i3m=parent; while (i3m.firstChild!=null && i3m.firstChild.nodeType==1)i3m=i3m.firstChild; if (i3m.nodeType==1){i3m.appendChild(l17); i3m.appendChild(o49); while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); }else {parent.parentNode.insertBefore(l17,parent); parent.parentNode.insertBefore(o49,parent); }parent.parentNode.removeChild(parent); i1g.moveToElementText(o49); i1g.select(); o49.parentNode.removeChild(o49); X.l14(); }}setTimeout(test,024); }break; }try {var o3y=HTMLEditor.om+"_middle_add"; var O3y=null; var l3y="<span id="+o3y+"></span>"; function i4b(){var Oq=X.lq(); var iq=X.Iq(Oq); if (O3y!=null){O3y.innerHTML="&nbsp;"; iq.moveToElementText(O3y); iq.select(); O3y.parentNode.insertBefore(O3y.firstChild,O3y); O3y.parentNode.removeChild(O3y); X.l14(); }}i1g.pasteHTML(l3y); var I4b= false; O3y=X.I1.getElementById(o3y); if (O3y!=null){var nextSibling=O3y.nextSibling; var o4c=O3y.parentNode; while (nextSibling==null && o4c!=null && HTMLEditor.O1j(o4c.tagName)){nextSibling=o4c.nextSibling; o4c=o4c.parentNode; }if (nextSibling!=null && !HTMLEditor.i3c(nextSibling) && nextSibling.tagName!=null && typeof nextSibling.tagName!="undefined"){var il=nextSibling.tagName.toUpperCase(); if (il!="BR" && il!="UL" && il!="OL" && il!="P"){I4b= true; }}O3y.parentNode.removeChild(O3y); }i1g.pasteHTML("<br/>"+(I4b?l3y: "")); if (I4b)O3y=X.I1.getElementById(o3y); i1g.select(); if (I4b){setTimeout(i4b,0); HTMLEditor._stopEvent(ij); return false; }}catch (w){}}else {break; }HTMLEditor._stopEvent(ij); }else {if (!ij.shiftKey && (HTMLEditor.is_Safari || HTMLEditor.o11)){var l4b=HTMLEditor.getSelParent(this ); if (l4b.nodeType==3){l4b=l4b.parentNode; }while (l4b && l4b.tagName && l4b.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(l4b.tagName)){l4b=l4b.parentNode; }if (l4b && l4b.tagName && (l4b.tagName.toUpperCase()=="P" || l4b.tagName.toUpperCase()=="LI")){break; }var l3y="<br />"; if (HTMLEditor.o11){var Oq=X.lq(); var iq=X.Iq(Oq); if (iq.startContainer==iq.endContainer){if (iq.startContainer.nodeType==1){var O4c=iq.startContainer.childNodes.item(iq.startOffset); if (O4c.nodeType==1 && O4c.tagName.toUpperCase()=="BR"){l3y+="<br />"; }}else if (iq.startContainer.nodeType==3 && iq.startOffset==iq.endOffset && (iq.startContainer.data).length==iq.endOffset){l3y+="&nbsp;"; }}} this.l11(l3y); HTMLEditor._stopEvent(ij); if (HTMLEditor.o11){var Oq=X.lq(); var iq=X.Iq(Oq); if (iq.startContainer==iq.endContainer && iq.startContainer.nodeType==3 && iq.startOffset==iq.endOffset && (iq.startContainer.data).length==0){var l4c=iq.startContainer.previousSibling; iq.startContainer.parentNode.removeChild(iq.startContainer); X.i17(Oq); iq=X.Iq(); iq.setStart(l4c,0); iq.setEnd(l4c,1); X.I17(Oq,iq); }}X.l14(); }else if (HTMLEditor.is_Safari){ this.l11("<br/>"); HTMLEditor._stopEvent(ij); X.l14(); }}break; }}else X.i46= false; if (HTMLEditor.is_ie && ij.type=="keypress" && !ij.ctrlKey){var O45=ij.keyCode; var i4c=X.lq(); var I4c=X.Iq(i4c); if (I4c.text.length>0){var o4d=String.fromCharCode(O45); var O4d=HTMLEditor.l4d(ij); var i4d=(ij.shiftKey && !O4d) || O4d; if (!i4d)o4d=o4d.toLowerCase(); var I4d=HTMLEditor.om+"StyleForTyping"; var o4e=X.I1.getElementById(I4d); if (o4e!=null){o4d="<span id='"+I4d+"'></span>"+o4d+"<span id='"+I4d+I4d+"'></span>"; o4e.parentNode.removeChild(o4e); }I4c.pasteHTML(o4d); if (o4e!=null){X.O4e(I4d); o4e=X.I1.getElementById(I4d+I4d); o4e.parentNode.removeChild(o4e); }HTMLEditor._stopEvent(ij); X.l14(); return false; }}if (ij.type=="mouseup" || ij.type=="mousedown" || ij.type=="keydown"){var l4e= true; if (ij.type=="keydown" && !ij.ctrlKey){var O45=ij.keyCode; if ((O45>=060 && O45<=0132) || (O45==040) || (O45==0015) || (O45>=0272 && O45<=0336) || (O45>=0140 && O45<=0157)){if (X.M!=null){X.i3z=[]; for (var i4e=0; i4e<X.M.length; i4e++){X.i3z.push(X.M[i4e]); }var I4d=HTMLEditor.om+"StyleForTyping"; var I4e= true; if (!HTMLEditor.is_ie)X.l11("<span id='"+I4d+"'></span>"); else {X.l11("<span id='"+I4d+"'>&nbsp;</span>"); var o4e=X.I1.getElementById(I4d); if (o4e && o4e.nextSibling && o4e.nextSibling.nodeType==3){I4e= false; var i4c=X.lq(); var I4c=X.Iq(i4c); I4c.moveToElementText(X.I1.getElementById(I4d)); I4c.select(); }else if (o4e)o4e.removeChild(o4e.firstChild); }if (I4e)setTimeout( function (){X.O4e(I4d); X.l14(); } ,0); }}}if (!HTMLEditor.is_ie && (ij.type=="mousedown" || (ij.type=="keydown" && !ij.ctrlKey))){X.I1g= false; X.l1h= false; X.i1h= false; X.I1h= false; X.o1i= false; X.O1i= false; }if (l4e || !HTMLEditor.is_ie){if (!X.o4f){if (X.O4f){clearTimeout(X.O4f); X.O4f=null; }X.l4f=3; function i4f(){try {if (HTMLEditor.is_ie){try {var iz=X.I1.selection; }catch (t){return false; }}if (HTMLEditor.is_ie)if (X.lq().type=="None" && X.I1.queryCommandValue("backcolor")==0 && X.I1.queryCommandValue("forecolor")==0){X.l4f--; if (X.l4f>0){X.O4f=setTimeout(i4f,0144); return; }}X.o4f= true; X.updateToolbar(); X.o4f= false; X.O4f=null; if (!HTMLEditor.is_ie){X.focusEditor(); }}catch (t){}}X.O4f=setTimeout(i4f,0454); }}}if (!((!HTMLEditor.is_ie && (ij.type=="keydown" || ij.type=="keyup")) || (HTMLEditor.is_ie && (ij.type=="keydown" || ij.type=="keyup") && (ij.keyCode==020 || ij.keyCode==024))))X.M=null; if (HTMLEditor.is_Safari)setTimeout( function (){X.Iq(X.lq()); } ,0); if (!HTMLEditor.is_ie)setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); if (iq.startContainer.nodeType!=3 && iq.startContainer==iq.endContainer)if (iq.startOffset==iq.endOffset)if (iq.startContainer.childNodes.item(iq.startOffset))if (iq.startContainer.childNodes.item(iq.startOffset).nodeType==3){var o17=iq.startContainer.childNodes.item(iq.startOffset); Oq.collapseToEnd(); X.i17(Oq); Oq=X.lq(); iq=X.Iq(Oq); if (HTMLEditor.is_Safari){X.o14.type="Caret"; X.o14.focusNode=o17; X.o14.focusOffset=0; }else {iq.setStart(o17,0); iq.setEnd(o17,0); X.I17(Oq,iq); }}} ,0144); if (!HTMLEditor.is_ie){var Oq=X.lq(); var iq=X.Iq(Oq); X.I4f=iq.startContainer; X.o4g=iq.startOffset; }setTimeout( function (){try {X.i1f(); }catch (t){}} ,0144); if (ij.type=="keydown"){if (X.O4g==null || typeof X.O4g=="undefined" || !X.O4g){X.O4g= true; setTimeout( function (){X.l14(); X.O4g= false; } ,012); }}return true; }catch (w){HTMLEditor._stopEvent(ij); return false; }} ; HTMLEditor.prototype.O4e= function (I4d){var X=this ; var ll=X.I1.getElementById(I4d); if (ll!=null){if (ll.nextSibling && ll.nextSibling.nodeType==3){var text=ll.nextSibling; ll.parentNode.removeChild(ll); var l4g=(""+text.data+"").indexOf(" "); if (l4g>0)text.splitText(l4g); else if (l4g==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 Oq=X.lq(); if (!HTMLEditor.is_ie){var iq=X.I1.createRange(); iq.setStart(text,text.length); iq.setEnd(text,text.length); X.i17(Oq); X.I17(Oq,iq); }else {var i3l=X.Iq(Oq); 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 ll.parentNode.removeChild(ll); }};HTMLEditor.prototype.O1f= function (){if (!this.isControl())return false; var Oq=this.lq(); var iq=this.Iq(Oq); var O1p; if (HTMLEditor.is_ie){O1p=iq.item(0); }else {O1p=iq.startContainer.childNodes.item(iq.startOffset); }if (O1p.tagName && O1p.tagName.toUpperCase()=="IMG" && O1p.getAttribute(HTMLEditor.ot) && O1p.getAttribute(HTMLEditor.ot).length>0){var i4g=this.Ot(O1p); if (i4g!=null){if (HTMLEditor.is_ie){iq=this.I1.body.createControlRange(); iq.add(i4g); iq.select(); }else {try {var index=HTMLEditor.O17(i4g); Oq.collapseToEnd(); this.i17(Oq); iq=this.Iq(Oq); iq.setStart(i4g.parentNode,index); iq.setEnd(i4g.parentNode,index+1); this.I17(Oq,iq); }catch (t){return true; }}return false; }return true; }return false; };HTMLEditor.prototype.i1f= function (){if (HTMLEditor.is_ie){try {var iz=this.I1.selection; }catch (t){return false; }}var X=this ; var I48=null; var ll=HTMLEditor.getSelParent(X); while (ll && (ll.nodeType==3 || (ll.tagName && ll.tagName.toUpperCase()!="BODY"))){if (ll.nodeType==3 || !ll.tagName){ll=ll.parentNode; continue; }if (ll.tagName.toUpperCase()=="TABLE" && ll.getAttribute(HTMLEditor.Is) && ll.getAttribute(HTMLEditor.Is)=="yes"){I48=ll.rows.item(0).cells.item(0).firstChild; if (HTMLEditor.is_ie && I48.tagName.toUpperCase()=="P")I48=I48.firstChild; break; }ll=ll.parentNode; }if (I48!=null){var Oq=X.lq(); var iq=X.Iq(Oq); if (HTMLEditor.is_ie){iq=X.I1.body.createControlRange(); iq.add(I48); iq.select(); }else {try {Oq.collapseToEnd(); X.i17(Oq); iq=X.Iq(Oq); iq.setStart(I48.parentNode,0); iq.setEnd(I48.parentNode,1); X.I17(Oq,iq); }catch (t){}}}};HTMLEditor.prototype.lq= function (){if (HTMLEditor.is_ie){var Oq=this.I1.selection; return Oq; }else { this.focusEditor(); var Oq; var iq; var ll; Oq=this._iframe.contentWindow.getSelection(); iq=this.Iq(Oq); ll=iq.startContainer; try {while (ll && ll.nodeType){ll=ll.parentNode; }}catch (t){ this.i17(Oq); iq=this.Iq(Oq); iq.setStart(this.I4f,this.o4g); iq.setEnd(this.I4f,this.o4g); this.I17(Oq,iq); Oq=this._iframe.contentWindow.getSelection(); }return Oq; }} ; HTMLEditor.prototype.Iq= function (Oq){if (HTMLEditor.is_ie){return Oq.createRange(); }else { this.focusEditor(); if (typeof Oq=="undefined"){return this.I1.createRange(); }else {try {var i1g=Oq.getRangeAt(0); if (i1g==null && HTMLEditor.ok)I4g.o4h=O4h.O4h; return i1g; }catch (t){var X=this ; if (!(HTMLEditor.is_Safari && !HTMLEditor.ok) && Oq.rangeCount==0){return this.I1.createRange(); }if (HTMLEditor.is_Safari){try {if (Oq.type=="None"){if (X.o14){if (X.o14.type=="Caret"){Oq.setPosition(X.o14.focusNode,X.o14.focusOffset); }else {Oq.setBaseAndExtent(X.o14.anchorNode,X.o14.anchorOffset,X.o14.focusNode,X.o14.focusOffset); }}else {Oq.setPosition(this.I1.body.firstChild,0); }}if (Oq.type=="Caret"){var i1g=X.I1.createRange(); if (!X.o14)X.o14=new Object(); X.o14.type="Caret"; i1g.setStart(Oq.focusNode,Oq.focusOffset); i1g.setEnd(Oq.focusNode,Oq.focusOffset); X.o14.focusNode=Oq.focusNode; X.o14.focusOffset=Oq.focusOffset; return i1g; }if (!X.o14)X.o14=new Object(); X.o14.type="Range"; var l4h=Oq.anchorNode; var i4h=Oq.anchorOffset; if (l4h.nodeType==1 && l4h.childNodes.length==0){l4h=l4h.parentNode; i4h=HTMLEditor.I3d(l4h,Oq.anchorNode); }var I4h=Oq.focusNode; var o4i=Oq.focusOffset; if (I4h.nodeType==1 && I4h.childNodes.length==0){I4h=I4h.parentNode; o4i=HTMLEditor.I3d(I4h,Oq.focusNode); }var O4i=X.I1.createRange(); O4i.setStart(l4h,i4h); O4i.collapse( true); var l4i=X.I1.createRange(); l4i.setStart(I4h,o4i); l4i.collapse( true); var i4i=O4i.compareBoundaryPoints(O4i.START_TO_END,l4i)<0; var I4i=i4i?l4h:I4h; var o4j=i4i?i4h:o4i; var O4j=i4i?I4h:l4h; var l4j=i4i?o4i:i4h; var i1g=X.I1.createRange(); i1g.setStart(I4i,o4j); i1g.setEnd(O4j,l4j); X.o14.focusNode=O4j; X.o14.focusOffset=l4j; X.o14.anchorNode=I4i; X.o14.anchorOffset=o4j; return i1g; }catch (t){X.o14=null; Oq.setPosition(this.I1.body.firstChild,0); }}}}}} ; HTMLEditor.prototype.i4j=null; HTMLEditor.prototype.getFormat= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var Oq=this.lq(); var iq=this.Iq(Oq); var O23=HTMLEditor.om+"_right"; var I23; if (HTMLEditor.is_ie){I23=iq.duplicate(); I23.setEndPoint("StartToEnd",iq); }else {I23=iq.cloneRange(); I23.setStart(I23.endContainer,I23.endOffset); }if (this.l11("<span id='"+O23+"'/>",I23)){var I1a=this.I1.getElementById(O23); var par=I1a.parentNode; this.i4j=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(par.tagName)){if (par.tagName.toUpperCase()!="A"){var lk=par.cloneNode( false); if (this.i4j==null){ this.i4j=lk; }else {lk.appendChild(this.i4j); this.i4j=lk; }}par=par.parentNode; }I1a.parentNode.removeChild(I1a); 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.Of("copy-format","Copy Format.")); } ,0); return; }var O3l=this.I1.createElement("span"); O3l.innerHTML=this.i4j; var i1b=this.I1b(); if (i1b.length==0){setTimeout( function (){alert(X.Of("select-text","Select some text.")); } ,0); delete O3l; return; } this.i10(); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var I4j=O3l.firstChild.cloneNode( true); var O26=I4j; while (O26.firstChild)O26=O26.firstChild; par.insertBefore(I4j,i1b[i]); O26.appendChild(i1b[i]); } this.l1j(i1b); delete O3l; this.O1.setTimeout( function (){X.l14(); X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.I1b= function (o4k){try {var O4k=[]; if (this.isControl())return O4k; var Oq=this.lq(); var iq=this.Iq(Oq); var O23=HTMLEditor.om+"_right"; var l23=HTMLEditor.om+"_left"; var i23=null; var I23=null; var l4k; if (typeof o4k=="undefined"){if (HTMLEditor.is_ie){i23=iq.duplicate(); I23=iq.duplicate(); i23.setEndPoint("EndToStart",iq); I23.setEndPoint("StartToEnd",iq); }else {i23=iq.cloneRange(); I23=iq.cloneRange(); i23.setEnd(i23.startContainer,i23.startOffset); I23.setStart(I23.endContainer,I23.endOffset); l4k=i23.endOffset; }if (!this.l11("<span id='"+O23+"'/>",I23))return O4k; {if (HTMLEditor.o11){i23.setEnd(i23.startContainer,l4k); i23.setStart(i23.startContainer,l4k); }if (!this.l11("<span id='"+l23+"'/>",i23)){var o24=this.I1.getElementById(O23); if (o24!=null){lk=o24.parentNode; lk.removeChild(o24); }var i4k=this.I1.getElementById(I4k); if (i4k!=null){lk=i4k.parentNode; lk.removeChild(i4k); }return O4k; }}}else {var span; span=this.I1.createElement("SPAN"); span.id=O23; this.I1.body.appendChild(span); span=this.I1.createElement("SPAN"); span.id=l23; this.I1.body.insertBefore(span,this.I1.body.firstChild); }var i1a=this.I1.getElementById(l23); var I1a=this.I1.getElementById(O23); if (i1a==null || I1a==null){var lk; if (i1a!=null){lk=i1a.parentNode; lk.removeChild(i1a); }if (I1a!=null){lk=I1a.parentNode; lk.removeChild(I1a); }return []; }while (i1a.firstChild)i1a.removeChild(i1a.firstChild); while (I1a.firstChild)I1a.removeChild(I1a.firstChild); while (i1a.previousSibling && i1a.previousSibling.nodeType==3 && HTMLEditor.I12(""+i1a.previousSibling.data+"").length==0)i1a.parentNode.removeChild(i1a.previousSibling); while (i1a.nextSibling && i1a.nextSibling.nodeType==3 && HTMLEditor.I12(""+i1a.nextSibling.data+"").length==0)i1a.parentNode.removeChild(i1a.nextSibling); while (I1a.previousSibling && I1a.previousSibling.nodeType==3 && HTMLEditor.I12(""+I1a.previousSibling.data+"").length==0)I1a.parentNode.removeChild(I1a.previousSibling); while (I1a.nextSibling && I1a.nextSibling.nodeType==3 && HTMLEditor.I12(""+I1a.nextSibling.data+"").length==0)I1a.parentNode.removeChild(I1a.nextSibling); var O42= false; var X=this ; function o4l(O4l,Im){while (O4l){if (O4l.id && O4l.id==O23){O42= true; return; }if (O4l.nodeType==3){while (O4l.nextSibling && (O4l.nextSibling.nodeType==3 || (!HTMLEditor.is_ie && X.O3x!=null && X.O3x[0]==O4l.nextSibling))){if (O4l.nextSibling.nodeType==3)O4l.data=""+O4l.data+""+O4l.nextSibling.data+""; else {X.O3x[0]=O4l; X.O3x[1]=(""+O4l.data+"").length; }O4l.parentNode.removeChild(O4l.nextSibling); }if (HTMLEditor.I12(""+O4l.data+"").length>0)O4k.push(O4l); }else {if (!(O4l.tagName && (O4l.tagName.toUpperCase()=="MAP" || O4l.tagName.toUpperCase()=="AREA")))if (!(O4l.tagName && (O4l.tagName.toUpperCase()=="SCRIPT" || O4l.tagName.toUpperCase()=="NOSCRIPT")))if (!(O4l.style && (Iy(O4l,"display")=="none" || Iy(O4l,"visibility")=="hidden")))o4l(O4l.firstChild, false); }if (O42)return; var l37=O4l.parentNode; if (Im)while (O4l.nextSibling==null){O4l=O4l.parentNode; }O4l=O4l.nextSibling; }}o4l(i1a, true); var lk; lk=i1a.parentNode; lk.removeChild(i1a); lk=I1a.parentNode; lk.removeChild(I1a); if (typeof o4k=="undefined"){if (HTMLEditor.is_ie){Oq.empty(); I23.select(); }else {if (O4k.length>0){ this.i17(Oq); var Iz=this.Iq(); Iz.setEnd(O4k[O4k.length-1],O4k[O4k.length-1].length); Iz.setStart(O4k[O4k.length-1],O4k[O4k.length-1].length); this.I17(Oq,Iz); }}}return O4k; }catch (t){alert("_getTextNodeCollection: "+t.message); return []; }} ; HTMLEditor.prototype.or= function (iq){if (HTMLEditor.is_ie)return iq.parentElement(); else {return iq.startContainer; }};HTMLEditor.prototype.getIconsUrls= function (){var X=this ; var le=[]; for (var i=0; i<X._IconArray.length; i++){var folder=X._IconArray[i][0]; var lg=X._IconArray[i][1]; for (var oh=0; oh<lg.length; oh++)le.push(X.I7+"/"+folder+"/"+lg[oh]); }return le; };HTMLEditor.prototype.ExecCommand= function (l4l,param){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.Iq(this.lq()); this.i10(); this.i1i(l4l, false ,param); return true; };HTMLEditor.prototype.QueryCommand= function (l4l){if (this.mode()!="html")return false; switch (l4l.toLowerCase()){case "forecolor":return this.foreColorValue(); case "backcolor":return this.backColorValue(); case "fontname":return this.fontNameState(); case "fontsize":return this.fontSizeState(); case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":return this.i22(l4l); case "formatblock":var i16=this.i4l(); if (i16==null)return ""; var ll=i16.start; while (ll && ll.tagName && ll.tagName.toUpperCase()!="BODY" && ll.tagName.toUpperCase()!="TD"){if (/^h\d$/i.test(ll.tagName))return ll.tagName; ll=ll.parentNode; }return ""; }return this.I1.queryCommandValue(l4l); };HTMLEditor.prototype.i1i= function (l4l,UI,param){var X=this ; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }var Oq; var iq; if (HTMLEditor.is_ie && !this.isControl()){Oq=this.lq(); iq=this.Iq(Oq); var l4b=iq.parentElement(); if (l4b.tagName.toUpperCase()=="TEXTAREA")return; }try {if (l4l.toLowerCase()!="createlink")this.i10(); if (HTMLEditor.is_Safari){Oq=this.lq(); }switch (l4l.toLowerCase()){case "createlink":if (HTMLEditor.is_ie || !UI){ this.I1.execCommand(l4l,UI,param); }else {if ((param=prompt("Enter URL"))){ this.I1.execCommand(l4l, false ,param); }}break; case "backcolor":case "forecolor":case "fontname":case "fontsize": this.o3w(l4l.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(l4l,UI,param); break; case "insertunorderedlist": this.O3s("UL"); break; case "insertorderedlist": this.O3s("OL"); break; case "bold":case "italic":case "underline":case "strikethrough":case "superscript":case "subscript": this.o3w(l4l.toLowerCase()); break; default: this.I1.execCommand(l4l,UI,param); break; } this.l14(); if (!HTMLEditor.is_ie){Oq=this.lq(); iq=this.Iq(Oq); this.i17(Oq); if (HTMLEditor.o11)setTimeout( function (){X.f= true; X.focusEditor(); X.I17(Oq,iq); } ,0); this.I17(Oq,iq); this.focusEditor(); }var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); }catch (t){alert("_execCommand: "+t.message); }} ; HTMLEditor.prototype.i17= function (Oq){if (!HTMLEditor.is_Safari)Oq.removeAllRanges(); };HTMLEditor.prototype.I17= function (Oq,iq,Im){if (!HTMLEditor.is_Safari)Oq.addRange(iq); else {if (iq.startContainer==iq.endContainer && iq.startOffset==iq.endOffset){Oq.setPosition(iq.startContainer,iq.startOffset); }else Oq.setBaseAndExtent(iq.startContainer,iq.startOffset,iq.endContainer,iq.endOffset); }if (typeof Im=="undefined")if (HTMLEditor.o11 && this.f)this._iframe.blur(); this.focusEditor(); };HTMLEditor.prototype.I4l= function (value){if (this.isControl())return false; var iq=this.Iq(this.lq()); var o4m=iq.duplicate(); var O4m=iq.duplicate(); o4m.setEndPoint("StartToStart",iq); o4m.setEndPoint("EndToStart",iq); O4m.setEndPoint("StartToEnd",iq); O4m.setEndPoint("EndToEnd",iq); var l4m=o4m.parentElement(); var i4m=O4m.parentElement(); if (l4m.parentNode!=i4m.parentNode || HTMLEditor.I4m(l4m)){function o4n(ll){var lg=[]; while (ll!=null){lg.push(ll); ll=ll.parentNode; }lg.reverse(); return lg; } ; var O4n=o4n(l4m.parentNode); var l4n=o4n(i4m.parentNode); var i=0; while (O4n[i]==l4n[i])i++; l4m=O4n[i]; i4m=l4n[i]; if (HTMLEditor.I4m(l4m)){while (HTMLEditor.I4m(l4m)){i--; l4m=O4n[i]; }i4m=l4m; }}var ic=l4m; if (!ic)return false; if (!this.rtlState()){ do {var i4n=ic.style.marginLeft?parseInt(ic.style.marginLeft): 0; i4n=i4n+value; if (i4n<=0)ic.style.marginLeft=""; else ic.style.marginLeft=i4n+"px"; if (ic==i4m)break; ic=ic.nextSibling; }while (ic);}else { do {var i4n=ic.style.marginRight?parseInt(ic.style.marginRight): 0; i4n=i4n+value; if (i4n<=0)ic.style.marginRight=""; else ic.style.marginRight=i4n+"px"; if (ic==i4m)break; ic=ic.nextSibling; }while (ic);}return true; };HTMLEditor.I4m= function (ll){if (!ll)return false; if (!ll.tagName)return false; var name=ll.tagName.toUpperCase(); switch (name){case "TD":case "TR":case "TBODY":case "LI":return true; default:return false; }};HTMLEditor.prototype.O1h= function (l4l){var i16=this.i4l(); if (i16==null)return false; try {var l3w= {name: "none",value: "none" } ; switch (l4l.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 l1y=i16.start; var I4n=i16.end; var o4o=HTMLEditor.Iy(l1y,l3w.name).toString().toLowerCase(); var O4o=HTMLEditor.Iy(I4n,l3w.name).toString().toLowerCase(); if (l3w.name=="font-weight" && o4o=="700")o4o="bold"; if (l3w.name=="font-weight" && O4o=="700")O4o="bold"; if (/MSIE (5|6)/.test(navigator.userAgent) && l4l.toLowerCase()=="strikethrough" && (o4o=="underline" || O4o=="underline")){while (l1y && HTMLEditor.O1j(l1y.tagName)){if (l1y.style.textDecoration.indexOf("line-through")>=0){o4o=l1y.style.textDecoration; break; }l1y=l1y.parentNode; }while (I4n && HTMLEditor.O1j(I4n.tagName)){if (I4n.style.textDecoration.indexOf("line-through")>=0){O4o=I4n.style.textDecoration; break; }I4n=I4n.parentNode; }}var le=(o4o.indexOf(l3w.value)>=0) && (O4o.indexOf(l3w.value)>=0); if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var l4o=this.M[i]; if (l4o.name==l3w.name && l4o.value==l3w.value){le=!le; break; }}}return le; }catch (w){return false; }} ; HTMLEditor.l1l= function (fontSize,X,o1k){var le=fontSize.replace(/^(\d+)\.(\d+)px/i,"$1px"); if (!HTMLEditor.is_ie){if (le && le.length>0){var ie=le.toLowerCase().split(",")[0]; if (typeof o1k!="undefined"){var ll=document.getElementById(o1k); if (ll!=null){ll=ll.childNodes.item(1); var i; for (i=0; i<ll.options.length; i++){var l16=HTMLEditor.i1k(ll.options.item(i).value.toLowerCase().split(",")[0]); if (l16==ie)break; }if (i==ll.options.length){var span=X.I1.createElement("SPAN"); X.I1.body.appendChild(span); for (i=1; i<0144; i++){span.style.fontSize=i+"pt"; if (HTMLEditor.Iy(span,"font-size").replace(/^(\d+)\.(\d+)px/i,"$1px")==ie){ie=i+"pt"; break; }}span.parentNode.removeChild(span); }}}le=ie; }}return le; };HTMLEditor.prototype.o1j= function (l4l,o1k){var i16=this.i4l(); if (i16==null)return ""; try {if (l4l.toLowerCase()=="backcolor"){var ll=i16.start; while (ll){var i4o=HTMLEditor.Iy(ll,"background-color").toLowerCase(); if (i4o.length>0 && i4o!="transparent")return i4o; ll=ll.parentNode; }return "#FFFFFF"; }var l3w="none"; switch (l4l.toLowerCase()){case "forecolor":l3w="color"; break; case "fontname":l3w="font-family"; break; case "fontsize":l3w="font-size"; break; }var le; if ((l3w=="font-size" || l3w=="font-family") && this._FontNotSet){le=""; var par=i16.start; while (par!=null){if (l3w=="font-size"){if (par.style && par.style.fontSize && par.style.fontSize.length>0){le=par.style.fontSize; break; }}else {if (par.style && par.style.fontFamily && par.style.fontFamily.length>0){le=par.style.fontFamily; break; }}if (par.className && par.className.length>0)break; if (par.tagName.toUpperCase()=="BODY")break; if (par.tagName.toUpperCase()=="TD")break; par=par.parentNode; }}else {le=HTMLEditor.Iy(i16.start,l3w).toLowerCase(); if (l3w=="font-size"){if (!HTMLEditor.is_ie){le=HTMLEditor.l1l(le,this,o1k); var par=i16.start; while (par!=null){if (par.style && par.style.fontSize && par.style.fontSize.length>0){le=par.style.fontSize; break; }if (par.className && par.className.length>0)break; if (par.tagName.toUpperCase()=="BODY")break; if (par.tagName.toUpperCase()=="TD")break; par=par.parentNode; }}}}if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var l4o=this.M[i]; if (l4o.name==l3w){le=l4o.value; break; }}}return le; }catch (w){return ""; }} ; HTMLEditor.prototype.i4l= function (){if (this.isControl())return null; try {var Oq=this.lq(); var iq=this.Iq(Oq); var l1y=null; var I4n=null; if (!HTMLEditor.is_ie){function I4o(par,O25){var le=null; while (le==null){if (par.nodeType==3){if (O25 && iq.startContainer!=iq.endContainer && iq.startOffset==par.length && par.nextSibling){le=I4o(par.nextSibling,O25); }else if (!O25 && iq.startContainer!=iq.endContainer && iq.endOffset==0 && par.previousSibling){le=I4o(par.previousSibling,O25); }else le=par; }else {if ((O25?par.firstChild:par.lastChild)==null)le=null; else le=I4o(O25?par.firstChild:par.lastChild,O25); }if (le==null){par=O25?par.nextSibling:par.previousSibling; if (par==null)return null; }else return le; }}l1y=I4o(iq.startContainer, true); if (l1y!=null && l1y.parentNode!=null)l1y=l1y.parentNode; if (l1y==null)l1y=iq.startContainer; I4n=I4o(iq.endContainer, false); if (I4n!=null && I4n.parentNode!=null)I4n=I4n.parentNode; if (I4n==null)I4n=iq.endContainer; }else {if (iq.text.length==0)l1y=I4n=this.or(iq); else {var O23=HTMLEditor.om+"_right_marker"; var l23=HTMLEditor.om+"_left_marker"; var i23=iq.duplicate(); var I23=iq.duplicate(); i23.setEndPoint("EndToStart",iq); I23.setEndPoint("StartToEnd",iq); I23.pasteHTML("<span id='"+O23+"'/>"); i23.pasteHTML("<span id='"+l23+"'/>"); var i1a=this.I1.getElementById(l23); var I1a=this.I1.getElementById(O23); l1y=i1a.parentNode; I4n=I1a.parentNode; i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); }}return {start:l1y,end:I4n } ; }catch (w){return null; }};HTMLEditor.prototype.o4p= function (O4p,iq){if (!HTMLEditor.is_ie){var Oq=this.lq(); if (typeof iq=="undefined"){try {iq=this.Iq(Oq); }catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); this.i17(Oq); return false; }}var O2f=iq.startContainer; var l4p=iq.startOffset; if (O2f.ownerDocument.id!="EditorDocument"){alert(this.Of("click-to-editor","Click to editing panel.")); return false; }if ((iq.startContainer.nodeType==1 && iq.startContainer.tagName.toUpperCase()=="TR") || (iq.endContainer.nodeType==1 && iq.endContainer.tagName.toUpperCase()=="TR")){var X=this ; setTimeout( function (){alert(X.Of("paste-fail","Not correct selection for inserting.")); } ,0); return false; } this.i17(Oq); iq.deleteContents(); try {iq=this.Iq(); }catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); this.i17(Oq); return false; }switch (O2f.nodeType){case 3:if (l4p>0)O2f=O2f.splitText(l4p); while (O4p.firstChild)O2f.parentNode.insertBefore(O4p.firstChild,O2f); iq.setStart(O2f,0); iq.setEnd(O2f,0); break; case 1:case 013:try { this.i17(Oq); if (O2f.childNodes.length>=l4p+1){O2f=O2f.childNodes.item(l4p); while (O4p.firstChild)O2f.parentNode.insertBefore(O4p.firstChild,O2f); var l17=this.I1.createTextNode(""); O2f.parentNode.insertBefore(l17,O2f); O2f=l17; }else {var l17=this.I1.createTextNode(""); if (HTMLEditor.canHaveChildren(O2f)){while (O4p.firstChild)O2f.appendChild(O4p.firstChild); O2f.appendChild(l17); }else {while (O4p.firstChild)O2f.parentNode.insertBefore(O4p.firstChild,O2f); O2f.parentNode.insertBefore(l17,O2f); }O2f=l17; }if (O2f.nodeType==1){var par=O2f.parentNode; var o17=par; var oh=0; for ( ; oh<par.childNodes.length; oh++)if (O2f==par.childNodes.item(oh))break; iq.setStart(par,oh); iq.setEnd(par,oh); }else {iq.setStart(O2f,0); iq.setEnd(O2f,0); }}catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); this.i17(Oq); return false; }break; }if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); return true; }else {return null; }} ; HTMLEditor.prototype.l11= function (html,iq){ this.focusEditor(); var Oq=this.lq(); if (typeof iq=="undefined"){iq=this.Iq(Oq); }if (HTMLEditor.is_ie){function o2u(I29,o22){return "\x3cspan class=\""+HTMLEditor.om+"_script\" style=\'display:none;visibility:hidden;\'>"+o22.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function i2u(I29,o22,O22,I2u){return o22.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var i4p="\x3cspan id=\""+HTMLEditor.om+"\">111\x3cspan>\x3c/span>"+html+"</span>"; var i11=HTMLEditor.I11(i4p); var o12=HTMLEditor.O12(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.Of("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.l12(i2y,i11); HTMLEditor.i12(i2y,o12); if (i2y.firstChild)i2y.removeChild(i2y.firstChild); if (i2y.firstChild)i2y.removeChild(i2y.firstChild); while (i2y.firstChild)i2y.parentNode.insertBefore(i2y.firstChild,i2y); i2y.parentNode.removeChild(i2y); delete i2y; return true; }else {var div=this.I1.createElement("div"); div.innerHTML=html; var o1v=div.getElementsByTagName("EMBED"); var i30=[]; for (var i=0; i<o1v.length; i++)i30.push(o1v[i]); for (var oh=0; oh<i30.length; oh++){var embed=i30[oh]; var img=document.createElement("IMG"); var O2z=embed.attributes; img.src=this.P[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; var name=a.name.toLowerCase(); var value=a.value; if (name=="src")name="dummysrc"; else if (name=="bgcolor")name="dummybgcolor"; else if (name=="wmode")name="pseudomode"; img.setAttribute(name,value); }img.getAttribute("type");img.style.cssText="border: 1px dotted #000000; background-image: url('"+(img.getAttribute("type").toLowerCase()=="application/x-mplayer2"?this.P[3]: this.P[2])+"'); background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;"; embed.parentNode.insertBefore(img,embed); embed.parentNode.removeChild(embed); }var le=this.o4p(div,iq); return le; }} ; HTMLEditor.prototype.getDocument= function (){return this.I1; };HTMLEditor.prototype.getWindow= function (){if (HTMLEditor.is_Safari)return document.getElementById(this._hiddenContent+"_inner_iframe").contentWindow; else return this._iframe.contentWindow; };HTMLEditor.I4p=[]; HTMLEditor.o4q=null; HTMLEditor.l1e=null; HTMLEditor.O4q= function (){for (var i=0; i<HTMLEditor.I4p.length; i++){HTMLEditor.I4p[i](); }HTMLEditor.I4p=[]; };HTMLEditor.l4q= function (t){function i4q(){setTimeout( function (){HTMLEditor.O4q(); } ,0); HTMLEditor.l1e=null; if (HTMLEditor.o4q!=null){HTMLEditor.Ic(document.getElementById(HTMLEditor.o4q),"mousedown",HTMLEditor.l4q); HTMLEditor.i18(HTMLEditor.o4q.substr(0,HTMLEditor.o4q.length-("__disabling").length)); }HTMLEditor.o4q=null; }if (HTMLEditor.l1e){try {if (HTMLEditor.l1e.name!="OboutEditorPreview"){i4q(); }else {setTimeout( function (){try {HTMLEditor.l1e.focus(); }catch (t){}} ,0); if (typeof t!=undefined)HTMLEditor._stopEvent(t); return false; }}catch (t){i4q(); }}else i4q(); return true; };HTMLEditor.I4q= function (){if (!HTMLEditor.l4q())setTimeout(HTMLEditor.I4q,01750); else window.focus(); };HTMLEditor.prototype.o4r= function (O4r){var X=this ; if (HTMLEditor.l1e)return; try {HTMLEditor.l1e=window.open("","OboutEditorPreview","toolbar=0,status=1,scrollbars=1,resizable=1,width=600,height=400"); }catch (t){HTMLEditor.l1e=null; return; }if (!HTMLEditor.l1e)return; HTMLEditor.o4q=HTMLEditor.I14(X.mainDivId); if (HTMLEditor.o4q!=null)HTMLEditor.ik(document.getElementById(HTMLEditor.o4q),"mousedown",HTMLEditor.l4q); function l4r(){try {if (!HTMLEditor.l1e.document)setTimeout(l4r,0144); HTMLEditor.l1e.focus(); }catch (t){HTMLEditor.l1e.close(); HTMLEditor.l1e=null; if (HTMLEditor.o4q!=null){HTMLEditor.Ic(document.getElementById(HTMLEditor.o4q),"mousedown",HTMLEditor.l4q); HTMLEditor.i18(HTMLEditor.o4q.substr(0,HTMLEditor.o4q.length-("__disabling").length)); }HTMLEditor.o4q=null; X.o4r(O4r); }Ox=HTMLEditor.l1e.document; Ox.open(); var html=new o2a(); var O29=O4r; var l29= false; function i29(I29,o22,O22){O29=O22; l29= true; }O4r.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,i29); O4r=O29; if (X.d!=null)html.write(X.d); html.write("<html"+(X.B!=null?X.B: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); var i4r=new RegExp("<title>","gi"); if (X.D==null || !i4r.test(X.D))html.write("<title>Obout Editor Preview</title>"); if (X.D!=null)html.write(X.D); html.write("\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var O2a=0; O2a<X._addCssFiles.length; O2a++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[O2a]+"\" media=\"all\" />"); }}if (X._DefaultFontFamily.length>0 || X._DefaultFontSize.length>0){html.write("<style> body,table td {"); if (X._DefaultFontFamily.length>0)html.write("font-family: "+X._DefaultFontFamily+";"); if (X._DefaultFontSize.length>0)html.write("font-size: "+X._DefaultFontSize+";"); html.write("}</style>"); }html.write("</head>"); html.write("<body"+(X.C!=null?X.C: "")+">"); html.write(O4r); html.write("</body>"); html.write("</html>"); Ox.write(html.toString()); Ox.close(); setTimeout(HTMLEditor.I4q,0454); HTMLEditor.I4p.push( function (){X.focusEditor(); } ); }setTimeout(l4r,0); };HTMLEditor.prototype.preview= function (){var X=this ; if (HTMLEditor.l1e)return; X.getContentWait( function (O4r){X.o4r(O4r); } ); };HTMLEditor.prototype.print= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (HTMLEditor.is_ie)eval(this._iframe.name+".print()"); else this.getWindow().print(); };HTMLEditor.prototype.SurroundHTML= function (I4r,o4s){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.Iq(this.lq()); var html=""; var Oq=this.lq(); var iq=this.Iq(Oq); if (HTMLEditor.is_ie && Oq.type.toLowerCase()=="control"){ this.i10(); html=iq.item(0).outerHTML; return this.InsertHTML(I4r+html+o4s); }html=this.O1b(); if (html.length==0){return false; }var i1b=this.I1b(); if (i1b.length<1)return false; this.i10(); var o49=this.I1.createElement("span"); var O49=this.I1.createElement("span"); var O4s=i1b[0].parentNode; var l4s=i1b[i1b.length-1].parentNode; O4s.insertBefore(o49,i1b[0]); if (i1b[i1b.length-1].nextSibling)l4s.insertBefore(O49,i1b[i1b.length-1].nextSibling); else l4s.appendChild(O49); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var lk=this.I1.createElement("SPAN"); try {function o2u(I29,o22){return "\x3cspan class=\""+HTMLEditor.om+"_script\" style=\'display:none;visibility:hidden;\'>"+o22.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function i2u(I29,o22,O22,I2u){return o22.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var i4p=I4r+(""+i1b[i].data+"").replace(/^\s/,"&nbsp;")+o4s; var i11; if (HTMLEditor.is_ie){i11=HTMLEditor.I11(i4p); if (!this.NoScript)i4p=i4p.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,o2u); else i4p=i4p.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); }lk.innerHTML="!!!<span></span>"+i4p; lk.removeChild(lk.firstChild); lk.removeChild(lk.firstChild); if (HTMLEditor.is_ie){lk.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(lk, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.om+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),i2u)+"<span>qqq</span>"; lk.removeChild(lk.firstChild); lk.removeChild(lk.lastChild); HTMLEditor.l12(lk,i11); }while (lk.firstChild)par.insertBefore(lk.firstChild,i1b[i]); par.removeChild(i1b[i]); }catch (t){return false; }}if (!HTMLEditor.is_ie){i1b=[]; var O42= false; function o4l(O4l,Im){while (O4l){if (O4l==O49){O42= true; return; }if (O4l.nodeType==3){while (O4l.nextSibling && O4l.nextSibling.nodeType==3){O4l.data=""+O4l.data+""+O4l.nextSibling.data+""; O4l.parentNode.removeChild(O4l.nextSibling); }if (HTMLEditor.I12(""+O4l.data+"").length>0)i1b.push(O4l); }else o4l(O4l.firstChild, false); if (O42)return; var l37=O4l.parentNode; if (Im)while (O4l.nextSibling==null){O4l=O4l.parentNode; }O4l=O4l.nextSibling; }}o4l(o49, true); iq=this.I1.createRange(); iq.setStart(i1b[0],0); iq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.i17(Oq); if (HTMLEditor.o11)this.f= true; this.I17(Oq,iq); }else {Oq=this.lq(); var i3l=this.Iq(Oq); var I3l=this.Iq(Oq); try {i3l.moveToElementText(o49); I3l.moveToElementText(O49); i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }catch (t){}}O4s.removeChild(o49); l4s.removeChild(O49); this.l14(); return true; } ; HTMLEditor.prototype.InsertHTML= function (html){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.Iq(this.lq()); var i4s= false; var div=this.I1.createElement("div"); var i11; if (HTMLEditor.is_ie){i11=HTMLEditor.I11(html); }div.innerHTML=html; for (var i=0; i<div.childNodes.length; i++){var ll=div.childNodes.item(i); if (ll.nodeType==1 && !HTMLEditor.i33(ll))i4s= true; } this.i10(); if (HTMLEditor.is_ie){var Oq=this.lq(); var iq=this.Iq(Oq); if (Oq.type.toLowerCase()=="control"){var i16=iq.item(0); var parent=i16.parentNode; iq.remove(0); parent.removeChild(i16); }}if (i4s){var o1y=this.O1y(); if (!o1y){ this.I1e( false); return false; }var parent=o1y.parentNode; if (HTMLEditor.is_ie){HTMLEditor.l12(div,i11); }while (div.firstChild)parent.insertBefore(div.firstChild,o1y); parent.removeChild(o1y); this.l14(); return true; }else {var le=this.l11(html); if (!le){ this.I1e( false); } this.l14(); return le; }};HTMLEditor.prototype.O1b= function (){var Oq=this.lq(); var iq=this.Iq(Oq); var I4s=null; if (HTMLEditor.is_ie){I4s=iq.htmlText; }else {if (HTMLEditor.is_Safari && (Oq.type=="Caret" || Oq.type=="None"))I4s=""; else {if (HTMLEditor.is_Safari){if (iq.cloneContents()==null)return ""; }I4s=HTMLEditor.getHTML(iq.cloneContents(), false); }}return I4s; } ; HTMLEditor.l26= function (O1p,Ox,o4t,O4t,l4t){if (HTMLEditor.is_Safari)return; var i4t=0; var I4t=O1p.childNodes.length; if (typeof o4t!="undefined" && o4t!=null)i4t=o4t; if (typeof O4t!="undefined" && O4t!=null)I4t=O4t; for (var i=i4t; i<I4t && i<O1p.childNodes.length; i++){var i1u=O1p.childNodes.item(i);if (i1u.parentNode!=O1p){continue; }switch (i1u.nodeType){case 1:if (i1u.childNodes.length==0 && HTMLEditor.O1j(i1u.tagName) && i1u.tagName.toUpperCase()!="A" && !(i1u.className.length>0 || (i1u.getAttribute("class") && i1u.getAttribute("class").length>0)) && !HTMLEditor.i3a(i1u)){O1p.removeChild(i1u); i--; I4t--; continue; }if (i1u.tagName.toUpperCase()=="SPAN"){while (i1u.childNodes.length==1 && i1u.firstChild.nodeType==1){if (i1u.firstChild.tagName.toUpperCase()=="SPAN" && !HTMLEditor.i3a(i1u.firstChild)){var O2z=HTMLEditor.O3b(i1u.firstChild,[]); var o4u=HTMLEditor.O4u(i1u.firstChild); var l4u=i1u.firstChild; var i4u=l4u.childNodes; while (l4u.firstChild!=null){i1u.insertBefore(l4u.firstChild,l4u); }for (var oh=0; oh<o4u.length; oh++){if (o4u[oh][1]){try {if (i1u.style[o4u[oh][0]]){if (o4u[oh][0].toLowerCase().indexOf("color")>=0){i1u.style[o4u[oh][0]]=o4u[oh][1]; }else {try {var I18=i1u.style[o4u[oh][0]]; i1u.style[o4u[oh][0]]=i1u.style[o4u[oh][0]]+" "+o4u[oh][1]; if (I18==i1u.style[o4u[oh][0]]){i1u.style[o4u[oh][0]]=o4u[oh][1]; }}catch (t){i1u.style[o4u[oh][0]]=o4u[oh][1]; }}}else i1u.style[o4u[oh][0]]=o4u[oh][1]; }catch (I4u){}}}for (var oh=0; oh<O2z.length; oh++){if (O2z[oh][1])i1u.setAttribute(O2z[oh][0],O2z[oh][1]); }i1u.removeChild(l4u); continue; }else if (i1u.firstChild.tagName.toUpperCase()=="SPAN" && HTMLEditor.i3a(i1u.firstChild)){var O29=i1u.firstChild; i1u.parentNode.insertBefore(i1u.firstChild,i1u); i1u.parentNode.removeChild(i1u); i1u=O29; }break; }var o4v=[]; var O4v=i1u.nextSibling; while (!HTMLEditor.i3a(i1u) && O4v && i+1<I4t && (O4v.nodeType==3 || (O4v.nodeType==1 && (O4v.tagName.toUpperCase()=="SPAN" || (O4v.tagName.toUpperCase()=="BR") && typeof l4t=="undefined") && !HTMLEditor.i3a(O4v)))){if (O4v.nodeType==3){if ((""+O4v.data+"").length==0){O4v.parentNode.removeChild(O4v); O4v=i1u.nextSibling; I4t--; }else {break; }}else {if (O4v.tagName.toUpperCase()=="BR"){o4v.push(O4v); O4v=O4v.nextSibling; }else {var O2z=HTMLEditor.O3b(i1u,[],O4v); var o4u=HTMLEditor.O4u(i1u,O4v); if (O2z.length==0 && o4u.length==0 && i1u.className==O4v.className){var I37=o4v.length; for (var oh=0; oh<I37; oh++){i1u.appendChild(o4v[oh]); I4t--; }o4v=[]; while (O4v.firstChild)i1u.appendChild(O4v.firstChild); O4v.parentNode.removeChild(O4v); O4v=i1u.nextSibling; I4t--; }else break; }}}if (!HTMLEditor.i3a(i1u) && i1u.className.length==0){var O2z=HTMLEditor.O3b(i1u,[]); var o4u=HTMLEditor.O4u(i1u); if (O2z.length==0 && o4u.length==0){i--; I4t--; while (i1u.firstChild){i1u.parentNode.insertBefore(i1u.firstChild,i1u); I4t++; }i1u.parentNode.removeChild(i1u); continue; }}}if (i1u.parentNode!=null)if (i1u.childNodes.length==0 && HTMLEditor.O1j(i1u.tagName) && i1u.tagName.toUpperCase()!="A" && !(i1u.className.length>0 || (i1u.getAttribute("class") && i1u.getAttribute("class").length>0)) && !HTMLEditor.i3a(i1u)){O1p.removeChild(i1u); i--; I4t--; continue; }else HTMLEditor.l26(i1u,Ox); break; }}};HTMLEditor.l4v= function (O1p,I16){var count=0; if (O1p.attributes)for (var i=0; i<O1p.attributes.length; i++){var l2e=O1p.attributes[i]; if (l2e.name.toUpperCase()=="STYLE")continue; if (l2e.name.toUpperCase()=="CLASS" && I16)continue; if (l2e.specified)count++; }return count; };HTMLEditor.O3b= function (O1p,I16,i4v){var I1v=[]; var parent=O1p.parentNode; if (typeof i4v!="undefined")parent=i4v; if (!parent || !parent.tagName || !HTMLEditor.O1j(parent.tagName))parent=null; if (O1p.attributes)for (var i=0; i<O1p.attributes.length; i++){var l2e=O1p.attributes[i]; var I4v= false; for (var oh=0; oh<I16.length; oh++)if (l2e.name.toUpperCase()==I16[oh].toUpperCase()){I4v= true; break; }if (I4v)continue; if (l2e.name.toUpperCase()=="STYLE")continue; if (l2e.name.toUpperCase().substr(0,4)=="_MOZ")continue; if (l2e.specified)if (parent && parent.attributes && parent.attributes[l2e.name]){var o4w=parent.attributes[l2e.name]; if (o4w){if (l2e.name!=o4w.name || l2e.value!=o4w.value){I1v.push([l2e.name,l2e.value]); }}}else {if (l2e.name.toUpperCase()=="CLASS" && l2e.value=="")continue; I1v.push([l2e.name,l2e.value]); }}return I1v; };HTMLEditor.O4u= function (O1p,i4v){var I1v=[]; var parent=O1p.parentNode; if (typeof i4v!="undefined")parent=i4v; if (!parent || !parent.tagName || !HTMLEditor.O1j(parent.tagName))parent=null; function O4w(i,l4w){l4w=""+l4w; if (i.toLowerCase()=="textdecoration"){var i4w=l4w.split(" "); for (var oh=0; oh<i4w.length; oh++){I1v.push([i,HTMLEditor.I12(i4w[oh])]); }}else I1v.push([i,l4w]); }for (var i in O1p.style){if (i && typeof i=="string" && i!="accelerator"){var style=O1p.style[i]; if (style && typeof style=="string" && style!="accelerator"){if (parent && parent.style){var I4w=parent.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=I4w){O4w(i,style); }}else {if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length"){O4w(i,style); }}}}}if (typeof i4v!="undefined")for (var i in parent.style){if (i && typeof i=="string" && i!="accelerator"){var style=parent.style[i]; if (style && typeof style=="string" && style!="accelerator"){var I4w=O1p.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=I4w){O4w(i,style); }}}}return I1v; };HTMLEditor.o4x= function (ll){var name=ll.tagName.toUpperCase(); switch (name){case "TD":case "LI":case "FIELDSET":case "FORM":return true; case "DIV":if (ll.className==HTMLEditor.om)return false; else return true; default:return false; }};HTMLEditor.i33= function (ll,Im){if (ll && ll.style && ll.style.display && ll.style.display.toLowerCase()=="inline")return true; var name=ll.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return false; }}switch (name){case "TBODY":case "TR":case "TD":if (typeof Im!="undefined"){var par=ll.parentNode; while (par && par.tagName && par.tagName.toUpperCase()!="TABLE")par=par.parentNode; if (par.tagName.toUpperCase()=="TABLE" && par.style && par.style.display && par.style.display.toLowerCase()=="inline")return true; }case "P":case "PRE":case "TABLE":case "OL":case "UL":case "LI":case "HR":case "DIV":case "BLOCKQUOTE":case "FORM":case "FIELDSET":case "LEGEND":return false; default:return true; }};HTMLEditor.O4x=[["strong","font-weight","bold","fontWeight"],["b","font-weight","bold","fontWeight"],["strong","font-weight","700","fontWeight"],["em","font-style","italic","fontStyle"],["i","font-style","italic","fontStyle"],["u","text-decoration","underline","textDecoration"],["strike","text-decoration","line-through","textDecoration"]]; HTMLEditor.l4x=["DIV","P","TD","TR","TABLE","TBODY","LI","OL","UL","FORM","INPUT"]; HTMLEditor.I2g= function (O1p){for (var i=0; i<HTMLEditor.l4x.length; i++)if (HTMLEditor.l4x[i].toUpperCase()==O1p.tagName.toUpperCase()){return true; }if (HTMLEditor.is_ie && O1p.scopeName.toUpperCase()!="HTML")return true; return false; };HTMLEditor.I1i= function (i4x){if (typeof i4x!="number"){return i4x; }var i1g=i4x&0377; var O30=(i4x>>8)&0377; var b=(i4x>>020)&0377; return "rgb("+i1g+","+O30+","+b+")"; } ; HTMLEditor.I4x= function (i4x){function l2z(i2z){return (i2z<020)?("0"+i2z.toString(020)):i2z.toString(020); } ; if (typeof i4x=="number"){var i1g=i4x&0377; var O30=(i4x>>8)&0377; var b=(i4x>>020)&0377; return "#"+l2z(i1g)+l2z(O30)+l2z(b); }if (i4x.substr(0,3)=="rgb"){var i2j=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/; if (i4x.match(i2j)){var i1g=parseInt(RegExp.$1); var O30=parseInt(RegExp.$2); var b=parseInt(RegExp.$3); return "#"+l2z(i1g)+l2z(O30)+l2z(b); }return null; }if (i4x.substr(0,1)=="#"){return i4x; }return null; } ; HTMLEditor.lw= function (window,o4y){if (!/MSIE (5|6|7|8)/.test(navigator.userAgent))return; if ((/MSIE (7|8)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat")return; var O4y=/(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i,l4y,Ox=window.document,i4y=[],I4y= {onhover:{o4z: "onmouseover",O4z: "onmouseout" } ,onactive:{o4z: "onmousedown",O4z: "onmouseup" }} ; var l4z=(typeof o4y=="undefined")?Ox:o4y; function parseStylesheets(){window.attachEvent("onunload",i4z); var l2a=Ox.styleSheets,i2a=l2a.length; for (var i=0; i<i2a; i++)o2b(l2a[i]); }function o2b(O2b){if (O2b.imports){try {var imports=O2b.imports,i2a=imports.length; for (var i=0; i<i2a; i++)o2b(O2b.imports[i]); }catch (I4z){}}try {var rules=(l4y=O2b).rules,i2a=rules.length; for (var oh=0; oh<i2a; oh++)l2b(rules[oh]); }catch (I4z){}}function l2b(rule){var select=rule.selectorText,style=rule.style.cssText; if (!O4y.test(select) || !style)return; var o50=select.replace(/[^:]+:([a-z-]+).*/i,"on$1"); var O50=select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi,".$2"+o50); var className=(/\.([a-z0-9_-]*on(hover|active))/i).exec(O50)[1]; var l50=select.replace(/:(hover|active).*$/,""); var elements=i50(l50); if (elements.length==0)return; l4y.addRule(O50,style); for (var i=0; i<elements.length; i++)new I50(elements[i],className,I4y[o50]); }function I50(O2f,className,o51){if (!O2f.hovers)O2f.hovers= {} ; if (O2f.hovers[className])return; O2f.hovers[className]= true; O51(O2f,o51.o4z, function (){O2f.className+=" "+className; } ); O51(O2f,o51.O4z, function (){O2f.className=O2f.className.replace(new RegExp("\\s+"+className,"g"),""); } ); }function O51(O2f,type,l51){O2f.attachEvent(type,l51); i4y[i4y.length]= {O2f:O2f,type:type,l51:l51 } ; }function i4z(){for (var t,i=0; i<i4y.length; i++){t=i4y[i]; t.O2f.detachEvent(t.type,t.l51); }}function i50(rule){var i51,I51=[l4z]; i51=rule.split(" "); for (var i=0; i<i51.length; i++){I51=o52(i51[i],I51); }return I51; }function o52(select,elements){var I1v,O2f,I51=[]; var O52=(/#([a-z0-9_-]+)/i).exec(select); if (O52)return [Ox.getElementById(O52[1])]; var l52=(/\.([a-z0-9_-]+)/i).exec(select); var tagName=select.replace(/(\.|#|:)[a-z0-9_-]+/i,""); var i52=l52?new RegExp("\\b"+l52[1]+"\\b"): false; for (var i=0; i<elements.length; i++){I1v=tagName?elements[i].all.tags(tagName):elements[i].all; for (var oh=0; oh<I1v.length; oh++){O2f=I1v[oh]; if (i52 && !i52.test(O2f.className))continue; I51[I51.length]=O2f; }}return I51; }parseStylesheets(); };HTMLEditor.prototype.parseInt=parseInt; HTMLEditor.prototype.isNaN=isNaN; HTMLEditor.prototype.Object=Object; HTMLEditor.prototype.Math=Math; HTMLEditor.I52= function (s){return new String(s+"rnd="+Math.random()).replace(".",""); };function o2a(o53){ this.o53=(typeof o53!="undefined" && o53); this.text=[]; this.write= function (ih){if (!this.o53 || (this.text.length==0 && ih!="\n") || (this.text.length>0 && (this.text[this.text.length-1]!="\n" || ih!="\n")))this.text[this.text.length]=ih; };this.writeln= function (ih){ this.text[this.text.length]=ih+"\n"; };this.toString= function (){return this.text.join(""); };this.clear= function (){ delete this.text; this.text=null; this.text=new Array; };}HTMLEditor.prototype.O53= function (X,l53,l1w,i53,I53,o54,O54){ this.X=X; this.I53=I53; this.o54=o54; this.enableEvents= function (){} ; this.disableEvents= function (){} ; if (!X.o2){X.o2=[]; HTMLEditor.o2=X.o2; }if (X.o2.length>0)X.o2[X.o2.length-1].disableEvents(); X.o2.push(this ); this.number=X.o2.length; X.l10=null; if (HTMLEditor.is_ie && (X.lq().type=="Text" || X.lq().type=="None"))try {X.l10=X.Iq(X.lq()).duplicate(); }catch (t){}if (HTMLEditor.is_Safari){var l54=X.lq(); var i54=X.Iq(l54); X.l10=i54.cloneRange(); } this.iframe=this.openPopup(l53,l1w,i53,o54,O54); };HTMLEditor.prototype.O53.prototype.middle= function (){var I54=this ; var X=this.X; var popup=this.iframe; var o55; var o9=parseInt(popup.clientWidth); var O9=parseInt(popup.clientHeight); if (o9==0)o9=parseInt(popup.offsetWidth); if (O9==0)O9=parseInt(popup.offsetHeight); var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var O55=O2s/2-O9/2+l55(X.O1.document); if (O55<=0)O55=024; popup.style.top=O55+"px"; popup.style.left=o2s/2-o9/2+_GetScrollLeft(X.O1.document)+"px"; };HTMLEditor.prototype.clearPopups= function (i55){var X=this ; var le= false; while (X.o2!=null && X.o2.length>0){var I55=X.o2[X.o2.length-1]; if (typeof i55!="undefined"){if (typeof I55.I53=="function")I55.I53(); I55.o56(null);}else I55.O56(); le= true; }function l56(){if (X.i56 && X.i56.length>0)while (X.i56.length>0){var ll=X.i56.pop(); var popup=ll[1]; popup.parentNode.removeChild(popup); }}if (typeof i55=="undefined")setTimeout(l56,le?01750: 0); else l56(); HTMLEditor.l1e=null; if (I56!=null){I56.parentNode.removeChild(I56); I56=null; }if (o57!=null){o57.parentNode.removeChild(o57); o57=null; }return le; };HTMLEditor.prototype.O53.prototype.openPopup= function (l53,l1w,i53,o54,O54){var I54=this ; var X=this.X; var popup; function O57(event){if (X.o2)if (I54.number==X.o2.length){if (I54.iframe.contentWindow.document.body.childNodes.item(0).childNodes.length>1)if (!I54.iframe.contentWindow.document.getElementById("closePopup").disabled){I54.o56(I54.I53); }}if (event)HTMLEditor._stopEvent(event); return false; } ; var l57; if (HTMLEditor.is_Safari)l57=l1w+"_safari"; else l57=l1w; if (!X.i56)X.i56=[]; if (typeof o54=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.ok)){for (var i=0; i<X.i56.length; i++){if (X.i56[i][0]==l57){var Ox; popup=X.i56[i][1]; popup.style.display=""; popup.style.zIndex=""+(045070+X.o2.length)+""; Ox=popup.contentWindow.document; Ox.getElementById("title").innerHTML=l53; HTMLEditor.ik(Ox.getElementById("closePopup"),"click",O57); I54.O56=O57; try {o54(popup); }catch (t){alert("Exception in open Popup("+l53+"): "+t.message); } ; return popup; }}}popup=X.A.ownerDocument.createElement("iframe"); if (typeof o54=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.ok)){X.i56.push([l57,popup]); }if (HTMLEditor.is_ie)popup.src="javascript:false;"; popup.style.visibility="hidden"; if (HTMLEditor.is_Safari)popup.className=l57; else {if (HTMLEditor.is_ie)popup.className=l57+" "+l57+"_ie"; else popup.className=l57; }popup.style.borderColor="white black black white"; popup.style.borderWidth="1px"; popup.style.borderStyle="solid"; popup.style.zIndex=""+(045070+X.o2.length)+""; popup.style.display=""; popup.style.position="absolute"; popup.scrolling="no"; popup.style.margin="0px";popup.style.padding="0px";popup.marginHeight="0"; popup.marginWidth="0"; if (HTMLEditor.ok)popup.name=X._hiddenContent+"_popup_"+l57; var o55; var o9=0144; var O9=0144; var i57=X.A; var ll=X._textArea.parentNode.parentNode; if (!X._InsideOboutWindow)while (ll!=X.A){if (HTMLEditor.Iy(ll,"position").toLowerCase()=="absolute"){i57=X._textArea.parentNode.parentNode; break; }ll=ll.parentNode; }var l2s=HTMLEditor.i2s(i57, false); var i1y=l2s.i1y,_top=l2s._top; var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var I57=O2s/2-O9/2+l55(X.O1.document); var o58=o2s/2-o9/2+_GetScrollLeft(X.O1.document); popup.style.top=(I57-_top)+"px"; popup.style.left=(o58-i1y)+"px"; i57.appendChild(popup); function o2c(){var Ox=popup.contentWindow.document; if (!Ox){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 O9=parseInt(popup.clientHeight); if (o9==0)o9=parseInt(popup.offsetWidth); if (O9==0)O9=parseInt(popup.offsetHeight); var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var I57=O2s/2-O9/2+l55(X.O1.document); var o58=o2s/2-o9/2+_GetScrollLeft(X.O1.document); popup.style.top=(I57-_top)+"px"; popup.style.left=(o58-i1y)+"px"; Ox.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.P[014]))?X.i7: "")+X.P[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.P[7]+"' alt='' /></td></tr></table>"); html.write("</div>"); html.write("</body>"); html.write("\x3ca href=\""+X.i7+"\" id=\"realStylesFolder\" style=\'display:none;\' />"); html.write("</html>"); Ox.write(html.toString()); Ox.close(); popup.style.visibility="visible"; function Iw(){var O58; var l58; var i58; var I58; try {O58=Ox.getElementById("header"); l58=Ox.getElementById("closePopup"); i58=Ox.getElementById("title"); I58=Ox.getElementById("mainFrame"); O58.className="header"; I58.className="frame"; i58.innerHTML=l53; HTMLEditor.ik(l58,"click",O57); I54.O56=O57; HTMLEditor.ik(O58,"mousedown", function (event){if (event.srcElement && event.srcElement.tagName.toUpperCase()=="IMG")return false; var le=I54.o59(HTMLEditor.is_ie?popup.contentWindow.event:event); return le; } ); if (HTMLEditor.is_Safari){Ox.body.addEventListener("mouseup",O59, false); }function l59(t){if (t.target.tagName.toUpperCase()=="INPUT" || t.target.tagName.toUpperCase()=="TEXTAREA" || t.target.tagName.toUpperCase()=="SELECT")return true; if (HTMLEditor.is_Safari)if (t.target.tagName.toUpperCase()=="TABLE" || t.target.tagName.toUpperCase()=="TR" || t.target.tagName.toUpperCase()=="TD" || t.target.tagName.toUpperCase()=="DIV")return true; return false; }if (HTMLEditor.is_ie){Ox.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {Ox.onmousedown=l59; }if (!HTMLEditor.is_ie){setTimeout( function (){popup.style.top=parseInt(popup.style.top)-1+"px"; popup.style.left=parseInt(popup.style.left)-1+"px"; } ,2); setTimeout( function (){popup.style.top=parseInt(popup.style.top)+1+"px"; popup.style.left=parseInt(popup.style.left)+1+"px"; } ,5); }if (typeof i53=="function"){try {i53(popup); }catch (t){alert("Exception in open Popup("+l53+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var i59=Ox.getElementsByTagName("input"); for (var i=0; i<i59.length; i++){i59[i].setAttribute("autocomplete","off"); }}}catch (t){try {HTMLEditor.Ic(l58,"click",O57); }catch (t){}setTimeout(Iw,012); return false; }}setTimeout(Iw,012); } ; setTimeout(o2c,024); return popup; } ; HTMLEditor.prototype.O53.prototype.o56= function (I53){var popup=this ; var X=this.X; var _iframe=this.iframe; var I1x=this.I1x; function I59(l2d,O1p){var lk; try {lk=l2d.removeChild(O1p); delete lk; }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.l10){if (HTMLEditor.is_Safari){X.I17(X.lq(),X.l10); X.l10=null; }if (HTMLEditor.is_ie){try {X.l10.select(); }catch (t){}}X.l10=null; }try {X.focusEditor(); }catch (t){}}if (typeof I53=="function"){try {I53(); }catch (t){} ; }try {HTMLEditor.Ic(_iframe.contentWindow.document.getElementById("closePopup"),"click",popup.O56); _iframe.style.display="none"; if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X._NoPaste){X.m= true; setTimeout( function (){X.m= false; } ,03720); }if (typeof popup.o54!="function" || (HTMLEditor.is_Safari && !HTMLEditor.ok)){I59(_iframe.parentNode,_iframe); delete popup; }}catch (t){}} ,012); return false; };var O5a=null; var o57=null,I56=null; var l5a=0; var i5a=0; function I5a(){if (document.all && document.body.attachEvent){if (document.body.setCapture)document.body.setCapture(); document.body.attachEvent("onmousemove",o5b); document.body.attachEvent("onmouseup",O59); }else if (document.addEventListener){document.addEventListener("mousemove",o5b, false); document.addEventListener("mouseup",O59, false); }O5b(O5a); }function O59(){if (document.all && document.body.detachEvent){document.body.detachEvent("onmousemove",o5b); document.body.detachEvent("onmouseup",O59); if (document.body.releaseCapture)document.body.releaseCapture(); }else if (document.removeEventListener){document.removeEventListener("mousemove",o5b, false); document.removeEventListener("mouseup",O59, false); }l5b(O5a); O5a=null; }function o5b(t){try {i5b(t); HTMLEditor._stopEvent(t); l5a=t.clientX; i5a=t.clientY; }catch (w){O59(); }return false; }function O5b(I5b){if (I56!=null && I5b.iframe.parentNode!=I56.parentNode){I56.parentNode.removeChild(I56); I56=null; }if (o57!=null && I5b.iframe.parentNode!=o57.parentNode){o57.parentNode.removeChild(o57); o57=null; }if (I56==null){I56=document.createElement("div"); I56.style.display=""; I56.style.position="absolute";I56.style.margin="0px";I56.style.padding="0px";I56.style.top="0px"; I56.style.left="0px"; var o55=parseInt(document.body.clientHeight); if (o55<=0)o55=document.body.offsetHeight; I56.style.height=o55+"px"; o55=parseInt(document.body.clientWidth); if (o55<=0)o55=document.body.offsetWidth; I56.style.width=o55+"px"; I56.style.zIndex="20000"; I5b.iframe.parentNode.appendChild(I56); }if (o57==null){o57=document.createElement("SPAN"); o57.className="MoveSpan"; o57.style.position="absolute"; o57.style.zIndex=0141520; I5b.iframe.parentNode.appendChild(o57); }o57.style.visibility="visible"; I56.style.visibility="visible"; var o5c=parseInt(I5b.iframe.style.borderTopWidth)*2; o57.style.top=I5b.iframe.style.top; o57.style.left=I5b.iframe.style.left; var o9=I5b.iframe.clientWidth; var O9=I5b.iframe.clientHeight; if (o9==0)o9=I5b.iframe.offsetWidth; if (O9==0)O9=I5b.iframe.offsetHeight; o57.style.width=parseInt(o9)+((HTMLEditor.is_ie)?(parseInt(o5c)): (0-parseInt(o5c)))+"px"; o57.style.height=parseInt(O9)+((HTMLEditor.is_ie)?(parseInt(o5c)): (0-parseInt(o5c)))+"px"; o57.style.cursor="move"; I56.style.cursor="move"; }function l5b(I5b){try {I5b.iframe.style.top=o57.style.top; I5b.iframe.style.left=o57.style.left; o57.style.visibility="hidden"; I56.style.visibility="hidden"; }catch (t){}}function i5b(t){var O5c=O5a.l5c; var i5c=O5a.I5c; var ll=o57; var left=0; var top=0; if (document.all){left=t.clientX*1+_GetScrollLeft(document)-O5c; top=t.clientY*1+l55(document)-i5c; }else {left=t.pageX*1-O5c; top=t.pageY*1-i5c; }if (left<0){left=0; }if (top<0){top=0; }ll.style.left=(left-O5a.i1y)+"px"; ll.style.top=(top-O5a._top)+"px"; if (HTMLEditor.is_Safari){O5a.iframe.style.top=o57.style.top; O5a.iframe.style.left=o57.style.left; }}HTMLEditor.prototype.O53.prototype.o59= function (t){if (!HTMLEditor.is_ie && t.target.tagName.toUpperCase()=="IMG" && t.target.id=="closePopup")return true; O5a=this ; this.l5c=(t.offsetX==null)?t.layerX:t.offsetX; this.I5c=(t.offsetY==null)?t.layerY:t.offsetY; if (HTMLEditor.is_ie){var ll=t.srcElement; while (ll && ll.tagName.toUpperCase()!="BODY"){ this.l5c+=parseInt(ll.offsetLeft); this.I5c+=parseInt(ll.offsetTop); ll=ll.offsetParent; if (ll){if (ll.clientLeft)this.l5c+=parseInt(ll.clientLeft); if (ll.clientTop)this.I5c+=parseInt(ll.clientTop); }}var o5c=parseInt(this.iframe.style.borderWidth)*2; this.l5c+=o5c; this.I5c+=o5c; }l5a=t.clientX; i5a=t.clientY; var l2s=HTMLEditor.i2s(this.iframe.parentNode, false); this._top=l2s._top; this.i1y=l2s.i1y; HTMLEditor._stopEvent(t); I5a(); return false; } ; HTMLEditor.i2s= function (i57,Im){var position=HTMLEditor.o5d(i57); if (HTMLEditor.is_ie && !Im){var borderTopWidth; var borderLeftWidth; if ((/MSIE (7)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat"){borderTopWidth=2; borderLeftWidth=2; }else {var O5d=(document.compatMode=="BackCompat")?document.body:document.documentElement; var top=HTMLEditor.Iy(O5d,"border-top-width").toUpperCase(); borderTopWidth=parseInt(HTMLEditor.Iy(O5d,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; if (borderTopWidth==0){if (top=="THIN")borderTopWidth=1; else if (top=="MEDIUM")borderTopWidth=2; else if (top=="THICK")borderTopWidth=4; }var left=HTMLEditor.Iy(O5d,"border-left-width").toUpperCase(); borderLeftWidth=parseInt(HTMLEditor.Iy(O5d,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; if (borderLeftWidth==0){if (left=="THIN")borderLeftWidth=1; else if (left=="MEDIUM")borderLeftWidth=2; else if (left=="THICK")borderLeftWidth=4; }if (borderLeftWidth==0 && borderTopWidth==0 && typeof O5d.border!="undefined" && O5d.border!=null && !isNaN(parseInt(O5d.border)))borderLeftWidth=borderTopWidth=parseInt(O5d.border); }position.y-=borderTopWidth; position.x-=borderLeftWidth; }else if (HTMLEditor.o11){position.y--; position.x--; }return {_top:position.y,i1y:position.x } ; };HTMLEditor.getOffset= function (O1p){var position=HTMLEditor.i2s(O1p, false); return {y:position._top,x:position.i1y } ; };function l55(l5d){if (l5d.documentElement && l5d.documentElement.scrollTop){return l5d.documentElement.scrollTop; }else {return l5d.body.scrollTop; }}function obout_scrollElement(ic){try {var anchor; if (document.all)anchor=document.createElement("td"); else anchor=document.createElement("button"); anchor.style.width="0px"; anchor.style.height="20px"; if (!document.all)ic.parentNode.insertBefore(anchor,ic); else {var i5d=document.createElement("td"); i5d.style.width="0px"; i5d.style.height="20px"; ic.parentNode.insertBefore(i5d,ic); i5d.focus(); ic.parentNode.removeChild(i5d); var I1u=ic.nextSibling; if (I1u==null)ic.parentNode.appendChild(anchor); else ic.parentNode.insertBefore(anchor,I1u); }anchor.focus(); if (!document.all)anchor.blur(); ic.parentNode.removeChild(anchor); }catch (t){}}function _GetScrollDiffer(ic,Im){if (document.all && document.compatMode!="BackCompat")return true; do {ic=ic.parentNode; if (ic.clientHeight>0 && ic.scrollHeight && ic.scrollHeight>0)if (ic.scrollHeight>ic.clientHeight){return true; }}while (ic && ic.tagName.toUpperCase()!="BODY");return false; }function _GetScrollLeft(l5d){if (l5d.documentElement && l5d.documentElement.scrollLeft){return l5d.documentElement.scrollLeft; }else {return l5d.body.scrollLeft; }}HTMLEditor.prototype._Mozilla= function (I5d){if (!HTMLEditor.is_ie && !I5d && HTMLEditor.I12(this.O1b()).length>0){var l37=this.I1.body.cloneNode( true); var Oq=this.lq(); var i1b=this.Iq(Oq); this.i17(Oq); var ll=i1b.startContainer; var o5e=i1b.startOffset; var O5e=[]; while (ll.nodeType==3 || ll.tagName.toUpperCase()!="BODY"){var I37=0; while (ll.previousSibling){I37++; ll=ll.previousSibling; }O5e.push(I37); ll=ll.parentNode; }ll=i1b.endContainer; var l5e=i1b.endOffset; var i5e=[]; while (ll.nodeType==3 || ll.tagName.toUpperCase()!="BODY"){var I37=0; while (ll.previousSibling){I37++; ll=ll.previousSibling; }i5e.push(I37); ll=ll.parentNode; } this.I1.body.innerHTML=""; while (l37.firstChild){ this.I1.body.appendChild(l37.firstChild); }var I5e=this.I1.body; for (var i=O5e.length-1; i>=0; i--){I5e=I5e.childNodes.item(O5e[i]); }var o5f=this.I1.body; for (var i=i5e.length-1; i>=0; i--){o5f=o5f.childNodes.item(i5e[i]); }var X=this ; this.O1.setTimeout( function (){Oq=X.lq(); i1b=X.Iq(); i1b.setStart(I5e,o5e); i1b.setEnd(o5f,l5e); X.I17(Oq,i1b); } ,012); }};HTMLEditor.o5a= function (){ this.iframe=null; this.O5f=null; this.l5f=null; this.i5f=null; };HTMLEditor.prototype.openPopup= function (l53,l1w,i53,I53,O54){var X=this ; if (X.o2==null)if (HTMLEditor.is_Safari){var Oq=X.lq(); var iq=X.Iq(Oq); X.l10=iq.cloneRange(); }if (HTMLEditor.is_ie && (X.lq().type=="Text" || X.lq().type=="None"))try {X.l10=X.Iq(X.lq()).duplicate(); }catch (t){}function 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_"+l1w; if (HTMLEditor.is_ie)popup.src="javascript:false;"; var o5a=new HTMLEditor.o5a(); o5a.iframe=popup; o5a.enableEvents= function (){} ; o5a.disableEvents= function (){} ; if (!this.o2){ this.o2=[]; HTMLEditor.o2=this.o2; }if (this.o2.length>0)this.o2[X.o2.length-1].disableEvents(); this.o2.push(o5a); o5a.number=this.o2.length; o5a.I53=I53; if (typeof O54=="undefined")popup.className=l1w+"_safari"; else popup.className=l1w; 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 O9=0144; var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; popup.style.top=O2s/2-O9/2+X.A.scrollTop+"px"; popup.style.left=o2s/2-o9/2+X.A.scrollLeft+"px"; this.A.appendChild(popup); function O57(event){if (HTMLEditor.is_ie)event=popup.contentWindow.event; if (X.o2)if (o5a.number==X.o2.length)if (event.type=="click")X.o56(o5a.I53); HTMLEditor._stopEvent(event); return false; } ; function I5f(){popup=X.O1.document.getElementById(X._hiddenContent+"_ifr_popup_"+l1w); o5a.Ox=popup.document; if (!o5a.Ox){if (HTMLEditor.o29 || HTMLEditor.o11){X.O1.setTimeout(I5f,012); return false; }else {X.O1.alert("ERROR: IFRAME can't be initialized."); }}var o55; var o9=(typeof(popup.clientWidth)=="number")?(popup.clientWidth): (X.parseInt(popup.clientWidth)); var O9=(typeof(popup.clientHeight)=="number")?(popup.clientHeight): (X.parseInt(popup.clientHeight)); var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; popup.style.top=O2s/2-O9/2+X.A.scrollTop+"px"; popup.style.left=o2s/2-o9/2+X.A.scrollLeft+"px"; o5a.Ox.open(); var html=new o2a(); html.write("<html>"); html.write("<head>"); html.write("\x3clink rel=\"stylesheet\" href=\""+((!/WebResource\.axd/ig.test(X.P[014]))?X.i7: "")+X.P[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.P[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.Ox.write(html.toString()); o5a.Ox.close(); function Iw(){var O58; var l58; var i58; var I58; try {O58=o5a.Ox.getElementById("header"); l58=o5a.Ox.getElementById("closePopup"); i58=o5a.Ox.getElementById("title"); I58=o5a.Ox.getElementById("mainFrame"); O58.className="header"; I58.className="frame"; i58.innerHTML=l53; l58.onclick=O57; X.o18(); function o5g(ij){if (ij)if (ij.type=="mousedown" && ij.button!=2){o5a.O5g=new X.Object; o5a.O5g.top=X.parseInt(popup.style.top)+"px"; o5a.O5g.left=X.parseInt(popup.style.left)+"px"; o5a.O5g.clientY=ij.clientY; o5a.O5g.clientX=ij.clientX; o5a.l5g= true; if (HTMLEditor.is_ie){popup.unselectable="on"; for (var i=0; i<o5a.Ox.all.length; i++)o5a.Ox.all(i).unselectable="on"; }}else if (ij.type=="mouseup" || ij.type=="mouseout"){o5a.l5g= false; delete o5a.O5g; o5a.O5g=null; if (HTMLEditor.is_ie){popup.unselectable="off"; for (var i=0; i<o5a.Ox.all.length; i++)o5a.Ox.all(i).unselectable="off"; }}else if (ij.type=="mousemove"){if (o5a.l5g){o5a.O5g.top+=ij.clientY-o5a.O5g.clientY; o5a.O5g.left+=ij.clientX-o5a.O5g.clientX; o5a.iframe.style.top=o5a.O5g.top+"px"; o5a.iframe.style.left=o5a.O5g.left+"px"; }}return true; }HTMLEditor.Iv(O58,["mousedown","mouseup","mousemove","mouseout"], function (event){return o5g(HTMLEditor.is_ie?popup.contentWindow.event:event); } ); function l59(t){if (t.target.tagName.toUpperCase()=="INPUT" || t.target.tagName.toUpperCase()=="TEXTAREA" || t.target.tagName.toUpperCase()=="SELECT")return true; if (HTMLEditor.is_Safari)if (t.target.tagName.toUpperCase()=="TABLE" || t.target.tagName.toUpperCase()=="TR" || t.target.tagName.toUpperCase()=="TD" || t.target.tagName.toUpperCase()=="DIV")return true; return false; }if (HTMLEditor.is_ie){o5a.Ox.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {o5a.Ox.onmousedown=l59; }if (!HTMLEditor.is_ie){X.O1.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)-1+"px"; popup.style.left=X.parseInt(popup.style.left)-1+"px"; } ,2); X.O1.setTimeout( function (){popup.style.top=X.parseInt(popup.style.top)+1+"px"; popup.style.left=X.parseInt(popup.style.left)+1+"px"; } ,5); }if (typeof i53=="function"){try {i53(o5a.iframe); }catch (t){X.O1.alert("Exception in open Popup("+l53+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var i59=o5a.Ox.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.Ic(l58,"click",O57); }catch (t){}X.O1.setTimeout(Iw,012); return false; }}X.O1.setTimeout(Iw,012); } ; X.O1.setTimeout(I5f,024); return o5a.iframe; } ; HTMLEditor.prototype.o56= function (I53){var X=this ; function I59(l2d,O1p){var lk; try {lk=l2d.removeChild(O1p); delete lk; }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.l10){X.I17(X.lq(),X.l10); X.l10=null; }if (typeof I53=="function"){try {I53(); }catch (t){} ; }if (o5a.i5f){o5a.i5f.blur(); }var Oq=X.lq(); var iq=X.Iq(Oq); X.I17(Oq,iq); X.focusEditor(); X.focusEditor(); I59(X.A,o5a.iframe); X.O1.setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); X.I17(Oq,iq); X.focusEditor(); X.focusEditor(); } ,012); } ,012); }else {if (typeof I53=="function"){try {I53(); }catch (t){} ; }I59(X.A,o5a.iframe); }if (X.o2.length==0){X.o2=null; HTMLEditor.o2=null; X.popupClosed(); if (HTMLEditor.is_ie)if (X.l10){try {X.l10.select(); }catch (t){} ; }try {X.focusEditor(); }catch (t){}}}return false; };HTMLEditor.prototype._setClassName= function (name){try {if (this.l1 && this.mode()=="html" && !this.isPopup()){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; var Oq=this.lq(); var iq=this.Iq(Oq); var i1b=null; var i5g= false; if (this.isControl())return; if ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)){i1b=this.I1b(); }else if (!HTMLEditor.is_Safari){i1b=this.o3x(); i5g= true; }if (i1b!=null && i1b.length>0){var I5g= false; this.i10(); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var O42= false; try {while (par && par.childNodes.length==1 && HTMLEditor.O1j(par.tagName)){var il=par.tagName.toUpperCase(); var o5h=par.style?par.style.cssText: ""; var O5h=HTMLEditor.O3b(par,["class"]); if (il=="SPAN" && par.className!=HTMLEditor.om && O5h.length==0 && (par.className.length>0 || name.length>0)){I5g= true; par.className=name; if (name==""){par.removeAttribute("class"); if (o5h.length==0){var parent=par.parentNode; while (par.firstChild)parent.insertBefore(par.firstChild,par); parent.removeChild(par); }}O42= true; break; }par=par.parentNode; }}catch (t){ this.O1.alert(""+i+" "+i1b.length+" : "+t.message); }par=i1b[i].parentNode; if (!O42){if (name !== ""){I5g= true; var lk=this.I1.createElement("SPAN"); lk.className=name; par.insertBefore(lk,i1b[i]); lk.appendChild(i1b[i]); }}}if (i5g){if (HTMLEditor.is_ie && this.O3x!=null){var Oq=this.lq(); var iq=this.Iq(Oq); iq.moveToBookmark(this.O3x); iq.select(); this.O3x=null; }else if (this.O3x!=null){if (this.O3x[0].nodeType==3){var Oq=this.lq(); var iq=this.I1.createRange(); iq.setStart(this.O3x[0],this.O3x[1]); iq.setEnd(this.O3x[0],this.O3x[1]); this.i17(Oq); this.I17(Oq,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 (i1b.length>0){iq=this.I1.createRange(); iq.setStart(i1b[0],0); iq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.i17(Oq); this.I17(Oq,iq); }}else {var Oq=this.lq(); var i3l=this.Iq(Oq); var I3l=this.Iq(Oq); var o49=this.I1.createElement("span"); var O49=this.I1.createElement("span"); i1b[0].parentNode.insertBefore(o49,i1b[0]); if (i1b[i1b.length-1].nextSibling)i1b[i1b.length-1].parentNode.insertBefore(O49,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(O49); try {i3l.moveToElementText(o49); I3l.moveToElementText(O49); i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }catch (t){}i1b[0].parentNode.removeChild(o49); i1b[i1b.length-1].parentNode.removeChild(O49); }}var X=this ; this.O1.setTimeout( function (){X.updateToolbar(); } ,5); if (!I5g){return false; }return true; }else {var parent=this.or(iq); if (HTMLEditor.o11)this.f= true; if (parent.nodeType==3){parent=parent.parentNode; }var o4u=parent.style?parent.style.cssText: ""; var O2z=HTMLEditor.O3b(parent,["class"]); if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.om && O2z.length==0){ this.i10(); parent.className=name; if (name==""){parent.removeAttribute("class"); if (o4u.length==0){var par=parent.parentNode; var l5h=null; var o38=0; var i5h,I5h; if (!HTMLEditor.is_ie){Oq=this.lq(); iq=this.Iq(Oq); l5h=iq.startContainer; o38=iq.startOffset; }else {i5h=iq.offsetLeft; I5h=iq.offsetTop; }while (parent.firstChild)par.insertBefore(parent.firstChild,parent); par.removeChild(parent); if (!HTMLEditor.is_ie){var iq=this.Iq(); iq.setStart(l5h,o38); iq.setEnd(l5h,o38); this.i17(Oq); this.I17(Oq,iq); }else {if (Oq.type.toLowerCase()!="control"){try {iq.moveToPoint(i5h,I5h); }catch (t){}}iq.select(); }}}var X=this ; this.O1.setTimeout( function (){X.updateToolbar(); } ,5); return true; }else if (HTMLEditor.o11)this.focusEditor(); }}return false; }catch (t){ this.O1.alert("setClass func: "+t.message); }};HTMLEditor.prototype.i45= function (O1p){if (this.relativeImages){var images=O1p.getElementsByTagName("IMG"); for (var i=0; i<images.length; i++){var o5i=images[i]; if (o5i.src.indexOf("http://")>=0){var O26=o5i.src; o5i.src="qwerty.gif"; var I37=o5i.src.indexOf("qwerty.gif"); if (O26.substr(0,I37)==o5i.src.substr(0,I37))O26=O26.substr(I37,O26.length-I37); o5i.src=O26; }}}};HTMLEditor.prototype._paste= function (Im,O36){var X=this ; var Oq=this.lq(); var iq=this.Iq(Oq); var i1y; var _top; if (!Im){i1y=iq.offsetLeft; _top=iq.offsetTop; this.l11(this.i35()); X.l14(); return; }if (this._NoPaste)return; i1y=iq.offsetLeft; _top=iq.offsetTop; var lk=this.I1.createElement("span"); var o1y; var O5i=this.o36("", false ,O36); if ((/<[\/]*p[\s>]+/i.test(O5i)) || (/<[\/]*h/i.test(O5i))){o1y=this.O1y(); }else {o1y=this.I1.createElement("SPAN"); o1y.id=HTMLEditor.om; if (!this.l11(HTMLEditor.getHTML(o1y, true)))return; o1y=this.I1.getElementById(HTMLEditor.om); o1y.id=null; o1y.removeAttribute("id"); o1y.setAttribute("para","no"); }lk.innerHTML=O5i; if (!o1y){return; } this.i45(lk); var par=o1y.parentNode; var l4p=o1y.getAttribute("para"); if (l4p!="no"){if (l4p.indexOf("left")>=0 && lk.firstChild){if (lk.firstChild.tagName && lk.firstChild.tagName.toUpperCase()=="P"){while (lk.firstChild.firstChild)o1y.previousSibling.appendChild(lk.firstChild.firstChild); lk.removeChild(lk.firstChild); }}if (l4p.indexOf("right")>=0 && lk.lastChild){if (lk.lastChild.tagName && lk.lastChild.tagName.toUpperCase()=="P"){while (lk.lastChild.lastChild)o1y.nextSibling.insertBefore(lk.lastChild.lastChild,o1y.nextSibling.firstChild); lk.removeChild(lk.lastChild); }}}var l5i=o1y; var i5i=null; if (lk.childNodes.length==0 && l4p.indexOf("left")>=0 && l4p.indexOf("right")>=0){if (o1y.nextSibling.firstChild){i5i=this.I1.createElement("span"); l5i=i5i; i5i.innerHTML="111"; o1y.previousSibling.appendChild(i5i); }while (o1y.nextSibling.firstChild)o1y.previousSibling.appendChild(o1y.nextSibling.firstChild); par.removeChild(o1y.nextSibling); }else {while (lk.firstChild)par.insertBefore(lk.firstChild,o1y); }setTimeout( function (){var Oq=X.lq(); var iq=X.Iq(Oq); if (Oq.type.toLowerCase()=="control"){while (iq.length>0)iq.remove(0); }try {iq.collapse( false); }catch (t){}X.focusEditor(); HTMLEditor.l1o(l5i,X); if (i5i)i5i.parentNode.removeChild(i5i); par.removeChild(o1y); HTMLEditor.O13(X.I1.body); X.l14(); iq.select(); } ,0144); };HTMLEditor.I30= function (o32,X,I5i){for (var i=0; i<o32.childNodes.length; i++){var i1u=o32.childNodes.item(i); if (i1u.nodeType==1){var lt=null; if (I5i)for (var oh=0; oh<HTMLEditor.O4x.length; oh++){if (HTMLEditor.O4x[oh][0].toLowerCase()==i1u.tagName.toLowerCase()){lt=HTMLEditor.O4x[oh]; break; }}if (lt){var span=X.I1.createElement("SPAN"); span.style["cssText"]=i1u.style["cssText"]; if (HTMLEditor.is_ie)span.style[lt[1]]=lt[2]; else span.style[lt[3]]=lt[2]; while (i1u.firstChild){span.appendChild(i1u.firstChild); }o32.insertBefore(span,i1u); o32.removeChild(i1u); i1u=span; }else if (i1u.tagName.toLowerCase()=="font"){var span=X.I1.createElement("SPAN"); var save=i1u.size; span.style["cssText"]=i1u.style["cssText"]; if (i1u.color)span.style.color=i1u.color; if (i1u.face)span.style.fontFamily=i1u.face; while (i1u.firstChild){span.appendChild(i1u.firstChild); }o32.insertBefore(span,i1u); o32.removeChild(i1u); if (save){var font=X.I1.createElement("FONT"); font.size=save; o32.insertBefore(font,span); if (span.style["cssText"].length>0){font.appendChild(span); i1u=span; }else {while (span.firstChild){font.appendChild(span.firstChild); }o32.removeChild(span); i1u=font; }}else i1u=span; }HTMLEditor.I30(i1u,X,I5i); }}};HTMLEditor.restoreOldTags= function (o32,Ox,X){for (var i=0; i<o32.childNodes.length; i++){var i1u=o32.childNodes.item(i); if (i1u.nodeType==1){if (i1u.tagName.toUpperCase()=="BR"){if (i1u.style && i1u.style.cssText && i1u.style.cssText.length>0){i1u.style.cssText=""; i1u.removeAttribute("style"); }continue; }if (!HTMLEditor.I2g(i1u) && i1u.tagName.toUpperCase()!="IMG"){var o4u=HTMLEditor.O4u(i1u); var o5j=o32; var O5j=HTMLEditor.I2g(i1u); for (var i2c=0; i2c<o4u.length; i2c++){var l5j=null; if (o4u[i2c][0].toLowerCase()=="color" && o4u[i2c][1])l5j=["color",o4u[i2c][1]];if (o4u[i2c][0].toLowerCase()=="backgroundcolor" && o4u[i2c][1])l5j=["backgroundColor",o4u[i2c][1]];if (o4u[i2c][0].toLowerCase()=="fontfamily" && o4u[i2c][1])l5j=["face",o4u[i2c][1]];var I37=HTMLEditor.O4x.length; if (l5j)I37=1; for (var oh=0; oh<I37; oh++){if (HTMLEditor.O4x[oh][3].toLowerCase()==o4u[i2c][0].toLowerCase() && HTMLEditor.O4x[oh][2].toLowerCase()==o4u[i2c][1].toLowerCase() || l5j){if (O5j){if (l5j){HTMLEditor.i5j(i1u,l5j[0],l5j[1],Ox); i1u.style[l5j[0]]=""; }else if (o4u[i2c][1]){HTMLEditor.i5j(i1u,o4u[i2c][0],o4u[i2c][1],Ox); i1u.style[o4u[i2c][0]]=""; }}else {var tagName=(l5j)?"FONT":HTMLEditor.O4x[oh][0].toUpperCase(); var I5j=Ox.createElement(tagName); if (l5j){if (l5j[0]=="color")I5j.color=l5j[1]; else if (l5j[0]=="face")I5j.face=l5j[1]; else I5j.style.cssText="background-color: "+l5j[1]; }o5j.insertBefore(I5j,i1u); I5j.appendChild(i1u); i1u.style.cssText=""; o4u[i2c][1]=null; for (var o5k=0; o5k<o4u.length; o5k++)if (o4u[o5k][1] && o4u[o5k][0].toLowerCase()!="textdecorationlinethrough" && o4u[o5k][0].toLowerCase()!="textdecorationunderline")i1u.style[o4u[o5k][0]]=o4u[o5k][1]; if (i1u.tagName.toLowerCase()=="span" && i1u.style.cssText=="" && HTMLEditor.l4v(i1u, false)==0){while (i1u.firstChild){I5j.appendChild(i1u.firstChild); }I5j.removeChild(i1u); i1u=I5j; }o5j=I5j; oh=I37; }}}}}HTMLEditor.restoreOldTags(i1u,Ox,X); }else if (i1u.nodeType==8){}}};HTMLEditor.i5j= function (o32,style,value,Ox){if (o32.childNodes.length==0){var I5j=Ox.createElement("SPAN"); o32.appendChild(I5j); I5j.style[style]=value; }else for (var i=0; i<o32.childNodes.length; i++){var i1u=o32.childNodes.item(i); if (i1u.nodeType==1){if (!i1u.style[style])i1u.style[style]=value; }else if (i1u.nodeType==3){var I5j=Ox.createElement("SPAN"); o32.insertBefore(I5j,i1u); I5j.appendChild(i1u); I5j.style[style]=value; }}};function Iy(O5k,l5k){var i5k=""; try {if (O5k.nodeType==1)if (O5k.ownerDocument.defaultView && O5k.ownerDocument.defaultView.getComputedStyle)i5k=O5k.ownerDocument.defaultView.getComputedStyle(O5k,"").getPropertyValue(l5k); else if (O5k.currentStyle){try {l5k=l5k.replace(/-(\w)/g, function (l3z,o22){return o22.toUpperCase(); } ); i5k=O5k.currentStyle[l5k]; }catch (w){}}}catch (t){}return i5k; }HTMLEditor.Iy=Iy; HTMLEditor.I5k= function (o5l){function O5l(){var O9=o5l.offsetHeight; var o9=o5l.offsetWidth; if (!document.all){O9-=6; o9-=2; }if (O9>parseInt(o5l.style.height) || o9>parseInt(o5l.style.width))return false; return true; }var l5l=o5l.innerHTML; var i=0; while (!O5l()){i++; o5l.innerHTML=l5l.substr(0,l5l.length-i-1)+"..."; }};HTMLEditor.i5l= function (event){HTMLEditor._stopEvent(event); return false; };HTMLEditor.I5l= function (X,o5m){if (o5m.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.ik(o5m,"dragstart",HTMLEditor.i5l); else HTMLEditor.ik(o5m,"draggesture",HTMLEditor.i5l); var o23,cell,O5m,div; var Ox=X.getDocument(); var l5m=Ox.createElement("TABLE"); if (o5m.tagName && o5m.tagName.toUpperCase()=="IMG"){l5m.style.display="inline"; }l5m.border="0"; l5m.cellSpacing="0"; l5m.cellPadding="0"; l5m.style.borderWidth="0px"; l5m.setAttribute(X.noContextMenuAttributeName(),"yes"); o23=l5m.insertRow(l5m.rows.length); O5m=o23.insertCell(o23.cells.length); O5m.style.fontSize="0px"; O5m.style.fontFamily="verdana"; O5m.style.padding="0px"; O5m.style.margin="0px"; O5m.style.borderWidth="0px"; O5m.setAttribute(X.noContextMenuAttributeName(),"yes"); cell=o23.insertCell(o23.cells.length); cell.vAlign="top"; cell.align="left"; cell.style.padding="0px"; cell.style.margin="0px"; cell.style.fontSize="0px"; cell.style.fontFamily="verdana"; cell.style.borderWidth="0px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.i7+"/pagebgright.jpg)"; cell.style.backgroundRepeat="repeat-y"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=Ox.createElement("DIV"); div.style.width="10px"; div.style.height="10px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.i7+"/pagebgtopright.jpg)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); o23=l5m.insertRow(l5m.rows.length); cell=o23.insertCell(o23.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.vAlign="top"; cell.align="left"; cell.style.backgroundImage="url("+X.i7+"/pagebgbottomwhite.gif)"; cell.style.backgroundRepeat="repeat-x"; cell.style.borderWidth="0px"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); div=Ox.createElement("DIV"); div.style.width="10px"; div.style.height="8px"; div.style.margin="0px"; div.style.padding="0px"; div.style.backgroundImage="url("+X.i7+"/pagebgbottomleftwhite.gif)"; div.style.backgroundRepeat="no-repeat"; div.innerHTML="&nbsp;"; div.style.borderWidth="0px"; cell.appendChild(div); cell=o23.insertCell(o23.cells.length); cell.style.fontSize="1px"; cell.style.fontFamily="arial"; cell.style.height="8px"; cell.style.width="10px"; cell.style.backgroundImage="url("+X.i7+"/pagebgbottomright.gif)"; cell.style.backgroundRepeat="no-repeat"; cell.style.borderWidth="0px"; cell.innerHTML="&nbsp;"; cell.setAttribute(X.noContextMenuAttributeName(),"yes"); if (o5m.tagName && o5m.tagName.toUpperCase()!="IMG"){var o1y=X.O1y(o5m); if (o1y){var parent=o1y.parentNode; parent.insertBefore(o5m,o1y); parent.removeChild(o1y); }}o5m.parentNode.insertBefore(l5m,o5m); O5m.appendChild(o5m); o5m.setAttribute(X.attachedIdAttributeName(),"yes"); };HTMLEditor.i5m= function (X,o5m){if (o5m.getAttribute(X.attachedIdAttributeName()) && o5m.getAttribute(X.attachedIdAttributeName()).length>0)return true; else return false; };HTMLEditor.I5m= function (X,o5m){if (o5m.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.Ic(o5m,"dragstart",HTMLEditor.i5l); else HTMLEditor.Ic(o5m,"draggesture",HTMLEditor.i5l); var i4g=X.Ot(o5m); if (i4g!=null){i4g.parentNode.insertBefore(o5m,i4g); i4g.parentNode.removeChild(i4g); o5m.removeAttribute(X.attachedIdAttributeName()); }};HTMLEditor.prototype.o5n= function (){var O5n=[]; var l5n=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>"()$%#*@&\-+=\/\\|><]/; var i5n=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>()$%#*@&\-+=\/\\|><]/; if (this.l1 && this.mode()=="html" && !this.isPopup()){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.I12(this.O1b()): ""; var Oq=this.lq(); var iq=this.Iq(Oq); var i1b; if (!this.isControl() && ((HTMLEditor.is_ie && iq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))i1b=this.I1b(); else i1b=this.I1b( true); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var I5n=-1; var o5o=-1; var O5o=""+i1b[i].data+""; var l5o=O5o.length; var i5o=""; var I5o= false; if (l5o==0){par.removeChild(i1b[i]); }else {for (var oh=0; oh<l5o; oh++){var o5p=O5o.substr(oh,1); if (o5p.charCodeAt(0)>=02620 && o5p.charCodeAt(0)<=02777)I5o= true; o5o=((I5o?i5n:l5n).test(o5p) || (o5p.charCodeAt(0)&0170000)==020000)?0: 1; if (o5o!=I5n){if (I5n>=0 && i5o.length>0){var O5p=this.I1.createTextNode(i5o); par.insertBefore(O5p,i1b[i]); if (isNaN(parseInt(i5o,012)) && I5n==1){O5n.push( {l5p: -1,i5p: (""+O5p.data+""),ref:O5p,I5g: false } ); }}i5o=""; I5n=o5o; }i5o+=o5p; }if (I5n>=0 && i5o.length>0){i1b[i].data=i5o; if (isNaN(parseInt(i5o,012)) && I5n==1)O5n.push( {l5p: -1,i5p: (""+i1b[i].data+""),ref:i1b[i],I5g: false } ); }}}Oq=this.lq(); if (i1b.length>0){if (!HTMLEditor.is_ie){iq=this.I1.createRange(); iq.setStart(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); iq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.i17(Oq); this.I17(Oq,iq); }else {var i3l=this.Iq(Oq); var o49=this.I1.createElement("span"); if (i1b[i1b.length-1].nextSibling)i1b[i1b.length-1].parentNode.insertBefore(o49,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(o49); try {i3l.moveToElementText(o49); i3l.setEndPoint("EndToStart",i3l); i3l.select(); }catch (t){}i1b[i1b.length-1].parentNode.removeChild(o49); }}}var I5p=[]; for (var i=0; i<O5n.length; i++){var o5q=O5n[i]; var O5q= {l5p: -1,i5p:o5q.i5p,ref: [o5q.ref],I5g: false } ; while (i+1<O5n.length){var l5q=O5n[i+1]; var par=HTMLEditor.o45(o5q.ref,l5q.ref); if (par!=null){var i5q=par.parent.childNodes.item(par.l25); var I5q=par.parent.childNodes.item(par.I25); if (i5q.nextSibling==I5q){var I1n= true; var current; current=o5q.ref; while (current!=i5q){if (current.nextSibling!=null){I1n= false; break; }current=current.parentNode; }if (!I1n){break; }current=l5q.ref; while (current!=I5q){if (current.previousSibling!=null){I1n= false; break; }current=current.parentNode; }if (!I1n){break; }O5q.i5p+=l5q.i5p; O5q.ref.push(l5q.ref); o5q=l5q; i++; continue; }}break; }I5p.push(O5q); }return I5p; };HTMLEditor.prototype.o1w= function (op){var X=this ; X.openWait(); setTimeout( function (){op(X.o5n()); } ,0); };HTMLEditor.prototype.l1j= function (i1b){var Oq=this.lq(); if (!HTMLEditor.is_ie){var iq=this.I1.createRange(); iq.setStart(i1b[0],0); iq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.i17(Oq); this.I17(Oq,iq); }else {var i3l=this.Iq(Oq); var I3l=this.Iq(Oq); var o49=this.I1.createElement("span"); var O49=this.I1.createElement("span"); i1b[0].parentNode.insertBefore(o49,i1b[0]); if (i1b[i1b.length-1].nextSibling)i1b[i1b.length-1].parentNode.insertBefore(O49,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(O49); try {i3l.moveToElementText(o49); var o5r=i3l.moveStart("character",1); i3l.moveStart("character",-o5r); I3l.moveToElementText(O49); o5r=I3l.moveEnd("character",-1); I3l.moveEnd("character",-o5r); i3l.setEndPoint("EndToEnd",I3l); i3l.select(); }catch (t){}i1b[0].parentNode.removeChild(o49); i1b[i1b.length-1].parentNode.removeChild(O49); }};HTMLEditor.prototype.O5r= function (i4d){var i1b=this.I1b(); var X=this ; var i5g= false; if (i1b.length==0)if (!HTMLEditor.is_Safari){i1b=this.o3x( true); i5g= true; }if (i1b!=null && i1b.length>0){ this.i10(); for (var i=0; i<i1b.length; i++){if (i4d)i1b[i].data=(""+i1b[i].data+"").toUpperCase(); else i1b[i].data=(""+i1b[i].data+"").toLowerCase(); }if (i5g){if (HTMLEditor.is_ie && this.O3x!=null){var Oq=this.lq(); var iq=this.Iq(Oq); 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 Oq=this.lq(); var iq=this.I1.createRange(); iq.setStart(this.O3x[0],this.O3x[1]); iq.setEnd(this.O3x[0],this.O3x[1]); this.i17(Oq); this.I17(Oq,iq); }else { this.l3x(this.O3x[0],this.O3x[0]); this.O3x[0].parentNode.removeChild(this.O3x[0]); } this.O3x=null; }}else this.l1j(i1b); this.O1.setTimeout( function (){X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); }};HTMLEditor.prototype.toUpperCase= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (this.isControl())return; this.O5r( true); };HTMLEditor.prototype.toLowerCase= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (this.isControl())return; this.O5r( false); };HTMLEditor.O37= function (ll){var l1n=ll.all; var i11=[]; var O3q=[];for (var i=0; i<l1n.length; i++){var a=l1n[i]; if (a.name && a.name.length>0){var il=a.tagName; var l5r=ll.getElementsByTagName(il); var I37=0; for (var oh=0; oh<l5r.length; oh++){if (l5r[oh]==a){I37=oh; break; }}O3q[il]=I37; i11.push([il,O3q[il],a.name]); }}return i11; };HTMLEditor.l39= function (ll,i11){for (var i=0; i<i11.length; i++){if (ll.getElementsByTagName(i11[i][0]).length>i11[i][1])ll.getElementsByTagName(i11[i][0])[i11[i][1]].name=i11[i][2]; }};HTMLEditor.i5r= function (ll){var l1n=ll.all; var i11=[]; var O3q=[];for (var i=0; i<l1n.length; i++){var a=l1n[i]; if (a.href && a.href.length>0 && !(a.src && a.src.length>0)){var il=a.tagName; var l5r=ll.getElementsByTagName(il); var I37=0; for (var oh=0; oh<l5r.length; oh++){if (l5r[oh]==a){I37=oh; break; }}O3q[il]=I37; i11.push([il,O3q[il],a.href]); }}return i11; };HTMLEditor.I11= function (l1g){var O3q=[];function I5r(I29,o22,O22,I2u,o39,o5s,O5s,l5s){var il=o22.replace(/^<([^\s>]+)/,"$1"); var i5s= true; var i=0; for ( ; i<O3q.length; i++){if (O3q[i][0]==il){i5s= false; break; }}if (i5s){O3q[i]=[il]; }O3q[i].push(o5s); }var l2o=new RegExp("(\x3c[^\\s>\x3c]+)([^>\x3c]*?)(href=)(\"|\')([^\\4]*?)(\\4)((?:[^>\x3c]*?)>)","ig"); l1g.replace(l2o,I5r); return O3q; };HTMLEditor.I5s= function (ll,i11){for (var i=0; i<i11.length; i++){ll.getElementsByTagName(i11[i][0])[i11[i][1]].href=i11[i][2]; }};HTMLEditor.l12= function (ll,i11){for (var oh=0; oh<i11.length; oh++){var l1n=ll.getElementsByTagName(i11[oh][0]); var i2c=1; for (var i=0; i<l1n.length; i++){try {if (!l1n[i].href)continue; if (i11[oh][i2c] && i11[oh][i2c].length>0){var o5t; if (HTMLEditor.is_ie){o5t=l1n[i].innerHTML; }l1n[i].href=i11[oh][i2c].replace(/&amp;/ig,"&"); if (HTMLEditor.is_ie){l1n[i].innerHTML=o5t; }}i2c++; }catch (w){}}}};HTMLEditor.O5t= function (ll){var l1n=ll.getElementsByTagName("IMG"); var i11=[]; for (var i=0; i<l1n.length; i++){var a=l1n[i]; i11.push((a.src && a.src.length>0)?a.src:null); }return i11; };HTMLEditor.l5t= function (l1g){var i11=[]; function I5r(I29,o22,O22,I2u,o39,o5s){i11.push(I29); return I29; }l1g.replace(/(<img(?:.*?)>)/ig,I5r); return i11; };HTMLEditor.i5t= function (l1g,i11){var i=-1; function I5r(I29,o22,O22,I2u,o39,o5s){i++; return i11[i]; }return l1g.replace(/(<img(?:.*?)>)/ig,I5r); };HTMLEditor.O12= function (l1g){var i11=[]; function I5r(I29,o22,O22,I2u,o39,o5s){i11.push(I2u); return I29; }l1g.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,I5r); return i11; };HTMLEditor.I5t= function (l1g){var i11=[[],[]]; function I5r(I29,o22,O22,I2u,o39,o5s){i11[0].push(I2u); return I29; }function i2b(I29,o22,O22,I2u,o39,o5s){i11[1].push(I2u); return I29; }l1g.replace(/(<img(?:.*?))(width=)([^\s>]+)(\s*)((?:.*?)>)/ig,I5r); l1g.replace(/(<img(?:.*?))(height=)([^\s>]+)(\s*)((?:.*?)>)/ig,i2b); return i11; };HTMLEditor.o5u= function (l1g,i11){var i=-1; var oh=-1; function I5r(I29,o22,O22,I2u,o39,o5s){i++; return o22+O22+i11[0][i]+o39+o5s; }function i2b(I29,o22,O22,I2u,o39,o5s){oh++; return o22+O22+i11[1][oh]+o39+o5s; }return l1g.replace(/(<img(?:.*?))(width=")([^\s>]+)(")((?:.*?)>)/ig,I5r).replace(/(<img(?:.*?))(height=")([^\s>]+)(")((?:.*?)>)/ig,i2b); };HTMLEditor.O5u= function (l1g){var i11=[]; function I5r(I29,o22){i11.push(o22); return I29; }l1g.replace(/(<area[^>]*?>)/ig,I5r); return i11; };HTMLEditor.l5u= function (l1g,i11){var i=-1; function I5r(I29,o22){i++; return i11[i]; }return l1g.replace(/(<area[^>]*?>)/ig,I5r); };HTMLEditor.i12= function (ll,i11){var l1n=ll.getElementsByTagName("IMG"); var i2c=0; for (var i=0; i<l1n.length; i++){if (!l1n[i].src)continue; if (i11[i2c] && i11[i2c].length>0){l1n[i].src=i11[i2c].replace(/&amp;/ig,"&"); }i2c++; }};HTMLEditor.i5u= function (l1g,i11){var i=-1; function I5r(I29,o22,O22,I2u,o39,o5s){i++; return o22+O22+i11[i]+o39+o5s; }return l1g.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,I5r); };HTMLEditor.O13= function (ll){var l1n=ll.getElementsByTagName("IMG"); for (var i=0; i<l1n.length; i++){if (l1n[i].getAttribute(HTMLEditor.ot) && l1n[i].getAttribute(HTMLEditor.ot).length>0){try {if (HTMLEditor.is_ie)HTMLEditor.Ic(l1n[i],"dragstart",HTMLEditor.i5l); else HTMLEditor.Ic(l1n[i],"draggesture",HTMLEditor.i5l); }catch (t){}if (HTMLEditor.is_ie)HTMLEditor.ik(l1n[i],"dragstart",HTMLEditor.i5l); else HTMLEditor.ik(l1n[i],"draggesture",HTMLEditor.i5l); }}};HTMLEditor.I14= function (id,Im){var I5u=document.getElementById(id); if (!I5u)return null; if (!HTMLEditor.is_Safari && I5u.className=="ST_div" && (typeof Im=="undefined" || Im=="undefined")){I5u.parentNode.style.display="none"; return null; }return null; var o5v=document.getElementById(id+"__disabling"); var i1y=0,_top=0; var ll=I5u; var parent=HTMLEditor.O5v(I5u); if (parent==null)parent=document.body; var O4z=HTMLEditor.l5v(ll,(HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)?document.body:parent, false); var O4z=HTMLEditor.l5v(ll,parent, false); i1y=O4z.i1y; _top=O4z._top; var i5v; if (o5v!=null)i5v=o5v; else {i5v=document.createElement("DIV"); i5v.className="DisableSpan"; i5v.id=id+"__disabling"; i5v.style.position="absolute"; i5v.style.zIndex=01750; i5v.style.visibility="visible"; }if (!HTMLEditor.is_ie || (HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)){ll=parent; if (o5v==null)i5v.I5v=[]; while (ll && ll.tagName && ll.tagName.toUpperCase()!="BODY"){if (ll.scrollTop)_top-=parseInt(ll.scrollTop); if (ll.scrollLeft)i1y-=parseInt(ll.scrollLeft); if (o5v==null && HTMLEditor.o5w(ll)){var O5w= {l5w:ll.scrollTop,i5w:ll.scrollLeft } ; var I5w=i5v.I5v.length; var l51=new Function("event","HTMLEditor_onParentScroll(event,\""+id+"__disabling"+"\",this,"+I5w+")"); i5v.I5v.push( {l51:l51,parent:ll,i16:O5w } ); HTMLEditor.ik(ll,"scroll",l51); }ll=ll.parentNode; }if (HTMLEditor.is_ie)parent=document.body; }if (o5v==null)parent.appendChild(i5v); i5v.style.top=_top+"px"; i5v.style.left=i1y+"px"; var o9=0; var O9=0; if (o9==0)o9=I5u.offsetWidth; if (O9==0)O9=I5u.offsetHeight; i5v.style.width=parseInt(o9)+"px"; i5v.style.height=parseInt(O9)+"px"; return id+"__disabling"; };HTMLEditor.l5v= function (i57,parent,Im){var ll=i57; var _top=0,i1y=0; while (ll && typeof ll!="undefined" && ll!=parent && ll.tagName.toUpperCase()!="HTML"){var borderTopWidth; var borderLeftWidth; i1y+=parseInt(ll.offsetLeft); _top+=parseInt(ll.offsetTop); ll=ll.offsetParent; if (ll && typeof ll!="undefined"){if (ll.clientLeft)i1y+=parseInt(ll.clientLeft); if (ll.clientTop)_top+=parseInt(ll.clientTop); if (!HTMLEditor.is_ie && ((Im && ll.tagName.toUpperCase()!="BODY") || (!Im && (ll.tagName.toUpperCase()=="BODY" || HTMLEditor.o11)))){borderTopWidth=parseInt(HTMLEditor.Iy(ll,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; borderLeftWidth=parseInt(HTMLEditor.Iy(ll,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; i1y+=borderLeftWidth; _top+=borderTopWidth; }if (HTMLEditor.is_ie && !Im && (ll.tagName.toUpperCase()=="TABLE" || (ll.tagName.toUpperCase()=="BODY" && document.compatMode=="BackCompat"))){var top=ll.tagName.toUpperCase()=="BODY"?HTMLEditor.Iy(ll,"border-top-width").toUpperCase(): ""; borderTopWidth=parseInt(HTMLEditor.Iy(ll,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; if (borderTopWidth==0){if (top=="THIN")borderTopWidth=1; else if (top=="MEDIUM")borderTopWidth=2; else if (top=="THICK")borderTopWidth=4; }var left=ll.tagName.toUpperCase()=="BODY"?HTMLEditor.Iy(ll,"border-left-width").toUpperCase(): ""; borderLeftWidth=parseInt(HTMLEditor.Iy(ll,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; if (borderLeftWidth==0){if (left=="THIN")borderLeftWidth=1; else if (left=="MEDIUM")borderLeftWidth=2; else if (left=="THICK")borderLeftWidth=4; }if (borderLeftWidth==0 && borderTopWidth==0 && typeof ll.border!="undefined" && ll.border!=null && !isNaN(parseInt(ll.border)))borderLeftWidth=borderTopWidth=parseInt(ll.border); i1y-=borderLeftWidth; _top-=borderTopWidth; }}}if (ll && typeof ll!="undefined" && HTMLEditor.is_ie && document.compatMode!="BackCompat"){var marginTop=parseInt(HTMLEditor.Iy(ll,"margin-top")); if (isNaN(marginTop))marginTop=0; var marginLeft=parseInt(HTMLEditor.Iy(ll,"margin-left")); if (isNaN(marginLeft))marginLeft=0; i1y+=marginLeft; _top+=marginTop; }if (!HTMLEditor.o11){ll=i57; while (ll && ll!=parent){if (ll.scrollTop)_top-=parseInt(ll.scrollTop); if (ll.scrollLeft)i1y-=parseInt(ll.scrollLeft); ll=ll.parentNode; }}return {_top:_top,i1y:i1y } ; };function HTMLEditor_onParentScroll(event,o5x,parent,i){var O1p=document.getElementById(o5x); var i16=O1p.I5v[i].i16; if (HTMLEditor.is_ie)parent=event.srcElement; O1p.style.top=parseInt(O1p.style.top)-(parent.scrollTop-i16.l5w)+"px"; O1p.style.left=parseInt(O1p.style.left)-(parent.scrollLeft-i16.i5w)+"px"; i16.l5w=parent.scrollTop; i16.i5w=parent.scrollLeft; }HTMLEditor.i18= function (id,Im){var I5u=document.getElementById(id); if (!I5u)return null; if (!HTMLEditor.is_Safari && I5u.className=="ST_div" && (typeof Im=="undefined" || Im=="undefined")){I5u.parentNode.style.display=""; return null; }var ll=document.getElementById(id+"__disabling"); if (ll){if (typeof ll.I5v!=undefined && ll.I5v!=null && ll.I5v.length>0){for (var i=0; i<ll.I5v.length; i++)HTMLEditor.Ic(ll.I5v[i].parent,"scroll",ll.I5v[i].l51); }ll.parentNode.removeChild(ll); }};HTMLEditor.o5w= function (ic){if (ic.clientHeight>0 && ic.scrollHeight && ic.scrollHeight>0){var clientHeight=ic.clientHeight; if (!HTMLEditor.is_ie){var borderTopWidth=parseInt(Iy(ic,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; var borderBottomWidth=parseInt(Iy(ic,"border-bottom-width")); if (isNaN(borderBottomWidth))borderBottomWidth=0; clientHeight+=(borderTopWidth+borderBottomWidth); }if (ic.scrollHeight>clientHeight){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientHeight<ic.offsetHeight)return true; }else return true; }}if (ic.clientWidth>0 && ic.scrollWidth && ic.scrollWidth>0){var clientWidth=ic.clientWidth; if (!HTMLEditor.is_ie){var borderLeftWidth=parseInt(Iy(ic,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; var borderRightWidth=parseInt(Iy(ic,"border-right-width")); if (isNaN(borderRightWidth))borderRightWidth=0; clientWidth+=(borderLeftWidth+borderRightWidth); }if (ic.scrollWidth>clientWidth){if (HTMLEditor.is_ie && document.compatMode!="BackCompat"){if (clientWidth<ic.offsetWidth)return true; }else return true; }}return false; };HTMLEditor.O5v= function (O1p){var ic=O1p; do {ic=ic.parentNode; if (HTMLEditor.o5w(ic))return ic; }while (ic && ic.tagName.toUpperCase()!="BODY");return ic; };if (typeof HTMLEditor.z!="function"){HTMLEditor.O5x=null; try {HTMLEditor.O5x=(document.all)?document.body.onload:window.onload; }catch (w){}HTMLEditor.z= function (t,i5h){if (typeof i5h=="undefined"){if (document.all)document.body.onload=HTMLEditor.O5x; else window.onload=HTMLEditor.O5x; if (HTMLEditor.O5x!=null && typeof HTMLEditor.O5x=="function")HTMLEditor.O5x(t); }HTMLEditor.Z= function (ij){if (ij){for (var i=0; i<HTMLEditor.l9.length; i++){if (HTMLEditor.l9[i].oa){var X=HTMLEditor.l9[i].X; if (X.Id && X.Id!=null){var ll; if (HTMLEditor.is_ie){ij=window.event; ll=ij.srcElement; }else {ll=ij.target; }while (ll && ll!=X.Id)ll=ll.parentNode; if (ll==null){var oe=X.Id.parentNode.removeChild(X.Id); if (oe) delete oe; X.Id=null; X.Oe=null; HTMLEditor.Id=null; if (X.O10){X.O10.select(); X.O10=null; }}}}}}return true; };setTimeout( function (){HTMLEditor.ik(document.body,"mousedown", function (event){var le= false; try {le=HTMLEditor.Z(HTMLEditor.is_ie?window.event:event); }catch (t){}return le; } ); } ,0454); if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function")){var l5x=window.Sys.WebForms.PageRequestManager.getInstance(); l5x.add_endRequest( function (){for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; if (X.R!=null){try {X.o2t(); }catch (I4u){} ; }}}} ); }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 i5x=window.Sys.WebForms.PageRequestManager.getInstance()._updateControls; var I5x=window.Sys.WebForms.PageRequestManager.getInstance(); window.Sys.WebForms.PageRequestManager.getInstance()._updateControls= function (){var o5y=[]; for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; var O5y=document.getElementById(X.mainDivId); var l5y= false; var i5y; if (O5y==null){l5y= true; }else {if (arguments && arguments.length && arguments.length>0 && arguments[0] && arguments[0].length){for (var i=0; i<arguments[0].length; i++){i5y=arguments[0][i].substr(1).replace(/\$/g,"_"); var I5y=document.getElementById(i5y); if (I5y!=null){var ic=O5y.parentNode; while (ic && ic!=I5y && ic.tagName.toUpperCase()!="BODY"){ic=ic.parentNode; }if (ic==I5y){l5y= true; break; }}}}}HTMLEditor.l9[oh].I9=l5y; if (l5y){try {X.on(); }catch (I4u){} ; if (typeof X.Ob=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.Ob); X.Ob=null; }HTMLEditor.l9[oh].oa= false; if (!X._autoFocus && !X._wasFocused && O5y!=null){X.focusEditor(); HTMLEditor.i18(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.i18(X.ShowQuickFormatDivId); }if (O5y!=null)X.UnlinkEditorOject(); if (X.R!=null){o5y.push(X.R); }}}}var o5z=i5x.apply(I5x,arguments); while (o5y.length>0){try {var O5z=o5y.pop(); var lk=O5z.parentNode.removeChild(O5z); delete lk; }catch (w){}}setTimeout( function (){var l5z=[]; for (var oh=0; oh<HTMLEditor.l9.length; oh++){var X=HTMLEditor.l9[oh].X; var O5y=document.getElementById(X.mainDivId); if (O5y==null){l5z.push(X); }else {if (X.isActivated && X.mainDivVisible && X.i1=="html"){HTMLEditor.ly(X,X.I1,!X.showAnchors); HTMLEditor.iy(X,X.I1,!X.showPlaceHolders); X.updateToolbar(); }try {X.o2t(); }catch (t){}}}for (var oh=0; oh<l5z.length; oh++){var X=l5z[oh]; try {X.o2t(); }catch (t){}X.UnlinkEditorOject(); HTMLEditor.oc(X); }} ,0); return o5z; } ; }if (typeof window.__doPostBack=="function"){var i5z=window.__doPostBack; window.__doPostBack= function (O4s,l4s){for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; if (document.getElementById(X.mainDivId)==null)continue; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X))return; }if (!(!X.AjaxCurrentContent && !X.O0))try {X.openWait(); }catch (t){} ; }}setTimeout( function (){for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; if (document.getElementById(X.mainDivId)==null)continue; if (HTMLEditor.is_Safari){try {X.Om(); }catch (t){} ; }}}i5z(O4s,l4s); } ,0); } ; }if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){var ip=window.Sys.WebForms.PageRequestManager.getInstance(); if (ip._oboutEditor_onFormSubmit==null || typeof ip._oboutEditor_onFormSubmit=="undefined"){ip._oboutEditor_onFormSubmit=ip._onsubmit; ip._onsubmit= function (){for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){HTMLEditor.l9[oh].X.Ip= false; }}var le= true; if (ip._oboutEditor_onFormSubmit!=null && typeof ip._oboutEditor_onFormSubmit!="undefined")le=ip._oboutEditor_onFormSubmit(); for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; if (!X.Ip){try {le=le && X.__submit(); }catch (w){}}X.Ip= false; }}return le; } ; }}if (HTMLEditor.S())if (window.Sys && typeof window.Sys!="undefined")if (window.Sys.UI && typeof window.Sys.UI!="undefined")if (window.Sys.UI.DomElement && typeof window.Sys.UI.DomElement!="undefined")if (typeof window.Sys.UI.DomElement.setVisible=="function"){var G=window.Sys.UI.DomElement.setVisible; window.Sys.UI.DomElement.setVisible= function (ll,value){G(ll,value); for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; if (document.getElementById(X.mainDivId)!=null){var ic=document.getElementById(X.mainDivId).parentNode; while (ic && ic!=ll && ic.tagName && ic.tagName.toUpperCase()!="BODY")ic=ic.parentNode; if (ic==ll){if (!value){if (X.mainDivVisible && X.Ir){X.setVisibility( false); }}else {if (X.it() && !X.mainDivVisible && X.Ir){X.setVisibility( true); }}}}}}};}if (typeof window.Page_ClientValidate=="function"){var I5z=window.Page_ClientValidate; window.Page_ClientValidate= function (o22){for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; var Ia=X.clientID; var Oa=document.getElementById(Ia); var I18=""; if (Oa==null){if (document.getElementsByName(Ia) && document.getElementsByName(Ia).length && document.getElementsByName(Ia).length>0)Oa=document.getElementsByName(Ia)[0]; }if (Oa!=null){if (X.clientValidation){I18=X.getContent(); }else {if (X.i1=="preview"){if (X.i15=="html")I18=X.O19; else I18=X.o15.value; }else if (HTMLEditor.is_ie){if (X.i1=="html"){I18=X.I1.body.innerHTML; }else {if (X.o15)I18=X.o15.value; }}else {I18=X.getHTML(); }I18=HTMLEditor.I12(I18); if (I18.length>0)if (I18.toLowerCase()=="<br />" || I18.toLowerCase()=="<br/>" || I18.toLowerCase()=="<br>")I18=""; else I18="content"; }Oa.value=I18; }HTMLEditor.l9[oh].Oa=Oa; }}var le=I5z(o22); for (var oh=0; oh<HTMLEditor.l9.length; oh++){if (HTMLEditor.l9[oh].oa){var X=HTMLEditor.l9[oh].X; var Oa=HTMLEditor.l9[oh].Oa; if (Oa!=null){Oa.value=""; }}}return le; } ; }};try {if (document.all)document.body.onload=HTMLEditor.z; else window.onload=HTMLEditor.z; }catch (w){setTimeout( function (){HTMLEditor.z(null, true); } ,0); }}HTMLEditor.o60=["img","strong","p","b","i","u","a","h1","h2","h3","h4","h5","h6","table","tbody","tr","td","ul","ol","li","span","div","font","xml","del","ins","em","sub","sup","hr","br"];HTMLEditor.O2q= function (html){var le=HTMLEditor.I12(html.replace(/[\0-\x1f]+/g," ")); var O60; le=le.replace(/^[^\0]+?<html(?:[^>]*?)>/gi,""); le=le.replace(/<\/html(?:[^>]*?)>[^\0]*$/gi,""); le=le.replace(/<head(?:[^>]*?)>[^\0]*?<\/head(?:[^>]*?)>/gi,""); le=le.replace(/<body[^>]*?>([^\0]*?)<\/body(?:[^>]*?)>/gi,"$1"); le=le.replace(/<\/?html(?:[^>]*?)>/gi,""); le=le.replace(/<\/?head(?:[^>]*?)>/gi,""); le=le.replace(/<\/?body(?:[^>]*?)>/gi,""); le=le.replace(/<!--(\w|\W)+?-->/ig,""); le=le.replace(/(<[\/]?)(?:o|v|x|p|w|\?xml):(\w+)([^>]*?>)/ig,"$1$2$3"); le=le.replace(/<(IMAGEDATA)([^>]*?)>/ig,"<img$2>"); le=le.replace(/<p[^>]*><p>&nbsp;<\/p><\/p>/ig,"<br>"); le=le.replace(/<p[^>]*?\/>/ig,"").replace(/<(p|div)[^>]*?>&nbsp;<\/(\1)[^>]*?>/ig,"").replace(/<(p|div)[^>]*?><\/(\1)[^>]*?>/ig,""); do {O60=le; le=le.replace(/<([^>]*)(?:class|size|lang|face|start|type|border|[ovwxp]:\w+)=(?:'[^']*'|"[^"]*"|[^> ]+)([^>]*)>/ig,"<$1$2>"); }while (le!=O60);var div=document.createElement("div"); div.innerHTML=le; function I20(ic){var I37=ic.childNodes.length; for (var i=0; i<ic.childNodes.length; i++){var i1u=ic.childNodes.item(i); if (i1u.nodeType==1){if (i1u.tagName.indexOf("/")>=0){i--; i1u.parentNode.removeChild(i1u); }else {var search=i1u.tagName.toLowerCase(); var lt= false; var l60=HTMLEditor.o60.length; for (var oh=0; oh<l60; oh++)if (HTMLEditor.o60[oh]==search){lt= true; break; }I20(i1u); if (!lt){i+=i1u.childNodes.length; while (i1u.firstChild)i1u.parentNode.insertBefore(i1u.firstChild,i1u); i1u.parentNode.removeChild(i1u); i--; }else {var i60=i1u.style.backgroundColor; var I60=i1u.style.color; i1u.style.cssText=""; i1u.removeAttribute("style"); if (i1u.getAttribute("width") && i1u.getAttribute("width").length>0)i1u.style.width=i1u.getAttribute("width"); if (i1u.width && i1u.width.length>0)i1u.style.width=i1u.width; i1u.width=""; try {i1u.removeAttribute("width"); }catch (t){}if (i1u.getAttribute("height") && i1u.getAttribute("height").length>0)i1u.style.height=i1u.getAttribute("height"); if (i1u.height && i1u.height.length>0)i1u.style.height=i1u.height; i1u.height=""; try {i1u.removeAttribute("height"); }catch (t){}if (search=="table"){i1u.style.borderLeftWidth="1px"; i1u.style.borderLeftColor="black"; i1u.style.borderLeftStyle="solid"; i1u.style.borderTopWidth="1px"; i1u.style.borderTopColor="black"; i1u.style.borderTopStyle="solid"; i1u.style.backgroundColor=i60; i1u.style.color=I60; }if (search=="td"){i1u.style.borderRightWidth="1px"; i1u.style.borderRightColor="black"; i1u.style.borderRightStyle="solid"; i1u.style.borderBottomWidth="1px"; i1u.style.borderBottomColor="black"; i1u.style.borderBottomStyle="solid"; i1u.style.backgroundColor=i60; i1u.style.color=I60; }if (search=="font" || search=="span"){i1u.style.backgroundColor=i60; i1u.style.color=I60; var O2z=i1u.attributes; var I37=0; for (var o5k=0; o5k<O2z.length; ++o5k){var a=O2z.item(o5k); if (!a.specified)continue; I37++; }if (I37==0 && i1u.style.cssText==""){i+=i1u.childNodes.length; while (i1u.firstChild)i1u.parentNode.insertBefore(i1u.firstChild,i1u); i1u.parentNode.removeChild(i1u); i--; }}}}}}}I20(div); le=HTMLEditor.I12(div.innerHTML); delete div; le=le.replace(/<[\/]?(xml|del|ins)[^>]*?>/ig,""); le=le.replace(/<(p|div)[^>]*?>/ig,""); le=le.replace(/<\/(p|div)[^>]*?>/ig,"<br>"); do {O60=le; le=le.replace(/<b><\/b>/ig,"").replace(/<i><\/i>/ig,"").replace(/<u><\/u>/ig,"").replace(/<strong><\/strong>/ig,"").replace(/<em><\/em>/ig,"").replace(/<sub><\/sub>/ig,"").replace(/<sup><\/sup>/ig,""); le=le.replace(/<span[^>]*?><\/span>/ig,"").replace(/<span>([^<]+?)<\/span>/ig,"$1"); le=le.replace(/<font[^>]*?><\/font>/ig,"").replace(/<font>([^<]+?)<\/font>/ig,"$1"); }while (le!=O60);le=le.replace(/&rsquo;/g,"'"); le=le.replace(/&lsquo;/g,"'"); le=le.replace(/&ndash;/g,"-"); le=le.replace(/&mdash;/g,"-"); le=le.replace(/&hellip;/g,"..."); le=le.replace(/&quot;/g,"\""); le=le.replace(/&ldquo;/g,"\""); le=le.replace(/&rdquo;/g,"\""); le=le.replace(/\cA/g,""); le=le.replace(/&bull;/g,""); le=le.replace(/[ ]+/g," ").replace(/(&nbsp;)+/g,"&nbsp;"); if (document.all)le=le.replace(/^[\0-\x1f]*&nbsp;/,""); return le; };HTMLEditor.prototype.o10= function (ij,clientX,clientY){var Oq; var iq; var parent; var X=this ; if (HTMLEditor.o11)this.f= true; X.i1f(); if (HTMLEditor.is_Safari && ij!=null){parent=ij.target; }else {Oq=X.lq(); iq=X.Iq(Oq); parent=HTMLEditor.getSelParent(X); }var o61= false; var O61=parent; var l61=parent; X.i61=[]; X.O10=null; while (l61.nodeType==3 || (l61.tagName && l61.tagName.toUpperCase()!="BODY")){var par=l61.parentNode; var I61=0; for ( ; I61<par.childNodes.length; I61++)if (par.childNodes.item(I61)==l61)break; X.i61.push(I61); l61=l61.parentNode; }setTimeout( function (){var o62=document.createElement("DIV"); o62.className="CNTXT_div"; var html=new o2a(); var O62=0; html.write("<table>"); X.Oe=[]; var l62=X._ContextMenu; for (var oh=0; oh<l62.length; oh++){l62[oh][3]= false; }while (parent!=null){if (parent.tagName){if (parent.getAttribute(HTMLEditor.Is) && parent.getAttribute(HTMLEditor.Is).length>0){}else {var I9=(O62>0); for (var oh=0; oh<l62.length; oh++){var i62=l62[oh][0].toUpperCase().split(" "); var I62= true; var tagName=parent.tagName; if (parent.getAttribute("dummytag") && parent.getAttribute("dummytag").length>0)tagName=parent.getAttribute("dummytag"); if (i62[0]==tagName.toUpperCase() && i62.length>1){var O2z=parent.attributes; var value=""; var name=""; I62= false; for (var i=0; i<O2z.length; ++i){var a=O2z.item(i); if (!a.specified)continue; name=a.name.toUpperCase(); value=a.value.toUpperCase(); if (name==i62[1]){I62= true; break; }}if (I62 && i62.length>2){if (i62[2]!=value){I62= false; }else {if (value.toLowerCase()=="application/x-mplayer2")o61= true; }}}if (parent.className && parent.className==HTMLEditor.om)I62= false; if (((i62[0]==tagName.toUpperCase()) || (HTMLEditor.contentEditable(parent, true) && i62[0].toLowerCase()=="#contenteditable#")) && !l62[oh][3] && !l62[oh][6] && I62){if (HTMLEditor.contentEditable(parent, true) && i62[0].toLowerCase()=="#contenteditable#"){}else {if (HTMLEditor.contentEditable(parent)!=null){continue; }}if (I9){X.Oe.push([null,null]); html.write("<tr><td nowrap><hr></td></tr>"); O62++; I9= false; }l62[oh][3]= true; var o63=HTMLEditor.is_ie || l62[oh][4]; if (l62[oh][5] && typeof l62[oh][5]=="function"){o63 &= l62[oh][5](X,parent); }if (o63){var l61=parent; var lg=[]; while (l61.tagName.toUpperCase()!="BODY"){var par=l61.parentNode; var I61=0; for ( ; I61<par.childNodes.length; I61++)if (par.childNodes.item(I61)==l61)break; lg.push(I61); l61=l61.parentNode; }X.Oe.push([l62[oh][1],lg,(l62[oh][5] && typeof l62[oh][5]=="string")]); }else {X.Oe.push([null,[]]); }if (l62[oh][1]==null)html.write("<tr><td nowrap><hr></td></tr>"); else html.write("<tr><td nowrap>&nbsp;&nbsp;&nbsp;"+l62[oh][2]+"</td></tr>"); O62++; }}}}parent=parent.parentNode; }html.write("</table>"); if (O62>0){if (HTMLEditor.is_ie){if (Oq.type.toLowerCase()=="control"){try {X.O10=X.I1.body.createControlRange(); while (iq.length>0){X.O10.add(iq.item(0)); iq.remove(0); try {iq.collapse( false); }catch (t){}}Oq.empty(); }catch (t){}}}var I1x=document.createElement("div"); I1x.innerHTML=html.toString(); var O63=I1x.firstChild; O63.className="CNTXT_menu"; for (var i=0; i<O62; i++){var l63=O63.rows.item(i); if (X.Oe[i][0])l63.className="CNTXT_item"; else l63.className="CNTXT_item_disable"; }function i63(){for (var i=0; i<O62; i++){var l63=O63.rows.item(i); var I63=l63.cells.item(0); I63.style.width="auto"; I63.style.verticalAlign="top"; I63.style.borderWidth="0px"; I63.style.margin="0px"; I63.style.padding="0px"; I63.style.fontWeight="normal"; if (X.Oe[i][0]){l63.className="CNTXT_item"; HTMLEditor.Iv([l63],["mouseover"], function (t){var ll; if (HTMLEditor.is_ie){t=window.event; ll=t.srcElement; }else {ll=t.target; }while (ll && (!ll.tagName || ll.tagName.toUpperCase()!="TR"))ll=ll.parentNode; ll.className="CNTXT_item_over"; return true; } ); HTMLEditor.Iv([l63],["mouseout"], function (t){var ll; if (HTMLEditor.is_ie){t=window.event; ll=t.srcElement; }else {ll=t.target; }while (ll && (!ll.tagName || ll.tagName.toUpperCase()!="TR"))ll=ll.parentNode; ll.className="CNTXT_item"; HTMLEditor._stopEvent(t); } ); HTMLEditor.Iv([l63],["mousedown"], function (t){var ll; if (HTMLEditor.is_ie){t=window.event; ll=t.srcElement; }else {ll=t.target; }while (ll && (!ll.tagName || ll.tagName.toUpperCase()!="TR"))ll=ll.parentNode; HTMLEditor._stopEvent(t); setTimeout( function (){var O2e= false; try {if (X.O10){if (X.O10.item(0).tagName.toUpperCase()!="EMBED"){X.O10.select(); X.O10=null; }else {while (X.O10.length>0){while (X.O10.length>0)X.O10.remove(0); try {X.O10.collapse( false); }catch (t){}}X.O10=null; }}else if (HTMLEditor.is_ie)if (iq!=null)try {iq.select(); }catch (t){}var o64=X.Oe[ll.rowIndex][0]; var O64=X.I1.body; var l64=X.I1.body; var i64=!(X.Oe[ll.rowIndex][2]); var lg=X.Oe[ll.rowIndex][1]; var oe=X.Id.parentNode.removeChild(X.Id); while (lg.length>0)O64=O64.childNodes.item(lg.pop()); while (X.i61.length>0)l64=l64.childNodes.item(X.i61.pop()); delete oe; if (HTMLEditor.is_Safari)if (X.l10){var I64=X.lq(); var i1b=X.l10; X.I17(I64,i1b); X.l10=null; }if (i64){X.i10(); O2e= true; }o64(X,O64,l64); X.Id=null; HTMLEditor.Id=null; X.Oe=null; }catch (w){try {if (O2e)X.I1e( false); if (HTMLEditor.is_ie){HTMLEditor.l1o(ll,X); }}catch (I13){}}} ,012); } ); }else {l63.className="CNTXT_item_disable"; }}}if (HTMLEditor.is_ie && o61)setTimeout( function (){X.O10=null; iq=null; X.I2e(null,i63);} ,0); else i63(); HTMLEditor.Iv([o62],["contextmenu"], function (t){try {if (HTMLEditor.is_ie)iq.select(); else X.I17(Oq,iq); }catch (o65){}HTMLEditor._stopEvent(t); return false; } ); o62.style.position="absolute"; o62.style.display=""; o62.appendChild(O63); o62.style.visibility="hidden"; var i57=X.A; var ll=X._textArea.parentNode.parentNode; var i1y=0,_top=0; if (!X._InsideOboutWindow)while (ll!=X.A){if (HTMLEditor.Iy(ll,"position").toLowerCase()=="absolute"){i57=X._textArea.parentNode.parentNode; var l2s=HTMLEditor.i2s((X.O1.document.compatMode=="BackCompat" && HTMLEditor.is_ie)?i57:ll, false); i1y=l2s.i1y; _top=l2s._top; break; }ll=ll.parentNode; }i57.appendChild(o62); var y; var x; var o55; var zIndex=045070; ll=X._iframe; var O65=HTMLEditor.i2s(X._iframe, false); while (ll && typeof ll!="undefined" && ll!=i57){var l65=parseInt(HTMLEditor.Iy(ll,"z-index")); if (!isNaN(l65) && l65>zIndex)zIndex=l65+1; ll=ll.parentNode; }y=clientY+O65._top-_top; x=clientX+O65.i1y-i1y; var o2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var O2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var Height=O2s+l55(X.O1.document); var Width=o2s+_GetScrollLeft(X.O1.document); var i65=o62.offsetHeight; var I65=o62.offsetWidth; var o66=y; var O66=x; if (o66+i65>Height)y-=o66+i65-Height; if (O66+I65>Width)x-=O66+I65-Width; o62.style.top=y+"px"; o62.style.left=x+"px"; X.Id=o62; HTMLEditor.Id=o62; o62.style.visibility="visible"; o62.style.zIndex=zIndex; }else { delete o62; X.Id=null; HTMLEditor.Id=null; }} ,0); if (ij!=null)HTMLEditor._stopEvent(ij); return false; };HTMLEditor.prototype.o1g= function (){var Oq; var iq; var parent; var X=this ; Oq=X.lq(); iq=X.Iq(Oq); parent=HTMLEditor.getSelParent(X); var o2s=X.I1.body.offsetWidth; var O2s=X.I1.body.offsetHeight; var O55=O2s/2; if (O55<=0)O55=024; var clientY=O55; var clientX=o2s/2; X.o10(null,clientX,clientY); };HTMLEditor.i21= function (ll,Ox,Im){var I21; if (HTMLEditor.is_ie && ll.tagName && (ll.tagName.toUpperCase()=="EMBED" || ll.tagName.toUpperCase()=="OBJECT")){var div=Ox.createElement("DIV"); try {div.innerHTML=ll.outerHTML; I21=div.firstChild; }catch (t){I21=ll; } delete div; }else I21=ll.cloneNode(Im); return I21; };HTMLEditor.o34= function (l66){var value; var I37; try {I37=parseInt(l66)-1; }catch (t){return l66; }switch (I37){case 1:value="Left"; break; case 2:value="Right"; break; case 3:value="Texttop"; break; case 4:value="Absmiddle"; break; case 5:value="Baseline"; break; case 6:value="Absbottom"; break; case 7:value="Bottom"; break; case 8:value="Middle"; break; case 011:value="Top"; break; default:value=l66.replace(/"/g,"&quot;"); }return value; };HTMLEditor.od= function (ij){if (ij.propertyName=="style.display")if (HTMLEditor.i66==null || typeof HTMLEditor.i66=="undefined"){HTMLEditor.i66= function (){for (var i=0; i<HTMLEditor.lv.length; i++){var parent=HTMLEditor.lv[i]; if (parent.Ov!=null)if (parent.Ov!=""+parent.style.display+""){if (typeof parent.Od=="function"){parent.Od( {srcElement:parent,propertyName: "style.display" } ); }}parent.Ov=parent.style.display; }setTimeout( function (){HTMLEditor.i66=null; } ,0); } ; setTimeout(HTMLEditor.i66,024); }};if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari)try {CSSStyleDeclaration.prototype.__defineSetter__("display", function (value){HTMLEditor.od( {srcElement:parent,propertyName: "style.display" } ); this.setProperty("display",value,"important"); } ); }catch (w){}HTMLEditor.lv=[]; HTMLEditor.ld= function (O1p){var le=[]; for (var i=0; i<HTMLEditor.lv.length; i++){var i16=HTMLEditor.lv[i]; if (i16!=O1p){le.push(i16); }}HTMLEditor.lv=le; };if (!HTMLEditor.is_ie)try {HTMLElement.prototype.__defineGetter__("innerText", function (){var html=new o2a( true); HTMLEditor.I66(this,html); return html.toString(); } );}catch (w){}HTMLEditor.I66= function (O2f,html){var i36=O2f.childNodes; for (var i=0; i<i36.length; i++){var ic=i36[i]; if (ic.nodeType==3)html.write(ic.nodeValue.replace("\n","")); if (ic.nodeType==1){var display=HTMLEditor.Iy(ic,"display"); var visibility=HTMLEditor.Iy(ic,"visibility"); if (HTMLEditor.o67(ic))html.write("\n"); if (HTMLEditor.O67(ic))html.write("\t"); if (display!="none" && visibility!="hidden")HTMLEditor.I66(ic,html); if (HTMLEditor.l67(ic))html.write("\n"); }}};HTMLEditor.o67= function (ll){var i67=" div table p pre ol ul blockquote form fieldset "; return (i67.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.l67= function (ll){var i67=" br div table tr p pre ol ul li hr blockquote form fieldset legend "; return (i67.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.O67= function (ll){var i67=" td li "; return (i67.indexOf(" "+ll.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.canHaveChildren= function (ic){if (HTMLEditor.is_ie)return ic.canHaveChildren; else return !/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(ic.tagName.toLowerCase()); };HTMLEditor.contentEditable= function (ll,Im){var I67=ll; while (ll!=null){try {var o68=null; if (ll.contentEditable!=null && typeof ll.contentEditable!="undefined" && !(HTMLEditor.is_Safari || HTMLEditor.o11)){if (ll.contentEditable!="inherit"){if (!ll.contentEditable || ll.contentEditable=="false")o68= false; else o68= true; }}else {var value=ll.getAttribute("contenteditable"); if (typeof value=="boolean")o68=value; else if (typeof value=="string" && value.toLowerCase()=="false")o68= false; else if (typeof value=="string" && value.toLowerCase()=="true")o68= true; }if (o68!=null && typeof o68=="boolean"){if (!o68){return ll; }return null; }}catch (w){}if (typeof Im!="undefined" && Im)return null; if (ll.tagName!=null && typeof ll.tagName!="undefined" && (ll.tagName.toUpperCase()=="BODY" || ll.tagName.toUpperCase()=="HTML"))break; ll=ll.parentNode; }return null; };HTMLEditor.prototype.i47= function (){var X=this ; var I47=this.lq(); var iq; try {iq=this.Iq(I47); }catch (w){return false; }var ll; if (!HTMLEditor.is_ie){ll=HTMLEditor.contentEditable(iq.startContainer); if (ll==null)ll=HTMLEditor.contentEditable(iq.endContainer); }else ll=HTMLEditor.contentEditable(HTMLEditor.getSelParent(X)); if (HTMLEditor.is_ie && ll!=null){try {iq.remove(ll); }catch (t){}iq=X.I1.body.createControlRange(); iq.add(ll); iq.select(); }else if (!HTMLEditor.is_ie && ll!=null){var Oq=X.lq(); var l17; if (ll.nextSibling!=null && ll.nextSibling.nodeType==3){l17=ll.nextSibling; }else {l17=X.I1.createTextNode(""); if (ll.nextSibling!=null)ll.parentNode.insertBefore(l17,ll.nextSibling); else ll.parentNode.appendChild(l17); }X.i17(Oq); var iq=X.Iq(Oq); iq.setStart(l17,0); iq.setEnd(l17,0); X.I17(Oq,iq); }return true; };HTMLEditor.l4d= function (t){var O68=t.keyCode?t.keyCode:t.which; var l68=t.shiftKey?t.shiftKey: ((O68==020)? true : false); if (((O68>=0101 && O68<=0132) && !l68) || ((O68>=0141 && O68<=0172) && l68))return true; else return false; };HTMLEditor.i68= {I68: 1,o69: 2,O69: 3,l69: 4,i69: 5,I69: 6,o6a: 7,O6a: 8,l6a: 011,i6a: 012,I6a: 013,o6b: 014 } ; HTMLEditor.O6b= function (O2f){return O2f.nodeType==HTMLEditor.i68.l6a?O2f:O2f.ownerDocument || O2f.document; } ; HTMLEditor.l6b= function (i6b){var Ox; if (i6b.nodeType==HTMLEditor.i68.l6a){Ox=i6b; }else {Ox=HTMLEditor.O6b(i6b); }if (HTMLEditor.is_ie && Ox.compatMode!="CSS1Compat"){return Ox.body; }return Ox.documentElement; };HTMLEditor.o5d= function (ll){var Ox=HTMLEditor.O6b(ll); var I6b=HTMLEditor.o29 && Ox.getBoxObjectFor && HTMLEditor.Iy(ll,"position")=="absolute" && (ll.style.top=="" || ll.style.left==""); var o6c=HTMLEditor.l2i && !HTMLEditor.i2n.i2n("1.8.0.11"); var l4p= {x: 0,y: 0 } ; var O6c=HTMLEditor.l6b(Ox); if (ll==O6c){return l4p; }var parent=null; var l6c; if (Ox.getBoxObjectFor && !I6b && !o6c){l6c=Ox.getBoxObjectFor(ll); var i6c=Ox.getBoxObjectFor(O6c); l4p.x=l6c.screenX-i6c.screenX; l4p.y=l6c.screenY-i6c.screenY; }else if (ll.getBoundingClientRect){l6c=ll.getBoundingClientRect(); var scrollTop=O6c.scrollTop; var scrollLeft=O6c.scrollLeft; l4p.x=l6c.left+scrollLeft; l4p.y=l6c.top+scrollTop; }else {var I6c=ll; while (ll && typeof ll!="undefined" && ll.tagName.toUpperCase()!="BODY" && ll.tagName.toUpperCase()!="HTML"){l4p.x+=parseInt(ll.offsetLeft); l4p.y+=parseInt(ll.offsetTop); ll=ll.offsetParent; if (ll && typeof ll!="undefined"){if (ll.clientLeft)l4p.x+=parseInt(ll.clientLeft); if (ll.clientTop)l4p.y+=parseInt(ll.clientTop); }}ll=I6c; if (HTMLEditor.o11 || (HTMLEditor.o2i && HTMLEditor.Iy(ll,"position")=="absolute")){l4p.y-=Ox.body.offsetTop; }parent=ll.offsetParent; while (parent && parent!=Ox.body){l4p.x-=parent.scrollLeft; if (!HTMLEditor.o11 || parent.tagName!="TR"){l4p.y-=parent.scrollTop; }parent=parent.offsetParent; }}return l4p; } ; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.Application && typeof window.Sys.Application!="undefined") && (window.Sys.Application.notifyScriptLoaded && typeof window.Sys.Application.notifyScriptLoaded!="undefined"))Sys.Application.notifyScriptLoaded();
