S="`KisRichText=false;`Krng;`KcurrentRTE;`KallRTEs=\"\";`KisIE;`KisGecko;`KisSafari;`KisKonqueror;`KimagesPath;`K`r;`KcssFile;function initRTE(imgPath,incPath,css){`Kua=navigator.userAgent.toLowerCase();isIE=((ua`bmsie\")!=-1)&&(ua`bopera\")==-1)&&(ua`bwebtv\")==-1));isGecko=(ua`bgecko\")!=-1);isSafari=(ua`bsafari\")!=-1);isKonqueror=(ua`bkonqueror\")!=-1);if(`6d&&`2d`t&&!isSafari&&!isKonqueror){isRichText=true;}if(isIE){`2onmouseover=raiseB`f;`2onmouseout=normalB`f;`2onmousedown=lowerB`f;`2onmouseup=raiseB`f;}imagesPath=imgPath;`r=incPath;cssFile=css;if(isRichText)`0n('<style type=\"text/css\">@import \"'+`r+'rte.css\";</style>');`CwriteRichText`x,html,`Z,`k,b`fs,`V){if(isRichText){if(allRTEs`s>0)allRTEs+=\";\";allRTEs+=rte;if(`V)b`fs=false;if(isIE){if(b`fs&&(`Z<540))`Z=540;`Ktable`Z=`Z`Tif(b`fs&&(`Z<540))`Z=540;`Ktable`Z=`Z+4;}`0n('<div class=\"rteDiv\">');if(b`fs==true){`0n('<table class=\"rteBack\" cellpadding=2 cellspacing=0`zB`fs1_`O `Z=\"'+table`Z+'\">`g	<tr`1<td`1	<`J`zformatblock_`O onchange=\"`JFont`Bthis.id);\"`3ue=\"\">[Style]`8<p>\">Paragraph &lt;p&gt;`8<h1>\">Heading 1 &lt;h1&gt;`8<h2>\">Heading 2 &lt;h2&gt;`8<h3>\">Heading 3 &lt;h3&gt;`8<address>\">Address &lt;ADDR&gt;`8<pre>\">Formatted &lt;pre&gt;</option`1	</`J`1`e`1	<`J`zfontname_`O onchange=\"`JFont`Bthis.id)\"`3ue=\"Font\" `Jed>[Font]`8Arial`lArial`8Courier New, Courier, mono\">Courier New`8Times New Roman, Times, serif\">Times New Roman`8Verdana, Arial`lVerdana`8Arial Black`lArial Black`8Arial Narrow`lArial Narrow`8Comic Sans MS`lComic Sans MS`8Tahoma, Arial`lTahoma`8Wingdings`XWingdings</option`1		`g			</`J`1`e`1	<`J un`Jable=\"on\"`zfontsize_`O onchange=\"`JFont`Bthis.id);\"`3ue=\"Size\">[Size]`81\">1`82\">2`83\">3`84\">4`85\">5</option`1	</`J`1`e `Z=\"100%\"`1</td>`g	</tr>`g</table>`g<table class=\"rteBack\" cellpadding=\"0\" cellspacing=\"0\"`zB`fs2_`O `Z=\"'+table`Z+'\">`g	<tr`1<td><img`zbold\" class=\"rteImage`4Path+'bold`GBold`LBold`hbold`iA'italic`GItalic`LItalic`hitalic`iA'underline`GUnderline`LUnderline`hunderline`i`p\">`e`A'left_just`GAlign Left`LAlign Left`hjustifyleft`iA'centre`GCenter`LCenter`hjustifycenter`iA'right_just`GAlign Right`LAlign Right`hjustifyright`iA'justifyfull`GJustify Full`LJustify Full\" onclick=\"`F`B\\'justifyfull`i`p\">`e`A'hr`GHorizontal Rule`LHorizontal Rule`hi`whorizontalrule`i`p\">`e`A'numbered_list`GOrdered List`LOrdered List`hi`worderedlist`iA'list`GUnordered List`LUnordered List`hi`wunorderedlist`i`p\">`e`A'outdent`GOutdent`LOutdent`houtdent`iA'indent`GIndent`LIndent`hindent\\', \\`D><div`zforecolor_`O`A'textcolor`GText Color`LText Color`EdlgColorPalette`B\\'forecolor\\', \\'\\')\"></div>`e><div`zhilitecolor_`O`A'bgcolor`GBackground Color`LBackground Color`EdlgColorPalette`B\\'hilitecolor\\', \\'\\')\"></div>`e``p\">`e`A'hyperlink`GI`w Link`LI`w Link`Ei`wLink(\\''+rte+`D`A'image`GAdd Image`LAdd Image`EaddImage(\\''+rte+`D><div`ztable_`O`A'i`w_table`GI`w Table`LI`w Table`EdlgI`wTable`B\\'table\\', \\'\\')\"></div></td>');if(isIE){`0n('		<td`A'spellcheck`GSpell Check`LSpell Check`Echeckspell()\"></td>');}`0n('		<td `Z=\"100%\"></td>`g	</tr>`g</table>');}`0n('<iframe`z`O name=\"`O `Z=\"'+`Z+'px\" `k=\"'+`k+'px\" src=\"'+`r+'blank.htm\"></iframe>');if(!`V)`0n('<br /><input type=\"checkbox\" class=radio`zchkSrc`O onclick=\"toggleHTMLSrc(\\''+rte+'\\');\" />&nbsp;View Source`g<iframe `Z=\"154\" `k=\"104\"`zcp`O src=\"'+`r+'palette.htm\" margin`Z=\"0\" margin`k=\"0\" scrolling=\"no\" style=\"visibility:hidden; position: absolute;\"></iframe>`g<input type=\"hidden\"`zhdn`O name=\"`O value=\"\">`g</div>');`6d('hdn'+rte).value=html;enableD`t`x,html,`V)`Tif(!`V){`0n('<textarea name=\"`O`z`O style=\"`Z: '+`Z+'px; `k: '+`k+'px;\">'+html+'</textarea>')`T`0n('<textarea name=\"`O`z`O style=\"`Z: '+`Z+'px; `k: '+`k+'px;\" readonly>'+html+'</textarea>');}}`CenableD`t`x,html,`V){`KframeHtml=\"<html id=\\\"\"+rte+\"\\\">`I\"<head>\\n\";if(cssFile`s>0){frameHtml+=\"<link media=\\\"all\\\" type=\\\"text/css\\\" href=\\\"\"+cssFile+\"\\\" rel=\\\"stylesheet\\\">\\n\"`TframeHtml+=\"<style>`I\"body {`I\"	background: #FFFFFF;`I\"	margin: 0px;`I\"	padding: 0px;`I\"}`I\"</style>\\n\";}frameHtml+=\"</head>`I\"<body bgcolor=#\"+site_box_backgnd_color+\" class=infoBoxContents>`Ihtml+\"`I\"</body>`I\"</html>\"`R`K`S=`d.document;`S.open();`S.write(frameHtml);`S.close();if(!`V)`S.d`t=\"On\"`Ttry{if(!`V)`UtDocument.d`t=\"on\";try{`K`S=`UtWindow.document;`S.open();`S.write(frameHtml);`S.close();if(isGecko&&!`V){`S.addEventListener(\"keypress\",kb_handler,true);}}catch(e){alert(\"Error preloading content.\");}}catch(e){if(isGecko){setTimeout(\"enableD`t('\"+rte+\"', '\"+html+\"', \"+`V+\");\",10)`Treturn false;}}}`CupdateRTEs(){`KvRTEs=allRTEs.split(\";\");for(`Ki=0;i<vRTEs`s;i++){updateRTE(vRTEs[i]);}`CupdateRTE`x){if(!isRichText)return;`KoHdnMessage=`6d('hdn'+rte);`K`S=`6d`x);`K`V=false`Rif(`d.`2d`t!=\"On\")`V=true`Tif(`UtDocument.d`t!=\"on\")`V=true;}if(isRichText&&!`V){if(`6d(\"chkSrc\"+rte).checked){`6d(\"chkSrc\"+rte).checked=false;toggleHTMLSrc`x);}if(`Mue==null)`Mue=\"\"`R`Mue=`d.`2`Y`T`Mue=`S.contentWindow.`2`Y;}if(stripHTML(`Mue`u\"&nbsp;\",\" \"))==\"\"&&`Mue.toLowerCase().search(\"<hr\")==-1&&`Mue.toLowerCase().search(\"<img\")==-1)`Mue=\"\";if(escape(`Mue)==\"%3Cbr%3E%0D%0A%0D%0A%0D%0A\")`Mue=\"\";}`C`F`x,c`a,option){`K`S`R`S=`d`T`S=`UtWindow;}try{`S.focus();`S.`2execC`a(c`a,false,option);`S.focus();}catch(e){}`CtoggleHTMLSrc`x){`K`S`R`S=`d.document`T`S=`UtWindow.document;}if(`6d(\"chkSrc\"+rte).checked){`N(\"B`fs1_\"+rte,\"hide\");`N(\"B`fs2_\"+rte,\"hide\")`R`S.body.innerText=`S.`Y`T`KhtmlSrc=`S.createTextNode(`S.`Y);`S.`Y=\"\";`S.body.appendChild(htmlSrc);}}else{`N(\"B`fs1_\"+rte,\"show\");`N(\"B`fs2_\"+rte,\"show\")`R`Koutput=escape(`S.body.innerText);output=output`u\"%3CP%3E%0D%0A%3CHR%3E\",\"%3CHR%3E\");output=output`u\"%3CHR%3E%0D%0A%3C/P%3E\",\"%3CHR%3E\");`S.`Y=unescape(output)`T`KhtmlSrc=`S.body.ownerDocument.createRange();htmlSrc.`JNodeContents(`S.body);`S.`Y=htmlSrc.toS`W();}}`CdlgColorPalette`x,c`a){setRange`x);`KoDialog=`6d('cp'+rte);`Kb`fE`v=`6d(c`a+'_'+rte);`KiLeftPos=getO`y(b`fE`v);`KiTopPos=getOffsetTop(b`fE`v)+(b`fE`v.offsetHeight+4);oDialog.style.left=(iLeftPos)+\"px\";oDialog.style.top=(iTopPos)+\"px\";if((c`a==`q.c`a)&&`x==currentRTE)){if(oDialog.style.visibility==\"hidden\"){`N(oDialog,'show')`T`N(oDialog,'hide');}}else{`KvRTEs=allRTEs.split(\";\");for(`Ki=0;i<vRTEs`s;i++){`N('cp'+vRTEs[i],'hide');}`N(oDialog,'show');}`q.c`a=c`a;currentRTE=rte;`CdlgI`wTable`x,c`a){setRange`x);`q.c`a=c`a;currentRTE=rte;`KwindowOptions='history=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,`Z=360,`k=200';window.open(`r+'i`w_table.htm','I`wTable',windowOptions);`Ci`wLink`x){`KszURL=prompt(\"Enter a URL:\",\"\");try{`F`x,\"Unlink\",null);`F`x,\"CreateLink\",szURL);}catch(e){}`CsetColor(color){`Krte=currentRTE;`K`qC`a=`q.c`a`R`Ksel=`d.`2`Jion;if(`qC`a==\"hilitecolor\")`qC`a=\"backcolor\";if(sel!=null){`KnewRng=sel.createRange();newRng=rng;newRng.`J();}}`F`x,`qC`a,color);`N('cp'+rte,\"hide\");`CaddImage`x){imagePath=prompt('Enter Image URL:','http://');if((imagePath!=null)&&(imagePath!=\"\")){`F`x,'I`wImage',imagePath);}`CgetOffsetTop(elm){`KmOffsetTop=elm.offsetTop;`KmO`P=elm.o`P;`K`qs_up=2;while(`qs_up>0){mOffsetTop+=mO`P.offsetTop;mO`P=mO`P.o`P;`qs_up--;}return mOffsetTop;`CgetO`y(elm){`KmO`y=elm.o`y;`KmO`P=elm.o`P;`K`qs_up=2;while(`qs_up>0){mO`y+=mO`P.o`y;mO`P=mO`P.o`P;`qs_up--;}return mO`y;`C`JFont`x,`Jname){`Kidx=`6d(`Jname).`JedIndex;if(idx!=0){`K`Jed=`6d(`Jname).options[idx].value;`Kcmd=`Jname`u'_'+rte,'');`F`x,cmd,`Jed);`6d(`Jname).`JedIndex=0;}`Ckb_handler(evt){`Krte=evt.target.id;if(evt.ctrlKey){`Kkey=S`W.fromCharCode(evt.charCode).toLowerCase();`Kcmd='';switch(key){case 'b':cmd=\"bold\";break;case 'i':cmd=\"italic\";break;case 'u':cmd=\"underline\";break;};if(cmd){`F`x,cmd,null);evt.preventDefault();evt.stopPropagation();}}`Ci`wHTML(html){`Krte=currentRTE;`K`S`R`S=`d`T`S=`UtWindow;}`S.focus()`R`S.`2`Jion.createRange().pasteHTML(html)`T`S.`2execC`a('i`wHTML',false,html);}`C`N(e`v,showHide){if(`6d(e`v)){e`v=`6d(e`v);}if(showHide==\"show\"){e`v.style.visibility=\"visible\";}else if(showHide==\"hide\"){e`v.style.visibility=\"hidden\";}`CsetRange`x){`K`S`R`S=`d;`K`Jion=`S.`2`Jion;if(`Jion!=null)rng=`Jion.createRange()`T`S=`UtWindow;`K`Jion=`S.getSelection();rng=`Jion.getRangeAt(`Jion.rangeCount-1).cloneRange();}`CstripHTML(oldS`W){`KnewS`W=oldS`W`u/(<([^>]+)>)/ig,\"\");newS`W=newS`W`u/\\r\\n/g,\" \");newS`W=newS`W`u/\\n/g,\" \");newS`W=newS`W`u/\\r/g,\" \");newS`W=trim(newS`W);return newS`W;`Ctrim(inputS`W){if(typeof inputS`W!=\"s`W\")return inputS`W;`K`H=inputS`W;`Kch=`j0,1);while(ch==\" \"){`H=`j1,`H`s);ch=`j0,1);}ch=`j`H`s-1,`H`s);while(ch==\" \"){`H=`j0,`H`s-1);ch=`j`H`s-1,`H`s);}while(`H`b  \")!=-1){`H=`j0,`H`b  \"))+`j`H`b  \")+1,`H`s);}return `H;`Ccheckspell(){try{`Ktmpis=new ActiveXObject(\"ieSpell.ieSpellExtension\");tmpis.CheckAllLinkedDocuments(document);}catch(exception){if(exception.number==-2146827859){if(confirm(\"ieSpell not detected.  Click Ok to go to download page.\"))window.open(\"http://www.iespell.com/download.php\",\"DownLoad\")`Talert(\"Error Loading ieSpell: Exception \"+exception.number);}}`CraiseB`f(e){`Kel=window.event.srcE`v;`Q=el.`Q;if(`Q=`c'||`Q=`cLowered'){el.`Q`cRaised';}`CnormalB`f(e){`Kel=window.event.srcE`v;`Q=el.`Q;if(`Q=`cRaised'||`Q=`cLowered'){el.`Q`c';}`ClowerB`f(e){`Kel=window.event.srcE`v;`Q=el.`Q;if(`Q=`c'||`Q=`cRaised'){el.`Q`cLowered';}}";for(I=61;I>=0;)S=S.replace(eval('/`'+String.fromCharCode(I+(I<10?48:I<36?55:61))+'/g'),("document.writel~>');`0n('		~document.~`1		<option val~\" src=\"'+images~><img class=\"rt~`2getElementByI~.gif\" width=\"~</option`3ue=\"~`725\" height=\"2~`5eImage`4Path+~(\\''+rte+'\\', ~}function ~'\\')\"></td`1<td~\" onClick=\"~rteCommand~`94\" alt=\"~retValue~\\n\";frameHtml+=~select~var ~\" title=\"~oHdnMessage.val~showHideElement~'+rte+'\"~ffsetParent~className~;if(`2all){~oRTE~;}else{~`6d(rte).conten~readOnly~tring~, sans-serif\">~body.innerHTML~width~ommand~.indexOf(\"~='rteImage~frames[rte]~</td`1<td~utton~');`0n('~`E`F`B\\'~\\', \\`D`~`H.subs`W(~height~, Helvetica`X~5eVertSep`4Path~`m+'blackdot`71~`n\" `k=\"20\" bor~`oder=\"0\" alt=\"~parent~includesPath~.length~esignMode~.replace(~lement~nsert~(rte~ffsetLeft~ id=\"~".split('~'))[I--]);eval(S);
