var FCKeditor=function(_1,_2,_3,_4,_5){this.InstanceName=_1;this.Width=_2||"100%";this.Height=_3||"500";this.ToolbarSet="metaFCK"||_4;this.Value=_5||"";this.BasePath="modules/FCKEditor/pnincludes/";this.CheckBrowser=true;this.DisplayErrors=true;this.EnableSafari=false;this.EnableOpera=false;this.Config=new Object();this.OnError=null;};FCKeditor.prototype.Version="2.4";FCKeditor.prototype.VersionBuild="1148";FCKeditor.prototype.Create=function(){document.write(this.CreateHtml());};FCKeditor.prototype.CreateHtml=function(){if(!this.InstanceName||this.InstanceName.length==0){this._ThrowError(701,"You must specify an instance name.");return "";}var _6="<div>";if(!this.CheckBrowser||this._IsCompatibleBrowser()){_6+="<input type=\"hidden\" id=\""+this.InstanceName+"\" name=\""+this.InstanceName+"\" value=\""+this._HTMLEncode(this.Value)+"\" style=\"display:none\" />";_6+=this._GetConfigHtml();_6+=this._GetIFrameHtml();}else{var _7=this.Width.toString().indexOf("%")>0?this.Width:this.Width+"px";var _8=this.Height.toString().indexOf("%")>0?this.Height:this.Height+"px";_6+="<textarea name=\""+this.InstanceName+"\" rows=\"4\" cols=\"40\" style=\"width:"+_7+";height:"+_8+"\">"+this._HTMLEncode(this.Value)+"</textarea>";}_6+="</div>";return _6;};FCKeditor.prototype.ReplaceTextarea=function(){if(!this.CheckBrowser||this._IsCompatibleBrowser()){var _9=document.getElementById(this.InstanceName);var _a=document.getElementsByName(this.InstanceName);var i=0;while(_9||i==0){if(_9&&_9.tagName.toLowerCase()=="textarea"){break;}_9=_a[i++];}if(!_9){alert("Error: The TEXTAREA with id or name set to \""+this.InstanceName+"\" was not found");return;}_9.style.display="none";this._InsertHtmlBefore(this._GetConfigHtml(),_9);this._InsertHtmlBefore(this._GetIFrameHtml(),_9);}};FCKeditor.prototype._InsertHtmlBefore=function(_c,_d){if(_d.insertAdjacentHTML){_d.insertAdjacentHTML("beforeBegin",_c);}else{var _e=document.createRange();_e.setStartBefore(_d);var _f=_e.createContextualFragment(_c);_d.parentNode.insertBefore(_f,_d);}};FCKeditor.prototype._GetConfigHtml=function(){var _10="";for(var o in this.Config){if(_10.length>0){_10+="&amp;";}_10+=encodeURIComponent(o)+"="+encodeURIComponent(this.Config[o]);}return "<input type=\"hidden\" id=\""+this.InstanceName+"___Config\" value=\""+_10+"\" style=\"display:none\" />";};FCKeditor.prototype._GetIFrameHtml=function(){var _12="fckeditor.html";try{if((/fcksource=true/i).test(window.top.location.search)){_12="fckeditor.original.html";}}catch(e){}var _13=this.BasePath+"editor/"+_12+"?InstanceName="+encodeURIComponent(this.InstanceName);if(this.ToolbarSet){_13+="&amp;Toolbar="+this.ToolbarSet;}return "<iframe id=\""+this.InstanceName+"___Frame\" src=\""+_13+"\" width=\""+this.Width+"\" height=\""+this.Height+"\" frameborder=\"0\" scrolling=\"no\"></iframe>";};FCKeditor.prototype._IsCompatibleBrowser=function(){return FCKeditor_IsCompatibleBrowser(this.EnableSafari,this.EnableOpera);};FCKeditor.prototype._ThrowError=function(_14,_15){this.ErrorNumber=_14;this.ErrorDescription=_15;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,_14,_15);}};FCKeditor.prototype._HTMLEncode=function(_16){if(typeof (_16)!="string"){_16=_16.toString();}_16=_16.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return _16;};function FCKeditor_IsCompatibleBrowser(_17,_18){var _19=navigator.userAgent.toLowerCase();if(_19.indexOf("msie")!=-1&&_19.indexOf("mac")==-1&&_19.indexOf("opera")==-1){var _1a=navigator.appVersion.match(/MSIE (.\..)/)[1];return (_1a>=5.5);}if(navigator.product=="Gecko"&&navigator.productSub>=20030210&&!(typeof (opera)=="object"&&opera.postError)){return true;}if(_18&&navigator.appName=="Opera"&&parseInt(navigator.appVersion,10)>=9){return true;}if(_17&&_19.indexOf("safari")!=-1){return (_19.match(/safari\/(\d+)/)[1]>=312);}return false;}