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.activeEditors=[]; HTMLEditor.l9= function (X){ this.X=X; this.id=X.W; this.O=X.O; this.i9= false; this.I9= true; this.oa=null; } ; HTMLEditor.Oa= function (O){for (var i=0; i<HTMLEditor.activeEditors.length; i++){if (O==HTMLEditor.activeEditors[i].O){return HTMLEditor.activeEditors[i].X; }}return null; };HTMLEditor.la= function (clientID){for (var i=0; i<HTMLEditor.activeEditors.length; i++){if (clientID==HTMLEditor.activeEditors[i].id){return HTMLEditor.activeEditors[i].X; }}return null; };function oboutGetEditor(ia){return HTMLEditor.Oa(ia); }function oboutGetEditorByClientId(ia){return HTMLEditor.la(ia); }HTMLEditor.Ia= function (id){for (var i=0; i<HTMLEditor.activeEditors.length; i++){if (id==HTMLEditor.activeEditors[i].id){return HTMLEditor.activeEditors[i].X; }}return null; };HTMLEditor.r= function (X){var id=X.W; var index=-1; for (var i=0; i<HTMLEditor.activeEditors.length; i++){if (id==HTMLEditor.activeEditors[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.activeEditors[index].X.R; HTMLEditor.activeEditors[index]=new HTMLEditor.l9(X); }else HTMLEditor.activeEditors.push(new HTMLEditor.l9(X)); if (HTMLEditor.S()){X.ob= function (Ob,lb){if (HTMLEditor.is_Safari && HTMLEditor.ib){if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.Browser && typeof window.Sys.Browser!="undefined") && (window.Sys.Browser.agent && typeof window.Sys.Browser.agent!="undefined")){Sys.Browser.agent=Sys.Browser.InternetExplorer; }}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.activeEditors.length; i++){if (id!=HTMLEditor.activeEditors[i].id){Oc.push(HTMLEditor.activeEditors[i]); }}HTMLEditor.activeEditors=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.ib)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.ib){var Ok=document.getElementById(X._hiddenContent+"_ifr_"+name); if (Ok!=null){HTMLEditor.Ic(Ok,"load",lj); document.body.removeChild(Ok); }oj=document.createElement("IFRAME"); oj.style.width="0px"; oj.style.height="0px"; oj.id=X._hiddenContent+"_ifr_"+name; HTMLEditor.lk(oj,"load",lj); document.body.appendChild(oj); Ok=document.getElementById(X._hiddenContent+"_ifr_"+name); Ok.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.lk(oj,"load",lj); oj.src=ia; document.body.appendChild(oj); }HTMLEditor.l8++; }ok(); }}};HTMLEditor.prototype.ik= function (ij){var Ik=ij.target; var ll=Ik.tagName.toUpperCase(); if (!this.mainDivVisible)return true; if (ll=="INPUT" || ll=="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.Il="OboutMSIEparagraph"; HTMLEditor.prototype.om= function (Om){if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (this.j>0){try { this.Im(); }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 On=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 In=this._formSubmit(); var oo=In[0]; On=In[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(On); }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.Oo && this.mainDivVisible)return false; try { this.Im(); }catch (t){} ; if (!this._textArea.form){try { this.Im(); }catch (t){} ; return true; }if (typeof Om!="undefined" && Om== 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 Io=this.ClientCancel; try {le=Io(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 Op= false; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){try {var lp=window.Sys.WebForms.PageRequestManager.getInstance(); if (lp._updatePanelIDs && lp._updatePanelIDs.length && lp._updatePanelIDs.length>0)Op= true; }catch (w){}}if (Op){setTimeout( function (){var lp=window.Sys.WebForms.PageRequestManager.getInstance(); var form=lp._form; lp._postBackSettings=lp._createPostBackSettings( true ,null,null); lp._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.O0= true; lp._onFormSubmit(); Function._validateParams=save; try {X.Im(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.om( true); } ,0); }}}};HTMLEditor.prototype.__submit= function (Om){ this.ip= true; if (document.getElementById(this.mainDivId)==null)return true; var X=this ; if (typeof EditorOnSubmit=="function"){if (!EditorOnSubmit(X,Om))return false; }X.j=0; if (typeof Om!="undefined"){var 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 Op= false; if ((window.Sys && typeof window.Sys!="undefined") && (window.Sys.WebForms && typeof window.Sys.WebForms!="undefined") && (window.Sys.WebForms.PageRequestManager && typeof window.Sys.WebForms.PageRequestManager!="undefined") && (typeof window.Sys.WebForms.PageRequestManager.getInstance=="function") && (window.Sys.WebForms.PageRequestManager.getInstance()!=null)){try {var lp=window.Sys.WebForms.PageRequestManager.getInstance(); if (lp._updatePanelIDs && lp._updatePanelIDs.length && lp._updatePanelIDs.length>0)Op= true; }catch (w){}}if (Op){setTimeout( function (){var lp=window.Sys.WebForms.PageRequestManager.getInstance(); var form=lp._form; lp._postBackSettings=lp._createPostBackSettings( true ,null,null); lp._additionalInput=null; form.__EVENTTARGET.value=X.clientID.replace(/_/ig,"$"); form.__EVENTARGUMENT.value=""; var save=Function._validateParams; Function._validateParams= function (){return null; } ; X.O0= true; lp._onFormSubmit(); Function._validateParams=save; try {X.Im(); }catch (t){} ; } ,0); }else {setTimeout( function (){X.om(Om); } ,0); }}}else {X.om(Om); }return true; };HTMLEditor.prototype.submit= function (Ip){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 Ip!="function"); if (typeof Ip=="function")Ip(); } ,0); }};HTMLEditor.getSelParent= function (X){var oq=X.Oq(); var lq=X.iq(oq); var parent=null; if (HTMLEditor.is_ie){if (oq.type.toLowerCase()=="control")parent=lq.item(0); else parent=X.Iq(lq); }else {parent=X.Iq(lq); if (parent.nodeType!=3 && lq.startContainer==lq.endContainer){var p=parent; parent=parent.childNodes.item(lq.startOffset); if (parent==null)parent=p; }}return parent; };HTMLEditor.isControl= function (Ik){var or=" legend fieldset "; return (or.indexOf(" "+Ik.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.prototype.Or= function (){var Ik=HTMLEditor.getSelParent(this ); while (Ik && Ik.tagName && Ik.tagName.toUpperCase()!="BODY"){if (HTMLEditor.isControl(Ik)){return true; }Ik=Ik.parentNode; }return false; };HTMLEditor.prototype.isControl= function (){try {var oq=this.Oq(); if (HTMLEditor.is_ie){if (oq.type.toLowerCase()=="control")return true; else return false; }else {var lq=this.iq(oq); var parent=this.Iq(lq); if (parent.nodeType!=3 && lq.startContainer==lq.endContainer){if (!parent.tagName)return false; if (lq.startContainer.childNodes.item(lq.startOffset)==null)return false; if (lq.startOffset==lq.endOffset && lq.startContainer.childNodes.item(lq.startOffset).tagName && lq.startContainer.childNodes.item(lq.startOffset).tagName.toUpperCase()=="BR")return false; if (parent.tagName.toUpperCase()=="BODY" && lq.startOffset==0 && lq.endOffset>0 && lq.endOffset==parent.childNodes.length)return false; if (lq.startOffset==lq.endOffset && lq.startContainer.childNodes.item(lq.startOffset).nodeType==3){return false; }return true; }else return false; }}catch (t){return true; }};HTMLEditor.prototype.lr=0; HTMLEditor.prototype.ir= false; HTMLEditor.prototype.Oo= false; HTMLEditor.prototype.Ir= false; HTMLEditor.prototype.os= false; HTMLEditor.prototype.Os= false; HTMLEditor.prototype.isActivated= false; HTMLEditor.prototype.ls= false; HTMLEditor.is="obout-no-contextmenu"; HTMLEditor.prototype.noContextMenuAttributeName= function (){return HTMLEditor.is; };HTMLEditor.Is="obout-attached-id"; HTMLEditor.prototype.attachedIdAttributeName= function (){return HTMLEditor.Is; };HTMLEditor.prototype.ot= function (Ik){var Ot=null; if (Ik.getAttribute(HTMLEditor.Is) && Ik.getAttribute(HTMLEditor.Is).length>0){var par=Ik.parentNode; while (par && par.tagName.toUpperCase()!="BODY"){if (par.tagName.toUpperCase()=="TABLE"){Ot=par; break; }par=par.parentNode; }}return Ot; };HTMLEditor.prototype.lt= function (){if (document.getElementById(this.mainDivId)==null)return false; var 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 (Io,It){if (this.v!=null){try {var X=this ; var id=window.setTimeout( function (){Io( true);} ,It); X.v.push([Io,id]); }catch (t){alert("setTimeout: "+t.message);}}else {window.setTimeout(Io,It); }};HTMLEditor.prototype.ou= function (){var X=this ; if (this.v)for (var i=0; i<this.v.length; i++){if (typeof this.v[i][0]=="function" && this.v[i][0]==X.ou.caller){ this.v[i][0]="none"; break; }}if (!this.lt() || !this.mainDivVisible){try { this.Im(); }catch (t){} ; this.i1="undef"; return true; }return false; };HTMLEditor.prototype.activate= function (Ou){if (!this.os){if (typeof EditorBeforeActivate=="function"){ this.os= true; try {EditorBeforeActivate(this ); }catch (w){setTimeout( function (){alert("EditorBeforeActivate exception: "+w.message); } ,0); }}}var X=this ; var ic=document.getElementById(this.mainDivId).parentNode; var it= true; X.v=null; this.M=null; if (this.lu && HTMLEditor.S()){}if (!HTMLEditor.is_Safari)if (!X.J){X.J= true; if ( true){X.g= function (event){if (!X.J){if (HTMLEditor.is_ie){HTMLEditor.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.Iu=null; if (event.srcElement.style.display=="none"){if (X.mainDivVisible){X.Iu= false; }}else {if (X.lt() && !X.mainDivVisible){X.Iu= true; }}if (X._isCallBackPanel){try {X.clearPopups( true); }catch (w){}try {if (X.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.Iu!=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.Iu); }catch (w){}}X.Iu=null; } ,024); }}} ; X.Iu=null; while (ic && ic.tagName && ic.tagName.toUpperCase()!="BODY"){if (HTMLEditor.is_ie){HTMLEditor.lk(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.Ov.push(ic); ic=ic.parentNode; }}else {}}HTMLEditor._CUROBJ_=null; if (this.lu && !HTMLEditor.S()){ this.Im(); this._textArea.style.display="none"; this.lu= 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.lv.style.visibility="hidden"; this.lv.style.visibility="visible"; }}if (!X.Os){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.iv([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var le= false; try {le=Iv(HTMLEditor.is_ie?X.O1.event:event); }catch (t){}return le; } ); X.Os= true; }}return; } this.Oo= false; this.ir= true; this.isActivated= false; this._wasFocused= false; if (!X.Os){if (document.getElementById(X.mainDivId)!=null){HTMLEditor.iv([document.getElementById(X.mainDivId)],["mousedown","contextmenu","click"], function (event){var le= false; try {le=Iv(HTMLEditor.is_ie?X.O1.event:event); }catch (t){}return le; } ); X.Os= true; }}if (!X.Ir){if (!HTMLEditor.is_ie){ this.ow=this.updateToolbar; this.updateToolbar= function (){try { this.ow(); }catch (t){return; }} ; }}if (X.lt() && !this.mainDivVisible && document.getElementById(this.mainDivId).style.display!="none"){ this.mainDivVisible= true; if (typeof this._setRealSize=="function")this._setRealSize(); if (this._textArea.offsetWidth>0 && this._textArea.offsetHeight>0)this.i8= {o9: this._textArea.offsetWidth,O9: this._textArea.offsetHeight } ; }if (!X.lt() || !this.mainDivVisible){ this.Im(); this.i1="text"; this.mainDivVisible= false; if (!this.Ir){ this.Ir= true; if (typeof EditorOnLoad=="function")setTimeout( function (){EditorOnLoad(X); } ,0); }return; }HTMLEditor.Ow(window,document.getElementById(this.mainDivId)); function Iv(ij){if (ij){if (X.isPopup()){HTMLEditor._stopEvent(ij); return false; }}return true; }X.v=[]; try { this.lw(); }catch (t){alert("activate: "+t.message); }function iw(Iw){if (X.ou(Iw))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.Ox=document.getElementById(X.ShowQuickFormatDivId).offsetWidth; X.lx=document.getElementById(X.ShowQuickFormatDivId).offsetHeight; }else {X.Ox=0; X.lx=0; }X.ix=document.getElementById(X.panelDivId).offsetWidth; }if (!HTMLEditor.is_ie){function Ix(Ik){for (var i=0; i<Ik.childNodes.length; i++){if (Ik.childNodes.item(i).nodeType==1){if (Ik.childNodes.item(i).tagName.toUpperCase()=="SCRIPT"){Ik.childNodes.item(i).innerHTML=Ik.childNodes.item(i).innerHTML.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }else Ix(Ik.childNodes.item(i)); }}}Ix(X.I1.body); }if (HTMLEditor.is_ie)HTMLEditor.oy(X.I1.body,X.I1); HTMLEditor.Oy(X,X.I1,!X.showAnchors); HTMLEditor.ly(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 Iy=body.firstChild; while (Iy.firstChild)body.insertBefore(Iy.firstChild,Iy); body.removeChild(Iy); }if (X.oz){body.style.cssText=X.oz; X.oz=null; }function Oz(ij){if (ij && ij.type=="contextmenu"){if (!X.isPopup() && HTMLEditor.Id==null){if (HTMLEditor.is_ie){try {var lz=X.I1.selection; var iz=X.iq(lz); }catch (t){HTMLEditor._stopEvent(ij); return false; }}return X.Iz(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.Oq(); var lq=X.iq(oq); X.O10=lq.cloneRange(); }try {le=Oz(HTMLEditor.is_ie?X._iframe.contentWindow.event:event); }catch (t){}return le; } ); HTMLEditor.lk(body,HTMLEditor.is_ie?"drop": "dragdrop", function (event){X.l10(); if (typeof X.onDrop=="function")setTimeout( function (){X.onDrop(X); } ,0); return true; } ); X.i10(); if (HTMLEditor.I10)X.f= true; if (!HTMLEditor.is_Safari)X.setTimeout( function (Iw){if (X.ou(Iw))return; if (!HTMLEditor.is_ie){if (X.o11!=null){X.selectAll(); X.O11(X.o11); X.o11=null; }}if (HTMLEditor.is_ie && !X._autoFocus){var l11=HTMLEditor.i11(X.I1.body.innerHTML); var I11=HTMLEditor.o12(X.I1.body.innerHTML); X.I1.body.innerHTML=X.I1.body.innerHTML; HTMLEditor.O12(X.I1.body,l11); HTMLEditor.l12(X.I1.body,I11); if (document.compatMode=="BackCompat")ox.body.contentEditable= true; X._iframe.style.visibility="visible"; X.Oq().empty(); }if (X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe && X._autoFocus){X.updateToolbar(); X.focusEditor(); if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && !HTMLEditor.I10){var anchor=X.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.lr>0)X.isActivated= true; if ((!X._StartEnd || !HTMLEditor.is_ie) && X._autoFocus){if (X.mode()=="html" && X.mainDivVisible && X._iframe && typeof Ou!="function"){if (HTMLEditor.is_ie){X.setTimeout( function (Iw){if (X.ou(Iw))return; X.focusEditor(); var oq=X.Oq(); var lq=X.iq(oq); if (oq.type.toLowerCase()!="control"){lq.moveEnd("textedit",1); lq.collapse( false); }lq.select(); X.updateToolbar(); X.focusEditor(); } ,0144); }else {X.I12( false); }}}HTMLEditor._CUROBJ_=null; if (X.scrollIntoView && !HTMLEditor.is_Safari)document.getElementById(X.mainDivId).scrollIntoView( false); if (X._autoFocus)X.focusEditor(); HTMLEditor.o13(X.I1.body); if (typeof Ou=="function")Ou(); X.Oo= true; if (HTMLEditor.O13){var l13=X.clientID+"_bottom_chMode()"; try {eval(l13); }catch (i13){} ; }} ,HTMLEditor.is_ie?012: 0144); if (HTMLEditor.is_Safari){HTMLEditor.o13(X.I1.body); X.isActivated= true; HTMLEditor._CUROBJ_=null; if (X.I13) delete X.I13; X.I13=new Object(); X.setTimeout( function (Iw){if (X.ou(Iw))return; if (X.o11!=null){X.selectAll(); X.O11(X.o11); X.o11=null; }if (!X._StartEnd){if (X.mode()=="html" && X.mainDivVisible && X._iframe){X.I12( false); }}X.Oo= true; } ,0144); }X.lr++; X.Im(); if (!X.Ir){if (typeof EditorOnLoad=="function")X.setTimeout( function (Iw){if (X.ou(Iw))return; EditorOnLoad(X); } ,0310); }if (!X.ls){if (X._autoFocus){if (X._ModeHTML || 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.O14(); }}X.setTimeout( function (Iw){if (X.ou(Iw))return; X.chMode(X._ModeHTML?"text": "preview"); } ,0764); }}}if (!X._autoFocus){X.l14=X.ls; X.setTimeout( function (Iw){if (X.ou(Iw))return; if (!X.l14 && (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.O14(); }}X.setTimeout( function (Iw){if (X.ou(Iw))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.Ir= true; X.ls= true; if (X.l){X.setTimeout( function (Iw){if (X.ou(Iw))return; X.l= false; X.o14=HTMLEditor.i12(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.O14(); }} ,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.lv.style.height=height+"px"; if (HTMLEditor.is_ie)height-=2; X.I14.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 (Om){var o15=this.mode(); var O15=(typeof Om=="undefined")? true :Om;if (o15=="preview")o15=this.l15; 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))) && O15; }else {return !(this.o14==HTMLEditor.i12(HTMLEditor.getHTML(this.I1.body, false , true))); }}else return false; }else {if (this.I14 && this.I15!=null){return (!(HTMLEditor.i12(this.I15)==HTMLEditor.i12(this.I14.value)) || (this.o16 && O15)); }else {return false; }}}catch (t){return false; }};HTMLEditor.prototype.O14= function (){var X=this ; if (this.o0 || this.onClientContentChanged==null || typeof this.onClientContentChanged!="function")return; try {if (this.l1 && this.mode()=="html"){var O16=HTMLEditor.i12(this.I1.body.innerHTML); if (this.i0!=null){if (this.i0!=O16){var l16= {previous:{} ,current:{}} ; var div=document.createElement("div"); div.innerHTML=this.i0; l16.previous.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; l16.previous.htmlTextLength=HTMLEditor.i12(div.innerHTML).length; this.i0=O16; div.innerHTML=this.i0; l16.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; l16.current.htmlTextLength=HTMLEditor.i12(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(l16); }catch (t){}} ,0); delete div; }}else {var l16= {previous:{} ,current:{}} ; var div=document.createElement("div"); l16.previous.plainTextLength=0; l16.previous.htmlTextLength=0; this.i0=O16; div.innerHTML=this.i0; l16.current.plainTextLength=div.innerText.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"").replace(/[\s]+/g," ").length; l16.current.htmlTextLength=HTMLEditor.i12(div.innerHTML).length; setTimeout( function (){try {X.onClientContentChanged(l16); }catch (t){}} ,0); delete div; }}}catch (t){}};HTMLEditor.prototype.I12= function (i16){var X=this ; X.setTimeout( function (Iw){if (X.ou(Iw))return; var index=0; var I16=X.I1.body; var anchor=null; if (!X._StartEnd || i16){if (I16.lastChild && I16.lastChild.nodeType==3){I16=I16.lastChild; index=(""+I16.data+"").length; }else if (I16.lastChild && I16.lastChild.nodeType==1 && I16.lastChild.tagName.toUpperCase()=="BR"){index=HTMLEditor.o17(I16.lastChild); var O17=X.I1.createTextNode(""); I16.insertBefore(O17,I16.lastChild); I16=O17; index=0; }else {var O17=X.I1.createTextNode(""); I16.appendChild(O17); I16=O17; index=0; }}if (HTMLEditor.is_Safari){X.I13.type="Caret"; X.I13.focusNode=I16; X.I13.focusOffset=index; }else {var oq=X.Oq(); X.l17(oq); var lq=X.iq(); lq.setStart(I16,index); lq.setEnd(I16,index); X.i17(oq,lq); }if (anchor!=null){X.I1.body.removeChild(anchor); }X.updateToolbar(); X.focusEditor(); if (!X._StartEnd || i16)if (!HTMLEditor.is_Safari && !HTMLEditor.I10){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.I17= function (){} ; HTMLEditor.prototype.popupClosed= function (){} ; HTMLEditor.prototype.updateToolbar= function (){} ; HTMLEditor.prototype.o18= function (){var X=this ; if (!HTMLEditor.is_ie){if (/[\n\r]/g.test(X.I1.body.innerHTML)){HTMLEditor.O18(X.I1.body); }}var Ok=HTMLEditor.getHTML(X.I1.body, false , true); var le=[HTMLEditor.i12(Ok),Ok]; 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.l15=X.i1; if (X.i1=="html"){X.l10(); 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.Oq().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.lx=X.i8.O9; X.l19=X.i8.i19; }if (X.ShowQuickFormatDivId!=null){HTMLEditor.i14(X.ShowQuickFormatDivId); }}else {if (X.I14){I18=X.I14.value; X.I14.style.display="none"; if (HTMLEditor.is_ie)X.I14.style.visibility="hidden"; if (!HTMLEditor.is_Safari){X.i8.O9=X.lx; X.i8.i19=X.l19; X.lv.style.height=X.i8.O9; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){}}}X.lv.style.display=""; X.i1=mode; setTimeout( function (){X.I19(I18); if (typeof l18=="function")try {l18(); }catch (t){} ; X._waitSetMode= false; try {X.lv.focus(); }catch (t){}} ,0); } ,0); break; case "text":if (X.i1=="preview"){var o1a; X.lv.style.display="none"; X.lv.src=HTMLEditor.is_ie?"javascript:false;": ""; if (HTMLEditor.is_ie)X.lv.style.visibility="hidden"; X.I14.style.display=""; if (X.l15=="html"){o1a=X.O19; X.I15=o1a; }else {o1a=X.I14.value; }X._waitSetMode= true; X.I14.value=""; X.i1=mode; setTimeout( function (){setTimeout( function (){X.I14.value=o1a; X.focusEditor(); X._waitSetMode= false; } ,0144); if (typeof l18=="function")try {l18(); }catch (t){} ; if (!HTMLEditor.is_Safari){X.i8.O9=X.lx; X.i8.i19=X.l19; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.I14.style.height=parseInt(X.i8.O9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.I14.style.width="100%"; setTimeout( function (){X.I14.style.width=X.I14.offsetWidth+"px"; } ,0); }}if (HTMLEditor.is_ie)X.I14.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.l10(); }catch (t){} ; X.openWait(); X._waitSetMode= true; X.o0= true; if (this.lt() && this.I0){var O1a=HTMLEditor.Il+"_right"; var l1a=HTMLEditor.Il+"_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.Oq(); var lq=this.iq(oq); var l1b=(HTMLEditor.is_ie && lq.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.O11(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.I10){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.lv.style.display="none"; if (HTMLEditor.is_ie)X.lv.style.visibility="hidden"; X.I15=I18; try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.Oq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var il=X.l1.removeChild(X._iframe); X._iframe=null; delete il; }catch (t){}X.I14.value=""; X.I14.style.display=""; X.i1=mode; setTimeout( function (){setTimeout( function (){X.I14.value=I18; X.o0= false; X.focusEditor(); X._waitSetMode= false; if (X.I0)if (X.I14.setSelectionRange && I1c>0){X.I14.setSelectionRange(I1c-1,I1c); var ij=null; try {ij=document.createEvent("KeyEvents"); ij.initKeyEvent("keypress", true , true ,window, false , false , false , false ,0,X.I14.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.I14.value.charCodeAt(I1c-1); ij.charCode=X.I14.value.charCodeAt(I1c-1); }}X.I14.focus(); X.I14.dispatchEvent(ij); X.I14.setSelectionRange(i1c,I1c); }else HTMLEditor.setSelectionRange(X.I14,i1c,I1c); X.I0= true; } ,0144); if (typeof l18=="function")try {l18(); }catch (t){} ; if (!HTMLEditor.is_Safari && (X.lt() || !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.lx=X.i8.O9; X.l19=X.i8.i19; }if (X.mainDivVisible){X._onresize(); if (!HTMLEditor.is_Safari){X.I14.style.height=parseInt(X.i8.O9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+"px";}if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari){X.I14.style.width="100%"; setTimeout( function (){X.I14.style.width=X.I14.offsetWidth+"px"; } ,0); }}else {if (!HTMLEditor.is_Safari){X.I14.style.height=parseInt(X.i8.O9)-((HTMLEditor.is_ie)?2: (document.compatMode!="BackCompat"?-4: 0))+parseInt(X.l19)+"px";}}X.Im(); if (HTMLEditor.is_ie)X.I14.style.visibility="visible"; X.focusEditor(); } ,0764); } ,0); break; case "html":if (X._iframe!=null)try {try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); }catch (t){} ; try {if (HTMLEditor.is_ie)X.Oq().empty(); }catch (t){} ; try {X._iframe.blur(); }catch (t){} ; X._iframe.src=HTMLEditor.is_ie?"javascript:false;": ""; var 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 (Iw){if (X.ou(Iw)){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.lv!=null)X.lv.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.I14!=null)X.I14.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.lx!="undefined")X.i8.O9=X.lx; if (typeof X.l19!="undefined")X.i8.i19=X.l19; }if (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && X.I14!=null){X.I14.style.width=parseInt(X.I14.style.width)-X.Ox+"px"; X.i8.o9=parseInt(X.I14.style.width)+(document.compatMode!="BackCompat"?4: 2)+"px"; }X.setTimeout( function (Iw){if (X.ou(Iw))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 (Iw){if (X.ou(Iw))return; X._onresize(); } ,0); }setTimeout( function (){X._waitSetMode= false; } ,0144); } ,0); } ,0); break; default:X._waitSetMode= false; alert("Mode <"+mode+"> not defined"); return false; }} ; HTMLEditor.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.O14(); };HTMLEditor.prototype.redo= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.o1f(); this.O14(); };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.Im(); 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.Im(); } ,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.Oq(); this.l10(); 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.l10(); this.openWait(); setTimeout( function (){X._paste( true); X.Im(); } ,0);}else {var oq=this.Oq(); var lq=this.iq(oq); this.l17(oq); if (HTMLEditor.is_Safari)alert(this.Of("safari-v","Use Apple-V")); else alert(this.Of("moz-v","Use Ctrl-V")); if (HTMLEditor.I10)this.f= true; this.i17(oq,lq); this.isWord= false; }};HTMLEditor.prototype.pasteWord= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (HTMLEditor.is_ie){ this.l10(); this.openWait(); setTimeout( function (){X._paste( true , true); X.Im(); } ,0);}else {var oq=this.Oq(); var lq=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.l17(oq); alert(I1f); if (HTMLEditor.I10)this.f= true; this.i17(oq,lq); 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.l10(); this.openWait(); setTimeout( function (){X._paste( false); X.Im(); } ,0);}else {var oq=this.Oq(); var lq=this.iq(oq); var X=this ; var ox=X.I1; function O1g(l1g){if (l1g.length>0){X.l10(); X.O11(l1g); X.O14(); }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.I10){ this.f= true; this.focusEditor(); }var oq=this.Oq(); this.l17(oq); var lq=this.iq(); lq.selectNodeContents(this.I1.body); if (HTMLEditor.I10)this.f= true; this.i17(oq,lq); } this.updateToolbar(); };HTMLEditor.prototype.selectNone= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var oq=this.Oq(); var lq=this.iq(oq); if (HTMLEditor.is_ie){lq.setEndPoint("StartToEnd",lq); lq.select(); }else {if (HTMLEditor.I10){ this.f= true; this.focusEditor(); } this.l17(oq); lq.setStart(lq.endContainer,lq.endOffset); this.i17(oq,lq); }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.Oq()); 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.Oq()); 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.Oq()); 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.Oq()); this.i1i("backcolor", false ,""); };HTMLEditor._styleTags=["strong","em","u","strike","s","span","font","b","sub","sup","a","i"]; HTMLEditor.O1j= function (ll){if (!ll)return false; for (var i=0; i<HTMLEditor._styleTags.length; i++)if (HTMLEditor._styleTags[i].toLowerCase()==ll.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.Oq()); setTimeout( function (){try {X.Ii("_clearStyles"); X.O14(); }catch (t){}} ,012); };HTMLEditor.prototype.setClassName= function (name){var X=this ; if (!this._wasFocused)return; this.focusEditor(); if (HTMLEditor.is_Safari)this.iq(this.Oq()); try {var le=this._setClassName(name); this.O14(); 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.Oq()); if (this.isControl()){ this.l10(); 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.Oq()); 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.Oq(); var lq=this.iq(oq); var parent=null; if (HTMLEditor.is_ie){if (oq.type.toLowerCase()=="control")parent=lq.item(0); else parent=null; }else {parent=this.Iq(lq); if (parent.nodeType!=3 && lq.startContainer==lq.endContainer){if (!parent.tagName)return null; if (lq.startContainer.childNodes.item(lq.startOffset)==null)return null; if (lq.startOffset==lq.endOffset && lq.startContainer.childNodes.item(lq.startOffset).tagName && lq.startContainer.childNodes.item(lq.startOffset).tagName.toUpperCase()=="BR")return null; if (parent.tagName.toUpperCase()=="BODY" && lq.startOffset==0 && lq.endOffset>0 && lq.endOffset==parent.childNodes.length)return null; parent=lq.startContainer.childNodes.item(lq.startOffset); }else return null; }return parent; };HTMLEditor.prototype.getClassName= function (){try {var oq=this.Oq(); var lq=this.iq(oq); var parent; if (HTMLEditor.is_ie && oq.type.toLowerCase()=="control")parent=lq.item(0); else parent=this.Iq(lq); if (parent.nodeType==3){parent=parent.parentNode; }while ( true){if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.Il && parent.className.length>0){return parent.className; }else {if (parent && parent.tagName && HTMLEditor.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.Oq()); 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 Ik=document.getElementById(o1k); Ik=Ik.childNodes.item(1); var i=0; if (param && param.length>0){var ie=param.toLowerCase().split(",")[0]; for (i=0; i<Ik.options.length; i++){var O16=Ik.options.item(i).value.toLowerCase().split(",")[0]; if (O16==ie)break; }if (i==Ik.options.length){try {var l1k=document.createElement("OPTION"); l1k.value=param; l1k.text=param.split(",")[0]; Ik.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; }}}Ik.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.Oq()); 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 Ik=document.getElementById(o1k); Ik=Ik.childNodes.item(1); var i=0; if (param && param.length>0){var ie=param.toLowerCase().split(",")[0]; for (i=0; i<Ik.options.length; i++){var O16=HTMLEditor.i1k(Ik.options.item(i).value.toLowerCase().split(",")[0]); if (O16==ie)break; }if (i==Ik.options.length){try {var l1k=document.createElement("OPTION"); l1k.value=param; l1k.text=param; Ik.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; }}}Ik.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.ib){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.Oq(); var lq=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 && lq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))){ this.l10(); var I1l=this.I1.createElement("span"); I1l.innerHTML="new link"; I1l.id=HTMLEditor.Il; var o1m= true; if (HTMLEditor.is_ie && this.isControl()){var O1c=lq.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.O11(HTMLEditor.getHTML(I1l, true)); var Ik=this.I1.getElementById(HTMLEditor.Il); i1l=Ik.firstChild; Ik.parentNode.insertBefore(Ik.firstChild,Ik); Ik.parentNode.removeChild(Ik); }if (!HTMLEditor.is_ie){lq=this.iq(); lq.setStart(i1l,0); lq.setEnd(i1l,(""+i1l.data+"").length); this.l17(oq); this.i17(oq,lq); }else {if (o1m)lq.select(); }o1b=(!HTMLEditor.is_ie)?HTMLEditor.i12(this.O1b()): ""; oq=this.Oq(); lq=this.iq(oq); }if ((this.isControl() && HTMLEditor.getSelParent(this ).tagName.toUpperCase()=="IMG") || (!this.isControl() && ((HTMLEditor.is_ie && lq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))){ this.l10(); var I1m=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); var l16= {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=l16.href; if (l16.target)a.target=l16.target; if (l16.title.length>0)a.title=l16.title; i1n=i; }catch (w){}}if (i1l)i1l.data=l16.href; if (HTMLEditor.I10)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.O14(); } ,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 Ok=X.I1.getElementsByTagName("A"); var l1n=[]; for (var i=0; i<Ok.length; i++){try {var hr=Ok[i].href; l1n.push([Ok[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"),l16,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.I10){X.f= true; X.focusEditor(); }X.O14(); }return true; }X.l10(); X.Ii("_urlProperties",X.Og("link","Edit URL Link"),link,O1g); };HTMLEditor.i1o=/^(([0-9]+(px|%|$))|$)/i; HTMLEditor.I1o=/^(([0-9]+(px|$))|$)/i; HTMLEditor.setSelectionRange= function (input,o1p,O1p){try {var start=(typeof o1p=="undefined")?0:o1p; var end=(typeof O1p=="undefined")?input.value.length:O1p; input.focus(); if (input.setSelectionRange){input.setSelectionRange(start,end); }else if (input.createTextRange){var lq=input.createTextRange(); lq.collapse( true); lq.moveEnd("character",end); lq.moveStart("character",start); lq.select(); }}catch (t){}};HTMLEditor.prototype.insertDiv= function (){var X=this ; var l1p; var id=HTMLEditor.Il; var innerHTML="<div id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Div"; innerHTML+="</div>"; if (X.InsertHTML(innerHTML)){l1p=X.getDocument().getElementById(id); l1p.id=null; l1p.removeAttribute("id"); HTMLEditor.i1p(l1p); var par=l1p.parentNode; while (par && par.tagName && par.childNodes.length==1 && HTMLEditor.O1j(par.tagName) && par.tagName.toUpperCase()!="A"){par.parentNode.insertBefore(l1p,par); par.parentNode.removeChild(par); par=l1p.parentNode; }X.I1p(l1p, false); }};HTMLEditor.I3= function (X,l1p){X.SaveContent(); X.I1p(l1p, true); };HTMLEditor.prototype.I1p= function (l1p,o1q){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; if (ox.getElementById("clearBorderColor")!=null){ox.getElementById("clearBorderColor").disabled= true; ox.getElementById("clearBorderColor").className="dbutton"; }if (ox.getElementById("cssClass")!=null){ox.getElementById("cssClass").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; if (ox.getElementById("clearBorderColor")!=null){ox.getElementById("clearColor").disabled= false; ox.getElementById("clearColor").className="button"; }if (ox.getElementById("cssClass")!=null){ox.getElementById("cssClass").disabled= false; }ox.getElementById("clearBorderColor").disabled= false; ox.getElementById("clearBorderColor").className="button"; ox.getElementById("bgImage").disabled= false; ox.getElementById("clearImage").disabled= false; ox.getElementById("clearImage").className="dbutton"; }function color(){function O1q(par){X.l1q.getElementById("borderColor").value=""; X.l1q.getElementById("borderColor").style.backgroundColor=par; }X.Ii("_selectColor",X.l1q.getElementById("borderColor").title,O1q); }function bgColor(){function i1q(par){X.l1q.getElementById("bgColor").value=""; X.l1q.getElementById("bgColor").style.backgroundColor=par; }X.Ii("_selectColor",X.l1q.getElementById("bgColor").title,i1q); }function I1q(){X.l1q.getElementById("bgColor").value=X.o1r; X.l1q.getElementById("bgColor").style.backgroundColor=""; }function O1r(){X.l1q.getElementById("borderColor").value=X.l1r; X.l1q.getElementById("borderColor").style.backgroundColor=""; }function i1r(){var I1r=new Object(); var ox=X.l1q; I1r.src=""; I1r.o1s="LEFT"; I1r.O1s="TOP"; I1r.repeat="REPEAT"; I1r.l1s="FIXED"; if (ox.getElementById("bgImage").style.backgroundImage && ox.getElementById("bgImage").style.backgroundImage.length>0){var Ok=ox.getElementById("bgImage").style.backgroundImage; Ok=Ok.replace(/^url\(["']?(.+)["']?\)$/i,"$1"); I1r.src=Ok.replace(/(\s)/g,"%20"); }if (ox.getElementById("bgImage").style.backgroundPosition && ox.getElementById("bgImage").style.backgroundPosition.length>0){var Ok=ox.getElementById("bgImage").style.backgroundPosition; Ok=Ok.split(" "); if (Ok.length>0)I1r.o1s=Ok[0]; if (Ok.length>1)I1r.O1s=Ok[1]; }if (ox.getElementById("bgImage").style.backgroundRepeat && ox.getElementById("bgImage").style.backgroundRepeat.length>0)I1r.repeat=ox.getElementById("bgImage").style.backgroundRepeat; if (ox.getElementById("bgImage").style.backgroundAttachment && ox.getElementById("bgImage").style.backgroundAttachment.length>0)I1r.l1s=ox.getElementById("bgImage").style.backgroundAttachment; function l1i(O1n){if (O1n){var save=ox.getElementById("bgImage").style.backgroundImage; ox.getElementById("bgImage").value=""; var i1s=(I1r.src.indexOf("'")>=0)?"\"": "'"; ox.getElementById("bgImage").style.backgroundImage=""; ox.getElementById("bgImage").style.backgroundImage="url("+i1s+I1r.src.replace(/(\s)/g,"%20")+i1s+")"; ox.getElementById("bgImage").style.backgroundRepeat=I1r.repeat; ox.getElementById("bgImage").style.backgroundAttachment=I1r.l1s; ox.getElementById("bgImage").style.backgroundPosition=I1r.o1s+" "+I1r.O1s; if (ox.getElementById("bgImage").style.backgroundImage.length==0){X.O1.setTimeout( function (){ox.getElementById("bgImage").style.backgroundImage=save; if (save.length==0)I1s(); X.O1.alert(X.Of("bad-bg-img","Incorrect Image file for Background.")); } ,0); }}}X.Ii("_bgImageProperties",ox.getElementById("bgImage").title,I1r,l1i); }function I1s(){X.l1q.getElementById("bgImage").value=X.o1t; X.l1q.getElementById("bgImage").style.backgroundImage=""; X.l1q.getElementById("bgImage").style.backgroundRepeat=""; X.l1q.getElementById("bgImage").style.backgroundAttachment=""; }function l1i(ox,O1t){if (ox!=null){var l1t=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]+/,""); var i1t=null; if (ox.getElementById("cssClass")!=null){i1t=ox.getElementById("cssClass").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)!=l1p){HTMLEditor.setSelectionRange(ox.getElementById("idField")); return false; }l1p.style.width=width; l1p.style.height=height; l1p.style.borderWidth=borderWidth; if (id.length>0)l1p.id=id; else {l1p.id=null; l1p.removeAttribute("id"); }l1p.style.overflow=l1t; if (borderStyle.length>0 && borderStyle!="none" && borderWidth.length>0)l1p.style.borderStyle=borderStyle; else l1p.style.borderStyle=""; if (i1t!=null){l1p.className=i1t; if (i1t.length==0){try {l1p.removeAttribute("class"); }catch (i13){}}}l1p.style.borderColor=(borderWidth.length>0)?borderColor: ""; l1p.style.backgroundColor=backgroundColor; l1p.style.backgroundImage=backgroundImage; l1p.style.backgroundRepeat=backgroundRepeat; l1p.style.backgroundAttachment=backgroundAttachment; l1p.style.backgroundPosition=backgroundPosition; setTimeout( function (){if (HTMLEditor.is_Safari){l1p=(Ik.nextSibling)?l1p.nextSibling:l1p; setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); X.l17(oq); X.i17(oq,lq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1b=X.I1.body.createControlRange(); i1b.add(l1p); i1b.select(); }catch (t){}}else {if (HTMLEditor.I10)X.f= true; l1p=(l1p.nextSibling)?l1p.nextSibling:l1p; HTMLEditor.l1o(l1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1t(ox,O1t){if (ox!=null){var o1u=O1t.contentWindow.document.getElementById("realStylesFolder").href; X.l1r=ox.getElementById("borderColor").value; X.o1r=ox.getElementById("bgColor").value; X.o1t=ox.getElementById("bgImage").value; if (ox.getElementById("cssClass")!=null){ox.getElementById("cssClass").value=(l1p.className)?l1p.className: ""; }ox.getElementById("idField").value=(l1p.id)?l1p.id: ""; ox.getElementById("widthField").value=(l1p.style.width)?l1p.style.width: ""; ox.getElementById("heightField").value=(l1p.style.height)?l1p.style.height: ""; ox.getElementById("borderWidth").value=(l1p.style.borderLeftWidth)?l1p.style.borderLeftWidth: ""; ox.getElementById("borderStyle").value=(l1p.style.borderLeftStyle)?l1p.style.borderLeftStyle: ""; ox.getElementById("overflow").value=(l1p.style.overflow)?l1p.style.overflow: ""; ox.getElementById("borderColor").style.backgroundColor=(l1p.style.borderLeftColor)?l1p.style.borderLeftColor: ""; ox.getElementById("bgColor").style.backgroundColor=(l1p.style.backgroundColor)?l1p.style.backgroundColor: ""; ox.getElementById("bgImage").style.backgroundImage=(l1p.style.backgroundImage)?l1p.style.backgroundImage: ""; ox.getElementById("bgImage").style.backgroundRepeat=(l1p.style.backgroundRepeat)?l1p.style.backgroundRepeat: ""; ox.getElementById("bgImage").style.backgroundAttachment=(l1p.style.backgroundAttachment)?l1p.style.backgroundAttachment: ""; ox.getElementById("bgImage").style.backgroundPosition=(l1p.style.backgroundPosition)?l1p.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"],I1q); if (ox.getElementById("clearBorderColor")!=null){HTMLEditor.iv(ox.getElementById("clearBorderColor"),["click"],O1r); }HTMLEditor.iv(ox.getElementById("bgImage"),["click"],i1r); HTMLEditor.iv(ox.getElementById("clearImage"),["click"],I1s); X.l1q=ox; }}var O1u=(X.N[032].length>0)?(X.N[032]): ("__div.aspx"); X.customPopup("popup_div","div",O1u,l1i,I1t, true ,o1q,enableEvents,disableEvents); };HTMLEditor.prototype.insertForm= function (){var X=this ; var l1p; var id=HTMLEditor.Il; var innerHTML="<form id='"+id+"'"; if (HTMLEditor.is_ie)innerHTML+=" style='width=100%'"; innerHTML+=">"; innerHTML+="Form"; innerHTML+="</form>"; if (X.InsertHTML(innerHTML)){l1p=X.getDocument().getElementById(id); l1p.id=null; l1p.removeAttribute("id"); X.l1u(l1p, false); }};HTMLEditor.o5= function (X,l1p){X.SaveContent(); X.l1u(l1p, true); };HTMLEditor.prototype.l1u= function (l1p,o1q){var X=this ; function l1i(ox,O1t){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 i1u=X.I1.getElementsByTagName("FORM"); if (name.length>0)for (var i=0; i<i1u.length; i++){if (i1u[i].name==name && i1u[i]!=l1p){HTMLEditor.setSelectionRange(ox.getElementById("nameField")); return false; }}if (id.length>0 && X.I1.getElementById(id)!=null && X.I1.getElementById(id)!=l1p){HTMLEditor.setSelectionRange(ox.getElementById("idField")); return false; }l1p.style.width=width; l1p.style.height=height; if (id.length>0)l1p.id=id; else {l1p.id=null; l1p.removeAttribute("id"); }if (name.length>0){l1p.name=name; l1p.setAttribute("name",name); }else {l1p.name=""; l1p.removeAttribute("name"); }if (action.length>0)l1p.action=action; else {l1p.action=null; l1p.removeAttribute("action"); }try {if (method.length>0)l1p.method=method; else {l1p.removeAttribute("method"); }}catch (t){}setTimeout( function (){if (HTMLEditor.is_Safari){l1p=(Ik.nextSibling)?l1p.nextSibling:l1p; setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); X.l17(oq); X.i17(oq,lq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1b=X.I1.body.createControlRange(); i1b.add(l1p); i1b.select(); }catch (t){}}else {if (HTMLEditor.I10)X.f= true; l1p=(l1p.nextSibling)?l1p.nextSibling:l1p; HTMLEditor.l1o(l1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1t(ox,O1t){if (ox!=null){ox.getElementById("widthField").value=(l1p.style.width)?l1p.style.width: ""; ox.getElementById("heightField").value=(l1p.style.height)?l1p.style.height: ""; ox.getElementById("idField").value=(l1p.id)?l1p.id: ""; ox.getElementById("nameField").value=(l1p.name)?l1p.name: ""; ox.getElementById("actionField").value=(l1p.action)?l1p.action: ""; ox.getElementById("methodField").value=(l1p.method)?l1p.method: ""; }}var O1u=(X.N[035].length>0)?(X.N[035]): ("__form.aspx"); X.customPopup("popup_form","form",O1u,l1i,I1t, true ,o1q); };HTMLEditor.prototype.insertCheckBox= function (){ this.I1u("type='checkbox'"); };HTMLEditor.prototype.insertRadio= function (){ this.I1u("type='radio'"); };HTMLEditor.prototype.insertTextBox= function (){ this.I1u("type='text' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertPassword= function (){ this.I1u("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.I1u("type='hidden' style='width:100px;height:22px;'"); };HTMLEditor.prototype.insertButton= function (){ this.I1u("type='button' style='width:50px;height:22px;'"); };HTMLEditor.prototype.insertSubmit= function (){ this.I1u("type='submit' style='width:50px;height:22px;' value='Submit'"); };HTMLEditor.prototype.insertReset= function (){ this.I1u("type='reset' style='width:50px;height:22px;' value='Reset'"); };HTMLEditor.prototype.I1u= function (o1v){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; var l1p=null; var id=HTMLEditor.Il; if (X.isControl() && HTMLEditor.getSelParent(X).tagName.toUpperCase()=="INPUT"){l1p=HTMLEditor.getSelParent(X); X.SaveContent(); X.O1v(l1p, true); }else if (X.InsertHTML("<input id='"+id+"' "+o1v+" />")){l1p=X.getDocument().getElementById(id); l1p.id=null; l1p.removeAttribute("id"); X.O1v(l1p, false); if (HTMLEditor.is_Safari)setTimeout( function (){try {l1p.blur();}catch (t){}} ,0144); }return l1p; };HTMLEditor.l3= function (X,l1p){if (l1p.type=="image" || l1p.type=="file")return; X.SaveContent(); X.O1v(l1p, true); };HTMLEditor.prototype.O1v= function (l1p,o1q){var X=this ; function l1i(ox,O1t){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=((l1p.type && l1p.type.length>0)?l1p.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)!=l1p){HTMLEditor.setSelectionRange(ox.getElementById("idField")); return false; }l1p.style.width=width; l1p.style.height=height; if (id.length>0)l1p.id=id; else {l1p.id=null; l1p.removeAttribute("id"); }if (name.length>0){l1p.name=name; l1p.setAttribute("name",name); }else {l1p.name=""; l1p.removeAttribute("name"); }if (value.length>0){l1p.value=value; l1p.setAttribute("value",value); }else {l1p.value=""; l1p.removeAttribute("value"); }if (title.length>0)l1p.title=title; else {l1p.title=""; l1p.removeAttribute("title"); }if (type=="checkbox" || type=="radio"){l1p.checked=ox.getElementById("checkField").checked; if (!HTMLEditor.is_ie){if (l1p.checked)l1p.setAttribute("checked","true"); else l1p.removeAttribute("checked"); }}setTimeout( function (){if (HTMLEditor.is_Safari){l1p=(Ik.nextSibling)?l1p.nextSibling:l1p; setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); X.l17(oq); X.i17(oq,lq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){try {var i1b=X.I1.body.createControlRange(); i1b.add(l1p); i1b.select(); }catch (t){}}else {if (HTMLEditor.I10)X.f= true; l1p=(l1p.nextSibling)?l1p.nextSibling:l1p; HTMLEditor.l1o(l1p,X); }setTimeout( function (){X.updateToolbar(); } ,5); }} ,0144); }else {X.RestoreContent(); }return true; }function I1t(ox,O1t){if (ox!=null){var type=((l1p.type && l1p.type.length>0)?l1p.type: "text").toLowerCase(); if (type=="checkbox" || type=="radio")ox.getElementById("checkField").checked=l1p.checked; else ox.getElementById("checkField").style.display="none"; ox.getElementById("widthField").value=(l1p.style.width)?l1p.style.width: ""; ox.getElementById("heightField").value=(l1p.style.height)?l1p.style.height: ""; ox.getElementById("idField").value=(l1p.id)?l1p.id: ""; ox.getElementById("nameField").value=(l1p.name)?l1p.name: ""; ox.getElementById("valueField").value=(l1p.value)?l1p.value: ""; ox.getElementById("titleField").value=(l1p.title)?l1p.title: ""; ox.getElementById("inputType").innerHTML=""; try {ox.getElementById("inputType").innerHTML=ox.getElementById("input_"+type).value; }catch (t){alert(t.message);}}}var O1u=(X.N[041].length>0)?(X.N[041]): ("__input.aspx"); X.customPopup("popup_input","input",O1u,l1i,I1t, true ,o1q); };HTMLEditor.o4= function (X,link){X.l10(); var Ik=link.firstChild; while (link.firstChild)link.parentNode.insertBefore(link.firstChild,link); link.parentNode.removeChild(link); if (Ik)HTMLEditor.l1o(Ik,X); setTimeout( function (){X.updateToolbar(); } ,5); X.O14(); };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.O11("<img src='"+html+"' id="+HTMLEditor.Il+">")){X.I1e( false); }else {var Ik=X.I1.getElementById(HTMLEditor.Il); Ik.id=null; Ik.removeAttribute("id"); if (X.relativeImages)Ik.src=html; if (!HTMLEditor.is_ie){setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); X.l17(oq); if (HTMLEditor.I10)X.f= true; X.i17(oq,lq); X.updateToolbar(); X.focusEditor(); } ,0); }X.O14(); }}return true; }X.l10(); 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.O11("<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.Oq(); var lq=X.iq(oq); X.l17(oq); if (HTMLEditor.I10)X.f= true; X.i17(oq,lq); X.updateToolbar(); X.focusEditor(); } ,0); }X.O14(); }}return true; }X.l10(); 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.Oy(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.Oy= function (X,I1,l1v){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 i1v=a.firstChild; while (i1v){var I1v=i1v.nextSibling; if (i1v.tagName && i1v.tagName.toUpperCase()=="IMG" && i1v.src){if (i1v.src.indexOf(X.P[0])>0){a.removeChild(i1v);le= true; }}i1v=I1v; }if (!l1v){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.I10){X.f= true; X.focusEditor(); }X.O14(); }return true; }X.l10(); 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.O11(ih)){X.I1e( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); X.l17(oq); if (HTMLEditor.I10)X.f= true; X.i17(oq,lq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (!X.showPlaceHolders)HTMLEditor.ly(X,X.I1, true); }X.O14(); }}return true; }X.l10(); 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.ly(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.ly= function (X,I1,l1v){var le= false; if (l1v){var o1w=I1.getElementsByTagName("IMG"); var l1n=[]; for (var i=0; i<o1w.length; i++)l1n.push(o1w[i]); for (var i=0; i<l1n.length; i++){var a=l1n[i]; var O1w=a.getAttribute("dummytag"); if (O1w && O1w.length>0 && O1w.toLowerCase()=="placeholder"){var l1w=I1.createElement("PLACEHOLDER"); var title=a.title; if (title==null || typeof title=="undefined")title=a.getAttribute("title"); l1w.name=title; l1w.setAttribute("name",title); a.parentNode.insertBefore(l1w,a); a.parentNode.removeChild(a); le= true; }}}else {var o1w=I1.getElementsByTagName("PLACEHOLDER"); var l1n=[]; for (var i=0; i<o1w.length; i++)l1n.push(o1w[i]); for (var i=0; i<l1n.length; i++){var a=l1n[i]; var i1w= true; try {if (a.childNodes.length>0)i1w= false; }catch (w){}if (i1w){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.I10){X.f= true; X.focusEditor(); }X.O14(); }return true; }X.l10(); 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.O11(html)){X.I1e( false); }else {if (!HTMLEditor.is_ie){setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); X.l17(oq); if (HTMLEditor.I10)X.f= true; X.i17(oq,lq); X.updateToolbar(); X.focusEditor(); } ,0); }X.O14(); }}return true; }X.l10(); X.Ii("_insertSpec",X.og("special-characters","Insert a special character"),O1g); };HTMLEditor.prototype.spellCheck= function (Ip){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; function O1g(O1n,I1w){if (!O1n){X.I1e( false); }else {if (HTMLEditor.I10){X.f= true; X.focusEditor(); }X.updateToolbar(); X.focusEditor(); }if (typeof Ip=="function")setTimeout( function (){Ip(O1n); X.O14(); } ,0); X.O14(); return true; }X.l10(); X.o1x( function (O1x){X.Im(); X.updateToolbar(); X.Ii("_spellCheck",X.og("spell-checker","Spell checker"),O1x,O1g); } ); };HTMLEditor.prototype.customPopup= function (l1x,i1x,I1x,l1i,I1t,o1y,o1q,O1y,l1y){var X=this ; var i1y=l1i; if (l1i!=null && typeof l1i=="function"){i1y= function (ox,O1t){var le=l1i(ox,O1t); if (ox!=null){setTimeout( function (){X.O14(); } ,0144); }return le; } ; }X.Ii("_customPopup",l1x,i1x,I1x,i1y,I1t,o1y,o1q,O1y,l1y); };HTMLEditor.prototype.insertHR= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; try { this.l10(); if (HTMLEditor.is_Safari)this.iq(this.Oq()); var I1y=this.I1.createElement("div"); I1y.innerHTML="<hr>"; var Ik=I1y.firstChild; var X=this ; var o1z=this.O1z(); if (!o1z)return; var parent=o1z.parentNode; parent.insertBefore(Ik,o1z); parent.removeChild(o1z); Ik=(Ik.nextSibling)?Ik.nextSibling:Ik; HTMLEditor.l1o(Ik,X); setTimeout( function (){X.O14(); X.updateToolbar(); } ,5); X.focusEditor(); return true; }catch (t){alert("HR: "+t.message); }};HTMLEditor.l1o= function (l1z,X){var Ik=l1z; if (HTMLEditor.is_ie){var oq=X.Oq(); var lq=X.iq(oq); var i1z=0,_top=0; var I1z=(Ik.nodeType==3); var span; if (I1z){span=X.I1.createElement("SPAN"); Ik.parentNode.insertBefore(span,Ik); Ik=span; }while (Ik){if (Ik.tagName.toUpperCase()=="BODY")break; i1z+=Ik.offsetLeft; _top+=Ik.offsetTop; Ik=Ik.offsetParent; if (Ik){i1z+=Ik.clientLeft; _top+=Ik.clientTop; }}if (I1z){span.parentNode.removeChild(span); }if (oq.type.toLowerCase()!="control"){try {lq.moveToPoint(i1z,_top); }catch (t){}}lq.select(); }else {var oq=X.Oq(); var lq=X.iq(); lq.setStart(Ik,0); lq.setEnd(Ik,0); X.l17(oq); if (HTMLEditor.I10)X.f= true; X.i17(oq,lq); X.focusEditor(); }};HTMLEditor.prototype.getRange= function (){return this.iq(this.Oq()); };HTMLEditor.prototype.setRange= function (lq){try {if (HTMLEditor.is_ie){lq.select(); }else {var oq=this.Oq(); this.l17(oq); this.i17(oq,lq); } this.focusEditor(); }catch (t){}};HTMLEditor.prototype._butState= function (o20,O20){var id=document.getElementById(o20); var Ik=id; this.l20=O20; var status=this.l20(); if (Ik.tagName.toUpperCase()=="IMG"){var il=Ik.getAttribute("but_status"); if (il && il.length>0){if (il!=((status)?"_a": "_n")){Ik.setAttribute("but_status",((status)?"_a": "_n")); Ik.src=((status)?Ik.getAttribute("active_src"):Ik.getAttribute("passive_src")); }return; }var Ok=Ik.src; var o1d=Ok.search(/_[nahp]\.gif/i); if (o1d>0 && Ok.substring(o1d,2).toLowerCase()!=((status)?"_a": "_n")){Ok=Ok.substring(0,o1d)+((status)?"_a.gif": "_n.gif"); Ik.src=Ok; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.i20(Ik,Ok);} ,0144); return; }}};HTMLEditor.prototype._butOver= function (Ik){return; if (this.isPopup())return; if (Ik.tagName.toUpperCase()=="IMG"){var Ok=Ik.src; var o1d=Ok.search(/_[nahp]\.gif/i); if (o1d>0){Ik.setAttribute("save_src",Ok); if (Ok.search(/_a\.gif/i)>0)Ok=Ok.substring(0,o1d)+"_p.gif"; else Ok=Ok.substring(0,o1d)+"_h.gif"; Ik.src=Ok; Ik.setAttribute("save_over","1"); return; }}if (Ik.className=="HE_button")Ik.className="HE_button_over"; };HTMLEditor.prototype._butOut= function (Ik){return; if (Ik.tagName.toUpperCase()=="IMG"){var Ok=Ik.src; var o1d=Ok.search(/_[nahp]\.gif/i); if (o1d>0){var il=Ik.getAttribute("save_src"); if (il && il.length>0)Ik.src=il; Ik.setAttribute("save_over",""); return; }}if (Ik.className=="HE_button_over")Ik.className="HE_button"; };HTMLEditor.prototype._butDown= function (Ik){var X=this ; if (X.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 (Ik.tagName.toUpperCase()=="IMG"){var X=this ; var il=Ik.getAttribute("but_status"); if (il && il.length>0){if (il!="_a"){Ik.setAttribute("but_status","_a"); Ik.src=Ik.getAttribute("active_src"); X.I20=setTimeout( function (){X._butUp(Ik); X.I20=null; } ,03720); }return; }var Ok=Ik.src; var o1d=Ok.search(/_[nahp]\.gif/i); if (o1d>0 && Ok.substring(o1d,2).toLowerCase()!="_a"){Ok=Ok.substring(0,o1d)+"_a.gif"; Ik.src=Ok; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.i20(Ik,Ok);} ,0144); X.I20=setTimeout( function (){X._butUp(Ik); X.I20=null; } ,03720); return; }}};HTMLEditor.i20= function (Ik,o21){var O21=Ik.src.search(/_[nahp]\.gif/i); var l21=o21.search(/_[nahp]\.gif/i); if (O21>0 && l21>0 && Ik.src.substring(0,O21).toLowerCase()==o21.substring(0,l21).toLowerCase())return; Ik.src=o21; setTimeout( function (){HTMLEditor.i20(Ik,o21);} ,0144); };HTMLEditor.prototype._butUp= function (Ik){if (Ik.tagName.toUpperCase()=="IMG"){var X=this ; var il=Ik.getAttribute("but_status"); if (il && il.length>0){if (il!="_n"){if (X.I20){clearTimeout(X.I20); X.I20=null; }Ik.setAttribute("but_status","_n"); Ik.src=Ik.getAttribute("passive_src"); }return; }var Ok=Ik.src; var o1d=Ok.search(/_[nahp]\.gif/i); if (o1d>0 && Ok.substring(o1d,2).toLowerCase()!="_n"){if (X.I20){clearTimeout(X.I20); X.I20=null; }Ok=Ok.substring(0,o1d)+"_n.gif"; Ik.src=Ok; if (HTMLEditor.is_ie)setTimeout( function (){HTMLEditor.i20(Ik,Ok);} ,0144); }}return true; };HTMLEditor.prototype.O1z= function (i21){var Ik=this.I1.createElement("SPAN"); var X=this ; Ik.id=HTMLEditor.Il; if (typeof i21=="undefined"){if (!this.O11(HTMLEditor.getHTML(Ik, true)))return null; }else {if (i21.nextSibling==null)i21.parentNode.appendChild(Ik); else i21.parentNode.insertBefore(Ik,i21.nextSibling); i21.parentNode.removeChild(i21); }Ik=this.I1.getElementById(HTMLEditor.Il); Ik.id=null; Ik.removeAttribute("id"); Ik.setAttribute("para","no"); var parent=Ik.parentNode; while (parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="TD" && parent.tagName.toUpperCase()!="P" && parent.tagName.toUpperCase()!="DIV"){if (HTMLEditor.O1j(parent.tagName))parent=parent.parentNode; else break; }if (parent.tagName.toUpperCase()=="P"){Ik.setAttribute("para",""); function I21(add,Ik,o22,O22){var l22; var par=HTMLEditor.i22(o22,X.I1, false); if (add)par.appendChild(add); while (Ik){if (Ik.nodeType==1 || (Ik.nodeType==3 && HTMLEditor.i12(""+Ik.data+"").length>0)){var text=null; if (Ik.tagName && Ik.tagName.toUpperCase()=="SCRIPT")text=Ik.text; var I22=HTMLEditor.i22(Ik,X.I1, true); if (par.childNodes.length==0 || !O22)par.appendChild(I22); else par.insertBefore(I22,par.firstChild); if (text!=null)I22.text=text; }Ik=O22?Ik.previousSibling:Ik.nextSibling;}if (par.childNodes.length==0){ delete par; par=null; }if (o22==parent)return par; else return I21(par,O22?o22.previousSibling:o22.nextSibling,o22.parentNode,O22); } ; var o23=I21(null,Ik.previousSibling,Ik.parentNode, true); var O23=I21(null,Ik.nextSibling,Ik.parentNode, false); var par=parent.parentNode; if (o23){par.insertBefore(o23,parent); Ik.setAttribute("para",Ik.getAttribute("para")+" left"); }par.insertBefore(Ik,parent); if (O23){par.insertBefore(O23,parent); Ik.setAttribute("para",Ik.getAttribute("para")+" right"); }par.removeChild(parent); }return Ik; };HTMLEditor.prototype.mode= function (){return this.i1; };HTMLEditor.prototype.o1h= function (l23,value){ this.i1i(l23, false ,value); };HTMLEditor.prototype.i23= function (l23){return this.O1h(l23); };HTMLEditor.prototype.I23= 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.Oq(); var lq; try {lq=this.iq(oq); }catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); X.l17(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.l10(); var I1y=this.I1.createElement("div"); I1y.innerHTML="<table></table>"; var table=I1y.firstChild; function O1g(O1n){var Ik=table; if (O1n){Ik=Ik.firstChild.firstChild.firstChild; HTMLEditor.l1o(Ik,X); setTimeout( function (){X.updateToolbar(); X.O14(); } ,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 o24=table.insertRow(table.rows.length); for (var oh=0; oh<this.defaultTable.columns; oh++){var cell=o24.insertCell(o24.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.I23(); }}var o1z=this.O1z(); if (!o1z){X.I1e( false); return; }var parent=o1z.parentNode; parent.insertBefore(table,o1z); parent.removeChild(o1z); 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.Oq(); var lq=X.iq(oq); if (X.isControl())return; if (!((HTMLEditor.is_ie && lq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))return; var oq=X.Oq(); var lq=X.iq(oq); var O24=HTMLEditor.Il+"_right"; var l24=HTMLEditor.Il+"_left"; var i24=null; var I24=null; if (HTMLEditor.is_ie){i24=lq.duplicate(); I24=lq.duplicate(); i24.setEndPoint("EndToStart",lq); I24.setEndPoint("StartToEnd",lq); }else {i24=lq.cloneRange(); I24=lq.cloneRange(); i24.setEnd(i24.startContainer,i24.startOffset); I24.setStart(I24.endContainer,I24.endOffset); }var i1a=null; var I1a=null; X.l10(); if (!X.O11("<span id='"+O24+"'/>",I24))return []; if (!X.O11("<span id='"+l24+"'/>",i24)){var o25=X.I1.getElementById(O24); if (o25!=null){Ok=o25.parentNode; Ok.removeChild(o25); }X.I1e( false); return; }i1a=X.I1.getElementById(l24); I1a=X.I1.getElementById(O24); if (i1a==null){var span=X.I1.createElement("SPAN"); span.id=l24; I1a.parentNode.insertBefore(span,I1a); i1a=span; }if (I1a==null){var span=X.I1.createElement("SPAN"); span.id=O24; if (i1a.nextSibling)i1a.parentNode.insertBefore(span,i1a.nextSibling); else i1a.parentNode.appendChild(span); I1a=span; }HTMLEditor.i1p(i1a); HTMLEditor.i1p(I1a); var O25=HTMLEditor.l25(i1a,I1a); var i25=null; if (O25!=null){var parent=O25.parent; var I25=parent.tagName.toUpperCase(); var Ik=null; if (I25=="TR" || I25=="TBODY" || I25=="TABLE"){var Ik=parent; while (Ik && Ik.tagName.toUpperCase()!="TABLE")Ik=Ik.parentNode; }else if (I25=="OL" || I25=="UL" || I25=="DL"){var Ik=parent; }if (Ik!=null){Ik.parentNode.insertBefore(i1a,Ik); if (Ik.nextSibling)Ik.parentNode.insertBefore(I1a,Ik.nextSibling); else Ik.parentNode.appendChild(I1a); O25=HTMLEditor.l25(i1a,I1a); parent=O25.parent;}var o26=O25.parent.childNodes.item(O25.O26); var l26=O25.parent.childNodes.item(O25.i26); var I26="SPAN"; i25=X.I1.createElement(I26); if (HTMLEditor.is_ie)i25.contentEditable="false"; else i25.setAttribute("contenteditable","false"); parent.insertBefore(i25,o26);while (o26!=null){var o27=o26.nextSibling; i25.appendChild(o26); if (o26==l26)break; o26=o27; }if (HTMLEditor.is_ie){lq=X.I1.body.createControlRange(); lq.add(i25); lq.select(); }else {oq=X.Oq(); var O17; if (i25.nextSibling!=null && i25.nextSibling.nodeType==3){O17=i25.nextSibling; }else {O17=X.I1.createTextNode(""); if (i25.nextSibling!=null)i25.parentNode.insertBefore(O17,i25.nextSibling); else i25.parentNode.appendChild(O17); }X.l17(oq); lq=X.iq(oq); lq.setStart(O17,0); lq.setEnd(O17,0); X.i17(oq,lq); }}if (i1a!=null)i1a.parentNode.removeChild(i1a); if (I1a!=null)I1a.parentNode.removeChild(I1a); if (i25!=null){var index=HTMLEditor.o17(i25); HTMLEditor.O27(i25.parentNode,this.I1,index,index+1); }};HTMLEditor.prototype.insertIMG= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var oq=this.Oq(); var lq=this.iq(oq); var X=this ; var ox=X.I1; this.l10(); function O1g(O1n){try {var Ik=ox.getElementById(HTMLEditor.Il); Ik.id=null; Ik.removeAttribute("id"); var img=Ik; if (O1n){if (HTMLEditor.is_Safari){Ik=(Ik.nextSibling)?Ik.nextSibling:Ik; setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); X.l17(oq); X.i17(oq,lq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){var i1b=ox.body.createControlRange(); i1b.add(Ik); i1b.select(); }else {if (HTMLEditor.I10)X.f= true; Ik=(Ik.nextSibling)?Ik.nextSibling:Ik; HTMLEditor.l1o(Ik,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.O14(); }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 I1y=this.I1.createElement("div"); I1y.innerHTML="<img>"; var img=I1y.firstChild; img.id=HTMLEditor.Il; img.src=""; img.alt=""; img.border=0; img.align=""; img.vspace=0; img.hspace=0; if (!HTMLEditor.is_ie){}if (this.O11(HTMLEditor.getHTML(img, true))){var Ik=ox.getElementById(HTMLEditor.Il); var l27=(typeof X.imagePopupName=="string")?X.imagePopupName: "image"; this.Ii("_imageProperties",this.og(l27,"Insert Image"),Ik,O1g, true); }else {X.I1e( false); }};HTMLEditor.prototype.insertFlash= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var oq=this.Oq(); var lq=this.iq(oq); var X=this ; var ox=X.I1; this.l10(); function O1g(O1n){try {var Ik=ox.getElementById(HTMLEditor.Il); Ik.id=null; Ik.removeAttribute("id"); if (O1n){if (HTMLEditor.is_Safari){Ik=(Ik.nextSibling)?Ik.nextSibling:Ik; setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); X.l17(oq); X.i17(oq,lq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){Ik.id=HTMLEditor.Il; this.l10(); setTimeout( function (){X.I1e( false); var l1c=X.I1.getElementById(HTMLEditor.Il); l1c.id=null; l1c.removeAttribute("id"); var i1b=X.I1.body.createControlRange(); i1b.add(l1c); i1b.select(); } ,0); }else {if (HTMLEditor.I10)X.f= true; Ik=(Ik.nextSibling)?Ik.nextSibling:Ik; HTMLEditor.l1o(Ik,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.O14(); }else {X.I1e( false); }X.focusEditor(); }catch (t){alert("Flash create: "+t.message); }return true; }var I1y=this.I1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); I1y.innerHTML="\x3cembed src=\""+src+"\" type=\"application/x-shockwave-flash\" id=\""+HTMLEditor.Il+"\" quality=\"high\" wmode=\"transparent\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" >"; }else {I1y.innerHTML="\x3cimg type=\"application/x-shockwave-flash\" dummytag=\"embed\" id=\""+HTMLEditor.Il+"\" quality=\"high\" pseudomode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\""+" src=\""+X.P[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; I1y.firstChild.style.backgroundImage="url('"+X.P[2]+"')"; }var i27=I1y.firstChild; var I27=HTMLEditor.getHTML(i27, true); if (this.O11(I27)){var Ik=ox.getElementById(HTMLEditor.Il); this.Ii("_flashProperties",this.og("flash","Insert Flash"),Ik,O1g); }else {X.I1e( false); }};HTMLEditor.prototype.insertMedia= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var oq=this.Oq(); var lq=this.iq(oq); var X=this ; var ox=X.I1; this.l10(); function O1g(O1n){try {var Ik=ox.getElementById(HTMLEditor.Il); Ik.id=null; Ik.removeAttribute("id"); if (O1n){if (HTMLEditor.is_Safari){Ik=(Ik.nextSibling)?Ik.nextSibling:Ik; setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); X.l17(oq); X.i17(oq,lq); X.updateToolbar(); X.focusEditor(); } ,0); }else {if (HTMLEditor.is_ie){Ik.id=HTMLEditor.Il; this.l10(); setTimeout( function (){X.I1e( false , function (){var l1c=X.I1.getElementById(HTMLEditor.Il); l1c.id=null; l1c.removeAttribute("id"); var i1b=X.I1.body.createControlRange(); i1b.add(l1c); i1b.select(); } ); } ,0); }else {if (HTMLEditor.I10)X.f= true; Ik=(Ik.nextSibling)?Ik.nextSibling:Ik; HTMLEditor.l1o(Ik,X); }setTimeout( function (){X.updateToolbar(); } ,5); }X.O14(); }else {X.I1e( false); }X.focusEditor(); }catch (t){alert("Media create: "+t.message); }return true; }var I1y=this.I1.createElement("div"); if (HTMLEditor.is_ie){var src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); I1y.innerHTML="\x3cembed src=\""+src+"\" type=\"application/x-mplayer2\" id=\""+HTMLEditor.Il+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\" >"; }else {I1y.innerHTML="\x3cimg type=\"application/x-mplayer2\" dummytag=\"embed\" id=\""+HTMLEditor.Il+"\" pluginspage=\"http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN-US/wmpplugin.exe\""+" src=\""+X.P[1]+"\" style=\"border: 1px dotted #000000; background-position: center; background-repeat: no-repeat; background-color: #c0c0c0;\""+"/>"; I1y.firstChild.style.backgroundImage="url('"+X.P[3]+"')"; }var i27=I1y.firstChild; if (this.O11(HTMLEditor.getHTML(i27, true))){var Ik=ox.getElementById(HTMLEditor.Il); this.Ii("_mediaProperties",this.og("media","Insert Media"),Ik,O1g); }else {X.I1e( false); }};HTMLEditor.o1= function (){ this.width="auto"; this.height="auto"; this.o28="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.O28=050; HTMLEditor.prototype._changeHeight= function (l28){var X=this ; var o27=document.getElementById(X.mainDivId); var i28=null; var height; if (this.ShowQuickFormatDivId!=null)i28=document.getElementById(X.ShowQuickFormatDivId); if (parseInt(X.I14.style.height)+l28<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=o27.offsetWidth; try {height=parseInt(X._textArea.style.height)+l28+"px"; X._textArea.style.height=height; }catch (t){}height=parseInt(X.I14.style.height)+l28+"px"; X.I14.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.lx!="undefined"){X.lx=parseInt(X.lx)+l28; }}if (X._iframe){X._iframe.style.height=parseInt(X._iframe.style.height)+l28+"px"; }if (X.lv){X.lv.style.height=parseInt(X.lv.style.height)+l28+"px"; }if (i28){height=parseInt(i28.childNodes.item(1).style.height)+l28+"px"; i28.childNodes.item(1).style.height=height; }if (!HTMLEditor.is_ie){if (I18!=o27.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.O28); };HTMLEditor.prototype.decreaseHeight= function (){ this._changeHeight(0-HTMLEditor.O28); };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 o27=document.getElementById(X.mainDivId); var o1e=document.getElementById(X.panelDivId); if (HTMLEditor.is_ie)if (typeof t!="undefined")if (X.mode()=="text")if (!X.I28 && typeof X.I28!="undefined"){X.I14.style.visibility="hidden"; }try {if (X.i8.o29!=o27.offsetWidth){var width=o27.offsetWidth-X.i8.o29; if (!HTMLEditor.is_ie){if (X.i8.i19!=o1e.offsetHeight)width-=2; X.I14.style.width=parseInt(X.I14.style.width)+width+"px"; X.i8.o9=X.I14.style.width; if (X._iframe){X._iframe.style.width=X.I14.style.width; }if (X.lv){X.lv.style.width=X.I14.style.width; }}if (HTMLEditor.O13){if (X._iframe){X._iframe.style.width=parseInt(X._iframe.style.width)+width+"px"; }}X.i8.o29=o27.offsetWidth; X.i8.O29=o1e.offsetWidth; }if (X.i8.i19!=o1e.offsetHeight){var height=X.i8.i19-((o1e.style.display=="none")?0:o1e.offsetHeight); X.I14.style.height=parseInt(X.I14.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 l29=(o1e.offsetWidth>0)?o1e.offsetWidth:X.ix; if (!HTMLEditor.is_ie){X._iframe.style.width=l29-2+"px"; }}if (X.lv && X.lv.style.display!="none"){X.lv.style.height=parseInt(X.lv.style.height)+height+"px"; if (!HTMLEditor.is_ie){X.lv.style.width=l29-2+"px"; }}X.i8.O9=parseInt(X.i8.O9)+height+"px"; if (X.lv!=null && X.lv.style.display=="none")X.lv.style.height=X.i8.O9; if (!HTMLEditor.is_ie){X.i8.o9=l29-2+"px"; X.I14.style.width=l29-2+"px"; X.ix=l29; }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.I28 && typeof X.I28!="undefined"){X.I28=X.I14.value; X.I14.value=""; X.I14.style.visibility="hidden"; X.setTimeout( function (Iw){if (X.ou(Iw))return; X.I14.value=X.I28; X.I28=null;X.I14.style.visibility="visible"; X.focusEditor(); } ,036); }};HTMLEditor.prototype.I19= function (I18){var X=this ; function i29(){var ox; if (HTMLEditor.is_Safari)ox=document.getElementById(X._hiddenContent+"_inner_iframePreview").contentWindow.document; else ox=X.lv.contentWindow.document; if (!ox){if (HTMLEditor.I29 || HTMLEditor.I10){setTimeout( function (){i29(); } ,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var o2a=I18; var O2a= false; function l2a(i2a,o23,O23){o2a=O23; O2a= true; }I18.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,l2a); I18=o2a; ox.open(); var html=new I2a(); 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 o2b=0; o2b<X._addCssFiles.length; o2b++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[o2b]+"\" 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.lv.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.lv.style.width="100%"; setTimeout( function (){X.lv.style.width=X.lv.offsetWidth+"px"; X.I14.style.width=X.lv.offsetWidth+"px"; } ,0); X.lv.style.height=X.i8.O9; }}} ,0); X.Im(); }setTimeout(i29,(HTMLEditor.I29 || HTMLEditor.I10)?0144: 0); };HTMLEditor.I8= function (className){if (HTMLEditor.is_Safari)return true; var O2b=document.styleSheets,l2b=O2b.length; var i2b= false; var I1w=[]; function I2b(o2c){if (o2c.imports){try {var imports=o2c.imports,l2b=imports.length; for (var i=0; i<l2b; i++)I2b(o2c.imports[i]); }catch (t){}}try {var rules=HTMLEditor.is_ie?o2c.rules:o2c.cssRules,l2b=rules.length; for (var oh=0; oh<l2b; oh++)O2c(rules[oh]); }catch (t){}}function O2c(rule){try {var select=rule.selectorText,style=rule.style; I1w.push( {select:select,style:style } ); }catch (w){}}for (var i=0; i<l2b; i++)I2b(O2b[i]); for (var i=0; i<I1w.length; i++){try {var item=I1w[i]; if (item.select.indexOf(className)>=0)return true; }catch (w){}}return i2b; };HTMLEditor.prototype.lw= 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.lw(); } ,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 l2c(i2a,o23){X.F.push(i2a); return ""; }ih=ih.replace(/(<style(?:[^>]*?)>(?:[^<]*?)<\/style(?:[^>]*?)>)/gi,l2c); X._textArea.value=ih; }Y.style.display="none"; var i2c=document.createElement("div"); i2c.className="inner_htmlarea"; this.l1=i2c; Y.parentNode.insertBefore(i2c,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"; i2c.appendChild(iframe); this._iframe=iframe; iframe.marginHeight="0"; iframe.marginWidth="0"; iframe.style.borderWidth="0px"; if (HTMLEditor.is_ie && !HTMLEditor.O13)iframe.style.width="100%"; else {if (!HTMLEditor.I10 && document.compatMode!="BackCompat")width-=2; iframe.style.width=width+"px"; }iframe.style.height=height+"px"; this.lv=document.createElement("iframe"); this.lv.style.display="none";if (HTMLEditor.is_ie)this.lv.style.visibility="hidden"; this.lv.id=X._hiddenContent+"_inner_iframePreview"; this.lv.name=X._hiddenContent+"_inner_iframePreview"; if (this.ignoreTab)this.lv.tabIndex=-1; if (HTMLEditor.is_ie)this.lv.src="javascript:false;"; this.lv.className="inner_iframe"; i2c.appendChild(this.lv); this.lv.marginHeight="0"; this.lv.marginWidth="0"; this.lv.style.borderWidth="0px"; if (HTMLEditor.is_ie)this.lv.style.width="100%"; else { this.lv.style.width=width+"px"; } this.lv.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"; i2c.appendChild(Y); this.I14=Y; function I2c(Iw){if (X.ou(Iw))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.I29 || HTMLEditor.I10){X.setTimeout(I2c,0144); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}try {if (HTMLEditor.I29 || HTMLEditor.I10){ox.designMode="on"; }}catch (t){document.location.reload( true); return false; }X.I1=ox; ox.open(); var html=new I2a(); if (X.d!=null)html.write(X.d.replace(/(<!doctype [^>]*>)/ig,"")); html.write("<html"+(X.B!=null?X.B: "")+(HTMLEditor.is_ie?" xmlns:teo"+HTMLEditor.Il: "")+">"); html.write("<head"+(X.c!=null?X.c: "")+">"); html.write("\x3clink rel=\"stylesheet\" href=\""+X.P[013]+"\" media=\"all\" />"); if (HTMLEditor.is_ie){html.write("<style> li {margin-top: 1px;} </style>"); }for (var o2d=0; o2d<X.F.length; o2d++)html.write(X.F[o2d]); html.write("\x3cstyle>\n"+X.defaultStyles+"\x3c/style>\n"); if (X._addCssFiles!=null){for (var o2b=0; o2b<X._addCssFiles.length; o2b++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[o2b]+"\" 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 O2d(Ik){if (Ik.nodeType==1 && Ik.tagName){var ll=Ik.tagName.toUpperCase(); if (ll!="INPUT" && ll!="TEXTAREA" && ll!="IFRAME"){Ik.unselectable="on"; }for (var l2d=0; l2d<Ik.childNodes.length; l2d++)O2d(Ik.childNodes.item(l2d)); }}O2d(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.i2d(event); } ); if (HTMLEditor.I10)HTMLEditor.lk(X._iframe,"blur", function (event){X.f= false; HTMLEditor._stopEvent(event); return true; } ); if (HTMLEditor.I10)HTMLEditor.lk(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.I2d){var o1e=document.getElementById(X.mainDivId); X.i8.o29=o1e.offsetWidth; o1e=document.getElementById(X.panelDivId); X.i8.i19=o1e.offsetHeight; X.i8.O29=o1e.offsetWidth; if (!o1e.style.width || o1e.style.width.indexOf("px")<0){X.I2d= true; HTMLEditor.lk(X.O1,"resize", function (event){X._onresize(event); } ); }if (X.__NoToolBar__ || HTMLEditor.I10){if (X.__NoToolBar__)o1e.style.display="none"; X.setTimeout( function (Iw){if (X.ou(Iw))return; X._onresize(); if (HTMLEditor.is_Safari || HTMLEditor.I10){X._iframe.style.width="100%"; X.setTimeout( function (Iw){if (X.ou(Iw))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.I14.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }}else {X.setTimeout( function (Iw){if (X.ou(Iw))return; if (X.__NoToolBar__){var o1e=document.getElementById(X.panelDivId); o1e.style.display="none"; }if (HTMLEditor.is_Safari)X.setTimeout( function (Iw){if (X.ou(Iw))return; X._onresize(); } ,0); else {X._onresize(); }if (!HTMLEditor.is_ie){X._iframe.style.width="100%"; X.setTimeout( function (Iw){if (X.ou(Iw))return; X._iframe.style.width=X._iframe.offsetWidth+"px"; X.I14.style.width=X._iframe.offsetWidth+"px"; } ,0); }} ,0); }} ; X.setTimeout(I2c,(HTMLEditor.I29 || HTMLEditor.I10)?0144: 0); this.o2e= true; } ; HTMLEditor.I4= function (X,table,O2e){function O1g(O1n){if (!O1n){X.I1e( false); }else {if (HTMLEditor.I10){X.f= true; X.focusEditor(); }setTimeout( function (){X.updateToolbar(); X.O14(); } ,012); }return true; }var l2e=0,i2e=0; while (O2e!=null){if (O2e.tagName){if (O2e.tagName.toUpperCase()=="TD"){if (HTMLEditor.is_Safari){var I2e=O2e.parentNode; for (var i=0; i<I2e.cells.length; i++)if (I2e.cells.item(i)==O2e){i2e=i; break; }}else i2e=O2e.cellIndex; l2e=O2e.parentNode.rowIndex; break; }}O2e=O2e.parentNode; }X.l10(); 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,l2e,i2e); };HTMLEditor.i4= function (X,cell){function O1g(O1n){if (!O1n){X.I1e( false); }else {if (HTMLEditor.I10){X.f= true; X.focusEditor(); }X.updateToolbar(); X.O14(); }return true; }X.l10(); 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.I10){X.f= true; X.focusEditor(); }X.O14(); }if (typeof X.imageCallback=="function"){X.imageCallback(O1n?img:null); }return true; }X.l10(); var l27=(typeof X.imagePopupName=="string")?X.imagePopupName: "image"; X.Ii("_imageProperties",X.Og(l27,"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,Ik){var o2f= false; try {X.l10(); o2f= true; if (!HTMLEditor.is_ie)Ik=HTMLEditor.contentEditable(Ik); Ik.contentEditable="inherit"; Ik.removeAttribute("contenteditable"); if (Ik.tagName && (Ik.tagName.toUpperCase()=="SPAN" || Ik.tagName.toUpperCase()=="DIV")){var count=0; if (Ik.attributes)for (var i=0; i<Ik.attributes.length; i++){var O2f=Ik.attributes[i]; if (O2f.name.toUpperCase()=="STYLE")continue; if (O2f.specified)count++; }var l2f=(Ik.style)?Ik.style.cssText: ""; var par=Ik.parentNode; if (count==0 && l2f.length==0){while (Ik.firstChild!=null)par.insertBefore(Ik.firstChild,Ik); par.removeChild(Ik); }HTMLEditor.O27(par,X.I1); }}catch (w){try {if (o2f)X.I1e( false); if (HTMLEditor.is_ie){HTMLEditor.l1o(Ik,X); }}catch (i13){}}};HTMLEditor.l2= function (X,i27){function O1g(O1n){if (!O1n){setTimeout( function (){X.I1e( false); } ,0); }else {if (HTMLEditor.is_ie){i27.id=HTMLEditor.Il; X.l10(); setTimeout( function (){X.I1e( false); var l1c=X.I1.getElementById(HTMLEditor.Il); l1c.id=null; l1c.removeAttribute("id"); var i1b=X.I1.body.createControlRange(); i1b.add(l1c); i1b.select(); } ,0); }else if (HTMLEditor.I10){X.f= true; X.focusEditor(); }X.O14(); }return true; }X.l10(); X.Ii("_flashProperties",X.Og("flash","Edit a Flash"),i27,O1g); };HTMLEditor.O3= function (X,media){function O1g(O1n){if (!O1n){setTimeout( function (){X.I1e( false); } ,012); }else {if (HTMLEditor.is_ie){X.l10(); setTimeout( function (){X.I1e( false); } ,012); }else if (HTMLEditor.I10){X.f= true; X.focusEditor(); }X.O14(); }return true; }X.l10(); X.Ii("_mediaProperties",X.Og("media","Edit Media"),media,O1g); };HTMLEditor.prototype.i2f= function (media,Io){var X=this;if (media!=null){media.id=HTMLEditor.Il; }X.l10(); X.lv.style.display="none"; if (HTMLEditor.is_ie)X.lv.style.visibility="hidden"; try {while (X._iframe.firstChild)X._iframe.removeChild(X._iframe.firstChild); if (HTMLEditor.is_ie)X.Oq().empty(); try {X._iframe.blur(); }catch (t){} ; X._iframe.src=(HTMLEditor.is_ie)?"javascript:false;": ""; var 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.I2f( false); if (media!=null){var l1c=X.I1.getElementById(HTMLEditor.Il); l1c.id=null; l1c.removeAttribute("id"); media=l1c; }if (typeof Io=="function")Io(media); } ); } ,0); };HTMLEditor.o3= function (X,o2g){X.l10(); var O2g=o2g; if (O2g.getAttribute(HTMLEditor.Is) && O2g.getAttribute(HTMLEditor.Is).length>0){var Ok=X.ot(O2g); if (Ok!=null)O2g=Ok; }setTimeout( function (){if (HTMLEditor.is_ie){var oq=X.Oq(); oq.empty(); }var par=O2g.parentNode; if (par!=null){par.removeChild(O2g); if (par.tagName && par.tagName.toUpperCase()=="TD" && par.childNodes.length==0){par.innerHTML=X.I23(); }}if (HTMLEditor.is_ie){var l16=X.K[X.O1e-1]; var oq=X.Oq(); oq.empty(); var lq=X.I1.body.createTextRange(); try {lq.moveToPoint(l16.l2g,l16.i2g); }catch (t){}lq.select(); lq.execCommand("refresh", false , false); }X.O14(); } ,012); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.DeleteNode= function (o2g){HTMLEditor.o3(this,o2g); };HTMLEditor.O5= function (X,o2g){X.cut(); };HTMLEditor.i5= function (X,o2g){X.copy(); };HTMLEditor.I5= function (X,o2g){X.paste(); };HTMLEditor.O6= function (X,o2g){X.pasteText(); };HTMLEditor.i6= function (X,o2g){X.deleteSelection(); };HTMLEditor.I6= function (X,o2g){X.selectAll(); };HTMLEditor.l5= function (X,o2g){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.i12(X.O1b()): ""; var oq=X.Oq(); var lq=X.iq(oq); if (HTMLEditor.is_ie)if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; if (!X.isControl() && ((HTMLEditor.is_ie && lq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))return true; return false; };HTMLEditor.o6= function (X,o2g){if (!X.isControl()){if (!HTMLEditor.is_ie){var lq=X.iq(X.Oq()); var o23=lq.startContainer; var O23=lq.endContainer; var Ik=HTMLEditor.contentEditable(o23); if (Ik==null)Ik=HTMLEditor.contentEditable(O23); if (Ik!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return !X._NoPaste; }return false; };HTMLEditor.l6= function (X,o2g){if (!X.isControl()){if (!HTMLEditor.is_ie){var lq=X.iq(X.Oq()); var o23=lq.startContainer; var O23=lq.endContainer; var Ik=HTMLEditor.contentEditable(o23); if (Ik==null)Ik=HTMLEditor.contentEditable(O23); if (Ik!=null)return false; }else {if (HTMLEditor.contentEditable(HTMLEditor.getSelParent(X))!=null)return false; }return true; }return false; };HTMLEditor.i2= function (X,o2g){var O2g=o2g; if (O2g.getAttribute(HTMLEditor.Is) && O2g.getAttribute(HTMLEditor.Is).length>0){var Ok=X.ot(O2g); if (Ok!=null)O2g=Ok; }setTimeout( function (){var I2g=X.I1.body.createControlRange(); I2g.add(O2g); I2g.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.O1f(); X.l1f("c", false); X.Im(); X.i1f(); } ,0);}else {X.l1f("c", false); setTimeout( function (){X.Oq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.I2= function (X,o2g){var O2g=o2g; if (O2g.getAttribute(HTMLEditor.Is) && O2g.getAttribute(HTMLEditor.Is).length>0){var Ok=X.ot(O2g); if (Ok!=null)O2g=Ok; }setTimeout( function (){var I2g=X.I1.body.createControlRange(); I2g.add(O2g); I2g.select(); if (HTMLEditor.is_ie){X.openWait(); setTimeout( function (){X.O1f(); X.l1f("x", false); X.Im(); } ,0);}else {X.l1f("x", false); setTimeout( function (){X.Oq().empty(); } ,0144); }} ,5); setTimeout( function (){X.updateToolbar(); X.focusEditor(); } ,024); };HTMLEditor.prototype.i10= function (par){try {var Ik=this.I1.body; if (Ik.firstChild)if (Ik.firstChild.nodeType==3){var ih=HTMLEditor.i12(""+Ik.firstChild.data+""); if (ih.length==0)Ik.removeChild(Ik.firstChild); else if (ih!=(""+Ik.firstChild.data+""))Ik.firstChild.data=ih; }if (HTMLEditor.is_ie)if (Ik.childNodes.length==1){Ik=Ik.firstChild; if (Ik.nodeType==1)if (Ik.tagName.toLowerCase()=="p" || Ik.tagName.toLowerCase()=="ul" || Ik.tagName.toLowerCase()=="ol"){var o2h= false; var O2h=(Ik.tagName.toLowerCase()=="ul" || Ik.tagName.toLowerCase()=="ol")? true : false; function l2h(ic){var le= false; if (ic.nodeType==1){if (!(O2h && ic.tagName.toUpperCase()=="LI"))if (HTMLEditor.i2h(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 |= l2h(ic.firstChild); }else if (ic.nodeType==3){le |= true; }return le; }if (Ik.childNodes.length==1){if (!l2h(Ik.firstChild)){Ik.removeChild(Ik.firstChild); o2h= true; }}if (o2h || Ik.parentNode.innerHTML.toLowerCase()=="<p>&nbsp;</p>")this.I1.body.removeChild(Ik); }} this.O14(); }catch (t){}};HTMLEditor.I2h=navigator.userAgent.toLowerCase(); HTMLEditor.is_ie=((HTMLEditor.I2h.indexOf("msie")!=-1) && (HTMLEditor.I2h.indexOf("opera")==-1)) && (window.opera==null || !window.opera); HTMLEditor.O13=(/MSIE (8)/.test(navigator.userAgent) && document.compatMode!="BackCompat"); HTMLEditor.I10=(HTMLEditor.I2h.indexOf("opera")!=-1) || window.opera; HTMLEditor.o2i=(HTMLEditor.I2h.indexOf("mac")!=-1); HTMLEditor.O2i=(HTMLEditor.is_ie && HTMLEditor.o2i); HTMLEditor.l2i=(HTMLEditor.is_ie && !HTMLEditor.o2i); HTMLEditor.I29=(navigator.product=="Gecko"); HTMLEditor.is_Safari=(HTMLEditor.I2h.indexOf("safari")!=-1); HTMLEditor.i2i=(HTMLEditor.I2h.indexOf("firefox")!=-1); HTMLEditor.I2i=(HTMLEditor.I2h.indexOf("safari")!=-1); HTMLEditor.o2j=(HTMLEditor.I2h.indexOf("firefox")!=-1); HTMLEditor.O2j=HTMLEditor.I29 && navigator.l2j=="Camino"; HTMLEditor.i2j=!HTMLEditor.I10 && navigator.userAgent.indexOf("Konqueror")!=-1; HTMLEditor.I2j=HTMLEditor.i2j || HTMLEditor.I2i; HTMLEditor.ib=(/[^12]\.(\d+)\.(\d+) safari/i).test(HTMLEditor.I2h); HTMLEditor.Ij=(HTMLEditor.I2h.indexOf("netscape")!=-1 && navigator.vendorSub.replace(/^(\d+)\.\d*/,"$1")<8) || (HTMLEditor.I29 && navigator.productSub<0114371117) || (HTMLEditor.is_Safari && !HTMLEditor.ib); HTMLEditor.o2k= function (){var O2k="",l2k; if (HTMLEditor.I10){O2k=opera.O2k(); }else {if (HTMLEditor.I29){l2k=/rv:([^);]+)(\)|;)/; }else if (HTMLEditor.is_ie){l2k=/MSIE\s+([^);]+)(\)|;)/; }else if (HTMLEditor.I2i){l2k=/WebKit\/(\S+)/; }else if (HTMLEditor.i2j){l2k=/Konqueror\/([^);]+)(\)|;)/; }if (l2k){l2k.test(navigator.userAgent); O2k=RegExp.$1; }}return O2k; };HTMLEditor.compareVersions= function (i2k,I2k){var o2l=0,O2l=String(i2k).split("."),l2l=String(I2k).split("."),i2l=Math.max(O2l.length,l2l.length); for (var I2l=0; o2l==0 && I2l<i2l; I2l++){var o2m=O2l[I2l] || "",O2m=l2l[I2l] || "",l2m=new RegExp("(\\d*)(\\D*)","g"),i2m=new RegExp("(\\d*)(\\D*)","g"); do {var I2m=l2m.exec(o2m) || ["","",""],o2n=i2m.exec(O2m) || ["","",""]; if (I2m[0].length==0 && o2n[0].length==0){break; }var O2n=I2m[1].length==0?0:parseInt(I2m[1],012),l2n=o2n[1].length==0?0:parseInt(o2n[1],012); o2l=HTMLEditor.i2n(O2n,l2n) || HTMLEditor.i2n(I2m[2].length==0,o2n[2].length==0) || HTMLEditor.i2n(I2m[2],o2n[2]);}while (o2l==0);}return o2l;} ; HTMLEditor.i2n= function (left,right){if (left<right){return -1;}else if (left>right){return 1;}return 0;} ; HTMLEditor.I2n= function (o2o,O2o){return HTMLEditor.compareVersions(o2o,O2o); } ; HTMLEditor.l2o= function (O2k){return HTMLEditor.I2n(HTMLEditor.o2k(),O2k)>=0; } ; if (HTMLEditor.is_Safari && !HTMLEditor.ib)( function (){var i2o=String.prototype.replace; String.prototype.replace= function (search,replace){if (typeof replace!="function"){return i2o.apply(this,arguments);}var ih=""+this ; var I2o=replace; if (!(search instanceof RegExp)){var o2p=ih.indexOf(search); return (o2p==-1?ih:i2o.apply(ih,[search,I2o(search,o2p,ih)]));}var O2p=search; var I1w=[]; var l2p=O2p.lastIndex; var l2k; while ((l2k=O2p.exec(ih))!=null){var o2p=l2k.index; var lb=l2k.concat(o2p,ih); I1w.push(ih.slice(l2p,o2p),I2o.apply(null,lb).toString()); if (!O2p.global){l2p+=RegExp.lastMatch.length; break; }else {l2p=O2p.lastIndex; }}I1w.push(ih.slice(l2p)); return I1w.join(""); };} )(); HTMLEditor.Q= function (){if (HTMLEditor.I29){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.o2i && !(HTMLEditor.is_Safari || HTMLEditor.i2i)){alert(this.Of("mac-using","Use Safari or FireFox...")); return false; }if (HTMLEditor.I10){var O2k=0; var i2p=0; function test(i2a,o23,O23){O2k=parseInt(o23); i2p=parseInt(O23); }HTMLEditor.I2h.replace(/opera\/(\d+)\.(\d+)/ig,test); if (!(O2k*0144+i2p>=01630)){alert("Opera < 9.20 is not supported"); return false; }}return HTMLEditor.I29 || HTMLEditor.is_ie || HTMLEditor.I10; } ; HTMLEditor.lk= function (Ik,I2p,Io){if (!Ik){return; }if (Ik.attachEvent)Ik.attachEvent("on"+I2p,Io); else {if (Ik.addEventListener)Ik.addEventListener(I2p,Io, true); }} ; HTMLEditor.iv= function (Ik,o2q,Io){if (!Ik){return; }try {if (typeof Ik.push=="function"){for (var i=0; i<o2q.length; i++)for (var oh=0; oh<Ik.length; oh++)HTMLEditor.lk(Ik[oh],o2q[i],Io); }else {for (var i=0; i<o2q.length; i++)HTMLEditor.lk(Ik,o2q[i],Io); }}catch (t){ throw t; }} ; HTMLEditor.Ic= function (Ik,I2p,Io){if (Ik.detachEvent)Ik.detachEvent("on"+I2p,Io); else {if (Ik.removeEventListener)Ik.removeEventListener(I2p,Io, true); }} ; HTMLEditor.O2q= function (Ik,o2q,Io){if (Ik.push){for (var i=0; i<o2q.length; i++)for (var oh=0; oh<Ik.length; oh++)HTMLEditor.Ic(Ik[oh],o2q[i],Io); }else {for (var i=0; i<o2q.length; i++)HTMLEditor.Ic(Ik,o2q[i],Io); }} ; 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.Oo && 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.l15=="html")I18=this.O19; else I18=this.I14.value; if (HTMLEditor.is_Safari){}}else {if (this.i1=="html"){I18=this.getHTML(); }else {if (this.I14)I18=this.I14.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 l2q=I18.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"); if (!this._remainLf)l2q=HTMLEditor.i12(l2q); this._textArea.value=l2q; return [l2q,I18]; } ; HTMLEditor.prototype._prepareHTML= function (ih){var save=this.i1; this.i1="text"; var i2q=(this.I14)? true : false; if (!i2q){var Y=document.createElement("textarea"); this.I14=Y; if (HTMLEditor.is_Safari)document.body.appendChild(Y); }if (!(this.lu && !HTMLEditor.S())){ this.I14.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 I2q(i2a,o23){if (o23=="\\n")return "\n"; return o23.replace("\\\\","\\"); } this.I14.value=this.I14.value.replace(/([\\]+n)/g,I2q); if (this.InitialCleanUp)this.I14.value=HTMLEditor.o2r(HTMLEditor.i12(this.I14.value.replace(/[\n\r]+/g," "))); if (typeof ih!="string")ih.value=""; document.getElementsByName(this._hiddenContent)[0].value=HTMLEditor.i12(this.I14.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")); if (document.getElementsByName(this._hiddenContent+"_modified").length==0){var Ok=document.createElement("input"); Ok.type="hidden"; Ok.name=this._hiddenContent+"_modified"; document.getElementsByName(this._hiddenContent)[0].parentNode.insertBefore(Ok,document.getElementsByName(this._hiddenContent)[0]); }}if (this._textArea.style.visibility=="hidden")this._textArea.style.visibility="visible"; this.F=null; var le=this.getHTML(); if (!i2q){ this.I14=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; } this.i1=save; return le; };HTMLEditor.prototype.setOriginal= function (On){var X=this ; if (X.mode()=="preview"){X.o16= false; X.l= true; }else if (X.mode()=="text"){X.I15=X.I14.value; X.o16= false; X.l= true; }else {X.o14=HTMLEditor.i12((typeof On!="undefined" && On!=null)?On:HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.O14(); }X.l= false; }return true; };HTMLEditor.prototype.setContent= function (ih,O2r,l2r){if (this.mode()=="preview")return false; var X=this ; if (typeof l2r=="function"){ this.L=l2r; }function i2r(){if (typeof ih=="string"){if (!X.lt() || !X.mainDivVisible){X._textArea.value=""; X._textArea.value=X._prepareHTML(ih.replace(/"/g,"&quot;")); X.Im(); X.O14(); return false; }try {try {if (X.mode()=="html")X.l10(); }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 O2r!="undefined") && O2r){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.Im(); return false; }X.O14(); }else {if ((typeof O2r!="undefined") && O2r){X.o14=HTMLEditor.i12(HTMLEditor.getHTML(X.I1.body, false , true)); if (X.onClientContentChanged!=null && typeof X.onClientContentChanged=="function"){X.O14(); }if (X.K!=null){try {while (X.K.length>0){ delete X.K.pop(); }}catch (t){}X.K=null; X.O1e=-1; }}X.Im(); }return true; }if (this.mode()=="text"){if (this.mainDivVisible){try {if (typeof ih=="string")X.I14.value=ih; if ((typeof O2r!="undefined") && O2r){X.I15=X.I14.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.I14!=null && X.I14!="undefined")X.I14.value=X._textArea.value; }return true; }}if (this.mode()=="html"){if (this.mainDivVisible){function I2r(){if (X.Oo){X.openWait(); setTimeout(i2r,0); }else {setTimeout(I2r,0144); }}I2r(); }return true; }return false; };HTMLEditor.prototype.getContent= function (o2s){var le; if (this.i1=="preview"){if (this.l15=="html")le=this.O19; else le=this.I14.value; }else if (HTMLEditor.is_ie){if (this.i1=="html"){le=this.getHTML(); }else {var i2q=(this.I14)? true : false; if (!i2q){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.I14=Y; this.I14.value=document.getElementsByName(this._hiddenContent)[0].value.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); }le=HTMLEditor.O2s(this.I14.value); if (!i2q){ this.I14=null; if (HTMLEditor.is_Safari)document.body.removeChild(Y); delete Y; }}}else {le=this.getHTML(); }if (!(typeof o2s!="undefined" && o2s)){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.Oq(); var lq=this.iq(oq); if (!this.isControl() && ((HTMLEditor.is_ie && lq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)))return true; else return false; };HTMLEditor.prototype.getContentWait= function (Ip,o2s){if (typeof Ip=="function"){var X=this ; X.openWait(); setTimeout( function (){Ip(X.getContent(o2s)); X.Im(); } ,0); }} ; HTMLEditor.prototype.openWait= function (l2r){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 l2r=="function"){ this.L=l2r; }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 l2s=(X.i1=="text")?(X.l1==null?null:X.I14): ((X.i1=="preview")?X.lv:X._iframe); if (l2s==null && X._textArea && X._textArea.style.i2s!="none" && X._textArea.style.visibility!="hidden")l2s=X._textArea; if (l2s==null || typeof l2s=="undefined")l2s=document.getElementById(X.mainDivId); var I2s=parseInt(l2s.offsetWidth); var o2t=parseInt(l2s.offsetHeight); var O2t=HTMLEditor.l2t(l2s, false); y=o2t/2-O9/2+O2t._top; x=I2s/2-o9/2+O2t.i1z; popup.style.top=y+"px"; popup.style.left=x+"px"; this.n=popup; popup.style.display=""; }catch (t){alert("openWait: "+t.message); }};HTMLEditor.prototype.Im= function (){if (this.L!=null){var i2t=this.L; setTimeout(i2t,0764); this.L=null; }if (HTMLEditor.is_ie && this.mainDivVisible && this.lt() && this.i1=="html" && document.getElementById(this.mainDivId)!=null){try { this.updateToolbar(); }catch (t){} ; }if (this.n==null)return; var Ok; try {Ok=this.n.parentNode.removeChild(this.n); delete Ok; }catch (t){} this.n=null; };HTMLEditor.prototype.Ib= function (l2r){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 l2s=(X.i1=="text")?(X.l1==null?null:X.I14): ((X.i1=="preview")?X.lv:X._iframe); if (l2s==null && X._textArea && X._textArea.style.i2s!="none" && X._textArea.style.visibility!="hidden")l2s=X._textArea; if (l2s==null || typeof l2s=="undefined")l2s=document.getElementById(X.mainDivId); var I2s=parseInt(l2s.clientWidth); var o2t=parseInt(l2s.clientHeight); var O2t=HTMLEditor.l2t(l2s, false); y=o2t/2-O9/2+O2t._top; x=I2s/2-o9/2+O2t.i1z; popup.style.top=y+"px"; popup.style.left=x+"px"; this.R=popup; popup.style.display=""; }catch (t){}};HTMLEditor.prototype.I2t= function (){if (this.R==null)return; var Ok=this.A.removeChild(this.R); delete Ok; 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.lr==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 (Iw){if (X.ou(Iw))return; X.activate(); } ,0); }else {X.chMode("html"); }}}else {if (X.mainDivVisible){var V=0; if (X.v!=null && typeof X.v.pop=="function"){while (X.v.length>0){var T=X.v.pop(); if (typeof T[0]=="function"){try {clearTimeout(T[1]); }catch (t){}V++; }}X.v=null; }try {X.Im();}catch (w){} ; var o2u=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 O2u= false; if (X.i1=="html" || X.i1=="preview"){if (X.i1=="html")X.I0= false; if (o2u)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.Oq().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.lv); }catch (t){} ; X.lv=null; if (il!=null) delete il; il=null; try {il=X.l1.removeChild(X.I14); }catch (t){} ; X.I14=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.lx=X.i8.O9; X.l19=X.i8.i19; }X._textArea.style.display="block"; }catch (t){}O2u= true; }else if (X.i1=="text")O2u= true; if (X.ShowQuickFormatDivId!=null)HTMLEditor.i18(X.ShowQuickFormatDivId); if (O2u)setTimeout( function (){document.getElementById(X.mainDivId).style.display="none"; X.mainDivVisible= false; } ,024); }}document.getElementsByName(X.mainDivVisibleName)[0].value=(X.mainDivVisible)?"true": "false"; };HTMLEditor.O2s= function (ih){return ih.replace(/<br>/ig,"<br/>"); };HTMLEditor.O18= function (l1p){if (l1p.nodeType==3){if (/[\n\r]/g.test(l1p.data)){l1p.data=l1p.data.replace(/[\n\r]/g," "); }}else {for (var i=0; i<l1p.childNodes.length; i++){HTMLEditor.O18(l1p.childNodes.item(i)); }}};HTMLEditor.prototype.getHTML= function (Om,l2u){try {var o15=this.i1; if (o15=="preview"){o15=this.l15; if (o15=="html"){return this.O19; }}function i2u(i2a,o23){return "&#"+o23.charCodeAt(0).toString(012)+";"; }function I2u(i2a,o23){return "\x3cspan class=\""+HTMLEditor.Il+"_script\" style=\'display:none;visibility:hidden;\'>"+o23.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }var o2v=[]; function O2v(i2a,o23){o2v.push(o23); return "";}function l2v(i2a,o23,O23,i2v){return o23.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var I2v=-1; function o2w(i2a,o23,O23,i2v){I2v++; var O2w; if (!HTMLEditor.is_ie)O2w=o2v[I2v].replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\""); else O2w=o2v[I2v]; return o23+O2w+i2v; }function l2w(i2a,o23){X.c=o23; return i2a; } ; function i2w(i2a,o23){X.d=o23; return ""; } ; function I2w(i2a,o23){X.D=o23; return ""; } ; function l2a(i2a,o23,O23){X.C=o23; return O23; } ; function o2x(i2a,o23){X.B=o23; return i2a; } ; switch (o15){case "html":if (!HTMLEditor.is_ie){if (/[\n\r]/g.test(this.I1.body.innerHTML)){HTMLEditor.O18(this.I1.body); }} this.i10(); var On=(typeof l2u!="undefined"); if (typeof Om=="undefined" || Om== false){var O2x=!HTMLEditor.Oy(this,this.I1, true); var l2x=!HTMLEditor.ly(this,this.I1, true); On=On && O2x && l2x; }var i2x=""; if (this.F!=null)for (var i=0; i<this.F.length; i++){i2x+=this.F[i].replace(new RegExp("}\\s*","g"),"}\n").replace(/(<style(?:[^>]*?)>)/ig,"$1\n")+"\n"; }if (HTMLEditor.is_ie){var Ok=(On && typeof l2u!="undefined")?l2u:HTMLEditor.getHTML(this.I1.body, false , true); var I2x=Ok; this.o16=!(this.o14==Ok); Ok=Ok.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); Ok=Ok.replace(/(<td[^>]*?>)\s*(&nbsp;)\s*(<\/td[^>]*?>)/ig,"$1<br/>$3"); Ok=Ok.replace(/(<p[^>]*?>)\s*(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3"); Ok=Ok.replace(/(<p[^>]*?>)\s*(<span id="OboutMSIEparagraph_left"><\/span>)(&nbsp;)(<span id="OboutMSIEparagraph_right"><\/span>)\s*(<\/p[^>]*?>)/ig,"$1$2<br/>$4$5"); Ok=Ok.replace(/(<p[^>]*?>)\s*(<span id="OboutMSIEparagraph_left"><\/span><span id="OboutMSIEparagraph_right"><\/span>)(&nbsp;)\s*(<\/p[^>]*?>)/ig,"$1$2<br/>$4"); Ok=Ok.replace(/(<p[^>]*?>)\s*(&nbsp;)(<span id="OboutMSIEparagraph_left"><\/span><span id="OboutMSIEparagraph_right"><\/span>)\s*(<\/p[^>]*?>)/ig,"$1<br/>$3$4"); Ok=Ok.replace(/(<p[^>]*?>)(<\/p[^>]*?>)/ig,"$1<br/>$2"); Ok=Ok.replace(/(<p[^>]*?>)(<span id="OboutMSIEparagraph_left"><\/span>)(<span id="OboutMSIEparagraph_right"><\/span>)(<\/p[^>]*?>)/ig,"$1$2<br/>$3$4"); if (I2x!=Ok)this.i15=null; if (!(this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML)){Ok=((this.I1.body.style.cssText.length>0)?"\x3cdiv style=\""+this.I1.body.style.cssText.replace("\"","'")+"\">": "")+Ok+((this.I1.body.style.cssText.length>0)?"</div>": ""); }if (this.predicatedTags)Ok=Ok.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); if (this.NoScript)Ok=Ok.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); if (/<embed/ig.test(Ok)){Ok=Ok.replace(/(<embed(?:.*?))(\sloop="true")((?:.*?)>)/ig,"$1$3"); Ok=Ok.replace(/(<embed(?:.*?))(\splay="true")((?:.*?)>)/ig,"$1$3"); Ok=Ok.replace(/(<embed(?:.*?))(\sbgcolor="")((?:.*?)>)/ig,"$1$3"); Ok=Ok.replace(/(<embed(?:.*?))(\sscale="")((?:.*?)>)/ig,"$1$3"); Ok=Ok.replace(/(<embed(?:.*?))(\shspace="0")((?:.*?)>)/ig,"$1$3"); Ok=Ok.replace(/(<embed(?:.*?))(\svspace="0")((?:.*?)>)/ig,"$1$3"); Ok=Ok.replace(/(<embed(?:.*?))(\swmode="[^"]+")((?:.*?)>)/ig,"$1$3"); Ok=Ok.replace(/(<embed(?:.*?))(pseudomode=)("[^"]*")((?:.*?)>)/ig,"$1wmode=$3$4"); Ok=Ok.replace(/(<embed(?:.*?))(\swmode="")((?:.*?)>)/ig,"$1$3"); }var o2y=i2x+HTMLEditor.O2s(Ok); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var O2y=""; if (this.d!=null)O2y+=this.d; O2y+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">"; if (this.I1.getElementById("oboutEditorDefaultStyle")==null){O2y+="\n\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; O2y+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"; }if (this._addCssFiles!=null){O2y+="\n"; for (var o2b=0; o2b<this._addCssFiles.length; o2b++){var l2y= true; if (this.D!=null && this.D.length>0){var i2y=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[o2b]+"\"","ig");if (i2y.test(this.D))l2y= false; }if (l2y)O2y+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[o2b]+"\" media=\"all\" />\n"; }}if (this.D!=null)O2y+=this.D; O2y+="\x3c/head>\n"; if (this.I1.body.style.cssText.length>0){var I2y="<div"+(this.C!=null?this.C: "")+"></div>"; var o2z=document.createElement("DIV"); o2z.innerHTML=I2y; o2z.firstChild.style.cssText+=";"+this.I1.body.style.cssText; I2y=HTMLEditor.getHTML(o2z, false , true); I2y=I2y.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");O2y+="<body"+I2y+">\n"; }else {O2y+="<body"+(this.C!=null?this.C: "")+">\n"; }O2y+=o2y+"\n"; O2y+="\x3c/body>\n\x3c/html>"; o2y=O2y; }if (this.NoUnicode)o2y=o2y.replace(/([\x80-\uffff])/g,i2u);if (HTMLEditor.i12(o2y)=="<br />")o2y=""; o2y=o2y.replace(/^([\n|\r]+)/,""); var O2z=new RegExp("(<[/]?)(teo"+HTMLEditor.Il+":)","ig"); o2y=o2y.replace(O2z,"$1"); return o2y; }var l2z=this.I1.createElement("DIV"); l2z.style.cssText=this.I1.body.style.cssText; if (!this.NoScript)this.I1.body.innerHTML.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,O2v); l2z.innerHTML=HTMLEditor.i12(this.I1.body.innerHTML); var In=(On && typeof l2u!="undefined")?l2u:HTMLEditor.getHTML(this.I1.body, false , true); this.o16=!(this.o14==HTMLEditor.i12(In)); var o1w=l2z.getElementsByTagName("IMG"); var i2z=[]; for (var i=0; i<o1w.length; i++)i2z.push(o1w[i]); for (var oh=0; oh<i2z.length; oh++){var img=i2z[oh]; var O2f; O2f=img.getAttribute("dummytag"); if (O2f && O2f.length>0 && O2f.toLowerCase()=="embed"){var src=img.getAttribute("dummysrc"); var I2z=img.getAttribute("dummybgcolor"); var wmode=img.getAttribute("pseudomode"); var o30=img.attributes; var embed=this.I1.createElement("EMBED"); var l2k=/(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 (I2z && I2z.length>0){function O30(l30){return (l30<020)?("0"+l30.toString(020)):l30.toString(020); } ; function i30(I30,$1,$2,$3,$4){var i1g=parseInt($2); var o31=parseInt($3); var b=parseInt($4); return "#"+O30(i1g)+O30(o31)+O30(b); }try {I2z=I2z.replace(l2k,i30); }catch (t){}embed.setAttribute("bgcolor",I2z); }if (wmode && wmode.length>0)embed.setAttribute("wmode",wmode); for (var i=0; i<o30.length; ++i){var a=o30.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(l2z,document,this ); HTMLEditor.O27(l2z,document); var Ok=HTMLEditor.getHTML(l2z,(l2z.style.cssText.length>0 && !(this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML))? true : false , true ,0); if (!this.NoScript)Ok=Ok.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,o2w); else Ok=Ok.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); delete l2z; if (this.predicatedTags)Ok=Ok.replace(/(<\/?)(strong)(>)/ig,"$1b$3").replace(/(<\/?)(em)(>)/ig,"$1i$3"); var o2y=i2x+HTMLEditor.O2s(Ok); if (this.D!=null || this.d!=null || this.C!=null || this.c!=null || this.B!=null || this.fullHTML){var O2y=""; if (this.d!=null)O2y+=this.d; O2y+="<html"+(this.B!=null?this.B: "")+">\n\x3chead"+(this.c!=null?this.c: "")+">\n"; if (this.I1.getElementById("oboutEditorDefaultStyle")==null){O2y+="\x3cstyle id=\""+"oboutEditorDefaultStyle\">\n"+this.defaultStyles+"\x3c/style>\n"; O2y+="\x3cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; }if (this._addCssFiles!=null){for (var o2b=0; o2b<this._addCssFiles.length; o2b++){var l2y= true; if (this.D!=null && this.D.length>0){var i2y=new RegExp("href[\\s]*=[\\s]*\""+this._addCssFiles[o2b]+"\"","ig");if (i2y.test(this.D))l2y= false; }if (l2y)O2y+="\x3clink rel=\"stylesheet\" href=\""+this._addCssFiles[o2b]+"\" media=\"all\" />\n"; }}if (this.D!=null)O2y+=this.D; O2y+="\x3c/head>\n"; if (this.I1.body.style.cssText.length>0){var I2y="<div"+(this.C!=null?this.C: "")+"></div>"; var o2z=document.createElement("DIV"); o2z.innerHTML=I2y; o2z.firstChild.style.cssText+=";"+this.I1.body.style.cssText; I2y=HTMLEditor.getHTML(o2z, false , true); I2y=I2y.replace(/<div(?=\s|>)([^>]*?)><\/div>/ig,"$1");O2y+="<body"+I2y+">\n"; }else {O2y+="<body"+(this.C!=null?this.C: "")+">\n"; }O2y+=o2y+"\n"; O2y+="\x3c/body>\n\x3c/html>"; o2y=O2y; }if (this.NoUnicode)o2y=o2y.replace(/([\x80-\uffff])/g,i2u);if (HTMLEditor.i12(o2y)=="<br />")o2y=""; o2y=o2y.replace(/^([\n|\r]+)/,""); return o2y; case "text":var i2q=(this.I14)? true : false; var le; if (!i2q){var Y=document.createElement("textarea"); if (HTMLEditor.is_Safari)document.body.appendChild(Y); this.I14=Y; this.I14.value=this._textArea.value; }if (this.NoScript)this.I14.value=this.I14.value.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/ig,""); this.D=null; this.C=null; this.c=null; this.B=null; this.d=null; var X=this ; this.I14.value=this.I14.value.replace(/<html(?=\s|>)([^>]*?)>/gi,o2x); this.I14.value=this.I14.value.replace(/<head(?=\s|>)([^>]*?)>/gi,l2w); this.I14.value=this.I14.value.replace(/^([^\0]+?)<html(?=\s|>)(?:[^>]*?)>/gi,i2w); this.I14.value=this.I14.value.replace(/<\/html(?=\s|>)(?:[^>]*?)>[^\0]*$/gi,""); this.I14.value=this.I14.value.replace(/<head(?=\s|>)(?:[^>]*?)>([^\0]*?)<\/head(?=\s|>)(?:[^>]*?)>/gi,I2w); this.I14.value=this.I14.value.replace(/<body(?=\s|>)([^>]*?)>([^\0]*?)<\/body(?=\s|>)(?:[^>]*?)>/gi,l2a); this.I14.value=this.I14.value.replace(/<\/?html(?=\s|>)(?:[^>]*?)>/gi,""); this.I14.value=this.I14.value.replace(/<\/?head(?=\s|>)(?:[^>]*?)>/gi,""); this.I14.value=this.I14.value.replace(/<\/?body(?=\s|>)(?:[^>]*?)>/gi,""); this.I14.value=this.I14.value.replace(/<object(?:[^>]*?)>(?:[^\0]*?)(<embed(?:[^>]*?)>)(?:[^\0]*?)<\/object(?:[^>]*?)>/gi,"$1"); if (HTMLEditor.is_ie){var O31=this.I14.value.replace(/([\n\r]+<)/g,"<"); O31=HTMLEditor.i12(O31.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); O31=O31.replace(/(&amp;)/g,"&amp;amp;"); O31=O31.replace(/<br\s*[\/]*>\s*<\/td>/ig,"</td>"); O31=O31.replace(/(<td[^>]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1&nbsp;$3"); O31=O31.replace(/(<p[^>]*?>)\s*(<br[^>]*?>)\s*(<\/p[^>]*?>)/ig,"$1&nbsp;$3"); if (/<embed/ig.test(O31)){O31=O31.replace(/(<embed(?:.*?))(wmode=)("[^"]*")((?:.*?)>)/ig,"$1pseudomode=$3$4"); O31=O31.replace(/(<embed)([^>]*?>)/ig,"$1 wmode=\"transparent\"$2"); }le=O31; }else {var src=document.createElement("DIV"); if (!this.NoScript)this.I14.value.replace(/<script(?:[^>]*?)>(.*?)<\/script(?:[^>]*?>)/gi,O2v); src.innerHTML=HTMLEditor.i12(this.I14.value.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")); var o1w=src.getElementsByTagName("EMBED"); var l31=[]; for (var i=0; i<o1w.length; i++)l31.push(o1w[i]); for (var oh=0; oh<l31.length; oh++){var embed=l31[oh]; var img=document.createElement("IMG"); var o30=embed.attributes; img.src=this.P[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<o30.length; ++i){var a=o30.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.i31(src,this, true); HTMLEditor.O27(src,document); var Ok=HTMLEditor.i12(HTMLEditor.getHTML(src, false , true)); if (!this.NoScript)Ok=Ok.replace(/(<script(?:[^>]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,o2w); if (o2v.length>0){} delete src; le=HTMLEditor.O2s(Ok); }if (!i2q){ this.I14=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.Im(); return ""; }} ; HTMLEditor.prototype.I31= function (html){switch (this.i1){case "html": this.I1.body.innerHTML=html; break; case "text": this.I14.value=html; break; default:alert("Mode <"+mode+"> not defined"); }return false; } ; HTMLEditor.o32= function (Ik){var or=" script style div span a del strong em u strike font b sub sup p iframe li ul ol placeholder textarea td tr "; return (or.indexOf(" "+Ik.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.O32= function (Ik){var or=" hr br "; return (or.indexOf(" "+Ik.tagName.toLowerCase()+" ")!=-1); } ; HTMLEditor.l32= function (ih){return ih.replace(/&/ig,"&amp;").replace(/</ig,"&lt;").replace(/>/ig,"&gt;").replace(/"/ig,"&quot;").replace(/\xa0/ig,"&nbsp;"); } ; HTMLEditor.oy= function (l1p,ox){var i32; for (var I32=l1p.firstChild; I32; I32=i32){if (I32.nodeType==1 || I32.nodeType==013){if (I32.tagName.length>0){if (I32.tagName.indexOf("/")>=0 && I32.tagName.toLowerCase().substr(I32.tagName.indexOf("/")+1)=="embed"){var i32=I32.nextSibling; I32.parentNode.removeChild(I32); continue; }var closed=(!(I32.hasChildNodes() || HTMLEditor.o32(I32))); if ((closed || I32.tagName.toLowerCase()=="placeholder") && !HTMLEditor.O32(I32) && I32.tagName.toLowerCase()!="embed"){var ll=I32.tagName.toLowerCase(); var I1v=I32.nextSibling; var lg=[]; while (I1v!=null){if (I1v.nodeType==I32.nodeType && I1v.tagName)if (I1v.tagName.indexOf("/")>=0)if (I1v.tagName.toLowerCase().substr(I1v.tagName.indexOf("/")+1)==ll){I1v.parentNode.removeChild(I1v); ll="teo"+HTMLEditor.Il+":"+I32.tagName; var o33=ox.createElement(ll); var o30=I32.attributes; for (var i=0; i<o30.length; ++i){var a=o30.item(i); if (!a.specified)continue; o33.setAttribute(a.name,a.value); }o33.style.cssText=I32.style.cssText; if (I32.className.length>0)o33.className=I32.className; I32.parentNode.insertBefore(o33,I32); I32.parentNode.removeChild(I32); for (var i=0; i<lg.length; i++){o33.appendChild(lg[i]); }I32=o33; break; }lg.push(I1v); I1v=I1v.nextSibling; } delete lg; }}HTMLEditor.oy(I32,ox); }i32=I32.nextSibling; }};HTMLEditor.getHTML= function (I32,O33,l33){try {if (typeof l33=="undefined"){if (!O33 && I32.nodeType==1){return I32.innerHTML; }else if (O33 && I32.nodeType==1 && HTMLEditor.is_ie){return I32.outerHTML; }}}catch (t){}var html=new I2a( true); HTMLEditor.i33(html,I32,O33); return html.toString(); };HTMLEditor.i33= function (html,I32,O33,l33){switch (I32.nodeType){case 1:case 013:if (I32.tagName && I32.tagName.indexOf("/")>=0){if (HTMLEditor.is_ie){var ll=I32.tagName.toLowerCase().substr(I32.tagName.indexOf("/")+1); var I33=I32.previousSibling; if (ll=="embed")return; while (I33!=null){if (I33.nodeType==I32.nodeType && I33.tagName && I33.tagName.toLowerCase()==ll){html.write("</teo"+HTMLEditor.Il+":"+I32.tagName.toLowerCase().substr(I32.tagName.indexOf("/")+1)+">"); return; }I33=I33.previousSibling; }}return; }var closed; var o34; var i; if (O33 && I32.tagName.length>0){closed=(!(I32.hasChildNodes() || HTMLEditor.o32(I32))); o34= true; var O34=""; if (HTMLEditor.is_ie && I32.scopeName && typeof I32.scopeName!="undefined"){O34=(I32.scopeName.toUpperCase()=="HTML")?"": (I32.scopeName+":"); }if (HTMLEditor.is_ie && (closed || I32.tagName.toLowerCase()=="placeholder") && !HTMLEditor.O32(I32) && I32.tagName.toLowerCase()!="embed"){var ll=I32.tagName.toLowerCase(); var I1v=I32.nextSibling; while (I1v!=null){if (I1v.nodeType==I32.nodeType && I1v.tagName)if (I1v.tagName.indexOf("/")>=0)if (I1v.tagName.toLowerCase().substr(I1v.tagName.indexOf("/")+1)==ll){closed= false; o34= false; break; }I1v=I1v.nextSibling; }}if (!HTMLEditor.l34(I32)){html.write("\n"); }html.write("<"+((!closed && !o34)?"teo"+HTMLEditor.Il+":":O34)+I32.tagName.toLowerCase()); if (HTMLEditor.is_ie && I32.name && I32.name.length>0){html.write(" name"+"=\""+I32.name.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && I32.value && I32.value.length>0 && I32.tagName.toLowerCase()!="textarea"){html.write(" value"+"=\""+I32.value.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && I32.className && I32.className.length>0){html.write(" class"+"=\""+I32.className.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && I32.align && I32.align.length>0){html.write(" align"+"=\""+I32.align.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && I32.color && I32.color.length>0){html.write(" color"+"=\""+I32.color.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && I32.size && I32.size.length>0 && I32.size!="+0"){html.write(" size"+"=\""+I32.size.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && I32.shape && I32.shape.length>0){html.write(" shape"+"=\""+I32.shape.replace(/"/g,"&quot;")+"\""); }if (HTMLEditor.is_ie && I32.coords && I32.coords.length>0){html.write(" coords"+"=\""+I32.coords.replace(/"/g,"&quot;")+"\""); }var o30=I32.attributes; for (i=0; i<o30.length; ++i){var a=o30.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=I32.width; if (HTMLEditor.is_ie && value==0){var i34=0; I32.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?width=)([\\d]+)","ig"), function (i2a,o23){i34=o23; } ); if (value!=i34)value=i34; }}else if (name=="height"){value=I32.height; if (HTMLEditor.is_ie && value==0){var i34=0; I32.outerHTML.replace(new RegExp("^(?:\x3c[^>]*?height=)([\\d]+)","ig"), function (i2a,o23){i34=o23; } ); if (value!=i34)value=i34; }}else if (HTMLEditor.is_ie && name=="name" && I32.name && I32.name.length>0)continue; else if (HTMLEditor.is_ie && name=="value" && I32.value && I32.value.length>0)continue; else if (HTMLEditor.is_ie && name=="align" && I32.align && I32.align.length>0)continue; else if (HTMLEditor.is_ie && name=="class")continue; else if (HTMLEditor.is_ie && name=="color" && I32.color && I32.color.length>0)continue; else if (HTMLEditor.is_ie && name=="size" && I32.size && I32.size.length>0)continue; else if (HTMLEditor.is_ie && name=="shape" && I32.shape && I32.shape.length>0)continue; else if (HTMLEditor.is_ie && name=="coords" && I32.coords && I32.coords.length>0)continue; else {if (I32.tagName.toLowerCase()=="embed" && name=="align" && HTMLEditor.is_ie){value=HTMLEditor.I34(a.value); }else {value=a.value; if (name=="src" || name=="href"){if (HTMLEditor.is_ie){var i34=""; I32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=\")([^\"]*?)\"","ig"), function (i2a,o23){i34=o23; } ); if (i34=="")I32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=')([^']*?)'","ig"), function (i2a,o23){i34=o23; } ); if (i34=="")I32.outerHTML.replace(new RegExp("^(?:<[^>]*?"+name+"=)([^s>]*?)","ig"), function (i2a,o23){i34=o23; } ); if (value!=i34 && i34!=""){value=i34; value=value.replace(/&amp;/g,"&"); }}value=value.replace(/(\(S\([A-Za-z0-9_]+\)\)\/)/,""); }value=value.replace(/"/g,"&quot;"); }}}else {continue; }var o35="\""; if ((""+value+"").indexOf("\"")>=0)o35="'"; if (name!=null)html.write(" "+name+"="+o35+value+o35); }if (I32.style.cssText.length>0){var name="style"; var l2k=/(rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\))/ig; var O35=/(url\((?:[^)]*)\))/ig; var l35=[]; function i35(I30,$1){l35.push($1); }I32.style.cssText.replace(O35,i35); var value=I32.style.cssText.toLowerCase(); var I35=0; function o36(){var Ok=l35[I35]; I35++; return Ok; }value=value.replace(O35,o36); function O30(l30){return (l30<020)?("0"+l30.toString(020)):l30.toString(020); } ; function i30(I30,$1,$2,$3,$4){var i1g=parseInt($2); var o31=parseInt($3); var b=parseInt($4); return "#"+O30(i1g)+O30(o31)+O30(b); }try {value=value.replace(l2k,i30); 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 o35="\""; if ((""+value+"").indexOf("\"")>=0)o35="'"; html.write(" "+name+"="+o35+value+o35); }}html.write(closed?" />": ">"); if (I32.tagName.toUpperCase()=="BR")html.write("\n"); }if (I32.tagName && I32.tagName.toUpperCase()=="SCRIPT")html.write(I32.text); for (i=I32.firstChild; i; i=i.nextSibling){HTMLEditor.i33(html,i, true);}if (O33 && I32.tagName.length>0 && !closed && o34){html.write("</"+O34+I32.tagName.toLowerCase()+">"); }break; case 3:html.write(HTMLEditor.l32(""+I32.data+"")); break; case 8:if (I32.length>0){html.write("<!--"+I32.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.O36=0; try {if (!HTMLEditor.I10)this._iframe.contentWindow.focus(); if (HTMLEditor.I10 && this.f){ this._iframe.focus(); }}catch (t){} ; if (HTMLEditor.is_ie)this.updateToolbar(); }break; case "text":if (this._autoFocus)try { this.I14.focus(); }catch (t){} ; break; default:break; }return this.I1; } ; HTMLEditor.prototype.l36= 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 i36=area.value; i36=i36.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>"); this.I1.removeChild(area); return i36; } ; HTMLEditor.prototype.I36= function (text,Om,o37){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 I2a(); html.write("<html>"); html.write("<head>"); html.write("<style> body { "+this.I.o28+" } </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 O37= false; if (text==""){i1g.execCommand("paste"); var l2z=ox.createElement("DIV"); for (var i=0; i<ox.body.childNodes.length; i++){var i1v=ox.body.childNodes.item(i); if (i1v.nodeType==8){var ih=""+i1v.data+""; if (ih.search(/StartFragment/i)>=0){if (i1v.nextSibling && i1v.nextSibling.nodeType==3){var ih=""+i1v.nextSibling.data+""; if (ih.length)if (ih.charCodeAt(0)==0240){ih=ih.substr(1); i1v.nextSibling.data=ih; O37= true; break; }}}}}if (typeof o37!="undefined" && o37)ox.body.innerHTML=HTMLEditor.o2r(ox.body.innerHTML); var ih=HTMLEditor.i12(HTMLEditor.getHTML(ox.body, false , true)); ih=ih.replace(/(<script(?:[^>]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""); ox.body.innerHTML=ih; if (!Om){HTMLEditor.Oy(this,ox,!this.showAnchors); HTMLEditor.ly(this,ox,!this.showPlaceHolders); var o1w=ox.body.getElementsByTagName("EMBED"); var l37=[]; for (var i=0; i<o1w.length; i++)l37.push(o1w[i]); for (var o2d=0; o2d<l37.length; o2d++)l37[o2d].parentNode.removeChild(l37[o2d]); } delete i1g; delete l2z; if (Om && HTMLEditor.is_ie)i1g=ox.body.createTextRange(); }if (Om && HTMLEditor.is_ie){if (text!=""){HTMLEditor.Oy(this,ox, true); HTMLEditor.ly(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 o1w=ox.body.getElementsByTagName("EMBED"); var l37=[]; for (var i=0; i<o1w.length; i++)l37.push(o1w[i]); for (var o2d=0; o2d<l37.length; o2d++)l37[o2d].parentNode.removeChild(l37[o2d]); 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.i37= function (X,i1b,oq){ this.D=X.D; this.d=X.d; this.C=X.C; if (HTMLEditor.is_ie){ this.I37=HTMLEditor.o38(X.I1.body); this.O38=X.I1.body.innerHTML; this.l38=null; if (oq.type.toLowerCase()=="control"){try {var Ik=i1b.item(0); this.l38=[]; while (Ik && (Ik.nodeType==3 || !Ik.tagName || Ik.tagName.toUpperCase()!="BODY")){var i38=0; while (Ik.previousSibling){i38++; Ik=Ik.previousSibling; } this.l38.push(i38); Ik=Ik.parentNode; }}catch (t){}}else { this.l2g=i1b.offsetLeft; this.i2g=i1b.offsetTop; }}else {if (HTMLEditor.I10)this.O38=HTMLEditor.i12(X.I1.body.innerHTML); else this.O38=X.I1.body.cloneNode( true); this.l38=[]; this.I38=0; try {var Ik=i1b.startContainer; this.I38=i1b.startOffset; if (Ik && Ik.nodeType==1 && Ik.tagName.toUpperCase()=="HTML"){Ik=X.I1.body; setTimeout( function (){try {oq=X.Oq(); i1b=X.iq(); X.l17(oq); i1b.setStart(Ik,0); i1b.setEnd(Ik,0); X.i17(oq,i1b); }catch (t){}} ,012); }while (Ik && Ik.nodeType && (Ik.nodeType==3 || !Ik.tagName || Ik.tagName.toUpperCase()!="BODY")){var i38=0; while (Ik.previousSibling){i38++; if (HTMLEditor.I10){if (Ik.nodeType==3 && Ik.previousSibling!=null && Ik.previousSibling.nodeType==3)i38--; }Ik=Ik.previousSibling; } this.l38.push(i38); Ik=Ik.parentNode; }}catch (t){}}};HTMLEditor.o39=036; HTMLEditor.prototype.l10= function (){var oq; var lq; var O39; try {try {oq=this.Oq(); lq=this.iq(oq); }catch (t){}O39=new HTMLEditor.i37(this,lq,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.o39){ this.K.reverse(); this.K.pop(); this.K.reverse(); } this.K.push(O39); this.O1e=this.K.length; };HTMLEditor.prototype.l39= function (){if (this.O1e>=0 && this.O1e<this.K.length){var l16=this.K[this.O1e]; var oq; var lq; this.D=l16.D; this.d=l16.d; this.C=l16.C; if (HTMLEditor.is_ie){function i39(i2a,o23,O23,i2v,I39){return o23.replace(/\salign=[^\s>]*/ig,"")+((i2v=="\"X\"")?"": ("align="+i2v))+I39.replace(/\salign=[^\s>]*/ig,""); }var o1w=this.I1.body.getElementsByTagName("EMBED"); var l37=[]; for (var i=0; i<o1w.length; i++)l37.push(o1w[i]); for (var o2d=0; o2d<l37.length; o2d++)l37[o2d].parentNode.removeChild(l37[o2d]); var o3a=l16.O38.replace(/&amp;/ig,"&"); o3a=o3a.replace(/(<embed(?:.*?))(teoalign=)("[^"]*")((?:.*?)>)/ig,i39); this.I1.body.innerHTML="!!!<span></span>"+HTMLEditor.i12(o3a); 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 l11=HTMLEditor.i11(o3a); HTMLEditor.O12(this.I1.body,l11); if (this.relativeImages){l11=HTMLEditor.o12(o3a); HTMLEditor.l12(this.I1.body,l11); }HTMLEditor.O3a(this.I1.body,l16.I37); HTMLEditor.Oy(this,this.I1,!this.showAnchors); HTMLEditor.ly(this,this.I1,!this.showPlaceHolders); if (l16.l38!=null){var Ik=this.I1.body; var i; try {for (i=l16.l38.length-1; i>=0; i--){Ik=Ik.childNodes.item(l16.l38[i]); }}catch (t){if (this.O1e>0){ this.O1e--; this.l39(); this.O1e++; }return; }try {var i1b=this.I1.body.createControlRange(); i1b.add(Ik); i1b.select(); }catch (t){}}else {var X=this ; setTimeout( function (){try {oq=X.Oq(); lq=X.iq(oq); if (oq.type.toLowerCase()!="control"){try {lq.moveToPoint(l16.l2g,l16.i2g); }catch (t){}}lq.select(); }catch (t){}} ,0); }}else {if (HTMLEditor.I10){ this.I1.body.innerHTML=HTMLEditor.i12(l16.O38); }else { this.I1.body.innerHTML=""; for (var i=0; i<l16.O38.childNodes.length; i++){ this.I1.body.appendChild(l16.O38.childNodes.item(i).cloneNode( true)); }}HTMLEditor.Oy(this,this.I1,!this.showAnchors); HTMLEditor.ly(this,this.I1,!this.showPlaceHolders); try {oq=this.Oq(); lq=this.iq(); this.l17(oq); }catch (t){}var ih=""; var Ik=this.I1.body; for (var i=l16.l38.length-1; i>=0; i--){ih+=" "+l16.l38[i]; Ik=Ik.childNodes.item(l16.l38[i]); }var l3a=l16.I38; try {lq.setStart(Ik,l3a); lq.setEnd(Ik,l3a); }catch (t){HTMLEditor.o13(this.I1.body); return; }if (HTMLEditor.I10)this.f= true; try { this.i17(oq,lq); }catch (t){}}try {HTMLEditor.o13(this.I1.body); }catch (t){}}};HTMLEditor.prototype.SaveContent= function (){ this.l10(); };HTMLEditor.prototype.RestoreContent= function (){ this.I1e( false); };HTMLEditor.prototype.I1e= function (i16,i3a){if (HTMLEditor.is_ie){var I3a=this.I1.body.getElementsByTagName("EMBED"); var o3b= false; if (I3a.length>0){for (var i=0; i<I3a.length; i++){var value=""; var o30=I3a[i].attributes; for (var oh=0; oh<o30.length; ++oh){var a=o30.item(oh); if (!a.specified)continue; var name=a.name.toLowerCase(); if (name=="type"){value=a.value; break; }}if (value.toLowerCase()=="application/x-mplayer2"){o3b= true; break; }}}if (o3b){var X=this ; X.i2f(null, function (Ik){X.I2f(i16); if (typeof i3a=="function")i3a(); } ); }else this.I2f(i16); }else this.I2f(i16); };HTMLEditor.prototype.I2f= function (i16){if (this.K){if (this.O1e>0){if (this.O1e==this.K.length && i16){ this.l10(); } do {var o27=HTMLEditor.i12(this.I1.body.innerHTML); this.O1e--; this.l39(); }while (HTMLEditor.i12(this.I1.body.innerHTML)==o27 && this.O1e>0 && i16);var X=this ; setTimeout( function (){try {X.i1f(); X.updateToolbar(); }catch (t){}if (!i16)X.O14(); } ,5); }}};HTMLEditor.prototype.o1f= function (){if (this.K){if (this.O1e<this.K.length-1){ this.O1e++; var X=this ; var O3b; if (HTMLEditor.is_ie){O3b=X.I1.body.getElementsByTagName("EMBED").length; if (O3b>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); setTimeout( function (){X.A.removeChild(popup); } ,0); }} this.l39(); var X=this ; setTimeout( function (){X.i1f(); X.updateToolbar(); } ,5); }}};HTMLEditor.l3b= function (Ik){if (Ik.id && Ik.id.length>0 && Ik.id.indexOf(HTMLEditor.Il)>=0)return true; return false;};HTMLEditor.i1p= function (Ik){var i3b=null; try {i3b=Ik.parentNode; }catch (t){}if (i3b){var I3b=null; while (i3b && i3b.tagName && i3b.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(i3b.tagName) && (i3b.tagName.toUpperCase()!="A")){var o30=HTMLEditor.o3c(i3b,["class","color","face","size"]); if (o30.length>0)break; I3b=i3b; i3b=i3b.parentNode; }if (I3b){function I21(add,Ik,o22,O22,Om){var par=o22.cloneNode( false); if (add){if (add.push && typeof add.push=="function"){for (var O3c=0; O3c<add.length; O3c++){par.appendChild(add[O3c]); }}else par.appendChild(add); }if (Om)par.appendChild(Ik); else while (Ik){var l3c=O22?Ik.previousSibling:Ik.nextSibling; if (Ik.nodeType==1 || (Ik.nodeType==3 && HTMLEditor.i12(""+Ik.data+"").length>0)){if (Ik.nodeType==1){if (Ik.tagName && HTMLEditor.O1j(Ik.tagName) && Ik.childNodes.length==0 && !HTMLEditor.l3b(Ik))Ik=null; }if (Ik){if (par.childNodes.length==0 || !O22)par.appendChild(Ik); else par.insertBefore(Ik,par.firstChild); }}Ik=l3c; }if (par.childNodes.length==0){ delete par; par=null; }else if (par.childNodes.length==1 && par.firstChild.nodeType==3 && (""+par.firstChild.data+"").length==0){ delete par; par=null; }else {if (!Om && par.tagName && HTMLEditor.O1j(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.l3b(par)){var i3c=par.childNodes.length; for (var I3c=0; I3c<par.childNodes.length; I3c++){var o3d=par.childNodes.item(I3c); if (o3d.nodeType==1 && o3d.tagName && !HTMLEditor.O1j(o3d.tagName) && (o3d.tagName.toUpperCase()=="BR" || o3d.tagName.toUpperCase()=="TABLE" || HTMLEditor.l3b(o3d)))i3c--; }if (i3c==0){var O3d=[]; while (par.firstChild){var o3d=par.removeChild(par.firstChild); O3d.push(o3d); }par=O3d; }}}if (o22==I3b)return par; else {if (!Om)return I21(par,O22?o22.previousSibling:o22.nextSibling,o22.parentNode,O22,Om); else return I21(null,par,o22.parentNode,O22,Om); }} ; i3b=Ik.parentNode; if (Ik.previousSibling==null && Ik.nextSibling==null && i3b && i3b.tagName && i3b.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(i3b.tagName) && HTMLEditor.o3c(i3b,["class","color","face","size"]).length>0)Ik=i3b; var o23=I21(null,Ik.previousSibling,Ik.parentNode, true , false); var O23=I21(null,Ik.nextSibling,Ik.parentNode, false , false); var par=I3b.parentNode; if (o23){if (o23.push && typeof o23.push=="function"){for (var O3c=0; O3c<o23.length; O3c++){par.insertBefore(o23[O3c],I3b); }}else par.insertBefore(o23,I3b); }if (Ik.nodeType==1 && Ik.tagName && (Ik.tagName.toUpperCase()=="BR" || Ik.tagName.toUpperCase()=="TABLE" || HTMLEditor.l3b(Ik)))par.insertBefore(Ik,I3b); else {var i2v=I21(null,Ik,Ik.parentNode, false , true); par.insertBefore(i2v,I3b); }if (O23){if (O23.push && typeof O23.push=="function"){for (var O3c=0; O3c<O23.length; O3c++){par.insertBefore(O23[O3c],I3b); }}else par.insertBefore(O23,I3b); }par.removeChild(I3b); }}};HTMLEditor.l3d= function (Ik){if (Ik.nodeType==3)return true; if (Ik.nodeType!=1)return false; if (!Ik.tagName || Ik.tagName.length==0)return false; if (Ik && Ik.style && Ik.style.display && Ik.style.display.toLowerCase()=="inline")return true; var name=Ik.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return false; }}switch (name){case "BR":case "TBODY":case "TR":case "TD":case "P":case "PRE":case "TABLE":case "OL":case "UL":case "LI":case "HR":case "DIV":case "BLOCKQUOTE":case "FORM":case "FIELDSET":case "LEGEND":return false; default:return true; }};HTMLEditor.i3d= function (O39,Ik,left,I3d){while (Ik){var l3c=left?Ik.previousSibling:Ik.nextSibling; if (!HTMLEditor.l3d(Ik)){var par=Ik.parentNode; if (!left)par.insertBefore(O39,Ik); else {if (Ik.nextSibling)par.insertBefore(O39,Ik.nextSibling); else par.appendChild(O39); }return O39; }else if (typeof I3d=="function" && Ik.nodeType==3){var oh; var ih=""+Ik.data+""; if (left){for (oh=ih.length-1; oh>=0; oh--){if (I3d(ih.substr(oh,1)))break; }}else {for (oh=0; oh<ih.length; oh++){if (I3d(ih.substr(oh,1)))break; }}if (oh>=0 && oh<ih.length){var par=Ik.parentNode; var o3e; if ((oh>0 || (left && oh==0)) && (oh<ih.length-1 || (!left && oh==ih.length-1))){if (left)o3e=Ik.splitText(oh+1); else o3e=Ik.splitText(oh); par.insertBefore(O39,o3e); }else {if (!left)par.insertBefore(O39,Ik); else {if (Ik.nextSibling)par.insertBefore(O39,Ik.nextSibling); else par.appendChild(O39); }}return O39; }}Ik=left?Ik.lastChild:Ik.firstChild; if (Ik){var I1w=HTMLEditor.i3d(O39,Ik,left,I3d); if (I1w!=null)return I1w; }Ik=l3c; }return null; };HTMLEditor.O3e= function (O39,Ik,left,par,I3d){while ( true){var I1w=HTMLEditor.i3d(O39,Ik,left,I3d); if (I1w!=null)return I1w; if (par.tagName && HTMLEditor.O1j(par.tagName) && (par.tagName.toUpperCase()!="A") && !HTMLEditor.l3b(par)){Ik=left?par.previousSibling:par.nextSibling; par=par.parentNode; }else {if (!left || par.firstChild==null)par.appendChild(O39); else par.insertBefore(O39,par.firstChild); return O39; }}};HTMLEditor.l3e= function (I16,Ik){if (Ik==I16)return I16; if (I16.nodeType==1){for (var i=0; i<I16.childNodes.length; i++){var i1v=I16.childNodes.item(i); if (Ik==i1v)return i1v; if (i1v.nodeType==1){var o1d=HTMLEditor.i3e(i1v,Ik); if (o1d>=0){if (i1v.tagName && HTMLEditor.O1j(i1v.tagName) && (i1v.tagName.toUpperCase()!="A") && !HTMLEditor.l3b(i1v))return HTMLEditor.l3e(i1v,Ik); else return i1v; }}}}return null; };HTMLEditor.I3e= function (o3f,O3f){function l3f(I1v){while (I1v.nodeType==3 && I1v.nextSibling!=null && I1v.nextSibling.nodeType==3){I1v.data=""+I1v.data+""+I1v.nextSibling.data+""; I1v.parentNode.removeChild(I1v.nextSibling); }if (!HTMLEditor.l3d(I1v) || I1v.nodeType==3){HTMLEditor.i1p(I1v); }else if (I1v.tagName && HTMLEditor.O1j(I1v.tagName) && (I1v.tagName.toUpperCase()!="A") && !HTMLEditor.l3b(I1v)){var i3f=I1v.firstChild; while (i3f!=null){var I3f=i3f.nextSibling; l3f(i3f); i3f=I3f; }}}var I1v=o3f; while (I1v!=null && I1v!=O3f){var nextSibling=I1v.nextSibling; l3f(I1v); I1v=nextSibling; }};HTMLEditor.prototype.o3g= function (i1a,I1a,O3g){var I1w=[]; var o3f=i1a; var O3f=(I1a.nextSibling!=null && I1a.nextSibling.tagName && I1a.nextSibling.tagName.toUpperCase()=="BR")?I1a.nextSibling:I1a; var l3g=null; if (i1a==null || I1a==null){if (i1a!=null){l3g=HTMLEditor.l25(i1a,i1a); }if (I1a!=null){l3g=HTMLEditor.l25(I1a,I1a); }}else l3g=HTMLEditor.l25(i1a,I1a); if (l3g!=null){HTMLEditor.O27(l3g.parent,this.I1,l3g.O26,l3g.i26+1, true); }var O25=null; if (o3f==null || O3f==null){if (o3f!=null){O25=HTMLEditor.l25(o3f,o3f); }if (O3f!=null){O25=HTMLEditor.l25(O3f,O3f); }}else O25=HTMLEditor.l25(o3f,O3f); if (O25!=null){o3f=HTMLEditor.l3e(O25.parent.childNodes.item(O25.O26),o3f); O3f=HTMLEditor.l3e(O25.parent.childNodes.item(O25.i26),O3f); HTMLEditor.i1p(o3f); HTMLEditor.i1p(O3f); while (o3f.parentNode!=O25.parent)o3f=o3f.parentNode; while (O3f.parentNode!=O25.parent)O3f=O3f.parentNode; HTMLEditor.I3e(o3f.nextSibling,O3f); function i3g(I1v){if (!HTMLEditor.l3d(I1v)){return true; }else if (I1v.tagName && HTMLEditor.O1j(I1v.tagName) && (I1v.tagName.toUpperCase()!="A") && !HTMLEditor.l3b(I1v)){var i3f=I1v.firstChild; while (i3f!=null){I3f=i3f.nextSibling; var Ok=i3g(i3f); if (Ok)return true; i3f=I3f; }}return false; }var I3g=0; var o3h=[]; var O3h=0; if (o3f.tagName && O3f.tagName){if ((o3f.tagName.toUpperCase()=="TD" || o3f.tagName.toUpperCase()=="TR") && (O3f.tagName.toUpperCase()=="TD" || O3f.tagName.toUpperCase()=="TR")){while (o3f.tagName.toUpperCase()!="TABLE")o3f=o3f.parentNode; O3f=o3f; }else if ((o3f.tagName.toUpperCase()=="DD" || o3f.tagName.toUpperCase()=="DT") && (O3f.tagName.toUpperCase()=="DD" || O3f.tagName.toUpperCase()=="DT")){while (o3f.tagName && o3f.tagName.toUpperCase()!="DL")o3f=o3f.parentNode; O3f=o3f; }else if ((o3f.tagName.toUpperCase()=="LI") && (O3f.tagName.toUpperCase()=="LI")){while (o3f.tagName && o3f.tagName.toUpperCase()!="UL" && o3f.tagName.toUpperCase()!="OL"){o3f=o3f.parentNode; }O3f=o3f; }}var l3h=i1a?i1a:I1a; var i3h=I1a?I1a:i1a; var I1v=o3f; while ( true){if (!HTMLEditor.l3b(I1v)){var I3h=i3g(I1v); if (!I3h){if (I1v.nodeType && I1v.nodeType==3){var ih=""+I1v.data+""; if (ih.length==0 ||/^[\n\r]+$/.test(ih)){var o3i=I1v.nextSibling; I1v.parentNode.removeChild(I1v); if (I1v==O3f)break; I1v=o3i; continue; }}o3h[O3h]=I1v; O3h++; }else {if (I1v.tagName && I1v.tagName.toUpperCase()=="BR"){o3h[O3h]=I1v; I1w[I3g]=o3h; I3g++; o3h=[]; O3h=0; }else if ((I1v==O3f || I1v==o3f) && !((I1v==O3f && I1v==o3f)?(HTMLEditor.O3i(I1v,l3h) && HTMLEditor.l3i(I1v,i3h)): (HTMLEditor.O3i(I1v,l3h) || HTMLEditor.l3i(I1v,i3h)))){if (I1v.tagName && (I1v.tagName.toUpperCase()=="TABLE" || I1v.tagName.toUpperCase()=="TBODY")){var table=I1v; while (table.tagName.toUpperCase()!="TABLE")table=table.parentNode; var i3i=0; var I3i=0; var o3j=table.rows.item(table.rows.length-1).cells.length-1; var O3j=table.rows.length-1; for (var i=0; i<table.rows.length; i++){var o24=table.rows.item(i); var oh=0; for ( ; oh<o24.cells.length; oh++){var cell=o24.cells.item(oh); if (HTMLEditor.i3e(cell,l3h)>=0){i3i=oh; I3i=i; }if (HTMLEditor.i3e(cell,i3h)>=0){o3j=oh; O3j=i; }}}for (var i=I3i; i<=O3j; i++)for (var oh=((i==I3i)?i3i: 0); oh<=((i==O3j)?o3j: (table.rows.item(i).cells.length-1)); oh++){var cell=table.rows.item(i).cells.item(oh); if (O3h>0){I1w[I3g]=o3h; I3g++; o3h=[]; O3h=0; }var l3j=(HTMLEditor.i3e(cell,l3h)>=0); var i3j=(HTMLEditor.i3e(cell,i3h)>=0); if (l3j || i3j){var I3j=l3h; var o3k=i3h; var O24=HTMLEditor.Il+"_right_"+O3g; var l24=HTMLEditor.Il+"_left_"+O3g; if (l3j){o3k=this.I1.createElement("span"); o3k.id=O24; cell.appendChild(o3k); }if (i3j){I3j=this.I1.createElement("span"); I3j.id=l24; if (cell.firstChild)cell.insertBefore(I3j,cell.firstChild); else cell.appendChild(I3j); }var O3k=this.o3g(I3j,o3k,O3g+1); for (var I3c=0; I3c<O3k.length; I3c++){I1w[I3g]=O3k[I3c]; I3g++; }if (I3j!=l3h)I3j.parentNode.removeChild(I3j); if (o3k!=i3h)o3k.parentNode.removeChild(o3k); }else {var l3k=0; var i3k=cell.childNodes.length; for (var l2d=l3k; l2d<i3k; l2d++){var Ik=cell.childNodes.item(l2d); if (!HTMLEditor.l3b(Ik)){o3h[O3h]=Ik; O3h++; }}if (o3h.length>0){I1w[I3g]=o3h; I3g++; o3h=[]; O3h=0; }}}}else if (I1v.tagName && (I1v.tagName.toUpperCase()=="UL" || I1v.tagName.toUpperCase()=="OL" || I1v.tagName.toUpperCase()=="DL")){var O2h=I1v; var I3k=0; var o3l=O2h.childNodes.length-1; for (var i=0; i<O2h.childNodes.length; i++){var O3l=O2h.childNodes.item(i); if (O3l.nodeType==1){if (O3l==l3h || HTMLEditor.i3e(O3l,l3h)>=0){I3k=i; }if (O3l==i3h || HTMLEditor.i3e(O3l,i3h)>=0){o3l=i; }}}for (var i=I3k; i<=o3l; i++){var O3l=O2h.childNodes.item(i); if (O3h>0){I1w[I3g]=o3h; I3g++; o3h=[]; O3h=0; }var l3j=(HTMLEditor.i3e(O3l,l3h)>=0); var i3j=(HTMLEditor.i3e(O3l,i3h)>=0); if (l3j || i3j){var I3j=l3h; var o3k=i3h; var O24=HTMLEditor.Il+"_right_"+O3g; var l24=HTMLEditor.Il+"_left_"+O3g; if (l3j){o3k=this.I1.createElement("span"); o3k.id=O24; O3l.appendChild(o3k); }if (i3j){I3j=this.I1.createElement("span"); I3j.id=l24; if (O3l.firstChild)O3l.insertBefore(I3j,O3l.firstChild); else O3l.appendChild(I3j); }var O3k=this.o3g(I3j,o3k,O3g+1); for (var I3c=0; I3c<O3k.length; I3c++){I1w[I3g]=O3k[I3c]; I3g++; }if (I3j!=l3h)I3j.parentNode.removeChild(I3j); if (o3k!=i3h)o3k.parentNode.removeChild(o3k); }else {var l3k=0; var i3k=O3l.childNodes.length; for (var l2d=l3k; l2d<i3k; l2d++){var Ik=O3l.childNodes.item(l2d); if (!HTMLEditor.l3b(Ik)){o3h[O3h]=Ik; O3h++; }}if (o3h.length>0){I1w[I3g]=o3h; I3g++; o3h=[]; O3h=0; }}}}else {var l3j=(HTMLEditor.i3e(I1v,l3h)>=0); var i3j=(HTMLEditor.i3e(I1v,i3h)>=0); if (O3h>0){I1w[I3g]=o3h; I3g++; o3h=[]; O3h=0; }if (l3j || i3j){var I3j=l3h; var o3k=i3h; var O24=HTMLEditor.Il+"_right_"+O3g; var l24=HTMLEditor.Il+"_left_"+O3g; if (l3j){o3k=this.I1.createElement("span"); o3k.id=O24; I1v.appendChild(o3k); }if (i3j){I3j=this.I1.createElement("span"); I3j.id=l24; if (I1v.firstChild)I1v.insertBefore(I3j,I1v.firstChild); else I1v.appendChild(I3j); }var O3k=this.o3g(I3j,o3k,O3g+1); for (var I3c=0; I3c<O3k.length; I3c++){I1w[I3g]=O3k[I3c]; I3g++; }if (I3j!=l3h)I3j.parentNode.removeChild(I3j); if (o3k!=i3h)o3k.parentNode.removeChild(o3k); }else {var l3k=0; var i3k=I1v.childNodes.length; for (var l2d=l3k; l2d<i3k; l2d++){var Ik=I1v.childNodes.item(l2d); if (!HTMLEditor.l3b(Ik)){o3h[O3h]=Ik; O3h++; }}if (o3h.length>0){I1w[I3g]=o3h; I3g++; o3h=[]; O3h=0; }}}}else {if (O3h>0){I1w[I3g]=o3h; I3g++; o3h=[]; O3h=0; }o3h[O3h]=I1v; I1w[I3g]=o3h; I3g++; o3h=[]; O3h=0; }}}if (I1v==O3f)break; I1v=I1v.nextSibling; }if (O3h>0){I1w[I3g]=o3h; }}return I1w; };HTMLEditor.prototype.getPseudoP= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return []; var I1w=[]; try {var oq=this.Oq(); var lq=this.iq(oq); var O24=HTMLEditor.Il+"_right"; var l24=HTMLEditor.Il+"_left"; var i24=null; var I24=null; if (HTMLEditor.is_ie){if (oq.type.toLowerCase()!="control"){i24=lq.duplicate(); I24=lq.duplicate(); i24.setEndPoint("EndToStart",lq); I24.setEndPoint("StartToEnd",lq); }}else {i24=lq.cloneRange(); I24=lq.cloneRange(); i24.setEnd(i24.startContainer,i24.startOffset); I24.setStart(I24.endContainer,I24.endOffset); }var i1a=null; var I1a=null; if (HTMLEditor.is_ie && oq.type.toLowerCase()=="control"){var O1c=lq.item(0); var l3l; l3l=this.I1.createElement("SPAN"); l3l.id=l24; O1c.parentNode.insertBefore(l3l,O1c); l3l=this.I1.createElement("SPAN"); l3l.id=O24; if (O1c.nextSibling==null)O1c.parentNode.appendChild(l3l); else O1c.parentNode.insertBefore(l3l,O1c.nextSibling); }else {if (!this.O11("<span id='"+O24+"'/>",I24))return []; if (!this.O11("<span id='"+l24+"'/>",i24)){var o25=this.I1.getElementById(O24); if (o25!=null){Ok=o25.parentNode; Ok.removeChild(o25); }return []; }}i1a=this.I1.getElementById(l24); I1a=this.I1.getElementById(O24); 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 l26=HTMLEditor.i3l(I1a.previousSibling); if (l26.nodeType==1 && HTMLEditor.canHaveChildren(l26))l26.appendChild(I1a); else l26.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=l24; I1a.parentNode.insertBefore(span,I1a); i1a=span; }if (I1a==null){var span=this.I1.createElement("SPAN"); span.id=O24; 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.I3l==null && i1a!=null && I1a!=null && i1a.nextSibling==I1a){var par=I1a.parentNode; this.I3l=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(par.tagName)){if (par.tagName.toUpperCase()!="A"){var Ok=par.cloneNode( false); if (this.I3l==null){ this.I3l=Ok; }else {Ok.appendChild(this.I3l); this.I3l=Ok; }}par=par.parentNode; }if (this.I3l){var o3m=this.I1.createElement("span"); o3m.appendChild(this.I3l); this.I3l=o3m.innerHTML; }}var O3m=i1a; while (O3m && O3m.tagName && HTMLEditor.O1j(O3m.tagName) && (O3m.tagName.toUpperCase()!="A")){O3m=O3m.parentNode; }if (O3m!=null && (O3m.tagName.toUpperCase()=="P" || (O3m.tagName.length==2 && O3m.tagName.toUpperCase().substr(0,1)=="H" && parseInt(O3m.tagName.substr(1,1))>0))){if (O3m.firstChild!=null)O3m.insertBefore(i1a,O3m.firstChild); else O3m.appendChild(i1a); }else HTMLEditor.O3e(i1a,i1a.previousSibling, true ,i1a.parentNode); O3m=I1a; while (O3m && O3m.tagName && HTMLEditor.O1j(O3m.tagName) && (O3m.tagName.toUpperCase()!="A")){O3m=O3m.parentNode; }if (O3m!=null && (O3m.tagName.toUpperCase()=="P" || (O3m.tagName.length==2 && O3m.tagName.toUpperCase().substr(0,1)=="H" && parseInt(O3m.tagName.substr(1,1))>0))){O3m.appendChild(I1a); }else HTMLEditor.O3e(I1a,I1a.nextSibling, false ,I1a.parentNode); I1w=this.o3g(i1a,I1a,0); if (I1w.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)))I1w=[[i1a.parentNode]]; if (HTMLEditor.is_ie){oq.empty(); oq=this.Oq(); var l3m=this.iq(oq); var i3m=this.iq(oq); try {if (i1a!=null)l3m.moveToElementText(i1a); if (I1a!=null)i3m.moveToElementText(I1a); if (i1a!=null && I1a!=null){l3m.setEndPoint("EndToEnd",i3m); l3m.select(); }else if (i1a!=null)l3m.select(); else if (I1a!=null)i3m.select(); }catch (t){}}if (i1a!=null)i1a.parentNode.removeChild(i1a); if (I1a!=null)I1a.parentNode.removeChild(I1a); }catch (t){alert("getPseudoP: "+t.message); var I3m=this.I1.getElementsByTagName("SPAN"); var del=[]; for (var i=0; i<I3m.length; i++){var span=I3m[i]; if (span.id && span.id.length>0){var O2p=new RegExp(HTMLEditor.Il,"ig"); if (O2p.test(span.id))del.push(span); }}for (var i=0; i<del.length; i++)del[i].parentNode.removeChild(del[i]); }return I1w; } ; HTMLEditor.prototype.o3n= function (l1p,O3n){var X=this ; if (l1p.firstChild){while (l1p.firstChild && l1p.firstChild.nodeType==3 && (""+l1p.firstChild.data+"")=="")l1p.removeChild(l1p.firstChild); var l3n=[]; while (l1p.firstChild){if (l1p.firstChild!=O3n[0] && l1p.firstChild!=O3n[1])l3n.push(l1p.firstChild); l1p.parentNode.insertBefore(l1p.firstChild,l1p); }if (l3n.length==0){var br=X.I1.createElement("BR"); l1p.parentNode.insertBefore(br,l1p); }if (HTMLEditor.is_ie && l3n.length==1 && l3n[0].nodeType==3){var ih=""+l3n[0].data+""; if (ih.length==1 && ih.charCodeAt(0)==0240){var br=X.I1.createElement("BR"); l3n[0].parentNode.insertBefore(br,l3n[0]); l3n[0].parentNode.removeChild(l3n[0]); }}while (l1p.nextSibling && l1p.nextSibling.nodeType==3 && (""+l1p.nextSibling.data+"")=="")l1p.parentNode.removeChild(l1p.nextSibling); var previousSibling=(l1p.previousSibling && O3n[1]==l1p.previousSibling)?O3n[1].previousSibling:l1p.previousSibling; if (previousSibling && HTMLEditor.l3d(previousSibling))if (previousSibling.nodeType==1 && previousSibling.childNodes.length>0)previousSibling=HTMLEditor.i3l(previousSibling); if (HTMLEditor.l3d(previousSibling) && l1p.nextSibling!=null){var br=X.I1.createElement("BR"); l1p.parentNode.insertBefore(br,l1p); }}else {var br=X.I1.createElement("BR"); l1p.parentNode.insertBefore(br,l1p); }l1p.parentNode.removeChild(l1p); };HTMLEditor.prototype.i3n= function (l1p,O3n,I3n){var X=this ; l1p.style.textAlign=""; var o3o=0; var o30=l1p.attributes; for (var l2d=0; l2d<o30.length; ++l2d){var a=o30.item(l2d); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; o3o++; }var O3o=l1p.style.cssText; var margin=0; var l3o; if (!(typeof I3n!="undefined" && I3n))if (l1p.tagName.toUpperCase()!="LI")try {l3o=parseInt(HTMLEditor.iy(l1p,"margin-top")); if (isNaN(l3o))l3o=l1p.tagName.toUpperCase()=="P"?1: 0; margin+=l3o; l3o=parseInt(HTMLEditor.iy(l1p,"margin-bottom")); if (isNaN(l3o))l3o=l1p.tagName.toUpperCase()=="P"?1: 0; margin+=l3o; l3o=parseInt(HTMLEditor.iy(l1p,"margin-right")); if (isNaN(l3o))l3o=l1p.tagName.toUpperCase()=="P"?1: 0; margin+=l3o; l3o=parseInt(HTMLEditor.iy(l1p,"margin-left")); if (isNaN(l3o))l3o=l1p.tagName.toUpperCase()=="P"?1: 0; margin+=l3o; }catch (t){margin=1; }l1p.style.margin=""; if ((o3o==0 && l1p.style.cssText.length==0 && margin==0) || (typeof I3n!="undefined" && I3n && l1p.tagName.toUpperCase()!="LI")){X.o3n(l1p,O3n); return true; }else {l1p.style.cssText=O3o; return false; }};HTMLEditor.i3o= function (Ik){var name=Ik.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return true; }}return false; };HTMLEditor.prototype.I3o= function (textAlign,o3p,O3p){var l3p=this.i3p(); var O3n=this.I3p(l3p); var o3q=null; var O3q=[]; var X=this ; var I3n=(typeof o3p!="undefined" && o3p)? true : false; var l3q=(typeof O3p=="string")? true : false; var i3q=(typeof O3p=="string")?O3p: ""; var I3q= false; var o3r= false; function O3r(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==O3n[0] || div.firstChild==O3n[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function l3r(){var firstChild=o3q.firstChild; var lastChild=o3q.lastChild; if (o3q.tagName && !HTMLEditor.l3d(o3q) && O3q[0][0]==firstChild && O3q[O3q.length-1][O3q[O3q.length-1].length-1]==lastChild && o3q.tagName.toUpperCase()!="TD" && o3q.tagName.toUpperCase()!="TH" && o3q.tagName.toUpperCase()!="FIELDSET" && o3q.tagName.toUpperCase()!="LEGEND"){var align=""; if (o3q.getAttribute("align") && o3q.getAttribute("align").length>0)align=o3q.getAttribute("align"); if (o3q.align && o3q.align.length>0)align=o3q.align; if (o3q.style.textAlign && o3q.style.textAlign.length>0)align=o3q.style.textAlign; o3q.align=""; o3q.setAttribute("align",""); o3q.removeAttribute("align"); if ((o3q.tagName.toUpperCase()=="DIV" || o3q.tagName.toUpperCase()=="P" || HTMLEditor.i3o(o3q)) && textAlign=="left" && I3n){if (X.i3n(o3q,O3n,I3n))I3q= true; }else {if (textAlign!="remain"){if (!(textAlign=="left" && I3n) || (o3q.tagName.toUpperCase()=="LI" && o3q.parentNode.style.textAlign.length>0))o3q.style.textAlign=textAlign; else o3q.style.textAlign=""; }if (I3n)o3q.style.margin=(o3q.tagName.toUpperCase()=="P")?"0px": ""; if (o3q.tagName.toUpperCase()=="LI"){var O2h=o3q.parentNode; var i3r=[]; for (var I3r=0; I3r<O2h.childNodes.length; I3r++)if (O2h.childNodes.item(I3r).nodeType==1)i3r.push(O2h.childNodes.item(I3r).style.textAlign); var o3s=1; for ( ; o3s<i3r.length; o3s++)if (i3r[o3s-1]!=i3r[o3s])break; if (o3s==i3r.length){var align=(i3r[0]=="left" && I3n)?"":i3r[0]; for (var oh=0; oh<O2h.childNodes.length; oh++)if (O2h.childNodes.item(oh).nodeType==1){O2h.childNodes.item(oh).style.textAlign=""; if (I3n)O2h.childNodes.item(oh).style.margin=(O2h.childNodes.item(oh).tagName.toUpperCase()=="P")?"0px": ""; }O2h.style.textAlign=align; }}if ((o3q.tagName.toUpperCase()=="DIV" || o3q.tagName.toUpperCase()=="P" || HTMLEditor.i3o(o3q)) && l3q && i3q.toUpperCase()!=o3q.tagName.toUpperCase()){var O3s=X.I1.createElement(i3q); var o30=o3q.attributes; for (var l2d=0; l2d<o30.length; ++l2d){var a=o30.item(l2d); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; O3s.setAttribute(a.name,a.value); }O3s.style.cssText=o3q.style.cssText; while (o3q.firstChild)O3s.appendChild(o3q.firstChild); o3q.parentNode.insertBefore(O3s,o3q); o3q.parentNode.removeChild(o3q); }}}else {var div=null; for (var i=0; i<O3q.length; i++){if (!l3q)div=null; var paragraph=O3q[i]; for (var oh=0; oh<paragraph.length; oh++){var l1p=paragraph[oh]; if (l1p.nodeType==1 && l1p.tagName && (l1p.tagName.toUpperCase()=="UL" || l1p.tagName.toUpperCase()=="OL" || l1p.tagName.toUpperCase()=="DL" || l1p.tagName.toUpperCase()=="DIV" || HTMLEditor.i3o(l1p) || l1p.tagName.toUpperCase()=="P" || l1p.tagName.toUpperCase()=="LI" || l1p.tagName.toUpperCase()=="TABLE")){O3r(div); div=null; if (textAlign!="remain")if (l1p.tagName.toUpperCase()!="TABLE" && !I3n)l1p.style.textAlign=textAlign; if (I3n)l1p.style.margin=(l1p.tagName.toUpperCase()=="P")?"0px": ""; if ((l1p.tagName.toUpperCase()=="UL" || l1p.tagName.toUpperCase()=="OL" || l1p.tagName.toUpperCase()=="DL")){for (var o2d=0; o2d<l1p.childNodes.length; o2d++){var li=l1p.childNodes.item(o2d); if (li.nodeType==1){li.style.textAlign=""; if (I3n)li.style.margin=(li.tagName.toUpperCase()=="P")?"0px": ""; for (var l3s=0; l3s<li.childNodes.length; l3s++){var i1v=li.childNodes.item(l3s); if (i1v.nodeType==1 && I3n)i1v.style.margin=(i1v.tagName.toUpperCase()=="P")?"0px": ""; if (i1v.nodeType==1 && i1v.tagName && (i1v.tagName.toUpperCase()=="DIV" || i1v.tagName.toUpperCase()=="P" || HTMLEditor.i3o(i1v))){if (X.i3n(i1v,O3n,I3n))I3q= true; }}}}if (textAlign=="left" && I3n)l1p.style.textAlign=""; continue; }else if (l1p.tagName.toUpperCase()=="LI"){if (textAlign!="remain"){if (!(textAlign=="left" && I3n) || l1p.parentNode.style.textAlign.length>0)l1p.style.textAlign=textAlign; else l1p.style.textAlign=""; }if (I3n)l1p.style.margin=(l1p.tagName.toUpperCase()=="P")?"0px": ""; var O2h=l1p.parentNode; var i3r=[]; for (var I3r=0; I3r<O2h.childNodes.length; I3r++)if (O2h.childNodes.item(I3r).nodeType==1)i3r.push(O2h.childNodes.item(I3r).style.textAlign); var o3s=1; for ( ; o3s<i3r.length; o3s++)if (i3r[o3s-1]!=i3r[o3s])break; if (o3s==i3r.length){var align=(i3r[0]=="left" && I3n)?"":i3r[0]; for (var oh=0; oh<O2h.childNodes.length; oh++)if (O2h.childNodes.item(oh).nodeType==1){O2h.childNodes.item(oh).style.textAlign=""; if (I3n)O2h.childNodes.item(oh).style.margin=(O2h.childNodes.item(oh).tagName.toUpperCase()=="P")?"0px": ""; }O2h.style.textAlign=align; }continue; }else if (l1p.tagName.toUpperCase()=="TABLE"){if (textAlign!="remain"){if (!(textAlign=="left" && I3n) && textAlign!="justify")l1p.align=textAlign; else {l1p.align=""; l1p.removeAttribute("align"); }}}if ((l1p.tagName.toUpperCase()=="DIV" || l1p.tagName.toUpperCase()=="P" || HTMLEditor.i3o(l1p)) && textAlign=="left" && I3n){if (X.i3n(l1p,O3n,I3n))I3q= true; }if ((l1p.tagName.toUpperCase()=="DIV" || l1p.tagName.toUpperCase()=="P" || HTMLEditor.i3o(l1p)) && l3q && i3q.toUpperCase()!=l1p.tagName.toUpperCase()){var O3s=X.I1.createElement(i3q); var o30=l1p.attributes; for (var l2d=0; l2d<o30.length; ++l2d){var a=o30.item(l2d); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; O3s.setAttribute(a.name,a.value); }O3s.style.cssText=l1p.style.cssText; while (l1p.firstChild)O3s.appendChild(l1p.firstChild); l1p.parentNode.insertBefore(O3s,l1p); l1p.parentNode.removeChild(l1p); }}else {if (!(textAlign=="left" && I3n) || l3q){if (div==null){div=X.I1.createElement(l3q?i3q:X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P" && !l3q)div.style.margin="0px"; if (!l3q)div.style.textAlign=textAlign; l1p.parentNode.insertBefore(div,l1p); if (X.I1.body.firstChild==div)o3r= true; }var i3s=(paragraph[paragraph.length-1]==O3n[1])?paragraph.length-1:paragraph.length; var I3s=(paragraph[0]==O3n[0])?1: 0; if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && oh==i3s-1 && oh==I3s){if (HTMLEditor.is_ie){div.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); l1p.parentNode.removeChild(l1p); }else div.appendChild(l1p); }else if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && oh==i3s-1 && oh>I3s && (!l3q || (l1p.nextSibling!=null && l1p.nextSibling==O3n[1])))l1p.parentNode.removeChild(l1p); else div.appendChild(l1p); if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && oh==paragraph.length-1 && !l3q){O3r(div); div=null; }if (l1p==O3n[1] && oh==paragraph.length-1){O3r(div); div=null; }}}}}}}for (var i=0; i<l3p.length; i++){var paragraph=l3p[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=o3q){if (O3q.length>0)l3r(); O3q=[]; o3q=paragraph[0].parentNode; }O3q.push(paragraph); }}if (O3q.length>0)l3r(); this.i1m(O3n,I3q); };HTMLEditor.prototype.i3p= function (){ this.I3l=null; var l3p=this.getPseudoP(); if (l3p.length==0){try {var ih="<span id='"+HTMLEditor.Il+"_ll'></span><span id='"+HTMLEditor.Il+"_rr'></span><br>"; this.O11(ih); var i1a=this.I1.getElementById(HTMLEditor.Il+"_ll"); var I1a=this.I1.getElementById(HTMLEditor.Il+"_rr"); var I18=this.I3l; this.I3l=null; this.i1m([i1a,I1a], false); this.I3l=I18; l3p=this.getPseudoP(); }catch (w){} ; }return l3p; };HTMLEditor.prototype.o3t= function (O3t){var l3p=this.i3p(); var O3n=this.I3p(l3p); var o3q=null; var O3q=[]; var X=this ; var l3t=null; var i3t=[]; var I3t=O3t.toUpperCase(); var I3q= false; function o3u(){if (l3t!=null){var O3u; O3u=l3t.cloneNode( false); l3t.parentNode.insertBefore(O3u,l3t); while (l3t.firstChild!=i3t[0])O3u.appendChild(l3t.firstChild); if (O3u.firstChild==null)O3u.parentNode.removeChild(O3u); if (l3t.tagName.toUpperCase()==I3t){for (var i=0; i<i3t.length; i++){var l1p=i3t[i]; if (l1p.nodeType==1 && l1p.tagName && l1p.tagName.toUpperCase()=="LI"){var I1n= false; l3t.parentNode.insertBefore(l1p,l3t); if (l1p.style.textAlign=="")l1p.style.textAlign=l3t.style.textAlign; if (l3t.childNodes.length==0 && i==i3t.length-1){l3t.parentNode.removeChild(l3t); l3t=null; }if (l1p.style.textAlign=="" || (l1p.style.textAlign.toLowerCase()=="left" && !X.rtlState()) || (l1p.style.textAlign.toLowerCase()=="right" && X.rtlState())){I1n=X.i3n(l1p,O3n); if (I1n)I3q= true; }if (!I1n){var l3u=X.I1.createElement(X.dfltBlockElement); var o30=l1p.attributes; for (var i3u=0; i3u<o30.length; ++i3u){var a=o30.item(i3u); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; l3u.setAttribute(a.name,a.value); }l3u.style.cssText=l1p.style.cssText; if (l3u.tagName.toUpperCase()=="P")l3u.style.margin="0px"; while (l1p.firstChild)l3u.appendChild(l1p.firstChild); l1p.parentNode.insertBefore(l3u,l1p); l1p.parentNode.removeChild(l1p); }}else l3t.parentNode.insertBefore(l1p,l3t); }}else {var O3u=X.I1.createElement(I3t); var o30=l3t.attributes; for (var i3u=0; i3u<o30.length; ++i3u){var a=o30.item(i3u); if (!a.specified)continue; if (a.name.toLowerCase()=="style")continue; O3u.setAttribute(a.name,a.value); }O3u.style.cssText=l3t.style.cssText; l3t.parentNode.insertBefore(O3u,l3t); for (var i=0; i<i3t.length; i++){var l1p=i3t[i]; O3u.appendChild(l1p); }}if (l3t!=null){O3u=l3t.cloneNode( false); l3t.parentNode.insertBefore(O3u,l3t); while (l3t.firstChild)O3u.appendChild(l3t.firstChild); if (O3u.firstChild==null)O3u.parentNode.removeChild(O3u); l3t.parentNode.removeChild(l3t); }}l3t=null; i3t=[]; }function l3r(){var firstChild=o3q.firstChild; var lastChild=o3q.lastChild; if (o3q.tagName && !HTMLEditor.l3d(o3q) && O3q[0][0]==firstChild && O3q[O3q.length-1][O3q[O3q.length-1].length-1]==lastChild && (o3q.tagName.toUpperCase()=="OL" || o3q.tagName.toUpperCase()=="UL" || o3q.tagName.toUpperCase()=="DL" || o3q.tagName.toUpperCase()=="LI" || ((o3q.tagName.toUpperCase()=="P" || o3q.tagName.toUpperCase()=="DIV" || HTMLEditor.i3o(o3q)) && o3q.parentNode.tagName.toUpperCase()=="LI"))){o3u(); i3t=[]; if (o3q.tagName.toUpperCase()=="LI"){l3t=o3q.parentNode; i3t.push(o3q); }else if (o3q.tagName.toUpperCase()=="P" || o3q.tagName.toUpperCase()=="DIV" || HTMLEditor.i3o(o3q)){l3t=o3q.parentNode.parentNode; i3t.push(o3q.parentNode); }else {l3t=o3q; for (var i=0; i<O3q.length; i++){var paragraph=O3q[i]; for (var oh=0; oh<paragraph.length; oh++){i3t.push(paragraph[oh]); }}}o3u(); }else {var I3u=o3q.tagName.toUpperCase(); if (I3u=="LI" && (O3q.length<l3p.length)){if (l3t!=o3q.parentNode){o3u(); l3t=o3q.parentNode; i3t=[]; }i3t.push(o3q); }else if (I3u=="OL" || I3u=="UL" || I3u=="DL"){o3u(); l3t=o3q; i3t=[]; for (var i=0; i<O3q.length; i++){var paragraph=O3q[i]; for (var oh=0; oh<paragraph.length; oh++){i3t.push(paragraph[oh]); }}o3u(); }else {var li=null; var O2h=null; function o3v(){if (li!=null)if (li.childNodes==1 && (li.firstChild==O3n[0] || li.firstChild==O3n[1])){li.parentNode.insertBefore(li.firstChild,li); li.parentNode.removeChild(li); }li=null; }if (l3t!=null){o3u(); }if (O3q.length==1 && O3q[0].length==1 && O3q[0][0].nodeType==1 && O3q[0][0].tagName && (O3q[0][0].tagName.toUpperCase()=="OL" || O3q[0][0].tagName.toUpperCase()=="UL" || O3q[0][0].tagName.toUpperCase()=="DL")){var l1p=O3q[0][0]; l3t=l1p; i3t=[]; for (var i=0; i<l1p.childNodes.length; i++){var Ik=l1p.childNodes.item(i); i3t.push(Ik); }o3u(); }else for (var i=0; i<O3q.length; i++){var paragraph=O3q[i]; for (var oh=0; oh<paragraph.length; oh++){var l1p=paragraph[oh]; if (O2h==null){O2h=X.I1.createElement(I3t); l1p.parentNode.insertBefore(O2h,l1p); }if (!HTMLEditor.l3d(l1p) && !(l1p.tagName && l1p.tagName.toUpperCase()=="BR")){if (li && li.firstChild)o3v(); if (li==null){li=X.I1.createElement("LI"); O2h.appendChild(li); }li.appendChild(l1p); o3v(); }else {if (li==null){li=X.I1.createElement("LI"); O2h.appendChild(li); }var i3s=(paragraph[paragraph.length-1]==O3n[1])?paragraph.length-1:paragraph.length; var I3s=(paragraph[0]==O3n[0])?1: 0; if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && oh==i3s-1 && oh==I3s){if (HTMLEditor.is_ie){li.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); l1p.parentNode.removeChild(l1p); }else li.appendChild(l1p); }else if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && oh==i3s-1 && oh>I3s)l1p.parentNode.removeChild(l1p); else li.appendChild(l1p); if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && oh==paragraph.length-1){o3v(); li=null; }if (l1p==O3n[1] && oh==paragraph.length-1){o3v(); li=null; }}}if (li && li.firstChild)o3v(); }if (O2h!=null){var i3r=[]; for (var oh=0; oh<O2h.childNodes.length; oh++)i3r.push(O2h.childNodes.item(oh).style.textAlign); var o3s=1; for ( ; o3s<i3r.length; o3s++)if (i3r[o3s-1]!=i3r[o3s])break; if (o3s==i3r.length){var align=((i3r[0]=="left" && !X.rtlState()) || (i3r[0]=="right" && X.rtlState()))?"":i3r[0]; for (var oh=0; oh<O2h.childNodes.length; oh++)O2h.childNodes.item(oh).style.textAlign=""; O2h.style.textAlign=align; }}if (O2h!=null)if (O2h.parentNode.tagName.toUpperCase()=="P" && O2h.parentNode.childNodes.length==1){var O3v=O2h.parentNode; var l3v=O3v.cloneNode( false); O3v.parentNode.insertBefore(O2h,O3v); O3v.parentNode.removeChild(O3v); if (O2h.childNodes.length==1){var item=O2h.firstChild; while (item.firstChild)l3v.appendChild(item.firstChild); item.appendChild(l3v); }else delete l3v; }}}}for (var i=0; i<l3p.length; i++){var paragraph=l3p[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=o3q){if (O3q.length>0)l3r(); O3q=[]; o3q=paragraph[0].parentNode; }O3q.push(paragraph); }}if (O3q.length>0)l3r(); if (l3t!=null){o3u(); } this.i1m(O3n,I3q); };HTMLEditor.prototype.i3v= function (I3v){var l3p=this.i3p(); var O3n=this.I3p(l3p); var o3q=null; var O3q=[]; var X=this ; var I3q= false; function o3w(Ik){if (Ik.nodeType==1){var O3w=(!X.rtlState())?Ik.style.marginLeft:Ik.style.marginRight; if (O3w.length>0)return parseInt(O3w); }return 0; }function l3w(Ik,value){if (Ik.nodeType==1){if (Ik.tagName.toUpperCase()=="P" && value=="")value="0px"; if (!X.rtlState())Ik.style.marginLeft=value; else Ik.style.marginRight=value; }}function i3w(Ik){if (I3v)l3w(Ik,(o3w(Ik)+050)+"px"); else {if (Ik.tagName.toUpperCase()=="P"){if (o3w(Ik)>=050)l3w(Ik,(o3w(Ik)-050)+"px"); else l3w(Ik,"0px"); }else {if (o3w(Ik)>050)l3w(Ik,(o3w(Ik)-050)+"px"); else l3w(Ik,""); }}}function O3r(div){if (div!=null)if (div.childNodes==1 && (div.firstChild==O3n[0] || div.firstChild==O3n[1])){div.parentNode.insertBefore(div.firstChild,div); div.parentNode.removeChild(div); }}function l3r(){var firstChild=o3q.firstChild; var lastChild=o3q.lastChild; if (o3q.tagName && !HTMLEditor.l3d(o3q) && O3q[0][0]==firstChild && O3q[O3q.length-1][O3q[O3q.length-1].length-1]==lastChild){var textAlign=""; if (o3q.getAttribute("align") && o3q.getAttribute("align").length>0)textAlign=o3q.getAttribute("align"); if (o3q.align && o3q.align.length>0)textAlign=o3q.align; if (o3q.style.textAlign && o3q.style.textAlign.length>0)textAlign=o3q.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; o3q.align=""; o3q.setAttribute("align",""); o3q.removeAttribute("align"); i3w(o3q); if ((o3q.tagName.toUpperCase()=="DIV" || o3q.tagName.toUpperCase()=="P" || HTMLEditor.i3o(o3q)) && textAlign==""){if (X.i3n(o3q,O3n))I3q= true; }else {if (textAlign!="" || (o3q.tagName.toUpperCase()=="LI" && o3q.parentNode.style.textAlign.length>0))o3q.style.textAlign=textAlign; else o3q.style.textAlign=""; if (o3q.tagName.toUpperCase()=="LI"){var O2h=o3q.parentNode; var margins=[]; for (var I3r=0; I3r<O2h.childNodes.length; I3r++)margins.push(o3w(O2h.childNodes.item(I3r))); var o3s=1; for ( ; o3s<margins.length; o3s++)if (margins[o3s-1]!=margins[o3s])break; if (o3s==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var oh=0; oh<O2h.childNodes.length; oh++)l3w(O2h.childNodes.item(oh),""); l3w(O2h,margin); }}}}else {for (var i=0; i<O3q.length; i++){var div=null; var paragraph=O3q[i]; for (var oh=0; oh<paragraph.length; oh++){var l1p=paragraph[oh]; if (l1p.nodeType==1 && l1p.tagName && (l1p.tagName.toUpperCase()=="UL" || l1p.tagName.toUpperCase()=="OL" || l1p.tagName.toUpperCase()=="DL" || l1p.tagName.toUpperCase()=="DIV" || HTMLEditor.i3o(l1p) || l1p.tagName.toUpperCase()=="P" || l1p.tagName.toUpperCase()=="LI")){O3r(div); div=null; i3w(l1p);if ((l1p.tagName.toUpperCase()=="UL" || l1p.tagName.toUpperCase()=="OL" || l1p.tagName.toUpperCase()=="DL")){for (var o2d=0; o2d<l1p.childNodes.length; o2d++){var li=l1p.childNodes.item(o2d); if (li.nodeType==1){l3w(li,""); for (var l3s=0; l3s<li.childNodes.length; l3s++){var i1v=li.childNodes.item(l3s); var textAlign=(i1v.nodeType==1)?l1p.style.textAlign: ""; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if (i1v.nodeType==1){l3w(i1v,""); if (textAlign=="" && i1v.tagName && (i1v.tagName.toUpperCase()=="DIV" || i1v.tagName.toUpperCase()=="P")){if (X.i3n(i1v,O3n))I3q= true; }}}}}continue; }else if (l1p.tagName.toUpperCase()=="LI"){var O2h=l1p.parentNode; var margins=[]; for (var I3r=0; I3r<O2h.childNodes.length; I3r++)margins.push(o3w(O2h.childNodes.item(I3r))); var o3s=1; for ( ; o3s<margins.length; o3s++)if (margins[o3s-1]!=margins[o3s])break; if (o3s==margins.length){var margin=(margins[0]==0)?"": (margins[0]+"px"); for (var oh=0; oh<O2h.childNodes.length; oh++)l3w(O2h.childNodes.item(oh),""); l3w(O2h,margin); }continue; }var textAlign=l1p.style.textAlign; if ((textAlign.toLowerCase()=="left" && !X.rtlState()) || (textAlign.toLowerCase()=="right" && X.rtlState()))textAlign=""; if ((l1p.tagName.toUpperCase()=="DIV" || l1p.tagName.toUpperCase()=="P" || HTMLEditor.i3o(l1p)) && textAlign==""){if (X.i3n(l1p,O3n))I3q= true; }}else {if (I3v){if (div==null){div=X.I1.createElement(X.dfltBlockElement); if (X.dfltBlockElement.toUpperCase()=="P")div.style.margin="0px"; i3w(div); l1p.parentNode.insertBefore(div,l1p); }var i3s=(paragraph[paragraph.length-1]==O3n[1])?paragraph.length-1:paragraph.length; var I3s=(paragraph[0]==O3n[0])?1: 0; if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && oh==i3s-1 && oh==I3s){if (HTMLEditor.is_ie){div.appendChild(X.I1.createTextNode(String.fromCharCode(0240))); l1p.parentNode.removeChild(l1p); }else div.appendChild(l1p); }else if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && oh==i3s-1 && oh>I3s)l1p.parentNode.removeChild(l1p); else div.appendChild(l1p); if (l1p.tagName && l1p.tagName.toUpperCase()=="BR" && oh==paragraph.length-1){O3r(div); div=null; }if (l1p==O3n[1] && oh==paragraph.length-1){O3r(div); div=null; }}}}}}}for (var i=0; i<l3p.length; i++){var paragraph=l3p[i]; if (paragraph.length>0){if (paragraph[0].parentNode!=o3q){if (O3q.length>0)l3r(); O3q=[]; o3q=paragraph[0].parentNode; }O3q.push(paragraph); }}if (O3q.length>0)l3r(); this.i1m(O3n,I3q); };HTMLEditor.prototype.I3w= function (l23,par){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.i12(this.O1b()): ""; if (this.isControl())return; var oq=this.Oq(); var lq=this.iq(oq); var o3x=HTMLEditor.is_ie?[lq.boundingLeft,lq.boundingTop]: [lq.startContainer,lq.startOffset]; var l1b=(HTMLEditor.is_ie && lq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); var O3x= {name: "none",value: "none" } ; switch (l23.toLowerCase()){case "bold":O3x= {name: "font-weight",value: "bold",l3x: false } ; break; case "italic":O3x= {name: "font-style",value: "italic",l3x: false } ; break; case "underline":O3x= {name: "text-decoration",value: "underline",l3x: false } ; break; case "strikethrough":O3x= {name: "text-decoration",value: "line-through",l3x: false } ; break; case "superscript":O3x= {name: "vertical-align",value: "super",l3x: false } ; break; case "subscript":O3x= {name: "vertical-align",value: "sub",l3x: false } ; break; case "forecolor":O3x= {name: "color",value:par,l3x: false } ; break; case "backcolor":O3x= {name: "background-color",value:par,l3x: false } ; break; case "fontname":O3x= {name: "font-family",value:par,l3x: false } ; break; case "fontsize":O3x= {name: "font-size",value:par,l3x: false } ; break; }if (l1b){var i1b=this.I1b(); this.i3x(O3x,i1b, true); }else if (!HTMLEditor.is_Safari){if (this.isControl())return; var i1b=this.I3x(); if (i1b.length>0){ this.i3x(O3x,i1b, false); if (HTMLEditor.is_ie && this.o3y!=null){oq=this.Oq(); lq=this.iq(oq); lq.moveToBookmark(this.o3y); lq.select(); this.o3y=null; }else if (this.o3y!=null){if (this.o3y[0].nodeType==3){oq=this.Oq(); lq=this.I1.createRange(); lq.setStart(this.o3y[0],this.o3y[1]); lq.setEnd(this.o3y[0],this.o3y[1]); this.l17(oq); this.i17(oq,lq); }else { this.O3y(this.o3y[0],this.o3y[0]); this.o3y[0].parentNode.removeChild(this.o3y[0]); } this.o3y=null; }}else { this.l3y(O3x); }}};HTMLEditor.prototype.I3x= function (Om){var I1w=[]; var o1b; var l1b; var oq=this.Oq(); var lq=this.iq(oq); var i3y; var l3m; var O24=HTMLEditor.Il+"_right_add"; var l24=HTMLEditor.Il+"_left_add"; var I3y=HTMLEditor.Il+"_middle_add"; if (HTMLEditor.is_ie && typeof Om=="undefined"){lq.execCommand("bold"); this.o3y=lq.getBookmark(); lq.execCommand("bold"); }if (HTMLEditor.is_ie){var o3z=null; var O3z="<span id="+I3y+"></span>"; var l3z=lq.duplicate(); try {lq.pasteHTML(O3z); }catch (w){}o3z=this.I1.getElementById(I3y); if (o3z==null)return []; if (typeof Om!="undefined")this.o3y=o3z; if (o3z.nextSibling!=null && !HTMLEditor.l3d(o3z.nextSibling)){o3z.parentNode.removeChild(o3z); return []; }lq.expand("word"); lq.select(); if (lq.text.length==0){o3z.parentNode.removeChild(o3z); l3z.select(); return []; }var l2k=new RegExp(O3z,"ig"); if (!l2k.test(lq.htmlText.replace(/[\n\r]/g,""))){o3z.parentNode.removeChild(o3z); l3z.select(); return []; }l2k=new RegExp(O3z+"(\x3c/span>|&nbsp;|[\\s])*$","ig"); if (l2k.test(lq.htmlText.replace(/[\n\r]/g,""))){o3z.parentNode.removeChild(o3z); l3z.select(); return []; }while (lq.text.length>0 && lq.text.substr(lq.text.length-1,1)==" "){lq.moveEnd("character",-1); lq.select(); if (lq.text.length==0){o3z.parentNode.removeChild(o3z); l3z.select(); return []; }}if (typeof Om=="undefined")o3z.parentNode.removeChild(o3z); return this.I1b(); }function I3d(i3z){var l2k=/[\d\w]/; if (l2k.test(i3z))return false; l2k=/[\x80-\u024f]/; if (l2k.test(i3z))return false; l2k=/[\u0370-\u2000]/; if (l2k.test(i3z))return false; return true; }if (!this.O11("<span id='"+l24+"'></span><span id='"+I3y+"'></span><span id='"+O24+"'></span>"))return []; var i1a=this.I1.getElementById(l24); var I1a=this.I1.getElementById(O24); var I3z=this.I1.getElementById(I3y); HTMLEditor.O3e(i1a,i1a.previousSibling, true ,i1a.parentNode,I3d); try { this.O3y(i1a,I1a); }catch (w){}i3y=this.Oq(); l3m=this.iq(i3y); o1b=(!HTMLEditor.is_ie)?HTMLEditor.i12(this.O1b()): ""; l1b=(HTMLEditor.is_ie && l3m.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (!l1b || this.I1b().length==0){var o40=this.I1.createTextNode(""); i1a.parentNode.insertBefore(o40,i1a); i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); I3z.parentNode.removeChild(I3z); var lq=this.I1.createRange(); lq.setStart(o40,0); lq.setEnd(o40,0); lq.setStart(o40,0); lq.setEnd(o40,0); this.l17(oq); this.i17(oq,lq); return []; }I1a.parentNode.insertBefore(i1a,I3z); HTMLEditor.O3e(I1a,I1a.nextSibling, false ,I1a.parentNode,I3d); this.O3y(i1a,I1a); i3y=this.Oq(); l3m=this.iq(i3y); o1b=(!HTMLEditor.is_ie)?HTMLEditor.i12(this.O1b()): ""; l1b=(HTMLEditor.is_ie && l3m.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (!l1b || this.I1b().length==0){var o40=this.I1.createTextNode(""); i1a.parentNode.insertBefore(o40,i1a); i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); I3z.parentNode.removeChild(I3z); var lq=this.I1.createRange(); lq.setStart(o40,0); lq.setEnd(o40,0); lq.setStart(o40,0); lq.setEnd(o40,0); this.l17(oq); this.i17(oq,lq); return []; }HTMLEditor.O3e(i1a,i1a.previousSibling, true ,i1a.parentNode,I3d); this.O3y(i1a,I1a); i3y=this.Oq(); l3m=this.iq(i3y); o1b=(!HTMLEditor.is_ie)?HTMLEditor.i12(this.O1b()): ""; l1b=(HTMLEditor.is_ie && l3m.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0); if (HTMLEditor.is_ie){if (typeof Om!="undefined")this.o3y=I3z; else I3z.parentNode.removeChild(I3z); }else this.o3y=[I3z,0]; if (l1b){I1w=this.I1b(); }i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); return I1w; };HTMLEditor.prototype.l3y= function (O3x){var name=O3x.name.replace(/-(\w)/g, function (O40,o23){return o23.toUpperCase(); } ); var value=O3x.value; var l3x=O3x.l3x; if (this.M==null)this.M=[]; var l40=[];var i40= true; for (var i=0; i<this.M.length; i++){var I40=this.M[i].name.replace(/-(\w)/g, function (O40,o23){return o23.toUpperCase(); } ); var o41=this.M[i].value; if (!(I40==name && (o41==value || l3x)))l40.push(this.M[i]); else i40= false; } this.M=l40; if (i40)this.M.push(O3x); };HTMLEditor.prototype.O3y= function (i1a,I1a){var oq=this.Oq(); var o40=null; var O41=null; if (HTMLEditor.is_ie){oq.empty(); oq=this.Oq(); var l3m=this.iq(oq); var i3m=this.iq(oq); try {if (i1a!=null)l3m.moveToElementText(i1a); if (I1a!=null)i3m.moveToElementText(I1a); if (i1a!=null && I1a!=null){l3m.setEndPoint("EndToEnd",i3m); l3m.select(); }else if (i1a!=null)l3m.select(); else if (I1a!=null)i3m.select(); }catch (t){}}else {try {o40=this.I1.createTextNode(""); O41=this.I1.createTextNode(""); i1a.parentNode.insertBefore(o40,i1a); I1a.parentNode.insertBefore(O41,I1a); var lq=this.I1.createRange(); lq.setStart(o40,0); lq.setEnd(O41,0); this.l17(oq); this.i17(oq,lq); }catch (t){}}};HTMLEditor.prototype.i3x= function (O3x,i1b,l41){var name=O3x.name.replace(/-(\w)/g, function (O40,o23){return o23.toUpperCase(); } ); var value=O3x.value; var l3x=O3x.l3x; var i41= false; var I41= false; this.l10(); var O24=HTMLEditor.Il+"_right"; var l24=HTMLEditor.Il+"_left"; var i1a=this.I1.createElement("SPAN"); i1a.id=l24; var I1a=this.I1.createElement("SPAN"); I1a.id=O24; 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.i1p(i1a); HTMLEditor.i1p(I1a); var o42=[]; for (var i=0; i<i1b.length; i++){var O42=i1b[i]; var par=O42.parentNode; var oh; for (oh=0; oh<o42.length; oh++){var parent=o42[oh]; if (parent.parent==par){parent.l42.push(O42); break; }}if (oh==o42.length){o42.push( {parent:par,l42: [O42] } ); }}for (var i=0; i<o42.length; i++){var parent=o42[i]; if (parent.l42.length>1){var l42=parent.l42; var i42=this.I1.createElement("SPAN"); var I42=this.I1.createElement("SPAN"); l42[0].parentNode.insertBefore(i42,l42[0]); if (l42[l42.length-1].nextSibling!=null)l42[l42.length-1].parentNode.insertBefore(I42,l42[l42.length-1].nextSibling); else l42[l42.length-1].parentNode.appendChild(I42); HTMLEditor.I3e(i42,I42); i42.parentNode.removeChild(i42); I42.parentNode.removeChild(I42); }}for (var i=0; i<i1b.length; i++){var O42=i1b[i]; var par=O42.parentNode; var o43= false; while (par && par.tagName && par.childNodes.length==1 && HTMLEditor.O1j(par.tagName)){var O43=par.tagName.toUpperCase(); if (((O43=="I" || O43=="EM") && O3x.name=="font-style") || ((O43=="B" || O43=="STRONG") && O3x.name=="font-weight") || ((O43=="S" || O43=="STRIKE") && O3x.name=="text-decoration") || ((O43=="U") && O3x.name=="text-decoration") || ((O43=="SUB" || O43=="SUP") && O3x.name=="vertical-align")){var l43=par; par=par.parentNode; while (l43.firstChild)par.insertBefore(l43.firstChild,l43); par.removeChild(l43); o43= true; continue; }else if (par.style && par.style[name] && par.style[name].length>0){var i43=par.style[name]; if (name.toLowerCase().indexOf("color")>=0 || name=="fontFamily" || name=="fontSize"){par.style[name]=value; }else {if (l3x){try {par.style[name]=par.style[name]+" "+value; if (i43==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {if (!i41){var I18=i43.replace(value,""); if (name=="fontWeight" && i43.toString()=="700")I18=""; if (I18==i43){try {par.style[name]=par.style[name]+" "+value; if (i43==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}else {par.style[name]=I18; I41= true; }i41= true; }else {if (I41){par.style[name]=i43.replace(value,""); }else {try {par.style[name]=par.style[name]+" "+value; if (i43==par.style[name]){par.style[name]=value; }}catch (t){par.style[name]=value; }}}}}o43= true; }par=par.parentNode; }if (!o43 && !I41){var span; span=this.I1.createElement("SPAN"); span.style[name]=value; var I43=O42.parentNode; I43.insertBefore(span,O42); span.appendChild(O42); i41= true; }}var o44=HTMLEditor.l25(i1a,I1a); var O44=o44.parent.childNodes.item(o44.O26).previousSibling; var l44=o44.parent.childNodes.item(o44.i26).nextSibling; i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); var O26=0; var i26=o44.parent.childNodes.length; if (O44!=null){O26=HTMLEditor.o17(O44); }if (l44!=null){i26=HTMLEditor.o17(l44)+1; if (i26<o44.parent.childNodes.length){if (l44.nodeType==3)i26++; else if (l44.nodeType==1){var ll=l44.tagName.toUpperCase(); if (ll!="TR" && ll!="TD" && ll!="LI")i26++; }}}HTMLEditor.O27(o44.parent,this.I1,O26,i26); var X=this ; if (l41)X.l1j(i1b); this.O1.setTimeout( function (){if (!HTMLEditor.is_ie)X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.I3p= function (l3p){if (l3p.length==0)return []; var i1a=this.I1.createElement("SPAN"); var I1a=this.I1.createElement("SPAN"); var i44=l3p[0][0]; var I44=l3p[l3p.length-1][l3p[l3p.length-1].length-1]; if (i44==I44 && I44.nodeType==1 && I44.childNodes.length==0 && HTMLEditor.canHaveChildren(I44)){I44.appendChild(i1a); I44.appendChild(I1a); }else {var o45=HTMLEditor.O45(i44); o45.parentNode.insertBefore(i1a,o45); if (o45==i44){var I18=[]; I18.push(i1a); for (var i=0; i<l3p[0].length; i++)I18.push(l3p[0][i]); l3p[0]=I18; }var l45=HTMLEditor.i3l(I44); if (l45.nextSibling)l45.parentNode.insertBefore(I1a,l45.nextSibling); else l45.parentNode.appendChild(I1a); if (l45==I44){l3p[l3p.length-1].push(I1a);}}return [i1a,I1a]; };HTMLEditor.prototype.i1m= function (O3n,I3q){if (O3n.length==0)return; var i1a=O3n[0]; var I1a=O3n[1]; var oq=this.Oq(); var o40=null; var O41=null; if (HTMLEditor.is_ie){oq.empty(); oq=this.Oq(); var l3m=this.iq(oq); var i3m=this.iq(oq); try {if (i1a!=null && I1a!=null && i1a.nextSibling==I1a){o40=this.I1.createTextNode(" "); I1a.parentNode.insertBefore(o40,I1a); } this.I3l=null; if (i1a!=null){l3m.moveToElementText(i1a); }if (I1a!=null){i3m.moveToElementText(I1a); }if (i1a!=null && I1a!=null){l3m.setEndPoint("EndToStart",i3m); l3m.select(); if (o40!=null){l3m.collapse( false); l3m.select(); o40.parentNode.removeChild(o40); }}else if (i1a!=null)l3m.select(); else if (I1a!=null)i3m.select(); }catch (w){}}else {try {var lq; var I1v=i1a.nextSibling; var I33=I1a.previousSibling;this.I3l=null; if (I1v==I33 && I1v.nodeType==1 && I1v.tagName.toUpperCase()=="BR"){var o1d=HTMLEditor.o17(I1v); lq=this.I1.createRange(); lq.setStart(I1v.parentNode,o1d); lq.setEnd(I1v.parentNode,o1d); }else {o40=this.I1.createTextNode(""); O41=this.I1.createTextNode(""); i1a.parentNode.insertBefore(o40,i1a); I1a.parentNode.insertBefore(O41,I1a); lq=this.I1.createRange(); lq.setStart(o40,0); lq.setEnd(O41,0); } this.l17(oq); this.i17(oq,lq); }catch (w){}}var O25=HTMLEditor.l25((i1a==null)?I1a:i1a,(I1a==null)?i1a:I1a); var parent=null; if (O25!=null){parent=O25.parent; }if (i1a!=null)i1a.parentNode.removeChild(i1a); if (I1a!=null)I1a.parentNode.removeChild(I1a); if (I3q && parent!=null){HTMLEditor.O27(parent,this.I1); if (!HTMLEditor.is_ie && o40!=null && O41!=null){var lq=this.I1.createRange(); lq.setStart(o40,0); lq.setEnd(O41,0); this.l17(oq); this.i17(oq,lq); }}};HTMLEditor.i3e= function (I32,ie){for (var i=0; i<I32.childNodes.length; i++){var i1v=I32.childNodes.item(i); if (i1v==ie)return i; if (i1v.nodeType==1){if (HTMLEditor.i3e(i1v,ie)>=0)return i; }}return -1; };HTMLEditor.O45= function (I32){if (typeof I32.firstChild!="undefined" && I32.firstChild!=null){if (typeof I32.firstChild.childNodes!="undefined" && I32.firstChild.childNodes!=null){return HTMLEditor.O45(I32.firstChild);}}return I32; };HTMLEditor.i3l= function (I32){if (typeof I32.lastChild!="undefined" && I32.lastChild!=null){if (typeof I32.lastChild.childNodes!="undefined" && I32.lastChild.childNodes!=null){return HTMLEditor.i3l(I32.lastChild);}}return I32; };HTMLEditor.O3i= function (I32,ie){if (I32.firstChild){if (I32.firstChild==ie)return true; if (I32.firstChild.childNodes)if (HTMLEditor.i3e(I32.firstChild,ie)==0){return HTMLEditor.O3i(I32.firstChild,ie);}}return false; };HTMLEditor.l3i= function (I32,ie){if (I32.lastChild){if (I32.lastChild==ie)return true; if (I32.lastChild.childNodes)if (HTMLEditor.i3e(I32.lastChild,ie)==I32.lastChild.childNodes.length-1){return HTMLEditor.l3i(I32.lastChild,ie);}}return false; };HTMLEditor.l25= function (o26,l26){var le=null; var par=o26.parentNode; var i45=o26; while (par){var Ot= false; if (par.tagName){Ot= true; if (HTMLEditor.O1j(par.tagName)){var o30=HTMLEditor.o3c(par,["class","color","face","size"]); if (o30.length==0){Ot= false; }}}if (Ot){var i26=HTMLEditor.i3e(par,l26); if (i26>=0){var O26=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==i45){O26=i; break; }}return {parent:par,O26:O26,i26:i26 } ; }}i45=par; par=par.parentNode; }return le; };HTMLEditor.prototype.removeAlignment= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; this.l10(); this.I3o("left", true); this.O14(); var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); } ; HTMLEditor.I45= function (o26,l26){var le=null; var par=o26.parentNode; var i45=o26; while (par){var i26=HTMLEditor.i3e(par,l26); if (i26>=0){var O26=0; for (var i=0; i<par.childNodes.length; i++){if (par.childNodes.item(i)==i45){O26=i; break; }}return {parent:par,O26:O26,i26:i26 } ; }if (par.tagName.toUpperCase()=="BODY" || !HTMLEditor.O1j(par.tagName)){break; }i45=par; par=par.parentNode; }return le; };HTMLEditor.prototype.l1f= function (o46,Om){var X=this ; if (HTMLEditor.is_ie){var oq=this.Oq(); var lq=this.iq(oq); var o2f= false; var html=""; if (o46=="x")this.l10(); if (oq.type.toLowerCase()=="control"){o2f= true; html=HTMLEditor.getHTML(lq.item(0), true);}else {if (lq.text!=""){o2f= true; html=lq.htmlText; var O46=lq.duplicate(); var i1b=this.I1b(); if (i1b.length<1)return; var O25=HTMLEditor.I45(i1b[0],i1b[i1b.length-1]); if (O25!=null && i1b[0].previousSibling && i1b[0].previousSibling.nodeType==3){var par=O25.parent; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(par.tagName)){var Iy=par.cloneNode( false); Iy.innerHTML=html; html=Iy.outerHTML; par=par.parentNode; }}oq=this.Oq(); oq.empty(); lq=this.iq(oq); lq.setEndPoint("EndToEnd",O46); lq.setEndPoint("StartToStart",O46); lq.select(); }else if (lq.htmlText!=""){o2f= true; html=lq.htmlText; }}if (o2f){var src=this.I1.createElement("DIV"); src.innerHTML="!!!<span></span>"+html; src.removeChild(src.firstChild); src.removeChild(src.firstChild); var Ok=HTMLEditor.getHTML(src, false , true); var O2z=new RegExp("(<[/]?)(teo"+HTMLEditor.Il+":)","ig"); Ok=Ok.replace(O2z,"$1"); delete src; this.I36(Ok, true); lq.select(); if (o46=="x"){oq.clear(); this.i10(); }}else {if (o46=="x"){oq.clear(); this.i10(); }}if (Om)setTimeout( function (){X.updateToolbar(); } ,0144); }else {if (o46=="x"){ this.l10(); var oq=this.Oq(); var lq=this.iq(oq); this.l17(oq); lq.deleteContents(); if (this.I1.body.innerHTML==""){ this.I1.body.innerHTML="<br/>"; lq.setStart(this.I1.body,0); lq.setEnd(this.I1.body,0); }if (HTMLEditor.I10)this.f= true; X.O14(); this.i17(oq,lq); }else {var oq=this.Oq(); var lq=this.iq(oq); this.l17(oq); if (HTMLEditor.is_Safari)alert(this.Of("safari-c","Use Apple-C")); else alert(this.Of("moz-c","Use Ctrl-C")); if (HTMLEditor.I10)this.f= true; this.i17(oq,lq); }}};HTMLEditor.o17= function (Ik){var o1d=0; if (Ik.parentNode){for ( ; o1d<Ik.parentNode.childNodes.length; o1d++)if (Ik.parentNode.childNodes.item(o1d)==Ik)break; }return o1d; };HTMLEditor.prototype._commonPaste= function (ij){var X=this ; this.l10(); if (HTMLEditor.is_ie){ this.openWait(); setTimeout( function (){X._paste(!X._NoPaste); X.Im(); } ,0);HTMLEditor._stopEvent(ij); }else {if (!this.isWord && !this._NoPaste)setTimeout( function (){HTMLEditor.Oy(X,X.I1,!X.showAnchors); HTMLEditor.ly(X,X.I1,!X.showPlaceHolders); HTMLEditor.o13(X.I1.body); X.l46(X.I1.body); X.O14(); } ,012); else {var o1z=X.O1z(); if (o1z!=null){var div=X.I1.createElement("div"); div.style.display="inline"; div.style.borderStyle="none"; o1z.parentNode.insertBefore(div,o1z); div.appendChild(o1z); div.removeChild(o1z); div.innerHTML="xx"; var oq=X.Oq(); var i1b=X.iq(); X.l17(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.o2r(div.innerHTML); HTMLEditor.i31(div,X, true); HTMLEditor.O27(div,X.I1); }else {var i46=document.createElement("div"); i46.innerHTML=HTMLEditor.o2r(div.innerHTML); div.innerHTML=i46.innerText.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"").replace(/\n/g,"<br/>").replace(/\cI/g,"&nbsp;"); delete i46; }while (div.firstChild)parent.insertBefore(div.firstChild,div); var I46=null; var o47=null; if (div.nextSibling && div.nextSibling.nodeType==3 && div.previousSibling && div.previousSibling.nodeType==3){I46=div.nextSibling; o47=div.previousSibling; }parent.removeChild(div); var O47=null; if (I46!=null && o47!=null){O47=o47.data.length; o47.data=""+o47.data+""+I46.data+""; I46.parentNode.removeChild(I46); }X.isWord= false; X.Im(); if (O47!=null){var oq=X.Oq(); var i1b=X.iq(); X.l17(oq); i1b.setStart(o47,O47); i1b.setEnd(o47,O47); X.i17(oq,i1b); }X.O14(); } ,0); }else HTMLEditor._stopEvent(ij); }}};HTMLEditor.prototype.l47= false; HTMLEditor.prototype.i2d= function (ij){try {var X=this ; if (HTMLEditor.is_ie){try {var lz=this.I1.selection; var iz=this.iq(lz); }catch (t){HTMLEditor._stopEvent(ij); return false; }}if (!this._wasFocused)this.focusEditor(); if (this.isPopup()){HTMLEditor._stopEvent(ij); return false; }var i47= 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; }i47= 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.Oq(); var I47=ij.clientX; var o48=ij.clientY; setTimeout( function (){var oq=X.Oq(); if (oq.type.toLowerCase()!="control"){var lq=X.I1.body.createTextRange(); lq.moveToPoint(I47,o48); lq.select(); }oq=X.Oq(); var lq=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 Ik=(!HTMLEditor.is_ie)?ij.target:ij.srcElement; if (Ik.tagName!=null && typeof Ik.tagName!="undefined" && (Ik.tagName.toUpperCase()=="HTML" || Ik.tagName.toUpperCase()=="BODY")){if (X.O48!= true){X.O48= true; setTimeout( function (){if (!X.l48()){try {X.focusEditor(); }catch (w){}}X.O48= false; } ,0); }}else if (HTMLEditor.contentEditable(Ik)!=null){setTimeout( function (){X.l48(); } ,(!HTMLEditor.is_ie && ij.button && ij.button==2)?0310: 0); }}if (i47 && HTMLEditor.is_ie){var i48=this.Oq(); var iz; try {iz=this.iq(i48); if (i48.type.toLowerCase()=="control"){HTMLEditor._stopEvent(ij); return false; }}catch (w){HTMLEditor._stopEvent(ij); return false; }}var I48=(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.o49!=null){ this.o49.select(); this.o49=null; }if (I48 && !this.keyboardEnabled){HTMLEditor._stopEvent(ij); return false; }var o46=String.fromCharCode(HTMLEditor.is_ie?ij.keyCode:ij.charCode).toLowerCase(); if (I48 && X._hotkeys!=null){if (X._hotkeys.length>0){var O49=X._hotkeys.length; var l49=o46; if (ij.keyCode==022 || ij.keyCode==021 || ij.keyCode==020)l49=null; for (var i=0; i<O49; i++){var item=X._hotkeys[i]; if (item[1]==l49 && item[2]==ij.altKey && item[3]==ij.shiftKey && item[4]==ij.ctrlKey){if (typeof item[0]=="function")setTimeout( function (){ (item[0])(X); X.O14(); X.focusEditor(); } ,0); HTMLEditor._stopEvent(ij); return false; }}}}if (I48 && ij.shiftKey && ij.keyCode==055){ this._commonPaste(ij); }else if (I48 && ij.ctrlKey && ij.altKey && ij.keyCode==044){var i49=null; var Ik=HTMLEditor.getSelParent(X); while (Ik && (Ik.nodeType==3 || (Ik.tagName && Ik.tagName.toUpperCase()!="BODY"))){if (Ik.nodeType==3 || !Ik.tagName){Ik=Ik.parentNode; continue; }if (!HTMLEditor.l34(Ik) && Ik.tagName.toUpperCase()!="P"){if (Ik.tagName.toUpperCase()=="TD")while (Ik.tagName.toUpperCase()!="TABLE")Ik=Ik.parentNode; else if (Ik.tagName.toUpperCase()=="LI")while (Ik.tagName.toUpperCase()!="OL" && Ik.tagName.toUpperCase()!="UL")Ik=Ik.parentNode; i49=Ik; break; }Ik=Ik.parentNode; }if (i49!=null){var oq=X.Oq(); var lq=X.iq(oq); var O17=X.I1.createTextNode(""); i49.parentNode.insertBefore(O17,i49); if (HTMLEditor.is_ie){var l3m=X.iq(oq); var i3m=X.iq(oq); var I49=X.I1.createElement("span"); var o4a=X.I1.createElement("span"); O17.parentNode.insertBefore(I49,O17); if (O17.nextSibling)O17.parentNode.insertBefore(o4a,O17.nextSibling); else O17.parentNode.appendChild(o4a); try {l3m.moveToElementText(I49); i3m.moveToElementText(o4a); l3m.setEndPoint("EndToEnd",i3m); l3m.select(); }catch (t){}O17.parentNode.removeChild(I49); O17.parentNode.removeChild(o4a); }else {X.l17(oq); lq.setStart(O17,0); lq.setEnd(O17,0); X.i17(oq,lq); }}}else if (HTMLEditor.is_ie && ij.keyCode>=041 && ij.keyCode<=050 && !ij.shiftKey){var O4a=ij.keyCode; var l4a=(O4a==042 || O4a==043 || O4a==047 || O4a==050); setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); if (oq.type.toLowerCase()=="control"){var Ik=lq.item(0); if (!Ik.contentEditable || Ik.contentEditable=="false"){lq.remove(0); oq.empty(); lq=X.iq(oq); var span=X.I1.createElement("SPAN"); span.appendChild(X.I1.createTextNode("")); if (l4a){if (Ik.nextSibling==null)Ik.parentNode.appendChild(span); else Ik.parentNode.insertBefore(span,Ik.nextSibling); }else {Ik.parentNode.insertBefore(span,Ik); }lq.moveToElementText(span); lq.select(); setTimeout( function (){X.focusEditor(); X.updateToolbar(); X.focusEditor(); span.parentNode.removeChild(span); } ,012); }}} ,0); }else if (((I48 && !HTMLEditor.is_Safari) || (HTMLEditor.is_Safari && ij.type=="keydown")) && ij.ctrlKey && !ij.altKey){X.l47= false; var oq=null; var lq=null; var o46=String.fromCharCode((HTMLEditor.is_ie || HTMLEditor.I10 || HTMLEditor.is_Safari)?ij.keyCode:ij.charCode).toLowerCase(); var l23=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.I12( 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.l10(); }else {switch (o46){case "a":if (!HTMLEditor.is_ie){oq=this.Oq(); this.l17(oq); lq=this.iq(); lq.selectNodeContents(this.I1.body); this.i17(oq,lq); HTMLEditor._stopEvent(ij); return false; }else X.l47= 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.l10(); if (HTMLEditor.is_ie){if (ij.type=="keydown"){X.openWait(); setTimeout( function (){X.l1f(o46, false); X.Im(); } ,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(o46, false); X.Im(); 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":l23="strikethrough"; break; case "l":l23="justifyleft"; break; case "e":l23="justifycenter"; break; case "r":l23="justifyright"; break; case "j":l23="justifyfull"; break; case "q":alert(this.I1.body.innerHTML); HTMLEditor._stopEvent(ij); return false; break; case "0":var i4a=this.Of("your-browser","Your browser")+":\n\n"+navigator.userAgent; i4a+="\n\nObout Editor: "+this.scriptVersion; alert(i4a); HTMLEditor._stopEvent(ij); return false; break; break; case "9":if (!HTMLEditor.is_ie){var oq=X.Oq(); var lq=X.iq(oq); var o23=lq.startContainer; var O23=lq.endContainer; var I4a=""; I4a+="startContainer: "+(o23.nodeType==1?o23.tagName: "text")+"\n"; I4a+="endContainer  : "+(O23.nodeType==1?O23.tagName: "text")+"\n"; if (o23==O23){I4a+="startOffset: "+lq.startOffset+"\n"; I4a+="endOffset  : "+lq.endOffset+"\n"; if (o23.nodeType==1){o23=o23.childNodes.item(lq.startOffset); if (o23 && o23.nodeType){I4a+="startOffset node: "+(o23.nodeType==1?o23.tagName: "text")+"\n"; if (lq.startOffset!=lq.endOffset){o23=O23.childNodes.item(lq.endOffset); if (o23 && o23.nodeType)I4a+="endOffset node: "+(o23.nodeType==1?o23.tagName: "text")+"\n"; }}else I4a+=o23; }}alert(I4a); }else {var oq=X.Oq(); var lq=X.iq(oq); alert("boundingLeft: "+lq.boundingLeft+" boundingTop: "+lq.boundingTop+"\n"+"boundingWidth: "+lq.boundingWidth+" boundingHeight: "+lq.boundingHeight); }HTMLEditor._stopEvent(ij); return false; break; }}if (l23){ this.i1i(l23, false ,value); if (l23=="formatblock" && !HTMLEditor.is_ie){ this.l10(); this.I1e( false); }HTMLEditor._stopEvent(ij); if (l23=="delete" || l23=="paste"){ this.i10(); }}}else if (((I48) || ((HTMLEditor.is_Safari || HTMLEditor.I10) && ij.type=="keydown"))){if (HTMLEditor.is_ie && this.o2e){var lq=this.iq(this.Oq()); lq.select(); this.o2e= false; }var o46=String.fromCharCode(HTMLEditor.is_ie?ij.keyCode:ij.charCode).toLowerCase(); if (X.l47){X.l47= false; function o4b(){var i1g=X.iq(X.Oq()); 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(o4b,0); }if (this.O1f()){HTMLEditor._stopEvent(ij); return false; }switch (ij.keyCode){case 011:if (((HTMLEditor.is_Safari || HTMLEditor.I10) && ij.type!="keydown"))break; if (!this.suppressTab){if (!this.isControl())this.O11("&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.I10) && ij.type!="keydown"))break; if (((HTMLEditor.is_ie || HTMLEditor.is_Safari) && ij.type=="keydown") || (!HTMLEditor.is_ie && !HTMLEditor.is_Safari && ij.type=="keypress"))this.l10(); if (!HTMLEditor.is_ie){var lq=this.iq(this.Oq()); var o23=lq.startContainer; var O23=lq.endContainer; if (ij.type=="keypress")if (HTMLEditor.contentEditable(o23)!=null || HTMLEditor.contentEditable(O23)!=null){HTMLEditor._stopEvent(ij); return false; }if (o23==O23 && o23.nodeType==1 && o23.tagName.toUpperCase()=="TD" && lq.startOffset==lq.startOffset && o23.childNodes.item(lq.startOffset) && o23.childNodes.item(lq.startOffset).tagName && o23.childNodes.item(lq.startOffset).tagName.toUpperCase()=="BR"){var span=o23.childNodes.item(lq.startOffset); var left=0,right=0; var O4b,l24,O24; l24=O4b=span.previousSibling; while (O4b){left++; O4b=O4b.previousSibling; }O24=O4b=span.nextSibling; while (O4b){right++; O4b=O4b.nextSibling; }if ((ij.keyCode==056 && right==0) || (ij.keyCode==8 && left==0)){HTMLEditor._stopEvent(ij); return false; }else if (ij.keyCode==056 && o23.firstChild==o23.lastChild && o23.firstChild.nodeType==1){HTMLEditor._stopEvent(ij); return false; }}if (o23==O23 && o23.nodeType==3 && lq.startOffset==lq.endOffset && !HTMLEditor.I10){var data=o23.data+""; if (ij.keyCode==056)if (lq.startOffset==data.length && !(o23.nextSibling && o23.nextSibling.nodeType==3)){if (o23.nextSibling){o23.parentNode.removeChild(o23.nextSibling); X.O14(); }HTMLEditor._stopEvent(ij); return false; }if (ij.keyCode==8)if (lq.startOffset==0 && !(o23.previousSibling && o23.previousSibling.nodeType==3)){if (o23.previousSibling){o23.parentNode.removeChild(o23.previousSibling); X.O14(); }HTMLEditor._stopEvent(ij); return false; }}if (ij.keyCode==8 && o23.nodeType==1 && o23==O23 && lq.startOffset==lq.endOffset){var l4b=o23.childNodes.item(lq.startOffset); if (l4b!=null && l4b.nodeType==1 && l4b.tagName.toUpperCase()=="BR"){l4b=l4b.previousSibling; if (l4b!=null && l4b.nodeType!=3){l4b.parentNode.removeChild(l4b); X.O14(); HTMLEditor._stopEvent(ij); return false; }}}setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); var o23=lq.startContainer; var O23=lq.endContainer; if (HTMLEditor.contentEditable(o23)!=null || HTMLEditor.contentEditable(O23)!=null){X.I1e( false); return; }if (HTMLEditor.I10 && o23==O23 && o23.nodeType==3 && (o23.data).length==0){o23.parentNode.removeChild(o23); }else if (o23==O23 && o23.nodeType==1 && HTMLEditor.O1j(o23.tagName) && lq.startOffset==lq.endOffset && o23.childNodes.length==0){while (o23.parentNode.nodeType==1 && HTMLEditor.O1j(o23.parentNode.tagName) && o23.parentNode.childNodes.length==1)o23=o23.parentNode; var I1v=o23.nextSibling; var I33=o23.previousSibling; var parent=o23.parentNode; parent.removeChild(o23); X.O14(); if (I1v==null && I33==null){lq.setStart(parent,0); lq.setEnd(parent,0); }else if (I1v!=null && I33!=null){if (I1v.nodeType==3 && I33.nodeType==3){var l2b=(""+I33.data+"").length; I33.appendData(I1v.data);parent.removeChild(I1v); lq.setStart(I33,l2b); lq.setEnd(I33,l2b); }else if (I33.nodeType==3){var l2b=(""+I33.data+"").length; lq.setStart(I33,l2b); lq.setEnd(I33,l2b); }else if (I1v.nodeType==3){lq.setStart(I1v,0); lq.setEnd(I1v,0); }else {if (I1v.childNodes.length>0){lq.setStart(I1v,0); lq.setEnd(I1v,0); }else {var l2b=HTMLEditor.o17(I1v); lq.setStart(parent,l2b); lq.setEnd(parent,l2b); }}}else if (I33!=null){if (I33.nodeType==3){var l2b=(""+I33.data+"").length; lq.setStart(I33,l2b); lq.setEnd(I33,l2b); }else {var l2b=I33.childNodes.length; if (l2b>0){lq.setStart(I33,l2b); lq.setEnd(I33,l2b); }else {l2b=HTMLEditor.o17(I33); lq.setStart(parent,l2b); lq.setEnd(parent,l2b); }}}else if (I1v!=null){if (I1v.nodeType==3){lq.setStart(I1v,0); lq.setEnd(I1v,0); }else {var l2b=I1v.childNodes.length; if (l2b>0){lq.setStart(I1v,l2b); lq.setEnd(I1v,l2b); }else {l2b=HTMLEditor.o17(I1v); lq.setStart(parent,l2b); lq.setEnd(parent,l2b); }}}X.l17(oq); X.i17(oq,lq); }} ,012); }else {var oq=X.Oq(); if (oq.type.toLowerCase()=="control"){if (ij.keyCode==8){setTimeout( function (){X.i1f(); X.O14(); } ,0); HTMLEditor._stopEvent(ij); return; }var i1g=X.iq(oq); var i4b=i1g.item(0); if (i4b.tagName.toUpperCase()=="EMBED"){i4b.src=window.location.href.replace(/(http[s]*:\/\/)[^\0]*/i,"$1"); i4b.parentNode.removeChild(i4b); while (i1g.length>0)i1g.remove(0); try {i1g.collapse( false); }catch (t){}HTMLEditor._stopEvent(ij); X.l10(); setTimeout( function (){X.I1e( false); X.O14(); } ,0); return; }}var O3b=X.I1.body.getElementsByTagName("EMBED").length; if (O3b>0){var popup=X.A.ownerDocument.createElement("div"); X.A.appendChild(popup); var I4b=ij.keyCode; setTimeout( function (){X.A.removeChild(popup); var o4c=X.I1.body.getElementsByTagName("EMBED"); if (O3b!=o4c.length){X.l10(); setTimeout( function (){X.I1e( false); X.O14(); } ,0); }} ,0); }setTimeout( function (){X.i10(); } ,5); break; }break; case 015:if (((HTMLEditor.is_Safari || HTMLEditor.I10) && ij.type=="keydown"))break; if ((!HTMLEditor.is_ie && ij.type=="keypress") || (HTMLEditor.is_ie && ij.type=="keydown"))this.l10(); if (HTMLEditor.is_ie && ij.type=="keydown"){var oq=X.Oq(); if (oq.type.toLowerCase()=="control")break; var i1g=X.iq(oq); if (!ij.shiftKey){var O4c=i1g.parentElement(); if (O4c.tagName.toUpperCase()=="TEXTAREA")break; while (O4c && O4c.tagName && O4c.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(O4c.tagName)){O4c=O4c.parentNode; }if (O4c && O4c.tagName && (O4c.tagName.toUpperCase()=="P" || O4c.tagName.toUpperCase()=="LI")){if (O4c.tagName.toUpperCase()=="LI"){function test(){i1g=X.iq(X.Oq()); 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 I49=X.I1.createElement("span"); var O17=X.I1.createTextNode(" "); var l3n=parent; while (l3n.firstChild!=null && l3n.firstChild.nodeType==1)l3n=l3n.firstChild; if (l3n.nodeType==1){l3n.appendChild(O17); l3n.appendChild(I49); while (parent.firstChild)parent.parentNode.insertBefore(parent.firstChild,parent); }else {parent.parentNode.insertBefore(O17,parent); parent.parentNode.insertBefore(I49,parent); }parent.parentNode.removeChild(parent); i1g.moveToElementText(I49); i1g.select(); I49.parentNode.removeChild(I49); X.O14(); }}setTimeout(test,024); }break; }try {var I3y=HTMLEditor.Il+"_middle_add"; var o3z=null; var O3z="<span id="+I3y+"></span>"; function l4c(){var oq=X.Oq(); var lq=X.iq(oq); if (o3z!=null){o3z.innerHTML="&nbsp;"; lq.moveToElementText(o3z); lq.select(); o3z.parentNode.insertBefore(o3z.firstChild,o3z); o3z.parentNode.removeChild(o3z); X.O14(); }}i1g.pasteHTML(O3z); var i4c= false; o3z=X.I1.getElementById(I3y); if (o3z!=null){var nextSibling=o3z.nextSibling; var I4c=o3z.parentNode; while (nextSibling==null && I4c!=null && HTMLEditor.O1j(I4c.tagName)){nextSibling=I4c.nextSibling; I4c=I4c.parentNode; }if (nextSibling!=null && !HTMLEditor.l3d(nextSibling) && nextSibling.tagName!=null && typeof nextSibling.tagName!="undefined"){var ll=nextSibling.tagName.toUpperCase(); if (ll!="BR" && ll!="UL" && ll!="OL" && ll!="P"){i4c= true; }}o3z.parentNode.removeChild(o3z); }i1g.pasteHTML("<br/>"+(i4c?O3z: "")); if (i4c)o3z=X.I1.getElementById(I3y); i1g.select(); if (i4c){setTimeout(l4c,0); HTMLEditor._stopEvent(ij); return false; }}catch (w){}}else {break; }HTMLEditor._stopEvent(ij); }else {if (!ij.shiftKey && (HTMLEditor.is_Safari || HTMLEditor.I10)){var O4c=HTMLEditor.getSelParent(this ); if (O4c.nodeType==3){O4c=O4c.parentNode; }while (O4c && O4c.tagName && O4c.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(O4c.tagName)){O4c=O4c.parentNode; }if (O4c && O4c.tagName && (O4c.tagName.toUpperCase()=="P" || O4c.tagName.toUpperCase()=="LI")){break; }var O3z="<br />"; if (HTMLEditor.I10){var oq=X.Oq(); var lq=X.iq(oq); if (lq.startContainer==lq.endContainer){if (lq.startContainer.nodeType==1){var o4d=lq.startContainer.childNodes.item(lq.startOffset); if (o4d.nodeType==1 && o4d.tagName.toUpperCase()=="BR"){O3z+="<br />"; }}else if (lq.startContainer.nodeType==3 && lq.startOffset==lq.endOffset && (lq.startContainer.data).length==lq.endOffset){O3z+="&nbsp;"; }}} this.O11(O3z); HTMLEditor._stopEvent(ij); if (HTMLEditor.I10){var oq=X.Oq(); var lq=X.iq(oq); if (lq.startContainer==lq.endContainer && lq.startContainer.nodeType==3 && lq.startOffset==lq.endOffset && (lq.startContainer.data).length==0){var O4d=lq.startContainer.previousSibling; lq.startContainer.parentNode.removeChild(lq.startContainer); X.l17(oq); lq=X.iq(); lq.setStart(O4d,0); lq.setEnd(O4d,1); X.i17(oq,lq); }}X.O14(); }else if (HTMLEditor.is_Safari){ this.O11("<br/>"); HTMLEditor._stopEvent(ij); X.O14(); }}break; }}else X.l47= false; if (HTMLEditor.is_ie && ij.type=="keypress" && !ij.ctrlKey){var o46=ij.keyCode; var l4d=X.Oq(); var i4d=X.iq(l4d); if (i4d.text.length>0){var I4d=String.fromCharCode(o46); var o4e=HTMLEditor.O4e(ij); var l4e=(ij.shiftKey && !o4e) || o4e; if (!l4e)I4d=I4d.toLowerCase(); var i4e=HTMLEditor.Il+"StyleForTyping"; var I4e=X.I1.getElementById(i4e); if (I4e!=null){I4d="<span id='"+i4e+"'></span>"+I4d+"<span id='"+i4e+i4e+"'></span>"; I4e.parentNode.removeChild(I4e); }i4d.pasteHTML(I4d); if (I4e!=null){X.o4f(i4e); I4e=X.I1.getElementById(i4e+i4e); I4e.parentNode.removeChild(I4e); }HTMLEditor._stopEvent(ij); X.O14(); return false; }}if (ij.type=="mouseup" || ij.type=="mousedown" || ij.type=="keydown"){var O4f= true; if (ij.type=="keydown" && !ij.ctrlKey){var o46=ij.keyCode; if ((o46>=060 && o46<=0132) || (o46==040) || (o46==0015) || (o46>=0272 && o46<=0336) || (o46>=0140 && o46<=0157)){if (X.M!=null){X.l40=[]; for (var l4f=0; l4f<X.M.length; l4f++){X.l40.push(X.M[l4f]); }var i4e=HTMLEditor.Il+"StyleForTyping"; var i4f= true; if (!HTMLEditor.is_ie)X.O11("<span id='"+i4e+"'></span>"); else {X.O11("<span id='"+i4e+"'>&nbsp;</span>"); var I4e=X.I1.getElementById(i4e); if (I4e && I4e.nextSibling && I4e.nextSibling.nodeType==3){i4f= false; var l4d=X.Oq(); var i4d=X.iq(l4d); i4d.moveToElementText(X.I1.getElementById(i4e)); i4d.select(); }else if (I4e)I4e.removeChild(I4e.firstChild); }if (i4f)setTimeout( function (){X.o4f(i4e); X.O14(); } ,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 (O4f || !HTMLEditor.is_ie){if (!X.I4f){if (X.o4g){clearTimeout(X.o4g); X.o4g=null; }X.O4g=3; function l4g(){try {if (HTMLEditor.is_ie){try {var lz=X.I1.selection; }catch (t){return false; }}if (HTMLEditor.is_ie)if (X.Oq().type=="None" && X.I1.queryCommandValue("backcolor")==0 && X.I1.queryCommandValue("forecolor")==0){X.O4g--; if (X.O4g>0){X.o4g=setTimeout(l4g,0144); return; }}X.I4f= true; X.updateToolbar(); X.I4f= false; X.o4g=null; if (!HTMLEditor.is_ie){X.focusEditor(); }}catch (t){}}X.o4g=setTimeout(l4g,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.Oq()); } ,0); if (!HTMLEditor.is_ie)setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); if (lq.startContainer.nodeType!=3 && lq.startContainer==lq.endContainer)if (lq.startOffset==lq.endOffset)if (lq.startContainer.childNodes.item(lq.startOffset))if (lq.startContainer.childNodes.item(lq.startOffset).nodeType==3){var I16=lq.startContainer.childNodes.item(lq.startOffset); oq.collapseToEnd(); X.l17(oq); oq=X.Oq(); lq=X.iq(oq); if (HTMLEditor.is_Safari){X.I13.type="Caret"; X.I13.focusNode=I16; X.I13.focusOffset=0; }else {lq.setStart(I16,0); lq.setEnd(I16,0); X.i17(oq,lq); }}} ,0144); if (!HTMLEditor.is_ie){var oq=X.Oq(); var lq=X.iq(oq); X.i4g=lq.startContainer; X.I4g=lq.startOffset; }setTimeout( function (){try {X.i1f(); }catch (t){}} ,0144); if (ij.type=="keydown"){if (X.o4h==null || typeof X.o4h=="undefined" || !X.o4h){X.o4h= true; setTimeout( function (){X.O14(); X.o4h= false; } ,012); }}return true; }catch (w){HTMLEditor._stopEvent(ij); return false; }} ; HTMLEditor.prototype.o4f= function (i4e){var X=this ; var Ik=X.I1.getElementById(i4e); if (Ik!=null){if (Ik.nextSibling && Ik.nextSibling.nodeType==3){var text=Ik.nextSibling; Ik.parentNode.removeChild(Ik); var O4h=(""+text.data+"").indexOf(" "); if (O4h>0)text.splitText(O4h); else if (O4h==0)text.splitText(1); if (X.l40!=null)for (var l4f=0; l4f<X.l40.length; l4f++)X.i3x(X.l40[l4f],[text], false); X.l40=null; var oq=X.Oq(); if (!HTMLEditor.is_ie){var lq=X.I1.createRange(); lq.setStart(text,text.length); lq.setEnd(text,text.length); X.l17(oq); X.i17(oq,lq); }else {var l3m=X.iq(oq); var I49=X.I1.createElement("span"); if (text.nextSibling)text.parentNode.insertBefore(I49,text.nextSibling); else text.parentNode.appendChild(I49); try {l3m.moveToElementText(I49); l3m.select(); }catch (t){}I49.parentNode.removeChild(I49); }}else Ik.parentNode.removeChild(Ik); }};HTMLEditor.prototype.O1f= function (){if (!this.isControl())return false; var oq=this.Oq(); var lq=this.iq(oq); var l1p; if (HTMLEditor.is_ie){l1p=lq.item(0); }else {l1p=lq.startContainer.childNodes.item(lq.startOffset); }if (l1p.tagName && l1p.tagName.toUpperCase()=="IMG" && l1p.getAttribute(HTMLEditor.Is) && l1p.getAttribute(HTMLEditor.Is).length>0){var l4h=this.ot(l1p); if (l4h!=null){if (HTMLEditor.is_ie){lq=this.I1.body.createControlRange(); lq.add(l4h); lq.select(); }else {try {var index=HTMLEditor.o17(l4h); oq.collapseToEnd(); this.l17(oq); lq=this.iq(oq); lq.setStart(l4h.parentNode,index); lq.setEnd(l4h.parentNode,index+1); this.i17(oq,lq); }catch (t){return true; }}return false; }return true; }return false; };HTMLEditor.prototype.i1f= function (){if (HTMLEditor.is_ie){try {var lz=this.I1.selection; }catch (t){return false; }}var X=this ; var i49=null; var Ik=HTMLEditor.getSelParent(X); while (Ik && (Ik.nodeType==3 || (Ik.tagName && Ik.tagName.toUpperCase()!="BODY"))){if (Ik.nodeType==3 || !Ik.tagName){Ik=Ik.parentNode; continue; }if (Ik.tagName.toUpperCase()=="TABLE" && Ik.getAttribute(HTMLEditor.is) && Ik.getAttribute(HTMLEditor.is)=="yes"){i49=Ik.rows.item(0).cells.item(0).firstChild; if (HTMLEditor.is_ie && i49.tagName.toUpperCase()=="P")i49=i49.firstChild; break; }Ik=Ik.parentNode; }if (i49!=null){var oq=X.Oq(); var lq=X.iq(oq); if (HTMLEditor.is_ie){lq=X.I1.body.createControlRange(); lq.add(i49); lq.select(); }else {try {oq.collapseToEnd(); X.l17(oq); lq=X.iq(oq); lq.setStart(i49.parentNode,0); lq.setEnd(i49.parentNode,1); X.i17(oq,lq); }catch (t){}}}};HTMLEditor.prototype.Oq= function (){if (HTMLEditor.is_ie){var oq=this.I1.selection; return oq; }else { this.focusEditor(); var oq; var lq; var Ik; oq=this._iframe.contentWindow.getSelection(); lq=this.iq(oq); Ik=lq.startContainer; try {while (Ik && Ik.nodeType){Ik=Ik.parentNode; }}catch (t){ this.l17(oq); lq=this.iq(oq); lq.setStart(this.i4g,this.I4g); lq.setEnd(this.i4g,this.I4g); this.i17(oq,lq); 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.ib)i4h.I4h=o4i.o4i; return i1g; }catch (t){var X=this ; if (!(HTMLEditor.is_Safari && !HTMLEditor.ib) && oq.rangeCount==0){return this.I1.createRange(); }if (HTMLEditor.is_Safari){try {if (oq.type=="None"){if (X.I13){if (X.I13.type=="Caret"){oq.setPosition(X.I13.focusNode,X.I13.focusOffset); }else {oq.setBaseAndExtent(X.I13.anchorNode,X.I13.anchorOffset,X.I13.focusNode,X.I13.focusOffset); }}else {oq.setPosition(this.I1.body.firstChild,0); }}if (oq.type=="Caret"){var i1g=X.I1.createRange(); if (!X.I13)X.I13=new Object(); X.I13.type="Caret"; i1g.setStart(oq.focusNode,oq.focusOffset); i1g.setEnd(oq.focusNode,oq.focusOffset); X.I13.focusNode=oq.focusNode; X.I13.focusOffset=oq.focusOffset; return i1g; }if (!X.I13)X.I13=new Object(); X.I13.type="Range"; var O4i=oq.anchorNode; var l4i=oq.anchorOffset; if (O4i.nodeType==1 && O4i.childNodes.length==0){O4i=O4i.parentNode; l4i=HTMLEditor.i3e(O4i,oq.anchorNode); }var i4i=oq.focusNode; var I4i=oq.focusOffset; if (i4i.nodeType==1 && i4i.childNodes.length==0){i4i=i4i.parentNode; I4i=HTMLEditor.i3e(i4i,oq.focusNode); }var o4j=X.I1.createRange(); o4j.setStart(O4i,l4i); o4j.collapse( true); var O4j=X.I1.createRange(); O4j.setStart(i4i,I4i); O4j.collapse( true); var l4j=o4j.compareBoundaryPoints(o4j.START_TO_END,O4j)<0; var i4j=l4j?O4i:i4i; var I4j=l4j?l4i:I4i; var o4k=l4j?i4i:O4i; var O4k=l4j?I4i:l4i; var i1g=X.I1.createRange(); i1g.setStart(i4j,I4j); i1g.setEnd(o4k,O4k); X.I13.focusNode=o4k; X.I13.focusOffset=O4k; X.I13.anchorNode=i4j; X.I13.anchorOffset=I4j; return i1g; }catch (t){X.I13=null; oq.setPosition(this.I1.body.firstChild,0); }}}}}} ; HTMLEditor.prototype.l4k=null; HTMLEditor.prototype.getFormat= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var oq=this.Oq(); var lq=this.iq(oq); var O24=HTMLEditor.Il+"_right"; var I24; if (HTMLEditor.is_ie){I24=lq.duplicate(); I24.setEndPoint("StartToEnd",lq); }else {I24=lq.cloneRange(); I24.setStart(I24.endContainer,I24.endOffset); }if (this.O11("<span id='"+O24+"'/>",I24)){var I1a=this.I1.getElementById(O24); var par=I1a.parentNode; this.l4k=null; while (par && par.tagName.toUpperCase()!="BODY" && HTMLEditor.O1j(par.tagName)){if (par.tagName.toUpperCase()!="A"){var Ok=par.cloneNode( false); if (this.l4k==null){ this.l4k=Ok; }else {Ok.appendChild(this.l4k); this.l4k=Ok; }}par=par.parentNode; }I1a.parentNode.removeChild(I1a); if (this.l4k){var o3m=this.I1.createElement("span"); o3m.appendChild(this.l4k); this.l4k=o3m.innerHTML; }}};HTMLEditor.prototype.applyFormat= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; var X=this ; if (this.l4k==null){setTimeout( function (){alert(X.Of("copy-format","Copy Format.")); } ,0); return; }var o3m=this.I1.createElement("span"); o3m.innerHTML=this.l4k; var i1b=this.I1b(); if (i1b.length==0){setTimeout( function (){alert(X.Of("select-text","Select some text.")); } ,0); delete o3m; return; } this.l10(); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var i4k=o3m.firstChild.cloneNode( true); var o27=i4k; while (o27.firstChild)o27=o27.firstChild; par.insertBefore(i4k,i1b[i]); o27.appendChild(i1b[i]); } this.l1j(i1b); delete o3m; this.O1.setTimeout( function (){X.O14(); X.focusEditor(); X.updateToolbar(); } ,HTMLEditor.is_ie?0: 024); };HTMLEditor.prototype.I1b= function (I4k){try {var o4l=[]; if (this.isControl())return o4l; var oq=this.Oq(); var lq=this.iq(oq); var O24=HTMLEditor.Il+"_right"; var l24=HTMLEditor.Il+"_left"; var i24=null; var I24=null; var O4l; if (typeof I4k=="undefined"){if (HTMLEditor.is_ie){i24=lq.duplicate(); I24=lq.duplicate(); i24.setEndPoint("EndToStart",lq); I24.setEndPoint("StartToEnd",lq); }else {i24=lq.cloneRange(); I24=lq.cloneRange(); i24.setEnd(i24.startContainer,i24.startOffset); I24.setStart(I24.endContainer,I24.endOffset); O4l=i24.endOffset; }if (!this.O11("<span id='"+O24+"'/>",I24))return o4l; {if (HTMLEditor.I10){i24.setEnd(i24.startContainer,O4l); i24.setStart(i24.startContainer,O4l); }if (!this.O11("<span id='"+l24+"'/>",i24)){var o25=this.I1.getElementById(O24); if (o25!=null){Ok=o25.parentNode; Ok.removeChild(o25); }var l4l=this.I1.getElementById(i4l); if (l4l!=null){Ok=l4l.parentNode; Ok.removeChild(l4l); }return o4l; }}}else {var span; span=this.I1.createElement("SPAN"); span.id=O24; this.I1.body.appendChild(span); span=this.I1.createElement("SPAN"); span.id=l24; this.I1.body.insertBefore(span,this.I1.body.firstChild); }var i1a=this.I1.getElementById(l24); var I1a=this.I1.getElementById(O24); if (i1a==null || I1a==null){var Ok; if (i1a!=null){Ok=i1a.parentNode; Ok.removeChild(i1a); }if (I1a!=null){Ok=I1a.parentNode; Ok.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 o43= false; var X=this ; function I4l(o4m,Om){while (o4m){if (o4m.id && o4m.id==O24){o43= true; return; }if (o4m.nodeType==3){while (o4m.nextSibling && (o4m.nextSibling.nodeType==3 || (!HTMLEditor.is_ie && X.o3y!=null && X.o3y[0]==o4m.nextSibling))){if (o4m.nextSibling.nodeType==3)o4m.data=""+o4m.data+""+o4m.nextSibling.data+""; else {X.o3y[0]=o4m; X.o3y[1]=(""+o4m.data+"").length; }o4m.parentNode.removeChild(o4m.nextSibling); }if (HTMLEditor.i12(""+o4m.data+"").length>0)o4l.push(o4m); }else {if (!(o4m.tagName && (o4m.tagName.toUpperCase()=="MAP" || o4m.tagName.toUpperCase()=="AREA")))if (!(o4m.tagName && (o4m.tagName.toUpperCase()=="SCRIPT" || o4m.tagName.toUpperCase()=="NOSCRIPT")))if (!(o4m.style && (iy(o4m,"display")=="none" || iy(o4m,"visibility")=="hidden")))I4l(o4m.firstChild, false); }if (o43)return; var O38=o4m.parentNode; if (Om)while (o4m.nextSibling==null){o4m=o4m.parentNode; }o4m=o4m.nextSibling; }}I4l(i1a, true); var Ok; Ok=i1a.parentNode; Ok.removeChild(i1a); Ok=I1a.parentNode; Ok.removeChild(I1a); if (typeof I4k=="undefined"){if (HTMLEditor.is_ie){oq.empty(); I24.select(); }else {if (o4l.length>0){ this.l17(oq); var iz=this.iq(); iz.setEnd(o4l[o4l.length-1],o4l[o4l.length-1].length); iz.setStart(o4l[o4l.length-1],o4l[o4l.length-1].length); this.i17(oq,iz); }}}return o4l; }catch (t){alert("_getTextNodeCollection: "+t.message); return []; }} ; HTMLEditor.prototype.Iq= function (lq){if (HTMLEditor.is_ie)return lq.parentElement(); else {return lq.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 (O4m,param){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.iq(this.Oq()); this.l10(); this.i1i(O4m, false ,param); return true; };HTMLEditor.prototype.QueryCommand= function (O4m){if (this.mode()!="html")return false; switch (O4m.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.i23(O4m); case "formatblock":var l16=this.l4m(); if (l16==null)return ""; var Ik=l16.start; while (Ik && Ik.tagName && Ik.tagName.toUpperCase()!="BODY" && Ik.tagName.toUpperCase()!="TD"){if (/^h\d$/i.test(Ik.tagName))return Ik.tagName; Ik=Ik.parentNode; }return ""; }return this.I1.queryCommandValue(O4m); };HTMLEditor.prototype.i1i= function (O4m,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 lq; if (HTMLEditor.is_ie && !this.isControl()){oq=this.Oq(); lq=this.iq(oq); var O4c=lq.parentElement(); if (O4c.tagName.toUpperCase()=="TEXTAREA")return; }try {if (O4m.toLowerCase()!="createlink")this.l10(); if (HTMLEditor.is_Safari){oq=this.Oq(); }switch (O4m.toLowerCase()){case "createlink":if (HTMLEditor.is_ie || !UI){ this.I1.execCommand(O4m,UI,param); }else {if ((param=prompt("Enter URL"))){ this.I1.execCommand(O4m, false ,param); }}break; case "backcolor":case "forecolor":case "fontname":case "fontsize": this.I3w(O4m.toLowerCase(),param); break; case "indent": this.i3v( true); break; case "outdent": this.i3v( false); break; case "justifyleft": this.I3o("left"); break; case "justifyfull": this.I3o("justify"); break; case "justifycenter": this.I3o("center"); break; case "justifyright": this.I3o("right"); break; case "paragraph": this.I3o("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.I3o("remain", false ,param); break; }} this.I1.execCommand(O4m,UI,param); break; case "insertunorderedlist": this.o3t("UL"); break; case "insertorderedlist": this.o3t("OL"); break; case "bold":case "italic":case "underline":case "strikethrough":case "superscript":case "subscript": this.I3w(O4m.toLowerCase()); break; default: this.I1.execCommand(O4m,UI,param); break; } this.O14(); if (!HTMLEditor.is_ie){oq=this.Oq(); lq=this.iq(oq); this.l17(oq); if (HTMLEditor.I10)setTimeout( function (){X.f= true; X.focusEditor(); X.i17(oq,lq); } ,0); this.i17(oq,lq); this.focusEditor(); }var X=this ; setTimeout( function (){X.updateToolbar(); } ,0); }catch (t){alert("_execCommand: "+t.message); }} ; HTMLEditor.prototype.l17= function (oq){if (!HTMLEditor.is_Safari)oq.removeAllRanges(); };HTMLEditor.prototype.i17= function (oq,lq,Om){if (!HTMLEditor.is_Safari)oq.addRange(lq); else {if (lq.startContainer==lq.endContainer && lq.startOffset==lq.endOffset){oq.setPosition(lq.startContainer,lq.startOffset); }else oq.setBaseAndExtent(lq.startContainer,lq.startOffset,lq.endContainer,lq.endOffset); }if (typeof Om=="undefined")if (HTMLEditor.I10 && this.f)this._iframe.blur(); this.focusEditor(); };HTMLEditor.prototype.i4m= function (value){if (this.isControl())return false; var lq=this.iq(this.Oq()); var I4m=lq.duplicate(); var o4n=lq.duplicate(); I4m.setEndPoint("StartToStart",lq); I4m.setEndPoint("EndToStart",lq); o4n.setEndPoint("StartToEnd",lq); o4n.setEndPoint("EndToEnd",lq); var O4n=I4m.parentElement(); var l4n=o4n.parentElement(); if (O4n.parentNode!=l4n.parentNode || HTMLEditor.i4n(O4n)){function I4n(Ik){var lg=[]; while (Ik!=null){lg.push(Ik); Ik=Ik.parentNode; }lg.reverse(); return lg; } ; var o4o=I4n(O4n.parentNode); var O4o=I4n(l4n.parentNode); var i=0; while (o4o[i]==O4o[i])i++; O4n=o4o[i]; l4n=O4o[i]; if (HTMLEditor.i4n(O4n)){while (HTMLEditor.i4n(O4n)){i--; O4n=o4o[i]; }l4n=O4n; }}var ic=O4n; if (!ic)return false; if (!this.rtlState()){ do {var l4o=ic.style.marginLeft?parseInt(ic.style.marginLeft): 0; l4o=l4o+value; if (l4o<=0)ic.style.marginLeft=""; else ic.style.marginLeft=l4o+"px"; if (ic==l4n)break; ic=ic.nextSibling; }while (ic);}else { do {var l4o=ic.style.marginRight?parseInt(ic.style.marginRight): 0; l4o=l4o+value; if (l4o<=0)ic.style.marginRight=""; else ic.style.marginRight=l4o+"px"; if (ic==l4n)break; ic=ic.nextSibling; }while (ic);}return true; };HTMLEditor.i4n= function (Ik){if (!Ik)return false; if (!Ik.tagName)return false; var name=Ik.tagName.toUpperCase(); switch (name){case "TD":case "TR":case "TBODY":case "LI":return true; default:return false; }};HTMLEditor.prototype.O1h= function (O4m){var l16=this.l4m(); if (l16==null)return false; try {var O3x= {name: "none",value: "none" } ; switch (O4m.toLowerCase()){case "bold":O3x= {name: "font-weight",value: "bold" } ; break; case "italic":O3x= {name: "font-style",value: "italic" } ; break; case "underline":O3x= {name: "text-decoration",value: "underline" } ; break; case "strikethrough":O3x= {name: "text-decoration",value: "line-through" } ; break; case "superscript":O3x= {name: "vertical-align",value: "super" } ; break; case "subscript":O3x= {name: "vertical-align",value: "sub" } ; break; }var l1z=l16.start; var i4o=l16.end; var I4o=HTMLEditor.iy(l1z,O3x.name).toString().toLowerCase(); var o4p=HTMLEditor.iy(i4o,O3x.name).toString().toLowerCase(); if (O3x.name=="font-weight" && I4o=="700")I4o="bold"; if (O3x.name=="font-weight" && o4p=="700")o4p="bold"; if (/MSIE (5|6)/.test(navigator.userAgent) && O4m.toLowerCase()=="strikethrough" && (I4o=="underline" || o4p=="underline")){while (l1z && HTMLEditor.O1j(l1z.tagName)){if (l1z.style.textDecoration.indexOf("line-through")>=0){I4o=l1z.style.textDecoration; break; }l1z=l1z.parentNode; }while (i4o && HTMLEditor.O1j(i4o.tagName)){if (i4o.style.textDecoration.indexOf("line-through")>=0){o4p=i4o.style.textDecoration; break; }i4o=i4o.parentNode; }}var le=(I4o.indexOf(O3x.value)>=0) && (o4p.indexOf(O3x.value)>=0); if (this.M!=null && this.M.length>0){for (var i=0; i<this.M.length; i++){var O4p=this.M[i]; if (O4p.name==O3x.name && O4p.value==O3x.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 Ik=document.getElementById(o1k); if (Ik!=null){Ik=Ik.childNodes.item(1); var i; for (i=0; i<Ik.options.length; i++){var O16=HTMLEditor.i1k(Ik.options.item(i).value.toLowerCase().split(",")[0]); if (O16==ie)break; }if (i==Ik.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 (O4m,o1k){var l16=this.l4m(); if (l16==null)return ""; try {if (O4m.toLowerCase()=="backcolor"){var Ik=l16.start; while (Ik){var l4p=HTMLEditor.iy(Ik,"background-color").toLowerCase(); if (l4p.length>0 && l4p!="transparent")return l4p; Ik=Ik.parentNode; }return "#FFFFFF"; }var O3x="none"; switch (O4m.toLowerCase()){case "forecolor":O3x="color"; break; case "fontname":O3x="font-family"; break; case "fontsize":O3x="font-size"; break; }var le; if ((O3x=="font-size" || O3x=="font-family") && this._FontNotSet){le=""; var par=l16.start; while (par!=null){if (O3x=="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(l16.start,O3x).toLowerCase(); if (O3x=="font-size"){if (!HTMLEditor.is_ie){le=HTMLEditor.l1l(le,this,o1k); var par=l16.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 O4p=this.M[i]; if (O4p.name==O3x){le=O4p.value; break; }}}return le; }catch (w){return ""; }} ; HTMLEditor.prototype.l4m= function (){if (this.isControl())return null; try {var oq=this.Oq(); var lq=this.iq(oq); var l1z=null; var i4o=null; if (!HTMLEditor.is_ie){function i4p(par,o26){var le=null; while (le==null){if (par.nodeType==3){if (o26 && lq.startContainer!=lq.endContainer && lq.startOffset==par.length && par.nextSibling){le=i4p(par.nextSibling,o26); }else if (!o26 && lq.startContainer!=lq.endContainer && lq.endOffset==0 && par.previousSibling){le=i4p(par.previousSibling,o26); }else le=par; }else {if ((o26?par.firstChild:par.lastChild)==null)le=null; else le=i4p(o26?par.firstChild:par.lastChild,o26); }if (le==null){par=o26?par.nextSibling:par.previousSibling; if (par==null)return null; }else return le; }}l1z=i4p(lq.startContainer, true); if (l1z!=null && l1z.parentNode!=null)l1z=l1z.parentNode; if (l1z==null)l1z=lq.startContainer; i4o=i4p(lq.endContainer, false); if (i4o!=null && i4o.parentNode!=null)i4o=i4o.parentNode; if (i4o==null)i4o=lq.endContainer; }else {if (lq.text.length==0)l1z=i4o=this.Iq(lq); else {var O24=HTMLEditor.Il+"_right_marker"; var l24=HTMLEditor.Il+"_left_marker"; var i24=lq.duplicate(); var I24=lq.duplicate(); i24.setEndPoint("EndToStart",lq); I24.setEndPoint("StartToEnd",lq); I24.pasteHTML("<span id='"+O24+"'/>"); i24.pasteHTML("<span id='"+l24+"'/>"); var i1a=this.I1.getElementById(l24); var I1a=this.I1.getElementById(O24); l1z=i1a.parentNode; i4o=I1a.parentNode; i1a.parentNode.removeChild(i1a); I1a.parentNode.removeChild(I1a); }}return {start:l1z,end:i4o } ; }catch (w){return null; }};HTMLEditor.prototype.I4p= function (o4q,lq){if (!HTMLEditor.is_ie){var oq=this.Oq(); if (typeof lq=="undefined"){try {lq=this.iq(oq); }catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); this.l17(oq); return false; }}var o2g=lq.startContainer; var O4q=lq.startOffset; if (o2g.ownerDocument.id!="EditorDocument"){alert(this.Of("click-to-editor","Click to editing panel.")); return false; }if ((lq.startContainer.nodeType==1 && lq.startContainer.tagName.toUpperCase()=="TR") || (lq.endContainer.nodeType==1 && lq.endContainer.tagName.toUpperCase()=="TR")){var X=this ; setTimeout( function (){alert(X.Of("paste-fail","Not correct selection for inserting.")); } ,0); return false; } this.l17(oq); lq.deleteContents(); try {lq=this.iq(); }catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); this.l17(oq); return false; }switch (o2g.nodeType){case 3:if (O4q>0)o2g=o2g.splitText(O4q); while (o4q.firstChild)o2g.parentNode.insertBefore(o4q.firstChild,o2g); lq.setStart(o2g,0); lq.setEnd(o2g,0); break; case 1:case 013:try { this.l17(oq); if (o2g.childNodes.length>=O4q+1){o2g=o2g.childNodes.item(O4q); while (o4q.firstChild)o2g.parentNode.insertBefore(o4q.firstChild,o2g); var O17=this.I1.createTextNode(""); o2g.parentNode.insertBefore(O17,o2g); o2g=O17; }else {var O17=this.I1.createTextNode(""); if (HTMLEditor.canHaveChildren(o2g)){while (o4q.firstChild)o2g.appendChild(o4q.firstChild); o2g.appendChild(O17); }else {while (o4q.firstChild)o2g.parentNode.insertBefore(o4q.firstChild,o2g); o2g.parentNode.insertBefore(O17,o2g); }o2g=O17; }if (o2g.nodeType==1){var par=o2g.parentNode; var I16=par; var oh=0; for ( ; oh<par.childNodes.length; oh++)if (o2g==par.childNodes.item(oh))break; lq.setStart(par,oh); lq.setEnd(par,oh); }else {lq.setStart(o2g,0); lq.setEnd(o2g,0); }}catch (ij){alert(this.Of("click-to-editor","Click to editing panel.")); this.l17(oq); return false; }break; }if (HTMLEditor.I10)this.f= true; this.i17(oq,lq); return true; }else {return null; }} ; HTMLEditor.prototype.O11= function (html,lq){ this.focusEditor(); var oq=this.Oq(); if (typeof lq=="undefined"){lq=this.iq(oq); }if (HTMLEditor.is_ie){function I2u(i2a,o23){return "\x3cspan class=\""+HTMLEditor.Il+"_script\" style=\'display:none;visibility:hidden;\'>"+o23.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function l2v(i2a,o23,O23,i2v){return o23.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var l4q="\x3cspan id=\""+HTMLEditor.Il+"\">111\x3cspan>\x3c/span>"+html+"</span>"; var l11=HTMLEditor.i11(l4q); var I11=HTMLEditor.o12(l4q); if (!this.NoScript)l4q=l4q.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,I2u); else l4q=l4q.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); var X=this ; try {if (lq.pasteHTML){lq.pasteHTML(l4q); }else {var div=this.I1.createElement("DIV"); div.innerHTML=l4q; while (div.firstChild)lq(0).parentNode.insertBefore(div.firstChild,lq(0)); lq(0).parentNode.removeChild(lq(0)); lq.remove(0); delete div; }}catch (t){setTimeout( function (){alert(X.Of("paste-fail","Not correct selection for inserting.")); } ,0144); return false; }var l2z=this.I1.getElementById(HTMLEditor.Il); l2z.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(l2z, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.Il+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),l2v)+"<span>qqq</span>"; l2z.removeChild(l2z.firstChild); l2z.removeChild(l2z.lastChild); HTMLEditor.O12(l2z,l11); HTMLEditor.l12(l2z,I11); if (l2z.firstChild)l2z.removeChild(l2z.firstChild); if (l2z.firstChild)l2z.removeChild(l2z.firstChild); while (l2z.firstChild)l2z.parentNode.insertBefore(l2z.firstChild,l2z); l2z.parentNode.removeChild(l2z); delete l2z; return true; }else {var div=this.I1.createElement("div"); div.innerHTML=html; var o1w=div.getElementsByTagName("EMBED"); var l31=[]; for (var i=0; i<o1w.length; i++)l31.push(o1w[i]); for (var oh=0; oh<l31.length; oh++){var embed=l31[oh]; var img=document.createElement("IMG"); var o30=embed.attributes; img.src=this.P[1]; img.setAttribute("dummytag","embed"); for (var i=0; i<o30.length; ++i){var a=o30.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.I4p(div,lq); 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.i4q=[]; HTMLEditor.I4q=null; HTMLEditor.l1e=null; HTMLEditor.o4r= function (){for (var i=0; i<HTMLEditor.i4q.length; i++){HTMLEditor.i4q[i](); }HTMLEditor.i4q=[]; };HTMLEditor.O4r= function (t){function l4r(){setTimeout( function (){HTMLEditor.o4r(); } ,0); HTMLEditor.l1e=null; if (HTMLEditor.I4q!=null){HTMLEditor.Ic(document.getElementById(HTMLEditor.I4q),"mousedown",HTMLEditor.O4r); HTMLEditor.i18(HTMLEditor.I4q.substr(0,HTMLEditor.I4q.length-("__disabling").length)); }HTMLEditor.I4q=null; }if (HTMLEditor.l1e){try {if (HTMLEditor.l1e.name!="OboutEditorPreview"){l4r(); }else {setTimeout( function (){try {HTMLEditor.l1e.focus(); }catch (t){}} ,0); if (typeof t!=undefined)HTMLEditor._stopEvent(t); return false; }}catch (t){l4r(); }}else l4r(); return true; };HTMLEditor.i4r= function (){if (!HTMLEditor.O4r())setTimeout(HTMLEditor.i4r,01750); else window.focus(); };HTMLEditor.prototype.I4r= function (o4s){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.I4q=HTMLEditor.i14(X.mainDivId); if (HTMLEditor.I4q!=null)HTMLEditor.lk(document.getElementById(HTMLEditor.I4q),"mousedown",HTMLEditor.O4r); function O4s(){try {if (!HTMLEditor.l1e.document)setTimeout(O4s,0144); HTMLEditor.l1e.focus(); }catch (t){HTMLEditor.l1e.close(); HTMLEditor.l1e=null; if (HTMLEditor.I4q!=null){HTMLEditor.Ic(document.getElementById(HTMLEditor.I4q),"mousedown",HTMLEditor.O4r); HTMLEditor.i18(HTMLEditor.I4q.substr(0,HTMLEditor.I4q.length-("__disabling").length)); }HTMLEditor.I4q=null; X.I4r(o4s); }ox=HTMLEditor.l1e.document; ox.open(); var html=new I2a(); var o2a=o4s; var O2a= false; function l2a(i2a,o23,O23){o2a=O23; O2a= true; }o4s.replace(/<body([^>]*?)>([^\0]*?)<\/body(?:[^>]*?)>/gi,l2a); o4s=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: "")+">"); var l4s=new RegExp("<title>","gi"); if (X.D==null || !l4s.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 o2b=0; o2b<X._addCssFiles.length; o2b++){html.write("\x3clink rel=\"stylesheet\" href=\""+X._addCssFiles[o2b]+"\" 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(o4s); html.write("</body>"); html.write("</html>"); ox.write(html.toString()); ox.close(); setTimeout(HTMLEditor.i4r,0454); HTMLEditor.i4q.push( function (){X.focusEditor(); } ); }setTimeout(O4s,0); };HTMLEditor.prototype.preview= function (){var X=this ; if (HTMLEditor.l1e)return; X.getContentWait( function (o4s){X.I4r(o4s); } ); };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 (i4s,I4s){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.iq(this.Oq()); var html=""; var oq=this.Oq(); var lq=this.iq(oq); if (HTMLEditor.is_ie && oq.type.toLowerCase()=="control"){ this.l10(); html=lq.item(0).outerHTML; return this.InsertHTML(i4s+html+I4s); }html=this.O1b(); if (html.length==0){return false; }var i1b=this.I1b(); if (i1b.length<1)return false; this.l10(); var I49=this.I1.createElement("span"); var o4a=this.I1.createElement("span"); var o4t=i1b[0].parentNode; var O4t=i1b[i1b.length-1].parentNode; o4t.insertBefore(I49,i1b[0]); if (i1b[i1b.length-1].nextSibling)O4t.insertBefore(o4a,i1b[i1b.length-1].nextSibling); else O4t.appendChild(o4a); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var Ok=this.I1.createElement("SPAN"); try {function I2u(i2a,o23){return "\x3cspan class=\""+HTMLEditor.Il+"_script\" style=\'display:none;visibility:hidden;\'>"+o23.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</span>"; }function l2v(i2a,o23,O23,i2v){return o23.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"); }var l4q=i4s+(""+i1b[i].data+"").replace(/^\s/,"&nbsp;")+I4s; var l11; if (HTMLEditor.is_ie){l11=HTMLEditor.i11(l4q); if (!this.NoScript)l4q=l4q.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,I2u); else l4q=l4q.replace(/(<script(?:[^>]*?)>.*?<\/script(?:[^>]*?)>)/gi,""); }Ok.innerHTML="!!!<span></span>"+l4q; Ok.removeChild(Ok.firstChild); Ok.removeChild(Ok.firstChild); if (HTMLEditor.is_ie){Ok.innerHTML="<span>qqq</span>"+HTMLEditor.getHTML(Ok, false , true).replace(new RegExp("<span(?:[^>]*?)class="+HTMLEditor.Il+"_script(?:[^>]*?)>(.*?)</span(?:[^>]*?)>","gi"),l2v)+"<span>qqq</span>"; Ok.removeChild(Ok.firstChild); Ok.removeChild(Ok.lastChild); HTMLEditor.O12(Ok,l11); }while (Ok.firstChild)par.insertBefore(Ok.firstChild,i1b[i]); par.removeChild(i1b[i]); }catch (t){return false; }}if (!HTMLEditor.is_ie){i1b=[]; var o43= false; function I4l(o4m,Om){while (o4m){if (o4m==o4a){o43= true; return; }if (o4m.nodeType==3){while (o4m.nextSibling && o4m.nextSibling.nodeType==3){o4m.data=""+o4m.data+""+o4m.nextSibling.data+""; o4m.parentNode.removeChild(o4m.nextSibling); }if (HTMLEditor.i12(""+o4m.data+"").length>0)i1b.push(o4m); }else I4l(o4m.firstChild, false); if (o43)return; var O38=o4m.parentNode; if (Om)while (o4m.nextSibling==null){o4m=o4m.parentNode; }o4m=o4m.nextSibling; }}I4l(I49, true); lq=this.I1.createRange(); lq.setStart(i1b[0],0); lq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.l17(oq); if (HTMLEditor.I10)this.f= true; this.i17(oq,lq); }else {oq=this.Oq(); var l3m=this.iq(oq); var i3m=this.iq(oq); try {l3m.moveToElementText(I49); i3m.moveToElementText(o4a); l3m.setEndPoint("EndToEnd",i3m); l3m.select(); }catch (t){}}o4t.removeChild(I49); O4t.removeChild(o4a); this.O14(); return true; } ; HTMLEditor.prototype.InsertHTML= function (html){if (this.mode()!="html")return false; if (HTMLEditor.is_Safari)this.iq(this.Oq()); var l4t= false; var div=this.I1.createElement("div"); var l11; if (HTMLEditor.is_ie){l11=HTMLEditor.i11(html); }div.innerHTML=html; for (var i=0; i<div.childNodes.length; i++){var Ik=div.childNodes.item(i); if (Ik.nodeType==1 && !HTMLEditor.l34(Ik))l4t= true; } this.l10(); if (HTMLEditor.is_ie){var oq=this.Oq(); var lq=this.iq(oq); if (oq.type.toLowerCase()=="control"){var l16=lq.item(0); var parent=l16.parentNode; lq.remove(0); parent.removeChild(l16); }}if (l4t){var o1z=this.O1z(); if (!o1z){ this.I1e( false); return false; }var parent=o1z.parentNode; if (HTMLEditor.is_ie){HTMLEditor.O12(div,l11); }while (div.firstChild)parent.insertBefore(div.firstChild,o1z); parent.removeChild(o1z); this.O14(); return true; }else {var le=this.O11(html); if (!le){ this.I1e( false); } this.O14(); return le; }};HTMLEditor.prototype.O1b= function (){var oq=this.Oq(); var lq=this.iq(oq); var i4t=null; if (HTMLEditor.is_ie){i4t=lq.htmlText; }else {if (HTMLEditor.is_Safari && (oq.type=="Caret" || oq.type=="None"))i4t=""; else {if (HTMLEditor.is_Safari){if (lq.cloneContents()==null)return ""; }i4t=HTMLEditor.getHTML(lq.cloneContents(), false); }}return i4t; } ; HTMLEditor.O27= function (l1p,ox,I4t,o4u,O4u){if (HTMLEditor.is_Safari)return; var l4u=0; var i4u=l1p.childNodes.length; if (typeof I4t!="undefined" && I4t!=null)l4u=I4t; if (typeof o4u!="undefined" && o4u!=null)i4u=o4u; for (var i=l4u; i<i4u && i<l1p.childNodes.length; i++){var i1v=l1p.childNodes.item(i);if (i1v.parentNode!=l1p){continue; }switch (i1v.nodeType){case 1:if (i1v.childNodes.length==0 && HTMLEditor.O1j(i1v.tagName) && i1v.tagName.toUpperCase()!="A" && !(i1v.className.length>0 || (i1v.getAttribute("class") && i1v.getAttribute("class").length>0)) && !HTMLEditor.l3b(i1v)){l1p.removeChild(i1v); i--; i4u--; continue; }if (i1v.tagName.toUpperCase()=="SPAN"){while (i1v.childNodes.length==1 && i1v.firstChild.nodeType==1){if (i1v.firstChild.tagName.toUpperCase()=="SPAN" && !HTMLEditor.l3b(i1v.firstChild)){var o30=HTMLEditor.o3c(i1v.firstChild,[]); var I4u=HTMLEditor.o4v(i1v.firstChild); var O4v=i1v.firstChild; var l4v=O4v.childNodes; while (O4v.firstChild!=null){i1v.insertBefore(O4v.firstChild,O4v); }for (var oh=0; oh<I4u.length; oh++){if (I4u[oh][1]){try {if (i1v.style[I4u[oh][0]]){if (I4u[oh][0].toLowerCase().indexOf("color")>=0){i1v.style[I4u[oh][0]]=I4u[oh][1]; }else {try {var I18=i1v.style[I4u[oh][0]]; i1v.style[I4u[oh][0]]=i1v.style[I4u[oh][0]]+" "+I4u[oh][1]; if (I18==i1v.style[I4u[oh][0]]){i1v.style[I4u[oh][0]]=I4u[oh][1]; }}catch (t){i1v.style[I4u[oh][0]]=I4u[oh][1]; }}}else i1v.style[I4u[oh][0]]=I4u[oh][1]; }catch (i4v){}}}for (var oh=0; oh<o30.length; oh++){if (o30[oh][1])i1v.setAttribute(o30[oh][0],o30[oh][1]); }i1v.removeChild(O4v); continue; }else if (i1v.firstChild.tagName.toUpperCase()=="SPAN" && HTMLEditor.l3b(i1v.firstChild)){var o2a=i1v.firstChild; i1v.parentNode.insertBefore(i1v.firstChild,i1v); i1v.parentNode.removeChild(i1v); i1v=o2a; }break; }var I4v=[]; var o4w=i1v.nextSibling; while (!HTMLEditor.l3b(i1v) && o4w && i+1<i4u && (o4w.nodeType==3 || (o4w.nodeType==1 && (o4w.tagName.toUpperCase()=="SPAN" || (o4w.tagName.toUpperCase()=="BR") && typeof O4u=="undefined") && !HTMLEditor.l3b(o4w)))){if (o4w.nodeType==3){if ((""+o4w.data+"").length==0){o4w.parentNode.removeChild(o4w); o4w=i1v.nextSibling; i4u--; }else {break; }}else {if (o4w.tagName.toUpperCase()=="BR"){I4v.push(o4w); o4w=o4w.nextSibling; }else {var o30=HTMLEditor.o3c(i1v,[],o4w); var I4u=HTMLEditor.o4v(i1v,o4w); if (o30.length==0 && I4u.length==0 && i1v.className==o4w.className){var i38=I4v.length; for (var oh=0; oh<i38; oh++){i1v.appendChild(I4v[oh]); i4u--; }I4v=[]; while (o4w.firstChild)i1v.appendChild(o4w.firstChild); o4w.parentNode.removeChild(o4w); o4w=i1v.nextSibling; i4u--; }else break; }}}if (!HTMLEditor.l3b(i1v) && i1v.className.length==0){var o30=HTMLEditor.o3c(i1v,[]); var I4u=HTMLEditor.o4v(i1v); if (o30.length==0 && I4u.length==0){i--; i4u--; while (i1v.firstChild){i1v.parentNode.insertBefore(i1v.firstChild,i1v); i4u++; }i1v.parentNode.removeChild(i1v); continue; }}}if (i1v.parentNode!=null)if (i1v.childNodes.length==0 && HTMLEditor.O1j(i1v.tagName) && i1v.tagName.toUpperCase()!="A" && !(i1v.className.length>0 || (i1v.getAttribute("class") && i1v.getAttribute("class").length>0)) && !HTMLEditor.l3b(i1v)){l1p.removeChild(i1v); i--; i4u--; continue; }else HTMLEditor.O27(i1v,ox); break; }}};HTMLEditor.O4w= function (l1p,i16){var count=0; if (l1p.attributes)for (var i=0; i<l1p.attributes.length; i++){var O2f=l1p.attributes[i]; if (O2f.name.toUpperCase()=="STYLE")continue; if (O2f.name.toUpperCase()=="CLASS" && i16)continue; if (O2f.specified)count++; }return count; };HTMLEditor.o3c= function (l1p,i16,l4w){var I1w=[]; var parent=l1p.parentNode; if (typeof l4w!="undefined")parent=l4w; if (!parent || !parent.tagName || !HTMLEditor.O1j(parent.tagName))parent=null; if (l1p.attributes)for (var i=0; i<l1p.attributes.length; i++){var O2f=l1p.attributes[i]; var i4w= false; for (var oh=0; oh<i16.length; oh++)if (O2f.name.toUpperCase()==i16[oh].toUpperCase()){i4w= true; break; }if (i4w)continue; if (O2f.name.toUpperCase()=="STYLE")continue; if (O2f.name.toUpperCase().substr(0,4)=="_MOZ")continue; if (O2f.specified)if (parent && parent.attributes && parent.attributes[O2f.name]){var I4w=parent.attributes[O2f.name]; if (I4w){if (O2f.name!=I4w.name || O2f.value!=I4w.value){I1w.push([O2f.name,O2f.value]); }}}else {if (O2f.name.toUpperCase()=="CLASS" && O2f.value=="")continue; I1w.push([O2f.name,O2f.value]); }}return I1w; };HTMLEditor.o4v= function (l1p,l4w){var I1w=[]; var parent=l1p.parentNode; if (typeof l4w!="undefined")parent=l4w; if (!parent || !parent.tagName || !HTMLEditor.O1j(parent.tagName))parent=null; function o4x(i,O4x){O4x=""+O4x; if (i.toLowerCase()=="textdecoration"){var l4x=O4x.split(" "); for (var oh=0; oh<l4x.length; oh++){I1w.push([i,HTMLEditor.i12(l4x[oh])]); }}else I1w.push([i,O4x]); }for (var i in l1p.style){if (i && typeof i=="string" && i!="accelerator"){var style=l1p.style[i]; if (style && typeof style=="string" && style!="accelerator"){if (parent && parent.style){var i4x=parent.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=i4x){o4x(i,style); }}else {if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length"){o4x(i,style); }}}}}if (typeof l4w!="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 i4x=l1p.style[i]; if (i.toLowerCase()!="csstext" && i.toLowerCase()!="length")if (style!=i4x){o4x(i,style); }}}}return I1w; };HTMLEditor.I4x= function (Ik){var name=Ik.tagName.toUpperCase(); switch (name){case "TD":case "LI":case "FIELDSET":case "FORM":return true; case "DIV":if (Ik.className==HTMLEditor.Il)return false; else return true; default:return false; }};HTMLEditor.l34= function (Ik,Om){if (Ik && Ik.style && Ik.style.display && Ik.style.display.toLowerCase()=="inline")return true; var name=Ik.tagName.toUpperCase(); if (name.length==2){if (name.substr(0,1)=="H" && parseInt(name.substr(1,1))>0){return false; }}switch (name){case "TBODY":case "TR":case "TD":if (typeof Om!="undefined"){var par=Ik.parentNode; while (par && par.tagName && par.tagName.toUpperCase()!="TABLE")par=par.parentNode; if (par.tagName.toUpperCase()=="TABLE" && par.style && par.style.display && par.style.display.toLowerCase()=="inline")return true; }case "P":case "PRE":case "TABLE":case "OL":case "UL":case "LI":case "HR":case "DIV":case "BLOCKQUOTE":case "FORM":case "FIELDSET":case "LEGEND":return false; default:return true; }};HTMLEditor.o4y=[["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.O4y=["DIV","P","TD","TR","TABLE","TBODY","LI","OL","UL","FORM","INPUT"]; HTMLEditor.i2h= function (l1p){for (var i=0; i<HTMLEditor.O4y.length; i++)if (HTMLEditor.O4y[i].toUpperCase()==l1p.tagName.toUpperCase()){return true; }if (HTMLEditor.is_ie && l1p.scopeName.toUpperCase()!="HTML")return true; return false; };HTMLEditor.I1i= function (l4y){if (typeof l4y!="number"){return l4y; }var i1g=l4y&0377; var o31=(l4y>>8)&0377; var b=(l4y>>020)&0377; return "rgb("+i1g+","+o31+","+b+")"; } ; HTMLEditor.i4y= function (l4y){function O30(l30){return (l30<020)?("0"+l30.toString(020)):l30.toString(020); } ; if (typeof l4y=="number"){var i1g=l4y&0377; var o31=(l4y>>8)&0377; var b=(l4y>>020)&0377; return "#"+O30(i1g)+O30(o31)+O30(b); }if (l4y.substr(0,3)=="rgb"){var l2k=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/; if (l4y.match(l2k)){var i1g=parseInt(RegExp.$1); var o31=parseInt(RegExp.$2); var b=parseInt(RegExp.$3); return "#"+O30(i1g)+O30(o31)+O30(b); }return null; }if (l4y.substr(0,1)=="#"){return l4y; }return null; } ; HTMLEditor.Ow= function (window,I4y){if (!/MSIE (5|6|7|8)/.test(navigator.userAgent))return; if ((/MSIE (7|8)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat")return; var o4z=/(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i,O4z,ox=window.document,l4z=[],i4z= {onhover:{I4z: "onmouseover",o50: "onmouseout" } ,onactive:{I4z: "onmousedown",o50: "onmouseup" }} ; var O50=(typeof I4y=="undefined")?ox:I4y; function parseStylesheets(){window.attachEvent("onunload",l50); var O2b=ox.styleSheets,l2b=O2b.length; for (var i=0; i<l2b; i++)I2b(O2b[i]); }function I2b(o2c){if (o2c.imports){try {var imports=o2c.imports,l2b=imports.length; for (var i=0; i<l2b; i++)I2b(o2c.imports[i]); }catch (i50){}}try {var rules=(O4z=o2c).rules,l2b=rules.length; for (var oh=0; oh<l2b; oh++)O2c(rules[oh]); }catch (i50){}}function O2c(rule){var select=rule.selectorText,style=rule.style.cssText; if (!o4z.test(select) || !style)return; var I50=select.replace(/[^:]+:([a-z-]+).*/i,"on$1"); var o51=select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi,".$2"+I50); var className=(/\.([a-z0-9_-]*on(hover|active))/i).exec(o51)[1]; var O51=select.replace(/:(hover|active).*$/,""); var elements=l51(O51); if (elements.length==0)return; O4z.addRule(o51,style); for (var i=0; i<elements.length; i++)new i51(elements[i],className,i4z[I50]); }function i51(o2g,className,I51){if (!o2g.hovers)o2g.hovers= {} ; if (o2g.hovers[className])return; o2g.hovers[className]= true; o52(o2g,I51.I4z, function (){o2g.className+=" "+className; } ); o52(o2g,I51.o50, function (){o2g.className=o2g.className.replace(new RegExp("\\s+"+className,"g"),""); } ); }function o52(o2g,type,O52){o2g.attachEvent(type,O52); l4z[l4z.length]= {o2g:o2g,type:type,O52:O52 } ; }function l50(){for (var t,i=0; i<l4z.length; i++){t=l4z[i]; t.o2g.detachEvent(t.type,t.O52); }}function l51(rule){var l52,i52=[O50]; l52=rule.split(" "); for (var i=0; i<l52.length; i++){i52=I52(l52[i],i52); }return i52; }function I52(select,elements){var I1w,o2g,i52=[]; var o53=(/#([a-z0-9_-]+)/i).exec(select); if (o53)return [ox.getElementById(o53[1])]; var O53=(/\.([a-z0-9_-]+)/i).exec(select); var tagName=select.replace(/(\.|#|:)[a-z0-9_-]+/i,""); var l53=O53?new RegExp("\\b"+O53[1]+"\\b"): false; for (var i=0; i<elements.length; i++){I1w=tagName?elements[i].all.tags(tagName):elements[i].all; for (var oh=0; oh<I1w.length; oh++){o2g=I1w[oh]; if (l53 && !l53.test(o2g.className))continue; i52[i52.length]=o2g; }}return i52; }parseStylesheets(); };HTMLEditor.prototype.parseInt=parseInt; HTMLEditor.prototype.isNaN=isNaN; HTMLEditor.prototype.Object=Object; HTMLEditor.prototype.Math=Math; HTMLEditor.i53= function (s){return new String(s+"rnd="+Math.random()).replace(".",""); };function I2a(I53){ this.I53=(typeof I53!="undefined" && I53); this.text=[]; this.write= function (ih){if (!this.I53 || (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.o54= function (X,O54,l1x,l54,i54,I54,o55){ this.X=X; this.i54=i54; this.I54=I54; 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.O10=null; if (HTMLEditor.is_ie && (X.Oq().type=="Text" || X.Oq().type=="None"))try {X.O10=X.iq(X.Oq()).duplicate(); }catch (t){}if (HTMLEditor.is_Safari){var O55=X.Oq(); var l55=X.iq(O55); X.O10=l55.cloneRange(); } this.iframe=this.openPopup(O54,l1x,l54,I54,o55); };HTMLEditor.prototype.o54.prototype.middle= function (){var i55=this ; var X=this.X; var popup=this.iframe; var I55; 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 I2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var o2t=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var o56=o2t/2-O9/2+O56(X.O1.document); if (o56<=0)o56=024; popup.style.top=o56+"px"; popup.style.left=I2s/2-o9/2+_GetScrollLeft(X.O1.document)+"px"; };HTMLEditor.prototype.clearPopups= function (l56){var X=this ; var le= false; while (X.o2!=null && X.o2.length>0){var i56=X.o2[X.o2.length-1]; if (typeof l56!="undefined"){if (typeof i56.i54=="function")i56.i54(); i56.I56(null);}else i56.o57(); le= true; }function O57(){if (X.l57 && X.l57.length>0)while (X.l57.length>0){var Ik=X.l57.pop(); var popup=Ik[1]; popup.parentNode.removeChild(popup); }}if (typeof l56=="undefined")setTimeout(O57,le?01750: 0); else O57(); HTMLEditor.l1e=null; if (i57!=null){i57.parentNode.removeChild(i57); i57=null; }if (I57!=null){I57.parentNode.removeChild(I57); I57=null; }return le; };HTMLEditor.prototype.o54.prototype.openPopup= function (O54,l1x,l54,I54,o55){var i55=this ; var X=this.X; var popup; function o58(event){if (X.o2)if (i55.number==X.o2.length){if (i55.iframe.contentWindow.document.body.childNodes.item(0).childNodes.length>1)if (!i55.iframe.contentWindow.document.getElementById("closePopup").disabled){i55.I56(i55.i54); }}if (event)HTMLEditor._stopEvent(event); return false; } ; var O58; if (HTMLEditor.is_Safari)O58=l1x+"_safari"; else O58=l1x; if (!X.l57)X.l57=[]; if (typeof I54=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.ib)){for (var i=0; i<X.l57.length; i++){if (X.l57[i][0]==O58){var ox; popup=X.l57[i][1]; popup.style.display=""; popup.style.zIndex=""+(045070+X.o2.length)+""; ox=popup.contentWindow.document; ox.getElementById("title").innerHTML=O54; HTMLEditor.lk(ox.getElementById("closePopup"),"click",o58); i55.o57=o58; try {I54(popup); }catch (t){alert("Exception in open Popup("+O54+"): "+t.message); } ; return popup; }}}popup=X.A.ownerDocument.createElement("iframe"); if (typeof I54=="function" && !(HTMLEditor.is_Safari && !HTMLEditor.ib)){X.l57.push([O58,popup]); }if (HTMLEditor.is_ie)popup.src="javascript:false;"; popup.style.visibility="hidden"; if (HTMLEditor.is_Safari)popup.className=O58; else {if (HTMLEditor.is_ie)popup.className=O58+" "+O58+"_ie"; else popup.className=O58; }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.ib)popup.name=X._hiddenContent+"_popup_"+O58; var I55; var o9=0144; var O9=0144; var l58=X.A; var Ik=X._textArea.parentNode.parentNode; if (!X._InsideOboutWindow)while (Ik!=X.A){if (HTMLEditor.iy(Ik,"position").toLowerCase()=="absolute"){l58=X._textArea.parentNode.parentNode; break; }Ik=Ik.parentNode; }var O2t=HTMLEditor.l2t(l58, false); var i1z=O2t.i1z,_top=O2t._top; var I2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var o2t=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var i58=o2t/2-O9/2+O56(X.O1.document); var I58=I2s/2-o9/2+_GetScrollLeft(X.O1.document); popup.style.top=(i58-_top)+"px"; popup.style.left=(I58-i1z)+"px"; l58.appendChild(popup); function I2c(){var ox=popup.contentWindow.document; if (!ox){if (!HTMLEditor.is_ie){window.setTimeout(I2c,012); return false; }else {alert("ERROR: IFRAME can't be initialized."); }}var I55; 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 I2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var o2t=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var i58=o2t/2-O9/2+O56(X.O1.document); var I58=I2s/2-o9/2+_GetScrollLeft(X.O1.document); popup.style.top=(i58-_top)+"px"; popup.style.left=(I58-i1z)+"px"; ox.open(); var html=new I2a(); 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 o59; var O59; var l59; var i59; try {o59=ox.getElementById("header"); O59=ox.getElementById("closePopup"); l59=ox.getElementById("title"); i59=ox.getElementById("mainFrame"); o59.className="header"; i59.className="frame"; l59.innerHTML=O54; HTMLEditor.lk(O59,"click",o58); i55.o57=o58; HTMLEditor.lk(o59,"mousedown", function (event){if (event.srcElement && event.srcElement.tagName.toUpperCase()=="IMG")return false; var le=i55.I59(HTMLEditor.is_ie?popup.contentWindow.event:event); return le; } ); if (HTMLEditor.is_Safari){ox.body.addEventListener("mouseup",o5a, false); }function O5a(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=O5a; }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 l54=="function"){try {l54(popup); }catch (t){alert("Exception in open Popup("+O54+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var l5a=ox.getElementsByTagName("input"); for (var i=0; i<l5a.length; i++){l5a[i].setAttribute("autocomplete","off"); }}}catch (t){try {HTMLEditor.Ic(O59,"click",o58); }catch (t){}setTimeout(iw,012); return false; }}setTimeout(iw,012); } ; setTimeout(I2c,024); return popup; } ; HTMLEditor.prototype.o54.prototype.I56= function (i54){var popup=this ; var X=this.X; var _iframe=this.iframe; var I1y=this.I1y; function i5a(O2e,l1p){var Ok; try {Ok=O2e.removeChild(l1p); delete Ok; }catch (t){}}if (X.o2==null)return false; var I5a=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.O10){if (HTMLEditor.is_Safari){X.i17(X.Oq(),X.O10); X.O10=null; }if (HTMLEditor.is_ie){try {X.O10.select(); }catch (t){}}X.O10=null; }try {X.focusEditor(); }catch (t){}}if (typeof i54=="function"){try {i54(); }catch (t){} ; }try {HTMLEditor.Ic(_iframe.contentWindow.document.getElementById("closePopup"),"click",popup.o57); _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.I54!="function" || (HTMLEditor.is_Safari && !HTMLEditor.ib)){i5a(_iframe.parentNode,_iframe); delete popup; }}catch (t){}} ,012); return false; };var o5b=null; var I57=null,i57=null; var O5b=0; var l5b=0; function i5b(){if (document.all && document.body.attachEvent){if (document.body.setCapture)document.body.setCapture(); document.body.attachEvent("onmousemove",I5b); document.body.attachEvent("onmouseup",o5a); }else if (document.addEventListener){document.addEventListener("mousemove",I5b, false); document.addEventListener("mouseup",o5a, false); }o5c(o5b); }function o5a(){if (document.all && document.body.detachEvent){document.body.detachEvent("onmousemove",I5b); document.body.detachEvent("onmouseup",o5a); if (document.body.releaseCapture)document.body.releaseCapture(); }else if (document.removeEventListener){document.removeEventListener("mousemove",I5b, false); document.removeEventListener("mouseup",o5a, false); }O5c(o5b); o5b=null; }function I5b(t){try {l5c(t); HTMLEditor._stopEvent(t); O5b=t.clientX; l5b=t.clientY; }catch (w){o5a(); }return false; }function o5c(i5c){if (i57!=null && i5c.iframe.parentNode!=i57.parentNode){i57.parentNode.removeChild(i57); i57=null; }if (I57!=null && i5c.iframe.parentNode!=I57.parentNode){I57.parentNode.removeChild(I57); I57=null; }if (i57==null){i57=document.createElement("div"); i57.style.display=""; i57.style.position="absolute";i57.style.margin="0px";i57.style.padding="0px";i57.style.top="0px"; i57.style.left="0px"; var I55=parseInt(document.body.clientHeight); if (I55<=0)I55=document.body.offsetHeight; i57.style.height=I55+"px"; I55=parseInt(document.body.clientWidth); if (I55<=0)I55=document.body.offsetWidth; i57.style.width=I55+"px"; i57.style.zIndex="20000"; i5c.iframe.parentNode.appendChild(i57); }if (I57==null){I57=document.createElement("SPAN"); I57.className="MoveSpan"; I57.style.position="absolute"; I57.style.zIndex=0141520; i5c.iframe.parentNode.appendChild(I57); }I57.style.visibility="visible"; i57.style.visibility="visible"; var I5c=parseInt(i5c.iframe.style.borderTopWidth)*2; I57.style.top=i5c.iframe.style.top; I57.style.left=i5c.iframe.style.left; var o9=i5c.iframe.clientWidth; var O9=i5c.iframe.clientHeight; if (o9==0)o9=i5c.iframe.offsetWidth; if (O9==0)O9=i5c.iframe.offsetHeight; I57.style.width=parseInt(o9)+((HTMLEditor.is_ie)?(parseInt(I5c)): (0-parseInt(I5c)))+"px"; I57.style.height=parseInt(O9)+((HTMLEditor.is_ie)?(parseInt(I5c)): (0-parseInt(I5c)))+"px"; I57.style.cursor="move"; i57.style.cursor="move"; }function O5c(i5c){try {i5c.iframe.style.top=I57.style.top; i5c.iframe.style.left=I57.style.left; I57.style.visibility="hidden"; i57.style.visibility="hidden"; }catch (t){}}function l5c(t){var o5d=o5b.O5d; var l5d=o5b.i5d; var Ik=I57; var left=0; var top=0; if (document.all){left=t.clientX*1+_GetScrollLeft(document)-o5d; top=t.clientY*1+O56(document)-l5d; }else {left=t.pageX*1-o5d; top=t.pageY*1-l5d; }if (left<0){left=0; }if (top<0){top=0; }Ik.style.left=(left-o5b.i1z)+"px"; Ik.style.top=(top-o5b._top)+"px"; if (HTMLEditor.is_Safari){o5b.iframe.style.top=I57.style.top; o5b.iframe.style.left=I57.style.left; }}HTMLEditor.prototype.o54.prototype.I59= function (t){if (!HTMLEditor.is_ie && t.target.tagName.toUpperCase()=="IMG" && t.target.id=="closePopup")return true; o5b=this ; this.O5d=(t.offsetX==null)?t.layerX:t.offsetX; this.i5d=(t.offsetY==null)?t.layerY:t.offsetY; if (HTMLEditor.is_ie){var Ik=t.srcElement; while (Ik && Ik.tagName.toUpperCase()!="BODY"){ this.O5d+=parseInt(Ik.offsetLeft); this.i5d+=parseInt(Ik.offsetTop); Ik=Ik.offsetParent; if (Ik){if (Ik.clientLeft)this.O5d+=parseInt(Ik.clientLeft); if (Ik.clientTop)this.i5d+=parseInt(Ik.clientTop); }}var I5c=parseInt(this.iframe.style.borderWidth)*2; this.O5d+=I5c; this.i5d+=I5c; }O5b=t.clientX; l5b=t.clientY; var O2t=HTMLEditor.l2t(this.iframe.parentNode, false); this._top=O2t._top; this.i1z=O2t.i1z; HTMLEditor._stopEvent(t); i5b(); return false; } ; HTMLEditor.l2t= function (l58,Om){var position=HTMLEditor.I5d(l58); if (HTMLEditor.is_ie && !Om){var borderTopWidth; var borderLeftWidth; if ((/MSIE (7)/.test(navigator.userAgent)) && window.document.compatMode!="BackCompat"){borderTopWidth=2; borderLeftWidth=2; }else {var o5e=(document.compatMode=="BackCompat")?document.body:document.documentElement; var top=HTMLEditor.iy(o5e,"border-top-width").toUpperCase(); borderTopWidth=parseInt(HTMLEditor.iy(o5e,"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(o5e,"border-left-width").toUpperCase(); borderLeftWidth=parseInt(HTMLEditor.iy(o5e,"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 o5e.border!="undefined" && o5e.border!=null && !isNaN(parseInt(o5e.border)))borderLeftWidth=borderTopWidth=parseInt(o5e.border); }position.y-=borderTopWidth; position.x-=borderLeftWidth; }else if (HTMLEditor.I10){position.y--; position.x--; }return {_top:position.y,i1z:position.x } ; };HTMLEditor.getOffset= function (l1p){var position=HTMLEditor.l2t(l1p, false); return {y:position._top,x:position.i1z } ; };function O56(O5e){if (O5e.documentElement && O5e.documentElement.scrollTop){return O5e.documentElement.scrollTop; }else {return O5e.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 l5e=document.createElement("td"); l5e.style.width="0px"; l5e.style.height="20px"; ic.parentNode.insertBefore(l5e,ic); l5e.focus(); ic.parentNode.removeChild(l5e); var I1v=ic.nextSibling; if (I1v==null)ic.parentNode.appendChild(anchor); else ic.parentNode.insertBefore(anchor,I1v); }anchor.focus(); if (!document.all)anchor.blur(); ic.parentNode.removeChild(anchor); }catch (t){}}function _GetScrollDiffer(ic,Om){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(O5e){if (O5e.documentElement && O5e.documentElement.scrollLeft){return O5e.documentElement.scrollLeft; }else {return O5e.body.scrollLeft; }}HTMLEditor.prototype._Mozilla= function (i5e){if (!HTMLEditor.is_ie && !i5e && HTMLEditor.i12(this.O1b()).length>0){var O38=this.I1.body.cloneNode( true); var oq=this.Oq(); var i1b=this.iq(oq); this.l17(oq); var Ik=i1b.startContainer; var I5e=i1b.startOffset; var o5f=[]; while (Ik.nodeType==3 || Ik.tagName.toUpperCase()!="BODY"){var i38=0; while (Ik.previousSibling){i38++; Ik=Ik.previousSibling; }o5f.push(i38); Ik=Ik.parentNode; }Ik=i1b.endContainer; var O5f=i1b.endOffset; var l5f=[]; while (Ik.nodeType==3 || Ik.tagName.toUpperCase()!="BODY"){var i38=0; while (Ik.previousSibling){i38++; Ik=Ik.previousSibling; }l5f.push(i38); Ik=Ik.parentNode; } this.I1.body.innerHTML=""; while (O38.firstChild){ this.I1.body.appendChild(O38.firstChild); }var i5f=this.I1.body; for (var i=o5f.length-1; i>=0; i--){i5f=i5f.childNodes.item(o5f[i]); }var I5f=this.I1.body; for (var i=l5f.length-1; i>=0; i--){I5f=I5f.childNodes.item(l5f[i]); }var X=this ; this.O1.setTimeout( function (){oq=X.Oq(); i1b=X.iq(); i1b.setStart(i5f,I5e); i1b.setEnd(I5f,O5f); X.i17(oq,i1b); } ,012); }};HTMLEditor.I5a= function (){ this.iframe=null; this.o5g=null; this.O5g=null; this.l5g=null; };HTMLEditor.prototype.openPopup= function (O54,l1x,l54,i54,o55){var X=this ; if (X.o2==null)if (HTMLEditor.is_Safari){var oq=X.Oq(); var lq=X.iq(oq); X.O10=lq.cloneRange(); }if (HTMLEditor.is_ie && (X.Oq().type=="Text" || X.Oq().type=="None"))try {X.O10=X.iq(X.Oq()).duplicate(); }catch (t){}function I2a(){ 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_"+l1x; if (HTMLEditor.is_ie)popup.src="javascript:false;"; var I5a=new HTMLEditor.I5a(); I5a.iframe=popup; I5a.enableEvents= function (){} ; I5a.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(I5a); I5a.number=this.o2.length; I5a.i54=i54; if (typeof o55=="undefined")popup.className=l1x+"_safari"; else popup.className=l1x; 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 I55; var o9=0144; var O9=0144; var I2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var o2t=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; popup.style.top=o2t/2-O9/2+X.A.scrollTop+"px"; popup.style.left=I2s/2-o9/2+X.A.scrollLeft+"px"; this.A.appendChild(popup); function o58(event){if (HTMLEditor.is_ie)event=popup.contentWindow.event; if (X.o2)if (I5a.number==X.o2.length)if (event.type=="click")X.I56(I5a.i54); HTMLEditor._stopEvent(event); return false; } ; function i5g(){popup=X.O1.document.getElementById(X._hiddenContent+"_ifr_popup_"+l1x); I5a.ox=popup.document; if (!I5a.ox){if (HTMLEditor.I29 || HTMLEditor.I10){X.O1.setTimeout(i5g,012); return false; }else {X.O1.alert("ERROR: IFRAME can't be initialized."); }}var I55; 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 I2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var o2t=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; popup.style.top=o2t/2-O9/2+X.A.scrollTop+"px"; popup.style.left=I2s/2-o9/2+X.A.scrollLeft+"px"; I5a.ox.open(); var html=new I2a(); 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>"); I5a.ox.write(html.toString()); I5a.ox.close(); function iw(){var o59; var O59; var l59; var i59; try {o59=I5a.ox.getElementById("header"); O59=I5a.ox.getElementById("closePopup"); l59=I5a.ox.getElementById("title"); i59=I5a.ox.getElementById("mainFrame"); o59.className="header"; i59.className="frame"; l59.innerHTML=O54; O59.onclick=o58; X.I17(); function I5g(ij){if (ij)if (ij.type=="mousedown" && ij.button!=2){I5a.o5h=new X.Object; I5a.o5h.top=X.parseInt(popup.style.top)+"px"; I5a.o5h.left=X.parseInt(popup.style.left)+"px"; I5a.o5h.clientY=ij.clientY; I5a.o5h.clientX=ij.clientX; I5a.O5h= true; if (HTMLEditor.is_ie){popup.unselectable="on"; for (var i=0; i<I5a.ox.all.length; i++)I5a.ox.all(i).unselectable="on"; }}else if (ij.type=="mouseup" || ij.type=="mouseout"){I5a.O5h= false; delete I5a.o5h; I5a.o5h=null; if (HTMLEditor.is_ie){popup.unselectable="off"; for (var i=0; i<I5a.ox.all.length; i++)I5a.ox.all(i).unselectable="off"; }}else if (ij.type=="mousemove"){if (I5a.O5h){I5a.o5h.top+=ij.clientY-I5a.o5h.clientY; I5a.o5h.left+=ij.clientX-I5a.o5h.clientX; I5a.iframe.style.top=I5a.o5h.top+"px"; I5a.iframe.style.left=I5a.o5h.left+"px"; }}return true; }HTMLEditor.iv(o59,["mousedown","mouseup","mousemove","mouseout"], function (event){return I5g(HTMLEditor.is_ie?popup.contentWindow.event:event); } ); function O5a(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){I5a.ox.onselectstart= function (){var event=popup.contentWindow.event; if (event.srcElement.tagName.toUpperCase()=="INPUT" || event.srcElement.tagName.toUpperCase()=="TEXTAREA")return true; return false; } ; }else {I5a.ox.onmousedown=O5a; }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 l54=="function"){try {l54(I5a.iframe); }catch (t){X.O1.alert("Exception in open Popup("+O54+"): "+t.message); } ; }if (!HTMLEditor.is_ie){var l5a=I5a.ox.getElementsByTagName("input"); for (var i=0; i<l5a.length; i++){l5a[i].setAttribute("autocomplete","off"); l5a[i].onfocus= function (){I5a.l5g=this ; } ; }}}catch (t){try {HTMLEditor.Ic(O59,"click",o58); }catch (t){}X.O1.setTimeout(iw,012); return false; }}X.O1.setTimeout(iw,012); } ; X.O1.setTimeout(i5g,024); return I5a.iframe; } ; HTMLEditor.prototype.I56= function (i54){var X=this ; function i5a(O2e,l1p){var Ok; try {Ok=O2e.removeChild(l1p); delete Ok; }catch (t){}}if (X.o2){var I5a=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.O10){X.i17(X.Oq(),X.O10); X.O10=null; }if (typeof i54=="function"){try {i54(); }catch (t){} ; }if (I5a.l5g){I5a.l5g.blur(); }var oq=X.Oq(); var lq=X.iq(oq); X.i17(oq,lq); X.focusEditor(); X.focusEditor(); i5a(X.A,I5a.iframe); X.O1.setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); X.i17(oq,lq); X.focusEditor(); X.focusEditor(); } ,012); } ,012); }else {if (typeof i54=="function"){try {i54(); }catch (t){} ; }i5a(X.A,I5a.iframe); }if (X.o2.length==0){X.o2=null; HTMLEditor.o2=null; X.popupClosed(); if (HTMLEditor.is_ie)if (X.O10){try {X.O10.select(); }catch (t){} ; }try {X.focusEditor(); }catch (t){}}}return false; };HTMLEditor.prototype._setClassName= function (name){try {if (this.l1 && this.mode()=="html" && !this.isPopup()){var o1b=(!HTMLEditor.is_ie)?HTMLEditor.i12(this.O1b()): ""; var oq=this.Oq(); var lq=this.iq(oq); var i1b=null; var l5h= false; if (this.isControl())return; if ((HTMLEditor.is_ie && lq.text.length>0) || (!HTMLEditor.is_ie && o1b.length>0)){i1b=this.I1b(); }else if (!HTMLEditor.is_Safari){i1b=this.I3x(); l5h= true; }if (i1b!=null && i1b.length>0){var i5h= false; this.l10(); for (var i=0; i<i1b.length; i++){var par=i1b[i].parentNode; var o43= false; try {while (par && par.childNodes.length==1 && HTMLEditor.O1j(par.tagName)){var ll=par.tagName.toUpperCase(); var I5h=par.style?par.style.cssText: ""; var o5i=HTMLEditor.o3c(par,["class"]); if (ll=="SPAN" && par.className!=HTMLEditor.Il && o5i.length==0 && (par.className.length>0 || name.length>0)){i5h= true; par.className=name; if (name==""){par.removeAttribute("class"); if (I5h.length==0){var parent=par.parentNode; while (par.firstChild)parent.insertBefore(par.firstChild,par); parent.removeChild(par); }}o43= true; break; }par=par.parentNode; }}catch (t){ this.O1.alert(""+i+" "+i1b.length+" : "+t.message); }par=i1b[i].parentNode; if (!o43){if (name !== ""){i5h= true; var Ok=this.I1.createElement("SPAN"); Ok.className=name; par.insertBefore(Ok,i1b[i]); Ok.appendChild(i1b[i]); }}}if (l5h){if (HTMLEditor.is_ie && this.o3y!=null){var oq=this.Oq(); var lq=this.iq(oq); lq.moveToBookmark(this.o3y); lq.select(); this.o3y=null; }else if (this.o3y!=null){if (this.o3y[0].nodeType==3){var oq=this.Oq(); var lq=this.I1.createRange(); lq.setStart(this.o3y[0],this.o3y[1]); lq.setEnd(this.o3y[0],this.o3y[1]); this.l17(oq); this.i17(oq,lq); }else { this.O3y(this.o3y[0],this.o3y[0]); this.o3y[0].parentNode.removeChild(this.o3y[0]); } this.o3y=null; }}else {if (!HTMLEditor.is_ie){if (i1b.length>0){lq=this.I1.createRange(); lq.setStart(i1b[0],0); lq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.l17(oq); this.i17(oq,lq); }}else {var oq=this.Oq(); var l3m=this.iq(oq); var i3m=this.iq(oq); var I49=this.I1.createElement("span"); var o4a=this.I1.createElement("span"); i1b[0].parentNode.insertBefore(I49,i1b[0]); if (i1b[i1b.length-1].nextSibling)i1b[i1b.length-1].parentNode.insertBefore(o4a,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(o4a); try {l3m.moveToElementText(I49); i3m.moveToElementText(o4a); l3m.setEndPoint("EndToEnd",i3m); l3m.select(); }catch (t){}i1b[0].parentNode.removeChild(I49); i1b[i1b.length-1].parentNode.removeChild(o4a); }}var X=this ; this.O1.setTimeout( function (){X.updateToolbar(); } ,5); if (!i5h){return false; }return true; }else {var parent=this.Iq(lq); if (HTMLEditor.I10)this.f= true; if (parent.nodeType==3){parent=parent.parentNode; }var I4u=parent.style?parent.style.cssText: ""; var o30=HTMLEditor.o3c(parent,["class"]); if (parent && parent.tagName && parent.tagName.toUpperCase()=="SPAN" && parent.className!=HTMLEditor.Il && o30.length==0){ this.l10(); parent.className=name; if (name==""){parent.removeAttribute("class"); if (I4u.length==0){var par=parent.parentNode; var O5i=null; var I38=0; var l5i,i5i; if (!HTMLEditor.is_ie){oq=this.Oq(); lq=this.iq(oq); O5i=lq.startContainer; I38=lq.startOffset; }else {l5i=lq.offsetLeft; i5i=lq.offsetTop; }while (parent.firstChild)par.insertBefore(parent.firstChild,parent); par.removeChild(parent); if (!HTMLEditor.is_ie){var lq=this.iq(); lq.setStart(O5i,I38); lq.setEnd(O5i,I38); this.l17(oq); this.i17(oq,lq); }else {if (oq.type.toLowerCase()!="control"){try {lq.moveToPoint(l5i,i5i); }catch (t){}}lq.select(); }}}var X=this ; this.O1.setTimeout( function (){X.updateToolbar(); } ,5); return true; }else if (HTMLEditor.I10)this.focusEditor(); }}return false; }catch (t){ this.O1.alert("setClass func: "+t.message); }};HTMLEditor.prototype.l46= function (l1p){if (this.relativeImages){var images=l1p.getElementsByTagName("IMG"); for (var i=0; i<images.length; i++){var I5i=images[i]; if (I5i.src.indexOf("http://")>=0){var o27=I5i.src; I5i.src="qwerty.gif"; var i38=I5i.src.indexOf("qwerty.gif"); if (o27.substr(0,i38)==I5i.src.substr(0,i38))o27=o27.substr(i38,o27.length-i38); I5i.src=o27; }}}};HTMLEditor.prototype._paste= function (Om,o37){var X=this ; var oq=this.Oq(); var lq=this.iq(oq); var i1z; var _top; if (!Om){i1z=lq.offsetLeft; _top=lq.offsetTop; this.O11(this.l36()); X.O14(); return; }if (this._NoPaste)return; i1z=lq.offsetLeft; _top=lq.offsetTop; var Ok=this.I1.createElement("span"); var o1z; var o5j=this.I36("", false ,o37); if ((/<[\/]*p[\s>]+/i.test(o5j)) || (/<[\/]*h/i.test(o5j))){o1z=this.O1z(); }else {o1z=this.I1.createElement("SPAN"); o1z.id=HTMLEditor.Il; if (!this.O11(HTMLEditor.getHTML(o1z, true)))return; o1z=this.I1.getElementById(HTMLEditor.Il); o1z.id=null; o1z.removeAttribute("id"); o1z.setAttribute("para","no"); }Ok.innerHTML=o5j; if (!o1z){return; } this.l46(Ok); var par=o1z.parentNode; var O4q=o1z.getAttribute("para"); if (O4q!="no"){if (O4q.indexOf("left")>=0 && Ok.firstChild){if (Ok.firstChild.tagName && Ok.firstChild.tagName.toUpperCase()=="P"){while (Ok.firstChild.firstChild)o1z.previousSibling.appendChild(Ok.firstChild.firstChild); Ok.removeChild(Ok.firstChild); }}if (O4q.indexOf("right")>=0 && Ok.lastChild){if (Ok.lastChild.tagName && Ok.lastChild.tagName.toUpperCase()=="P"){while (Ok.lastChild.lastChild)o1z.nextSibling.insertBefore(Ok.lastChild.lastChild,o1z.nextSibling.firstChild); Ok.removeChild(Ok.lastChild); }}}var O5j=o1z; var l5j=null; if (Ok.childNodes.length==0 && O4q.indexOf("left")>=0 && O4q.indexOf("right")>=0){if (o1z.nextSibling.firstChild){l5j=this.I1.createElement("span"); O5j=l5j; l5j.innerHTML="111"; o1z.previousSibling.appendChild(l5j); }while (o1z.nextSibling.firstChild)o1z.previousSibling.appendChild(o1z.nextSibling.firstChild); par.removeChild(o1z.nextSibling); }else {while (Ok.firstChild)par.insertBefore(Ok.firstChild,o1z); }setTimeout( function (){var oq=X.Oq(); var lq=X.iq(oq); if (oq.type.toLowerCase()=="control"){while (lq.length>0)lq.remove(0); }try {lq.collapse( false); }catch (t){}X.focusEditor(); HTMLEditor.l1o(O5j,X); if (l5j)l5j.parentNode.removeChild(l5j); par.removeChild(o1z); HTMLEditor.o13(X.I1.body); X.O14(); lq.select(); } ,0144); };HTMLEditor.i31= function (I32,X,i5j){for (var i=0; i<I32.childNodes.length; i++){var i1v=I32.childNodes.item(i); if (i1v.nodeType==1){var Ot=null; if (i5j)for (var oh=0; oh<HTMLEditor.o4y.length; oh++){if (HTMLEditor.o4y[oh][0].toLowerCase()==i1v.tagName.toLowerCase()){Ot=HTMLEditor.o4y[oh]; break; }}if (Ot){var span=X.I1.createElement("SPAN"); span.style["cssText"]=i1v.style["cssText"]; if (HTMLEditor.is_ie)span.style[Ot[1]]=Ot[2]; else span.style[Ot[3]]=Ot[2]; while (i1v.firstChild){span.appendChild(i1v.firstChild); }I32.insertBefore(span,i1v); I32.removeChild(i1v); i1v=span; }else if (i1v.tagName.toLowerCase()=="font"){var span=X.I1.createElement("SPAN"); var save=i1v.size; span.style["cssText"]=i1v.style["cssText"]; if (i1v.color)span.style.color=i1v.color; if (i1v.face)span.style.fontFamily=i1v.face; while (i1v.firstChild){span.appendChild(i1v.firstChild); }I32.insertBefore(span,i1v); I32.removeChild(i1v); if (save){var font=X.I1.createElement("FONT"); font.size=save; I32.insertBefore(font,span); if (span.style["cssText"].length>0){font.appendChild(span); i1v=span; }else {while (span.firstChild){font.appendChild(span.firstChild); }I32.removeChild(span); i1v=font; }}else i1v=span; }HTMLEditor.i31(i1v,X,i5j); }}};HTMLEditor.restoreOldTags= function (I32,ox,X){for (var i=0; i<I32.childNodes.length; i++){var i1v=I32.childNodes.item(i); if (i1v.nodeType==1){if (i1v.tagName.toUpperCase()=="BR"){if (i1v.style && i1v.style.cssText && i1v.style.cssText.length>0){i1v.style.cssText=""; i1v.removeAttribute("style"); }continue; }if (!HTMLEditor.i2h(i1v) && i1v.tagName.toUpperCase()!="IMG"){var I4u=HTMLEditor.o4v(i1v); var I5j=I32; var o5k=HTMLEditor.i2h(i1v); for (var l2d=0; l2d<I4u.length; l2d++){var O5k=null; if (I4u[l2d][0].toLowerCase()=="color" && I4u[l2d][1])O5k=["color",I4u[l2d][1]];if (I4u[l2d][0].toLowerCase()=="backgroundcolor" && I4u[l2d][1])O5k=["backgroundColor",I4u[l2d][1]];if (I4u[l2d][0].toLowerCase()=="fontfamily" && I4u[l2d][1])O5k=["face",I4u[l2d][1]];var i38=HTMLEditor.o4y.length; if (O5k)i38=1; for (var oh=0; oh<i38; oh++){if (HTMLEditor.o4y[oh][3].toLowerCase()==I4u[l2d][0].toLowerCase() && HTMLEditor.o4y[oh][2].toLowerCase()==I4u[l2d][1].toLowerCase() || O5k){if (o5k){if (O5k){HTMLEditor.l5k(i1v,O5k[0],O5k[1],ox); i1v.style[O5k[0]]=""; }else if (I4u[l2d][1]){HTMLEditor.l5k(i1v,I4u[l2d][0],I4u[l2d][1],ox); i1v.style[I4u[l2d][0]]=""; }}else {var tagName=(O5k)?"FONT":HTMLEditor.o4y[oh][0].toUpperCase(); var i5k=ox.createElement(tagName); if (O5k){if (O5k[0]=="color")i5k.color=O5k[1]; else if (O5k[0]=="face")i5k.face=O5k[1]; else i5k.style.cssText="background-color: "+O5k[1]; }I5j.insertBefore(i5k,i1v); i5k.appendChild(i1v); i1v.style.cssText=""; I4u[l2d][1]=null; for (var I5k=0; I5k<I4u.length; I5k++)if (I4u[I5k][1] && I4u[I5k][0].toLowerCase()!="textdecorationlinethrough" && I4u[I5k][0].toLowerCase()!="textdecorationunderline")i1v.style[I4u[I5k][0]]=I4u[I5k][1]; if (i1v.tagName.toLowerCase()=="span" && i1v.style.cssText=="" && HTMLEditor.O4w(i1v, false)==0){while (i1v.firstChild){i5k.appendChild(i1v.firstChild); }i5k.removeChild(i1v); i1v=i5k; }I5j=i5k; oh=i38; }}}}}HTMLEditor.restoreOldTags(i1v,ox,X); }else if (i1v.nodeType==8){}}};HTMLEditor.l5k= function (I32,style,value,ox){if (I32.childNodes.length==0){var i5k=ox.createElement("SPAN"); I32.appendChild(i5k); i5k.style[style]=value; }else for (var i=0; i<I32.childNodes.length; i++){var i1v=I32.childNodes.item(i); if (i1v.nodeType==1){if (!i1v.style[style])i1v.style[style]=value; }else if (i1v.nodeType==3){var i5k=ox.createElement("SPAN"); I32.insertBefore(i5k,i1v); i5k.appendChild(i1v); i5k.style[style]=value; }}};function iy(o5l,O5l){var l5l=""; try {if (o5l.nodeType==1)if (o5l.ownerDocument.defaultView && o5l.ownerDocument.defaultView.getComputedStyle)l5l=o5l.ownerDocument.defaultView.getComputedStyle(o5l,"").getPropertyValue(O5l); else if (o5l.currentStyle){try {O5l=O5l.replace(/-(\w)/g, function (O40,o23){return o23.toUpperCase(); } ); l5l=o5l.currentStyle[O5l]; }catch (w){}}}catch (t){}return l5l; }HTMLEditor.iy=iy; HTMLEditor.i5l= function (I5l){function o5m(){var O9=I5l.offsetHeight; var o9=I5l.offsetWidth; if (!document.all){O9-=6; o9-=2; }if (O9>parseInt(I5l.style.height) || o9>parseInt(I5l.style.width))return false; return true; }var O5m=I5l.innerHTML; var i=0; while (!o5m()){i++; I5l.innerHTML=O5m.substr(0,O5m.length-i-1)+"..."; }};HTMLEditor.l5m= function (event){HTMLEditor._stopEvent(event); return false; };HTMLEditor.i5m= function (X,I5m){if (I5m.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.lk(I5m,"dragstart",HTMLEditor.l5m); else HTMLEditor.lk(I5m,"draggesture",HTMLEditor.l5m); var o24,cell,o5n,div; var ox=X.getDocument(); var O5n=ox.createElement("TABLE"); if (I5m.tagName && I5m.tagName.toUpperCase()=="IMG"){O5n.style.display="inline"; }O5n.border="0"; O5n.cellSpacing="0"; O5n.cellPadding="0"; O5n.style.borderWidth="0px"; O5n.setAttribute(X.noContextMenuAttributeName(),"yes"); o24=O5n.insertRow(O5n.rows.length); o5n=o24.insertCell(o24.cells.length); o5n.style.fontSize="0px"; o5n.style.fontFamily="verdana"; o5n.style.padding="0px"; o5n.style.margin="0px"; o5n.style.borderWidth="0px"; o5n.setAttribute(X.noContextMenuAttributeName(),"yes"); cell=o24.insertCell(o24.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); o24=O5n.insertRow(O5n.rows.length); cell=o24.insertCell(o24.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=o24.insertCell(o24.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 (I5m.tagName && I5m.tagName.toUpperCase()!="IMG"){var o1z=X.O1z(I5m); if (o1z){var parent=o1z.parentNode; parent.insertBefore(I5m,o1z); parent.removeChild(o1z); }}I5m.parentNode.insertBefore(O5n,I5m); o5n.appendChild(I5m); I5m.setAttribute(X.attachedIdAttributeName(),"yes"); };HTMLEditor.l5n= function (X,I5m){if (I5m.getAttribute(X.attachedIdAttributeName()) && I5m.getAttribute(X.attachedIdAttributeName()).length>0)return true; else return false; };HTMLEditor.i5n= function (X,I5m){if (I5m.tagName.toUpperCase()=="IMG")if (HTMLEditor.is_ie)HTMLEditor.Ic(I5m,"dragstart",HTMLEditor.l5m); else HTMLEditor.Ic(I5m,"draggesture",HTMLEditor.l5m); var l4h=X.ot(I5m); if (l4h!=null){l4h.parentNode.insertBefore(I5m,l4h); l4h.parentNode.removeChild(l4h); I5m.removeAttribute(X.attachedIdAttributeName()); }};HTMLEditor.prototype.I5n= function (){var o5o=[]; var O5o=/[\xa0-\xbf]|[\s\cI\n\r\v.,!?:;{}[\]<>"()$%#*@&\-+=\/\\|><]/; var l5o=/[\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.Oq(); var lq=this.iq(oq); var i1b; if (!this.isControl() && ((HTMLEditor.is_ie && lq.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 i5o=-1; var I5o=-1; var o5p=""+i1b[i].data+""; var O5p=o5p.length; var l5p=""; var i5p= false; if (O5p==0){par.removeChild(i1b[i]); }else {for (var oh=0; oh<O5p; oh++){var I5p=o5p.substr(oh,1); if (I5p.charCodeAt(0)>=02620 && I5p.charCodeAt(0)<=02777)i5p= true; I5o=((i5p?l5o:O5o).test(I5p) || (I5p.charCodeAt(0)&0170000)==020000)?0: 1; if (I5o!=i5o){if (i5o>=0 && l5p.length>0){var o5q=this.I1.createTextNode(l5p); par.insertBefore(o5q,i1b[i]); if (isNaN(parseInt(l5p,012)) && i5o==1){o5o.push( {O5q: -1,l5q: (""+o5q.data+""),ref:o5q,i5h: false } ); }}l5p=""; i5o=I5o; }l5p+=I5p; }if (i5o>=0 && l5p.length>0){i1b[i].data=l5p; if (isNaN(parseInt(l5p,012)) && i5o==1)o5o.push( {O5q: -1,l5q: (""+i1b[i].data+""),ref:i1b[i],i5h: false } ); }}}oq=this.Oq(); if (i1b.length>0){if (!HTMLEditor.is_ie){lq=this.I1.createRange(); lq.setStart(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); lq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.l17(oq); this.i17(oq,lq); }else {var l3m=this.iq(oq); var I49=this.I1.createElement("span"); if (i1b[i1b.length-1].nextSibling)i1b[i1b.length-1].parentNode.insertBefore(I49,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(I49); try {l3m.moveToElementText(I49); l3m.setEndPoint("EndToStart",l3m); l3m.select(); }catch (t){}i1b[i1b.length-1].parentNode.removeChild(I49); }}}var i5q=[]; for (var i=0; i<o5o.length; i++){var I5q=o5o[i]; var o5r= {O5q: -1,l5q:I5q.l5q,ref: [I5q.ref],i5h: false } ; while (i+1<o5o.length){var O5r=o5o[i+1]; var par=HTMLEditor.I45(I5q.ref,O5r.ref); if (par!=null){var l5r=par.parent.childNodes.item(par.O26); var i5r=par.parent.childNodes.item(par.i26); if (l5r.nextSibling==i5r){var I1n= true; var current; current=I5q.ref; while (current!=l5r){if (current.nextSibling!=null){I1n= false; break; }current=current.parentNode; }if (!I1n){break; }current=O5r.ref; while (current!=i5r){if (current.previousSibling!=null){I1n= false; break; }current=current.parentNode; }if (!I1n){break; }o5r.l5q+=O5r.l5q; o5r.ref.push(O5r.ref); I5q=O5r; i++; continue; }}break; }i5q.push(o5r); }return i5q; };HTMLEditor.prototype.o1x= function (Io){var X=this ; X.openWait(); setTimeout( function (){Io(X.I5n()); } ,0); };HTMLEditor.prototype.l1j= function (i1b){var oq=this.Oq(); if (!HTMLEditor.is_ie){var lq=this.I1.createRange(); lq.setStart(i1b[0],0); lq.setEnd(i1b[i1b.length-1],(""+i1b[i1b.length-1].data+"").length); this.l17(oq); this.i17(oq,lq); }else {var l3m=this.iq(oq); var i3m=this.iq(oq); var I49=this.I1.createElement("span"); var o4a=this.I1.createElement("span"); i1b[0].parentNode.insertBefore(I49,i1b[0]); if (i1b[i1b.length-1].nextSibling)i1b[i1b.length-1].parentNode.insertBefore(o4a,i1b[i1b.length-1].nextSibling); else i1b[i1b.length-1].parentNode.appendChild(o4a); try {l3m.moveToElementText(I49); var I5r=l3m.moveStart("character",1); l3m.moveStart("character",-I5r); i3m.moveToElementText(o4a); I5r=i3m.moveEnd("character",-1); i3m.moveEnd("character",-I5r); l3m.setEndPoint("EndToEnd",i3m); l3m.select(); }catch (t){}i1b[0].parentNode.removeChild(I49); i1b[i1b.length-1].parentNode.removeChild(o4a); }};HTMLEditor.prototype.o5s= function (l4e){var i1b=this.I1b(); var X=this ; var l5h= false; if (i1b.length==0)if (!HTMLEditor.is_Safari){i1b=this.I3x( true); l5h= true; }if (i1b!=null && i1b.length>0){ this.l10(); for (var i=0; i<i1b.length; i++){if (l4e)i1b[i].data=(""+i1b[i].data+"").toUpperCase(); else i1b[i].data=(""+i1b[i].data+"").toLowerCase(); }if (l5h){if (HTMLEditor.is_ie && this.o3y!=null){var oq=this.Oq(); var lq=this.iq(oq); lq.moveToElementText(this.o3y); lq.select(); this.o3y.parentNode.removeChild(this.o3y); this.o3y=null; }else if (this.o3y!=null){if (this.o3y[0].nodeType==3){var oq=this.Oq(); var lq=this.I1.createRange(); lq.setStart(this.o3y[0],this.o3y[1]); lq.setEnd(this.o3y[0],this.o3y[1]); this.l17(oq); this.i17(oq,lq); }else { this.O3y(this.o3y[0],this.o3y[0]); this.o3y[0].parentNode.removeChild(this.o3y[0]); } this.o3y=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.o5s( true); };HTMLEditor.prototype.toLowerCase= function (){if (!(this.l1 && this.mode()=="html" && !this.isPopup()))return; if (this.isControl())return; this.o5s( false); };HTMLEditor.o38= function (Ik){var l1n=Ik.all; var l11=[]; var o3r=[];for (var i=0; i<l1n.length; i++){var a=l1n[i]; if (a.name && a.name.length>0){var ll=a.tagName; var O5s=Ik.getElementsByTagName(ll); var i38=0; for (var oh=0; oh<O5s.length; oh++){if (O5s[oh]==a){i38=oh; break; }}o3r[ll]=i38; l11.push([ll,o3r[ll],a.name]); }}return l11; };HTMLEditor.O3a= function (Ik,l11){for (var i=0; i<l11.length; i++){if (Ik.getElementsByTagName(l11[i][0]).length>l11[i][1])Ik.getElementsByTagName(l11[i][0])[l11[i][1]].name=l11[i][2]; }};HTMLEditor.l5s= function (Ik){var l1n=Ik.all; var l11=[]; var o3r=[];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 ll=a.tagName; var O5s=Ik.getElementsByTagName(ll); var i38=0; for (var oh=0; oh<O5s.length; oh++){if (O5s[oh]==a){i38=oh; break; }}o3r[ll]=i38; l11.push([ll,o3r[ll],a.href]); }}return l11; };HTMLEditor.i11= function (l1g){var o3r=[];function i5s(i2a,o23,O23,i2v,I39,I5s,o5t,O5t){var ll=o23.replace(/^<([^\s>]+)/,"$1"); var l5t= true; var i=0; for ( ; i<o3r.length; i++){if (o3r[i][0]==ll){l5t= false; break; }}if (l5t){o3r[i]=[ll]; }o3r[i].push(I5s); }var O2p=new RegExp("(\x3c[^\\s>\x3c]+)(.*?)(href=)(\"|\')([^\\4]*?)(\\4)((?:.*?)>)","ig"); l1g.replace(O2p,i5s); return o3r; };HTMLEditor.i5t= function (Ik,l11){for (var i=0; i<l11.length; i++){Ik.getElementsByTagName(l11[i][0])[l11[i][1]].href=l11[i][2]; }};HTMLEditor.O12= function (Ik,l11){for (var oh=0; oh<l11.length; oh++){var l1n=Ik.getElementsByTagName(l11[oh][0]); var l2d=1; for (var i=0; i<l1n.length; i++){try {if (!l1n[i].href)continue; if (l11[oh][l2d] && l11[oh][l2d].length>0){var I5t; if (HTMLEditor.is_ie){I5t=l1n[i].innerHTML; }l1n[i].href=l11[oh][l2d].replace(/&amp;/ig,"&"); if (HTMLEditor.is_ie){l1n[i].innerHTML=I5t; }}l2d++; }catch (w){}}}};HTMLEditor.o5u= function (Ik){var l1n=Ik.getElementsByTagName("IMG"); var l11=[]; for (var i=0; i<l1n.length; i++){var a=l1n[i]; l11.push((a.src && a.src.length>0)?a.src:null); }return l11; };HTMLEditor.O5u= function (l1g){var l11=[]; function i5s(i2a,o23,O23,i2v,I39,I5s){l11.push(i2a); return i2a; }l1g.replace(/(<img(?:.*?)>)/ig,i5s); return l11; };HTMLEditor.l5u= function (l1g,l11){var i=-1; function i5s(i2a,o23,O23,i2v,I39,I5s){i++; return l11[i]; }return l1g.replace(/(<img(?:.*?)>)/ig,i5s); };HTMLEditor.o12= function (l1g){var l11=[]; function i5s(i2a,o23,O23,i2v,I39,I5s){l11.push(i2v); return i2a; }l1g.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,i5s); return l11; };HTMLEditor.i5u= function (l1g){var l11=[[],[]]; function i5s(i2a,o23,O23,i2v,I39,I5s){l11[0].push(i2v); return i2a; }function l2c(i2a,o23,O23,i2v,I39,I5s){l11[1].push(i2v); return i2a; }l1g.replace(/(<img(?:.*?))(width=)([^\s>]+)(\s*)((?:.*?)>)/ig,i5s); l1g.replace(/(<img(?:.*?))(height=)([^\s>]+)(\s*)((?:.*?)>)/ig,l2c); return l11; };HTMLEditor.I5u= function (l1g,l11){var i=-1; var oh=-1; function i5s(i2a,o23,O23,i2v,I39,I5s){i++; return o23+O23+l11[0][i]+I39+I5s; }function l2c(i2a,o23,O23,i2v,I39,I5s){oh++; return o23+O23+l11[1][oh]+I39+I5s; }return l1g.replace(/(<img(?:.*?))(width=")([^\s>]+)(")((?:.*?)>)/ig,i5s).replace(/(<img(?:.*?))(height=")([^\s>]+)(")((?:.*?)>)/ig,l2c); };HTMLEditor.o5v= function (l1g){var l11=[]; function i5s(i2a,o23){l11.push(o23); return i2a; }l1g.replace(/(<area[^>]*?>)/ig,i5s); return l11; };HTMLEditor.O5v= function (l1g,l11){var i=-1; function i5s(i2a,o23){i++; return l11[i]; }return l1g.replace(/(<area[^>]*?>)/ig,i5s); };HTMLEditor.l12= function (Ik,l11){var l1n=Ik.getElementsByTagName("IMG"); var l2d=0; for (var i=0; i<l1n.length; i++){if (!l1n[i].src)continue; if (l11[l2d] && l11[l2d].length>0){l1n[i].src=l11[l2d].replace(/&amp;/ig,"&"); }l2d++; }};HTMLEditor.l5v= function (l1g,l11){var i=-1; function i5s(i2a,o23,O23,i2v,I39,I5s){i++; return o23+O23+l11[i]+I39+I5s; }return l1g.replace(/(<img(?:.*?))(src=")(.*?)(")((?:.*?)>)/ig,i5s); };HTMLEditor.o13= function (Ik){var l1n=Ik.getElementsByTagName("IMG"); for (var i=0; i<l1n.length; i++){if (l1n[i].getAttribute(HTMLEditor.Is) && l1n[i].getAttribute(HTMLEditor.Is).length>0){try {if (HTMLEditor.is_ie)HTMLEditor.Ic(l1n[i],"dragstart",HTMLEditor.l5m); else HTMLEditor.Ic(l1n[i],"draggesture",HTMLEditor.l5m); }catch (t){}if (HTMLEditor.is_ie)HTMLEditor.lk(l1n[i],"dragstart",HTMLEditor.l5m); else HTMLEditor.lk(l1n[i],"draggesture",HTMLEditor.l5m); }}};HTMLEditor.i14= function (id,Om){var i5v=document.getElementById(id); if (!i5v)return null; if (!HTMLEditor.is_Safari && i5v.className=="ST_div" && (typeof Om=="undefined" || Om=="undefined")){i5v.parentNode.style.display="none"; return null; }return null; var I5v=document.getElementById(id+"__disabling"); var i1z=0,_top=0; var Ik=i5v; var parent=HTMLEditor.o5w(i5v); if (parent==null)parent=document.body; var o50=HTMLEditor.O5w(Ik,(HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)?document.body:parent, false); var o50=HTMLEditor.O5w(Ik,parent, false); i1z=o50.i1z; _top=o50._top; var l5w; if (I5v!=null)l5w=I5v; else {l5w=document.createElement("DIV"); l5w.className="DisableSpan"; l5w.id=id+"__disabling"; l5w.style.position="absolute"; l5w.style.zIndex=01750; l5w.style.visibility="visible"; }if (!HTMLEditor.is_ie || (HTMLEditor.is_ie && document.compatMode!="BackCompat" && parent!=document.body)){Ik=parent; if (I5v==null)l5w.i5w=[]; while (Ik && Ik.tagName && Ik.tagName.toUpperCase()!="BODY"){if (Ik.scrollTop)_top-=parseInt(Ik.scrollTop); if (Ik.scrollLeft)i1z-=parseInt(Ik.scrollLeft); if (I5v==null && HTMLEditor.I5w(Ik)){var o5x= {O5x:Ik.scrollTop,l5x:Ik.scrollLeft } ; var i5x=l5w.i5w.length; var O52=new Function("event","HTMLEditor_onParentScroll(event,\""+id+"__disabling"+"\",this,"+i5x+")"); l5w.i5w.push( {O52:O52,parent:Ik,l16:o5x } ); HTMLEditor.lk(Ik,"scroll",O52); }Ik=Ik.parentNode; }if (HTMLEditor.is_ie)parent=document.body; }if (I5v==null)parent.appendChild(l5w); l5w.style.top=_top+"px"; l5w.style.left=i1z+"px"; var o9=0; var O9=0; if (o9==0)o9=i5v.offsetWidth; if (O9==0)O9=i5v.offsetHeight; l5w.style.width=parseInt(o9)+"px"; l5w.style.height=parseInt(O9)+"px"; return id+"__disabling"; };HTMLEditor.O5w= function (l58,parent,Om){var Ik=l58; var _top=0,i1z=0; while (Ik && typeof Ik!="undefined" && Ik!=parent && Ik.tagName.toUpperCase()!="HTML"){var borderTopWidth; var borderLeftWidth; i1z+=parseInt(Ik.offsetLeft); _top+=parseInt(Ik.offsetTop); Ik=Ik.offsetParent; if (Ik && typeof Ik!="undefined"){if (Ik.clientLeft)i1z+=parseInt(Ik.clientLeft); if (Ik.clientTop)_top+=parseInt(Ik.clientTop); if (!HTMLEditor.is_ie && ((Om && Ik.tagName.toUpperCase()!="BODY") || (!Om && (Ik.tagName.toUpperCase()=="BODY" || HTMLEditor.I10)))){borderTopWidth=parseInt(HTMLEditor.iy(Ik,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; borderLeftWidth=parseInt(HTMLEditor.iy(Ik,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; i1z+=borderLeftWidth; _top+=borderTopWidth; }if (HTMLEditor.is_ie && !Om && (Ik.tagName.toUpperCase()=="TABLE" || (Ik.tagName.toUpperCase()=="BODY" && document.compatMode=="BackCompat"))){var top=Ik.tagName.toUpperCase()=="BODY"?HTMLEditor.iy(Ik,"border-top-width").toUpperCase(): ""; borderTopWidth=parseInt(HTMLEditor.iy(Ik,"border-top-width")); if (isNaN(borderTopWidth))borderTopWidth=0; if (borderTopWidth==0){if (top=="THIN")borderTopWidth=1; else if (top=="MEDIUM")borderTopWidth=2; else if (top=="THICK")borderTopWidth=4; }var left=Ik.tagName.toUpperCase()=="BODY"?HTMLEditor.iy(Ik,"border-left-width").toUpperCase(): ""; borderLeftWidth=parseInt(HTMLEditor.iy(Ik,"border-left-width")); if (isNaN(borderLeftWidth))borderLeftWidth=0; if (borderLeftWidth==0){if (left=="THIN")borderLeftWidth=1; else if (left=="MEDIUM")borderLeftWidth=2; else if (left=="THICK")borderLeftWidth=4; }if (borderLeftWidth==0 && borderTopWidth==0 && typeof Ik.border!="undefined" && Ik.border!=null && !isNaN(parseInt(Ik.border)))borderLeftWidth=borderTopWidth=parseInt(Ik.border); i1z-=borderLeftWidth; _top-=borderTopWidth; }}}if (Ik && typeof Ik!="undefined" && HTMLEditor.is_ie && document.compatMode!="BackCompat"){var marginTop=parseInt(HTMLEditor.iy(Ik,"margin-top")); if (isNaN(marginTop))marginTop=0; var marginLeft=parseInt(HTMLEditor.iy(Ik,"margin-left")); if (isNaN(marginLeft))marginLeft=0; i1z+=marginLeft; _top+=marginTop; }if (!HTMLEditor.I10){Ik=l58; while (Ik && Ik!=parent){if (Ik.scrollTop)_top-=parseInt(Ik.scrollTop); if (Ik.scrollLeft)i1z-=parseInt(Ik.scrollLeft); Ik=Ik.parentNode; }}return {_top:_top,i1z:i1z } ; };function HTMLEditor_onParentScroll(event,I5x,parent,i){var l1p=document.getElementById(I5x); var l16=l1p.i5w[i].l16; if (HTMLEditor.is_ie)parent=event.srcElement; l1p.style.top=parseInt(l1p.style.top)-(parent.scrollTop-l16.O5x)+"px"; l1p.style.left=parseInt(l1p.style.left)-(parent.scrollLeft-l16.l5x)+"px"; l16.O5x=parent.scrollTop; l16.l5x=parent.scrollLeft; }HTMLEditor.i18= function (id,Om){var i5v=document.getElementById(id); if (!i5v)return null; if (!HTMLEditor.is_Safari && i5v.className=="ST_div" && (typeof Om=="undefined" || Om=="undefined")){i5v.parentNode.style.display=""; return null; }var Ik=document.getElementById(id+"__disabling"); if (Ik){if (typeof Ik.i5w!=undefined && Ik.i5w!=null && Ik.i5w.length>0){for (var i=0; i<Ik.i5w.length; i++)HTMLEditor.Ic(Ik.i5w[i].parent,"scroll",Ik.i5w[i].O52); }Ik.parentNode.removeChild(Ik); }};HTMLEditor.I5w= 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.o5w= function (l1p){var ic=l1p; do {ic=ic.parentNode; if (HTMLEditor.I5w(ic))return ic; }while (ic && ic.tagName.toUpperCase()!="BODY");return ic; };if (typeof HTMLEditor.z!="function"){HTMLEditor.o5y=null; try {HTMLEditor.o5y=(document.all)?document.body.onload:window.onload; }catch (w){}HTMLEditor.z= function (t,l5i){if (typeof l5i=="undefined"){if (document.all)document.body.onload=HTMLEditor.o5y; else window.onload=HTMLEditor.o5y; if (HTMLEditor.o5y!=null && typeof HTMLEditor.o5y=="function")HTMLEditor.o5y(t); }HTMLEditor.Z= function (ij){if (ij){for (var i=0; i<HTMLEditor.activeEditors.length; i++){if (HTMLEditor.activeEditors[i].I9){var X=HTMLEditor.activeEditors[i].X; if (X.Id && X.Id!=null){var Ik; if (HTMLEditor.is_ie){ij=window.event; Ik=ij.srcElement; }else {Ik=ij.target; }while (Ik && Ik!=X.Id)Ik=Ik.parentNode; if (Ik==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.lk(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 O5y=window.Sys.WebForms.PageRequestManager.getInstance(); O5y.add_endRequest( function (){if (HTMLEditor.is_Safari && HTMLEditor.ib){Sys.Browser.agent=Sys.Browser.Safari; }for (var oh=0; oh<HTMLEditor.activeEditors.length; oh++){if (HTMLEditor.activeEditors[oh].I9){var X=HTMLEditor.activeEditors[oh].X; if (X.R!=null){try {X.I2t(); }catch (i4v){} ; }}}} ); }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 l5y=window.Sys.WebForms.PageRequestManager.getInstance()._updateControls; var i5y=window.Sys.WebForms.PageRequestManager.getInstance(); window.Sys.WebForms.PageRequestManager.getInstance()._updateControls= function (){var I5y=[]; for (var oh=0; oh<HTMLEditor.activeEditors.length; oh++){if (HTMLEditor.activeEditors[oh].I9){var X=HTMLEditor.activeEditors[oh].X; var o5z=document.getElementById(X.mainDivId); var O5z= false; var l5z; if (o5z==null){O5z= true; }else {if (arguments && arguments.length && arguments.length>0 && arguments[0] && arguments[0].length){for (var i=0; i<arguments[0].length; i++){l5z=arguments[0][i].substr(1).replace(/\$/g,"_"); var i5z=document.getElementById(l5z); if (i5z!=null){var ic=o5z.parentNode; while (ic && ic!=i5z && ic.tagName.toUpperCase()!="BODY"){ic=ic.parentNode; }if (ic==i5z){O5z= true; break; }}}}}HTMLEditor.activeEditors[oh].i9=O5z; if (O5z){try {X.Im(); }catch (i4v){} ; if (typeof X.ob=="function"){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(X.ob); X.ob=null; }HTMLEditor.activeEditors[oh].I9= false; if (!X._autoFocus && !X._wasFocused && o5z!=null){X.focusEditor(); HTMLEditor.i18(X.panelDivId); if (X.ShowQuickFormatDivId!=null)HTMLEditor.i18(X.ShowQuickFormatDivId); }if (o5z!=null)X.UnlinkEditorOject(); if (X.R!=null){I5y.push(X.R); }}}}var I5z=l5y.apply(i5y,arguments); while (I5y.length>0){try {var o60=I5y.pop(); var Ok=o60.parentNode.removeChild(o60); delete Ok; }catch (w){}}setTimeout( function (){var O60=[]; for (var oh=0; oh<HTMLEditor.activeEditors.length; oh++){var X=HTMLEditor.activeEditors[oh].X; var o5z=document.getElementById(X.mainDivId); if (o5z==null){O60.push(X); }else {if (X.isActivated && X.mainDivVisible && X.i1=="html"){HTMLEditor.Oy(X,X.I1,!X.showAnchors); HTMLEditor.ly(X,X.I1,!X.showPlaceHolders); X.updateToolbar(); }try {X.I2t(); }catch (t){}}}for (var oh=0; oh<O60.length; oh++){var X=O60[oh]; try {X.I2t(); }catch (t){}X.UnlinkEditorOject(); HTMLEditor.oc(X); }} ,0); return I5z; } ; }if (typeof window.__doPostBack=="function"){var l60=window.__doPostBack; window.__doPostBack= function (o4t,O4t){for (var oh=0; oh<HTMLEditor.activeEditors.length; oh++){if (HTMLEditor.activeEditors[oh].I9){var X=HTMLEditor.activeEditors[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.activeEditors.length; oh++){if (HTMLEditor.activeEditors[oh].I9){var X=HTMLEditor.activeEditors[oh].X; if (document.getElementById(X.mainDivId)==null)continue; if (HTMLEditor.is_Safari){try {X.om(); }catch (t){} ; }}}l60(o4t,O4t); } ,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 lp=window.Sys.WebForms.PageRequestManager.getInstance(); if (lp._oboutEditor_onFormSubmit==null || typeof lp._oboutEditor_onFormSubmit=="undefined"){lp._oboutEditor_onFormSubmit=lp._onsubmit; lp._onsubmit= function (){for (var oh=0; oh<HTMLEditor.activeEditors.length; oh++){if (HTMLEditor.activeEditors[oh].I9){HTMLEditor.activeEditors[oh].X.ip= false; }}var le= true; if (lp._oboutEditor_onFormSubmit!=null && typeof lp._oboutEditor_onFormSubmit!="undefined")le=lp._oboutEditor_onFormSubmit(); for (var oh=0; oh<HTMLEditor.activeEditors.length; oh++){if (HTMLEditor.activeEditors[oh].I9){var X=HTMLEditor.activeEditors[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 (Ik,value){G(Ik,value); for (var oh=0; oh<HTMLEditor.activeEditors.length; oh++){if (HTMLEditor.activeEditors[oh].I9){var X=HTMLEditor.activeEditors[oh].X; if (document.getElementById(X.mainDivId)!=null){var ic=document.getElementById(X.mainDivId).parentNode; while (ic && ic!=Ik && ic.tagName && ic.tagName.toUpperCase()!="BODY")ic=ic.parentNode; if (ic==Ik){if (!value){if (X.mainDivVisible && X.ir){X.setVisibility( false); }}else {if (X.lt() && !X.mainDivVisible && X.ir){X.setVisibility( true); }}}}}}};}if (typeof window.Page_ClientValidate=="function"){var i60=window.Page_ClientValidate; window.Page_ClientValidate= function (o23){for (var oh=0; oh<HTMLEditor.activeEditors.length; oh++){if (HTMLEditor.activeEditors[oh].I9){var X=HTMLEditor.activeEditors[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.l15=="html")I18=X.O19; else I18=X.I14.value; }else if (HTMLEditor.is_ie){if (X.i1=="html"){I18=X.I1.body.innerHTML; }else {if (X.I14)I18=X.I14.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.activeEditors[oh].oa=oa; }}var le=i60(o23); for (var oh=0; oh<HTMLEditor.activeEditors.length; oh++){if (HTMLEditor.activeEditors[oh].I9){var X=HTMLEditor.activeEditors[oh].X; var oa=HTMLEditor.activeEditors[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.I60=["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.o2r= function (html){var le=HTMLEditor.i12(html.replace(/[\0-\x1f]+/g," ")); var o61; 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 {o61=le; le=le.replace(/<([^>]*)(?:class|size|lang|face|start|type|border|[ovwxp]:\w+)=(?:'[^']*'|"[^"]*"|[^> ]+)([^>]*)>/ig,"<$1$2>"); }while (le!=o61);var div=document.createElement("div"); div.innerHTML=le; function I21(ic){var i38=ic.childNodes.length; for (var i=0; i<ic.childNodes.length; i++){var i1v=ic.childNodes.item(i); if (i1v.nodeType==1){if (i1v.tagName.indexOf("/")>=0){i--; i1v.parentNode.removeChild(i1v); }else {var search=i1v.tagName.toLowerCase(); var Ot= false; var O61=HTMLEditor.I60.length; for (var oh=0; oh<O61; oh++)if (HTMLEditor.I60[oh]==search){Ot= true; break; }I21(i1v); if (!Ot){i+=i1v.childNodes.length; while (i1v.firstChild)i1v.parentNode.insertBefore(i1v.firstChild,i1v); i1v.parentNode.removeChild(i1v); i--; }else {var l61=i1v.style.backgroundColor; var i61=i1v.style.color; i1v.style.cssText=""; i1v.removeAttribute("style"); if (i1v.getAttribute("width") && i1v.getAttribute("width").length>0)i1v.style.width=i1v.getAttribute("width"); if (i1v.width && i1v.width.length>0)i1v.style.width=i1v.width; i1v.width=""; try {i1v.removeAttribute("width"); }catch (t){}if (i1v.getAttribute("height") && i1v.getAttribute("height").length>0)i1v.style.height=i1v.getAttribute("height"); if (i1v.height && i1v.height.length>0)i1v.style.height=i1v.height; i1v.height=""; try {i1v.removeAttribute("height"); }catch (t){}if (search=="table"){i1v.style.borderLeftWidth="1px"; i1v.style.borderLeftColor="black"; i1v.style.borderLeftStyle="solid"; i1v.style.borderTopWidth="1px"; i1v.style.borderTopColor="black"; i1v.style.borderTopStyle="solid"; i1v.style.backgroundColor=l61; i1v.style.color=i61; }if (search=="td"){i1v.style.borderRightWidth="1px"; i1v.style.borderRightColor="black"; i1v.style.borderRightStyle="solid"; i1v.style.borderBottomWidth="1px"; i1v.style.borderBottomColor="black"; i1v.style.borderBottomStyle="solid"; i1v.style.backgroundColor=l61; i1v.style.color=i61; }if (search=="font" || search=="span"){i1v.style.backgroundColor=l61; i1v.style.color=i61; var o30=i1v.attributes; var i38=0; for (var I5k=0; I5k<o30.length; ++I5k){var a=o30.item(I5k); if (!a.specified)continue; i38++; }if (i38==0 && i1v.style.cssText==""){i+=i1v.childNodes.length; while (i1v.firstChild)i1v.parentNode.insertBefore(i1v.firstChild,i1v); i1v.parentNode.removeChild(i1v); i--; }}}}}}}I21(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 {o61=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!=o61);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.Iz= function (ij,clientX,clientY){var oq; var lq; var parent; var X=this ; if (HTMLEditor.I10)this.f= true; X.i1f(); if (HTMLEditor.is_Safari && ij!=null){parent=ij.target; }else {oq=X.Oq(); lq=X.iq(oq); parent=HTMLEditor.getSelParent(X); }var I61= false; var o62=parent; var O62=parent; X.l62=[]; X.o10=null; while (O62.nodeType==3 || (O62.tagName && O62.tagName.toUpperCase()!="BODY")){var par=O62.parentNode; var i62=0; for ( ; i62<par.childNodes.length; i62++)if (par.childNodes.item(i62)==O62)break; X.l62.push(i62); O62=O62.parentNode; }setTimeout( function (){var I62=document.createElement("DIV"); I62.className="CNTXT_div"; var html=new I2a(); var o63=0; html.write("<table>"); X.Oe=[]; var O63=X._ContextMenu; for (var oh=0; oh<O63.length; oh++){O63[oh][3]= false; }while (parent!=null){if (parent.tagName){if (parent.getAttribute(HTMLEditor.is) && parent.getAttribute(HTMLEditor.is).length>0){}else {var i9=(o63>0); for (var oh=0; oh<O63.length; oh++){var l63=O63[oh][0].toUpperCase().split(" "); var i63= true; var tagName=parent.tagName; if (parent.getAttribute("dummytag") && parent.getAttribute("dummytag").length>0)tagName=parent.getAttribute("dummytag"); if (l63[0]==tagName.toUpperCase() && l63.length>1){var o30=parent.attributes; var value=""; var name=""; i63= false; for (var i=0; i<o30.length; ++i){var a=o30.item(i); if (!a.specified)continue; name=a.name.toUpperCase(); value=a.value.toUpperCase(); if (name==l63[1]){i63= true; break; }}if (i63 && l63.length>2){if (l63[2]!=value){i63= false; }else {if (value.toLowerCase()=="application/x-mplayer2")I61= true; }}}if (parent.className && parent.className==HTMLEditor.Il)i63= false; if (((l63[0]==tagName.toUpperCase()) || (HTMLEditor.contentEditable(parent, true) && l63[0].toLowerCase()=="#contenteditable#")) && !O63[oh][3] && !O63[oh][6] && i63){if (HTMLEditor.contentEditable(parent, true) && l63[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>"); o63++; i9= false; }O63[oh][3]= true; var I63=HTMLEditor.is_ie || O63[oh][4]; if (O63[oh][5] && typeof O63[oh][5]=="function"){I63 &= O63[oh][5](X,parent); }if (I63){var O62=parent; var lg=[]; while (O62.tagName.toUpperCase()!="BODY"){var par=O62.parentNode; var i62=0; for ( ; i62<par.childNodes.length; i62++)if (par.childNodes.item(i62)==O62)break; lg.push(i62); O62=O62.parentNode; }X.Oe.push([O63[oh][1],lg,(O63[oh][5] && typeof O63[oh][5]=="string")]); }else {X.Oe.push([null,[]]); }if (O63[oh][1]==null)html.write("<tr><td nowrap><hr></td></tr>"); else html.write("<tr><td nowrap>&nbsp;&nbsp;&nbsp;"+O63[oh][2]+"</td></tr>"); o63++; }}}}parent=parent.parentNode; }html.write("</table>"); if (o63>0){if (HTMLEditor.is_ie){if (oq.type.toLowerCase()=="control"){try {X.o10=X.I1.body.createControlRange(); while (lq.length>0){X.o10.add(lq.item(0)); lq.remove(0); try {lq.collapse( false); }catch (t){}}oq.empty(); }catch (t){}}}var I1y=document.createElement("div"); I1y.innerHTML=html.toString(); var o64=I1y.firstChild; o64.className="CNTXT_menu"; for (var i=0; i<o63; i++){var O64=o64.rows.item(i); if (X.Oe[i][0])O64.className="CNTXT_item"; else O64.className="CNTXT_item_disable"; }function l64(){for (var i=0; i<o63; i++){var O64=o64.rows.item(i); var i64=O64.cells.item(0); i64.style.width="auto"; i64.style.verticalAlign="top"; i64.style.borderWidth="0px"; i64.style.margin="0px"; i64.style.padding="0px"; i64.style.fontWeight="normal"; if (X.Oe[i][0]){O64.className="CNTXT_item"; HTMLEditor.iv([O64],["mouseover"], function (t){var Ik; if (HTMLEditor.is_ie){t=window.event; Ik=t.srcElement; }else {Ik=t.target; }while (Ik && (!Ik.tagName || Ik.tagName.toUpperCase()!="TR"))Ik=Ik.parentNode; Ik.className="CNTXT_item_over"; return true; } ); HTMLEditor.iv([O64],["mouseout"], function (t){var Ik; if (HTMLEditor.is_ie){t=window.event; Ik=t.srcElement; }else {Ik=t.target; }while (Ik && (!Ik.tagName || Ik.tagName.toUpperCase()!="TR"))Ik=Ik.parentNode; Ik.className="CNTXT_item"; HTMLEditor._stopEvent(t); } ); HTMLEditor.iv([O64],["mousedown"], function (t){var Ik; if (HTMLEditor.is_ie){t=window.event; Ik=t.srcElement; }else {Ik=t.target; }while (Ik && (!Ik.tagName || Ik.tagName.toUpperCase()!="TR"))Ik=Ik.parentNode; HTMLEditor._stopEvent(t); setTimeout( function (){var o2f= 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 (lq!=null)try {lq.select(); }catch (t){}var I64=X.Oe[Ik.rowIndex][0]; var o65=X.I1.body; var O65=X.I1.body; var l65=!(X.Oe[Ik.rowIndex][2]); var lg=X.Oe[Ik.rowIndex][1]; var oe=X.Id.parentNode.removeChild(X.Id); while (lg.length>0)o65=o65.childNodes.item(lg.pop()); while (X.l62.length>0)O65=O65.childNodes.item(X.l62.pop()); delete oe; if (HTMLEditor.is_Safari)if (X.O10){var i65=X.Oq(); var i1b=X.O10; X.i17(i65,i1b); X.O10=null; }if (l65){X.l10(); o2f= true; }I64(X,o65,O65); X.Id=null; HTMLEditor.Id=null; X.Oe=null; }catch (w){try {if (o2f)X.I1e( false); if (HTMLEditor.is_ie){HTMLEditor.l1o(Ik,X); }}catch (i13){}}} ,012); } ); }else {O64.className="CNTXT_item_disable"; }}}if (HTMLEditor.is_ie && I61)setTimeout( function (){X.o10=null; lq=null; X.i2f(null,l64);} ,0); else l64(); HTMLEditor.iv([I62],["contextmenu"], function (t){try {if (HTMLEditor.is_ie)lq.select(); else X.i17(oq,lq); }catch (I65){}HTMLEditor._stopEvent(t); return false; } ); I62.style.position="absolute"; I62.style.display=""; I62.appendChild(o64); I62.style.visibility="hidden"; var l58=X.A; var Ik=X._textArea.parentNode.parentNode; var i1z=0,_top=0; if (!X._InsideOboutWindow)while (Ik!=X.A){if (HTMLEditor.iy(Ik,"position").toLowerCase()=="absolute"){l58=X._textArea.parentNode.parentNode; var O2t=HTMLEditor.l2t((X.O1.document.compatMode=="BackCompat" && HTMLEditor.is_ie)?l58:Ik, false); i1z=O2t.i1z; _top=O2t._top; break; }Ik=Ik.parentNode; }l58.appendChild(I62); var y; var x; var I55; var zIndex=045070; Ik=X._iframe; var o66=HTMLEditor.l2t(X._iframe, false); while (Ik && typeof Ik!="undefined" && Ik!=l58){var O66=parseInt(HTMLEditor.iy(Ik,"z-index")); if (!isNaN(O66) && O66>zIndex)zIndex=O66+1; Ik=Ik.parentNode; }y=clientY+o66._top-_top; x=clientX+o66.i1z-i1z; var I2s=(X.O1.document.compatMode=="BackCompat")?X.A.clientWidth:X.O1.document.documentElement.clientWidth; var o2t=(X.O1.document.compatMode=="BackCompat")?X.A.clientHeight:X.O1.document.documentElement.clientHeight; var Height=o2t+O56(X.O1.document); var Width=I2s+_GetScrollLeft(X.O1.document); var l66=I62.offsetHeight; var i66=I62.offsetWidth; var I66=y; var o67=x; if (I66+l66>Height)y-=I66+l66-Height; if (o67+i66>Width)x-=o67+i66-Width; I62.style.top=y+"px"; I62.style.left=x+"px"; X.Id=I62; HTMLEditor.Id=I62; I62.style.visibility="visible"; I62.style.zIndex=zIndex; }else { delete I62; X.Id=null; HTMLEditor.Id=null; }} ,0); if (ij!=null)HTMLEditor._stopEvent(ij); return false; };HTMLEditor.prototype.o1g= function (){var oq; var lq; var parent; var X=this ; oq=X.Oq(); lq=X.iq(oq); parent=HTMLEditor.getSelParent(X); var I2s=X.I1.body.offsetWidth; var o2t=X.I1.body.offsetHeight; var o56=o2t/2; if (o56<=0)o56=024; var clientY=o56; var clientX=I2s/2; X.Iz(null,clientX,clientY); };HTMLEditor.i22= function (Ik,ox,Om){var I22; if (HTMLEditor.is_ie && Ik.tagName && (Ik.tagName.toUpperCase()=="EMBED" || Ik.tagName.toUpperCase()=="OBJECT")){var div=ox.createElement("DIV"); try {div.innerHTML=Ik.outerHTML; I22=div.firstChild; }catch (t){I22=Ik; } delete div; }else I22=Ik.cloneNode(Om); return I22; };HTMLEditor.I34= function (O67){var value; var i38; try {i38=parseInt(O67)-1; }catch (t){return O67; }switch (i38){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=O67.replace(/"/g,"&quot;"); }return value; };HTMLEditor.od= function (ij){if (ij.propertyName=="style.display")if (HTMLEditor.l67==null || typeof HTMLEditor.l67=="undefined"){HTMLEditor.l67= function (){for (var i=0; i<HTMLEditor.Ov.length; i++){var parent=HTMLEditor.Ov[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.l67=null; } ,0); } ; setTimeout(HTMLEditor.l67,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.Ov=[]; HTMLEditor.ld= function (l1p){var le=[]; for (var i=0; i<HTMLEditor.Ov.length; i++){var l16=HTMLEditor.Ov[i]; if (l16!=l1p){le.push(l16); }}HTMLEditor.Ov=le; };if (!HTMLEditor.is_ie)try {HTMLElement.prototype.__defineGetter__("innerText", function (){var html=new I2a( true); HTMLEditor.i67(this,html); return html.toString(); } );}catch (w){}HTMLEditor.i67= function (o2g,html){var l37=o2g.childNodes; for (var i=0; i<l37.length; i++){var ic=l37[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.I67(ic))html.write("\n"); if (HTMLEditor.o68(ic))html.write("\t"); if (display!="none" && visibility!="hidden")HTMLEditor.i67(ic,html); if (HTMLEditor.O68(ic))html.write("\n"); }}};HTMLEditor.I67= function (Ik){var l68=" div table p pre ol ul blockquote form fieldset "; return (l68.indexOf(" "+Ik.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.O68= function (Ik){var l68=" br div table tr p pre ol ul li hr blockquote form fieldset legend "; return (l68.indexOf(" "+Ik.tagName.toLowerCase()+" ")!=-1); };HTMLEditor.o68= function (Ik){var l68=" td li "; return (l68.indexOf(" "+Ik.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 (Ik,Om){var i68=Ik; while (Ik!=null){try {var I68=null; if (Ik.contentEditable!=null && typeof Ik.contentEditable!="undefined" && !(HTMLEditor.is_Safari || HTMLEditor.I10)){if (Ik.contentEditable!="inherit"){if (!Ik.contentEditable || Ik.contentEditable=="false")I68= false; else I68= true; }}else {var value=Ik.getAttribute("contenteditable"); if (typeof value=="boolean")I68=value; else if (typeof value=="string" && value.toLowerCase()=="false")I68= false; else if (typeof value=="string" && value.toLowerCase()=="true")I68= true; }if (I68!=null && typeof I68=="boolean"){if (!I68){return Ik; }return null; }}catch (w){}if (typeof Om!="undefined" && Om)return null; if (Ik.tagName!=null && typeof Ik.tagName!="undefined" && (Ik.tagName.toUpperCase()=="BODY" || Ik.tagName.toUpperCase()=="HTML"))break; Ik=Ik.parentNode; }return null; };HTMLEditor.prototype.l48= function (){var X=this ; var i48=this.Oq(); var lq; try {lq=this.iq(i48); }catch (w){return false; }var Ik; if (!HTMLEditor.is_ie){Ik=HTMLEditor.contentEditable(lq.startContainer); if (Ik==null)Ik=HTMLEditor.contentEditable(lq.endContainer); }else Ik=HTMLEditor.contentEditable(HTMLEditor.getSelParent(X)); if (HTMLEditor.is_ie && Ik!=null){try {lq.remove(Ik); }catch (t){}lq=X.I1.body.createControlRange(); lq.add(Ik); lq.select(); }else if (!HTMLEditor.is_ie && Ik!=null){var oq=X.Oq(); var O17; if (Ik.nextSibling!=null && Ik.nextSibling.nodeType==3){O17=Ik.nextSibling; }else {O17=X.I1.createTextNode(""); if (Ik.nextSibling!=null)Ik.parentNode.insertBefore(O17,Ik.nextSibling); else Ik.parentNode.appendChild(O17); }X.l17(oq); var lq=X.iq(oq); lq.setStart(O17,0); lq.setEnd(O17,0); X.i17(oq,lq); }return true; };HTMLEditor.O4e= function (t){var o69=t.keyCode?t.keyCode:t.which; var O69=t.shiftKey?t.shiftKey: ((o69==020)? true : false); if (((o69>=0101 && o69<=0132) && !O69) || ((o69>=0141 && o69<=0172) && O69))return true; else return false; };HTMLEditor.l69= {i69: 1,I69: 2,o6a: 3,O6a: 4,l6a: 5,i6a: 6,I6a: 7,o6b: 8,O6b: 011,l6b: 012,i6b: 013,I6b: 014 } ; HTMLEditor.o6c= function (o2g){return o2g.nodeType==HTMLEditor.l69.O6b?o2g:o2g.ownerDocument || o2g.document; } ; HTMLEditor.O6c= function (l6c){var ox; if (l6c.nodeType==HTMLEditor.l69.O6b){ox=l6c; }else {ox=HTMLEditor.o6c(l6c); }if (HTMLEditor.is_ie && ox.compatMode!="CSS1Compat"){return ox.body; }return ox.documentElement; };HTMLEditor.I5d= function (Ik){var ox=HTMLEditor.o6c(Ik); var i6c=HTMLEditor.I29 && ox.getBoxObjectFor && HTMLEditor.iy(Ik,"position")=="absolute" && (Ik.style.top=="" || Ik.style.left==""); var I6c=HTMLEditor.O2j && !HTMLEditor.l2o.l2o("1.8.0.11"); var O4q= {x: 0,y: 0 } ; var o6d=HTMLEditor.O6c(ox); if (Ik==o6d){return O4q; }var parent=null; var O6d; if (ox.getBoxObjectFor && !i6c && !I6c){O6d=ox.getBoxObjectFor(Ik); var l6d=ox.getBoxObjectFor(o6d); O4q.x=O6d.screenX-l6d.screenX; O4q.y=O6d.screenY-l6d.screenY; }else if (Ik.getBoundingClientRect){O6d=Ik.getBoundingClientRect(); var scrollTop=o6d.scrollTop; var scrollLeft=o6d.scrollLeft; O4q.x=O6d.left+scrollLeft; O4q.y=O6d.top+scrollTop; }else {var i6d=Ik; while (Ik && typeof Ik!="undefined" && Ik.tagName.toUpperCase()!="BODY" && Ik.tagName.toUpperCase()!="HTML"){O4q.x+=parseInt(Ik.offsetLeft); O4q.y+=parseInt(Ik.offsetTop); Ik=Ik.offsetParent; if (Ik && typeof Ik!="undefined"){if (Ik.clientLeft)O4q.x+=parseInt(Ik.clientLeft); if (Ik.clientTop)O4q.y+=parseInt(Ik.clientTop); }}Ik=i6d; if (HTMLEditor.I10 || (HTMLEditor.I2i && HTMLEditor.iy(Ik,"position")=="absolute")){O4q.y-=ox.body.offsetTop; }parent=Ik.offsetParent; while (parent && parent!=ox.body){O4q.x-=parent.scrollLeft; if (!HTMLEditor.I10 || parent.tagName!="TR"){O4q.y-=parent.scrollTop; }parent=parent.offsetParent; }}return O4q; } ; 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();
