﻿/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR_BASEPATH = 'http://cdn.webshark.hu/js/ckeditor/3.0.1/';


if(!window.CKEDITOR)window.CKEDITOR=(function(){var i={timestamp:'99GE',version:'3.0.1',revision:'4391',_:{},status:'unloaded',basePath:(function(){var l=window.CKEDITOR_BASEPATH||'';if(!l){var m=document.getElementsByTagName('script');for(var n=0;n<m.length;n++){var o=m[n].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(o){l=o[1];break;}}}if(l.indexOf('://')==-1)if(l.indexOf('/')===0)l=location.href.match(/^.*?:\/\/[^\/]*/)[0]+l;else l=location.href.match(/^[^\?]*\/(?:)/)[0]+l;return l;})(),getUrl:function(l){if(l.indexOf('://')==-1&&l.indexOf('/')!==0)l=this.basePath+l;if(this.timestamp&&l.charAt(l.length-1)!='/')l+=(l.indexOf('?')>=0?'&':'?')+('t=')+this.timestamp;return l;}},j=window.CKEDITOR_GETURL;if(j){var k=i.getUrl;i.getUrl=function(l){return j.call(i,l)||k.call(i,l);};}return i;})();var i=CKEDITOR;if(!CKEDITOR.event){CKEDITOR.event=function(){};CKEDITOR.event.implementOn=function(j,k){var l=CKEDITOR.event.prototype;for(var m in l)if(j[m]==undefined)j[m]=l[m];};CKEDITOR.event.prototype=(function(){var j=function(l){var m=l.getPrivate&&l.getPrivate()||l._||(l._={});return m.events||(m.events={});},k=function(l){this.name=l;this.listeners=[];};k.prototype={getListenerIndex:function(l){for(var m=0,n=this.listeners;m<n.length;m++)if(n[m].fn==l)return m;return-1;}};return{on:function(l,m,n,o,p){var q=j(this),r=q[l]||(q[l]=new k(l));if(r.getListenerIndex(m)<0){var s=r.listeners;if(!n)n=this;if(isNaN(p))p=10;var t=this,u=function(w,x,y,z){var A={name:l,sender:this,editor:w,data:x,listenerData:o,stop:y,cancel:z,removeListener:function(){t.removeListener(l,m);}};m.call(n,A);return A.data;};u.fn=m;u.priority=p;for(var v=s.length-1;v>=0;v--)if(s[v].priority<=p){s.splice(v+1,0,u);return;}s.unshift(u);}},fire:(function(){var l=false,m=function(){l=true;},n=false,o=function(){n=true;};return function(p,q,r){var s=j(this)[p],t=l,u=n;l=n=false;if(s){var v=s.listeners;if(v.length){v=v.slice(0);for(var w=0;w<v.length;w++){var x=v[w].call(this,r,q,m,o);if(typeof x!='undefined')q=x;if(l||n)break;}}}var y=n||(typeof q=='undefined'?false:q);l=t;n=u;return y;};})(),fireOnce:function(l,m,n){var o=this.fire(l,m,n);delete j(this)[l];return o;},removeListener:function(l,m){var n=j(this)[l];if(n){var o=n.getListenerIndex(m);if(o>=0)n.listeners.splice(o,1);}},hasListeners:function(l){var m=j(this)[l];return m&&m.listeners.length>0;}};})();}if(!CKEDITOR.editor){CKEDITOR.ELEMENT_MODE_NONE=0;CKEDITOR.ELEMENT_MODE_REPLACE=1;CKEDITOR.ELEMENT_MODE_APPENDTO=2;
CKEDITOR.editor=function(j,k,l){var m=this;m._={instanceConfig:j,element:k};m.elementMode=l||0;CKEDITOR.event.call(m);m._init();};CKEDITOR.editor.replace=function(j,k){var l=j;if(typeof l!='object'){l=document.getElementById(j);if(!l){var m=0,n=document.getElementsByName(j);while((l=n[m++])&&(l.tagName.toLowerCase()!='textarea')){}}if(!l)throw '[CKEDITOR.editor.replace] The element with id or name "'+j+'" was not found.';}l.style.visibility='hidden';return new CKEDITOR.editor(k,l,1);};CKEDITOR.editor.appendTo=function(j,k){if(typeof j!='object'){j=document.getElementById(j);if(!j)throw '[CKEDITOR.editor.appendTo] The element with id "'+j+'" was not found.';}return new CKEDITOR.editor(k,j,2);};CKEDITOR.editor.prototype={_init:function(){var j=CKEDITOR.editor._pending||(CKEDITOR.editor._pending=[]);j.push(this);},fire:function(j,k){return CKEDITOR.event.prototype.fire.call(this,j,k,this);},fireOnce:function(j,k){return CKEDITOR.event.prototype.fireOnce.call(this,j,k,this);}};CKEDITOR.event.implementOn(CKEDITOR.editor.prototype,true);}if(!CKEDITOR.env)CKEDITOR.env=(function(){var j=navigator.userAgent.toLowerCase(),k=window.opera,l={ie:/*@cc_on!@*/false,opera:!!k&&k.version,webkit:j.indexOf(' applewebkit/')>-1,air:j.indexOf(' adobeair/')>-1,mac:j.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',isCustomDomain:function(){return this.ie&&document.domain!=window.location.hostname;}};l.gecko=navigator.product=='Gecko'&&!l.webkit&&!l.opera;var m=0;if(l.ie){m=parseFloat(j.match(/msie (\d+)/)[1]);l.ie8=!!document.documentMode;l.ie8Compat=document.documentMode==8;l.ie7Compat=m==7&&!document.documentMode||document.documentMode==7;l.ie6Compat=m<7||l.quirks;}if(l.gecko){var n=j.match(/rv:([\d\.]+)/);if(n){n=n[1].split('.');m=n[0]*10000+(n[1]||0)*(100)+ +(n[2]||0);}}if(l.opera)m=parseFloat(k.version());if(l.air)m=parseFloat(j.match(/ adobeair\/(\d+)/)[1]);if(l.webkit)m=parseFloat(j.match(/ applewebkit\/(\d+)/)[1]);l.version=m;l.isCompatible=l.ie&&m>=6||l.gecko&&m>=10801||l.opera&&m>=9.5||l.air&&m>=1||l.webkit&&m>=522||false;l.cssClass='cke_browser_'+(l.ie?'ie':l.gecko?'gecko':l.opera?'opera':l.air?'air':l.webkit?'webkit':'unknown');if(l.quirks)l.cssClass+=' cke_browser_quirks';if(l.ie){l.cssClass+=' cke_browser_ie'+(l.version<7?'6':l.version>=8?'8':'7');if(l.quirks)l.cssClass+=' cke_browser_iequirks';}if(l.gecko&&m<10900)l.cssClass+=' cke_browser_gecko18';return l;})();var j=CKEDITOR.env;var k=CKEDITOR.env.ie;if(CKEDITOR.status=='unloaded')(function(){CKEDITOR.event.implementOn(CKEDITOR);
CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!='basic_ready'){CKEDITOR.loadFullCore._load=true;return;}delete CKEDITOR.loadFullCore;var m=document.createElement('script');m.type='text/javascript';m.src=CKEDITOR.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(m);};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.replaceClass='ckeditor';CKEDITOR.replaceByClassEnabled=true;var l=function(m,n,o){if(CKEDITOR.env.isCompatible){if(CKEDITOR.loadFullCore)CKEDITOR.loadFullCore();var p=o(m,n);CKEDITOR.add(p);return p;}return null;};CKEDITOR.replace=function(m,n){return l(m,n,CKEDITOR.editor.replace);};CKEDITOR.appendTo=function(m,n){return l(m,n,CKEDITOR.editor.appendTo);};CKEDITOR.add=function(m){var n=this._.pending||(this._.pending=[]);n.push(m);};CKEDITOR.replaceAll=function(){var m=document.getElementsByTagName('textarea');for(var n=0;n<m.length;n++){var o=null,p=m[n],q=p.name;if(!p.name&&!p.id)continue;if(typeof arguments[0]=='string'){var r=new RegExp('(?:^| )'+arguments[0]+'(?:$| )');if(!r.test(p.className))continue;}else if(typeof arguments[0]=='function'){o={};if(arguments[0](p,o)===false)continue;}this.replace(p,o);}};(function(){var m=function(){var n=CKEDITOR.loadFullCore,o=CKEDITOR.loadFullCoreTimeout;if(CKEDITOR.replaceByClassEnabled)CKEDITOR.replaceAll(CKEDITOR.replaceClass);CKEDITOR.status='basic_ready';if(n&&n._load)n();else if(o)setTimeout(function(){if(CKEDITOR.loadFullCore)CKEDITOR.loadFullCore();},o*1000);};if(window.addEventListener)window.addEventListener('load',m,false);else if(window.attachEvent)window.attachEvent('onload',m);})();CKEDITOR.status='basic_loaded';})();CKEDITOR.dom={};var l=CKEDITOR.dom;(function(){var m=[];CKEDITOR.tools={arrayCompare:function(n,o){if(!n&&!o)return true;if(!n||!o||n.length!=o.length)return false;for(var p=0;p<n.length;p++)if(n[p]!=o[p])return false;return true;},clone:function(n){var o;if(n&&n instanceof Array){o=[];for(var p=0;p<n.length;p++)o[p]=this.clone(n[p]);return o;}if(n===null||typeof n!='object'||n instanceof String||n instanceof Number||n instanceof Boolean||n instanceof Date)return n;o=new n.constructor();for(var q in n){var r=n[q];o[q]=this.clone(r);}return o;},extend:function(n){var o=arguments.length,p,q;if(typeof (p=arguments[o-1])=='boolean')o--;else if(typeof (p=arguments[o-2])=='boolean'){q=arguments[o-1];o-=2;}for(var r=1;r<o;r++){var s=arguments[r];for(var t in s)if(p===true||n[t]==undefined)if(!q||t in q)n[t]=s[t];}return n;},prototypedCopy:function(n){var o=function(){};
o.prototype=n;return new o();},isArray:function(n){return!!n&&n instanceof Array;},cssStyleToDomStyle:(function(){var n=document.createElement('div').style,o=typeof n.cssFloat!='undefined'?'cssFloat':typeof n.styleFloat!='undefined'?'styleFloat':'float';return function(p){if(p=='float')return o;else return p.replace(/-./g,function(q){return q.substr(1).toUpperCase();});};})(),htmlEncode:function(n){var o=function(s){var t=new CKEDITOR.dom.element('span');t.setText(s);return t.getHtml();},p=o('\n').toLowerCase()=='<br>'?function(s){return o(s).replace(/<br>/gi,'\n');}:o,q=o('>')=='>'?function(s){return p(s).replace(/>/g,'&gt;');}:p,r=o('  ')=='&nbsp; '?function(s){return q(s).replace(/&nbsp;/g,' ');}:q;this.htmlEncode=r;return this.htmlEncode(n);},getNextNumber:(function(){var n=0;return function(){return++n;};})(),override:function(n,o){return o(n);},setTimeout:function(n,o,p,q,r){if(!r)r=window;if(!p)p=r;return r.setTimeout(function(){if(q)n.apply(p,[].concat(q));else n.apply(p);},o||0);},trim:(function(){var n=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(o){return o.replace(n,'');};})(),ltrim:(function(){var n=/^[ \t\n\r]+/g;return function(o){return o.replace(n,'');};})(),rtrim:(function(){var n=/[ \t\n\r]+$/g;return function(o){return o.replace(n,'');};})(),indexOf:Array.prototype.indexOf?function(n,o){return n.indexOf(o);}:function(n,o){for(var p=0,q=n.length;p<q;p++)if(n[p]===o)return p;return-1;},bind:function(n,o){return function(){return n.apply(o,arguments);};},createClass:function(n){var o=n.$,p=n.base,q=n.privates||n._,r=n.proto,s=n.statics;if(q){var t=o;o=function(){var x=this;var u=x._||(x._={});for(var v in q){var w=q[v];u[v]=typeof w=='function'?CKEDITOR.tools.bind(w,x):w;}t.apply(x,arguments);};}if(p){o.prototype=this.prototypedCopy(p.prototype);o.prototype['constructor']=o;o.prototype.base=function(){this.base=p.prototype.base;p.apply(this,arguments);this.base=arguments.callee;};}if(r)this.extend(o.prototype,r,true);if(s)this.extend(o,s,true);return o;},addFunction:function(n,o){return m.push(function(){n.apply(o||this,arguments);})-1;},callFunction:function(n){var o=m[n];return o.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){var n=/^\d+(?:\.\d+)?$/;return function(o){return o+(n.test(o)?'px':'');};})(),repeat:function(n,o){return new Array(o+1).join(n);}};})();var m=CKEDITOR.tools;CKEDITOR.dtd=(function(){var n=CKEDITOR.tools.extend,o={isindex:1,fieldset:1},p={input:1,button:1,select:1,textarea:1,label:1},q=n({a:1},p),r=n({iframe:1},q),s={hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},t={ins:1,del:1,script:1},u=n({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},t),v=n({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},u),w=n({p:1},v),x=n({iframe:1},v,p),y={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},z=n({a:1},x),A={tr:1},B={'#':1},C=n({param:1},y),D=n({form:1},o,r,s,w),E={li:1},F={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};
return{$block:F,$body:n({script:1},F),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:D,td:D,br:{},th:D,center:D,kbd:z,button:n(w,s),basefont:{},h5:z,h4:z,samp:z,h6:z,ol:E,h1:z,h3:z,option:B,h2:z,form:n(o,r,s,w),select:{optgroup:1,option:1},font:z,ins:D,menu:E,abbr:z,label:z,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:z,script:B,tfoot:A,cite:z,li:D,input:{},iframe:D,strong:z,textarea:B,noframes:D,big:z,small:z,span:z,hr:{},dt:z,sub:z,optgroup:{option:1},param:{},bdo:z,'var':z,div:D,object:C,sup:z,dd:D,strike:z,area:{},dir:E,map:n({area:1,form:1,p:1},o,t,s),applet:C,dl:{dt:1,dd:1},del:D,isindex:{},fieldset:n({legend:1},y),thead:A,ul:E,acronym:z,b:z,a:x,blockquote:D,caption:z,i:z,u:z,tbody:A,s:z,address:n(r,w),tt:z,legend:z,q:z,pre:n(u,q),p:z,em:z,dfn:z};})();var n=CKEDITOR.dtd;CKEDITOR.dom.event=function(o){this.$=o;};CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var p=this;var o=p.getKey();if(p.$.ctrlKey||p.$.metaKey)o+=1000;if(p.$.shiftKey)o+=2000;if(p.$.altKey)o+=4000;return o;},preventDefault:function(o){var p=this.$;if(p.preventDefault)p.preventDefault();else p.returnValue=false;if(o)this.stopPropagation();},stopPropagation:function(){var o=this.$;if(o.stopPropagation)o.stopPropagation();else o.cancelBubble=true;},getTarget:function(){var o=this.$.target||this.$.srcElement;return o?new CKEDITOR.dom.node(o):null;}};CKEDITOR.CTRL=1000;CKEDITOR.SHIFT=2000;CKEDITOR.ALT=4000;CKEDITOR.dom.domObject=function(o){if(o)this.$=o;};CKEDITOR.dom.domObject.prototype=(function(){var o=function(p,q){return function(r){if(typeof CKEDITOR!='undefined')p.fire(q,new CKEDITOR.dom.event(r));};};return{getPrivate:function(){var p;if(!(p=this.getCustomData('_')))this.setCustomData('_',p={});return p;},on:function(p){var s=this;var q=s.getCustomData('_cke_nativeListeners');if(!q){q={};s.setCustomData('_cke_nativeListeners',q);
}if(!q[p]){var r=q[p]=o(s,p);if(s.$.addEventListener)s.$.addEventListener(p,r,!!CKEDITOR.event.useCapture);else if(s.$.attachEvent)s.$.attachEvent('on'+p,r);}return CKEDITOR.event.prototype.on.apply(s,arguments);},removeListener:function(p){var s=this;CKEDITOR.event.prototype.removeListener.apply(s,arguments);if(!s.hasListeners(p)){var q=s.getCustomData('_cke_nativeListeners'),r=q&&q[p];if(r){if(s.$.removeEventListener)s.$.removeEventListener(p,r,false);else if(s.$.detachEvent)s.$.detachEvent('on'+p,r);delete q[p];}}}};})();(function(o){var p={};o.equals=function(q){return q&&q.$===this.$;};o.setCustomData=function(q,r){var s=this.getUniqueId(),t=p[s]||(p[s]={});t[q]=r;return this;};o.getCustomData=function(q){var r=this.$._cke_expando,s=r&&p[r];return s&&s[q];};o.removeCustomData=function(q){var r=this.$._cke_expando,s=r&&p[r],t=s&&s[q];if(typeof t!='undefined')delete s[q];return t||null;};o.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=CKEDITOR.tools.getNextNumber());};CKEDITOR.event.implementOn(o);})(CKEDITOR.dom.domObject.prototype);CKEDITOR.dom.window=function(o){CKEDITOR.dom.domObject.call(this,o);};CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject();CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){if(CKEDITOR.env.webkit&&this.$.parent)this.$.parent.focus();this.$.focus();},getViewPaneSize:function(){var o=this.$.document,p=o.compatMode=='CSS1Compat';return{width:(p?o.documentElement.clientWidth:o.body.clientWidth)||(0),height:(p?o.documentElement.clientHeight:o.body.clientHeight)||(0)};},getScrollPosition:function(){var o=this.$;if('pageXOffset' in o)return{x:o.pageXOffset||0,y:o.pageYOffset||0};else{var p=o.document;return{x:p.documentElement.scrollLeft||p.body.scrollLeft||0,y:p.documentElement.scrollTop||p.body.scrollTop||0};}}});CKEDITOR.dom.document=function(o){CKEDITOR.dom.domObject.call(this,o);};var o=CKEDITOR.dom.document;CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject();CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{appendStyleSheet:function(p){if(this.$.createStyleSheet)this.$.createStyleSheet(p);else{var q=new CKEDITOR.dom.element('link');q.setAttributes({rel:'stylesheet',type:'text/css',href:p});this.getHead().append(q);}},createElement:function(p,q){var r=new CKEDITOR.dom.element(p,this);if(q){if(q.attributes)r.setAttributes(q.attributes);if(q.styles)r.setStyles(q.styles);}return r;},createText:function(p){return new CKEDITOR.dom.text(p,this);},focus:function(){this.getWindow().focus();
},getById:function(p){var q=this.$.getElementById(p);return q?new CKEDITOR.dom.element(q):null;},getByAddress:function(p,q){var r=this.$.documentElement;for(var s=0;r&&s<p.length;s++){var t=p[s];if(!q){r=r.childNodes[t];continue;}var u=-1;for(var v=0;v<r.childNodes.length;v++){var w=r.childNodes[v];if(q===true&&w.nodeType==3&&w.previousSibling&&w.previousSibling.nodeType==3)continue;u++;if(u==t){r=w;break;}}}return r?new CKEDITOR.dom.node(r):null;},getElementsByTag:function(p,q){if(!CKEDITOR.env.ie&&q)p=q+':'+p;return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(p));},getHead:function(){var p=this.$.getElementsByTagName('head')[0];p=new CKEDITOR.dom.element(p);return(this.getHead=function(){return p;})();},getBody:function(){var p=new CKEDITOR.dom.element(this.$.body);return(this.getBody=function(){return p;})();},getDocumentElement:function(){var p=new CKEDITOR.dom.element(this.$.documentElement);return(this.getDocumentElement=function(){return p;})();},getWindow:function(){var p=new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView);return(this.getWindow=function(){return p;})();}});CKEDITOR.dom.node=function(p){if(p){switch(p.nodeType){case 1:return new CKEDITOR.dom.element(p);case 3:return new CKEDITOR.dom.text(p);}CKEDITOR.dom.domObject.call(this,p);}return this;};CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject();CKEDITOR.NODE_ELEMENT=1;CKEDITOR.NODE_TEXT=3;CKEDITOR.NODE_COMMENT=8;CKEDITOR.NODE_DOCUMENT_FRAGMENT=11;CKEDITOR.POSITION_IDENTICAL=0;CKEDITOR.POSITION_DISCONNECTED=1;CKEDITOR.POSITION_FOLLOWING=2;CKEDITOR.POSITION_PRECEDING=4;CKEDITOR.POSITION_IS_CONTAINED=8;CKEDITOR.POSITION_CONTAINS=16;CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(p,q){p.append(this,q);return p;},clone:function(p,q){var r=this.$.cloneNode(p);if(!q){var s=function(t){if(t.nodeType!=1)return;t.removeAttribute('id',false);t.removeAttribute('_cke_expando',false);var u=t.childNodes;for(var v=0;v<u.length;v++)s(u[v]);};s(r);}return new CKEDITOR.dom.node(r);},hasPrevious:function(){return!!this.$.previousSibling;},hasNext:function(){return!!this.$.nextSibling;},insertAfter:function(p){p.$.parentNode.insertBefore(this.$,p.$.nextSibling);return p;},insertBefore:function(p){p.$.parentNode.insertBefore(this.$,p.$);return p;},insertBeforeMe:function(p){this.$.parentNode.insertBefore(p.$,this.$);return p;},getAddress:function(p){var q=[],r=this.getDocument().$.documentElement,s=this.$;while(s&&s!=r){var t=s.parentNode,u=-1;for(var v=0;v<t.childNodes.length;
v++){var w=t.childNodes[v];if(p&&w.nodeType==3&&w.previousSibling&&w.previousSibling.nodeType==3)continue;u++;if(w==s)break;}q.unshift(u);s=s.parentNode;}return q;},getDocument:function(){var p=new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument);return(this.getDocument=function(){return p;})();},getIndex:function(){var p=this.$,q=p.parentNode&&p.parentNode.firstChild,r=-1;while(q){r++;if(q==p)return r;q=q.nextSibling;}return-1;},getNextSourceNode:function(p,q,r){if(r&&!r.call){var s=r;r=function(v){return!v.equals(s);};}var t=!p&&this.getFirst&&this.getFirst(),u;if(!t){if(this.type==1&&r&&r(this,true)===false)return null;t=this.getNext();}while(!t&&(u=(u||this).getParent())){if(r&&r(u,true)===false)return null;t=u.getNext();}if(!t)return null;if(r&&r(t)===false)return null;if(q&&q!=t.type)return t.getNextSourceNode(false,q,r);return t;},getPreviousSourceNode:function(p,q,r){if(r&&!r.call){var s=r;r=function(v){return!v.equals(s);};}var t=!p&&this.getLast&&this.getLast(),u;if(!t){if(this.type==1&&r&&r(this,true)===false)return null;t=this.getPrevious();}while(!t&&(u=(u||this).getParent())){if(r&&r(u,true)===false)return null;t=u.getPrevious();}if(!t)return null;if(r&&r(t)===false)return null;if(q&&t.type!=q)return t.getPreviousSourceNode(false,q,r);return t;},getPrevious:function(p){var q=this.$,r;do{q=q.previousSibling;r=q&&new CKEDITOR.dom.node(q);}while(r&&p&&!p(r))return r;},getNext:function(p){var q=this.$,r;do{q=q.nextSibling;r=q&&new CKEDITOR.dom.node(q);}while(r&&p&&!p(r))return r;},getParent:function(){var p=this.$.parentNode;return p&&p.nodeType==1?new CKEDITOR.dom.node(p):null;},getParents:function(p){var q=this,r=[];do r[p?'push':'unshift'](q);while(q=q.getParent())return r;},getCommonAncestor:function(p){var r=this;if(p.equals(r))return r;if(p.contains&&p.contains(r))return p;var q=r.contains?r:r.getParent();do if(q.contains(p))return q;while(q=q.getParent())return null;},getPosition:function(p){var q=this.$,r=p.$;if(q.compareDocumentPosition)return q.compareDocumentPosition(r);if(q==r)return 0;if(this.type==1&&p.type==1){if(q.contains){if(q.contains(r))return 16+4;if(r.contains(q))return 8+2;}if('sourceIndex' in q)return q.sourceIndex<0||r.sourceIndex<0?1:q.sourceIndex<r.sourceIndex?4:2;}var s=this.getAddress(),t=p.getAddress(),u=Math.min(s.length,t.length);for(var v=0;v<=u-1;v++)if(s[v]!=t[v]){if(v<u)return s[v]<t[v]?4:2;break;}return s.length<t.length?16+4:8+2;},getAscendant:function(p,q){var r=this.$;if(!q)r=r.parentNode;
while(r){if(r.nodeName&&r.nodeName.toLowerCase()==p)return new CKEDITOR.dom.node(r);r=r.parentNode;}return null;},hasAscendant:function(p,q){var r=this.$;if(!q)r=r.parentNode;while(r){if(r.nodeName&&r.nodeName.toLowerCase()==p)return true;r=r.parentNode;}return false;},move:function(p,q){p.append(this.remove(),q);},remove:function(p){var q=this.$,r=q.parentNode;if(r){if(p)for(var s;s=q.firstChild;)r.insertBefore(q.removeChild(s),q);r.removeChild(q);}return this;},replace:function(p){this.insertBefore(p);p.remove();},trim:function(){this.ltrim();this.rtrim();},ltrim:function(){var s=this;var p;while(s.getFirst&&(p=s.getFirst())){if(p.type==3){var q=CKEDITOR.tools.ltrim(p.getText()),r=p.getLength();if(!q){p.remove();continue;}else if(q.length<r){p.split(r-q.length);s.$.removeChild(s.$.firstChild);}}break;}},rtrim:function(){var s=this;var p;while(s.getLast&&(p=s.getLast())){if(p.type==3){var q=CKEDITOR.tools.rtrim(p.getText()),r=p.getLength();if(!q){p.remove();continue;}else if(q.length<r){p.split(q.length);s.$.lastChild.parentNode.removeChild(s.$.lastChild);}}break;}if(!CKEDITOR.env.ie&&!CKEDITOR.env.opera){p=s.$.lastChild;if(p&&p.type==1&&p.nodeName.toLowerCase()=='br')p.parentNode.removeChild(p);}}});CKEDITOR.dom.nodeList=function(p){this.$=p;};CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length;},getItem:function(p){var q=this.$[p];return q?new CKEDITOR.dom.node(q):null;}};CKEDITOR.dom.element=function(p,q){if(typeof p=='string')p=(q?q.$:document).createElement(p);CKEDITOR.dom.domObject.call(this,p);};var p=CKEDITOR.dom.element;CKEDITOR.dom.element.get=function(q){return q&&(q.$?q:new CKEDITOR.dom.element(q));};CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node();CKEDITOR.dom.element.createFromHtml=function(q,r){var s=new CKEDITOR.dom.element('div',r);s.setHtml(q);return s.getFirst().remove();};CKEDITOR.dom.element.setMarker=function(q,r,s,t){var u=r.getCustomData('list_marker_id')||r.setCustomData('list_marker_id',CKEDITOR.tools.getNextNumber()).getCustomData('list_marker_id'),v=r.getCustomData('list_marker_names')||r.setCustomData('list_marker_names',{}).getCustomData('list_marker_names');q[u]=r;v[s]=1;return r.setCustomData(s,t);};CKEDITOR.dom.element.clearAllMarkers=function(q){for(var r in q)CKEDITOR.dom.element.clearMarkers(q,q[r],true);};CKEDITOR.dom.element.clearMarkers=function(q,r,s){var t=r.getCustomData('list_marker_names'),u=r.getCustomData('list_marker_id');for(var v in t)r.removeCustomData(v);r.removeCustomData('list_marker_names');
if(s){r.removeCustomData('list_marker_id');delete q[u];}};CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:1,addClass:function(q){var r=this.$.className;if(r){var s=new RegExp('(?:^|\\s)'+q+'(?:\\s|$)','');if(!s.test(r))r+=' '+q;}this.$.className=r||q;},removeClass:function(q){var r=this.getAttribute('class');if(r){var s=new RegExp('(?:^|\\s+)'+q+'(?=\\s|$)','i');if(s.test(r)){r=r.replace(s,'').replace(/^\s+/,'');if(r)this.setAttribute('class',r);else this.removeAttribute('class');}}},hasClass:function(q){var r=new RegExp('(?:^|\\s+)'+q+'(?=\\s|$)','');return r.test(this.getAttribute('class'));},append:function(q,r){var s=this;if(typeof q=='string')q=s.getDocument().createElement(q);if(r)s.$.insertBefore(q.$,s.$.firstChild);else s.$.appendChild(q.$);return q;},appendHtml:function(q){var s=this;if(!s.$.childNodes.length)s.setHtml(q);else{var r=new CKEDITOR.dom.element('div',s.getDocument());r.setHtml(q);r.moveChildren(s);}},appendText:function(q){if(this.$.text!=undefined)this.$.text+=q;else this.append(new CKEDITOR.dom.text(q));},appendBogus:function(){var r=this;var q=r.getLast();while(q&&q.type==3&&!CKEDITOR.tools.rtrim(q.getText()))q=q.getPrevious();if(!q||!q.is||!q.is('br'))r.append(CKEDITOR.env.opera?r.getDocument().createText(''):r.getDocument().createElement('br'));},breakParent:function(q){var t=this;var r=new CKEDITOR.dom.range(t.getDocument());r.setStartAfter(t);r.setEndAfter(q);var s=r.extractContents();r.insertNode(t.remove());s.insertAfterNode(t);},contains:CKEDITOR.env.ie||CKEDITOR.env.webkit?function(q){var r=this.$;return q.type!=1?r.contains(q.getParent().$):r!=q.$&&r.contains(q.$);}:function(q){return!!(this.$.compareDocumentPosition(q.$)&16);},focus:function(){try{this.$.focus();}catch(q){}},getHtml:function(){return this.$.innerHTML;},getOuterHtml:function(){var r=this;if(r.$.outerHTML)return r.$.outerHTML.replace(/<\?[^>]*>/,'');var q=r.$.ownerDocument.createElement('div');q.appendChild(r.$.cloneNode(true));return q.innerHTML;},setHtml:function(q){return this.$.innerHTML=q;},setText:function(q){CKEDITOR.dom.element.prototype.setText=this.$.innerText!=undefined?function(r){return this.$.innerText=r;}:function(r){return this.$.textContent=r;};return this.setText(q);},getAttribute:(function(){var q=function(r){return this.$.getAttribute(r,2);};if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat))return function(r){var t=this;switch(r){case 'class':r='className';break;case 'tabindex':var s=q.call(t,r);if(s!==0&&t.$.tabIndex===0)s=null;
return s;break;case 'checked':return t.$.checked;break;case 'style':return t.$.style.cssText;}return q.call(t,r);};else return q;})(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes);},getComputedStyle:CKEDITOR.env.ie?function(q){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(q)];}:function(q){return this.getWindow().$.getComputedStyle(this.$,'').getPropertyValue(q);},getDtd:function(){var q=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return q;};return q;},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:CKEDITOR.env.ie?function(){var q=this.$.tabIndex;if(q===0&&!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute('tabindex'),10)!==0)q=-1;return q;}:CKEDITOR.env.webkit?function(){var q=this.$.tabIndex;if(q==undefined){q=parseInt(this.getAttribute('tabindex'),10);if(isNaN(q))q=-1;}return q;}:function(){return this.$.tabIndex;},getText:function(){return this.$.textContent||this.$.innerText||'';},getWindow:function(){return this.getDocument().getWindow();},getId:function(){return this.$.id||null;},getNameAtt:function(){return this.$.name||null;},getName:function(){var q=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie){var r=this.$.scopeName;if(r!='HTML')q=r.toLowerCase()+':'+q;}return(this.getName=function(){return q;})();},getValue:function(){return this.$.value;},getFirst:function(){var q=this.$.firstChild;return q?new CKEDITOR.dom.node(q):null;},getLast:function(q){var r=this.$.lastChild,s=r&&new CKEDITOR.dom.node(r);if(s&&q&&!q(s))s=s.getPrevious(q);return s;},getStyle:function(q){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(q)];},is:function(){var q=this.getName();for(var r=0;r<arguments.length;r++)if(arguments[r]==q)return true;return false;},isEditable:function(){var q=this.getName(),r=!CKEDITOR.dtd.$nonEditable[q]&&(CKEDITOR.dtd[q]||CKEDITOR.dtd.span);return r&&r['#'];},isIdentical:function(q){if(this.getName()!=q.getName())return false;var r=this.$.attributes,s=q.$.attributes,t=r.length,u=s.length;if(!CKEDITOR.env.ie&&t!=u)return false;for(var v=0;v<t;v++){var w=r[v];if((!CKEDITOR.env.ie||w.specified&&w.nodeName!='_cke_expando')&&(w.nodeValue!=q.getAttribute(w.nodeName)))return false;}if(CKEDITOR.env.ie)for(v=0;v<u;v++){w=s[v];if((!CKEDITOR.env.ie||w.specified&&w.nodeName!='_cke_expando')&&(w.nodeValue!=r.getAttribute(w.nodeName)))return false;}return true;},isVisible:function(){return this.$.offsetWidth&&this.$.style.visibility!='hidden';},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(){var q=this.$.attributes;
for(var r=0;r<q.length;r++){var s=q[r];switch(s.nodeName){case 'class':if(this.getAttribute('class'))return true;case '_cke_expando':continue;default:if(s.specified)return true;}}return false;}:function(){var q=this.$.attributes;return q.length>1||q.length==1&&q[0].nodeName!='_cke_expando';},hasAttribute:function(q){var r=this.$.attributes.getNamedItem(q);return!!(r&&r.specified);},hide:function(){this.setStyle('display','none');},moveChildren:function(q,r){var s=this.$;q=q.$;if(s==q)return;var t;if(r)while(t=s.lastChild)q.insertBefore(s.removeChild(t),q.firstChild);else while(t=s.firstChild)q.appendChild(s.removeChild(t));},show:function(){this.setStyles({display:'',visibility:''});},setAttribute:(function(){var q=function(r,s){this.$.setAttribute(r,s);return this;};if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat))return function(r,s){var t=this;if(r=='class')t.$.className=s;else if(r=='style')t.$.style.cssText=s;else if(r=='tabindex')t.$.tabIndex=s;else if(r=='checked')t.$.checked=s;else q.apply(t,arguments);return t;};else return q;})(),setAttributes:function(q){for(var r in q)this.setAttribute(r,q[r]);return this;},setValue:function(q){this.$.value=q;return this;},removeAttribute:(function(){var q=function(r){this.$.removeAttribute(r);};if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat))return function(r){if(r=='class')r='className';else if(r=='tabindex')r='tabIndex';q.call(this,r);};else return q;})(),removeAttributes:function(q){for(var r=0;r<q.length;r++)this.removeAttribute(q[r]);},removeStyle:function(q){var r=this;if(r.$.style.removeAttribute)r.$.style.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(q));else r.setStyle(q,'');if(!r.$.style.cssText)r.removeAttribute('style');},setStyle:function(q,r){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(q)]=r;return this;},setStyles:function(q){for(var r in q)this.setStyle(r,q[r]);return this;},setOpacity:function(q){if(CKEDITOR.env.ie){q=Math.round(q*100);this.setStyle('filter',q>=100?'':'progid:DXImageTransform.Microsoft.Alpha(opacity='+q+')');}else this.setStyle('opacity',q);},unselectable:CKEDITOR.env.gecko?function(){this.$.style.MozUserSelect='none';}:CKEDITOR.env.webkit?function(){this.$.style.KhtmlUserSelect='none';}:function(){if(CKEDITOR.env.ie||CKEDITOR.env.opera){var q=this.$,r,s=0;q.unselectable='on';while(r=q.all[s++])switch(r.tagName.toLowerCase()){case 'iframe':case 'textarea':case 'input':case 'select':break;default:r.unselectable='on';}}},getPositionedAncestor:function(){var q=this;
while(q.getName()!='html'){if(q.getComputedStyle('position')!='static')return q;q=q.getParent();}return null;},getDocumentPosition:function(q){var L=this;var r=0,s=0,t=L.getDocument().getBody(),u=L.getDocument().$.compatMode=='BackCompat',v=L.getDocument();if(document.documentElement.getBoundingClientRect){var w=L.$.getBoundingClientRect(),x=v.$,y=x.documentElement,z=y.clientTop||t.$.clientTop||0,A=y.clientLeft||t.$.clientLeft||0,B=true;if(CKEDITOR.env.ie){var C=v.getDocumentElement().contains(L),D=v.getBody().contains(L);B=u&&D||!u&&C;}if(B){r=w.left+(!u&&y.scrollLeft||t.$.scrollLeft);r-=A;s=w.top+(!u&&y.scrollTop||t.$.scrollTop);s-=z;}}else{var E=L,F=null,G;while(E&&!(E.getName()=='body'||E.getName()=='html')){r+=E.$.offsetLeft-E.$.scrollLeft;s+=E.$.offsetTop-E.$.scrollTop;if(!E.equals(L)){r+=E.$.clientLeft||0;s+=E.$.clientTop||0;}var H=F;while(H&&!H.equals(E)){r-=H.$.scrollLeft;s-=H.$.scrollTop;H=H.getParent();}F=E;E=(G=E.$.offsetParent)?new CKEDITOR.dom.element(G):null;}}if(q){var I=L.getWindow(),J=q.getWindow();if(!I.equals(J)&&I.$.frameElement){var K=new CKEDITOR.dom.element(I.$.frameElement).getDocumentPosition(q);r+=K.x;s+=K.y;}}if(!document.documentElement.getBoundingClientRect)if(CKEDITOR.env.gecko&&!u){r+=L.$.clientLeft?1:0;s+=L.$.clientTop?1:0;}return{x:r,y:s};},scrollIntoView:function(q){var w=this;var r=w.getWindow(),s=r.getViewPaneSize().height,t=s*-1;if(q)t+=s;else{t+=w.$.offsetHeight||0;t+=parseInt(w.getComputedStyle('marginBottom')||0,10)||0;}var u=w.getDocumentPosition();t+=u.y;t=t<0?0:t;var v=r.getScrollPosition().y;if(t>v||t<v-s)r.$.scrollTo(0,t);},setState:function(q){var r=this;switch(q){case 1:r.addClass('cke_on');r.removeClass('cke_off');r.removeClass('cke_disabled');break;case 0:r.addClass('cke_disabled');r.removeClass('cke_off');r.removeClass('cke_on');break;default:r.addClass('cke_off');r.removeClass('cke_on');r.removeClass('cke_disabled');break;}},getFrameDocument:function(){var q=this.$;try{q.contentWindow.document;}catch(r){q.src=q.src;if(CKEDITOR.env.ie&&CKEDITOR.env.version<7)window.showModalDialog('javascript:document.write("<script>window.setTimeout(function(){window.close();},50);</script>")');}return q&&new CKEDITOR.dom.document(q.contentWindow.document);},copyAttributes:function(q,r){var x=this;var s=x.$.attributes;r=r||{};for(var t=0;t<s.length;t++){var u=s[t];if(u.specified||CKEDITOR.env.ie&&u.nodeValue&&u.nodeName.toLowerCase()=='value'){var v=u.nodeName;if(v in r)continue;var w=x.getAttribute(v);if(w===null)w=u.nodeValue;
q.setAttribute(v,w);}}if(x.$.style.cssText!=='')q.$.style.cssText=x.$.style.cssText;},renameNode:function(q){var t=this;if(t.getName()==q)return;var r=t.getDocument(),s=new CKEDITOR.dom.element(q,r);t.copyAttributes(s);t.moveChildren(s);t.$.parentNode.replaceChild(s.$,t.$);s.$._cke_expando=t.$._cke_expando;t.$=s.$;},getChild:function(q){var r=this.$;if(!q.slice)r=r.childNodes[q];else while(q.length>0&&r)r=r.childNodes[q.shift()];return r?new CKEDITOR.dom.node(r):null;},getChildCount:function(){return this.$.childNodes.length;},disableContextMenu:function(){this.on('contextmenu',function(q){if(!q.data.getTarget().hasClass('cke_enable_context_menu'))q.data.preventDefault();});}});CKEDITOR.command=function(q,r){this.uiItems=[];this.exec=function(s){if(this.state==0)return false;if(this.editorFocus)q.focus();return r.exec.call(this,q,s)!==false;};CKEDITOR.tools.extend(this,r,{modes:{wysiwyg:1},editorFocus:true,state:2});CKEDITOR.event.call(this);};CKEDITOR.command.prototype={enable:function(){var q=this;if(q.state==0)q.setState(!q.preserveState||typeof q.previousState=='undefined'?2:q.previousState);},disable:function(){this.setState(0);},setState:function(q){var r=this;if(r.state==q)return false;r.previousState=r.state;r.state=q;r.fire('state');return true;},toggleState:function(){var q=this;if(q.state==2)q.setState(1);else if(q.state==1)q.setState(2);}};CKEDITOR.event.implementOn(CKEDITOR.command.prototype,true);CKEDITOR.ENTER_P=1;CKEDITOR.ENTER_BR=2;CKEDITOR.ENTER_DIV=3;CKEDITOR.config={customConfig:CKEDITOR.getUrl('config.js'),autoUpdateElement:true,baseHref:'',contentsCss:CKEDITOR.basePath+'contents.css',contentsLangDirection:'ltr',language:'',defaultLanguage:'en',enterMode:1,shiftEnterMode:2,corePlugins:'',docType:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',fullPage:false,height:200,plugins:'about,basicstyles,blockquote,button,clipboard,colorbutton,colordialog,contextmenu,elementspath,enterkey,entities,filebrowser,find,flash,font,format,forms,horizontalrule,htmldataprocessor,image,indent,justify,keystrokes,link,list,maximize,newpage,pagebreak,pastefromword,pastetext,popup,preview,print,removeformat,resize,save,scayt,smiley,showblocks,sourcearea,stylescombo,table,tabletools,specialchar,tab,templates,toolbar,undo,wysiwygarea,wsc',extraPlugins:'',removePlugins:'',protectedSource:[],tabIndex:0,theme:'default',skin:'kama',width:'',baseFloatZIndex:10000};var q=CKEDITOR.config;CKEDITOR.focusManager=function(r){if(r.focusManager)return r.focusManager;
this.hasFocus=false;this._={editor:r};return this;};CKEDITOR.focusManager.prototype={focus:function(){var s=this;if(s._.timer)clearTimeout(s._.timer);if(!s.hasFocus){if(CKEDITOR.currentInstance)CKEDITOR.currentInstance.focusManager.forceBlur();var r=s._.editor;r.container.getFirst().addClass('cke_focus');s.hasFocus=true;r.fire('focus');}},blur:function(){var r=this;if(r._.timer)clearTimeout(r._.timer);r._.timer=setTimeout(function(){delete r._.timer;r.forceBlur();},100);},forceBlur:function(){if(this.hasFocus){var r=this._.editor;r.container.getFirst().removeClass('cke_focus');this.hasFocus=false;r.fire('blur');}}};(function(){var r={};CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,da:1,de:1,el:1,'en-au':1,'en-ca':1,'en-uk':1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,'fr-ca':1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,is:1,it:1,ja:1,km:1,ko:1,lt:1,lv:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,'pt-br':1,pt:1,ro:1,ru:1,sk:1,sl:1,'sr-latn':1,sr:1,sv:1,th:1,tr:1,uk:1,vi:1,'zh-cn':1,zh:1},load:function(s,t,u){if(!s||!CKEDITOR.lang.languages[s])s=this.detect(t,s);if(!this[s])CKEDITOR.scriptLoader.load(CKEDITOR.getUrl('lang/'+s+'.js'),function(){u(s,this[s]);},this);else u(s,this[s]);},detect:function(s,t){var u=this.languages;t=t||navigator.userLanguage||navigator.language;var v=t.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),w=v[1],x=v[2];if(u[w+'-'+x])w=w+'-'+x;else if(!u[w])w=null;CKEDITOR.lang.detect=w?function(){return w;}:function(y){return y;};return w||s;}};})();CKEDITOR.scriptLoader=(function(){var r={},s={};return{load:function(t,u,v,w){var x=typeof t=='string';if(x)t=[t];if(!v)v=CKEDITOR;var y=t.length,z=[],A=[],B=function(G){if(u)if(x)u.call(v,G);else u.call(v,z,A);};if(y===0){B(true);return;}var C=function(G,H){(H?z:A).push(G);if(--y<=0)B(H);},D=function(G,H){r[G]=1;var I=s[G];delete s[G];for(var J=0;J<I.length;J++)I[J](G,H);},E=function(G){if(w!==true&&r[G]){C(G,true);return;}var H=s[G]||(s[G]=[]);H.push(C);if(H.length>1)return;var I=new CKEDITOR.dom.element('script');I.setAttributes({type:'text/javascript',src:G});if(u)if(CKEDITOR.env.ie)I.$.onreadystatechange=function(){if(I.$.readyState=='loaded'||I.$.readyState=='complete'){I.$.onreadystatechange=null;D(G,true);}};else{I.$.onload=function(){setTimeout(function(){D(G,true);},0);};I.$.onerror=function(){D(G,false);};}I.appendTo(CKEDITOR.document.getHead());};for(var F=0;F<y;F++)E(t[F]);},loadCode:function(t){var u=new CKEDITOR.dom.element('script');u.setAttribute('type','text/javascript');u.appendText(t);
u.appendTo(CKEDITOR.document.getHead());}};})();CKEDITOR.resourceManager=function(r,s){var t=this;t.basePath=r;t.fileName=s;t.registered={};t.loaded={};t.externals={};t._={waitingList:{}};};CKEDITOR.resourceManager.prototype={add:function(r,s){if(this.registered[r])throw '[CKEDITOR.resourceManager.add] The resource name "'+r+'" is already registered.';this.registered[r]=s||{};},get:function(r){return this.registered[r]||null;},getPath:function(r){var s=this.externals[r];return CKEDITOR.getUrl(s&&s.dir||this.basePath+r+'/');},getFilePath:function(r){var s=this.externals[r];return CKEDITOR.getUrl(this.getPath(r)+(s&&s.file||this.fileName+'.js'));},addExternal:function(r,s,t){r=r.split(',');for(var u=0;u<r.length;u++){var v=r[u];this.externals[v]={dir:s,file:t};}},load:function(r,s,t){if(!CKEDITOR.tools.isArray(r))r=r?[r]:[];var u=this.loaded,v=this.registered,w=[],x={},y={};for(var z=0;z<r.length;z++){var A=r[z];if(!A)continue;if(!u[A]&&!v[A]){var B=this.getFilePath(A);w.push(B);if(!(B in x))x[B]=[];x[B].push(A);}else y[A]=this.get(A);}CKEDITOR.scriptLoader.load(w,function(C,D){if(D.length)throw '[CKEDITOR.resourceManager.load] Resource name "'+x[D[0]].join(',')+'" was not found at "'+D[0]+'".';for(var E=0;E<C.length;E++){var F=x[C[E]];for(var G=0;G<F.length;G++){var H=F[G];y[H]=this.get(H);u[H]=1;}}s.call(t,y);},this);}};CKEDITOR.plugins=new CKEDITOR.resourceManager('plugins/','plugin');var r=CKEDITOR.plugins;CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(s){return function(t,u,v){var w={},x=function(y){s.call(this,y,function(z){CKEDITOR.tools.extend(w,z);var A=[];for(var B in z){var C=z[B],D=C&&C.requires;if(D)for(var E=0;E<D.length;E++)if(!w[D[E]])A.push(D[E]);}if(A.length)x.call(this,A);else{for(B in w){C=w[B];if(C.onLoad&&!C.onLoad._called){C.onLoad();C.onLoad._called=1;}}if(u)u.call(v||window,w);}},this);};x.call(this,t);};});CKEDITOR.plugins.setLang=function(s,t,u){var v=this.get(s);v.lang[t]=u;};(function(){var s={},t=function(u,v){var w=function(){s[u]=1;v();},x=new CKEDITOR.dom.element('img');x.on('load',w);x.on('error',w);x.setAttribute('src',u);};CKEDITOR.imageCacher={load:function(u,v){var w=u.length,x=function(){if(--w===0)v();};for(var y=0;y<u.length;y++){var z=u[y];if(s[z])x();else t(z,x);}}};})();CKEDITOR.skins=(function(){var s={},t={},u={},v=function(w,x,y){var z=s[w],A=function(I){for(var J=0;J<I.length;J++)I[J]=CKEDITOR.getUrl(u[w]+I[J]);};if(!t[w]){var B=z.preload;if(B&&B.length>0){A(B);CKEDITOR.imageCacher.load(B,function(){t[w]=1;
v(w,x,y);});return;}t[w]=1;}x=z[x];var C=!x||!!x._isLoaded;if(C)y&&y();else{var D=x._pending||(x._pending=[]);D.push(y);if(D.length>1)return;var E=!x.css||!x.css.length,F=!x.js||!x.js.length,G=function(){if(E&&F){x._isLoaded=1;for(var I=0;I<D.length;I++)if(D[I])D[I]();}};if(!E){A(x.css);for(var H=0;H<x.css.length;H++)CKEDITOR.document.appendStyleSheet(x.css[H]);E=1;}if(!F){A(x.js);CKEDITOR.scriptLoader.load(x.js,function(){F=1;G();});}G();}};return{add:function(w,x){s[w]=x;x.skinPath=u[w]||(u[w]=CKEDITOR.getUrl('skins/'+w+'/'));},load:function(w,x,y){var z=w.skinName,A=w.skinPath;if(s[z]){v(z,x,y);var B=s[z];if(B.init)B.init(w);}else{u[z]=A;CKEDITOR.scriptLoader.load(A+'skin.js',function(){v(z,x,y);var C=s[z];if(C.init)C.init(w);});}}};})();CKEDITOR.themes=new CKEDITOR.resourceManager('themes/','theme');CKEDITOR.ui=function(s){if(s.ui)return s.ui;this._={handlers:{},items:{},editor:s};return this;};var s=CKEDITOR.ui;CKEDITOR.ui.prototype={add:function(t,u,v){this._.items[t]={type:u,command:v.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(t){var y=this;var u=y._.items[t],v=u&&y._.handlers[u.type],w=u&&u.command&&y._.editor.getCommand(u.command),x=v&&v.create.apply(y,u.args);if(w)w.uiItems.push(x);return x;},addHandler:function(t,u){this._.handlers[t]=u;}};(function(){var t=0,u=function(){var F='editor'+ ++t;return CKEDITOR.instances&&CKEDITOR.instances[F]?u():F;},v={},w=function(F){var G=F.config.customConfig;if(!G)return false;var H=v[G]||(v[G]={});if(H.fn){H.fn.call(F,F.config);if(F.config.customConfig==G||!w(F))F.fireOnce('customConfigLoaded');}else CKEDITOR.scriptLoader.load(G,function(){if(CKEDITOR.editorConfig)H.fn=CKEDITOR.editorConfig;else H.fn=function(){};w(F);});return true;},x=function(F,G){F.on('customConfigLoaded',function(){if(G){if(G.on)for(var H in G.on)F.on(H,G.on[H]);CKEDITOR.tools.extend(F.config,G,true);delete F.config.on;}y(F);});if(G&&G.customConfig!=undefined)F.config.customConfig=G.customConfig;if(!w(F))F.fireOnce('customConfigLoaded');},y=function(F){var G=F.config.skin.split(','),H=G[0],I=CKEDITOR.getUrl(G[1]||'skins/'+H+'/');F.skinName=H;F.skinPath=I;F.skinClass='cke_skin_'+H;F.fireOnce('configLoaded');z(F);},z=function(F){CKEDITOR.lang.load(F.config.language,F.config.defaultLanguage,function(G,H){F.langCode=G;F.lang=CKEDITOR.tools.prototypedCopy(H);if(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900&&F.lang.dir=='rtl')F.lang.dir='ltr';A(F);});},A=function(F){var G=F.config,H=G.plugins,I=G.extraPlugins,J=G.removePlugins;
if(I){var K=new RegExp('(?:^|,)(?:'+I.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');H=H.replace(K,'');H+=','+I;}if(J){K=new RegExp('(?:^|,)(?:'+J.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');H=H.replace(K,'');}CKEDITOR.plugins.load(H.split(','),function(L){var M=[],N=[],O=[];F.plugins=L;for(var P in L){var Q=L[P],R=Q.lang,S=CKEDITOR.plugins.getPath(P),T=null;Q.path=S;if(R){T=CKEDITOR.tools.indexOf(R,F.langCode)>=0?F.langCode:R[0];if(!Q.lang[T])O.push(CKEDITOR.getUrl(S+'lang/'+T+'.js'));else{CKEDITOR.tools.extend(F.lang,Q.lang[T]);T=null;}}N.push(T);M.push(Q);}CKEDITOR.scriptLoader.load(O,function(){var U=['beforeInit','init','afterInit'];for(var V=0;V<U.length;V++)for(var W=0;W<M.length;W++){var X=M[W];if(V===0&&N[W]&&X.lang)CKEDITOR.tools.extend(F.lang,X.lang[N[W]]);if(X[U[V]])X[U[V]](F);}F.fire('pluginsLoaded');B(F);});});},B=function(F){CKEDITOR.skins.load(F,'editor',function(){C(F);});},C=function(F){var G=F.config.theme;CKEDITOR.themes.load(G,function(){var H=F.theme=CKEDITOR.themes.get(G);H.path=CKEDITOR.themes.getPath(G);H.build(F);if(F.config.autoUpdateElement)D(F);});},D=function(F){var G=F.element;if(F.elementMode==1&&G.is('textarea')){var H=G.$.form&&new CKEDITOR.dom.element(G.$.form);if(H){function I(){F.updateElement();};H.on('submit',I);if(!H.$.submit.nodeName)H.$.submit=CKEDITOR.tools.override(H.$.submit,function(J){return function(){F.updateElement();if(J.apply)J.apply(this,arguments);else J();};});F.on('destroy',function(){H.removeListener('submit',I);});}}};function E(){var F,G=this._.commands,H=this.mode;for(var I in G){F=G[I];F[F.modes[H]?'enable':'disable']();}};CKEDITOR.editor.prototype._init=function(){var H=this;var F=CKEDITOR.dom.element.get(H._.element),G=H._.instanceConfig;delete H._.element;delete H._.instanceConfig;H._.commands={};H._.styles=[];H.element=F;H.name=F&&H.elementMode==1&&(F.getId()||F.getNameAtt())||u();if(H.name in CKEDITOR.instances)throw '[CKEDITOR.editor] The instance "'+H.name+'" already exists.';H.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config);H.ui=new CKEDITOR.ui(H);H.focusManager=new CKEDITOR.focusManager(H);CKEDITOR.fire('instanceCreated',null,H);H.on('mode',E,null,null,1);x(H,G);};})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(t,u){return this._.commands[t]=new CKEDITOR.command(this,u);},addCss:function(t){this._.styles.push(t);},destroy:function(t){var u=this;if(!t)u.updateElement();u.theme.destroy(u);u.fire('destroy');CKEDITOR.remove(u);},execCommand:function(t,u){var v=this.getCommand(t),w={name:t,commandData:u,command:v};
if(v&&v.state!=0)if(this.fire('beforeCommandExec',w)!==true){w.returnValue=v.exec(w.commandData);if(!v.async&&this.fire('afterCommandExec',w)!==true)return w.returnValue;}return false;},getCommand:function(t){return this._.commands[t];},getData:function(){var v=this;v.fire('beforeGetData');var t=v._.data;if(typeof t!='string'){var u=v.element;if(u&&v.elementMode==1)t=u.is('textarea')?u.getValue():u.getHtml();else t='';}t={dataValue:t};v.fire('getData',t);return t.dataValue;},getSnapshot:function(){var t=this.fire('getSnapshot');if(typeof t!='string'){var u=this.element;if(u&&this.elementMode==1)t=u.is('textarea')?u.getValue():u.getHtml();}return t;},loadSnapshot:function(t){this.fire('loadSnapshot',t);},setData:function(t,u){if(u)this.on('dataReady',function(w){w.removeListener();u.call(w.editor);});var v={dataValue:t};this.fire('setData',v);this._.data=v.dataValue;this.fire('afterSetData',v);},insertHtml:function(t){this.fire('insertHtml',t);},insertElement:function(t){this.fire('insertElement',t);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var u=this;var t=u.element;if(t&&u.elementMode==1)if(t.is('textarea'))t.setValue(u.getData());else t.setHtml(u.getData());}});CKEDITOR.on('loaded',function(){var t=CKEDITOR.editor._pending;if(t){delete CKEDITOR.editor._pending;for(var u=0;u<t.length;u++)t[u]._init();}});CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var t=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,u={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(v){var I=this;var w,x,y=0,z;while(w=I._.htmlPartsRegex.exec(v)){var A=w.index;if(A>y){var B=v.substring(y,A);if(z)z.push(B);else I.onText(B);}y=I._.htmlPartsRegex.lastIndex;if(x=w[1]){x=x.toLowerCase();if(z&&CKEDITOR.dtd.$cdata[x]){I.onCDATA(z.join(''));z=null;}if(!z){I.onTagClose(x);continue;}}if(z){z.push(w[0]);continue;}if(x=w[3]){x=x.toLowerCase();var C={},D,E=w[4],F=!!(E&&E.charAt(E.length-1)=='/');if(E)while(D=t.exec(E)){var G=D[1].toLowerCase(),H=D[2]||D[3]||D[4]||'';
if(!H&&u[G])C[G]=G;else C[G]=H;}I.onTagOpen(x,C,F);if(!z&&CKEDITOR.dtd.$cdata[x])z=[];continue;}if(x=w[2])I.onComment(x);}if(v.length>y)I.onText(v.substring(y,v.length));}};})();CKEDITOR.htmlParser.comment=function(t){this.value=t;this._={isBlockLike:false};};CKEDITOR.htmlParser.comment.prototype={type:8,writeHtml:function(t,u){var v=this.value;if(u){if(!(v=u.onComment(v)))return;if(typeof v!='string'){v.writeHtml(t,u);return;}}t.comment(v);}};(function(){var t=/[\t\r\n ]{2,}|[\t\r\n]/g;CKEDITOR.htmlParser.text=function(u){this.value=u;this._={isBlockLike:false};};CKEDITOR.htmlParser.text.prototype={type:3,writeHtml:function(u,v){var w=this.value;if(v&&!(w=v.onText(w,this)))return;u.text(w);}};})();(function(){CKEDITOR.htmlParser.cdata=function(t){this.value=t;};CKEDITOR.htmlParser.cdata.prototype={type:3,writeHtml:function(t){t.write(this.value);}};})();CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var t={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},u=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),v=CKEDITOR.dtd.$list,w=CKEDITOR.dtd.$listItem;CKEDITOR.htmlParser.fragment.fromHtml=function(x,y){var z=new CKEDITOR.htmlParser(),A=[],B=new CKEDITOR.htmlParser.fragment(),C=[],D=B,E=false,F;function G(K){if(C.length>0)for(var L=0;L<C.length;L++){var M=C[L],N=M.name,O=CKEDITOR.dtd[N],P=D.name&&CKEDITOR.dtd[D.name];if((!P||P[N])&&(!K||!O||O[K]||!CKEDITOR.dtd[K])){M=M.clone();M.parent=D;D=M;C.splice(L,1);L--;}}};function H(K,L,M){L=L||D||B;if(y&&!L.type){var N,O;if(K.attributes&&(O=K.attributes._cke_real_element_type))N=O;else N=K.name;if(!(N in CKEDITOR.dtd.$body)){var P=D;D=L;z.onTagOpen(y,{});L=D;if(M)D=P;}}if(K._.isBlockLike&&K.name!='pre'){var Q=K.children.length,R=K.children[Q-1],S;if(R&&R.type==3)if(!(S=CKEDITOR.tools.rtrim(R.value)))K.children.length=Q-1;else R.value=S;}L.add(K);if(K.returnPoint){D=K.returnPoint;delete K.returnPoint;}};z.onTagOpen=function(K,L,M){var N=new CKEDITOR.htmlParser.element(K,L);if(N.isUnknown&&M)N.isEmpty=true;if(CKEDITOR.dtd.$removeEmpty[K]){C.push(N);return;}else if(K=='pre')E=true;else if(K=='br'&&E){D.add(new CKEDITOR.htmlParser.text('\n'));return;}var O=D.name,P=O&&CKEDITOR.dtd[O]||(D._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span);if(!N.isUnknown&&!D.isUnknown&&!P[K]){if(!O)return;var Q=false,R;if(K in v&&O in v){var S=D.children,T=S[S.length-1];
if(T&&T.name in w)F=D,R=T;else H(D,D.parent);}else if(K==O)H(D,D.parent);else{if(u[O]){if(!F)F=D;}else{H(D,D.parent,true);if(!t[O])C.unshift(D);}Q=true;}if(R)D=R;else D=D.returnPoint||D.parent;if(Q){z.onTagOpen.apply(this,arguments);return;}}G(K);N.parent=D;N.returnPoint=F;F=0;if(N.isEmpty)H(N);else D=N;};z.onTagClose=function(K){var L=0,M=[],N=D;while(N.type&&N.name!=K){if(!N._.isBlockLike){C.unshift(N);L++;}M.push(N);N=N.parent;}if(N.type){for(var O=0;O<M.length;O++){var P=M[O];H(P,P.parent);}D=N;if(D.name=='pre')E=false;H(N,N.parent);if(N==D)D=D.parent;}else{C.splice(0,L);L=0;}for(;L<C.length;L++)if(K==C[L].name){C.splice(L,1);L--;}};z.onText=function(K){if(!D._.hasInlineStarted&&!E){K=CKEDITOR.tools.ltrim(K);if(K.length===0)return;}G();if(y&&!D.type)this.onTagOpen(y,{});if(!E)K=K.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');D.add(new CKEDITOR.htmlParser.text(K));};z.onCDATA=function(K){D.add(new CKEDITOR.htmlParser.cdata(K));};z.onComment=function(K){D.add(new CKEDITOR.htmlParser.comment(K));};z.parse(x);while(D.type){var I=D.parent,J=D;if(y&&!I.type&&!CKEDITOR.dtd.$body[J.name]){D=I;z.onTagOpen(y,{});I=D;}I.add(J);D=I;}return B;};CKEDITOR.htmlParser.fragment.prototype={add:function(x){var A=this;var y=A.children.length,z=y>0&&A.children[y-1]||null;if(z){if(x._.isBlockLike&&z.type==3){z.value=CKEDITOR.tools.rtrim(z.value);if(z.value.length===0){A.children.pop();A.add(x);return;}}z.next=x;}x.previous=z;x.parent=A;A.children.push(x);A._.hasInlineStarted=x.type==3||x.type==1&&!x._.isBlockLike;},writeHtml:function(x,y){for(var z=0,A=this.children.length;z<A;z++)this.children[z].writeHtml(x,y);}};})();CKEDITOR.htmlParser.element=function(t,u){var y=this;y.name=t;y.attributes=u;y.children=[];var v=CKEDITOR.dtd,w=!!(v.$block[t]||v.$listItem[t]||v.$tableContent[t]),x=!!v.$empty[t];y.isEmpty=x;y.isUnknown=!v[t];y._={isBlockLike:w,hasInlineStarted:x||!w};};(function(){var t=function(u,v){u=u[0];v=v[0];return u<v?-1:u>v?1:0;};CKEDITOR.htmlParser.element.prototype={type:1,add:CKEDITOR.htmlParser.fragment.prototype.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes);},writeHtml:function(u,v){var w=this.attributes;if(w._cke_replacedata){u.write(w._cke_replacedata);return;}var x=this,y=x.name,z,A;if(v){for(;;){if(!(y=v.onElementName(y)))return;x.name=y;if(!(x=v.onElement(x)))return;if(x.name==y)break;y=x.name;if(!y){CKEDITOR.htmlParser.fragment.prototype.writeHtml.apply(x,arguments);return;}}w=x.attributes;}u.openTag(y,w);if(u.sortAttributes){var B=[];
for(z in w){A=w[z];if(v&&(!(z=v.onAttributeName(z))||(A=v.onAttribute(x,z,A))===(false)))continue;B.push([z,A]);}B.sort(t);for(var C=0,D=B.length;C<D;C++){var E=B[C];u.attribute(E[0],E[1]);}}else for(z in w){A=w[z];if(v&&(!(z=v.onAttributeName(z))||(A=v.onAttribute(x,z,A))===(false)))continue;u.attribute(z,A);}u.openTagClose(y,x.isEmpty);if(!x.isEmpty){CKEDITOR.htmlParser.fragment.prototype.writeHtml.apply(x,arguments);u.closeTag(y);}}};})();(function(){CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(y){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(y)this.addRules(y,10);},proto:{addRules:function(y,z){var A=this;if(typeof z!='number')z=10;u(A._.elementNames,y.elementNames,z);u(A._.attributeNames,y.attributeNames,z);v(A._.elements,y.elements,z);v(A._.attributes,y.attributes,z);A._.text=w(A._.text,y.text,z)||A._.text;A._.comment=w(A._.comment,y.comment,z)||A._.comment;},onElementName:function(y){return t(y,this._.elementNames);},onAttributeName:function(y){return t(y,this._.attributeNames);},onText:function(y){var z=this._.text;return z?z.filter(y):y;},onComment:function(y){var z=this._.comment;return z?z.filter(y):y;},onElement:function(y){var D=this;var z=[D._.elements[y.name],D._.elements.$],A,B;for(var C=0;C<2;C++){A=z[C];if(A){B=A.filter(y,D);if(B===false)return null;if(B&&B!=y)return D.onElement(B);}}return y;},onAttribute:function(y,z,A){var B=this._.attributes[z];if(B){var C=B.filter(A,y,this);if(C===false)return false;if(typeof C!='undefined')return C;}return A;}}});function t(y,z){for(var A=0;y&&A<z.length;A++){var B=z[A];y=y.replace(B[0],B[1]);}return y;};function u(y,z,A){var B,C,D=y.length,E=z&&z.length;if(E){for(B=0;B<D&&y[B].pri<A;B++){}for(C=E-1;C>=0;C--){var F=z[C];F.pri=A;y.splice(B,0,F);}}};function v(y,z,A){if(z)for(var B in z){var C=y[B];y[B]=w(C,z[B],A);if(!C)y.$length++;}};function w(y,z,A){if(z){z.pri=A;if(y){if(!y.splice){if(y.pri>A)y=[z,y];else y=[y,z];y.filter=x;}else u(y,z,A);return y;}else{z.filter=z;return z;}}};function x(y){var z=typeof y=='object';for(var A=0;A<this.length;A++){var B=this[A],C=B.apply(window,arguments);if(typeof C!='undefined'){if(C===false)return false;if(z&&C!=y)return C;}}return null;};})();CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]};},proto:{openTag:function(t,u){this._.output.push('<',t);},openTagClose:function(t,u){if(u)this._.output.push(' />');else this._.output.push('>');},attribute:function(t,u){this._.output.push(' ',t,'="',u,'"');
},closeTag:function(t){this._.output.push('</',t,'>');},text:function(t){this._.output.push(t);},comment:function(t){this._.output.push('<!--',t,'-->');},write:function(t){this._.output.push(t);},reset:function(){this._.output=[];},getHtml:function(t){var u=this._.output.join('');if(t)this.reset();return u;}}});delete CKEDITOR.loadFullCore;CKEDITOR.instances={};CKEDITOR.document=new CKEDITOR.dom.document(document);CKEDITOR.add=function(t){CKEDITOR.instances[t.name]=t;t.on('focus',function(){if(CKEDITOR.currentInstance!=t){CKEDITOR.currentInstance=t;CKEDITOR.fire('currentInstance');}});t.on('blur',function(){if(CKEDITOR.currentInstance==t){CKEDITOR.currentInstance=null;CKEDITOR.fire('currentInstance');}});};CKEDITOR.remove=function(t){delete CKEDITOR.instances[t.name];};CKEDITOR.TRISTATE_ON=1;CKEDITOR.TRISTATE_OFF=2;CKEDITOR.TRISTATE_DISABLED=0;(function(){var t={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,de:1},u={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},v=function(w){var x=w.getChildren();for(var y=0,z=x.count();y<z;y++){var A=x.getItem(y);if(A.type==1&&CKEDITOR.dtd.$block[A.getName()])return true;}return false;};CKEDITOR.dom.elementPath=function(w){var C=this;var x=null,y=null,z=[],A=w;while(A){if(A.type==1){if(!C.lastElement)C.lastElement=A;var B=A.getName();if(CKEDITOR.env.ie&&A.$.scopeName!='HTML')B=A.$.scopeName.toLowerCase()+':'+B;if(!y){if(!x&&t[B])x=A;if(u[B])if(!x&&B=='div'&&!v(A))x=A;else y=A;}z.push(A);if(B=='body')break;}A=A.getParent();}C.block=x;C.blockLimit=y;C.elements=z;};})();CKEDITOR.dom.elementPath.prototype={compare:function(t){var u=this.elements,v=t&&t.elements;if(!v||u.length!=v.length)return false;for(var w=0;w<u.length;w++)if(!u[w].equals(v[w]))return false;return true;}};CKEDITOR.dom.text=function(t,u){if(typeof t=='string')t=(u?u.$:document).createTextNode(t);this.$=t;};CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node();CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:3,getLength:function(){return this.$.nodeValue.length;},getText:function(){return this.$.nodeValue;},split:function(t){var y=this;if(CKEDITOR.env.ie&&t==y.getLength()){var u=y.getDocument().createText('');u.insertAfter(y);return u;}var v=y.getDocument(),w=new CKEDITOR.dom.text(y.$.splitText(t),v);if(CKEDITOR.env.ie8){var x=new CKEDITOR.dom.text('',v);x.insertAfter(w);x.remove();}return w;},substring:function(t,u){if(typeof u!='number')return this.$.nodeValue.substr(t);else return this.$.nodeValue.substring(t,u);
}});CKEDITOR.dom.documentFragment=function(t){t=t||CKEDITOR.document;this.$=t.$.createDocumentFragment();};CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:11,insertAfterNode:function(t){t=t.$;t.parentNode.insertBefore(this.$,t.nextSibling);}},true,{append:1,appendBogus:1,getFirst:1,getLast:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1});(function(){function t(x,y){if(this._.end)return null;var z,A=this.range,B,C=this.guard,D=this.type,E=x?'getPreviousSourceNode':'getNextSourceNode';if(!this._.start){this._.start=1;A.trim();if(A.collapsed){this.end();return null;}}if(!x&&!this._.guardLTR){var F=A.endContainer,G=F.getChild(A.endOffset);this._.guardLTR=function(K,L){return(!L||!F.equals(K))&&((!G||!K.equals(G))&&(K.type!=1||K.getName()!='body'));};}if(x&&!this._.guardRTL){var H=A.startContainer,I=A.startOffset>0&&H.getChild(A.startOffset-1);this._.guardRTL=function(K,L){return(!L||!H.equals(K))&&((!I||!K.equals(I))&&(K.type!=1||K.getName()!='body'));};}var J=x?this._.guardRTL:this._.guardLTR;if(C)B=function(K,L){if(J(K,L)===false)return false;return C(K);};else B=J;if(this.current)z=this.current[E](false,D,B);else if(x){z=A.endContainer;if(A.endOffset>0){z=z.getChild(A.endOffset-1);if(B(z)===false)z=null;}else z=B(z)===false?null:z.getPreviousSourceNode(true,D,B);}else{z=A.startContainer;z=z.getChild(A.startOffset);if(z){if(B(z)===false)z=null;}else z=B(A.startContainer)===false?null:A.startContainer.getNextSourceNode(true,D,B);}while(z&&!this._.end){this.current=z;if(!this.evaluator||this.evaluator(z)!==false){if(!y)return z;}else if(y&&this.evaluator)return false;z=z[E](false,D,B);}this.end();return this.current=null;};function u(x){var y,z=null;while(y=t.call(this,x))z=y;return z;};CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(x){this.range=x;this._={};},proto:{end:function(){this._.end=1;},next:function(){return t.call(this);},previous:function(){return t.call(this,true);},checkForward:function(){return t.call(this,false,true)!==false;},checkBackward:function(){return t.call(this,true,true)!==false;},lastForward:function(){return u.call(this);},lastBackward:function(){return u.call(this,true);},reset:function(){delete this.current;this._={};}}});var v={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},w={hr:1};
CKEDITOR.dom.element.prototype.isBlockBoundary=function(x){var y=CKEDITOR.tools.extend({},w,x||{});return v[this.getComputedStyle('display')]||y[this.getName()];};CKEDITOR.dom.walker.blockBoundary=function(x){return function(y,z){return!(y.type==1&&y.isBlockBoundary(x));};};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};CKEDITOR.dom.walker.bookmarkContents=function(x){},CKEDITOR.dom.walker.bookmark=function(x,y){function z(A){return A&&A.getName&&A.getName()=='span'&&A.hasAttribute('_fck_bookmark');};return function(A){var B,C;B=A&&!A.getName&&(C=A.getParent())&&(z(C));B=x?B:B||z(A);return y^B;};};CKEDITOR.dom.walker.whitespaces=function(x){return function(y){var z=y&&y.type==3&&!CKEDITOR.tools.trim(y.getText());return x^z;};};})();CKEDITOR.dom.range=function(t){var u=this;u.startContainer=null;u.startOffset=null;u.endContainer=null;u.endOffset=null;u.collapsed=true;u.document=t;};(function(){var t=function(y){y.collapsed=y.startContainer&&y.endContainer&&y.startContainer.equals(y.endContainer)&&y.startOffset==y.endOffset;},u=function(y,z,A){y.optimizeBookmark();var B=y.startContainer,C=y.endContainer,D=y.startOffset,E=y.endOffset,F,G;if(C.type==3)C=C.split(E);else if(C.getChildCount()>0)if(E>=C.getChildCount()){C=C.append(y.document.createText(''));G=true;}else C=C.getChild(E);if(B.type==3){B.split(D);if(B.equals(C))C=B.getNext();}else if(!D){B=B.getFirst().insertBeforeMe(y.document.createText(''));F=true;}else if(D>=B.getChildCount()){B=B.append(y.document.createText(''));F=true;}else B=B.getChild(D).getPrevious();var H=B.getParents(),I=C.getParents(),J,K,L;for(J=0;J<H.length;J++){K=H[J];L=I[J];if(!K.equals(L))break;}var M=A,N,O,P,Q;for(var R=J;R<H.length;R++){N=H[R];if(M&&!N.equals(B))O=M.append(N.clone());P=N.getNext();while(P){if(P.equals(I[R])||P.equals(C))break;Q=P.getNext();if(z==2)M.append(P.clone(true));else{P.remove();if(z==1)M.append(P);}P=Q;}if(M)M=O;}M=A;for(var S=J;S<I.length;S++){N=I[S];if(z>0&&!N.equals(C))O=M.append(N.clone());if(!H[S]||N.$.parentNode!=H[S].$.parentNode){P=N.getPrevious();while(P){if(P.equals(H[S])||P.equals(B))break;Q=P.getPrevious();if(z==2)M.$.insertBefore(P.$.cloneNode(true),M.$.firstChild);else{P.remove();if(z==1)M.$.insertBefore(P.$,M.$.firstChild);}P=Q;}}if(M)M=O;}if(z==2){var T=y.startContainer;if(T.type==3){T.$.data+=T.$.nextSibling.data;T.$.parentNode.removeChild(T.$.nextSibling);}var U=y.endContainer;if(U.type==3&&U.$.nextSibling){U.$.data+=U.$.nextSibling.data;U.$.parentNode.removeChild(U.$.nextSibling);
}}else{if(K&&L&&(B.$.parentNode!=K.$.parentNode||C.$.parentNode!=L.$.parentNode)){var V=L.getIndex();if(F&&L.$.parentNode==B.$.parentNode)V--;y.setStart(L.getParent(),V);}y.collapse(true);}if(F)B.remove();if(G&&C.$.parentNode)C.remove();},v={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1};function w(y){var z=false,A=CKEDITOR.dom.walker.bookmark(true);return function(B){if(A(B))return true;if(B.type==3){if(CKEDITOR.tools.trim(B.getText()).length)return false;}else if(!v[B.getName()])if(!y&&!CKEDITOR.env.ie&&B.getName()=='br'&&!z)z=true;else return false;return true;};};function x(y){return y.type!=3&&y.getName() in CKEDITOR.dtd.$removeEmpty||!CKEDITOR.tools.trim(y.getText())||y.getParent().hasAttribute('_fck_bookmark');};CKEDITOR.dom.range.prototype={clone:function(){var z=this;var y=new CKEDITOR.dom.range(z.document);y.startContainer=z.startContainer;y.startOffset=z.startOffset;y.endContainer=z.endContainer;y.endOffset=z.endOffset;y.collapsed=z.collapsed;return y;},collapse:function(y){var z=this;if(y){z.endContainer=z.startContainer;z.endOffset=z.startOffset;}else{z.startContainer=z.endContainer;z.startOffset=z.endOffset;}z.collapsed=true;},cloneContents:function(){var y=new CKEDITOR.dom.documentFragment(this.document);if(!this.collapsed)u(this,2,y);return y;},deleteContents:function(){if(this.collapsed)return;u(this,0);},extractContents:function(){var y=new CKEDITOR.dom.documentFragment(this.document);if(!this.collapsed)u(this,1,y);return y;},createBookmark:function(y){var D=this;var z,A,B,C;z=D.document.createElement('span');z.setAttribute('_fck_bookmark',1);z.setStyle('display','none');z.setHtml('&nbsp;');if(y){B='cke_bm_'+CKEDITOR.tools.getNextNumber();z.setAttribute('id',B+'S');}if(!D.collapsed){A=z.clone();A.setHtml('&nbsp;');if(y)A.setAttribute('id',B+'E');C=D.clone();C.collapse();C.insertNode(A);}C=D.clone();C.collapse(true);C.insertNode(z);if(A){D.setStartAfter(z);D.setEndBefore(A);}else D.moveToPosition(z,4);return{startNode:y?B+'S':z,endNode:y?B+'E':A,serializable:y};},createBookmark2:function(y){var F=this;var z=F.startContainer,A=F.endContainer,B=F.startOffset,C=F.endOffset,D,E;if(!z||!A)return{start:0,end:0};if(y){if(z.type==1){D=z.getChild(B);if(D&&D.type==3&&B>0&&D.getPrevious().type==3){z=D;B=0;}}while(z.type==3&&(E=z.getPrevious())&&(E.type==3)){z=E;B+=E.getLength();}if(!F.isCollapsed){if(A.type==1){D=A.getChild(C);if(D&&D.type==3&&C>0&&D.getPrevious().type==3){A=D;
C=0;}}while(A.type==3&&(E=A.getPrevious())&&(E.type==3)){A=E;C+=E.getLength();}}}return{start:z.getAddress(y),end:F.isCollapsed?null:A.getAddress(y),startOffset:B,endOffset:C,normalized:y,is2:true};},moveToBookmark:function(y){var G=this;if(y.is2){var z=G.document.getByAddress(y.start,y.normalized),A=y.startOffset,B=y.end&&G.document.getByAddress(y.end,y.normalized),C=y.endOffset;G.setStart(z,A);if(B)G.setEnd(B,C);else G.collapse(true);}else{var D=y.serializable,E=D?G.document.getById(y.startNode):y.startNode,F=D?G.document.getById(y.endNode):y.endNode;G.setStartBefore(E);E.remove();if(F){G.setEndBefore(F);F.remove();}else G.collapse(true);}},getBoundaryNodes:function(){var D=this;var y=D.startContainer,z=D.endContainer,A=D.startOffset,B=D.endOffset,C;if(y.type==1){C=y.getChildCount();if(C>A)y=y.getChild(A);else if(C<1)y=y.getPreviousSourceNode();else{y=y.$;while(y.lastChild)y=y.lastChild;y=new CKEDITOR.dom.node(y);y=y.getNextSourceNode()||y;}}if(z.type==1){C=z.getChildCount();if(C>B)z=z.getChild(B).getPreviousSourceNode(true);else if(C<1)z=z.getPreviousSourceNode();else{z=z.$;while(z.lastChild)z=z.lastChild;z=new CKEDITOR.dom.node(z);}}if(y.getPosition(z)&2)y=z;return{startNode:y,endNode:z};},getCommonAncestor:function(y,z){var D=this;var A=D.startContainer,B=D.endContainer,C;if(A.equals(B)){if(y&&A.type==1&&D.startOffset==D.endOffset-1)C=A.getChild(D.startOffset);else C=A;}else C=A.getCommonAncestor(B);return z&&!C.is?C.getParent():C;},optimize:function(){var A=this;var y=A.startContainer,z=A.startOffset;if(y.type!=1)if(!z)A.setStartBefore(y);else if(z>=y.getLength())A.setStartAfter(y);y=A.endContainer;z=A.endOffset;if(y.type!=1)if(!z)A.setEndBefore(y);else if(z>=y.getLength())A.setEndAfter(y);},optimizeBookmark:function(){var A=this;var y=A.startContainer,z=A.endContainer;if(y.is&&y.is('span')&&y.hasAttribute('_fck_bookmark'))A.setStartAt(y,3);if(z&&z.is&&z.is('span')&&z.hasAttribute('_fck_bookmark'))A.setEndAt(z,4);},trim:function(y,z){var G=this;var A=G.startContainer,B=G.startOffset,C=G.collapsed;if((!y||C)&&(A&&A.type==3)){if(!B){B=A.getIndex();A=A.getParent();}else if(B>=A.getLength()){B=A.getIndex()+1;A=A.getParent();}else{var D=A.split(B);B=A.getIndex()+1;A=A.getParent();if(!C&&G.startContainer.equals(G.endContainer))G.setEnd(D,G.endOffset-G.startOffset);}G.setStart(A,B);if(C)G.collapse(true);}var E=G.endContainer,F=G.endOffset;if(!(z||C)&&E&&E.type==3){if(!F){F=E.getIndex();E=E.getParent();}else if(F>=E.getLength()){F=E.getIndex()+1;E=E.getParent();
}else{E.split(F);F=E.getIndex()+1;E=E.getParent();}G.setEnd(E,F);}},enlarge:function(y){switch(y){case 1:if(this.collapsed)return;var z=this.getCommonAncestor(),A=this.document.getBody(),B,C,D,E,F,G=false,H,I,J=this.startContainer,K=this.startOffset;if(J.type==3){if(K){J=!CKEDITOR.tools.trim(J.substring(0,K)).length&&J;G=!!J;}if(J)if(!(E=J.getPrevious()))D=J.getParent();}else{if(K)E=J.getChild(K-1)||J.getLast();if(!E)D=J;}while(D||E){if(D&&!E){if(!F&&D.equals(z))F=true;if(!A.contains(D))break;if(!G||D.getComputedStyle('display')!='inline'){G=false;if(F)B=D;else this.setStartBefore(D);}E=D.getPrevious();}while(E){H=false;if(E.type==3){I=E.getText();if(/[^\s\ufeff]/.test(I))E=null;H=/[\s\ufeff]$/.test(I);}else if(E.$.offsetWidth>0&&!E.getAttribute('_fck_bookmark'))if(G&&CKEDITOR.dtd.$removeEmpty[E.getName()]){I=E.getText();if(!/[^\s\ufeff]/.test(I))E=null;else{var L=E.$.all||E.$.getElementsByTagName('*');for(var M=0,N;N=L[M++];)if(!CKEDITOR.dtd.$removeEmpty[N.nodeName.toLowerCase()]){E=null;break;}}if(E)H=!!I.length;}else E=null;if(H)if(G){if(F)B=D;else if(D)this.setStartBefore(D);}else G=true;if(E){var O=E.getPrevious();if(!D&&!O){D=E;E=null;break;}E=O;}else D=null;}if(D)D=D.getParent();}J=this.endContainer;K=this.endOffset;D=E=null;F=G=false;if(J.type==3){J=!CKEDITOR.tools.trim(J.substring(K)).length&&J;G=!(J&&J.getLength());if(J)if(!(E=J.getNext()))D=J.getParent();}else{E=J.getChild(K);if(!E)D=J;}while(D||E){if(D&&!E){if(!F&&D.equals(z))F=true;if(!A.contains(D))break;if(!G||D.getComputedStyle('display')!='inline'){G=false;if(F)C=D;else if(D)this.setEndAfter(D);}E=D.getNext();}while(E){H=false;if(E.type==3){I=E.getText();if(/[^\s\ufeff]/.test(I))E=null;H=/^[\s\ufeff]/.test(I);}else if(E.$.offsetWidth>0&&!E.getAttribute('_fck_bookmark'))if(G&&CKEDITOR.dtd.$removeEmpty[E.getName()]){I=E.getText();if(!/[^\s\ufeff]/.test(I))E=null;else{L=E.$.all||E.$.getElementsByTagName('*');for(M=0;N=L[M++];)if(!CKEDITOR.dtd.$removeEmpty[N.nodeName.toLowerCase()]){E=null;break;}}if(E)H=!!I.length;}else E=null;if(H)if(G)if(F)C=D;else this.setEndAfter(D);if(E){O=E.getNext();if(!D&&!O){D=E;E=null;break;}E=O;}else D=null;}if(D)D=D.getParent();}if(B&&C){z=B.contains(C)?C:B;this.setStartBefore(z);this.setEndAfter(z);}break;case 2:case 3:var P=new CKEDITOR.dom.range(this.document);A=this.document.getBody();P.setStartAt(A,1);P.setEnd(this.startContainer,this.startOffset);var Q=new CKEDITOR.dom.walker(P),R,S,T=CKEDITOR.dom.walker.blockBoundary(y==3?{br:1}:null),U=function(W){var X=T(W);
if(!X)R=W;return X;},V=function(W){var X=U(W);if(!X&&W.is&&W.is('br'))S=W;return X;};Q.guard=U;D=Q.lastBackward();R=R||A;this.setStartAt(R,!R.is('br')&&(!D||R.contains(D))?1:4);P=this.clone();P.collapse();P.setEndAt(A,2);Q=new CKEDITOR.dom.walker(P);Q.guard=y==3?V:U;R=null;D=Q.lastForward();R=R||A;this.setEndAt(R,!R.is('br')&&(!D||R.contains(D))?2:3);if(S)this.setEndAfter(S);}},insertNode:function(y){var C=this;C.optimizeBookmark();C.trim(false,true);var z=C.startContainer,A=C.startOffset,B=z.getChild(A);if(B)y.insertBefore(B);else z.append(y);if(y.getParent().equals(C.endContainer))C.endOffset++;C.setStartBefore(y);},moveToPosition:function(y,z){this.setStartAt(y,z);this.collapse(true);},selectNodeContents:function(y){this.setStart(y,0);this.setEnd(y,y.type==3?y.getLength():y.getChildCount());},setStart:function(y,z){var A=this;A.startContainer=y;A.startOffset=z;if(!A.endContainer){A.endContainer=y;A.endOffset=z;}t(A);},setEnd:function(y,z){var A=this;A.endContainer=y;A.endOffset=z;if(!A.startContainer){A.startContainer=y;A.startOffset=z;}t(A);},setStartAfter:function(y){this.setStart(y.getParent(),y.getIndex()+1);},setStartBefore:function(y){this.setStart(y.getParent(),y.getIndex());},setEndAfter:function(y){this.setEnd(y.getParent(),y.getIndex()+1);},setEndBefore:function(y){this.setEnd(y.getParent(),y.getIndex());},setStartAt:function(y,z){var A=this;switch(z){case 1:A.setStart(y,0);break;case 2:if(y.type==3)A.setStart(y,y.getLength());else A.setStart(y,y.getChildCount());break;case 3:A.setStartBefore(y);break;case 4:A.setStartAfter(y);}t(A);},setEndAt:function(y,z){var A=this;switch(z){case 1:A.setEnd(y,0);break;case 2:if(y.type==3)A.setEnd(y,y.getLength());else A.setEnd(y,y.getChildCount());break;case 3:A.setEndBefore(y);break;case 4:A.setEndAfter(y);}t(A);},fixBlock:function(y,z){var C=this;var A=C.createBookmark(),B=C.document.createElement(z);C.collapse(y);C.enlarge(2);C.extractContents().appendTo(B);B.trim();if(!CKEDITOR.env.ie)B.appendBogus();C.insertNode(B);C.moveToBookmark(A);return B;},splitBlock:function(y){var J=this;var z=new CKEDITOR.dom.elementPath(J.startContainer),A=new CKEDITOR.dom.elementPath(J.endContainer),B=z.blockLimit,C=A.blockLimit,D=z.block,E=A.block,F=null;if(!B.equals(C))return null;if(y!='br'){if(!D){D=J.fixBlock(true,y);E=new CKEDITOR.dom.elementPath(J.endContainer).block;}if(!E)E=J.fixBlock(false,y);}var G=D&&J.checkStartOfBlock(),H=E&&J.checkEndOfBlock();J.deleteContents();if(D&&D.equals(E))if(H){F=new CKEDITOR.dom.elementPath(J.startContainer);
J.moveToPosition(E,4);E=null;}else if(G){F=new CKEDITOR.dom.elementPath(J.startContainer);J.moveToPosition(D,3);D=null;}else{J.setEndAt(D,2);var I=J.extractContents();E=D.clone(false);I.appendTo(E);E.insertAfter(D);J.moveToPosition(D,4);if(!CKEDITOR.env.ie&&!D.is('ul','ol'))D.appendBogus();}return{previousBlock:D,nextBlock:E,wasStartOfBlock:G,wasEndOfBlock:H,elementPath:F};},checkBoundaryOfElement:function(y,z){var A=this.clone();A[z==1?'setStartAt':'setEndAt'](y,z==1?1:2);var B=new CKEDITOR.dom.walker(A),C=false;B.evaluator=x;return B[z==1?'checkBackward':'checkForward']();},checkStartOfBlock:function(){var E=this;var y=E.startContainer,z=E.startOffset;if(z&&y.type==3){var A=CKEDITOR.tools.ltrim(y.substring(0,z));if(A.length)return false;}E.trim();var B=new CKEDITOR.dom.elementPath(E.startContainer),C=E.clone();C.collapse(true);C.setStartAt(B.block||B.blockLimit,1);var D=new CKEDITOR.dom.walker(C);D.evaluator=w(true);return D.checkBackward();},checkEndOfBlock:function(){var E=this;var y=E.endContainer,z=E.endOffset;if(y.type==3){var A=CKEDITOR.tools.rtrim(y.substring(z));if(A.length)return false;}E.trim();var B=new CKEDITOR.dom.elementPath(E.endContainer),C=E.clone();C.collapse(false);C.setEndAt(B.block||B.blockLimit,2);var D=new CKEDITOR.dom.walker(C);D.evaluator=w(false);return D.checkForward();},moveToElementEditStart:function(y){var z;while(y&&y.type==1){if(y.isEditable())z=y;else if(z)break;y=y.getFirst();}if(z){this.moveToPosition(z,1);return true;}else return false;},getEnclosedNode:function(){var y=this.clone(),z=new CKEDITOR.dom.walker(y),A=CKEDITOR.dom.walker.bookmark(true),B=CKEDITOR.dom.walker.whitespaces(true),C=function(E){return B(E)&&A(E);};y.evaluator=C;var D=z.next();z.reset();return D&&D.equals(z.previous())?D:null;},getTouchedStartNode:function(){var y=this.startContainer;if(this.collapsed||y.type!=1)return y;return y.getChild(this.startOffset)||y;},getTouchedEndNode:function(){var y=this.endContainer;if(this.collapsed||y.type!=1)return y;return y.getChild(this.endOffset-1)||y;}};})();CKEDITOR.POSITION_AFTER_START=1;CKEDITOR.POSITION_BEFORE_END=2;CKEDITOR.POSITION_BEFORE_START=3;CKEDITOR.POSITION_AFTER_END=4;CKEDITOR.ENLARGE_ELEMENT=1;CKEDITOR.ENLARGE_BLOCK_CONTENTS=2;CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3;CKEDITOR.START=1;CKEDITOR.END=2;CKEDITOR.STARTEND=3;(function(){var t=CKEDITOR.env.ie&&CKEDITOR.env.version<7?CKEDITOR.basePath+'images/spacer.gif':'about:blank',u=CKEDITOR.dom.element.createFromHtml('<div style="width:0px;height:0px;position:absolute;left:-10000px;background-image:url('+t+')"></div>',CKEDITOR.document);
u.appendTo(CKEDITOR.document.getHead());try{CKEDITOR.env.hc=u.getComputedStyle('background-image')=='none';}catch(v){CKEDITOR.env.hc=false;}if(CKEDITOR.env.hc)CKEDITOR.env.cssClass+=' cke_hc';u.remove();})();CKEDITOR.plugins.load(CKEDITOR.config.corePlugins.split(','),function(){CKEDITOR.status='loaded';CKEDITOR.fire('loaded');var t=CKEDITOR._.pending;if(t){delete CKEDITOR._.pending;for(var u=0;u<t.length;u++)CKEDITOR.add(t[u]);}});CKEDITOR.lang.en={dir:'ltr',editorTitle:'Rich text editor, %1',source:'Source',newPage:'New Page',save:'Save',preview:'Preview',cut:'Cut',copy:'Copy',paste:'Paste',print:'Print',underline:'Underline',bold:'Bold',italic:'Italic',selectAll:'Select All',removeFormat:'Remove Format',strike:'Strike Through',subscript:'Subscript',superscript:'Superscript',horizontalrule:'Insert Horizontal Line',pagebreak:'Insert Page Break for Printing',unlink:'Unlink',undo:'Undo',redo:'Redo',common:{browseServer:'Browse Server',url:'URL',protocol:'Protocol',upload:'Upload',uploadSubmit:'Send it to the Server',image:'Image',flash:'Flash',form:'Form',checkbox:'Checkbox',radio:'Radio Button',textField:'Text Field',textarea:'Textarea',hiddenField:'Hidden Field',button:'Button',select:'Selection Field',imageButton:'Image Button',notSet:'<not set>',id:'Id',name:'Name',langDir:'Language Direction',langDirLtr:'Left to Right (LTR)',langDirRtl:'Right to Left (RTL)',langCode:'Language Code',longDescr:'Long Description URL',cssClass:'Stylesheet Classes',advisoryTitle:'Advisory Title',cssStyle:'Style',ok:'OK',cancel:'Cancel',generalTab:'General',advancedTab:'Advanced',validateNumberFailed:'This value is not a number.',confirmNewPage:'Any unsaved changes to this content will be lost. Are you sure you want to load new page?',confirmCancel:'Some of the options have been changed. Are you sure to close the dialog?',unavailable:'%1<span class="cke_accessibility">, unavailable</span>'},specialChar:{toolbar:'Insert Special Character',title:'Select Special Character'},link:{toolbar:'Link',menu:'Edit Link',title:'Link',info:'Link Info',target:'Target',upload:'Upload',advanced:'Advanced',type:'Link Type',toAnchor:'Link to anchor in the text',toEmail:'E-mail',target:'Target',targetNotSet:'<not set>',targetFrame:'<frame>',targetPopup:'<popup window>',targetNew:'New Window (_blank)',targetTop:'Topmost Window (_top)',targetSelf:'Same Window (_self)',targetParent:'Parent Window (_parent)',targetFrameName:'Target Frame Name',targetPopupName:'Popup Window Name',popupFeatures:'Popup Window Features',popupResizable:'Resizable',popupStatusBar:'Status Bar',popupLocationBar:'Location Bar',popupToolbar:'Toolbar',popupMenuBar:'Menu Bar',popupFullScreen:'Full Screen (IE)',popupScrollBars:'Scroll Bars',popupDependent:'Dependent (Netscape)',popupWidth:'Width',popupLeft:'Left Position',popupHeight:'Height',popupTop:'Top Position',id:'Id',langDir:'Language Direction',langDirNotSet:'<not set>',langDirLTR:'Left to Right (LTR)',langDirRTL:'Right to Left (RTL)',acccessKey:'Access Key',name:'Name',langCode:'Language Code',tabIndex:'Tab Index',advisoryTitle:'Advisory Title',advisoryContentType:'Advisory Content Type',cssClasses:'Stylesheet Classes',charset:'Linked Resource Charset',styles:'Style',selectAnchor:'Select an Anchor',anchorName:'By Anchor Name',anchorId:'By Element Id',emailAddress:'E-Mail Address',emailSubject:'Message Subject',emailBody:'Message Body',noAnchors:'(No anchors available in the document)',noUrl:'Please type the link URL',noEmail:'Please type the e-mail address'},anchor:{toolbar:'Anchor',menu:'Edit Anchor',title:'Anchor Properties',name:'Anchor Name',errorName:'Please type the anchor name'},findAndReplace:{title:'Find and Replace',find:'Find',replace:'Replace',findWhat:'Find what:',replaceWith:'Replace with:',notFoundMsg:'The specified text was not found.',matchCase:'Match case',matchWord:'Match whole word',matchCyclic:'Match cyclic',replaceAll:'Replace All',replaceSuccessMsg:'%1 occurrence(s) replaced.'},table:{toolbar:'Table',title:'Table Properties',menu:'Table Properties',deleteTable:'Delete Table',rows:'Rows',columns:'Columns',border:'Border size',align:'Alignment',alignNotSet:'<Not set>',alignLeft:'Left',alignCenter:'Center',alignRight:'Right',width:'Width',widthPx:'pixels',widthPc:'percent',height:'Height',cellSpace:'Cell spacing',cellPad:'Cell padding',caption:'Caption',summary:'Summary',headers:'Headers',headersNone:'None',headersColumn:'First column',headersRow:'First Row',headersBoth:'Both',invalidRows:'Number of rows must be a number greater than 0.',invalidCols:'Number of columns must be a number greater than 0.',invalidBorder:'Border size must be a number.',invalidWidth:'Table width must be a number.',invalidHeight:'Table height must be a number.',invalidCellSpacing:'Cell spacing must be a number.',invalidCellPadding:'Cell padding must be a number.',cell:{menu:'Cell',insertBefore:'Insert Cell Before',insertAfter:'Insert Cell After',deleteCell:'Delete Cells',merge:'Merge Cells',mergeRight:'Merge Right',mergeDown:'Merge Down',splitHorizontal:'Split Cell Horizontally',splitVertical:'Split Cell Vertically',title:'Cell Properties',cellType:'Cell Type',rowSpan:'Rows Span',colSpan:'Columns Span',wordWrap:'Word Wrap',hAlign:'Horizontal Alignment',vAlign:'Vertical Alignment',alignTop:'Top',alignMiddle:'Middle',alignBottom:'Bottom',alignBaseline:'Baseline',bgColor:'Background Color',borderColor:'Border Color',data:'Data',header:'Header',yes:'Yes',no:'No',invalidWidth:'Cell width must be a number.',invalidHeight:'Cell height must be a number.',invalidRowSpan:'Rows span must be a whole number.',invalidColSpan:'Columns span must be a whole number.',chooseColor:'Choose'},row:{menu:'Row',insertBefore:'Insert Row Before',insertAfter:'Insert Row After',deleteRow:'Delete Rows'},column:{menu:'Column',insertBefore:'Insert Column Before',insertAfter:'Insert Column After',deleteColumn:'Delete Columns'}},button:{title:'Button Properties',text:'Text (Value)',type:'Type',typeBtn:'Button',typeSbm:'Submit',typeRst:'Reset'},checkboxAndRadio:{checkboxTitle:'Checkbox Properties',radioTitle:'Radio Button Properties',value:'Value',selected:'Selected'},form:{title:'Form Properties',menu:'Form Properties',action:'Action',method:'Method',encoding:'Encoding',target:'Target',targetNotSet:'<not set>',targetNew:'New Window (_blank)',targetTop:'Topmost Window (_top)',targetSelf:'Same Window (_self)',targetParent:'Parent Window (_parent)'},select:{title:'Selection Field Properties',selectInfo:'Select Info',opAvail:'Available Options',value:'Value',size:'Size',lines:'lines',chkMulti:'Allow multiple selections',opText:'Text',opValue:'Value',btnAdd:'Add',btnModify:'Modify',btnUp:'Up',btnDown:'Down',btnSetValue:'Set as selected value',btnDelete:'Delete'},textarea:{title:'Textarea Properties',cols:'Columns',rows:'Rows'},textfield:{title:'Text Field Properties',name:'Name',value:'Value',charWidth:'Character Width',maxChars:'Maximum Characters',type:'Type',typeText:'Text',typePass:'Password'},hidden:{title:'Hidden Field Properties',name:'Name',value:'Value'},image:{title:'Image Properties',titleButton:'Image Button Properties',menu:'Image Properties',infoTab:'Image Info',btnUpload:'Send it to the Server',url:'URL',upload:'Upload',alt:'Alternative Text',width:'Width',height:'Height',lockRatio:'Lock Ratio',resetSize:'Reset Size',border:'Border',hSpace:'HSpace',vSpace:'VSpace',align:'Align',alignLeft:'Left',alignAbsBottom:'Abs Bottom',alignAbsMiddle:'Abs Middle',alignBaseline:'Baseline',alignBottom:'Bottom',alignMiddle:'Middle',alignRight:'Right',alignTextTop:'Text Top',alignTop:'Top',preview:'Preview',alertUrl:'Please type the image URL',linkTab:'Link',button2Img:'Do you want to transform the selected image button on a simple image?',img2Button:'Do you want to transform the selected image on a image button?',urlMissing:'Image source URL is missing.'},flash:{properties:'Flash Properties',propertiesTab:'Properties',title:'Flash Properties',chkPlay:'Auto Play',chkLoop:'Loop',chkMenu:'Enable Flash Menu',chkFull:'Allow Fullscreen',scale:'Scale',scaleAll:'Show all',scaleNoBorder:'No Border',scaleFit:'Exact Fit',access:'Script Access',accessAlways:'Always',accessSameDomain:'Same domain',accessNever:'Never',align:'Align',alignLeft:'Left',alignAbsBottom:'Abs Bottom',alignAbsMiddle:'Abs Middle',alignBaseline:'Baseline',alignBottom:'Bottom',alignMiddle:'Middle',alignRight:'Right',alignTextTop:'Text Top',alignTop:'Top',quality:'Quality',qualityBest:'Best',qualityHigh:'High',qualityAutoHigh:'Auto High',qualityMedium:'Medium',qualityAutoLow:'Auto Low',qualityLow:'Low',windowModeWindow:'Window',windowModeOpaque:'Opaque',windowModeTransparent:'Transparent',windowMode:'Window mode',flashvars:'Variables for Flash',bgcolor:'Background color',width:'Width',height:'Height',hSpace:'HSpace',vSpace:'VSpace',validateSrc:'URL must not be empty.',validateWidth:'Width must be a number.',validateHeight:'Height must be a number.',validateHSpace:'HSpace must be a number.',validateVSpace:'VSpace must be a number.'},spellCheck:{toolbar:'Check Spelling',title:'Spell Check',notAvailable:'Sorry, but service is unavailable now.',errorLoading:'Error loading application service host: %s.',notInDic:'Not in dictionary',changeTo:'Change to',btnIgnore:'Ignore',btnIgnoreAll:'Ignore All',btnReplace:'Replace',btnReplaceAll:'Replace All',btnUndo:'Undo',noSuggestions:'- No suggestions -',progress:'Spell check in progress...',noMispell:'Spell check complete: No misspellings found',noChanges:'Spell check complete: No words changed',oneChange:'Spell check complete: One word changed',manyChanges:'Spell check complete: %1 words changed',ieSpellDownload:'Spell checker not installed. Do you want to download it now?'},smiley:{toolbar:'Smiley',title:'Insert a Smiley'},elementsPath:{eleTitle:'%1 element'},numberedlist:'Insert/Remove Numbered List',bulletedlist:'Insert/Remove Bulleted List',indent:'Increase Indent',outdent:'Decrease Indent',justify:{left:'Left Justify',center:'Center Justify',right:'Right Justify',block:'Block Justify'},blockquote:'Blockquote',clipboard:{title:'Paste',cutError:"Your browser security settings don't permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl+X).",copyError:"Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl+C).",pasteMsg:'Please paste inside the following box using the keyboard (<strong>Ctrl+V</strong>) and hit OK',securityMsg:'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.'},pastefromword:{toolbar:'Paste from Word',title:'Paste from Word',advice:'Please paste inside the following box using the keyboard (<strong>Ctrl+V</strong>) and hit <strong>OK</strong>.',ignoreFontFace:'Ignore Font Face definitions',removeStyle:'Remove Styles definitions'},pasteText:{button:'Paste as plain text',title:'Paste as Plain Text'},templates:{button:'Templates',title:'Content Templates',insertOption:'Replace actual contents',selectPromptMsg:'Please select the template to open in the editor',emptyListMsg:'(No templates defined)'},showBlocks:'Show Blocks',stylesCombo:{label:'Styles',voiceLabel:'Styles',panelVoiceLabel:'Select a style',panelTitle1:'Block Styles',panelTitle2:'Inline Styles',panelTitle3:'Object Styles'},format:{label:'Format',voiceLabel:'Format',panelTitle:'Paragraph Format',panelVoiceLabel:'Select a paragraph format',tag_p:'Normal',tag_pre:'Formatted',tag_address:'Address',tag_h1:'Heading 1',tag_h2:'Heading 2',tag_h3:'Heading 3',tag_h4:'Heading 4',tag_h5:'Heading 5',tag_h6:'Heading 6',tag_div:'Normal (DIV)'},font:{label:'Font',voiceLabel:'Font',panelTitle:'Font Name',panelVoiceLabel:'Select a font'},fontSize:{label:'Size',voiceLabel:'Font Size',panelTitle:'Font Size',panelVoiceLabel:'Select a font size'},colorButton:{textColorTitle:'Text Color',bgColorTitle:'Background Color',auto:'Automatic',more:'More Colors...'},colors:{'000':'Black',800000:'Maroon','8B4513':'Saddle Brown','2F4F4F':'Dark Slate Gray','008080':'Teal','000080':'Navy','4B0082':'Indigo',696969:'Dim Gray',B22222:'Fire Brick',A52A2A:'Brown',DAA520:'Golden Rod','006400':'Dark Green','40E0D0':'Turquoise','0000CD':'Medium Blue',800080:'Purple',808080:'Gray',F00:'Red',FF8C00:'Dark Orange',FFD700:'Gold','008000':'Green','0FF':'Cyan','00F':'Blue',EE82EE:'Violet',A9A9A9:'Dark Gray',FFA07A:'Light Salmon',FFA500:'Orange',FFFF00:'Yellow','00FF00':'Lime',AFEEEE:'Pale Turquoise',ADD8E6:'Light Blue',DDA0DD:'Plum',D3D3D3:'Light Grey',FFF0F5:'Lavender Blush',FAEBD7:'Antique White',FFFFE0:'Light Yellow',F0FFF0:'Honeydew',F0FFFF:'Azure',F0F8FF:'Alice Blue',E6E6FA:'Lavender',FFF:'White'},scayt:{title:'Spell Check As You Type',enable:'Enable SCAYT',disable:'Disable SCAYT',about:'About SCAYT',toggle:'Toggle SCAYT',options:'Options',langs:'Languages',moreSuggestions:'More suggestions',ignore:'Ignore',ignoreAll:'Ignore All',addWord:'Add Word',emptyDic:'Dictionary name should not be empty.',optionsTab:'Options',languagesTab:'Languages',dictionariesTab:'Dictionaries',aboutTab:'About'},about:{title:'About CKEditor',dlgTitle:'About CKEditor',moreInfo:'For licensing information please visit our web site:',copy:'Copyright &copy; $1. All rights reserved.'},maximize:'Maximize',minimize:'Minimize',fakeobjects:{anchor:'Anchor',flash:'Flash Animation',div:'Page Break',unknown:'Unknown Object'},resize:'Drag to resize',colordialog:{title:'Select color',highlight:'Highlight',selected:'Selected',clear:'Clear'}};
CKEDITOR.lang.hu={dir:'ltr',editorTitle:'HTML szerkesztő',source:'Forráskód',newPage:'Új oldal',save:'Mentés',preview:'Előnézet',cut:'Kivágás',copy:'Másolás',paste:'Beillesztés',print:'Nyomtatás',underline:'Aláhúzott',bold:'Félkövér',italic:'Dőlt',selectAll:'Mindent kijelöl',removeFormat:'Formázás eltávolítása',strike:'Áthúzott',subscript:'Alsó index',superscript:'Felső index',horizontalrule:'Elválasztóvonal beillesztése',pagebreak:'Oldaltörés beillesztése',unlink:'Hivatkozás törlése',undo:'Visszavonás',redo:'Ismétlés',common:{browseServer:'Böngészés a szerveren',url:'Hivatkozás',protocol:'Protokoll',upload:'Feltöltés',uploadSubmit:'Küldés a szerverre',image:'Kép',flash:'Flash',form:'Űrlap',checkbox:'Jelölőnégyzet',radio:'Választógomb',textField:'Szövegmező',textarea:'Szövegterület',hiddenField:'Rejtettmező',button:'Gomb',select:'Legördülő lista',imageButton:'Képgomb',notSet:'<nincs beállítva>',id:'Azonosító',name:'Név',langDir:'Írás iránya',langDirLtr:'Balról jobbra',langDirRtl:'Jobbról balra',langCode:'Nyelv kódja',longDescr:'Részletes leírás webcíme',cssClass:'Stíluskészlet',advisoryTitle:'Súgócimke',cssStyle:'Stílus',ok:'Rendben',cancel:'Mégsem',generalTab:'Általános',advancedTab:'További opciók',validateNumberFailed:'A mezőbe csak számokat írhat.',confirmNewPage:'Minden nem mentett változás el fog veszni! Biztosan be szeretné tölteni az oldalt?',confirmCancel:'Az űrlap tartalma megváltozott, ám a változásokat nem rögzítette. Biztosan be szeretné zárni az űrlapot?',unavailable:'%1<span class="cke_accessibility">, unavailable</span>'},specialChar:{toolbar:'Speciális karakter beillesztése',title:'Speciális karakter választása'},link:{toolbar:'Hivatkozás beillesztése/módosítása',menu:'Hivatkozás módosítása',title:'Hivatkozás tulajdonságai',info:'Alaptulajdonságok',target:'Tartalom megjelenítése',upload:'Feltöltés',advanced:'További opciók',type:'Hivatkozás típusa',toAnchor:'Horgony az oldalon',toEmail:'E-Mail',target:'Tartalom megjelenítése',targetNotSet:'<nincs beállítva>',targetFrame:'<keretben>',targetPopup:'<felugró ablakban>',targetNew:'Új ablakban (_blank)',targetTop:'Legfelső ablakban (_top)',targetSelf:'Azonos ablakban (_self)',targetParent:'Szülő ablakban (_parent)',targetFrameName:'Keret neve',targetPopupName:'Felugró ablak neve',popupFeatures:'Felugró ablak jellemzői',popupResizable:'Átméretezés',popupStatusBar:'Állapotsor',popupLocationBar:'Címsor',popupToolbar:'Eszköztár',popupMenuBar:'Menü sor',popupFullScreen:'Teljes képernyő (csak IE)',popupScrollBars:'Gördítősáv',popupDependent:'Szülőhöz kapcsolt (csak Netscape)',popupWidth:'Szélesség',popupLeft:'Bal pozíció',popupHeight:'Magasság',popupTop:'Felső pozíció',id:'Id',langDir:'Írás iránya',langDirNotSet:'<nincs beállítva>',langDirLTR:'Balról jobbra',langDirRTL:'Jobbról balra',acccessKey:'Billentyűkombináció',name:'Név',langCode:'Írás iránya',tabIndex:'Tabulátor index',advisoryTitle:'Súgócimke',advisoryContentType:'Súgó tartalomtípusa',cssClasses:'Stíluskészlet',charset:'Hivatkozott tartalom kódlapja',styles:'Stílus',selectAnchor:'Horgony választása',anchorName:'Horgony név szerint',anchorId:'Azonosító szerint',emailAddress:'E-Mail cím',emailSubject:'Üzenet tárgya',emailBody:'Üzenet',noAnchors:'(Nincs horgony a dokumentumban)',noUrl:'Adja meg a hivatkozás webcímét',noEmail:'Adja meg az E-Mail címet'},anchor:{toolbar:'Horgony beillesztése/szerkesztése',menu:'Horgony tulajdonságai',title:'Horgony tulajdonságai',name:'Horgony neve',errorName:'Kérem adja meg a horgony nevét'},findAndReplace:{title:'Keresés és csere',find:'Keresés',replace:'Csere',findWhat:'Keresett szöveg:',replaceWith:'Csere erre:',notFoundMsg:'A keresett szöveg nem található.',matchCase:'kis- és nagybetű megkülönböztetése',matchWord:'csak ha ez a teljes szó',matchCyclic:'Ciklikus keresés',replaceAll:'Az összes cseréje',replaceSuccessMsg:'%1 egyezőség cserélve.'},table:{toolbar:'Táblázat',title:'Táblázat tulajdonságai',menu:'Táblázat tulajdonságai',deleteTable:'Táblázat törlése',rows:'Sorok',columns:'Oszlopok',border:'Szegélyméret',align:'Igazítás',alignNotSet:'<Nincs beállítva>',alignLeft:'Balra',alignCenter:'Középre',alignRight:'Jobbra',width:'Szélesség',widthPx:'képpont',widthPc:'százalék',height:'Magasság',cellSpace:'Cella térköz',cellPad:'Cella belső margó',caption:'Felirat',summary:'Leírás',headers:'Fejlécek',headersNone:'Nincsenek',headersColumn:'Első oszlop',headersRow:'Első sor',headersBoth:'Mindkettő',invalidRows:'A sorok számának nagyobbnak kell lenni mint 0.',invalidCols:'Az oszlopok számának nagyobbnak kell lenni mint 0.',invalidBorder:'A szegélyméret mezőbe csak számokat írhat.',invalidWidth:'A szélesség mezőbe csak számokat írhat.',invalidHeight:'A magasság mezőbe csak számokat írhat.',invalidCellSpacing:'A cella térköz mezőbe csak számokat írhat.',invalidCellPadding:'A cella belső margó mezőbe csak számokat írhat.',cell:{menu:'Cella',insertBefore:'Beszúrás balra',insertAfter:'Beszúrás jobbra',deleteCell:'Cellák törlése',merge:'Cellák egyesítése',mergeRight:'Cellák egyesítése jobbra',mergeDown:'Cellák egyesítése lefelé',splitHorizontal:'Cellák szétválasztása vízszintesen',splitVertical:'Cellák szétválasztása függőlegesen',title:'Cella tulajdonságai',cellType:'Cella típusa',rowSpan:'Függőleges egyesítés',colSpan:'Vízszintes egyesítés',wordWrap:'Hosszú sorok törése',hAlign:'Vízszintes igazítás',vAlign:'Függőleges igazítás',alignTop:'Fel',alignMiddle:'Középre',alignBottom:'Le',alignBaseline:'Alapvonalra',bgColor:'Háttér színe',borderColor:'Keret színe',data:'Adat',header:'Fejléc',yes:'Igen',no:'Nem',invalidWidth:'A szélesség mezőbe csak számokat írhat.',invalidHeight:'A magasság mezőbe csak számokat írhat.',invalidRowSpan:'A függőleges egyesítés mezőbe csak számokat írhat.',invalidColSpan:'A vízszintes egyesítés mezőbe csak számokat írhat.'},row:{menu:'Sor',insertBefore:'Beszúrás fölé',insertAfter:'Beszúrás alá',deleteRow:'Sorok törlése'},column:{menu:'Oszlop',insertBefore:'Beszúrás balra',insertAfter:'Beszúrás jobbra',deleteColumn:'Oszlopok törlése'}},button:{title:'Gomb tulajdonságai',text:'Szöveg (Érték)',type:'Típus',typeBtn:'Gomb',typeSbm:'Küldés',typeRst:'Alaphelyzet'},checkboxAndRadio:{checkboxTitle:'Jelölőnégyzet tulajdonságai',radioTitle:'Választógomb tulajdonságai',value:'Érték',selected:'Kiválasztott'},form:{title:'Űrlap tulajdonságai',menu:'Űrlap tulajdonságai',action:'Adatfeldolgozást végző hivatkozás',method:'Adatküldés módja',encoding:'Kódolás',target:'Tartalom megjelenítése',targetNotSet:'<nincs beállítva>',targetNew:'Új ablakban (_blank)',targetTop:'Legfelső ablakban (_top)',targetSelf:'Azonos ablakban (_self)',targetParent:'Szülő ablakban (_parent)'},select:{title:'Legördülő lista tulajdonságai',selectInfo:'Alaptulajdonságok',opAvail:'Elérhető opciók',value:'Érték',size:'Méret',lines:'sor',chkMulti:'több sor is kiválasztható',opText:'Szöveg',opValue:'Érték',btnAdd:'Hozzáad',btnModify:'Módosít',btnUp:'Fel',btnDown:'Le',btnSetValue:'Legyen az alapértelmezett érték',btnDelete:'Töröl'},textarea:{title:'Szövegterület tulajdonságai',cols:'Karakterek száma egy sorban',rows:'Sorok száma'},textfield:{title:'Szövegmező tulajdonságai',name:'Név',value:'Érték',charWidth:'Megjelenített karakterek száma',maxChars:'Maximális karakterszám',type:'Típus',typeText:'Szöveg',typePass:'Jelszó'},hidden:{title:'Rejtett mező tulajdonságai',name:'Név',value:'Érték'},image:{title:'Kép tulajdonságai',titleButton:'Képgomb tulajdonságai',menu:'Kép tulajdonságai',infoTab:'Alaptulajdonságok',btnUpload:'Küldés a szerverre',url:'Hivatkozás',upload:'Feltöltés',alt:'Buborék szöveg',width:'Szélesség',height:'Magasság',lockRatio:'Arány megtartása',resetSize:'Eredeti méret',border:'Keret',hSpace:'Vízsz. táv',vSpace:'Függ. táv',align:'Igazítás',alignLeft:'Bal',alignAbsBottom:'Legaljára',alignAbsMiddle:'Közepére',alignBaseline:'Alapvonalhoz',alignBottom:'Aljára',alignMiddle:'Középre',alignRight:'Jobbra',alignTextTop:'Szöveg tetejére',alignTop:'Tetejére',preview:'Előnézet',alertUrl:'Töltse ki a kép webcímét',linkTab:'Hivatkozás',button2Img:'Do you want to transform the selected image button on a simple image?',img2Button:'Do you want to transform the selected image on a image button?'},flash:{properties:'Flash tulajdonságai',propertiesTab:'Tulajdonságok',title:'Flash tulajdonságai',chkPlay:'Automata lejátszás',chkLoop:'Folyamatosan',chkMenu:'Flash menü engedélyezése',chkFull:'Teljes képernyő engedélyezése',scale:'Méretezés',scaleAll:'Mindent mutat',scaleNoBorder:'Keret nélkül',scaleFit:'Teljes kitöltés',access:'Szkript hozzáférés',accessAlways:'Mindig',accessSameDomain:'Azonos domainről',accessNever:'Soha',align:'Igazítás',alignLeft:'Bal',alignAbsBottom:'Legaljára',alignAbsMiddle:'Közepére',alignBaseline:'Alapvonalhoz',alignBottom:'Aljára',alignMiddle:'Középre',alignRight:'Jobbra',alignTextTop:'Szöveg tetejére',alignTop:'Tetejére',quality:'Minőség',qualityBest:'Legjobb',qualityHigh:'Jó',qualityAutoHigh:'Automata jó',qualityMedium:'Közepes',qualityAutoLow:'Automata gyenge',qualityLow:'Gyenge',windowModeWindow:'Window',windowModeOpaque:'Opaque',windowModeTransparent:'Transparent',windowMode:'Ablak mód',flashvars:'Flash változók',bgcolor:'Háttérszín',width:'Szélesség',height:'Magasság',hSpace:'Vízsz. táv',vSpace:'Függ. táv',validateSrc:'Adja meg a hivatkozás webcímét',validateWidth:'A szélesség mezőbe csak számokat írhat.',validateHeight:'A magasság mezőbe csak számokat írhat.',validateHSpace:'A vízszintes távolsűág mezőbe csak számokat írhat.',validateVSpace:'A függőleges távolsűág mezőbe csak számokat írhat.'},spellCheck:{toolbar:'Helyesírás-ellenőrzés',title:'Helyesírás ellenörző',notAvailable:'Sajnálom, de a szolgáltatás jelenleg nem elérhető.',errorLoading:'Hiba a szolgáltatás host betöltése közben: %s.',notInDic:'Nincs a szótárban',changeTo:'Módosítás',btnIgnore:'Kihagyja',btnIgnoreAll:'Mindet kihagyja',btnReplace:'Csere',btnReplaceAll:'Összes cseréje',btnUndo:'Visszavonás',noSuggestions:'Nincs javaslat',progress:'Helyesírás-ellenőrzés folyamatban...',noMispell:'Helyesírás-ellenőrzés kész: Nem találtam hibát',noChanges:'Helyesírás-ellenőrzés kész: Nincs változtatott szó',oneChange:'Helyesírás-ellenőrzés kész: Egy szó cserélve',manyChanges:'Helyesírás-ellenőrzés kész: %1 szó cserélve',ieSpellDownload:'A helyesírás-ellenőrző nincs telepítve. Szeretné letölteni most?'},smiley:{toolbar:'Hangulatjelek',title:'Hangulatjel beszúrása'},elementsPath:{eleTitle:'%1 elem'},numberedlist:'Számozás',bulletedlist:'Felsorolás',indent:'Behúzás növelése',outdent:'Behúzás csökkentése',justify:{left:'Balra',center:'Középre',right:'Jobbra',block:'Sorkizárt'},blockquote:'Idézet blokk',clipboard:{title:'Beillesztés',cutError:'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a kivágás műveletet. Használja az alábbi billentyűkombinációt (Ctrl+X).',copyError:'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a másolás műveletet. Használja az alábbi billentyűkombinációt (Ctrl+X).',pasteMsg:'Másolja be az alábbi mezőbe a <STRONG>Ctrl+V</STRONG> billentyűk lenyomásával, majd nyomjon <STRONG>Rendben</STRONG>-t.',securityMsg:'A böngésző biztonsági beállításai miatt a szerkesztő nem képes hozzáférni a vágólap adataihoz. Illeszd be újra ebben az ablakban.'},pastefromword:{toolbar:'Beillesztés Word-ből',title:'Beillesztés Word-ből',advice:'Másolja be az alábbi mezőbe a <STRONG>Ctrl+V</STRONG> billentyűk lenyomásával, majd nyomjon <STRONG>Rendben</STRONG>-t.',ignoreFontFace:'Betű formázások megszüntetése',removeStyle:'Stílusok eltávolítása'},pasteText:{button:'Beillesztés formázatlan szövegként',title:'Beillesztés formázatlan szövegként'},templates:{button:'Sablonok',title:'Elérhető sablonok',insertOption:'Kicseréli a jelenlegi tartalmat',selectPromptMsg:'Válassza ki melyik sablon nyíljon meg a szerkesztőben<br>(a jelenlegi tartalom elveszik):',emptyListMsg:'(Nincs sablon megadva)'},showBlocks:'Blokkok megjelenítése',stylesCombo:{label:'Stílus',voiceLabel:'Stílusok',panelVoiceLabel:'Válasszon stílust',panelTitle1:'Blokk stílusok',panelTitle2:'Inline stílusok',panelTitle3:'Objektum stílusok'},format:{label:'Formátum',voiceLabel:'Formátum',panelTitle:'Formátum',panelVoiceLabel:'Válasszon bekezdés formátumot',tag_p:'Normál',tag_pre:'Formázott',tag_address:'Címsor',tag_h1:'Fejléc 1',tag_h2:'Fejléc 2',tag_h3:'Fejléc 3',tag_h4:'Fejléc 4',tag_h5:'Fejléc 5',tag_h6:'Fejléc 6',tag_div:'Bekezdés (DIV)'},font:{label:'Betűtípus',voiceLabel:'Betűtípus',panelTitle:'Betűtípus',panelVoiceLabel:'SVálasszon betűtípust'},fontSize:{label:'Méret',voiceLabel:'Betűméret',panelTitle:'Méret',panelVoiceLabel:'Válasszon betűméretet'},colorButton:{textColorTitle:'Betűszín',bgColorTitle:'Háttérszín',auto:'Automatikus',more:'További színek...'},colors:{'000':'Fekete',800000:'Bordó','8B4513':'Barna','2F4F4F':'Sötét türkiz','008080':'Türkiz','000080':'Király kék','4B0082':'Indigó kék',696969:'Szürke',B22222:'Tégla vörös',A52A2A:'Vörös',DAA520:'Arany sárga','006400':'Sötét zöld','40E0D0':'Türkiz','0000CD':'Kék',800080:'Lila',808080:'Szürke',F00:'Piros',FF8C00:'Sötét narancs',FFD700:'Arany','008000':'Zöld','0FF':'Türkiz','00F':'Kék',EE82EE:'Rózsaszín',A9A9A9:'Sötét szürke',FFA07A:'Lazac',FFA500:'Narancs',FFFF00:'Citromsárga','00FF00':'Neon zöld',AFEEEE:'Világos türkiz',ADD8E6:'Világos kék',DDA0DD:'Világos lila',D3D3D3:'Világos szürke',FFF0F5:'Lavender Blush',FAEBD7:'Törtfehér',FFFFE0:'Világos sárga',F0FFF0:'Menta',F0FFFF:'Azúr kék',F0F8FF:'Halvány kék',E6E6FA:'Lavender',FFF:'Fehér'},scayt:{title:'Helyesírás ellenőrzés gépelés közben',enable:'SCAYT engedélyezése',disable:'SCAYT letiltása',about:'SCAYT névjegy',toggle:'SCAYT kapcsolása',options:'Beállítások',langs:'Nyelvek',moreSuggestions:'További javaslatok',ignore:'Kihagy',ignoreAll:'Összes kihagyása',addWord:'Szó hozzáadása',emptyDic:'A szótár nevét meg kell adni.',optionsTab:'Beállítások',languagesTab:'Nyelvek',dictionariesTab:'Szótár',aboutTab:'Névjegy'},about:{title:'CKEditor névjegy',dlgTitle:'CKEditor névjegy',moreInfo:'Licenszelési információkért kérjük látogassa meg weboldalunkat:',copy:'Copyright &copy; $1. Minden jog fenntartva.'},maximize:'Teljes méret',minimize:'Kis méret',fakeobjects:{anchor:'Horgony',flash:'Flash animáció',div:'Oldaltörés',unknown:'Ismeretlen objektum'},resize:'Húzza az átméretezéshez',colordialog:{title:'Válasszon színt',highlight:'Nagyítás',selected:'Kiválasztott',clear:'Ürítés'}};
CKEDITOR.plugins.add('about',{init:function(t){var u=t.addCommand('about',new CKEDITOR.dialogCommand('about'));u.modes={wysiwyg:1,source:1};u.canUndo=false;t.ui.addButton('About',{label:t.lang.about.title,command:'about'});CKEDITOR.dialog.add('about',this.path+'dialogs/about.js');}});CKEDITOR.plugins.add('basicstyles',{requires:['styles','button'],init:function(t){var u=function(x,y,z,A){var B=new CKEDITOR.style(A);t.attachStyleStateChange(B,function(C){t.getCommand(z).setState(C);});t.addCommand(z,new CKEDITOR.styleCommand(B));t.ui.addButton(x,{label:y,command:z});},v=t.config,w=t.lang;u('Bold',w.bold,'bold',v.coreStyles_bold);u('Italic',w.italic,'italic',v.coreStyles_italic);u('Underline',w.underline,'underline',v.coreStyles_underline);u('Strike',w.strike,'strike',v.coreStyles_strike);u('Subscript',w.subscript,'subscript',v.coreStyles_subscript);u('Superscript',w.superscript,'superscript',v.coreStyles_superscript);}});CKEDITOR.config.coreStyles_bold={element:'strong',overrides:'b'};CKEDITOR.config.coreStyles_italic={element:'em',overrides:'i'};CKEDITOR.config.coreStyles_underline={element:'u'};CKEDITOR.config.coreStyles_strike={element:'strike'};CKEDITOR.config.coreStyles_subscript={element:'sub'};CKEDITOR.config.coreStyles_superscript={element:'sup'};(function(){function t(x,y){var z=y.block||y.blockLimit;if(!z||z.getName()=='body')return 2;if(z.getAscendant('blockquote',true))return 1;return 2;};function u(x){var y=x.editor,z=y.getCommand('blockquote');z.state=t(y,x.data.path);z.fire('state');};function v(x){for(var y=0,z=x.getChildCount(),A;y<z&&(A=x.getChild(y));y++)if(A.type==1&&A.isBlockBoundary())return false;return true;};var w={exec:function(x){var y=x.getCommand('blockquote').state,z=x.getSelection(),A=z&&z.getRanges()[0];if(!A)return;var B=z.createBookmarks();if(CKEDITOR.env.ie){var C=B[0].startNode,D=B[0].endNode,E;if(C&&C.getParent().getName()=='blockquote'){E=C;while(E=E.getNext())if(E.type==1&&E.isBlockBoundary()){C.move(E,true);break;}}if(D&&D.getParent().getName()=='blockquote'){E=D;while(E=E.getPrevious())if(E.type==1&&E.isBlockBoundary()){D.move(E);break;}}}var F=A.createIterator(),G;if(y==2){var H=[];while(G=F.getNextParagraph())H.push(G);if(H.length<1){var I=x.document.createElement(x.config.enterMode==1?'p':'div'),J=B.shift();A.insertNode(I);I.append(new CKEDITOR.dom.text('﻿',x.document));A.moveToBookmark(J);A.selectNodeContents(I);A.collapse(true);J=A.createBookmark();H.push(I);B.unshift(J);}var K=H[0].getParent(),L=[];for(var M=0;M<H.length;
M++){G=H[M];K=K.getCommonAncestor(G.getParent());}var N={table:1,tbody:1,tr:1,ol:1,ul:1};while(N[K.getName()])K=K.getParent();var O=null;while(H.length>0){G=H.shift();while(!G.getParent().equals(K))G=G.getParent();if(!G.equals(O))L.push(G);O=G;}while(L.length>0){G=L.shift();if(G.getName()=='blockquote'){var P=new CKEDITOR.dom.documentFragment(x.document);while(G.getFirst()){P.append(G.getFirst().remove());H.push(P.getLast());}P.replace(G);}else H.push(G);}var Q=x.document.createElement('blockquote');Q.insertBefore(H[0]);while(H.length>0){G=H.shift();Q.append(G);}}else if(y==1){var R=[],S={};while(G=F.getNextParagraph()){var T=null,U=null;while(G.getParent()){if(G.getParent().getName()=='blockquote'){T=G.getParent();U=G;break;}G=G.getParent();}if(T&&U&&!U.getCustomData('blockquote_moveout')){R.push(U);CKEDITOR.dom.element.setMarker(S,U,'blockquote_moveout',true);}}CKEDITOR.dom.element.clearAllMarkers(S);var V=[],W=[];S={};while(R.length>0){var X=R.shift();Q=X.getParent();if(!X.getPrevious())X.remove().insertBefore(Q);else if(!X.getNext())X.remove().insertAfter(Q);else{X.breakParent(X.getParent());W.push(X.getNext());}if(!Q.getCustomData('blockquote_processed')){W.push(Q);CKEDITOR.dom.element.setMarker(S,Q,'blockquote_processed',true);}V.push(X);}CKEDITOR.dom.element.clearAllMarkers(S);for(M=W.length-1;M>=0;M--){Q=W[M];if(v(Q))Q.remove();}if(x.config.enterMode==2){var Y=true;while(V.length){X=V.shift();if(X.getName()=='div'){P=new CKEDITOR.dom.documentFragment(x.document);var Z=Y&&X.getPrevious()&&!(X.getPrevious().type==1&&X.getPrevious().isBlockBoundary());if(Z)P.append(x.document.createElement('br'));var aa=X.getNext()&&!(X.getNext().type==1&&X.getNext().isBlockBoundary());while(X.getFirst())X.getFirst().remove().appendTo(P);if(aa)P.append(x.document.createElement('br'));P.replace(X);Y=false;}}}}z.selectBookmarks(B);x.focus();}};CKEDITOR.plugins.add('blockquote',{init:function(x){x.addCommand('blockquote',w);x.ui.addButton('Blockquote',{label:x.lang.blockquote,command:'blockquote'});x.on('selectionChange',u);},requires:['domiterator']});})();CKEDITOR.plugins.add('button',{beforeInit:function(t){t.ui.addHandler(1,CKEDITOR.ui.button.handler);}});CKEDITOR.UI_BUTTON=1;CKEDITOR.ui.button=function(t){CKEDITOR.tools.extend(this,t,{title:t.label,className:t.className||t.command&&'cke_button_'+t.command||'',click:t.click||(function(u){u.execCommand(t.command);})});this._={};};CKEDITOR.ui.button.handler={create:function(t){return new CKEDITOR.ui.button(t);}};CKEDITOR.ui.button.prototype={canGroup:true,render:function(t,u){var v=CKEDITOR.env,w=this._.id='cke_'+CKEDITOR.tools.getNextNumber();
this._.editor=t;var x={id:w,button:this,editor:t,focus:function(){var D=CKEDITOR.document.getById(w);D.focus();},execute:function(){this.button.click(t);}},y=CKEDITOR.tools.addFunction(x.execute,x),z=CKEDITOR.ui.button._.instances.push(x)-1,A='',B=this.command;if(this.modes)t.on('mode',function(){this.setState(this.modes[t.mode]?2:0);},this);else if(B){B=t.getCommand(B);if(B){B.on('state',function(){this.setState(B.state);},this);A+='cke_'+(B.state==1?'on':B.state==0?'disabled':'off');}}if(!B)A+='cke_off';if(this.className)A+=' '+this.className;u.push('<span class="cke_button">','<a id="',w,'" class="',A,'" href="javascript:void(\'',(this.title||'').replace("'",''),'\')" title="',this.title,'" tabindex="-1" hidefocus="true"');if(v.opera||v.gecko&&v.mac)u.push(' onkeypress="return false;"');if(v.gecko)u.push(' onblur="this.style.cssText = this.style.cssText;"');u.push(' onkeydown="return CKEDITOR.ui.button._.keydown(',z,', event);" onfocus="return CKEDITOR.ui.button._.focus(',z,', event);" onclick="CKEDITOR.tools.callFunction(',y,', this); return false;"><span class="cke_icon"');if(this.icon){var C=(this.iconOffset||0)*(-16);u.push(' style="background-image:url(',CKEDITOR.getUrl(this.icon),');background-position:0 '+C+'px;"');}u.push('></span><span class="cke_label">',this.label,'</span>');if(this.hasArrow)u.push('<span class="cke_buttonarrow"></span>');u.push('</a>','</span>');if(this.onRender)this.onRender();return x;},setState:function(t){var y=this;if(y._.state==t)return;var u=CKEDITOR.document.getById(y._.id);if(u){u.setState(t);var v=y.title,w=y._.editor.lang.common.unavailable,x=u.getChild(1);if(t==0)v=w.replace('%1',y.title);x.setHtml(v);}y._.state=t;}};CKEDITOR.ui.button._={instances:[],keydown:function(t,u){var v=CKEDITOR.ui.button._.instances[t];if(v.onkey){u=new CKEDITOR.dom.event(u);return v.onkey(v,u.getKeystroke())!==false;}},focus:function(t,u){var v=CKEDITOR.ui.button._.instances[t],w;if(v.onfocus)w=v.onfocus(v,new CKEDITOR.dom.event(u))!==false;if(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900)u.preventBubble();return w;}};CKEDITOR.ui.prototype.addButton=function(t,u){this.add(t,1,u);};(function(){var t=function(y,z){var A=y.document,B=A.getBody(),C=false,D=function(){C=true;};B.on(z,D);A.$.execCommand(z);B.removeListener(z,D);return C;},u=CKEDITOR.env.ie?function(y,z){return t(y,z);}:function(y,z){try{return y.document.$.execCommand(z);}catch(A){return false;}},v=function(y){this.type=y;this.canUndo=this.type=='cut';};v.prototype={exec:function(y,z){var A=u(y,this.type);
if(!A)alert(y.lang.clipboard[this.type+'Error']);return A;}};var w=CKEDITOR.env.ie?{exec:function(y,z){y.focus();if(!y.fire('beforePaste')&&!t(y,'paste'))y.openDialog('paste');}}:{exec:function(y){try{if(!y.fire('beforePaste')&&!y.document.$.execCommand('Paste',false,null))throw 0;}catch(z){y.openDialog('paste');}}},x=function(y){switch(y.data.keyCode){case 1000+86:case 2000+45:var z=this;z.fire('saveSnapshot');if(z.fire('beforePaste'))y.cancel();setTimeout(function(){z.fire('saveSnapshot');},0);return;case 1000+88:case 2000+46:z=this;z.fire('saveSnapshot');setTimeout(function(){z.fire('saveSnapshot');},0);}};CKEDITOR.plugins.add('clipboard',{init:function(y){function z(B,C,D,E){var F=y.lang[C];y.addCommand(C,D);y.ui.addButton(B,{label:F,command:C});if(y.addMenuItems)y.addMenuItem(C,{label:F,command:C,group:'clipboard',order:E});};z('Cut','cut',new v('cut'),1);z('Copy','copy',new v('copy'),4);z('Paste','paste',w,8);CKEDITOR.dialog.add('paste',CKEDITOR.getUrl(this.path+'dialogs/paste.js'));y.on('key',x,y);if(y.contextMenu){function A(B){return y.document.$.queryCommandEnabled(B)?2:0;};y.contextMenu.addListener(function(){return{cut:A('Cut'),copy:A('Cut'),paste:CKEDITOR.env.webkit?2:A('Paste')};});}}});})();CKEDITOR.plugins.add('colorbutton',{requires:['panelbutton','floatpanel','styles'],init:function(t){var u=t.config,v=t.lang.colorButton,w;if(!CKEDITOR.env.hc){x('TextColor','fore',v.textColorTitle);x('BGColor','back',v.bgColorTitle);}function x(z,A,B){t.ui.add(z,4,{label:B,title:B,className:'cke_button_'+z.toLowerCase(),modes:{wysiwyg:1},panel:{css:[CKEDITOR.getUrl(t.skinPath+'editor.css')]},onBlock:function(C,D){var E=C.addBlock(D);E.autoSize=true;E.element.addClass('cke_colorblock');E.element.setHtml(y(C,A));var F=E.keys;F[39]='next';F[9]='next';F[37]='prev';F[2000+9]='prev';F[32]='click';}});};function y(z,A){var B=[],C=u.colorButton_colors.split(','),D=CKEDITOR.tools.addFunction(function(H,I){if(H=='?')return;t.focus();z.hide();var J=new CKEDITOR.style(u['colorButton_'+I+'Style'],H&&{color:H});t.fire('saveSnapshot');if(H)J.apply(t.document);else J.remove(t.document);t.fire('saveSnapshot');});B.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',v.auto,'" onclick="CKEDITOR.tools.callFunction(',D,",null,'",A,"');return false;\" href=\"javascript:void('",v.auto,'\')"><table cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" style="background-color:#000"></span></td><td colspan=7 align=center>',v.auto,'</td></tr></table></a><table cellspacing=0 cellpadding=0 width="100%">');
for(var E=0;E<C.length;E++){if(E%8===0)B.push('</tr><tr>');var F=C[E],G=t.lang.colors[F]||F;B.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',G,'" onclick="CKEDITOR.tools.callFunction(',D,",'#",F,"','",A,"'); return false;\" href=\"javascript:void('",G,'\')"><span class="cke_colorbox" style="background-color:#',F,'"></span></a></td>');}if(u.colorButton_enableMore)B.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',v.more,'" onclick="CKEDITOR.tools.callFunction(',D,",'?','",A,"');return false;\" href=\"javascript:void('",v.more,"')\">",v.more,'</a></td>');B.push('</tr></table>');return B.join('');};}});CKEDITOR.config.colorButton_enableMore=false;CKEDITOR.config.colorButton_colors='000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF';CKEDITOR.config.colorButton_foreStyle={element:'span',styles:{color:'#(color)'},overrides:[{element:'font',attributes:{color:null}}]};CKEDITOR.config.colorButton_backStyle={element:'span',styles:{'background-color':'#(color)'}};CKEDITOR.plugins.add('contextmenu',{requires:['menu'],beforeInit:function(t){t.contextMenu=new CKEDITOR.plugins.contextMenu(t);t.addCommand('contextMenu',{exec:function(){t.contextMenu.show(t.document.getBody());}});}});CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({$:function(t){this.id='cke_'+CKEDITOR.tools.getNextNumber();this.editor=t;this._.listeners=[];this._.functionId=CKEDITOR.tools.addFunction(function(u){this._.panel.hide();t.focus();t.execCommand(u);},this);},_:{onMenu:function(t,u,v,w){var x=this._.menu,y=this.editor;if(x){x.hide();x.removeAll();}else{x=this._.menu=new CKEDITOR.menu(y);x.onClick=CKEDITOR.tools.bind(function(H){var I=true;x.hide();if(CKEDITOR.env.ie)x.onEscape();if(H.onClick)H.onClick();else if(H.command)y.execCommand(H.command);I=false;},this);x.onEscape=function(){y.focus();if(CKEDITOR.env.ie)y.getSelection().unlock(true);};}var z=this._.listeners,A=[],B=this.editor.getSelection(),C=B&&B.getStartElement();if(CKEDITOR.env.ie)B.lock();x.onHide=CKEDITOR.tools.bind(function(){x.onHide=null;if(CKEDITOR.env.ie)y.getSelection().unlock();this.onHide&&this.onHide();},this);for(var D=0;D<z.length;D++){var E=z[D](C,B);if(E)for(var F in E){var G=this.editor.getMenuItem(F);if(G){G.state=E[F];x.add(G);
}}}x.show(t,u||(y.lang.dir=='rtl'?2:1),v,w);}},proto:{addTarget:function(t){t.on('contextmenu',function(u){var v=u.data;v.preventDefault();var w=v.getTarget().getDocument().getDocumentElement(),x=v.$.clientX,y=v.$.clientY;CKEDITOR.tools.setTimeout(function(){this._.onMenu(w,null,x,y);},0,this);},this);},addListener:function(t){this._.listeners.push(t);},show:function(t,u,v,w){this.editor.focus();this._.onMenu(t||CKEDITOR.document.getDocumentElement(),u,v||0,w||0);}}});(function(){var t={toolbarFocus:{exec:function(v){var w=v._.elementsPath.idBase,x=CKEDITOR.document.getById(w+'0');if(x)x.focus();}}},u='<span class="cke_empty">&nbsp;</span>';CKEDITOR.plugins.add('elementspath',{requires:['selection'],init:function(v){var w='cke_path_'+v.name,x,y=function(){if(!x)x=CKEDITOR.document.getById(w);return x;},z='cke_elementspath_'+CKEDITOR.tools.getNextNumber()+'_';v._.elementsPath={idBase:z};v.on('themeSpace',function(A){if(A.data.space=='bottom')A.data.html+='<div id="'+w+'" class="cke_path">'+u+'</div>';});v.on('selectionChange',function(A){var B=CKEDITOR.env,C=A.data.selection,D=C.getStartElement(),E=[],F=this._.elementsPath.list=[];while(D){var G=F.push(D)-1,H;if(D.getAttribute('_cke_real_element_type'))H=D.getAttribute('_cke_real_element_type');else H=D.getName();var I='';if(B.opera||B.gecko&&B.mac)I+=' onkeypress="return false;"';if(B.gecko)I+=' onblur="this.style.cssText = this.style.cssText;"';E.unshift('<a id="',z,G,'" href="javascript:void(\'',H,'\')" tabindex="-1" title="',v.lang.elementsPath.eleTitle.replace(/%1/,H),'"'+(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900?' onfocus="event.preventBubble();"':'')+' hidefocus="true" '+" onkeydown=\"return CKEDITOR._.elementsPath.keydown('",this.name,"',",G,', event);"'+I," onclick=\"return CKEDITOR._.elementsPath.click('",this.name,"',",G,');">',H,'</a>');if(H=='body')break;D=D.getParent();}y().setHtml(E.join('')+u);});v.on('contentDomUnload',function(){y().setHtml(u);});v.addCommand('elementsPathFocus',t.toolbarFocus);}});})();CKEDITOR._.elementsPath={click:function(t,u){var v=CKEDITOR.instances[t];v.focus();var w=v._.elementsPath.list[u];v.getSelection().selectElement(w);return false;},keydown:function(t,u,v){var w=CKEDITOR.ui.button._.instances[u],x=CKEDITOR.instances[t],y=x._.elementsPath.idBase,z;v=new CKEDITOR.dom.event(v);switch(v.getKeystroke()){case 37:case 9:z=CKEDITOR.document.getById(y+(u+1));if(!z)z=CKEDITOR.document.getById(y+'0');z.focus();return false;case 39:case 2000+9:z=CKEDITOR.document.getById(y+(u-1));
if(!z)z=CKEDITOR.document.getById(y+(x._.elementsPath.list.length-1));z.focus();return false;case 27:x.focus();return false;case 13:case 32:this.click(t,u);return false;}return true;}};(function(){CKEDITOR.plugins.add('enterkey',{requires:['keystrokes','indent'],init:function(A){var B=A.specialKeys;B[13]=w;B[2000+13]=v;}});var t,u=/^h[1-6]$/;function v(A){t=1;return w(A,A.config.shiftEnterMode);};function w(A,B){if(A.mode!='wysiwyg')return false;if(!B)B=A.config.enterMode;setTimeout(function(){A.fire('saveSnapshot');if(B==2||A.getSelection().getStartElement().hasAscendant('pre',true))y(A,B);else x(A,B);t=0;},0);return true;};function x(A,B,C){C=C||z(A);var D=C.document,E=B==3?'div':'p',F=C.splitBlock(E);if(!F)return;var G=F.previousBlock,H=F.nextBlock,I=F.wasStartOfBlock,J=F.wasEndOfBlock,K;if(H){K=H.getParent();if(K.is('li')){H.breakParent(K);H.move(H.getNext(),true);}}else if(G&&(K=G.getParent())&&(K.is('li'))){G.breakParent(K);C.moveToElementEditStart(G.getNext());G.move(G.getPrevious());}if(!I&&!J){if(H.is('li')&&(K=H.getFirst())&&(K.is&&K.is('ul','ol')))H.insertBefore(D.createText('\xa0'),K);if(H)C.moveToElementEditStart(H);}else{if(I&&J&&G.is('li')){A.execCommand('outdent');return;}var L;if(G){if(!t&&!u.test(G.getName()))L=G.clone();}else if(H)L=H.clone();if(!L)L=D.createElement(E);var M=F.elementPath;if(M)for(var N=0,O=M.elements.length;N<O;N++){var P=M.elements[N];if(P.equals(M.block)||P.equals(M.blockLimit))break;if(CKEDITOR.dtd.$removeEmpty[P.getName()]){P=P.clone();L.moveChildren(P);L.append(P);}}if(!CKEDITOR.env.ie)L.appendBogus();C.insertNode(L);if(CKEDITOR.env.ie&&I&&(!J||!G.getChildCount())){C.moveToElementEditStart(J?G:L);C.select();}C.moveToElementEditStart(I&&!J?H:L);}if(!CKEDITOR.env.ie)if(H){var Q=D.createElement('span');Q.setHtml('&nbsp;');C.insertNode(Q);Q.scrollIntoView();C.deleteContents();}else L.scrollIntoView();C.select();};function y(A,B){var C=z(A),D=C.document,E=B==3?'div':'p',F=C.checkEndOfBlock(),G=new CKEDITOR.dom.elementPath(A.getSelection().getStartElement()),H=G.block,I=H&&G.block.getName(),J=false;if(!t&&I=='li'){x(A,B,C);return;}if(!t&&F&&u.test(I)){D.createElement('br').insertAfter(H);if(CKEDITOR.env.gecko)D.createText('').insertAfter(H);C.setStartAt(H.getNext(),CKEDITOR.env.ie?3:1);}else{var K;J=I=='pre';if(J)K=D.createText(CKEDITOR.env.ie?'\r':'\n');else K=D.createElement('br');C.deleteContents();C.insertNode(K);if(!CKEDITOR.env.ie)D.createText('﻿').insertAfter(K);if(F&&!CKEDITOR.env.ie)K.getParent().appendBogus();if(!CKEDITOR.env.ie)K.getNext().$.nodeValue='';
if(CKEDITOR.env.ie)C.setStartAt(K,4);else C.setStartAt(K.getNext(),1);if(!CKEDITOR.env.ie){var L=null;if(!CKEDITOR.env.gecko){L=D.createElement('span');L.setHtml('&nbsp;');}else L=D.createElement('br');L.insertBefore(K.getNext());L.scrollIntoView();L.remove();}}C.collapse(true);C.select(J);};function z(A){var B=A.getSelection().getRanges();for(var C=B.length-1;C>0;C--)B[C].deleteContents();return B[0];};})();(function(){var t='nbsp,gt,lt,quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro',u='Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml',v='Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv';function w(x){var y={},z=[],A={nbsp:'\xa0',shy:'­',gt:'>',lt:'<'};x=x.replace(/\b(nbsp|shy|gt|lt|amp)(?:,|$)/g,function(F,G){y[A[G]]='&'+G+';';z.push(A[G]);return '';});x=x.split(',');var B=document.createElement('div'),C;B.innerHTML='&'+x.join(';&')+';';C=B.innerHTML;B=null;for(var D=0;D<C.length;D++){var E=C.charAt(D);y[E]='&'+x[D]+';';z.push(E);}y.regex=z.join('');return y;};CKEDITOR.plugins.add('entities',{afterInit:function(x){var y=x.config;if(!y.entities)return;var z=x.dataProcessor,A=z&&z.htmlFilter;if(A){var B=t;if(y.entities_latin)B+=','+u;if(y.entities_greek)B+=','+v;if(y.entities_additional)B+=','+y.entities_additional;var C=w(B),D='['+C.regex+']';
delete C.regex;if(y.entities_processNumerical)D='[^ -~]|'+D;D=new RegExp(D,'g');function E(F){return C[F]||'&#'+F.charCodeAt(0)+';';};A.addRules({text:function(F){return F.replace(D,E);}});}}});})();CKEDITOR.config.entities=true;CKEDITOR.config.entities_latin=true;CKEDITOR.config.entities_greek=true;CKEDITOR.config.entities_processNumerical=false;CKEDITOR.config.entities_additional='#39';(function(){function t(C,D){var E=[];if(!D)return C;else for(var F in D)E.push(F+'='+encodeURIComponent(D[F]));return C+(C.indexOf('?')!=-1?'&':'?')+E.join('&');};function u(C){C+='';var D=C.charAt(0).toUpperCase();return D+C.substr(1);};function v(C){var J=this;var D=J.getDialog(),E=D.getParentEditor();E._.filebrowserSe=J;var F=E.config['filebrowser'+u(D.getName())+'WindowWidth']||E.config.filebrowserWindowWidth||'80%',G=E.config['filebrowser'+u(D.getName())+'WindowHeight']||E.config.filebrowserWindowHeight||'70%',H=J.filebrowser.params||{};H.CKEditor=E.name;H.CKEditorFuncNum=E._.filebrowserFn;if(!H.langCode)H.langCode=E.langCode;var I=t(J.filebrowser.url,H);E.popup(I,F,G);};function w(C){var F=this;var D=F.getDialog(),E=D.getParentEditor();E._.filebrowserSe=F;if(!D.getContentElement(F['for'][0],F['for'][1]).getInputElement().$.value)return false;if(!D.getContentElement(F['for'][0],F['for'][1]).getAction())return false;return true;};function x(C,D,E){var F=E.params||{};F.CKEditor=C.name;F.CKEditorFuncNum=C._.filebrowserFn;if(!F.langCode)F.langCode=C.langCode;D.action=t(E.url,F);D.filebrowser=E;};function y(C,D,E,F){var G,H;for(var I in F){G=F[I];if(G.type=='hbox'||G.type=='vbox')y(C,D,E,G.children);if(!G.filebrowser)continue;if(typeof G.filebrowser=='string'){var J={action:G.type=='fileButton'?'QuickUpload':'Browse',target:G.filebrowser};G.filebrowser=J;}if(G.filebrowser.action=='Browse'){var K=G.filebrowser.url||C.config['filebrowser'+u(D)+'BrowseUrl']||C.config.filebrowserBrowseUrl;if(K){G.onClick=v;G.filebrowser.url=K;G.hidden=false;}}else if(G.filebrowser.action=='QuickUpload'&&G['for']){K=G.filebrowser.url||C.config['filebrowser'+u(D)+'UploadUrl']||C.config.filebrowserUploadUrl;if(K){G.onClick=w;G.filebrowser.url=K;G.hidden=false;x(C,E.getContents(G['for'][0]).get(G['for'][1]),G.filebrowser);}}}};function z(C,D){var E=D.getDialog(),F=D.filebrowser.target||null;C=C.replace(/#/g,'%23');if(F){var G=F.split(':'),H=E.getContentElement(G[0],G[1]);if(H){H.setValue(C);E.selectPage(G[0]);}}};function A(C,D,E){if(E.indexOf(';')!==-1){var F=E.split(';');for(var G=0;G<F.length;G++)if(A(C,D,F[G]))return true;
return false;}return C.getContents(D).get(E).filebrowser&&C.getContents(D).get(E).filebrowser.url;};function B(C,D){var H=this;var E=H._.filebrowserSe.getDialog(),F=H._.filebrowserSe['for'],G=H._.filebrowserSe.filebrowser.onSelect;if(F)E.getContentElement(F[0],F[1]).reset();if(G&&G.call(H._.filebrowserSe,C,D)===false)return;if(typeof D=='string'&&D)alert(D);if(C)z(C,H._.filebrowserSe);};CKEDITOR.plugins.add('filebrowser',{init:function(C,D){C._.filebrowserFn=CKEDITOR.tools.addFunction(B,C);CKEDITOR.on('dialogDefinition',function(E){for(var F in E.data.definition.contents){y(E.editor,E.data.name,E.data.definition,E.data.definition.contents[F].elements);if(E.data.definition.contents[F].hidden&&E.data.definition.contents[F].filebrowser)E.data.definition.contents[F].hidden=!A(E.data.definition,E.data.definition.contents[F].id,E.data.definition.contents[F].filebrowser);}});}});})();CKEDITOR.plugins.add('find',{init:function(t){var u=CKEDITOR.plugins.find;t.ui.addButton('Find',{label:t.lang.findAndReplace.find,command:'find'});var v=t.addCommand('find',new CKEDITOR.dialogCommand('find'));v.canUndo=false;t.ui.addButton('Replace',{label:t.lang.findAndReplace.replace,command:'replace'});var w=t.addCommand('replace',new CKEDITOR.dialogCommand('replace'));w.canUndo=false;CKEDITOR.dialog.add('find',this.path+'dialogs/find.js');CKEDITOR.dialog.add('replace',this.path+'dialogs/find.js');},requires:['styles']});CKEDITOR.config.find_highlight={element:'span',styles:{'background-color':'#004',color:'#fff'}};(function(){var t=/\.swf(?:$|\?)/i,u=/^\d+(?:\.\d+)?$/;function v(y){if(u.test(y))return y+'px';return y;};function w(y){var z=y.attributes;return z.type=='application/x-shockwave-flash'||t.test(z.src||'');};function x(y,z){var A=y.createFakeParserElement(z,'cke_flash','flash',true),B=A.attributes.style||'',C=z.attributes.width,D=z.attributes.height;if(typeof C!='undefined')B=A.attributes.style=B+'width:'+v(C)+';';if(typeof D!='undefined')B=A.attributes.style=B+'height:'+v(D)+';';return A;};CKEDITOR.plugins.add('flash',{init:function(y){y.addCommand('flash',new CKEDITOR.dialogCommand('flash'));y.ui.addButton('Flash',{label:y.lang.common.flash,command:'flash'});CKEDITOR.dialog.add('flash',this.path+'dialogs/flash.js');y.addCss('img.cke_flash{background-image: url('+CKEDITOR.getUrl(this.path+'images/placeholder.png')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'width: 80px;'+'height: 80px;'+'}');if(y.addMenuItems)y.addMenuItems({flash:{label:y.lang.flash.properties,command:'flash',group:'flash'}});
if(y.contextMenu)y.contextMenu.addListener(function(z,A){if(z&&z.is('img')&&z.getAttribute('_cke_real_element_type')=='flash')return{flash:2};});},afterInit:function(y){var z=y.dataProcessor,A=z&&z.dataFilter;if(A)A.addRules({elements:{'cke:object':function(B){var C=B.attributes,D=C.classid&&String(C.classid).toLowerCase();if(!D){for(var E=0;E<B.children.length;E++)if(B.children[E].name=='embed'){if(!w(B.children[E]))return null;return x(y,B);}return null;}return x(y,B);},'cke:embed':function(B){if(!w(B))return null;return x(y,B);}}},5);},requires:['fakeobjects']});})();CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:false,flashAddEmbedTag:true,flashConvertOnEdit:false});(function(){function t(u,v,w,x,y,z,A){var B=u.config,C=y.split(';'),D=[],E={};for(var F=0;F<C.length;F++){var G={},H=C[F].split('/'),I=C[F]=H[0];G[w]=D[F]=H[1]||I;E[I]=new CKEDITOR.style(A,G);}u.ui.addRichCombo(v,{label:x.label,title:x.panelTitle,voiceLabel:x.voiceLabel,className:'cke_'+(w=='size'?'fontSize':'font'),multiSelect:false,panel:{css:[CKEDITOR.getUrl(u.skinPath+'editor.css')].concat(B.contentsCss),voiceLabel:x.panelVoiceLabel},init:function(){this.startGroup(x.panelTitle);for(var J=0;J<C.length;J++){var K=C[J];this.add(K,'<span style="font-'+w+':'+D[J]+'">'+K+'</span>',K);}},onClick:function(J){u.focus();u.fire('saveSnapshot');var K=E[J];if(this.getValue()==J)K.remove(u.document);else K.apply(u.document);u.fire('saveSnapshot');},onRender:function(){u.on('selectionChange',function(J){var K=this.getValue(),L=J.data.path,M=L.elements;for(var N=0,O;N<M.length;N++){O=M[N];for(var P in E)if(E[P].checkElementRemovable(O,true)){if(P!=K)this.setValue(P);return;}}this.setValue('',z);},this);}});};CKEDITOR.plugins.add('font',{requires:['richcombo','styles'],init:function(u){var v=u.config;t(u,'Font','family',u.lang.font,v.font_names,v.font_defaultLabel,v.font_style);t(u,'FontSize','size',u.lang.fontSize,v.fontSize_sizes,v.fontSize_defaultLabel,v.fontSize_style);}});})();CKEDITOR.config.font_names='Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif';CKEDITOR.config.font_defaultLabel='';CKEDITOR.config.font_style={element:'span',styles:{'font-family':'#(family)'},overrides:[{element:'font',attributes:{face:null}}]};
CKEDITOR.config.fontSize_sizes='8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px';CKEDITOR.config.fontSize_defaultLabel='';CKEDITOR.config.fontSize_style={element:'span',styles:{'font-size':'#(size)'},overrides:[{element:'font',attributes:{size:null}}]};CKEDITOR.plugins.add('format',{requires:['richcombo','styles'],init:function(t){var u=t.config,v=t.lang.format,w=u.format_tags.split(';'),x={};for(var y=0;y<w.length;y++){var z=w[y];x[z]=new CKEDITOR.style(u['format_'+z]);}t.ui.addRichCombo('Format',{label:v.label,title:v.panelTitle,voiceLabel:v.voiceLabel,className:'cke_format',multiSelect:false,panel:{css:[CKEDITOR.getUrl(t.skinPath+'editor.css')].concat(u.contentsCss),voiceLabel:v.panelVoiceLabel},init:function(){this.startGroup(v.panelTitle);for(var A in x){var B=v['tag_'+A];this.add(A,'<'+A+'>'+B+'</'+A+'>',B);}},onClick:function(A){t.focus();t.fire('saveSnapshot');x[A].apply(t.document);t.fire('saveSnapshot');},onRender:function(){t.on('selectionChange',function(A){var B=this.getValue(),C=A.data.path;for(var D in x)if(x[D].checkActive(C)){if(D!=B)this.setValue(D,t.lang.format['tag_'+D]);return;}this.setValue('');},this);}});}});CKEDITOR.config.format_tags='p;h1;h2;h3;h4;h5;h6;pre;address;div';CKEDITOR.config.format_p={element:'p'};CKEDITOR.config.format_div={element:'div'};CKEDITOR.config.format_pre={element:'pre'};CKEDITOR.config.format_address={element:'address'};CKEDITOR.config.format_h1={element:'h1'};CKEDITOR.config.format_h2={element:'h2'};CKEDITOR.config.format_h3={element:'h3'};CKEDITOR.config.format_h4={element:'h4'};CKEDITOR.config.format_h5={element:'h5'};CKEDITOR.config.format_h6={element:'h6'};CKEDITOR.plugins.add('forms',{init:function(t){var u=t.lang;t.addCss('form{border: 1px dotted #FF0000;padding: 2px;}');var v=function(x,y,z){t.addCommand(y,new CKEDITOR.dialogCommand(y));t.ui.addButton(x,{label:u.common[x.charAt(0).toLowerCase()+x.slice(1)],command:y});CKEDITOR.dialog.add(y,z);},w=this.path+'dialogs/';v('Form','form',w+'form.js');v('Checkbox','checkbox',w+'checkbox.js');v('Radio','radio',w+'radio.js');v('TextField','textfield',w+'textfield.js');v('Textarea','textarea',w+'textarea.js');v('Select','select',w+'select.js');v('Button','button',w+'button.js');v('ImageButton','imagebutton',CKEDITOR.plugins.getPath('image')+'dialogs/image.js');v('HiddenField','hiddenfield',w+'hiddenfield.js');if(t.addMenuItems)t.addMenuItems({form:{label:u.form.menu,command:'form',group:'form'},checkbox:{label:u.checkboxAndRadio.checkboxTitle,command:'checkbox',group:'checkbox'},radio:{label:u.checkboxAndRadio.radioTitle,command:'radio',group:'radio'},textfield:{label:u.textfield.title,command:'textfield',group:'textfield'},hiddenfield:{label:u.hidden.title,command:'hiddenfield',group:'hiddenfield'},imagebutton:{label:u.image.titleButton,command:'imagebutton',group:'imagebutton'},button:{label:u.button.title,command:'button',group:'button'},select:{label:u.select.title,command:'select',group:'select'},textarea:{label:u.textarea.title,command:'textarea',group:'textarea'}});
if(t.contextMenu){t.contextMenu.addListener(function(x){if(x&&x.hasAscendant('form'))return{form:2};});t.contextMenu.addListener(function(x){if(x){var y=x.getName();if(y=='select')return{select:2};if(y=='textarea')return{textarea:2};if(y=='input'){var z=x.getAttribute('type');if(z=='text'||z=='password')return{textfield:2};if(z=='button'||z=='submit'||z=='reset')return{button:2};if(z=='checkbox')return{checkbox:2};if(z=='radio')return{radio:2};if(z=='image')return{imagebutton:2};}if(y=='img'&&x.getAttribute('_cke_real_element_type')=='hiddenfield')return{hiddenfield:2};}});}},requires:['image']});if(CKEDITOR.env.ie)CKEDITOR.dom.element.prototype.hasAttribute=function(t){var w=this;var u=w.$.attributes.getNamedItem(t);if(w.getName()=='input')switch(t){case 'class':return w.$.className.length>0;case 'checked':return!!w.$.checked;case 'value':var v=w.getAttribute('type');if(v=='checkbox'||v=='radio')return w.$.value!='on';break;default:}return!!(u&&u.specified);};(function(){var t={exec:function(v){v.insertElement(v.document.createElement('hr'));}},u='horizontalrule';CKEDITOR.plugins.add(u,{init:function(v){v.addCommand(u,t);v.ui.addButton('HorizontalRule',{label:v.lang.horizontalrule,command:u});}});})();(function(){var t=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,u='{cke_protected}';function v(U){var V=U.children.length,W=U.children[V-1];while(W&&W.type==3&&!CKEDITOR.tools.trim(W.value))W=U.children[--V];return W;};function w(U,V){var W=U.children,X=v(U);if(X){if((V||!CKEDITOR.env.ie)&&(X.type==1&&X.name=='br'))W.pop();if(X.type==3&&t.test(X.value))W.pop();}};function x(U){var V=v(U);return!V||V.type==1&&V.name=='br';};function y(U){w(U,true);if(x(U))if(CKEDITOR.env.ie)U.add(new CKEDITOR.htmlParser.text('\xa0'));else U.add(new CKEDITOR.htmlParser.element('br',{}));};function z(U){w(U);if(x(U))U.add(new CKEDITOR.htmlParser.text('\xa0'));};var A=CKEDITOR.dtd,B=CKEDITOR.tools.extend({},A.$block,A.$listItem,A.$tableContent);for(var C in B)if(!('br' in A[C]))delete B[C];delete B.pre;var D={attributeNames:[[/^on/,'_cke_pa_on']]},E={elements:{}};for(C in B)E.elements[C]=y;var F={elementNames:[[/^cke:/,''],[/^\?xml:namespace$/,'']],attributeNames:[[/^_cke_(saved|pa)_/,''],[/^_cke.*/,'']],elements:{$:function(U){var V=U.attributes;if(V){var W=['name','href','src'],X;for(var Y=0;Y<W.length;Y++){X='_cke_saved_'+W[Y];X in V&&delete V[W[Y]];}}},embed:function(U){var V=U.parent;if(V&&V.name=='object'){var W=V.attributes.width,X=V.attributes.height;W&&(U.attributes.width=W);X&&(U.attributes.height=X);
}},param:function(U){U.children=[];U.isEmpty=true;return U;},a:function(U){if(!(U.children.length||U.attributes.name||U.attributes._cke_saved_name))return false;}},attributes:{'class':function(U,V){return CKEDITOR.tools.ltrim(U.replace(/(?:^|\s+)cke_[^\s]*/g,''))||false;}},comment:function(U){if(U.substr(0,u.length)==u)return new CKEDITOR.htmlParser.cdata(decodeURIComponent(U.substr(u.length)));return U;}},G={elements:{}};for(C in B)G.elements[C]=z;if(CKEDITOR.env.ie)F.attributes.style=function(U,V){return U.toLowerCase();};var H=/<(?:a|area|img|input).*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi;function I(U){return U.replace(H,'$& _cke_saved_$1');};var J=/<(style)(?=[ >])[^>]*>[^<]*<\/\1>/gi,K=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,L=/(<\/?)((?:object|embed|param).*?>)/gi,M=/<cke:param(.*?)\/>/gi;function N(U){return '<cke:encoded>'+encodeURIComponent(U)+'</cke:encoded>';};function O(U){return U.replace(J,N);};function P(U){return U.replace(L,'$1cke:$2');};function Q(U){return U.replace(M,'<cke:param$1></cke:param>');};function R(U,V){return decodeURIComponent(V);};function S(U){return U.replace(K,R);};function T(U,V){var W=[],X=/<\!--\{cke_temp\}(\d*?)-->/g,Y=[/<!--[\s\S]*?-->/g,/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(V);for(var Z=0;Z<Y.length;Z++)U=U.replace(Y[Z],function(aa){aa=aa.replace(X,function(ab,ac){return W[ac];});return '<!--{cke_temp}'+(W.push(aa)-1)+'-->';});U=U.replace(X,function(aa,ab){return '<!--'+u+encodeURIComponent(W[ab]).replace(/--/g,'%2D%2D')+'-->';});return U;};CKEDITOR.plugins.add('htmldataprocessor',{requires:['htmlwriter'],init:function(U){var V=U.dataProcessor=new CKEDITOR.htmlDataProcessor(U);V.writer.forceSimpleAmpersand=U.config.forceSimpleAmpersand;V.dataFilter.addRules(D);V.dataFilter.addRules(E);V.htmlFilter.addRules(F);V.htmlFilter.addRules(G);}});CKEDITOR.htmlDataProcessor=function(U){var V=this;V.editor=U;V.writer=new CKEDITOR.htmlWriter();V.dataFilter=new CKEDITOR.htmlParser.filter();V.htmlFilter=new CKEDITOR.htmlParser.filter();};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(U,V){U=T(U,this.editor.config.protectedSource);U=I(U);if(CKEDITOR.env.ie)U=O(U);U=P(U);U=Q(U);var W=document.createElement('div');W.innerHTML='a'+U;U=W.innerHTML.substr(1);if(CKEDITOR.env.ie)U=S(U);var X=CKEDITOR.htmlParser.fragment.fromHtml(U,V),Y=new CKEDITOR.htmlParser.basicWriter();X.writeHtml(Y,this.dataFilter);return Y.getHtml(true);},toDataFormat:function(U,V){var W=this.writer,X=CKEDITOR.htmlParser.fragment.fromHtml(U,V);
W.reset();X.writeHtml(W,this.htmlFilter);return W.getHtml(true);}};})();CKEDITOR.config.forceSimpleAmpersand=false;CKEDITOR.plugins.add('image',{init:function(t){var u='image';CKEDITOR.dialog.add(u,this.path+'dialogs/image.js');t.addCommand(u,new CKEDITOR.dialogCommand(u));t.ui.addButton('Image',{label:t.lang.common.image,command:u});if(t.addMenuItems)t.addMenuItems({image:{label:t.lang.image.menu,command:'image',group:'image'}});if(t.contextMenu)t.contextMenu.addListener(function(v,w){if(!v||!v.is('img')||v.getAttribute('_cke_realelement'))return null;return{image:2};});}});CKEDITOR.config.image_removeLinkByEmptyURL=true;(function(){var t={ol:1,ul:1};function u(z,A){z.getCommand(this.name).setState(A);};function v(z){var K=this;var A=z.data.path.elements,B,C,D=z.editor;for(var E=0;E<A.length;E++){if(A[E].getName()=='li'){C=A[E];continue;}if(t[A[E].getName()]){B=A[E];break;}}if(B)if(K.name=='outdent')return u.call(K,D,2);else{while(C&&(C=C.getPrevious(CKEDITOR.dom.walker.whitespaces(true))))if(C.getName&&C.getName()=='li')return u.call(K,D,2);return u.call(K,D,0);}if(!K.useIndentClasses&&K.name=='indent')return u.call(K,D,2);var F=z.data.path,G=F.block||F.blockLimit;if(!G)return u.call(K,D,0);if(K.useIndentClasses){var H=G.$.className.match(K.classNameRegex),I=0;if(H){H=H[1];I=K.indentClassMap[H];}if(K.name=='outdent'&&!I||K.name=='indent'&&I==D.config.indentClasses.length)return u.call(K,D,0);return u.call(K,D,2);}else{var J=parseInt(G.getStyle(K.indentCssProperty),10);if(isNaN(J))J=0;if(J<=0)return u.call(K,D,0);return u.call(K,D,2);}};function w(z,A,B){var C=A.startContainer,D=A.endContainer;while(C&&!C.getParent().equals(B))C=C.getParent();while(D&&!D.getParent().equals(B))D=D.getParent();if(!C||!D)return;var E=C,F=[],G=false;while(!G){if(E.equals(D))G=true;F.push(E);E=E.getNext();}if(F.length<1)return;var H=B.getParents(true);for(var I=0;I<H.length;I++)if(H[I].getName&&t[H[I].getName()]){B=H[I];break;}var J=this.name=='indent'?1:-1,K=F[0],L=F[F.length-1],M={},N=CKEDITOR.plugins.list.listToArray(B,M),O=N[L.getCustomData('listarray_index')].indent;for(I=K.getCustomData('listarray_index');I<=L.getCustomData('listarray_index');I++)N[I].indent+=J;for(I=L.getCustomData('listarray_index')+1;I<N.length&&N[I].indent>O;I++)N[I].indent+=J;var P=CKEDITOR.plugins.list.arrayToList(N,M,null,z.config.enterMode,0);if(this.name=='outdent'){var Q;if((Q=B.getParent())&&(Q.is('li'))){var R=P.listNode.getChildren(),S=[],T=R.count(),U;for(I=T-1;I>=0;I--)if((U=R.getItem(I))&&(U.is&&U.is('li')))S.push(U);
}}if(P)P.listNode.replace(B);if(S&&S.length)for(I=0;I<S.length;I++){var V=S[I],W=V;while((W=W.getNext())&&(W.is&&W.getName() in t))V.append(W);V.insertAfter(Q);}CKEDITOR.dom.element.clearAllMarkers(M);};function x(z,A){var I=this;var B=A.createIterator(),C=z.config.enterMode;B.enforceRealBlocks=true;B.enlargeBr=C!=2;var D;while(D=B.getNextParagraph())if(I.useIndentClasses){var E=D.$.className.match(I.classNameRegex),F=0;if(E){E=E[1];F=I.indentClassMap[E];}if(I.name=='outdent')F--;elseF++;F=Math.min(F,z.config.indentClasses.length);F=Math.max(F,0);var G=CKEDITOR.tools.ltrim(D.$.className.replace(I.classNameRegex,''));if(F<1)D.$.className=G;else D.addClass(z.config.indentClasses[F-1]);}else{var H=parseInt(D.getStyle(I.indentCssProperty),10);if(isNaN(H))H=0;H+=(I.name=='indent'?1:-1)*(z.config.indentOffset);H=Math.max(H,0);H=Math.ceil(H/z.config.indentOffset)*z.config.indentOffset;D.setStyle(I.indentCssProperty,H?H+z.config.indentUnit:'');if(D.getAttribute('style')==='')D.removeAttribute('style');}};function y(z,A){var C=this;C.name=A;C.useIndentClasses=z.config.indentClasses&&z.config.indentClasses.length>0;if(C.useIndentClasses){C.classNameRegex=new RegExp('(?:^|\\s+)('+z.config.indentClasses.join('|')+')(?=$|\\s)');C.indentClassMap={};for(var B=0;B<z.config.indentClasses.length;B++)C.indentClassMap[z.config.indentClasses[B]]=B+1;}else C.indentCssProperty=z.config.contentsLangDirection=='ltr'?'margin-left':'margin-right';};y.prototype={exec:function(z){var A=z.getSelection(),B=A&&A.getRanges()[0];if(!A||!B)return;var C=A.createBookmarks(true),D=B.getCommonAncestor();while(D&&!(D.type==1&&t[D.getName()]))D=D.getParent();if(D)w.call(this,z,B,D);else x.call(this,z,B);z.focus();z.forceNextSelectionCheck();A.selectBookmarks(C);}};CKEDITOR.plugins.add('indent',{init:function(z){var A=new y(z,'indent'),B=new y(z,'outdent');z.addCommand('indent',A);z.addCommand('outdent',B);z.ui.addButton('Indent',{label:z.lang.indent,command:'indent'});z.ui.addButton('Outdent',{label:z.lang.outdent,command:'outdent'});z.on('selectionChange',CKEDITOR.tools.bind(v,A));z.on('selectionChange',CKEDITOR.tools.bind(v,B));},requires:['domiterator','list']});})();CKEDITOR.tools.extend(CKEDITOR.config,{indentOffset:40,indentUnit:'px',indentClasses:null});(function(){var t=/(-moz-|-webkit-|start|auto)/i;function u(x,y){var z=y.block||y.blockLimit;if(!z||z.getName()=='body')return 2;var A=z.getComputedStyle('text-align').replace(t,'');if(!A&&this.isDefaultAlign||A==this.value)return 1;return 2;
};function v(x){var y=x.editor.getCommand(this.name);y.state=u.call(this,x.editor,x.data.path);y.fire('state');};function w(x,y,z){var C=this;C.name=y;C.value=z;var A=x.config.contentsLangDirection;C.isDefaultAlign=z=='left'&&A=='ltr'||z=='right'&&A=='rtl';var B=x.config.justifyClasses;if(B){switch(z){case 'left':C.cssClassName=B[0];break;case 'center':C.cssClassName=B[1];break;case 'right':C.cssClassName=B[2];break;case 'justify':C.cssClassName=B[3];break;}C.cssClassRegex=new RegExp('(?:^|\\s+)(?:'+B.join('|')+')(?=$|\\s)');}};w.prototype={exec:function(x){var G=this;var y=x.getSelection();if(!y)return;var z=y.createBookmarks(),A=y.getRanges(),B=G.cssClassName,C,D;for(var E=A.length-1;E>=0;E--){C=A[E].createIterator();while(D=C.getNextParagraph()){D.removeAttribute('align');if(B){var F=D.$.className=CKEDITOR.tools.ltrim(D.$.className.replace(G.cssClassRegex,''));if(G.state==2)D.addClass(B);else if(!F)D.removeAttribute('class');}else if(G.state==2)D.setStyle('text-align',G.value);else D.removeStyle('text-align');}}x.focus();x.forceNextSelectionCheck();y.selectBookmarks(z);}};CKEDITOR.plugins.add('justify',{init:function(x){var y=new w(x,'justifyleft','left'),z=new w(x,'justifycenter','center'),A=new w(x,'justifyright','right'),B=new w(x,'justifyblock','justify');x.addCommand('justifyleft',y);x.addCommand('justifycenter',z);x.addCommand('justifyright',A);x.addCommand('justifyblock',B);x.ui.addButton('JustifyLeft',{label:x.lang.justify.left,command:'justifyleft'});x.ui.addButton('JustifyCenter',{label:x.lang.justify.center,command:'justifycenter'});x.ui.addButton('JustifyRight',{label:x.lang.justify.right,command:'justifyright'});x.ui.addButton('JustifyBlock',{label:x.lang.justify.block,command:'justifyblock'});x.on('selectionChange',CKEDITOR.tools.bind(v,y));x.on('selectionChange',CKEDITOR.tools.bind(v,A));x.on('selectionChange',CKEDITOR.tools.bind(v,z));x.on('selectionChange',CKEDITOR.tools.bind(v,B));},requires:['domiterator']});})();CKEDITOR.tools.extend(CKEDITOR.config,{justifyClasses:null});CKEDITOR.plugins.add('keystrokes',{beforeInit:function(t){t.keystrokeHandler=new CKEDITOR.keystrokeHandler(t);t.specialKeys={};},init:function(t){var u=t.config.keystrokes,v=t.config.blockedKeystrokes,w=t.keystrokeHandler.keystrokes,x=t.keystrokeHandler.blockedKeystrokes;for(var y=0;y<u.length;y++)w[u[y][0]]=u[y][1];for(y=0;y<v.length;y++)x[v[y]]=1;}});CKEDITOR.keystrokeHandler=function(t){var u=this;if(t.keystrokeHandler)return t.keystrokeHandler;u.keystrokes={};u.blockedKeystrokes={};
u._={editor:t};return u;};(function(){var t,u=function(w){w=w.data;var x=w.getKeystroke(),y=this.keystrokes[x],z=this._.editor;t=z.fire('key',{keyCode:x})===true;if(!t){if(y){var A={from:'keystrokeHandler'};t=z.execCommand(y,A)!==false;}if(!t){var B=z.specialKeys[x];t=B&&B(z)===true;if(!t)t=!!this.blockedKeystrokes[x];}}if(t)w.preventDefault(true);return!t;},v=function(w){if(t){t=false;w.data.preventDefault(true);}};CKEDITOR.keystrokeHandler.prototype={attach:function(w){w.on('keydown',u,this);if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)w.on('keypress',v,this);}};})();CKEDITOR.config.blockedKeystrokes=[1000+66,1000+73,1000+85];CKEDITOR.config.keystrokes=[[4000+121,'toolbarFocus'],[4000+122,'elementsPathFocus'],[2000+121,'contextMenu'],[1000+2000+121,'contextMenu'],[1000+90,'undo'],[1000+89,'redo'],[1000+2000+90,'redo'],[1000+76,'link'],[1000+66,'bold'],[1000+73,'italic'],[1000+85,'underline'],[4000+109,'toolbarCollapse']];CKEDITOR.plugins.add('link',{init:function(t){t.addCommand('link',new CKEDITOR.dialogCommand('link'));t.addCommand('anchor',new CKEDITOR.dialogCommand('anchor'));t.addCommand('unlink',new CKEDITOR.unlinkCommand());t.ui.addButton('Link',{label:t.lang.link.toolbar,command:'link'});t.ui.addButton('Unlink',{label:t.lang.unlink,command:'unlink'});t.ui.addButton('Anchor',{label:t.lang.anchor.toolbar,command:'anchor'});CKEDITOR.dialog.add('link',this.path+'dialogs/link.js');CKEDITOR.dialog.add('anchor',this.path+'dialogs/anchor.js');t.addCss('img.cke_anchor{background-image: url('+CKEDITOR.getUrl(this.path+'images/anchor.gif')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'width: 18px;'+'height: 18px;'+'}\n'+'a.cke_anchor'+'{'+'background-image: url('+CKEDITOR.getUrl(this.path+'images/anchor.gif')+');'+'background-position: 0 center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'padding-left: 18px;'+'}');t.on('selectionChange',function(u){var v=t.getCommand('unlink'),w=u.data.path.lastElement.getAscendant('a',true);if(w&&w.getName()=='a'&&w.getAttribute('href'))v.setState(2);else v.setState(0);});if(t.addMenuItems)t.addMenuItems({anchor:{label:t.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:t.lang.link.menu,command:'link',group:'link',order:1},unlink:{label:t.lang.unlink,command:'unlink',group:'link',order:5}});if(t.contextMenu)t.contextMenu.addListener(function(u,v){if(!u)return null;var w=u.is('img')&&u.getAttribute('_cke_real_element_type')=='anchor';
if(!w){if(!(u=u.getAscendant('a',true)))return null;w=u.getAttribute('name')&&!u.getAttribute('href');}return w?{anchor:2}:{link:2,unlink:2};});},afterInit:function(t){var u=t.dataProcessor,v=u&&u.dataFilter;if(v)v.addRules({elements:{a:function(w){var x=w.attributes;if(x.name&&!x.href)return t.createFakeParserElement(w,'cke_anchor','anchor');}}});},requires:['fakeobjects']});CKEDITOR.unlinkCommand=function(){};CKEDITOR.unlinkCommand.prototype={exec:function(t){var u=t.getSelection(),v=u.createBookmarks(),w=u.getRanges(),x,y;for(var z=0;z<w.length;z++){x=w[z].getCommonAncestor(true);y=x.getAscendant('a',true);if(!y)continue;w[z].selectNodeContents(y);}u.selectRanges(w);t.document.$.execCommand('unlink',false,null);u.selectBookmarks(v);}};CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:true,linkShowTargetTab:true});(function(){var t={ol:1,ul:1},u=/^[\n\r\t ]*$/;CKEDITOR.plugins.list={listToArray:function(B,C,D,E,F){if(!t[B.getName()])return[];if(!E)E=0;if(!D)D=[];for(var G=0,H=B.getChildCount();G<H;G++){var I=B.getChild(G);if(I.$.nodeName.toLowerCase()!='li')continue;var J={parent:B,indent:E,contents:[]};if(!F){J.grandparent=B.getParent();if(J.grandparent&&J.grandparent.$.nodeName.toLowerCase()=='li')J.grandparent=J.grandparent.getParent();}else J.grandparent=F;if(C)CKEDITOR.dom.element.setMarker(C,I,'listarray_index',D.length);D.push(J);for(var K=0,L=I.getChildCount();K<L;K++){var M=I.getChild(K);if(M.type==1&&t[M.getName()])CKEDITOR.plugins.list.listToArray(M,C,D,E+1,J.grandparent);else J.contents.push(M);}}return D;},arrayToList:function(B,C,D,E){if(!D)D=0;if(!B||B.length<D+1)return null;var F=B[D].parent.getDocument(),G=new CKEDITOR.dom.documentFragment(F),H=null,I=D,J=Math.max(B[D].indent,0),K=null,L=E==1?'p':'div';for(;;){var M=B[I];if(M.indent==J){if(!H||B[I].parent.getName()!=H.getName()){H=B[I].parent.clone(false,true);G.append(H);}K=H.append(F.createElement('li'));for(var N=0;N<M.contents.length;N++)K.append(M.contents[N].clone(true,true));I++;}else if(M.indent==Math.max(J,0)+1){var O=CKEDITOR.plugins.list.arrayToList(B,null,I,E);K.append(O.listNode);I=O.nextIndex;}else if(M.indent==-1&&!D&&M.grandparent){K;if(t[M.grandparent.getName()])K=F.createElement('li');else if(E!=2&&M.grandparent.getName()!='td')K=F.createElement(L);else K=new CKEDITOR.dom.documentFragment(F);for(N=0;N<M.contents.length;N++)K.append(M.contents[N].clone(true,true));if(K.type==11&&I!=B.length-1){if(K.getLast()&&K.getLast().type==1&&K.getLast().getAttribute('type')=='_moz')K.getLast().remove();
K.appendBogus();}if(K.type==1&&K.getName()==L&&K.$.firstChild){K.trim();var P=K.getFirst();if(P.type==1&&P.isBlockBoundary()){var Q=new CKEDITOR.dom.documentFragment(F);K.moveChildren(Q);K=Q;}}var R=K.$.nodeName.toLowerCase();if(!CKEDITOR.env.ie&&(R=='div'||R=='p'))K.appendBogus();G.append(K);H=null;I++;}else return null;if(B.length<=I||Math.max(B[I].indent,0)<J)break;}if(C){var S=G.getFirst();while(S){if(S.type==1)CKEDITOR.dom.element.clearMarkers(C,S);S=S.getNextSourceNode();}}return{listNode:G,nextIndex:I};}};function v(B,C){B.getCommand(this.name).setState(C);};function w(B){var C=B.data.path,D=C.blockLimit,E=C.elements,F;for(var G=0;G<E.length&&(F=E[G])&&(!F.equals(D));G++)if(t[E[G].getName()])return v.call(this,B.editor,this.type==E[G].getName()?1:2);return v.call(this,B.editor,2);};function x(B,C,D,E){var F=CKEDITOR.plugins.list.listToArray(C.root,D),G=[];for(var H=0;H<C.contents.length;H++){var I=C.contents[H];I=I.getAscendant('li',true);if(!I||I.getCustomData('list_item_processed'))continue;G.push(I);CKEDITOR.dom.element.setMarker(D,I,'list_item_processed',true);}var J=C.root.getDocument().createElement(this.type);for(H=0;H<G.length;H++){var K=G[H].getCustomData('listarray_index');F[K].parent=J;}var L=CKEDITOR.plugins.list.arrayToList(F,D,null,B.config.enterMode),M,N=L.listNode.getChildCount();for(H=0;H<N&&(M=L.listNode.getChild(H));H++)if(M.getName()==this.type)E.push(M);L.listNode.replace(C.root);};function y(B,C,D){var E=C.contents,F=C.root.getDocument(),G=[];if(E.length==1&&E[0].equals(C.root)){var H=F.createElement('div');E[0].moveChildren&&E[0].moveChildren(H);E[0].append(H);E[0]=H;}var I=C.contents[0].getParent();for(var J=0;J<E.length;J++)I=I.getCommonAncestor(E[J].getParent());for(J=0;J<E.length;J++){var K=E[J],L;while(L=K.getParent()){if(L.equals(I)){G.push(K);break;}K=L;}}if(G.length<1)return;var M=G[G.length-1].getNext(),N=F.createElement(this.type);D.push(N);while(G.length){var O=G.shift(),P=F.createElement('li');O.moveChildren(P);O.remove();P.appendTo(N);if(!CKEDITOR.env.ie)P.appendBogus();}if(M)N.insertBefore(M);else N.appendTo(I);};function z(B,C,D){var E=CKEDITOR.plugins.list.listToArray(C.root,D),F=[];for(var G=0;G<C.contents.length;G++){var H=C.contents[G];H=H.getAscendant('li',true);if(!H||H.getCustomData('list_item_processed'))continue;F.push(H);CKEDITOR.dom.element.setMarker(D,H,'list_item_processed',true);}var I=null;for(G=0;G<F.length;G++){var J=F[G].getCustomData('listarray_index');E[J].indent=-1;I=J;}for(G=I+1;G<E.length;G++)if(E[G].indent>E[G-1].indent+1){var K=E[G-1].indent+1-E[G].indent,L=E[G].indent;
while(E[G]&&E[G].indent>=L){E[G].indent+=K;G++;}G--;}var M=CKEDITOR.plugins.list.arrayToList(E,D,null,B.config.enterMode),N=M.listNode,O,P;function Q(S){if((O=N[S?'getFirst':'getLast']())&&(!(O.is&&O.isBlockBoundary())&&(P=C.root[S?'getPrevious':'getNext'](CKEDITOR.dom.walker.whitespaces(true)))&&(!(P.is&&P.isBlockBoundary({br:1})))))B.document.createElement('br')[S?'insertBefore':'insertAfter'](O);};Q(true);Q();var R=C.root.getParent();N.replace(C.root);};function A(B,C){this.name=B;this.type=C;};A.prototype={exec:function(B){B.focus();var C=B.document,D=B.getSelection(),E=D&&D.getRanges();if(!E||E.length<1)return;if(this.state==2){var F=C.getBody();F.trim();if(!F.getFirst()){var G=C.createElement(B.config.enterMode==1?'p':B.config.enterMode==3?'div':'br');G.appendTo(F);E=[new CKEDITOR.dom.range(C)];if(G.is('br')){E[0].setStartBefore(G);E[0].setEndAfter(G);}else E[0].selectNodeContents(G);D.selectRanges(E);}else{var H=E.length==1&&E[0],I=H&&H.getEnclosedNode();if(I&&I.is&&this.type==I.getName())v.call(this,B,1);}}var J=D.createBookmarks(true),K=[],L={};while(E.length>0){H=E.shift();var M=H.getBoundaryNodes(),N=M.startNode,O=M.endNode;if(N.type==1&&N.getName()=='td')H.setStartAt(M.startNode,1);if(O.type==1&&O.getName()=='td')H.setEndAt(M.endNode,2);var P=H.createIterator(),Q;P.forceBrBreak=this.state==2;while(Q=P.getNextParagraph()){var R=new CKEDITOR.dom.elementPath(Q),S=null,T=false,U=R.blockLimit,V;for(var W=0;W<R.elements.length&&(V=R.elements[W])&&(!V.equals(U));W++)if(t[V.getName()]){U.removeCustomData('list_group_object');var X=V.getCustomData('list_group_object');if(X)X.contents.push(Q);else{X={root:V,contents:[Q]};K.push(X);CKEDITOR.dom.element.setMarker(L,V,'list_group_object',X);}T=true;break;}if(T)continue;var Y=U;if(Y.getCustomData('list_group_object'))Y.getCustomData('list_group_object').contents.push(Q);else{X={root:Y,contents:[Q]};CKEDITOR.dom.element.setMarker(L,Y,'list_group_object',X);K.push(X);}}}var Z=[];while(K.length>0){X=K.shift();if(this.state==2){if(t[X.root.getName()])x.call(this,B,X,L,Z);else y.call(this,B,X,Z);}else if(this.state==1&&t[X.root.getName()])z.call(this,B,X,L);}for(W=0;W<Z.length;W++){S=Z[W];var aa,ab=this;(aa=function(ac){var ad=S[ac?'getPrevious':'getNext'](CKEDITOR.dom.walker.whitespaces(true));if(ad&&ad.getName&&ad.getName()==ab.type){ad.remove();ad.moveChildren(S,ac?true:false);}})();aa(true);}CKEDITOR.dom.element.clearAllMarkers(L);D.selectBookmarks(J);B.focus();}};CKEDITOR.plugins.add('list',{init:function(B){var C=new A('numberedlist','ol'),D=new A('bulletedlist','ul');
B.addCommand('numberedlist',C);B.addCommand('bulletedlist',D);B.ui.addButton('NumberedList',{label:B.lang.numberedlist,command:'numberedlist'});B.ui.addButton('BulletedList',{label:B.lang.bulletedlist,command:'bulletedlist'});B.on('selectionChange',CKEDITOR.tools.bind(w,C));B.on('selectionChange',CKEDITOR.tools.bind(w,D));},requires:['domiterator']});})();(function(){function t(y){if(!y||y.type!=1||y.getName()!='form')return[];var z=[],A=['style','className'];for(var B=0;B<A.length;B++){var C=A[B],D=y.$.elements.namedItem(C);if(D){var E=new CKEDITOR.dom.element(D);z.push([E,E.nextSibling]);E.remove();}}return z;};function u(y,z){if(!y||y.type!=1||y.getName()!='form')return;if(z.length>0)for(var A=z.length-1;A>=0;A--){var B=z[A][0],C=z[A][1];if(C)B.insertBefore(C);else B.appendTo(y);}};function v(y,z){var A=t(y),B={},C=y.$;if(!z){B['class']=C.className||'';C.className='';}B.inline=C.style.cssText||'';if(!z)C.style.cssText='position: static; overflow: visible';u(A);return B;};function w(y,z){var A=t(y),B=y.$;if('class' in z)B.className=z['class'];if('inline' in z)B.style.cssText=z.inline;u(A);};function x(y,z){return function(){var A=y.getViewPaneSize();z.resize(A.width,A.height,null,true);};};CKEDITOR.plugins.add('maximize',{init:function(y){var z=y.lang,A=CKEDITOR.document,B=A.getWindow(),C,D,E,F=x(B,y),G=2;y.addCommand('maximize',{modes:{wysiwyg:1,source:1},editorFocus:false,exec:function(){var U=this;var H=y.container.getChild([0,0]),I=y.getThemeSpace('contents');if(y.mode=='wysiwyg'){var J=y.getSelection();C=J&&J.getRanges();D=B.getScrollPosition();}else{var K=y.textarea.$;C=!CKEDITOR.env.ie&&[K.selectionStart,K.selectionEnd];D=[K.scrollLeft,K.scrollTop];}if(U.state==2){B.on('resize',F);E=B.getScrollPosition();var L=y.container;while(L=L.getParent()){L.setCustomData('maximize_saved_styles',v(L));L.setStyle('z-index',y.config.baseFloatZIndex-1);}I.setCustomData('maximize_saved_styles',v(I,true));H.setCustomData('maximize_saved_styles',v(H,true));if(CKEDITOR.env.ie)A.$.documentElement.style.overflow=A.getBody().$.style.overflow='hidden';else A.getBody().setStyles({overflow:'hidden',width:'0px',height:'0px'});B.$.scrollTo(0,0);var M=B.getViewPaneSize();H.setStyle('position','absolute');H.$.offsetLeft;H.setStyles({'z-index':y.config.baseFloatZIndex-1,left:'0px',top:'0px'});y.resize(M.width,M.height,null,true);var N=H.getDocumentPosition();H.setStyles({left:-1*N.x+'px',top:-1*N.y+'px'});H.addClass('cke_maximized');}else if(U.state==1){B.removeListener('resize',F);
var O=[I,H];for(var P=0;P<O.length;P++){w(O[P],O[P].getCustomData('maximize_saved_styles'));O[P].removeCustomData('maximize_saved_styles');}L=y.container;while(L=L.getParent()){w(L,L.getCustomData('maximize_saved_styles'));L.removeCustomData('maximize_saved_styles');}B.$.scrollTo(E.x,E.y);H.removeClass('cke_maximized');y.fire('resize');}U.toggleState();var Q=U.uiItems[0],R=U.state==2?z.maximize:z.minimize,S=y.element.getDocument().getById(Q._.id);S.getChild(1).setHtml(R);S.setAttribute('title',R);S.setAttribute('href','javascript:void("'+R+'");');if(y.mode=='wysiwyg'){if(C){y.getSelection().selectRanges(C);var T=y.getSelection().getStartElement();T&&T.scrollIntoView(true);}else B.$.scrollTo(D.x,D.y);}else{if(C){K.selectionStart=C[0];K.selectionEnd=C[1];}K.scrollLeft=D[0];K.scrollTop=D[1];}C=D=null;G=U.state;},canUndo:false});y.ui.addButton('Maximize',{label:z.maximize,command:'maximize'});y.on('mode',function(){y.getCommand('maximize').setState(G);},null,null,100);}});})();CKEDITOR.plugins.add('newpage',{init:function(t){t.addCommand('newpage',{modes:{wysiwyg:1,source:1},exec:function(u){var v=this;u.setData(u.config.newpage_html,function(){u.fire('afterCommandExec',{name:v.name,command:v});});u.focus();},async:true});t.ui.addButton('NewPage',{label:t.lang.newPage,command:'newpage'});}});CKEDITOR.config.newpage_html='';CKEDITOR.plugins.add('pagebreak',{init:function(t){t.addCommand('pagebreak',CKEDITOR.plugins.pagebreakCmd);t.ui.addButton('PageBreak',{label:t.lang.pagebreak,command:'pagebreak'});t.addCss('img.cke_pagebreak{background-image: url('+CKEDITOR.getUrl(this.path+'images/pagebreak.gif')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'clear: both;'+'display: block;'+'float: none;'+'width: 100%;'+'border-top: #999999 1px dotted;'+'border-bottom: #999999 1px dotted;'+'height: 5px;'+'}');},afterInit:function(t){var u=t.dataProcessor,v=u&&u.dataFilter;if(v)v.addRules({elements:{div:function(w){var x=w.attributes.style,y=x&&w.children.length==1&&w.children[0],z=y&&y.name=='span'&&y.attributes.style;if(z&&/page-break-after\s*:\s*always/i.test(x)&&/display\s*:\s*none/i.test(z))return t.createFakeParserElement(w,'cke_pagebreak','div');}}});},requires:['fakeobjects']});CKEDITOR.plugins.pagebreakCmd={exec:function(t){var u=CKEDITOR.dom.element.createFromHtml('<div style="page-break-after: always;"><span style="display: none;">&nbsp;</span></div>');u=t.createFakeElement(u,'cke_pagebreak','div');var v=t.getSelection().getRanges();for(var w,x=0;
x<v.length;x++){w=v[x];if(x>0)u=u.clone(true);w.splitBlock('p');w.insertNode(u);}}};CKEDITOR.plugins.add('pastefromword',{init:function(t){t.addCommand('pastefromword',new CKEDITOR.dialogCommand('pastefromword'));t.ui.addButton('PasteFromWord',{label:t.lang.pastefromword.toolbar,command:'pastefromword'});CKEDITOR.dialog.add('pastefromword',this.path+'dialogs/pastefromword.js');}});CKEDITOR.config.pasteFromWordIgnoreFontFace=true;CKEDITOR.config.pasteFromWordRemoveStyle=false;CKEDITOR.config.pasteFromWordKeepsStructure=false;(function(){var t={exec:function(v){if(CKEDITOR.getClipboardData()===false||!window.clipboardData){v.openDialog('pastetext');return;}v.insertText(window.clipboardData.getData('Text'));}};CKEDITOR.plugins.add('pastetext',{init:function(v){var w='pastetext',x=v.addCommand(w,t);v.ui.addButton('PasteText',{label:v.lang.pasteText.button,command:w});CKEDITOR.dialog.add(w,CKEDITOR.getUrl(this.path+'dialogs/pastetext.js'));if(v.config.forcePasteAsPlainText)v.on('beforePaste',function(y){if(v.mode=='wysiwyg'){setTimeout(function(){x.exec();},0);y.cancel();}},null,null,20);},requires:['clipboard']});var u;CKEDITOR.getClipboardData=function(){if(!CKEDITOR.env.ie)return false;var v=CKEDITOR.document,w=v.getBody();if(!u){u=v.createElement('div',{attributes:{id:'cke_hiddenDiv'},styles:{position:'absolute',visibility:'hidden',overflow:'hidden',width:'1px',height:'1px'}});u.setHtml('');u.appendTo(w);}var x=false,y=function(){x=true;};w.on('paste',y);var z=w.$.createTextRange();z.moveToElementText(u.$);z.execCommand('Paste');var A=u.getHtml();u.setHtml('');w.removeListener('paste',y);return x&&A;};})();CKEDITOR.editor.prototype.insertText=function(t){t=CKEDITOR.tools.htmlEncode(t);t=t.replace(/(?:\r\n)|\n|\r/g,'<br>');this.insertHtml(t);};CKEDITOR.config.forcePasteAsPlainText=false;CKEDITOR.plugins.add('popup');CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(t,u,v){u=u||'80%';v=v||'70%';if(typeof u=='string'&&u.length>1&&u.substr(u.length-1,1)=='%')u=parseInt(window.screen.width*parseInt(u,10)/100,10);if(typeof v=='string'&&v.length>1&&v.substr(v.length-1,1)=='%')v=parseInt(window.screen.height*parseInt(v,10)/100,10);if(u<640)u=640;if(v<420)v=420;var w=parseInt((window.screen.height-v)/(2),10),x=parseInt((window.screen.width-u)/(2),10),y='location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,width='+u+',height='+v+',top='+w+',left='+x,z=window.open('',null,y,true);if(!z)return false;try{z.moveTo(x,w);
z.resizeTo(u,v);z.focus();z.location.href=t;}catch(A){z=window.open(t,null,y,true);}return true;}});(function(){var t={modes:{wysiwyg:1,source:1},canUndo:false,exec:function(v){var w,x=CKEDITOR.env.isCustomDomain();if(v.config.fullPage)w=v.getData();else{var y='<body ',z=CKEDITOR.document.getBody(),A=v.config.baseHref.length>0?'<base href="'+v.config.baseHref+'" _cktemp="true"></base>':'';if(z.getAttribute('id'))y+='id="'+z.getAttribute('id')+'" ';if(z.getAttribute('class'))y+='class="'+z.getAttribute('class')+'" ';y+='>';w=v.config.docType+'<html dir="'+v.config.contentsLangDirection+'">'+'<head>'+A+'<title>'+v.lang.preview+'</title>'+'<link type="text/css" rel="stylesheet" href="'+[].concat(v.config.contentsCss).join('"><link type="text/css" rel="stylesheet" href="')+'">'+'</head>'+y+v.getData()+'</body></html>';}var B=640,C=420,D=80;try{var E=window.screen;B=Math.round(E.width*0.8);C=Math.round(E.height*0.7);D=Math.round(E.width*0.1);}catch(H){}var F='';if(x){window._cke_htmlToLoad=w;F='javascript:void( (function(){document.open();document.domain="'+document.domain+'";'+'document.write( window.opener._cke_htmlToLoad );'+'document.close();'+'window.opener._cke_htmlToLoad = null;'+'})() )';}var G=window.open(F,null,'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+B+',height='+C+',left='+D);if(!x){G.document.write(w);G.document.close();}}},u='preview';CKEDITOR.plugins.add(u,{init:function(v){v.addCommand(u,t);v.ui.addButton('Preview',{label:v.lang.preview,command:u});}});})();CKEDITOR.plugins.add('print',{init:function(t){var u='print',v=t.addCommand(u,CKEDITOR.plugins.print);t.ui.addButton('Print',{label:t.lang.print,command:u});}});CKEDITOR.plugins.print={exec:function(t){if(CKEDITOR.env.opera)return;else if(CKEDITOR.env.gecko)t.window.$.print();else t.document.$.execCommand('Print');},canUndo:false,modes:{wysiwyg:!CKEDITOR.env.opera}};CKEDITOR.plugins.add('removeformat',{requires:['selection'],init:function(t){t.addCommand('removeFormat',CKEDITOR.plugins.removeformat.commands.removeformat);t.ui.addButton('RemoveFormat',{label:t.lang.removeFormat,command:'removeFormat'});}});CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(t){var u=t._.removeFormatRegex||(t._.removeFormatRegex=new RegExp('^(?:'+t.config.removeFormatTags.replace(/,/g,'|')+')$','i')),v=t._.removeAttributes||(t._.removeAttributes=t.config.removeFormatAttributes.split(',')),w=t.getSelection().getRanges();for(var x=0,y;y=w[x];x++){if(y.collapsed)continue;
y.enlarge(1);var z=y.createBookmark(),A=z.startNode,B=z.endNode,C=function(F){var G=new CKEDITOR.dom.elementPath(F),H=G.elements;for(var I=1,J;J=H[I];I++){if(J.equals(G.block)||J.equals(G.blockLimit))break;if(u.test(J.getName()))F.breakParent(J);}};C(A);C(B);var D=A.getNextSourceNode(true,1);while(D){if(D.equals(B))break;var E=D.getNextSourceNode(false,1);if(D.getName()!='img'||!D.getAttribute('_cke_protected_html'))if(u.test(D.getName()))D.remove(true);else D.removeAttributes(v);D=E;}y.moveToBookmark(z);}t.getSelection().selectRanges(w);}}}};CKEDITOR.config.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';CKEDITOR.config.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';CKEDITOR.plugins.add('resize',{init:function(t){var u=t.config;if(u.resize_enabled){var v=null,w,x;function y(B){var C=B.data.$.screenX-w.x,D=B.data.$.screenY-w.y,E=x.width+C*(t.lang.dir=='rtl'?-1:1),F=x.height+D;t.resize(Math.max(u.resize_minWidth,Math.min(E,u.resize_maxWidth)),Math.max(u.resize_minHeight,Math.min(F,u.resize_maxHeight)));};function z(B){CKEDITOR.document.removeListener('mousemove',y);CKEDITOR.document.removeListener('mouseup',z);if(t.document){t.document.removeListener('mousemove',y);t.document.removeListener('mouseup',z);}};var A=CKEDITOR.tools.addFunction(function(B){if(!v)v=t.getResizable();x={width:v.$.offsetWidth||0,height:v.$.offsetHeight||0};w={x:B.screenX,y:B.screenY};CKEDITOR.document.on('mousemove',y);CKEDITOR.document.on('mouseup',z);if(t.document){t.document.on('mousemove',y);t.document.on('mouseup',z);}});t.on('themeSpace',function(B){if(B.data.space=='bottom')B.data.html+='<div class="cke_resizer" title="'+CKEDITOR.tools.htmlEncode(t.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+A+', event)"'+'></div>';},t,null,100);}}});CKEDITOR.config.resize_minWidth=750;CKEDITOR.config.resize_minHeight=250;CKEDITOR.config.resize_maxWidth=3000;CKEDITOR.config.resize_maxHeight=3000;CKEDITOR.config.resize_enabled=true;(function(){var t={modes:{wysiwyg:1,source:1},exec:function(v){var w=v.element.$.form;if(w)try{w.submit();}catch(x){if(w.submit.click)w.submit.click();}}},u='save';CKEDITOR.plugins.add(u,{init:function(v){var w=v.addCommand(u,t);w.modes={wysiwyg:!!v.element.$.form};v.ui.addButton('Save',{label:v.lang.save,command:u});}});})();(function(){var t='scaytcheck',u='',v=function(){var z=this,A=function(){var D={};D.srcNodeRef=z.document.getWindow().$.frameElement;D.assocApp='CKEDITOR.'+CKEDITOR.version+'@'+CKEDITOR.revision;
D.customerid=z.config.scayt_customerid||'1:11111111111111111111111111111111111111';D.customDictionaryName=z.config.scayt_customDictionaryName;D.userDictionaryName=z.config.scayt_userDictionaryName;D.defLang=z.scayt_defLang;if(CKEDITOR._scaytParams)for(var E in CKEDITOR._scaytParams)D[E]=CKEDITOR._scaytParams[E];var F=new window.scayt(D),G=w.instances[z.name];if(G){F.sLang=G.sLang;F.option(G.option());F.paused=G.paused;}w.instances[z.name]=F;try{F.setDisabled(F.paused===false);}catch(H){}z.fire('showScaytState');};z.on('contentDom',A);z.on('contentDomUnload',function(){var D=CKEDITOR.document.getElementsByTag('script'),E=/^dojoIoScript(\d+)$/i,F=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var G=0;G<D.count();G++){var H=D.getItem(G),I=H.getId(),J=H.getAttribute('src');if(I&&J&&I.match(E)&&J.match(F))H.remove();}});z.on('beforeCommandExec',function(D){if((D.data.name=='source'||D.data.name=='newpage')&&(z.mode=='wysiwyg')){var E=w.getScayt(z);if(E){E.paused=!E.disabled;E.destroy();delete w.instances[z.name];}}});z.on('afterSetData',function(){if(w.isScaytEnabled(z))w.getScayt(z).refresh();});z.on('insertElement',function(){var D=w.getScayt(z);if(w.isScaytEnabled(z)){if(CKEDITOR.env.ie)z.getSelection().unlock(true);try{D.refresh();}catch(E){}}},this,null,50);z.on('scaytDialog',function(D){D.data.djConfig=window.djConfig;D.data.scayt_control=w.getScayt(z);D.data.tab=u;D.data.scayt=window.scayt;});var B=z.dataProcessor,C=B&&B.htmlFilter;if(C)C.addRules({elements:{span:function(D){if(D.attributes.scayt_word&&D.attributes.scaytid){delete D.name;return D;}}}});if(z.document)A();};CKEDITOR.plugins.scayt={engineLoaded:false,instances:{},getScayt:function(z){return this.instances[z.name];},isScaytReady:function(z){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(z);},isScaytEnabled:function(z){var A=this.getScayt(z);return A?A.disabled===false:false;},loadEngine:function(z){if(this.engineLoaded===true)return v.apply(z);else if(this.engineLoaded==-1)return CKEDITOR.on('scaytReady',function(){v.apply(z);});CKEDITOR.on('scaytReady',v,z);CKEDITOR.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var A=document.location.protocol;A=A.search(/https?:/)!=-1?A:'http:';var B='svc.spellchecker.net/spellcheck/lf/scayt/scayt1.js',C=z.config.scayt_srcUrl||A+'//'+B,D=w.parseUrl(C).path+'/';CKEDITOR._djScaytConfig={baseUrl:D,addOnLoad:[function(){CKEDITOR.fireOnce('scaytReady');}],isDebug:false};
CKEDITOR.document.getHead().append(CKEDITOR.document.createElement('script',{attributes:{type:'text/javascript',src:C}}));return null;},parseUrl:function(z){var A;if(z.match&&(A=z.match(/(.*)[\/\\](.*?\.\w+)$/)))return{path:A[1],file:A[2]};else return z;}};var w=CKEDITOR.plugins.scayt,x=function(z,A,B,C,D,E,F){z.addCommand(C,D);z.addMenuItem(C,{label:B,command:C,group:E,order:F});},y={preserveState:true,editorFocus:false,exec:function(z){if(w.isScaytReady(z)){var A=w.isScaytEnabled(z);this.setState(A?2:1);var B=w.getScayt(z);B.setDisabled(A);}else if(!z.config.scayt_autoStartup&&w.engineLoaded>=0){this.setState(0);z.on('showScaytState',function(){this.removeListener();this.setState(w.isScaytEnabled(z)?1:2);},this);w.loadEngine(z);}}};CKEDITOR.plugins.add('scayt',{requires:['menubutton'],beforeInit:function(z){z.config.menu_groups='scayt_suggest,scayt_moresuggest,scayt_control,'+z.config.menu_groups;},init:function(z){var A={},B={},C=z.addCommand(t,y);CKEDITOR.dialog.add(t,CKEDITOR.getUrl(this.path+'dialogs/options.js'));var D='scaytButton';z.addMenuGroup(D);z.addMenuItems({scaytToggle:{label:z.lang.scayt.enable,command:t,group:D},scaytOptions:{label:z.lang.scayt.options,group:D,onClick:function(){u='options';z.openDialog(t);}},scaytLangs:{label:z.lang.scayt.langs,group:D,onClick:function(){u='langs';z.openDialog(t);}},scaytAbout:{label:z.lang.scayt.about,group:D,onClick:function(){u='about';z.openDialog(t);}}});z.ui.add('Scayt',5,{label:z.lang.scayt.title,title:z.lang.scayt.title,className:'cke_button_scayt',onRender:function(){C.on('state',function(){this.setState(C.state);},this);},onMenu:function(){var F=w.isScaytEnabled(z);z.getMenuItem('scaytToggle').label=z.lang.scayt[F?'disable':'enable'];return{scaytToggle:2,scaytOptions:F?2:0,scaytLangs:F?2:0,scaytAbout:F?2:0};}});if(z.contextMenu&&z.addMenuItems)z.contextMenu.addListener(function(F){if(!(w.isScaytEnabled(z)&&F))return null;var G=w.getScayt(z),H=G.getWord(F.$);if(!H)return null;var I=G.getLang(),J={},K=window.scayt.getSuggestion(H,I);if(!K||!K.length)return null;for(i in A){delete z._.menuItems[i];delete z._.commands[i];}for(i in B){delete z._.menuItems[i];delete z._.commands[i];}A={};B={};var L=false;for(var M=0,N=K.length;M<N;M+=1){var O='scayt_suggestion_'+K[M].replace(' ','_'),P=(function(T,U){return{exec:function(){G.replace(T,U);}};})(F.$,K[M]);if(M<z.config.scayt_maxSuggestions){x(z,'button_'+O,K[M],O,P,'scayt_suggest',M+1);J[O]=2;B[O]=2;}else{x(z,'button_'+O,K[M],O,P,'scayt_moresuggest',M+1);
A[O]=2;L=true;}}if(L)z.addMenuItem('scayt_moresuggest',{label:z.lang.scayt.moreSuggestions,group:'scayt_moresuggest',order:10,getItems:function(){return A;}});var Q={exec:function(){G.ignore(F.$);}},R={exec:function(){G.ignoreAll(F.$);}},S={exec:function(){window.scayt.addWordToUserDictionary(F.$);}};x(z,'ignore',z.lang.scayt.ignore,'scayt_ignore',Q,'scayt_control',1);x(z,'ignore_all',z.lang.scayt.ignoreAll,'scayt_ignore_all',R,'scayt_control',2);x(z,'add_word',z.lang.scayt.addWord,'scayt_add_word',S,'scayt_control',3);B.scayt_moresuggest=2;B.scayt_ignore=2;B.scayt_ignore_all=2;B.scayt_add_word=2;if(G.fireOnContextMenu)G.fireOnContextMenu(z);return B;});if(z.config.scayt_autoStartup){var E=function(){z.removeListener('showScaytState',E);C.setState(w.isScaytEnabled(z)?1:2);};z.on('showScaytState',E);w.loadEngine(z);}}});})();CKEDITOR.config.scayt_maxSuggestions=5;CKEDITOR.config.scayt_autoStartup=false;CKEDITOR.plugins.add('smiley',{requires:['dialog'],init:function(t){t.addCommand('smiley',new CKEDITOR.dialogCommand('smiley'));t.ui.addButton('Smiley',{label:t.lang.smiley.toolbar,command:'smiley'});CKEDITOR.dialog.add('smiley',this.path+'dialogs/smiley.js');}});CKEDITOR.config.smiley_path=CKEDITOR.basePath+'plugins/smiley/images/';CKEDITOR.config.smiley_images=['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'];CKEDITOR.config.smiley_descriptions=[':)',':(',';)',':D',':/',':P','','','','','','','',';(','','','','','',':kiss',''];(function(){var t='.%2 p,.%2 div,.%2 pre,.%2 address,.%2 blockquote,.%2 h1,.%2 h2,.%2 h3,.%2 h4,.%2 h5,.%2 h6{background-repeat: no-repeat;border: 1px dotted gray;padding-top: 8px;padding-left: 8px;}.%2 p{%1p.png);}.%2 div{%1div.png);}.%2 pre{%1pre.png);}.%2 address{%1address.png);}.%2 blockquote{%1blockquote.png);}.%2 h1{%1h1.png);}.%2 h2{%1h2.png);}.%2 h3{%1h3.png);}.%2 h4{%1h4.png);}.%2 h5{%1h5.png);}.%2 h6{%1h6.png);}',u=/%1/g,v=/%2/g,w={preserveState:true,editorFocus:false,exec:function(x){this.toggleState();this.refresh(x);},refresh:function(x){var y=this.state==1?'addClass':'removeClass';x.document.getBody()[y]('cke_show_blocks');}};CKEDITOR.plugins.add('showblocks',{requires:['wysiwygarea'],init:function(x){var y=x.addCommand('showblocks',w);
y.canUndo=false;if(x.config.startupOutlineBlocks)y.setState(1);x.addCss(t.replace(u,'background-image: url('+CKEDITOR.getUrl(this.path)+'images/block_').replace(v,'cke_show_blocks '));x.ui.addButton('ShowBlocks',{label:x.lang.showBlocks,command:'showblocks'});x.on('mode',function(){if(y.state!=0)y.refresh(x);});x.on('contentDom',function(){if(y.state!=0)y.refresh(x);});}});})();CKEDITOR.config.startupOutlineBlocks=false;CKEDITOR.plugins.add('sourcearea',{requires:['editingblock'],init:function(t){var u=CKEDITOR.plugins.sourcearea;t.on('editingBlockReady',function(){var v,w;t.addMode('source',{load:function(x,y){if(CKEDITOR.env.ie&&CKEDITOR.env.version<8)x.setStyle('position','relative');t.textarea=v=new CKEDITOR.dom.element('textarea');v.setAttributes({dir:'ltr',tabIndex:-1});v.addClass('cke_source');v.addClass('cke_enable_context_menu');var z={width:CKEDITOR.env.ie7Compat?'99%':'100%',height:'100%',resize:'none',outline:'none','text-align':'left'};if(CKEDITOR.env.ie){if(!CKEDITOR.env.ie8Compat){w=function(){v.hide();v.setStyle('height',x.$.clientHeight+'px');v.show();};t.on('resize',w);t.on('afterCommandExec',function(B){if(B.data.name=='toolbarCollapse')w();});z.height=x.$.clientHeight+'px';}}else v.on('mousedown',function(B){B.data.stopPropagation();});x.setHtml('');x.append(v);v.setStyles(z);v.on('blur',function(){t.focusManager.blur();});v.on('focus',function(){t.focusManager.focus();});t.mayBeDirty=true;this.loadData(y);var A=t.keystrokeHandler;if(A)A.attach(v);setTimeout(function(){t.mode='source';t.fire('mode');},CKEDITOR.env.gecko||CKEDITOR.env.webkit?100:0);},loadData:function(x){v.setValue(x);t.fire('dataReady');},getData:function(){return v.getValue();},getSnapshotData:function(){return v.getValue();},unload:function(x){t.textarea=v=null;if(w)t.removeListener('resize',w);if(CKEDITOR.env.ie&&CKEDITOR.env.version<8)x.removeStyle('position');},focus:function(){v.focus();}});});t.addCommand('source',u.commands.source);if(t.ui.addButton)t.ui.addButton('Source',{label:t.lang.source,command:'source'});t.on('mode',function(){t.getCommand('source').setState(t.mode=='source'?1:2);});}});CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},exec:function(t){if(t.mode=='wysiwyg')t.fire('saveSnapshot');t.getCommand('source').setState(0);t.setMode(t.mode=='source'?'wysiwyg':'source');},canUndo:false}}};(function(){CKEDITOR.plugins.add('stylescombo',{requires:['richcombo','styles'],init:function(w){var x=w.config,y=w.lang.stylesCombo,z=this.path,A;
w.ui.addRichCombo('Styles',{label:y.label,title:y.panelTitle,voiceLabel:y.voiceLabel,className:'cke_styles',multiSelect:true,panel:{css:[CKEDITOR.getUrl(w.skinPath+'editor.css')].concat(x.contentsCss),voiceLabel:y.panelVoiceLabel},init:function(){var B=this,C=x.stylesCombo_stylesSet.split(':'),D=C[1]?C.slice(1).join(':'):CKEDITOR.getUrl(z+'styles/'+C[0]+'.js');C=C[0];CKEDITOR.loadStylesSet(C,D,function(E){var F,G,H=[];A={};for(var I=0;I<E.length;I++){var J=E[I];G=J.name;F=A[G]=new CKEDITOR.style(J);F._name=G;H.push(F);}H.sort(v);var K;for(I=0;I<H.length;I++){F=H[I];G=F._name;var L=F.type;if(L!=K){B.startGroup(y['panelTitle'+String(L)]);K=L;}B.add(G,F.type==3?G:u(F._.definition),G);}B.commit();B.onOpen();});},onClick:function(B){w.focus();w.fire('saveSnapshot');var C=A[B],D=w.getSelection();if(C.type==3){var E=D.getSelectedElement();if(E)C.applyToObject(E);return;}var F=new CKEDITOR.dom.elementPath(D.getStartElement());if(C.type==2&&C.checkActive(F))C.remove(w.document);else C.apply(w.document);w.fire('saveSnapshot');},onRender:function(){w.on('selectionChange',function(B){var C=this.getValue(),D=B.data.path,E=D.elements;for(var F=0,G;F<E.length;F++){G=E[F];for(var H in A)if(A[H].checkElementRemovable(G,true)){if(H!=C)this.setValue(H);return;}}this.setValue('');},this);},onOpen:function(){var J=this;if(CKEDITOR.env.ie)w.focus();var B=w.getSelection(),C=B.getSelectedElement(),D=C&&C.getName(),E=new CKEDITOR.dom.elementPath(C||B.getStartElement()),F=[0,0,0,0];J.showAll();J.unmarkAll();for(var G in A){var H=A[G],I=H.type;if(I==3){if(C&&H.element==D){if(H.checkElementRemovable(C,true))J.mark(G);F[I]++;}else J.hideItem(G);}else{if(H.checkActive(E))J.mark(G);F[I]++;}}if(!F[1])J.hideGroup(y['panelTitle'+String(1)]);if(!F[2])J.hideGroup(y['panelTitle'+String(2)]);if(!F[3])J.hideGroup(y['panelTitle'+String(3)]);}});}});var t={};CKEDITOR.addStylesSet=function(w,x){t[w]=x;};CKEDITOR.loadStylesSet=function(w,x,y){var z=t[w];if(z){y(z);return;}CKEDITOR.scriptLoader.load(x,function(){y(t[w]);});};function u(w){var x=[],y=w.element;if(y=='bdo')y='span';x=['<',y];var z=w.attributes;if(z)for(var A in z)x.push(' ',A,'="',z[A],'"');var B=CKEDITOR.style.getStyleText(w);if(B)x.push(' style="',B,'"');x.push('>',w.name,'</',y,'>');return x.join('');};function v(w,x){var y=w.type,z=x.type;return y==z?0:y==3?-1:z==3?1:z==1?1:-1;};})();CKEDITOR.config.stylesCombo_stylesSet='default';CKEDITOR.plugins.add('table',{init:function(t){var u=CKEDITOR.plugins.table,v=t.lang.table;t.addCommand('table',new CKEDITOR.dialogCommand('table'));
t.addCommand('tableProperties',new CKEDITOR.dialogCommand('tableProperties'));t.ui.addButton('Table',{label:v.toolbar,command:'table'});CKEDITOR.dialog.add('table',this.path+'dialogs/table.js');CKEDITOR.dialog.add('tableProperties',this.path+'dialogs/table.js');if(t.addMenuItems)t.addMenuItems({table:{label:v.menu,command:'tableProperties',group:'table',order:5},tabledelete:{label:v.deleteTable,command:'tableDelete',group:'table',order:1}});if(t.contextMenu)t.contextMenu.addListener(function(w,x){if(!w)return null;var y=w.is('table')||w.hasAscendant('table');if(y)return{tabledelete:2,table:2};return null;});}});(function(){function t(G,H){if(CKEDITOR.env.ie)G.removeAttribute(H);else delete G[H];};var u=/^(?:td|th)$/;function v(G){var H=G.createBookmarks(),I=G.getRanges(),J=[],K={};function L(T){if(J.length>0)return;if(T.type==1&&u.test(T.getName())&&!T.getCustomData('selected_cell')){CKEDITOR.dom.element.setMarker(K,T,'selected_cell',true);J.push(T);}};for(var M=0;M<I.length;M++){var N=I[M];if(N.collapsed){var O=N.getCommonAncestor(),P=O.getAscendant('td',true)||O.getAscendant('th',true);if(P)J.push(P);}else{var Q=new CKEDITOR.dom.walker(N),R;Q.guard=L;while(R=Q.next()){var S=R.getParent();if(S&&u.test(S.getName())&&!S.getCustomData('selected_cell')){CKEDITOR.dom.element.setMarker(K,S,'selected_cell',true);J.push(S);}}}}CKEDITOR.dom.element.clearAllMarkers(K);G.selectBookmarks(H);return J;};function w(G){var H=new CKEDITOR.dom.element(G),I=(H.getName()=='table'?G:H.getAscendant('table')).$,J=I.rows,K=-1,L=[];for(var M=0;M<J.length;M++){K++;if(!L[K])L[K]=[];var N=-1;for(var O=0;O<J[M].cells.length;O++){var P=J[M].cells[O];N++;while(L[K][N])N++;var Q=isNaN(P.colSpan)?1:P.colSpan,R=isNaN(P.rowSpan)?1:P.rowSpan;for(var S=0;S<R;S++){if(!L[K+S])L[K+S]=[];for(var T=0;T<Q;T++)L[K+S][N+T]=J[M].cells[O];}N+=Q-1;}}return L;};function x(G,H){var I=CKEDITOR.env.ie?'_cke_rowspan':'rowSpan';for(var J=0;J<G.length;J++)for(var K=0;K<G[J].length;K++){var L=G[J][K];if(L.parentNode)L.parentNode.removeChild(L);L.colSpan=L[I]=1;}var M=0;for(J=0;J<G.length;J++)for(K=0;K<G[J].length;K++){L=G[J][K];if(!L)continue;if(K>M)M=K;if(L._cke_colScanned)continue;if(G[J][K-1]==L)L.colSpan++;if(G[J][K+1]!=L)L._cke_colScanned=1;}for(J=0;J<=M;J++)for(K=0;K<G.length;K++){if(!G[K])continue;L=G[K][J];if(!L||L._cke_rowScanned)continue;if(G[K-1]&&G[K-1][J]==L)L[I]++;if(!G[K+1]||G[K+1][J]!=L)L._cke_rowScanned=1;}for(J=0;J<G.length;J++)for(K=0;K<G[J].length;K++){L=G[J][K];t(L,'_cke_colScanned');t(L,'_cke_rowScanned');
}for(J=0;J<G.length;J++){var N=H.ownerDocument.createElement('tr');for(K=0;K<G[J].length;){L=G[J][K];if(G[J-1]&&G[J-1][K]==L){K+=L.colSpan;continue;}N.appendChild(L);if(I!='rowSpan'){L.rowSpan=L[I];L.removeAttribute(I);}K+=L.colSpan;if(L.colSpan==1)L.removeAttribute('colSpan');if(L.rowSpan==1)L.removeAttribute('rowSpan');}if(CKEDITOR.env.ie)H.rows[J].replaceNode(N);else{var O=new CKEDITOR.dom.element(H.rows[J]),P=new CKEDITOR.dom.element(N);O.setHtml('');P.moveChildren(O);}}};function y(G){var H=G.cells;for(var I=0;I<H.length;I++){H[I].innerHTML='';if(!CKEDITOR.env.ie)new CKEDITOR.dom.element(H[I]).appendBogus();}};function z(G,H){var I=G.getStartElement().getAscendant('tr');if(!I)return;var J=I.clone(true);J.insertBefore(I);y(H?J.$:I.$);};function A(G){if(G instanceof CKEDITOR.dom.selection){var H=v(G),I=[];for(var J=0;J<H.length;J++){var K=H[J].getParent();I[K.$.rowIndex]=K;}for(J=I.length;J>=0;J--)if(I[J])A(I[J]);}else if(G instanceof CKEDITOR.dom.element){var L=G.getAscendant('table');if(L.$.rows.length==1)L.remove();else G.remove();}};function B(G,H){var I=G.getStartElement(),J=I.getAscendant('td',true)||I.getAscendant('th',true);if(!J)return;var K=J.getAscendant('table'),L=J.$.cellIndex;for(var M=0;M<K.$.rows.length;M++){var N=K.$.rows[M];if(N.cells.length<L+1)continue;J=new CKEDITOR.dom.element(N.cells[L].cloneNode(false));if(!CKEDITOR.env.ie)J.appendBogus();var O=new CKEDITOR.dom.element(N.cells[L]);if(H)J.insertBefore(O);else J.insertAfter(O);}};function C(G){if(G instanceof CKEDITOR.dom.selection){var H=v(G);for(var I=H.length;I>=0;I--)if(H[I])C(H[I]);}else if(G instanceof CKEDITOR.dom.element){var J=G.getAscendant('table'),K=G.$.cellIndex;for(I=J.$.rows.length-1;I>=0;I--){var L=new CKEDITOR.dom.element(J.$.rows[I]);if(!K&&L.$.cells.length==1){A(L);continue;}if(L.$.cells[K])L.$.removeChild(L.$.cells[K]);}}};function D(G,H){var I=G.getStartElement(),J=I.getAscendant('td',true)||I.getAscendant('th',true);if(!J)return;var K=J.clone();if(!CKEDITOR.env.ie)K.appendBogus();if(H)K.insertBefore(J);else K.insertAfter(J);};function E(G){if(G instanceof CKEDITOR.dom.selection){var H=v(G);for(var I=H.length-1;I>=0;I--)E(H[I]);}else if(G instanceof CKEDITOR.dom.element)if(G.getParent().getChildCount()==1)G.getParent().remove();else G.remove();};var F={thead:1,tbody:1,tfoot:1,td:1,tr:1,th:1};CKEDITOR.plugins.tabletools={init:function(G){var H=G.lang.table;G.addCommand('cellProperties',new CKEDITOR.dialogCommand('cellProperties'));CKEDITOR.dialog.add('cellProperties',this.path+'dialogs/tableCell.js');
G.addCommand('tableDelete',{exec:function(I){var J=I.getSelection(),K=J&&J.getStartElement(),L=K&&K.getAscendant('table',true);if(!L)return;J.selectElement(L);var M=J.getRanges()[0];M.collapse();J.selectRanges([M]);if(L.getParent().getChildCount()==1)L.getParent().remove();else L.remove();}});G.addCommand('rowDelete',{exec:function(I){var J=I.getSelection();A(J);}});G.addCommand('rowInsertBefore',{exec:function(I){var J=I.getSelection();z(J,true);}});G.addCommand('rowInsertAfter',{exec:function(I){var J=I.getSelection();z(J);}});G.addCommand('columnDelete',{exec:function(I){var J=I.getSelection();C(J);}});G.addCommand('columnInsertBefore',{exec:function(I){var J=I.getSelection();B(J,true);}});G.addCommand('columnInsertAfter',{exec:function(I){var J=I.getSelection();B(J);}});G.addCommand('cellDelete',{exec:function(I){var J=I.getSelection();E(J);}});G.addCommand('cellInsertBefore',{exec:function(I){var J=I.getSelection();D(J,true);}});G.addCommand('cellInsertAfter',{exec:function(I){var J=I.getSelection();D(J);}});if(G.addMenuItems)G.addMenuItems({tablecell:{label:H.cell.menu,group:'tablecell',order:1,getItems:function(){var I=v(G.getSelection());return{tablecell_insertBefore:2,tablecell_insertAfter:2,tablecell_delete:2,tablecell_properties:I.length>0?2:0};}},tablecell_insertBefore:{label:H.cell.insertBefore,group:'tablecell',command:'cellInsertBefore',order:5},tablecell_insertAfter:{label:H.cell.insertAfter,group:'tablecell',command:'cellInsertAfter',order:10},tablecell_delete:{label:H.cell.deleteCell,group:'tablecell',command:'cellDelete',order:15},tablecell_properties:{label:H.cell.title,group:'tablecellproperties',command:'cellProperties',order:20},tablerow:{label:H.row.menu,group:'tablerow',order:1,getItems:function(){return{tablerow_insertBefore:2,tablerow_insertAfter:2,tablerow_delete:2};}},tablerow_insertBefore:{label:H.row.insertBefore,group:'tablerow',command:'rowInsertBefore',order:5},tablerow_insertAfter:{label:H.row.insertAfter,group:'tablerow',command:'rowInsertAfter',order:10},tablerow_delete:{label:H.row.deleteRow,group:'tablerow',command:'rowDelete',order:15},tablecolumn:{label:H.column.menu,group:'tablecolumn',order:1,getItems:function(){return{tablecolumn_insertBefore:2,tablecolumn_insertAfter:2,tablecolumn_delete:2};}},tablecolumn_insertBefore:{label:H.column.insertBefore,group:'tablecolumn',command:'columnInsertBefore',order:5},tablecolumn_insertAfter:{label:H.column.insertAfter,group:'tablecolumn',command:'columnInsertAfter',order:10},tablecolumn_delete:{label:H.column.deleteColumn,group:'tablecolumn',command:'columnDelete',order:15}});
if(G.contextMenu)G.contextMenu.addListener(function(I,J){if(!I)return null;while(I){if(I.getName() in F)return{tablecell:2,tablerow:2,tablecolumn:2};I=I.getParent();}return null;});},getSelectedCells:v};CKEDITOR.plugins.add('tabletools',CKEDITOR.plugins.tabletools);})();CKEDITOR.plugins.add('specialchar',{init:function(t){var u='specialchar';CKEDITOR.dialog.add(u,this.path+'dialogs/specialchar.js');t.addCommand(u,new CKEDITOR.dialogCommand(u));t.ui.addButton('SpecialChar',{label:t.lang.specialChar.toolbar,command:u});}});(function(){var t={exec:function(v){v.container.focusNext(true);}},u={exec:function(v){v.container.focusPrevious(true);}};CKEDITOR.plugins.add('tab',{requires:['keystrokes'],init:function(v){var w=v.keystrokeHandler.keystrokes;w[9]='tab';w[2000+9]='shiftTab';var x=v.config.tabSpaces,y='';while(x--)y+='\xa0';v.addCommand('tab',{exec:function(z){if(!z.fire('tab'))if(y.length>0)z.insertHtml(y);else return z.execCommand('blur');return true;}});v.addCommand('shiftTab',{exec:function(z){if(!z.fire('shiftTab'))return z.execCommand('blurBack');return true;}});v.addCommand('blur',t);v.addCommand('blurBack',u);}});})();CKEDITOR.dom.element.prototype.focusNext=function(t){var C=this;var u=C.$,v=C.getTabIndex(),w,x,y,z,A,B;if(v<=0){A=C.getNextSourceNode(t,1);while(A){if(A.isVisible()&&A.getTabIndex()===0){y=A;break;}A=A.getNextSourceNode(false,1);}}else{A=C.getDocument().getBody().getFirst();while(A=A.getNextSourceNode(false,1)){if(!w)if(!x&&A.equals(C)){x=true;if(t){if(!(A=A.getNextSourceNode(true,1)))break;w=1;}}else if(x&&!C.contains(A))w=1;if(!A.isVisible()||(B=A.getTabIndex())<(0))continue;if(w&&B==v){y=A;break;}if(B>v&&(!y||!z||B<z)){y=A;z=B;}else if(!y&&B===0){y=A;z=B;}}}if(y)y.focus();};CKEDITOR.dom.element.prototype.focusPrevious=function(t){var C=this;var u=C.$,v=C.getTabIndex(),w,x,y,z=0,A,B=C.getDocument().getBody().getLast();while(B=B.getPreviousSourceNode(false,1)){if(!w)if(!x&&B.equals(C)){x=true;if(t){if(!(B=B.getPreviousSourceNode(true,1)))break;w=1;}}else if(x&&!C.contains(B))w=1;if(!B.isVisible()||(A=B.getTabIndex())<(0))continue;if(v<=0){if(w&&A===0){y=B;break;}if(A>z){y=B;z=A;}}else{if(w&&A==v){y=B;break;}if(A<v&&(!y||A>z)){y=B;z=A;}}}if(y)y.focus();};CKEDITOR.config.tabSpaces=0;(function(){CKEDITOR.plugins.add('templates',{requires:['dialog'],init:function(v){CKEDITOR.dialog.add('templates',CKEDITOR.getUrl(this.path+'dialogs/templates.js'));v.addCommand('templates',new CKEDITOR.dialogCommand('templates'));v.ui.addButton('Templates',{label:v.lang.templates.button,command:'templates'});
}});var t={},u={};CKEDITOR.addTemplates=function(v,w){t[v]=w;};CKEDITOR.getTemplates=function(v){return t[v];};CKEDITOR.loadTemplates=function(v,w){var x=[];for(var y=0;y<v.length;y++)if(!u[v[y]]){x.push(v[y]);u[v[y]]=1;}if(x.length>0)CKEDITOR.scriptLoader.load(x,w);else setTimeout(w,0);};})();CKEDITOR.config.templates='default';CKEDITOR.config.templates_files=[CKEDITOR.getUrl('plugins/templates/templates/default.js')];CKEDITOR.config.templates_replaceContent=true;(function(){var t=function(){this.toolbars=[];this.focusCommandExecuted=false;};t.prototype.focus=function(){for(var v=0,w;w=this.toolbars[v++];)for(var x=0,y;y=w.items[x++];)if(y.focus){y.focus();return;}};var u={toolbarFocus:{modes:{wysiwyg:1,source:1},exec:function(v){if(v.toolbox){v.toolbox.focusCommandExecuted=true;if(CKEDITOR.env.ie)setTimeout(function(){v.toolbox.focus();},100);else v.toolbox.focus();}}}};CKEDITOR.plugins.add('toolbar',{init:function(v){var w=function(x,y){switch(y){case 39:case 9:while((x=x.next||x.toolbar.next&&x.toolbar.next.items[0])&&(!x.focus)){}if(x)x.focus();else v.toolbox.focus();return false;case 37:case 2000+9:while((x=x.previous||x.toolbar.previous&&x.toolbar.previous.items[x.toolbar.previous.items.length-1])&&(!x.focus)){}if(x)x.focus();else{var z=v.toolbox.toolbars[v.toolbox.toolbars.length-1].items;z[z.length-1].focus();}return false;case 27:v.focus();return false;case 13:case 32:x.execute();return false;}return true;};v.on('themeSpace',function(x){if(x.data.space==v.config.toolbarLocation){v.toolbox=new t();var y=['<div class="cke_toolbox"'],z=v.config.toolbarStartupExpanded,A;y.push(z?'>':' style="display:none">');var B=v.toolbox.toolbars,C=v.config.toolbar instanceof Array?v.config.toolbar:v.config['toolbar_'+v.config.toolbar];for(var D=0;D<C.length;D++){var E=C[D];if(!E)continue;var F='cke_'+CKEDITOR.tools.getNextNumber(),G={id:F,items:[]};if(A){y.push('</div>');A=0;}if(E==='/'){y.push('<div class="cke_break"></div>');continue;}y.push('<span id="',F,'" class="cke_toolbar"><span class="cke_toolbar_start"></span>');var H=B.push(G)-1;if(H>0){G.previous=B[H-1];G.previous.next=G;}for(var I=0;I<E.length;I++){var J,K=E[I];if(K=='-')J=CKEDITOR.ui.separator;else J=v.ui.create(K);if(J){if(J.canGroup){if(!A){y.push('<span class="cke_toolgroup">');A=1;}}else if(A){y.push('</span>');A=0;}var L=J.render(v,y);H=G.items.push(L)-1;if(H>0){L.previous=G.items[H-1];L.previous.next=L;}L.toolbar=G;L.onkey=w;L.onfocus=function(){if(!v.toolbox.focusCommandExecuted)v.focus();};}}if(A){y.push('</span>');
A=0;}y.push('<span class="cke_toolbar_end"></span></span>');}y.push('</div>');if(v.config.toolbarCanCollapse){var M=CKEDITOR.tools.addFunction(function(){v.execCommand('toolbarCollapse');}),N='cke_'+CKEDITOR.tools.getNextNumber();v.addCommand('toolbarCollapse',{exec:function(O){var P=CKEDITOR.document.getById(N),Q=P.getPrevious(),R=O.getThemeSpace('contents'),S=Q.getParent(),T=parseInt(R.$.style.height,10),U=S.$.offsetHeight;if(Q.isVisible()){Q.hide();P.addClass('cke_toolbox_collapser_min');}else{Q.show();P.removeClass('cke_toolbox_collapser_min');}var V=S.$.offsetHeight-U;R.setStyle('height',T-V+'px');},modes:{wysiwyg:1,source:1}});y.push('<a id="'+N+'" class="cke_toolbox_collapser');if(!z)y.push(' cke_toolbox_collapser_min');y.push('" onclick="CKEDITOR.tools.callFunction('+M+')"></a>');}x.data.html+=y.join('');}});v.addCommand('toolbarFocus',u.toolbarFocus);}});})();CKEDITOR.ui.separator={render:function(t,u){u.push('<span class="cke_separator"></span>');return{};}};CKEDITOR.config.toolbarLocation='top';CKEDITOR.config.toolbar_Basic=[['Bold','Italic','-','NumberedList','BulletedList','-','Link','Unlink','-','About']];CKEDITOR.config.toolbar_Full=[['Source','-','Save','NewPage','Preview','-','Templates'],['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker','Scayt'],['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],'/',['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['Link','Unlink','Anchor'],['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],'/',['Styles','Format','Font','FontSize'],['TextColor','BGColor'],['Maximize','ShowBlocks','-','About']];CKEDITOR.config.toolbar='Full';CKEDITOR.config.toolbarCanCollapse=true;CKEDITOR.config.toolbarStartupExpanded=true;(function(){CKEDITOR.plugins.add('undo',{requires:['selection','wysiwygarea'],init:function(v){var w=new u(v),x=v.addCommand('undo',{exec:function(){if(w.undo()){v.selectionChange();this.fire('afterUndo');}},state:0,canUndo:false}),y=v.addCommand('redo',{exec:function(){if(w.redo()){v.selectionChange();this.fire('afterRedo');}},state:0,canUndo:false});w.onChange=function(){x.setState(w.undoable()?2:0);y.setState(w.redoable()?2:0);};function z(A){if(w.enabled&&A.data.command.canUndo!==false)w.save();
};v.on('beforeCommandExec',z);v.on('afterCommandExec',z);v.on('saveSnapshot',function(){w.save();});v.on('contentDom',function(){v.document.on('keydown',function(A){if(!A.data.$.ctrlKey&&!A.data.$.metaKey)w.type(A);});});v.on('beforeModeUnload',function(){v.mode=='wysiwyg'&&w.save(true);});v.on('mode',function(){w.enabled=v.mode=='wysiwyg';w.onChange();});v.ui.addButton('Undo',{label:v.lang.undo,command:'undo'});v.ui.addButton('Redo',{label:v.lang.redo,command:'redo'});v.resetUndo=function(){w.reset();v.fire('saveSnapshot');};}});function t(v){var x=this;var w=v.getSelection();x.contents=v.getSnapshot();x.bookmarks=w&&w.createBookmarks2(true);if(CKEDITOR.env.ie)x.contents=x.contents.replace(/\s+_cke_expando=".*?"/g,'');};t.prototype={equals:function(v,w){if(this.contents!=v.contents)return false;if(w)return true;var x=this.bookmarks,y=v.bookmarks;if(x||y){if(!x||!y||x.length!=y.length)return false;for(var z=0;z<x.length;z++){var A=x[z],B=y[z];if(A.startOffset!=B.startOffset||A.endOffset!=B.endOffset||!CKEDITOR.tools.arrayCompare(A.start,B.start)||!CKEDITOR.tools.arrayCompare(A.end,B.end))return false;}}return true;}};function u(v){this.editor=v;this.reset();};u.prototype={type:function(v){var w=v&&v.data.getKeystroke(),x={8:1,46:1},y=w in x,z=this.lastKeystroke in x,A=y&&w==this.lastKeystroke,B={37:1,38:1,39:1,40:1},C=w in B,D=this.lastKeystroke in B,E=!y&&!C,F=y&&!A,G=!this.typing||E&&(z||D);if(G||F){var H=new t(this.editor);CKEDITOR.tools.setTimeout(function(){var J=this;var I=J.editor.getSnapshot();if(CKEDITOR.env.ie)I=I.replace(/\s+_cke_expando=".*?"/g,'');if(H.contents!=I){if(!J.save(false,H,false))J.snapshots.splice(J.index+1,J.snapshots.length-J.index-1);J.hasUndo=true;J.hasRedo=false;J.typesCount=1;J.modifiersCount=1;J.onChange();}},0,this);}this.lastKeystroke=w;if(y){this.typesCount=0;this.modifiersCount++;if(this.modifiersCount>25){this.save();this.modifiersCount=1;}}else if(!C){this.modifiersCount=0;this.typesCount++;if(this.typesCount>25){this.save();this.typesCount=1;}}this.typing=true;},reset:function(){var v=this;v.lastKeystroke=0;v.snapshots=[];v.index=-1;v.limit=v.editor.config.undoStackSize;v.currentImage=null;v.hasUndo=false;v.hasRedo=false;v.resetType();},resetType:function(){var v=this;v.typing=false;delete v.lastKeystroke;v.typesCount=0;v.modifiersCount=0;},fireChange:function(){var v=this;v.hasUndo=!!v.getNextImage(true);v.hasRedo=!!v.getNextImage(false);v.resetType();v.onChange();},save:function(v,w,x){var z=this;var y=z.snapshots;if(!w)w=new t(z.editor);
if(z.currentImage&&w.equals(z.currentImage,v))return false;y.splice(z.index+1,y.length-z.index-1);if(y.length==z.limit)y.shift();z.index=y.push(w)-1;z.currentImage=w;if(x!==false)z.fireChange();return true;},restoreImage:function(v){var x=this;x.editor.loadSnapshot(v.contents);if(v.bookmarks)x.editor.getSelection().selectBookmarks(v.bookmarks);else if(CKEDITOR.env.ie){var w=x.editor.document.getBody().$.createTextRange();w.collapse(true);w.select();}x.index=v.index;x.currentImage=v;x.fireChange();},getNextImage:function(v){var A=this;var w=A.snapshots,x=A.currentImage,y,z;if(x)if(v)for(z=A.index-1;z>=0;z--){y=w[z];if(!x.equals(y,true)){y.index=z;return y;}}else for(z=A.index+1;z<w.length;z++){y=w[z];if(!x.equals(y,true)){y.index=z;return y;}}return null;},redoable:function(){return this.enabled&&this.hasRedo;},undoable:function(){return this.enabled&&this.hasUndo;},undo:function(){var w=this;if(w.undoable()){w.save(true);var v=w.getNextImage(true);if(v)return w.restoreImage(v),true;}return false;},redo:function(){var w=this;if(w.redoable()){w.save(true);if(w.redoable()){var v=w.getNextImage(false);if(v)return w.restoreImage(v),true;}}return false;}};})();CKEDITOR.config.undoStackSize=20;(function(){var t={table:1,pre:1},u=/\s*<(p|div|address|h\d|center)[^>]*>\s*(?:<br[^>]*>|&nbsp;|&#160;)\s*(:?<\/\1>)?\s*$/gi;function v(z){var E=this;if(E.mode=='wysiwyg'){E.focus();var A=E.getSelection(),B=z.data;if(E.dataProcessor)B=E.dataProcessor.toHtml(B);if(CKEDITOR.env.ie){var C=A.isLocked;if(C)A.unlock();var D=A.getNative();if(D.type=='Control')D.clear();D.createRange().pasteHTML(B);if(C)E.getSelection().lock();}else E.document.$.execCommand('inserthtml',false,B);}};function w(z){if(this.mode=='wysiwyg'){this.focus();this.fire('saveSnapshot');var A=z.data,B=A.getName(),C=CKEDITOR.dtd.$block[B],D=this.getSelection(),E=D.getRanges(),F=D.isLocked;if(F)D.unlock();var G,H,I,J;for(var K=E.length-1;K>=0;K--){G=E[K];G.deleteContents();H=!K&&A||A.clone(true);var L,M;if(C)while((L=G.getCommonAncestor(false,true))&&((M=CKEDITOR.dtd[L.getName()])&&(!(M&&M[B]))))if(G.checkStartOfBlock()&&G.checkEndOfBlock()){G.setStartBefore(L);G.collapse(true);L.remove();}else G.splitBlock();G.insertNode(H);if(!I)I=H;}G.moveToPosition(I,4);var N=I.getNextSourceNode(true);if(N&&N.type==1)G.moveToElementEditStart(N);D.selectRanges([G]);if(F)this.getSelection().lock();CKEDITOR.tools.setTimeout(function(){this.fire('saveSnapshot');},0,this);}};function x(z){if(!z.checkDirty())setTimeout(function(){z.resetDirty();
});};function y(z){var A=z.editor,B=z.data.path,C=B.blockLimit,D=z.data.selection,E=D.getRanges()[0],F=A.document.getBody(),G=A.config.enterMode;if(G!=2&&E.collapsed&&C.getName()=='body'&&!B.block){x(A);var H=D.createBookmarks(),I=E.fixBlock(true,A.config.enterMode==3?'div':'p');if(CKEDITOR.env.ie){var J=I.getElementsByTag('br'),K;for(var L=0;L<J.count();L++)if((K=J.getItem(L))&&(K.hasAttribute('_cke_bogus')))K.remove();}D.selectBookmarks(H);var M=I.getChildren(),N=M.count(),O,P=CKEDITOR.dom.walker.whitespaces(true),Q=I.getPrevious(P),R=I.getNext(P),S;if(Q&&Q.getName&&!(Q.getName() in t))S=Q;else if(R&&R.getName&&!(R.getName() in t))S=R;if((!N||(O=M.getItem(0))&&(O.is&&O.is('br')))&&(S&&E.moveToElementEditStart(S))){I.remove();E.select();}}var T=F.getLast(CKEDITOR.dom.walker.whitespaces(true));if(T&&T.getName&&T.getName() in t){x(A);var U=A.document.createElement(CKEDITOR.env.ie&&G!=2?'<br _cke_bogus="true" />':'br');F.append(U);}};CKEDITOR.plugins.add('wysiwygarea',{requires:['editingblock'],init:function(z){var A=z.config.enterMode!=2?z.config.enterMode==3?'div':'p':false;z.on('editingBlockReady',function(){var B,C,D,E,F,G,H,I=CKEDITOR.env.isCustomDomain(),J=function(){if(D)D.remove();if(C)C.remove();G=0;var M='void( '+(CKEDITOR.env.gecko?'setTimeout':'')+'( function(){'+'document.open();'+(CKEDITOR.env.ie&&I?'document.domain="'+document.domain+'";':'')+'document.write( window.parent[ "_cke_htmlToLoad_'+z.name+'" ] );'+'document.close();'+'window.parent[ "_cke_htmlToLoad_'+z.name+'" ] = null;'+'}'+(CKEDITOR.env.gecko?', 0 )':')()')+' )';if(CKEDITOR.env.opera)M='void(0);';D=CKEDITOR.dom.element.createFromHtml('<iframe style="width:100%;height:100%" frameBorder="0" tabIndex="-1" allowTransparency="true" src="javascript:'+encodeURIComponent(M)+'"'+'></iframe>');var N=z.lang.editorTitle.replace('%1',z.name);if(CKEDITOR.env.gecko){D.on('load',function(O){O.removeListener();L(D.$.contentWindow);});B.setAttributes({role:'region',title:N});D.setAttributes({role:'region',title:' '});}else if(CKEDITOR.env.webkit){D.setAttribute('title',N);D.setAttribute('name',N);}else if(CKEDITOR.env.ie){C=CKEDITOR.dom.element.createFromHtml('<fieldset style="height:100%'+(CKEDITOR.env.ie&&CKEDITOR.env.quirks?';position:relative':'')+'">'+'<legend style="display:block;width:0;height:0;overflow:hidden;'+(CKEDITOR.env.ie&&CKEDITOR.env.quirks?'position:absolute':'')+'">'+CKEDITOR.tools.htmlEncode(N)+'</legend>'+'</fieldset>',CKEDITOR.document);D.appendTo(C);C.appendTo(B);}if(!CKEDITOR.env.ie)B.append(D);
},K='<script id="cke_actscrpt" type="text/javascript">window.onload = function(){window.parent.CKEDITOR._["contentDomReady'+z.name+'"]( window );'+'}'+'</script>',L=function(M){if(G)return;G=1;var N=M.document,O=N.body,P=N.getElementById('cke_actscrpt');P.parentNode.removeChild(P);delete CKEDITOR._['contentDomReady'+z.name];O.spellcheck=!z.config.disableNativeSpellChecker;if(CKEDITOR.env.ie){O.hideFocus=true;O.disabled=true;O.contentEditable=true;O.removeAttribute('disabled');}else N.designMode='on';try{N.execCommand('enableObjectResizing',false,!z.config.disableObjectResizing);}catch(S){}try{N.execCommand('enableInlineTableEditing',false,!z.config.disableNativeTableHandles);}catch(T){}M=z.window=new CKEDITOR.dom.window(M);N=z.document=new CKEDITOR.dom.document(N);if(!(CKEDITOR.env.ie||CKEDITOR.env.opera))N.on('mousedown',function(U){var V=U.data.getTarget();if(V.is('img','hr','input','textarea','select'))z.getSelection().selectElement(V);});if(CKEDITOR.env.webkit){N.on('click',function(U){if(U.data.getTarget().is('input','select'))U.data.preventDefault();});N.on('mouseup',function(U){if(U.data.getTarget().is('input','textarea'))U.data.preventDefault();});}var Q=CKEDITOR.env.ie||CKEDITOR.env.webkit?M:N;Q.on('blur',function(){z.focusManager.blur();});Q.on('focus',function(){if(CKEDITOR.env.gecko){var U=O;while(U.firstChild)U=U.firstChild;if(!U.nextSibling&&'BR'==U.tagName&&U.hasAttribute('_moz_editor_bogus_node')){var V=N.$.createEvent('KeyEvents');V.initKeyEvent('keypress',true,true,M.$,false,false,false,false,0,32);N.$.dispatchEvent(V);var W=N.getBody().getFirst();if(z.config.enterMode==2)N.createElement('br',{attributes:{_moz_dirty:''}}).replace(W);else W.remove();}}z.focusManager.focus();});var R=z.keystrokeHandler;if(R)R.attach(N);if(CKEDITOR.env.ie)z.on('key',function(U){var V=U.data.keyCode==8&&z.getSelection().getSelectedElement();if(V){z.fire('saveSnapshot');V.remove();z.fire('saveSnapshot');U.cancel();}});if(z.contextMenu)z.contextMenu.addTarget(N);setTimeout(function(){z.fire('contentDom');if(H){z.mode='wysiwyg';z.fire('mode');H=false;}E=false;if(F){z.focus();F=false;}setTimeout(function(){z.fire('dataReady');},0);if(CKEDITOR.env.ie)setTimeout(function(){if(z.document){var U=z.document.$.body;U.runtimeStyle.marginBottom='0px';U.runtimeStyle.marginBottom='';}},1000);},0);};z.addMode('wysiwyg',{load:function(M,N,O){B=M;if(CKEDITOR.env.ie&&CKEDITOR.env.quirks)M.setStyle('position','relative');z.mayBeDirty=true;H=true;if(O)this.loadSnapshotData(N);else this.loadData(N);
},loadData:function(M){E=true;if(z.dataProcessor)M=z.dataProcessor.toHtml(M,A);M=z.config.docType+'<html dir="'+z.config.contentsLangDirection+'">'+'<head>'+'<link type="text/css" rel="stylesheet" href="'+[].concat(z.config.contentsCss).join('"><link type="text/css" rel="stylesheet" href="')+'">'+'<style type="text/css" _fcktemp="true">'+z._.styles.join('\n')+'</style>'+'</head>'+'<body>'+M+'</body>'+'</html>'+K;window['_cke_htmlToLoad_'+z.name]=M;CKEDITOR._['contentDomReady'+z.name]=L;J();if(CKEDITOR.env.opera){var N=D.$.contentWindow.document;N.open();N.write(M);N.close();}},getData:function(){var M=D.getFrameDocument().getBody().getHtml();if(z.dataProcessor)M=z.dataProcessor.toDataFormat(M,A);if(z.config.ignoreEmptyParagraph)M=M.replace(u,'');return M;},getSnapshotData:function(){return D.getFrameDocument().getBody().getHtml();},loadSnapshotData:function(M){D.getFrameDocument().getBody().setHtml(M);},unload:function(M){z.window=z.document=D=B=F=null;z.fire('contentDomUnload');},focus:function(){if(E)F=true;else if(z.window){z.window.focus();z.selectionChange();}}});z.on('insertHtml',v,null,null,20);z.on('insertElement',w,null,null,20);z.on('selectionChange',y,null,null,1);});}});})();CKEDITOR.config.disableObjectResizing=false;CKEDITOR.config.disableNativeTableHandles=true;CKEDITOR.config.disableNativeSpellChecker=true;CKEDITOR.config.ignoreEmptyParagraph=true;CKEDITOR.plugins.add('wsc',{init:function(t){var u='checkspell',v=t.addCommand(u,new CKEDITOR.dialogCommand(u));v.modes={wysiwyg:!CKEDITOR.env.opera&&document.domain==window.location.hostname};t.ui.addButton('SpellChecker',{label:t.lang.spellCheck.toolbar,command:u});CKEDITOR.dialog.add(u,this.path+'dialogs/wsc.js');}});CKEDITOR.config.wsc_customerId=CKEDITOR.config.wsc_customerId||'1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk';CKEDITOR.config.wsc_customLoaderScript=CKEDITOR.config.wsc_customLoaderScript||null;CKEDITOR.plugins.add('styles',{requires:['selection']});CKEDITOR.editor.prototype.attachStyleStateChange=function(t,u){var v=this._.styleStateChangeCallbacks;if(!v){v=this._.styleStateChangeCallbacks=[];this.on('selectionChange',function(w){for(var x=0;x<v.length;x++){var y=v[x],z=y.style.checkActive(w.data.path)?1:2;if(y.state!==z){y.fn.call(this,z);y.state!==z;}}});}v.push({style:t,fn:u});};CKEDITOR.STYLE_BLOCK=1;CKEDITOR.STYLE_INLINE=2;CKEDITOR.STYLE_OBJECT=3;(function(){var t={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1},u={a:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,ul:1},v=/\s*(?:;\s*|$)/;
CKEDITOR.style=function(T,U){if(U){T=CKEDITOR.tools.clone(T);O(T.attributes,U);O(T.styles,U);}var V=this.element=(T.element||'*').toLowerCase();this.type=V=='#'||t[V]?1:u[V]?3:2;this._={definition:T};};CKEDITOR.style.prototype={apply:function(T){S.call(this,T,false);},remove:function(T){S.call(this,T,true);},applyToRange:function(T){var U=this;return(U.applyToRange=U.type==2?w:U.type==1?y:null).call(U,T);},removeFromRange:function(T){return(this.removeFromRange=this.type==2?x:null).call(this,T);},applyToObject:function(T){M(T,this);},checkActive:function(T){switch(this.type){case 1:return this.checkElementRemovable(T.block||T.blockLimit,true);case 2:var U=T.elements;for(var V=0,W;V<U.length;V++){W=U[V];if(W==T.block||W==T.blockLimit)continue;if(this.checkElementRemovable(W,true))return true;}}return false;},checkElementRemovable:function(T,U){if(!T)return false;var V=this._.definition,W;if(T.getName()==this.element){if(!U&&!T.hasAttributes())return true;W=P(V);if(W._length){for(var X in W){if(X=='_length')continue;var Y=T.getAttribute(X);if(W[X]==(X=='style'?R(Y,false):Y)){if(!U)return true;}else if(U)return false;}if(U)return true;}else return true;}var Z=Q(this)[T.getName()];if(Z){if(!(W=Z.attributes))return true;for(var aa=0;aa<W.length;aa++){X=W[aa][0];var ab=T.getAttribute(X);if(ab){var ac=W[aa][1];if(ac===null||typeof ac=='string'&&ab==ac||ac.test(ab))return true;}}}return false;}};CKEDITOR.style.getStyleText=function(T){var U=T._ST;if(U)return U;U=T.styles;var V=T.attributes&&T.attributes.style||'';if(V.length)V=V.replace(v,';');for(var W in U)V+=(W+':'+U[W]).replace(v,';');if(V.length)V=R(V);return T._ST=V;};function w(T){var at=this;var U=T.document;if(T.collapsed){var V=L(at,U);T.insertNode(V);T.moveToPosition(V,2);return;}var W=at.element,X=at._.definition,Y,Z=CKEDITOR.dtd[W]||(Y=true,CKEDITOR.dtd.span),aa=T.createBookmark();T.enlarge(1);T.trim();var ab=T.getBoundaryNodes(),ac=ab.startNode,ad=ab.endNode.getNextSourceNode(true);if(!ad){var ae;ad=ae=U.createText('');ad.insertAfter(T.endContainer);}var af=ad.getParent();if(af&&af.getAttribute('_fck_bookmark'))ad=af;if(ad.equals(ac)){ad=ad.getNextSourceNode(true);if(!ad){ad=ae=U.createText('');ad.insertAfter(ac);}}var ag=ac,ah,ai;while(ag){var aj=false;if(ag.equals(ad)){ag=null;aj=true;}else{var ak=ag.type,al=ak==1?ag.getName():null;if(al&&ag.getAttribute('_fck_bookmark')){ag=ag.getNextSourceNode(true);continue;}if(!al||Z[al]&&(ag.getPosition(ad)|4|0|8)==(4+0+8)){var am=ag.getParent();if(am&&((am.getDtd()||CKEDITOR.dtd.span)[W]||Y)){if(!ah&&(!al||!CKEDITOR.dtd.$removeEmpty[al]||(ag.getPosition(ad)|4|0|8)==(4+0+8))){ah=new CKEDITOR.dom.range(U);
ah.setStartBefore(ag);}if(ak==3||ak==1&&!ag.getChildCount()){var an=ag,ao;while(!an.$.nextSibling&&(ao=an.getParent(),Z[ao.getName()])&&((ao.getPosition(ac)|2|0|8)==(2+0+8)))an=ao;ah.setEndAfter(an);if(!an.$.nextSibling)aj=true;if(!ai)ai=ak!=3||/[^\s\ufeff]/.test(ag.getText());}}else aj=true;}else aj=true;ag=ag.getNextSourceNode();}if(aj&&ai&&ah&&!ah.collapsed){var ap=L(at,U),aq=ah.getCommonAncestor();while(ap&&aq){if(aq.getName()==W){for(var ar in X.attributes)if(ap.getAttribute(ar)==aq.getAttribute(ar))ap.removeAttribute(ar);for(var as in X.styles)if(ap.getStyle(as)==aq.getStyle(as))ap.removeStyle(as);if(!ap.hasAttributes()){ap=null;break;}}aq=aq.getParent();}if(ap){ah.extractContents().appendTo(ap);G(at,ap);ah.insertNode(ap);J(ap);if(!CKEDITOR.env.ie)ap.$.normalize();}ah=null;}}ae&&ae.remove();T.moveToBookmark(aa);};function x(T){T.enlarge(1);var U=T.createBookmark(),V=U.startNode;if(T.collapsed){var W=new CKEDITOR.dom.elementPath(V.getParent()),X;for(var Y=0,Z;Y<W.elements.length&&(Z=W.elements[Y]);Y++){if(Z==W.block||Z==W.blockLimit)break;if(this.checkElementRemovable(Z)){var aa=T.checkBoundaryOfElement(Z,2),ab=!aa&&T.checkBoundaryOfElement(Z,1);if(ab||aa){X=Z;X.match=ab?'start':'end';}else{J(Z);F(this,Z);}}}if(X){var ac=V;for(Y=0;true;Y++){var ad=W.elements[Y];if(ad.equals(X))break;else if(ad.match)continue;else ad=ad.clone();ad.append(ac);ac=ad;}ac[X.match=='start'?'insertBefore':'insertAfter'](X);}}else{var ae=U.endNode,af=this;function ag(){var aj=new CKEDITOR.dom.elementPath(V.getParent()),ak=new CKEDITOR.dom.elementPath(ae.getParent()),al=null,am=null;for(var an=0;an<aj.elements.length;an++){var ao=aj.elements[an];if(ao==aj.block||ao==aj.blockLimit)break;if(af.checkElementRemovable(ao))al=ao;}for(an=0;an<ak.elements.length;an++){ao=ak.elements[an];if(ao==ak.block||ao==ak.blockLimit)break;if(af.checkElementRemovable(ao))am=ao;}if(am)ae.breakParent(am);if(al)V.breakParent(al);};ag();var ah=V.getNext();while(!ah.equals(ae)){var ai=ah.getNextSourceNode();if(ah.type==1&&this.checkElementRemovable(ah)){if(ah.getName()==this.element)F(this,ah);else H(ah,Q(this)[ah.getName()]);if(ai.type==1&&ai.contains(V)){ag();ai=V.getNext();}}ah=ai;}}T.moveToBookmark(U);};function y(T){var U=T.createBookmark(true),V=T.createIterator();V.enforceRealBlocks=true;var W,X=T.document,Y;while(W=V.getNextParagraph()){var Z=L(this,X);z(W,Z);}T.moveToBookmark(U);};function z(T,U){var V=U.is('pre'),W=T.is('pre'),X=V&&!W,Y=!V&&W;if(X)U=E(T,U);else if(Y)U=D(B(T),U);else T.moveChildren(U);
U.replace(T);if(V)A(U);};function A(T){var U;if(!((U=T.getPreviousSourceNode(true,1))&&(U.is&&U.is('pre'))))return;var V=C(U.getHtml(),/\n$/,'')+'\n\n'+C(T.getHtml(),/^\n/,'');if(CKEDITOR.env.ie)T.$.outerHTML='<pre>'+V+'</pre>';else T.setHtml(V);U.remove();};function B(T){var U=/(\S\s*)\n(?:\s|(<span[^>]+_fck_bookmark.*?\/span>))*\n(?!$)/gi,V=T.getName(),W=C(T.getOuterHtml(),U,function(Y,Z,aa){return Z+'</pre>'+aa+'<pre>';}),X=[];W.replace(/<pre>([\s\S]*?)<\/pre>/gi,function(Y,Z){X.push(Z);});return X;};function C(T,U,V){var W='',X='';T=T.replace(/(^<span[^>]+_fck_bookmark.*?\/span>)|(<span[^>]+_fck_bookmark.*?\/span>$)/gi,function(Y,Z,aa){Z&&(W=Z);aa&&(X=aa);return '';});return W+T.replace(U,V)+X;};function D(T,U){var V=new CKEDITOR.dom.documentFragment(U.getDocument());for(var W=0;W<T.length;W++){var X=T[W];X=X.replace(/(\r\n|\r)/g,'\n');X=C(X,/^[ \t]*\n/,'');X=C(X,/\n$/,'');X=C(X,/^[ \t]+|[ \t]+$/g,function(Z,aa,ab){if(Z.length==1)return '&nbsp;';else if(!aa)return CKEDITOR.tools.repeat('&nbsp;',Z.length-1)+' ';else return ' '+CKEDITOR.tools.repeat('&nbsp;',Z.length-1);});X=X.replace(/\n/g,'<br>');X=X.replace(/[ \t]{2,}/g,function(Z){return CKEDITOR.tools.repeat('&nbsp;',Z.length-1)+' ';});var Y=U.clone();Y.setHtml(X);V.append(Y);}return V;};function E(T,U){var V=T.getHtml();V=C(V,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,'');V=V.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,'$1');V=V.replace(/([ \t\n\r]+|&nbsp;)/g,' ');V=V.replace(/<br\b[^>]*>/gi,'\n');if(CKEDITOR.env.ie){var W=T.getDocument().createElement('div');W.append(U);U.$.outerHTML='<pre>'+V+'</pre>';U=W.getFirst().remove();}else U.setHtml(V);return U;};function F(T,U){var V=T._.definition,W=V.attributes,X=V.styles,Y=Q(T);function Z(){for(var ab in W){if(ab=='class'&&U.getAttribute(ab)!=W[ab])continue;U.removeAttribute(ab);}};Z();for(var aa in X)U.removeStyle(aa);W=Y[U.getName()];if(W)Z();I(U);};function G(T,U){var V=T._.definition,W=V.attributes,X=V.styles,Y=Q(T),Z=U.getElementsByTag(T.element);for(var aa=Z.count();--aa>=0;)F(T,Z.getItem(aa));for(var ab in Y)if(ab!=T.element){Z=U.getElementsByTag(ab);for(aa=Z.count()-1;aa>=0;aa--){var ac=Z.getItem(aa);H(ac,Y[ab]);}}};function H(T,U){var V=U&&U.attributes;if(V)for(var W=0;W<V.length;W++){var X=V[W][0],Y;if(Y=T.getAttribute(X)){var Z=V[W][1];if(Z===null||Z.test&&Z.test(Y)||typeof Z=='string'&&Y==Z)T.removeAttribute(X);}}I(T);};function I(T){if(!T.hasAttributes()){var U=T.getFirst(),V=T.getLast();T.remove(true);if(U){J(U);if(V&&!U.equals(V))J(V);}}};function J(T){if(!T||T.type!=1||!CKEDITOR.dtd.$removeEmpty[T.getName()])return;
K(T,T.getNext(),true);K(T,T.getPrevious());};function K(T,U,V){if(U&&U.type==1){var W=U.getAttribute('_fck_bookmark');if(W)U=V?U.getNext():U.getPrevious();if(U&&U.type==1&&T.isIdentical(U)){var X=V?T.getLast():T.getFirst();if(W)(V?U.getPrevious():U.getNext()).move(T,!V);U.moveChildren(T,!V);U.remove();if(X)J(X);}}};function L(T,U){var V,W=T._.definition,X=T.element;if(X=='*')X='span';V=new CKEDITOR.dom.element(X,U);return M(V,T);};function M(T,U){var V=U._.definition,W=V.attributes,X=CKEDITOR.style.getStyleText(V);if(W)for(var Y in W)T.setAttribute(Y,W[Y]);if(X)T.setAttribute('style',X);return T;};var N=/#\((.+?)\)/g;function O(T,U){for(var V in T)T[V]=T[V].replace(N,function(W,X){return U[X];});};function P(T){var U=T._AC;if(U)return U;U={};var V=0,W=T.attributes;if(W)for(var X in W){V++;U[X]=W[X];}var Y=CKEDITOR.style.getStyleText(T);if(Y){if(!U.style)V++;U.style=Y;}U._length=V;return T._AC=U;};function Q(T){if(T._.overrides)return T._.overrides;var U=T._.overrides={},V=T._.definition.overrides;if(V){if(!CKEDITOR.tools.isArray(V))V=[V];for(var W=0;W<V.length;W++){var X=V[W],Y,Z,aa;if(typeof X=='string')Y=X.toLowerCase();else{Y=X.element?X.element.toLowerCase():T.element;aa=X.attributes;}Z=U[Y]||(U[Y]={});if(aa){var ab=Z.attributes=Z.attributes||[];for(var ac in aa)ab.push([ac.toLowerCase(),aa[ac]]);}}}return U;};function R(T,U){var V;if(U!==false){var W=new CKEDITOR.dom.element('span');W.setAttribute('style',T);V=W.getAttribute('style');}else V=T;return V.replace(/\s*([;:])\s*/,'$1').replace(/([^\s;])$/,'$1;').replace(/,\s+/g,',').toLowerCase();};function S(T,U){var V=T.getSelection(),W=V.getRanges(),X=U?this.removeFromRange:this.applyToRange;for(var Y=0;Y<W.length;Y++)X.call(this,W[Y]);V.selectRanges(W);};})();CKEDITOR.styleCommand=function(t){this.style=t;};CKEDITOR.styleCommand.prototype.exec=function(t){var v=this;t.focus();var u=t.document;if(u)if(v.state==2)v.style.apply(u);else if(v.state==1)v.style.remove(u);return!!u;};CKEDITOR.plugins.add('domiterator');(function(){var t=function(v){var w=this;if(arguments.length<1)return;w.range=v;w.forceBrBreak=false;w.enlargeBr=true;w.enforceRealBlocks=false;w._||(w._={});},u=/^[\r\n\t ]+$/;t.prototype={getNextParagraph:function(v){var W=this;var w,x,y,z,A;if(!W._.lastNode){x=W.range.clone();x.enlarge(W.forceBrBreak||!W.enlargeBr?3:2);var B=new CKEDITOR.dom.walker(x),C=CKEDITOR.dom.walker.bookmark(true,true);B.evaluator=C;W._.nextNode=B.next();B=new CKEDITOR.dom.walker(x);B.evaluator=C;var D=B.previous();W._.lastNode=D.getNextSourceNode(true);
if(W._.lastNode&&W._.lastNode.type==3&&!CKEDITOR.tools.trim(W._.lastNode.getText())&&W._.lastNode.getParent().isBlockBoundary()){var E=new CKEDITOR.dom.range(x.document);E.moveToPosition(W._.lastNode,4);if(E.checkEndOfBlock()){var F=new CKEDITOR.dom.elementPath(E.endContainer),G=F.block||F.blockLimit;W._.lastNode=G.getNextSourceNode(true);}}if(!W._.lastNode){W._.lastNode=W._.docEndMarker=x.document.createText('');W._.lastNode.insertAfter(D);}x=null;}var H=W._.nextNode;D=W._.lastNode;W._.nextNode=null;while(H){var I=false,J=H.type!=1,K=false;if(!J){var L=H.getName();if(H.isBlockBoundary(W.forceBrBreak&&{br:1})){if(L=='br')J=true;else if(!x&&!H.getChildCount()&&L!='hr'){w=H;y=H.equals(D);break;}if(x){x.setEndAt(H,3);if(L!='br')W._.nextNode=H;}I=true;}else{if(H.getFirst()){if(!x){x=new CKEDITOR.dom.range(W.range.document);x.setStartAt(H,3);}H=H.getFirst();continue;}J=true;}}else if(H.type==3)if(u.test(H.getText()))J=false;if(J&&!x){x=new CKEDITOR.dom.range(W.range.document);x.setStartAt(H,3);}y=(!I||J)&&(H.equals(D));if(x&&!I)while(!H.getNext()&&!y){var M=H.getParent();if(M.isBlockBoundary(W.forceBrBreak&&{br:1})){I=true;y=y||M.equals(D);break;}H=M;J=true;y=H.equals(D);K=true;}if(J)x.setEndAt(H,4);H=H.getNextSourceNode(K,null,D);y=!H;if((I||y)&&(x)){var N=x.getBoundaryNodes(),O=new CKEDITOR.dom.elementPath(x.startContainer),P=new CKEDITOR.dom.elementPath(x.endContainer);if(N.startNode.equals(N.endNode)&&N.startNode.getParent().equals(O.blockLimit)&&N.startNode.type==1&&N.startNode.getAttribute('_fck_bookmark')){x=null;W._.nextNode=null;}else break;}if(y)break;}if(!w){if(!x){W._.docEndMarker&&W._.docEndMarker.remove();W._.nextNode=null;return null;}O=new CKEDITOR.dom.elementPath(x.startContainer);var Q=O.blockLimit,R={div:1,th:1,td:1};w=O.block;if(!w&&!W.enforceRealBlocks&&R[Q.getName()]&&x.checkStartOfBlock()&&x.checkEndOfBlock())w=Q;else if(!w||W.enforceRealBlocks&&w.getName()=='li'){w=W.range.document.createElement(v||'p');x.extractContents().appendTo(w);w.trim();x.insertNode(w);z=A=true;}else if(w.getName()!='li'){if(!x.checkStartOfBlock()||!x.checkEndOfBlock()){w=w.clone(false);x.extractContents().appendTo(w);w.trim();var S=x.splitBlock();z=!S.wasStartOfBlock;A=!S.wasEndOfBlock;x.insertNode(w);}}else if(!y)W._.nextNode=w.equals(D)?null:x.getBoundaryNodes().endNode.getNextSourceNode(true,null,D);}if(z){var T=w.getPrevious();if(T&&T.type==1)if(T.getName()=='br')T.remove();else if(T.getLast()&&T.getLast().$.nodeName.toLowerCase()=='br')T.getLast().remove();}if(A){var U=CKEDITOR.dom.walker.bookmark(false,true),V=w.getLast();
if(V&&V.type==1&&V.getName()=='br')if(CKEDITOR.env.ie||V.getPrevious(U)||V.getNext(U))V.remove();}if(!W._.nextNode)W._.nextNode=y||w.equals(D)?null:w.getNextSourceNode(true,null,D);return w;}};CKEDITOR.dom.range.prototype.createIterator=function(){return new t(this);};})();CKEDITOR.plugins.add('panelbutton',{requires:['button'],beforeInit:function(t){t.ui.addHandler(4,CKEDITOR.ui.panelButton.handler);}});CKEDITOR.UI_PANELBUTTON=4;(function(){var t=function(u){var w=this;var v=w._;if(v.state==0)return;w.createPanel(u);if(v.on){v.panel.hide();return;}v.panel.showBlock(w._.id,w.document.getById(w._.id),4);};CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(u){var w=this;var v=u.panel;delete u.panel;w.base(u);w.document=v&&v.parent&&v.parent.getDocument()||CKEDITOR.document;w.hasArrow=true;w.click=t;w._={panelDefinition:v};},statics:{handler:{create:function(u){return new CKEDITOR.ui.panelButton(u);}}},proto:{createPanel:function(u){var v=this._;if(v.panel)return;var w=this._.panelDefinition||{},x=w.parent||CKEDITOR.document.getBody(),y=this._.panel=new CKEDITOR.ui.floatPanel(u,x,w),z=this;y.onShow=function(){if(z.className)this.element.getFirst().addClass(z.className+'_panel');v.oldState=z._.state;z.setState(1);v.on=1;if(z.onOpen)z.onOpen();};y.onHide=function(){if(z.className)this.element.getFirst().removeClass(z.className+'_panel');z.setState(v.oldState);v.on=0;if(z.onClose)z.onClose();};y.onEscape=function(){y.hide();z.document.getById(v.id).focus();};if(this.onBlock)this.onBlock(y,v.id);y.getBlock(v.id).onHide=function(){v.on=0;z.setState(2);};}}});})();CKEDITOR.plugins.add('floatpanel',{requires:['panel']});(function(){var t={},u=false;function v(w,x,y,z,A){var B=x.getUniqueId()+'-'+y.getUniqueId()+'-'+w.skinName+'-'+w.lang.dir+(w.uiColor&&'-'+w.uiColor||'')+(z.css&&'-'+z.css||'')+(A&&'-'+A||''),C=t[B];if(!C){C=t[B]=new CKEDITOR.ui.panel(x,z);C.element=y.append(CKEDITOR.dom.element.createFromHtml(C.renderHtml(w),x));C.element.setStyles({display:'none',position:'absolute'});}return C;};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(w,x,y,z){y.forceIFrame=true;var A=x.getDocument(),B=v(w,A,x,y,z||0),C=B.element,D=C.getFirst().getFirst();this.element=C;w.panels?w.panels.push(C):w.panels=[C];this._={panel:B,parentElement:x,definition:y,document:A,iframe:D,children:[],dir:w.lang.dir};},proto:{addBlock:function(w,x){return this._.panel.addBlock(w,x);},addListBlock:function(w,x){return this._.panel.addListBlock(w,x);
},getBlock:function(w){return this._.panel.getBlock(w);},showBlock:function(w,x,y,z,A){var B=this._.panel,C=B.showBlock(w);this.allowBlur(false);u=true;var D=this.element,E=this._.iframe,F=this._.definition,G=x.getDocumentPosition(D.getDocument()),H=this._.dir=='rtl',I=G.x+(z||0),J=G.y+(A||0);if(H&&(y==1||y==4))I+=x.$.offsetWidth;else if(!H&&(y==2||y==3))I+=x.$.offsetWidth-1;if(y==3||y==4)J+=x.$.offsetHeight-1;this._.panel._.offsetParentId=x.getId();D.setStyles({top:J+'px',left:'-3000px',visibility:'hidden',opacity:'0',display:''});if(!this._.blurSet){var K=CKEDITOR.env.ie?E:new CKEDITOR.dom.window(E.$.contentWindow);CKEDITOR.event.useCapture=true;K.on('blur',function(L){var O=this;if(CKEDITOR.env.ie&&!O.allowBlur())return;var M=L.data.getTarget(),N=M.getWindow&&M.getWindow();if(N&&N.equals(K))return;if(O.visible&&!O._.activeChild&&!u)O.hide();},this);K.on('focus',function(){this._.focused=true;this.hideChild();this.allowBlur(true);},this);CKEDITOR.event.useCapture=false;this._.blurSet=1;}B.onEscape=CKEDITOR.tools.bind(function(){this.onEscape&&this.onEscape();},this);CKEDITOR.tools.setTimeout(function(){if(H)I-=D.$.offsetWidth;D.setStyles({left:I+'px',visibility:'',opacity:'1'});if(C.autoSize){function L(){var M=D.getFirst(),N=C.element.$.scrollHeight;if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&N>0)N+=(M.$.offsetHeight||0)-(M.$.clientHeight||0);M.setStyle('height',N+'px');B._.currentBlock.element.setStyle('display','none').removeStyle('display');};if(B.isLoaded)L();else B.onLoad=L;}else D.getFirst().removeStyle('height');CKEDITOR.tools.setTimeout(function(){if(F.voiceLabel)if(CKEDITOR.env.gecko){var M=E.getParent();M.setAttribute('role','region');M.setAttribute('title',F.voiceLabel);E.setAttribute('role','region');E.setAttribute('title',' ');}if(CKEDITOR.env.ie&&CKEDITOR.env.quirks)E.focus();else E.$.contentWindow.focus();if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks)this.allowBlur(true);},0,this);},0,this);this.visible=1;if(this.onShow)this.onShow.call(this);u=false;},hide:function(){var w=this;if(w.visible&&(!w.onHide||w.onHide.call(w)!==true)){w.hideChild();w.element.setStyle('display','none');w.visible=0;}},allowBlur:function(w){var x=this._.panel;if(w!=undefined)x.allowBlur=w;return x.allowBlur;},showAsChild:function(w,x,y,z,A,B){if(this._.activeChild==w&&w._.panel._.offsetParentId==y.getId())return;this.hideChild();w.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){if(!this._.focused)this.hide();},0,this);},this);this._.activeChild=w;
this._.focused=false;w.showBlock(x,y,z,A,B);if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie8&&CKEDITOR.env.ie6Compat)setTimeout(function(){w.element.getChild(0).$.style.cssText+='';},100);},hideChild:function(){var w=this._.activeChild;if(w){delete w.onHide;delete this._.activeChild;w.hide();}}}});})();CKEDITOR.plugins.add('menu',{beforeInit:function(t){var u=t.config.menu_groups.split(','),v={};for(var w=0;w<u.length;w++)v[u[w]]=w+1;t._.menuGroups=v;t._.menuItems={};},requires:['floatpanel']});CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addMenuGroup:function(t,u){this._.menuGroups[t]=u||100;},addMenuItem:function(t,u){if(this._.menuGroups[u.group])this._.menuItems[t]=new CKEDITOR.menuItem(this,t,u);},addMenuItems:function(t){for(var u in t)this.addMenuItem(u,t[u]);},getMenuItem:function(t){return this._.menuItems[t];}});(function(){CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(u,v){var w=this;w.id='cke_'+CKEDITOR.tools.getNextNumber();w.editor=u;w.items=[];w._.level=v||1;},_:{showSubMenu:function(u){var A=this;var v=A._.subMenu,w=A.items[u],x=w.getItems&&w.getItems();if(!x){A._.panel.hideChild();return;}if(v)v.removeAll();else{v=A._.subMenu=new CKEDITOR.menu(A.editor,A._.level+1);v.parent=A;v.onClick=CKEDITOR.tools.bind(A.onClick,A);}for(var y in x)v.add(A.editor.getMenuItem(y));var z=A._.panel.getBlock(A.id).element.getDocument().getById(A.id+String(u));v.show(z,2);}},proto:{add:function(u){if(!u.order)u.order=this.items.length;this.items.push(u);},removeAll:function(){this.items=[];},show:function(u,v,w,x){var y=this.items,z=this.editor,A=this._.panel,B=this._.element;if(!A){A=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),{css:[CKEDITOR.getUrl(z.skinPath+'editor.css')],level:this._.level-1,className:z.skinClass+' cke_contextmenu'},this._.level);A.onEscape=CKEDITOR.tools.bind(function(){this.onEscape&&this.onEscape();this.hide();},this);A.onHide=CKEDITOR.tools.bind(function(){this.onHide&&this.onHide();},this);var C=A.addBlock(this.id);C.autoSize=true;var D=C.keys;D[40]='next';D[9]='next';D[38]='prev';D[2000+9]='prev';D[32]='click';D[39]='click';B=this._.element=C.element;B.addClass(z.skinClass);var E=B.getDocument();E.getBody().setStyle('overflow','hidden');E.getElementsByTag('html').getItem(0).setStyle('overflow','hidden');this._.itemOverFn=CKEDITOR.tools.addFunction(function(K){var L=this;clearTimeout(L._.showSubTimeout);L._.showSubTimeout=CKEDITOR.tools.setTimeout(L._.showSubMenu,z.config.menu_subMenuDelay,L,[K]);
},this);this._.itemOutFn=CKEDITOR.tools.addFunction(function(K){clearTimeout(this._.showSubTimeout);},this);this._.itemClickFn=CKEDITOR.tools.addFunction(function(K){var M=this;var L=M.items[K];if(L.state==0){M.hide();return;}if(L.getItems)M._.showSubMenu(K);else M.onClick&&M.onClick(L);},this);}t(y);var F=['<div class="cke_menu">'],G=y.length,H=G&&y[0].group;for(var I=0;I<G;I++){var J=y[I];if(H!=J.group){F.push('<div class="cke_menuseparator"></div>');H=J.group;}J.render(this,I,F);}F.push('</div>');B.setHtml(F.join(''));if(this.parent)this.parent._.panel.showAsChild(A,this.id,u,v,w,x);else A.showBlock(this.id,u,v,w,x);z.fire('menuShow',[A]);},hide:function(){this._.panel&&this._.panel.hide();}}});function t(u){u.sort(function(v,w){if(v.group<w.group)return-1;else if(v.group>w.group)return 1;return v.order<w.order?-1:v.order>w.order?1:0;});};})();CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(t,u,v){var w=this;CKEDITOR.tools.extend(w,v,{order:0,className:'cke_button_'+u});w.group=t._.menuGroups[w.group];w.editor=t;w.name=u;},proto:{render:function(t,u,v){var B=this;var w=t.id+String(u),x=typeof B.state=='undefined'?2:B.state,y=' cke_'+(x==1?'on':x==0?'disabled':'off'),z=B.label;if(x==0)z=B.editor.lang.common.unavailable.replace('%1',z);if(B.className)y+=' '+B.className;v.push('<span class="cke_menuitem"><a id="',w,'" class="',y,'" href="javascript:void(\'',(B.label||'').replace("'",''),'\')" title="',B.label,'" tabindex="-1"_cke_focus=1 hidefocus="true"');if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)v.push(' onkeypress="return false;"');if(CKEDITOR.env.gecko)v.push(' onblur="this.style.cssText = this.style.cssText;"');var A=(B.iconOffset||0)*(-16);v.push(' onmouseover="CKEDITOR.tools.callFunction(',t._.itemOverFn,',',u,');" onmouseout="CKEDITOR.tools.callFunction(',t._.itemOutFn,',',u,');" onclick="CKEDITOR.tools.callFunction(',t._.itemClickFn,',',u,'); return false;"><span class="cke_icon_wrapper"><span class="cke_icon"'+(B.icon?' style="background-image:url('+CKEDITOR.getUrl(B.icon)+');background-position:0 '+A+'px;"':'')+'></span></span>'+'<span class="cke_label">');if(B.getItems)v.push('<span class="cke_menuarrow"></span>');v.push(z,'</span></a></span>');}}});CKEDITOR.config.menu_subMenuDelay=400;CKEDITOR.config.menu_groups='clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea';(function(){function t(){var D=this;try{var A=D.getSelection();
if(!A)return;var B=A.getStartElement(),C=new CKEDITOR.dom.elementPath(B);if(!C.compare(D._.selectionPreviousPath)){D._.selectionPreviousPath=C;D.fire('selectionChange',{selection:A,path:C,element:B});}}catch(E){}};var u,v;function w(){v=true;if(u)return;x.call(this);u=CKEDITOR.tools.setTimeout(x,200,this);};function x(){u=null;if(v){CKEDITOR.tools.setTimeout(t,0,this);v=false;}};var y={exec:function(A){switch(A.mode){case 'wysiwyg':A.document.$.execCommand('SelectAll',false,null);break;case 'source':}},canUndo:false};CKEDITOR.plugins.add('selection',{init:function(A){A.on('contentDom',function(){var B=A.document;if(CKEDITOR.env.ie){var C,D;B.on('focusin',function(){if(C){try{C.select();}catch(G){}C=null;}});A.window.on('focus',function(){D=true;F();});A.document.on('beforedeactivate',function(){D=false;A.document.$.execCommand('Unselect');});B.on('mousedown',E);B.on('mouseup',function(){D=true;setTimeout(function(){F(true);},0);});B.on('keydown',E);B.on('keyup',function(){D=true;F();});B.on('selectionchange',F);function E(){D=false;};function F(G){if(D){var H=A.document,I=H&&H.$.selection;if(G&&I&&I.type=='None')if(!H.$.queryCommandEnabled('InsertImage')){CKEDITOR.tools.setTimeout(F,50,this,true);return;}C=I&&I.createRange();w.call(A);}};}else{B.on('mouseup',w,A);B.on('keyup',w,A);}});A.addCommand('selectAll',y);A.ui.addButton('SelectAll',{label:A.lang.selectAll,command:'selectAll'});A.selectionChange=w;}});CKEDITOR.editor.prototype.getSelection=function(){return this.document&&this.document.getSelection();};CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath;};CKEDITOR.dom.document.prototype.getSelection=function(){var A=new CKEDITOR.dom.selection(this);return!A||A.isInvalid?null:A;};CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=3;CKEDITOR.dom.selection=function(A){var D=this;var B=A.getCustomData('cke_locked_selection');if(B)return B;D.document=A;D.isLocked=false;D._={cache:{}};if(CKEDITOR.env.ie){var C=D.getNative().createRange();if(!C||C.item&&C.item(0).ownerDocument!=D.document.$||C.parentElement&&C.parentElement().ownerDocument!=D.document.$)D.isInvalid=true;}return D;};var z={img:1,hr:1,li:1,table:1,tr:1,td:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,th:1,thead:1,tfoot:1};CKEDITOR.dom.selection.prototype={getNative:CKEDITOR.env.ie?function(){return this._.cache.nativeSel||(this._.cache.nativeSel=this.document.$.selection);}:function(){return this._.cache.nativeSel||(this._.cache.nativeSel=this.document.getWindow().$.getSelection());
},getType:CKEDITOR.env.ie?function(){var A=this._.cache;if(A.type)return A.type;var B=1;try{var C=this.getNative(),D=C.type;if(D=='Text')B=2;if(D=='Control')B=3;if(C.createRange().parentElement)B=2;}catch(E){}return A.type=B;}:function(){var A=this._.cache;if(A.type)return A.type;var B=2,C=this.getNative();if(!C)B=1;else if(C.rangeCount==1){var D=C.getRangeAt(0),E=D.startContainer;if(E==D.endContainer&&E.nodeType==1&&D.endOffset-D.startOffset==1&&z[E.childNodes[D.startOffset].nodeName.toLowerCase()])B=3;}return A.type=B;},getRanges:CKEDITOR.env.ie?(function(){var A=function(B,C){B=B.duplicate();B.collapse(C);var D=B.parentElement(),E=D.childNodes,F;for(var G=0;G<E.length;G++){var H=E[G];if(H.nodeType==1){F=B.duplicate();F.moveToElementText(H);F.collapse();var I=F.compareEndPoints('StartToStart',B);if(I>0)break;else if(I===0)return{container:D,offset:G};F=null;}}if(!F){F=B.duplicate();F.moveToElementText(D);F.collapse(false);}F.setEndPoint('StartToStart',B);var J=F.text.replace(/(\r\n|\r)/g,'\n').length;while(J>0)J-=E[--G].nodeValue.length;if(J===0)return{container:D,offset:G};else return{container:E[G],offset:-J};};return function(){var M=this;var B=M._.cache;if(B.ranges)return B.ranges;var C=M.getNative(),D=C&&C.createRange(),E=M.getType(),F;if(!C)return[];if(E==2){F=new CKEDITOR.dom.range(M.document);var G=A(D,true);F.setStart(new CKEDITOR.dom.node(G.container),G.offset);G=A(D);F.setEnd(new CKEDITOR.dom.node(G.container),G.offset);return B.ranges=[F];}else if(E==3){var H=M._.cache.ranges=[];for(var I=0;I<D.length;I++){var J=D.item(I),K=J.parentNode,L=0;F=new CKEDITOR.dom.range(M.document);for(;L<K.childNodes.length&&K.childNodes[L]!=J;L++){}F.setStart(new CKEDITOR.dom.node(K),L);F.setEnd(new CKEDITOR.dom.node(K),L+1);H.push(F);}return H;}return B.ranges=[];};})():function(){var A=this._.cache;if(A.ranges)return A.ranges;var B=[],C=this.getNative();if(!C)return[];for(var D=0;D<C.rangeCount;D++){var E=C.getRangeAt(D),F=new CKEDITOR.dom.range(this.document);F.setStart(new CKEDITOR.dom.node(E.startContainer),E.startOffset);F.setEnd(new CKEDITOR.dom.node(E.endContainer),E.endOffset);B.push(F);}return A.ranges=B;},getStartElement:function(){var H=this;var A=H._.cache;if(A.startElement!==undefined)return A.startElement;var B,C=H.getNative();switch(H.getType()){case 3:return H.getSelectedElement();case 2:var D=H.getRanges()[0];if(D)if(!D.collapsed){D.optimize();for(;;){var E=D.startContainer,F=D.startOffset;if(F==(E.getChildCount?E.getChildCount():E.getLength()))D.setStartAfter(E);
else break;}B=D.startContainer;if(B.type!=1)return B.getParent();B=B.getChild(D.startOffset);if(!B||B.type!=1)return D.startContainer;var G=B.getFirst();while(G&&G.type==1){B=G;G=G.getFirst();}return B;}if(CKEDITOR.env.ie){D=C.createRange();D.collapse(true);B=D.parentElement();}else{B=C.anchorNode;if(B&&B.nodeType!=1)B=B.parentNode;}}return A.startElement=B?new CKEDITOR.dom.element(B):null;},getSelectedElement:function(){var A=this._.cache;if(A.selectedElement!==undefined)return A.selectedElement;var B;if(this.getType()==3){var C=this.getNative();if(CKEDITOR.env.ie)try{B=C.createRange().item(0);}catch(E){}else{var D=C.getRangeAt(0);B=D.startContainer.childNodes[D.startOffset];}}return A.selectedElement=B?new CKEDITOR.dom.element(B):null;},lock:function(){var A=this;A.getRanges();A.getStartElement();A.getSelectedElement();A._.cache.nativeSel={};A.isLocked=true;A.document.setCustomData('cke_locked_selection',A);},unlock:function(A){var F=this;var B=F.document,C=B.getCustomData('cke_locked_selection');if(C){B.setCustomData('cke_locked_selection',null);if(A){var D=C.getSelectedElement(),E=!D&&C.getRanges();F.isLocked=false;F.reset();B.getBody().focus();if(D)F.selectElement(D);else F.selectRanges(E);}}if(!C||!A){F.isLocked=false;F.reset();}},reset:function(){this._.cache={};},selectElement:function(A){var D=this;if(D.isLocked){var B=new CKEDITOR.dom.range(D.document);B.setStartBefore(A);B.setEndAfter(A);D._.cache.selectedElement=A;D._.cache.startElement=A;D._.cache.ranges=[B];D._.cache.type=3;return;}if(CKEDITOR.env.ie){D.getNative().empty();try{B=D.document.$.body.createControlRange();B.addElement(A.$);B.select();}catch(E){B=D.document.$.body.createTextRange();B.moveToElementText(A.$);B.select();}D.reset();}else{B=D.document.$.createRange();B.selectNode(A.$);var C=D.getNative();C.removeAllRanges();C.addRange(B);D.reset();}},selectRanges:function(A){var G=this;if(G.isLocked){G._.cache.selectedElement=null;G._.cache.startElement=A[0].getTouchedStartNode();G._.cache.ranges=A;G._.cache.type=2;return;}if(CKEDITOR.env.ie){if(A[0])A[0].select();G.reset();}else{var B=G.getNative();B.removeAllRanges();for(var C=0;C<A.length;C++){var D=A[C],E=G.document.$.createRange(),F=D.startContainer;if(D.collapsed&&CKEDITOR.env.gecko&&CKEDITOR.env.version<10900&&F.type==1&&!F.getChildCount())F.appendText('');E.setStart(F.$,D.startOffset);E.setEnd(D.endContainer.$,D.endOffset);B.addRange(E);}G.reset();}},createBookmarks:function(A){var B=[],C=this.getRanges(),D=C.length,E;for(var F=0;
F<D;F++){B.push(E=C[F].createBookmark(A,true));A=E.serializable;var G=A?this.document.getById(E.startNode):E.startNode,H=A?this.document.getById(E.endNode):E.endNode;for(var I=F+1;I<D;I++){var J=C[I],K=J.startContainer,L=J.endContainer;K.equals(G.getParent())&&J.startOffset++;K.equals(H.getParent())&&J.startOffset++;L.equals(G.getParent())&&J.endOffset++;L.equals(H.getParent())&&J.endOffset++;}}return B;},createBookmarks2:function(A){var B=[],C=this.getRanges();for(var D=0;D<C.length;D++)B.push(C[D].createBookmark2(A));return B;},selectBookmarks:function(A){var B=[];for(var C=0;C<A.length;C++){var D=new CKEDITOR.dom.range(this.document);D.moveToBookmark(A[C]);B.push(D);}this.selectRanges(B);return this;}};})();CKEDITOR.dom.range.prototype.select=CKEDITOR.env.ie?function(t){var C=this;var u=C.collapsed,v,w,x=C.createBookmark(),y=x.startNode,z;if(!u)z=x.endNode;var A=C.document.$.body.createTextRange();A.moveToElementText(y.$);A.moveStart('character',1);if(z){var B=C.document.$.body.createTextRange();B.moveToElementText(z.$);A.setEndPoint('EndToEnd',B);A.moveEnd('character',-1);}else{v=t||!y.hasPrevious()||y.getPrevious().is&&y.getPrevious().is('br');w=C.document.createElement('span');w.setHtml('&#65279;');w.insertBefore(y);if(v)C.document.createText('﻿').insertBefore(y);}C.setStartBefore(y);y.remove();if(u){if(v){A.moveStart('character',-1);A.select();C.document.$.selection.clear();}else A.select();w.remove();}else{C.setEndBefore(z);z.remove();A.select();}}:function(){var w=this;var t=w.startContainer;if(w.collapsed&&t.type==1&&!t.getChildCount())t.append(new CKEDITOR.dom.text(''));var u=w.document.$.createRange();u.setStart(t.$,w.startOffset);try{u.setEnd(w.endContainer.$,w.endOffset);}catch(x){if(x.toString().indexOf('NS_ERROR_ILLEGAL_VALUE')>=0){w.collapse(true);u.setEnd(w.endContainer.$,w.endOffset);}else throw x;}var v=w.document.getSelection().getNative();v.removeAllRanges();v.addRange(u);};(function(){var t={elements:{$:function(u){var v=u.attributes._cke_realelement,w=v&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(v)),x=w&&w.children[0];if(x){var y=u.attributes.style;if(y){var z=/(?:^|\s)width\s*:\s*(\d+)/.exec(y),A=z&&z[1];z=/(?:^|\s)height\s*:\s*(\d+)/.exec(y);var B=z&&z[1];if(A)x.attributes.width=A;if(B)x.attributes.height=B;}}return x;}}};CKEDITOR.plugins.add('fakeobjects',{requires:['htmlwriter'],afterInit:function(u){var v=u.dataProcessor,w=v&&v.htmlFilter;if(w)w.addRules(t);}});})();CKEDITOR.editor.prototype.createFakeElement=function(t,u,v,w){var x=this.lang.fakeobjects,y={'class':u,src:CKEDITOR.getUrl('images/spacer.gif'),_cke_realelement:encodeURIComponent(t.getOuterHtml()),alt:x[v]||x.unknown};
if(v)y._cke_real_element_type=v;if(w)y._cke_resizable=w;return this.document.createElement('img',{attributes:y});};CKEDITOR.editor.prototype.createFakeParserElement=function(t,u,v,w){var x=new CKEDITOR.htmlParser.basicWriter();t.writeHtml(x);var y=x.getHtml(),z=this.lang.fakeobjects,A={'class':u,src:CKEDITOR.getUrl('images/spacer.gif'),_cke_realelement:encodeURIComponent(y),alt:z[v]||z.unknown};if(v)A._cke_real_element_type=v;if(w)A._cke_resizable=w;return new CKEDITOR.htmlParser.element('img',A);};CKEDITOR.editor.prototype.restoreRealElement=function(t){var u=decodeURIComponent(t.getAttribute('_cke_realelement'));return CKEDITOR.dom.element.createFromHtml(u,this.document);};CKEDITOR.plugins.add('richcombo',{requires:['floatpanel','listblock','button'],beforeInit:function(t){t.ui.addHandler(3,CKEDITOR.ui.richCombo.handler);}});CKEDITOR.UI_RICHCOMBO=3;CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(t){var v=this;CKEDITOR.tools.extend(v,t,{title:t.label,modes:{wysiwyg:1}});var u=v.panel||{};delete v.panel;v.id=CKEDITOR.tools.getNextNumber();v.document=u&&u.parent&&u.parent.getDocument()||CKEDITOR.document;u.className=(u.className||'')+(' cke_rcombopanel');v._={panelDefinition:u,items:{},state:2};},statics:{handler:{create:function(t){return new CKEDITOR.ui.richCombo(t);}}},proto:{renderHtml:function(t){var u=[];this.render(t,u);return u.join('');},render:function(t,u){var v='cke_'+this.id,w=CKEDITOR.tools.addFunction(function(z){var C=this;var A=C._;if(A.state==0)return;C.createPanel(t);if(A.on){A.panel.hide();return;}if(!A.committed){A.list.commit();A.committed=1;}var B=C.getValue();if(B)A.list.mark(B);else A.list.unmarkAll();A.panel.showBlock(C.id,new CKEDITOR.dom.element(z),4);},this),x={id:v,combo:this,focus:function(){var z=CKEDITOR.document.getById(v).getChild(1);z.focus();},execute:w};t.on('mode',function(){this.setState(this.modes[t.mode]?2:0);},this);var y=CKEDITOR.tools.addFunction(function(z,A){z=new CKEDITOR.dom.event(z);var B=z.getKeystroke();switch(B){case 13:case 32:case 40:CKEDITOR.tools.callFunction(w,A);break;default:x.onkey(x,B);}z.preventDefault();});u.push('<span class="cke_rcombo">','<span id=',v);if(this.className)u.push(' class="',this.className,' cke_off"');u.push('><span class=cke_label>',this.label,'</span><a hidefocus=true title="',this.title,'" tabindex="-1" href="javascript:void(\'',this.label,"')\"");if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)u.push(' onkeypress="return false;"');if(CKEDITOR.env.gecko)u.push(' onblur="this.style.cssText = this.style.cssText;"');
u.push(' onkeydown="CKEDITOR.tools.callFunction( ',y,', event, this );" onclick="CKEDITOR.tools.callFunction(',w,', this); return false;"><span><span class="cke_accessibility">'+(this.voiceLabel?this.voiceLabel+' ':'')+'</span>'+'<span id="'+v+'_text" class="cke_text cke_inline_label">'+this.label+'</span>'+'</span>'+'<span class=cke_openbutton></span>'+'</a>'+'</span>'+'</span>');if(this.onRender)this.onRender();return x;},createPanel:function(t){if(this._.panel)return;var u=this._.panelDefinition,v=u.parent||CKEDITOR.document.getBody(),w=new CKEDITOR.ui.floatPanel(t,v,u),x=w.addListBlock(this.id,this.multiSelect),y=this;w.onShow=function(){if(y.className)this.element.getFirst().addClass(y.className+'_panel');y.setState(1);x.focus(!y.multiSelect&&y.getValue());y._.on=1;if(y.onOpen)y.onOpen();};w.onHide=function(){if(y.className)this.element.getFirst().removeClass(y.className+'_panel');y.setState(2);y._.on=0;if(y.onClose)y.onClose();};w.onEscape=function(){w.hide();y.document.getById('cke_'+y.id).getFirst().getNext().focus();};x.onClick=function(z,A){y.document.getWindow().focus();if(y.onClick)y.onClick.call(y,z,A);if(A)y.setValue(z,y._.items[z]);else y.setValue('');w.hide();};this._.panel=w;this._.list=x;w.getBlock(this.id).onHide=function(){y._.on=0;y.setState(2);};if(this.init)this.init();},setValue:function(t,u){var w=this;w._.value=t;var v=w.document.getById('cke_'+w.id+'_text');if(!t){u=w.label;v.addClass('cke_inline_label');}else v.removeClass('cke_inline_label');v.setHtml(typeof u!='undefined'?u:t);},getValue:function(){return this._.value||'';},unmarkAll:function(){this._.list.unmarkAll();},mark:function(t){this._.list.mark(t);},hideItem:function(t){this._.list.hideItem(t);},hideGroup:function(t){this._.list.hideGroup(t);},showAll:function(){this._.list.showAll();},add:function(t,u,v){this._.items[t]=v||t;this._.list.add(t,u,v);},startGroup:function(t){this._.list.startGroup(t);},commit:function(){this._.list.commit();},setState:function(t){var u=this;if(u._.state==t)return;u.document.getById('cke_'+u.id).setState(t);u._.state=t;}}});CKEDITOR.ui.prototype.addRichCombo=function(t,u){this.add(t,3,u);};CKEDITOR.plugins.add('htmlwriter');CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){var v=this;v.base();v.indentationChars='\t';v.selfClosingEnd=' />';v.lineBreakChars='\n';v.forceSimpleAmpersand=false;v.sortAttributes=true;v._.indent=false;v._.indentation='';v._.rules={};var t=CKEDITOR.dtd;for(var u in CKEDITOR.tools.extend({},t.$block,t.$listItem,t.$tableContent))v.setRules(u,{indent:true,breakBeforeOpen:true,breakAfterOpen:true,breakBeforeClose:!t[u]['#'],breakAfterClose:true});
v.setRules('br',{breakAfterOpen:true});v.setRules('pre',{indent:false});},proto:{openTag:function(t,u){var w=this;var v=w._.rules[t];if(w._.indent)w.indentation();else if(v&&v.breakBeforeOpen){w.lineBreak();w.indentation();}w._.output.push('<',t);},openTagClose:function(t,u){var w=this;var v=w._.rules[t];if(u)w._.output.push(w.selfClosingEnd);else{w._.output.push('>');if(v&&v.indent)w._.indentation+=w.indentationChars;}if(v&&v.breakAfterOpen)w.lineBreak();},attribute:function(t,u){if(this.forceSimpleAmpersand)u=u.replace(/&amp;/,'&');this._.output.push(' ',t,'="',u,'"');},closeTag:function(t){var v=this;var u=v._.rules[t];if(u&&u.indent)v._.indentation=v._.indentation.substr(v.indentationChars.length);if(v._.indent)v.indentation();else if(u&&u.breakBeforeClose){v.lineBreak();v.indentation();}v._.output.push('</',t,'>');if(u&&u.breakAfterClose)v.lineBreak();},text:function(t){if(this._.indent){this.indentation();t=CKEDITOR.tools.ltrim(t);}this._.output.push(t);},comment:function(t){if(this._.indent)this.indentation();this._.output.push('<!--',t,'-->');},lineBreak:function(){var t=this;if(t._.output.length>0)t._.output.push(t.lineBreakChars);t._.indent=true;},indentation:function(){this._.output.push(this._.indentation);this._.indent=false;},setRules:function(t,u){this._.rules[t]=u;}}});CKEDITOR.plugins.add('menubutton',{requires:['button','contextmenu'],beforeInit:function(t){t.ui.addHandler(5,CKEDITOR.ui.menuButton.handler);}});CKEDITOR.UI_MENUBUTTON=5;(function(){var t=function(u){var v=this._;if(v.state===0)return;v.previousState=v.state;var w=v.menu;if(!w){w=v.menu=new CKEDITOR.plugins.contextMenu(u);w.onHide=CKEDITOR.tools.bind(function(){this.setState(v.previousState);},this);if(this.onMenu)w.addListener(this.onMenu);}if(v.on){w.hide();return;}this.setState(1);w.show(CKEDITOR.document.getById(this._.id),4);};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(u){var v=u.panel;delete u.panel;this.base(u);this.hasArrow=true;this.click=t;},statics:{handler:{create:function(u){return new CKEDITOR.ui.menuButton(u);}}}});})();CKEDITOR.plugins.add('dialog',{requires:['dialogui']});CKEDITOR.DIALOG_RESIZE_NONE=0;CKEDITOR.DIALOG_RESIZE_WIDTH=1;CKEDITOR.DIALOG_RESIZE_HEIGHT=2;CKEDITOR.DIALOG_RESIZE_BOTH=3;(function(){function t(T){return!!this._.tabs[T][0].$.offsetHeight;};function u(){var X=this;var T=X._.currentTabId,U=X._.tabIdList.length,V=CKEDITOR.tools.indexOf(X._.tabIdList,T)+U;for(var W=V-1;W>V-U;W--)if(t.call(X,X._.tabIdList[W%U]))return X._.tabIdList[W%U];
return null;};function v(){var X=this;var T=X._.currentTabId,U=X._.tabIdList.length,V=CKEDITOR.tools.indexOf(X._.tabIdList,T);for(var W=V+1;W<V+U;W++)if(t.call(X,X._.tabIdList[W%U]))return X._.tabIdList[W%U];return null;};var w={};CKEDITOR.dialog=function(T,U){var V=CKEDITOR.dialog._.dialogDefinitions[U];if(!V){console.log('Error: The dialog "'+U+'" is not defined.');return;}V=CKEDITOR.tools.extend(V(T),y);V=CKEDITOR.tools.clone(V);V=new C(this,V);this.definition=V=CKEDITOR.fire('dialogDefinition',{name:U,definition:V},T).definition;var W=CKEDITOR.document,X=T.theme.buildDialog(T);this._={editor:T,element:X.element,name:U,contentSize:{width:0,height:0},size:{width:0,height:0},updateSize:false,contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:false,focusList:[],currentFocusIndex:0,hasFocus:false};this.parts=X.parts;this.parts.dialog.setStyles({position:CKEDITOR.env.ie6Compat?'absolute':'fixed',top:0,left:0,visibility:'hidden'});CKEDITOR.event.call(this);if(V.onLoad)this.on('load',V.onLoad);if(V.onShow)this.on('show',V.onShow);if(V.onHide)this.on('hide',V.onHide);if(V.onOk)this.on('ok',function(ah){if(V.onOk.call(this,ah)===false)ah.data.hide=false;});if(V.onCancel)this.on('cancel',function(ah){if(V.onCancel.call(this,ah)===false)ah.data.hide=false;});var Y=this,Z=function(ah){var ai=Y._.contents,aj=false;for(var ak in ai)for(var al in ai[ak]){aj=ah.call(this,ai[ak][al]);if(aj)return;}};this.on('ok',function(ah){Z(function(ai){if(ai.validate){var aj=ai.validate(this);if(typeof aj=='string'){alert(aj);aj=false;}if(aj===false){if(ai.select)ai.select();else ai.focus();ah.data.hide=false;ah.stop();return true;}}});},this,null,0);this.on('cancel',function(ah){Z(function(ai){if(ai.isChanged()){if(!confirm(T.lang.common.confirmCancel))ah.data.hide=false;return true;}});},this,null,0);this.parts.close.on('click',function(ah){if(this.fire('cancel',{hide:true}).hide!==false)this.hide();},this);function aa(ah){var ai=Y._.focusList,aj=ah?1:-1;if(ai.length<1)return;var ak=(Y._.currentFocusIndex+aj+ai.length)%(ai.length);while(!ai[ak].isFocusable()){ak=(ak+aj+ai.length)%(ai.length);if(ak==Y._.currentFocusIndex)break;}ai[ak].focus();if(ai[ak].type=='text')ai[ak].select();};function ab(ah){if(Y!=CKEDITOR.dialog._.currentTop)return;var ai=ah.data.getKeystroke(),aj=false;if(ai==9||ai==2000+9){var ak=ai==2000+9;if(Y._.tabBarMode){var al=ak?u.call(Y):v.call(Y);Y.selectPage(al);Y._.tabs[al][0].focus();
}else aa(!ak);aj=true;}else if(ai==4000+121&&!Y._.tabBarMode){Y._.tabBarMode=true;Y._.tabs[Y._.currentTabId][0].focus();aj=true;}else if((ai==37||ai==39)&&(Y._.tabBarMode)){al=ai==37?u.call(Y):v.call(Y);Y.selectPage(al);Y._.tabs[al][0].focus();aj=true;}if(aj){ah.stop();ah.data.preventDefault();}};this.on('show',function(){CKEDITOR.document.on('keydown',ab,this,null,0);if(CKEDITOR.env.ie6Compat){var ah=H.getChild(0).getFrameDocument();ah.on('keydown',ab,this,null,0);}});this.on('hide',function(){CKEDITOR.document.removeListener('keydown',ab);});this.on('iframeAdded',function(ah){var ai=new CKEDITOR.dom.document(ah.data.iframe.$.contentWindow.document);ai.on('keydown',ab,this,null,0);});this.on('show',function(){var ak=this;if(!ak._.hasFocus){ak._.currentFocusIndex=-1;aa(true);if(ak._.editor.mode=='wysiwyg'&&CKEDITOR.env.ie){var ah=T.document.$.selection,ai=ah.createRange();if(ai)if(ai.parentElement&&ai.parentElement().ownerDocument==T.document.$||ai.item&&ai.item(0).ownerDocument==T.document.$){var aj=document.body.createTextRange();aj.moveToElementText(ak.getElement().getFirst().$);aj.collapse(true);aj.select();}}}},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on('load',function(ah){var ai=this.getElement(),aj=ai.getFirst();aj.remove();aj.appendTo(ai);},this);E(this);F(this);new CKEDITOR.dom.text(V.title,CKEDITOR.document).appendTo(this.parts.title);for(var ac=0;ac<V.contents.length;ac++)this.addPage(V.contents[ac]);var ad=/cke_dialog_tab(\s|$|_)/,ae=/cke_dialog_tab(\s|$)/;this.parts.tabs.on('click',function(ah){var am=this;var ai=ah.data.getTarget(),aj=ai,ak,al;if(!(ad.test(ai.$.className)||ai.getName()=='a'))return;ak=ai.$.id.substr(0,ai.$.id.lastIndexOf('_'));am.selectPage(ak);if(am._.tabBarMode){am._.tabBarMode=false;am._.currentFocusIndex=-1;aa(true);}ah.data.preventDefault();},this);var af=[],ag=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:'hbox',className:'cke_dialog_footer_buttons',widths:[],children:V.buttons},af).getChild();this.parts.footer.setHtml(af.join(''));for(ac=0;ac<ag.length;ac++)this._.buttons[ag[ac].id]=ag[ac];CKEDITOR.skins.load(T,'dialog');};function x(T,U,V){this.element=U;this.focusIndex=V;this.isFocusable=function(){return true;};this.focus=function(){T._.currentFocusIndex=this.focusIndex;this.element.focus();};U.on('keydown',function(W){if(W.data.getKeystroke() in {32:1,13:1})this.fire('click');});U.on('focus',function(){this.fire('mouseover');});U.on('blur',function(){this.fire('mouseout');});};CKEDITOR.dialog.prototype={resize:(function(){return function(T,U){var V=this;
if(V._.contentSize&&V._.contentSize.width==T&&V._.contentSize.height==U)return;CKEDITOR.dialog.fire('resize',{dialog:V,skin:V._.editor.skinName,width:T,height:U},V._.editor);V._.contentSize={width:T,height:U};V._.updateSize=true;};})(),getSize:function(){var V=this;if(!V._.updateSize)return V._.size;var T=V._.element.getFirst(),U=V._.size={width:T.$.offsetWidth||0,height:T.$.offsetHeight||0};V._.updateSize=!U.width||!U.height;return U;},move:(function(){var T;return function(U,V){var Y=this;var W=Y._.element.getFirst();if(T===undefined)T=W.getComputedStyle('position')=='fixed';if(T&&Y._.position&&Y._.position.x==U&&Y._.position.y==V)return;Y._.position={x:U,y:V};if(!T){var X=CKEDITOR.document.getWindow().getScrollPosition();U+=X.x;V+=X.y;}W.setStyles({left:(U>0?U:0)+('px'),top:(V>0?V:0)+('px')});};})(),getPosition:function(){return CKEDITOR.tools.extend({},this._.position);},show:function(){if(this._.editor.mode=='wysiwyg'&&CKEDITOR.env.ie)this._.editor.getSelection().lock();var T=this._.element,U=this.definition;if(!(T.getParent()&&T.getParent().equals(CKEDITOR.document.getBody())))T.appendTo(CKEDITOR.document.getBody());else return;if(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900){var V=this.parts.dialog;V.setStyle('position','absolute');setTimeout(function(){V.setStyle('position','fixed');},0);}this.resize(U.minWidth,U.minHeight);this.selectPage(this.definition.contents[0].id);this.reset();if(CKEDITOR.dialog._.currentZIndex===null)CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex;this._.element.getFirst().setStyle('z-index',CKEDITOR.dialog._.currentZIndex+=10);if(CKEDITOR.dialog._.currentTop===null){CKEDITOR.dialog._.currentTop=this;this._.parentDialog=null;I(this._.editor);CKEDITOR.document.on('keydown',L);CKEDITOR.document.on('keyup',M);for(var W in {keyup:1,keydown:1,keypress:1})CKEDITOR.document.on(W,S);}else{this._.parentDialog=CKEDITOR.dialog._.currentTop;var X=this._.parentDialog.getElement().getFirst();X.$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2);CKEDITOR.dialog._.currentTop=this;}N(this,this,'\x1b',null,function(){this.getButton('cancel')&&this.getButton('cancel').click();});this._.hasFocus=false;CKEDITOR.tools.setTimeout(function(){var Y=CKEDITOR.document.getWindow().getViewPaneSize(),Z=this.getSize();this.move((Y.width-U.minWidth)/(2),(Y.height-Z.height)/(2));this.parts.dialog.setStyle('visibility','');this.fireOnce('load',{});this.fire('show',{});this.foreach(function(aa){aa.setInitValue&&aa.setInitValue();
});},100,this);},foreach:function(T){var W=this;for(var U in W._.contents)for(var V in W._.contents[U])T(W._.contents[U][V]);return W;},reset:(function(){var T=function(U){if(U.reset)U.reset();};return function(){this.foreach(T);return this;};})(),setupContent:function(){var T=arguments;this.foreach(function(U){if(U.setup)U.setup.apply(U,T);});},commitContent:function(){var T=arguments;this.foreach(function(U){if(U.commit)U.commit.apply(U,T);});},hide:function(){this.fire('hide',{});var T=this._.element;if(!T.getParent())return;T.remove();this.parts.dialog.setStyle('visibility','hidden');O(this);if(!this._.parentDialog)J();else{var U=this._.parentDialog.getElement().getFirst();U.setStyle('z-index',parseInt(U.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2));}CKEDITOR.dialog._.currentTop=this._.parentDialog;if(!this._.parentDialog){CKEDITOR.dialog._.currentZIndex=null;CKEDITOR.document.removeListener('keydown',L);CKEDITOR.document.removeListener('keyup',M);CKEDITOR.document.removeListener('keypress',M);for(var V in {keyup:1,keydown:1,keypress:1})CKEDITOR.document.removeListener(V,S);var W=this._.editor;W.focus();if(W.mode=='wysiwyg'&&CKEDITOR.env.ie)W.getSelection().unlock(true);}else CKEDITOR.dialog._.currentZIndex-=10;this.foreach(function(X){X.resetInitValue&&X.resetInitValue();});},addPage:function(T){var ad=this;var U=[],V=T.label?' title="'+CKEDITOR.tools.htmlEncode(T.label)+'"':'',W=T.elements,X=CKEDITOR.dialog._.uiElementBuilders.vbox.build(ad,{type:'vbox',className:'cke_dialog_page_contents',children:T.elements,expand:!!T.expand,padding:T.padding,style:T.style||'width: 100%; height: 100%;'},U),Y=CKEDITOR.dom.element.createFromHtml(U.join('')),Z=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',ad._.pageCount>0?' cke_last':'cke_first',V,!!T.hidden?' style="display:none"':'',' id="',T.id+'_',CKEDITOR.tools.getNextNumber(),'" href="javascript:void(0)"',' hidefocus="true">',T.label,'</a>'].join(''));if(ad._.pageCount===0)ad.parts.dialog.addClass('cke_single_page');else ad.parts.dialog.removeClass('cke_single_page');ad._.tabs[T.id]=[Z,Y];ad._.tabIdList.push(T.id);ad._.pageCount++;ad._.lastTab=Z;var aa=ad._.contents[T.id]={},ab,ac=X.getChild();while(ab=ac.shift()){aa[ab.id]=ab;if(typeof ab.getChild=='function')ac.push.apply(ac,ab.getChild());}Y.setAttribute('name',T.id);Y.appendTo(ad.parts.contents);Z.unselectable();ad.parts.tabs.append(Z);if(T.accessKey){N(ad,ad,'CTRL+'+T.accessKey,Q,P);ad._.accessKeyMap['CTRL+'+T.accessKey]=T.id;
}},selectPage:function(T){var Y=this;for(var U in Y._.tabs){var V=Y._.tabs[U][0],W=Y._.tabs[U][1];if(U!=T){V.removeClass('cke_dialog_tab_selected');W.hide();}}var X=Y._.tabs[T];X[0].addClass('cke_dialog_tab_selected');X[1].show();Y._.currentTabId=T;Y._.currentTabIndex=CKEDITOR.tools.indexOf(Y._.tabIdList,T);},hidePage:function(T){var U=this._.tabs[T]&&this._.tabs[T][0];if(!U)return;U.hide();},showPage:function(T){var U=this._.tabs[T]&&this._.tabs[T][0];if(!U)return;U.show();},getElement:function(){return this._.element;},getName:function(){return this._.name;},getContentElement:function(T,U){return this._.contents[T][U];},getValueOf:function(T,U){return this.getContentElement(T,U).getValue();},setValueOf:function(T,U,V){return this.getContentElement(T,U).setValue(V);},getButton:function(T){return this._.buttons[T];},click:function(T){return this._.buttons[T].click();},disableButton:function(T){return this._.buttons[T].disable();},enableButton:function(T){return this._.buttons[T].enable();},getPageCount:function(){return this._.pageCount;},getParentEditor:function(){return this._.editor;},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement();},addFocusable:function(T,U){var W=this;if(typeof U=='undefined'){U=W._.focusList.length;W._.focusList.push(new x(W,T,U));}else{W._.focusList.splice(U,0,new x(W,T,U));for(var V=U+1;V<W._.focusList.length;V++)W._.focusList[V].focusIndex++;}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(T,U){if(!this._.dialogDefinitions[T]||typeof U=='function')this._.dialogDefinitions[T]=U;},exists:function(T){return!!this._.dialogDefinitions[T];},getCurrent:function(){return CKEDITOR.dialog._.currentTop;},okButton:(function(){var T=function(U,V){V=V||{};return CKEDITOR.tools.extend({id:'ok',type:'button',label:U.lang.common.ok,'class':'cke_dialog_ui_button_ok',onClick:function(W){var X=W.data.dialog;if(X.fire('ok',{hide:true}).hide!==false)X.hide();}},V,true);};T.type='button';T.override=function(U){return CKEDITOR.tools.extend(function(V){return T(V,U);},{type:'button'},true);};return T;})(),cancelButton:(function(){var T=function(U,V){V=V||{};return CKEDITOR.tools.extend({id:'cancel',type:'button',label:U.lang.common.cancel,'class':'cke_dialog_ui_button_cancel',onClick:function(W){var X=W.data.dialog;if(X.fire('cancel',{hide:true}).hide!==false)X.hide();}},V,true);};T.type='button';T.override=function(U){return CKEDITOR.tools.extend(function(V){return T(V,U);},{type:'button'},true);};return T;
})(),addUIElement:function(T,U){this._.uiElementBuilders[T]=U;}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype,true);var y={resizable:0,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},z=function(T,U,V){for(var W=0,X;X=T[W];W++){if(X.id==U)return X;if(V&&X[V]){var Y=z(X[V],U,V);if(Y)return Y;}}return null;},A=function(T,U,V,W,X){if(V){for(var Y=0,Z;Z=T[Y];Y++){if(Z.id==V){T.splice(Y,0,U);return U;}if(W&&Z[W]){var aa=A(Z[W],U,V,W,true);if(aa)return aa;}}if(X)return null;}T.push(U);return U;},B=function(T,U,V){for(var W=0,X;X=T[W];W++){if(X.id==U)return T.splice(W,1);if(V&&X[V]){var Y=B(X[V],U,V);if(Y)return Y;}}return null;},C=function(T,U){this.dialog=T;var V=U.contents;for(var W=0,X;X=V[W];W++)V[W]=new D(T,X);CKEDITOR.tools.extend(this,U);};C.prototype={getContents:function(T){return z(this.contents,T);},getButton:function(T){return z(this.buttons,T);},addContents:function(T,U){return A(this.contents,T,U);},addButton:function(T,U){return A(this.buttons,T,U);},removeContents:function(T){B(this.contents,T);},removeButton:function(T){B(this.buttons,T);}};function D(T,U){this._={dialog:T};CKEDITOR.tools.extend(this,U);};D.prototype={get:function(T){return z(this.elements,T,'children');},add:function(T,U){return A(this.elements,T,U,'children');},remove:function(T){B(this.elements,T,'children');}};function E(T){var U=null,V=null,W=T.getElement().getFirst(),X=T.getParentEditor(),Y=X.config.dialog_magnetDistance,Z=w[X.skinName].margins||[0,0,0,0];if(typeof Y=='undefined')Y=20;function aa(ac){var ad=T.getSize(),ae=CKEDITOR.document.getWindow().getViewPaneSize(),af=ac.data.$.screenX,ag=ac.data.$.screenY,ah=af-U.x,ai=ag-U.y,aj,ak;U={x:af,y:ag};V.x+=ah;V.y+=ai;if(V.x+Z[3]<Y)aj=-Z[3];else if(V.x-Z[1]>ae.width-ad.width-Y)aj=ae.width-ad.width+Z[1];else aj=V.x;if(V.y+Z[0]<Y)ak=-Z[0];else if(V.y-Z[2]>ae.height-ad.height-Y)ak=ae.height-ad.height+Z[2];else ak=V.y;T.move(aj,ak);ac.data.preventDefault();};function ab(ac){CKEDITOR.document.removeListener('mousemove',aa);CKEDITOR.document.removeListener('mouseup',ab);if(CKEDITOR.env.ie6Compat){var ad=H.getChild(0).getFrameDocument();ad.removeListener('mousemove',aa);ad.removeListener('mouseup',ab);}};T.parts.title.on('mousedown',function(ac){T._.updateSize=true;U={x:ac.data.$.screenX,y:ac.data.$.screenY};CKEDITOR.document.on('mousemove',aa);
CKEDITOR.document.on('mouseup',ab);V=T.getPosition();if(CKEDITOR.env.ie6Compat){var ad=H.getChild(0).getFrameDocument();ad.on('mousemove',aa);ad.on('mouseup',ab);}ac.data.preventDefault();},T);};function F(T){var U=T.definition,V=U.minWidth||0,W=U.minHeight||0,X=U.resizable,Y=w[T.getParentEditor().skinName].margins||[0,0,0,0];function Z(ak,al){ak.y+=al;};function aa(ak,al){ak.x2+=al;};function ab(ak,al){ak.y2+=al;};function ac(ak,al){ak.x+=al;};var ad=null,ae=null,af=T._.editor.config.magnetDistance,ag=['tl','t','tr','l','r','bl','b','br'];function ah(ak){var al=ak.listenerData.part,am=T.getSize();ae=T.getPosition();CKEDITOR.tools.extend(ae,{x2:ae.x+am.width,y2:ae.y+am.height});ad={x:ak.data.$.screenX,y:ak.data.$.screenY};CKEDITOR.document.on('mousemove',ai,T,{part:al});CKEDITOR.document.on('mouseup',aj,T,{part:al});if(CKEDITOR.env.ie6Compat){var an=H.getChild(0).getFrameDocument();an.on('mousemove',ai,T,{part:al});an.on('mouseup',aj,T,{part:al});}ak.data.preventDefault();};function ai(ak){var al=ak.data.$.screenX,am=ak.data.$.screenY,an=al-ad.x,ao=am-ad.y,ap=CKEDITOR.document.getWindow().getViewPaneSize(),aq=ak.listenerData.part;if(aq.search('t')!=-1)Z(ae,ao);if(aq.search('l')!=-1)ac(ae,an);if(aq.search('b')!=-1)ab(ae,ao);if(aq.search('r')!=-1)aa(ae,an);ad={x:al,y:am};var ar,as,at,au;if(ae.x+Y[3]<af)ar=-Y[3];else if(aq.search('l')!=-1&&ae.x2-ae.x<V+af)ar=ae.x2-V;else ar=ae.x;if(ae.y+Y[0]<af)as=-Y[0];else if(aq.search('t')!=-1&&ae.y2-ae.y<W+af)as=ae.y2-W;else as=ae.y;if(ae.x2-Y[1]>ap.width-af)at=ap.width+Y[1];else if(aq.search('r')!=-1&&ae.x2-ae.x<V+af)at=ae.x+V;else at=ae.x2;if(ae.y2-Y[2]>ap.height-af)au=ap.height+Y[2];else if(aq.search('b')!=-1&&ae.y2-ae.y<W+af)au=ae.y+W;else au=ae.y2;T.move(ar,as);T.resize(at-ar,au-as);ak.data.preventDefault();};function aj(ak){CKEDITOR.document.removeListener('mouseup',aj);CKEDITOR.document.removeListener('mousemove',ai);if(CKEDITOR.env.ie6Compat){var al=H.getChild(0).getFrameDocument();al.removeListener('mouseup',aj);al.removeListener('mousemove',ai);}};};var G,H,I=function(T){var U=CKEDITOR.document.getWindow();if(!H){var V=['<div style="position: ',CKEDITOR.env.ie6Compat?'absolute':'fixed','; z-index: ',T.config.baseFloatZIndex,'; top: 0px; left: 0px; ','background-color: ',T.config.dialog_backgroundCoverColor||'white','" id="cke_dialog_background_cover">'];if(CKEDITOR.env.ie6Compat){var W=CKEDITOR.env.isCustomDomain();V.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');
V.push(W?"void((function(){document.open();document.domain='"+document.domain+"';"+'document.close();'+'})())':"''");V.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>');}V.push('</div>');H=CKEDITOR.dom.element.createFromHtml(V.join(''));}var X=H,Y=function(){var ac=U.getViewPaneSize();X.setStyles({width:ac.width+'px',height:ac.height+'px'});},Z=function(){var ac=U.getScrollPosition(),ad=CKEDITOR.dialog._.currentTop;X.setStyles({left:ac.x+'px',top:ac.y+'px'});do{var ae=ad.getPosition();ad.move(ae.x,ae.y);}while(ad=ad._.parentDialog)};G=Y;U.on('resize',Y);Y();if(CKEDITOR.env.ie6Compat){var aa=function(){Z();arguments.callee.prevScrollHandler.apply(this,arguments);};U.$.setTimeout(function(){aa.prevScrollHandler=window.onscroll||(function(){});window.onscroll=aa;},0);Z();}var ab=T.config.dialog_backgroundCoverOpacity;X.setOpacity(typeof ab!='undefined'?ab:0.5);X.appendTo(CKEDITOR.document.getBody());},J=function(){if(!H)return;var T=CKEDITOR.document.getWindow();H.remove();T.removeListener('resize',G);if(CKEDITOR.env.ie6Compat)T.$.setTimeout(function(){var U=window.onscroll&&window.onscroll.prevScrollHandler;window.onscroll=U||null;},0);G=null;},K={},L=function(T){var U=T.data.$.ctrlKey||T.data.$.metaKey,V=T.data.$.altKey,W=T.data.$.shiftKey,X=String.fromCharCode(T.data.$.keyCode),Y=K[(U?'CTRL+':'')+(V?'ALT+':'')+(W?'SHIFT+':'')+X];if(!Y||!Y.length)return;Y=Y[Y.length-1];Y.keydown&&Y.keydown.call(Y.uiElement,Y.dialog,Y.key);T.data.preventDefault();},M=function(T){var U=T.data.$.ctrlKey||T.data.$.metaKey,V=T.data.$.altKey,W=T.data.$.shiftKey,X=String.fromCharCode(T.data.$.keyCode),Y=K[(U?'CTRL+':'')+(V?'ALT+':'')+(W?'SHIFT+':'')+X];if(!Y||!Y.length)return;Y=Y[Y.length-1];Y.keyup&&Y.keyup.call(Y.uiElement,Y.dialog,Y.key);T.data.preventDefault();},N=function(T,U,V,W,X){var Y=K[V]||(K[V]=[]);Y.push({uiElement:T,dialog:U,key:V,keyup:X||T.accessKeyUp,keydown:W||T.accessKeyDown});},O=function(T){for(var U in K){var V=K[U];for(var W=V.length-1;W>=0;W--)if(V[W].dialog==T||V[W].uiElement==T)V.splice(W,1);if(V.length===0)delete K[U];}},P=function(T,U){if(T._.accessKeyMap[U])T.selectPage(T._.accessKeyMap[U]);},Q=function(T,U){},R={27:1,13:1},S=function(T){if(T.data.getKeystroke() in R)T.data.stopPropagation();};(function(){CKEDITOR.ui.dialog={uiElement:function(T,U,V,W,X,Y,Z){if(arguments.length<4)return;var aa=(W.call?W(U):W)||('div'),ab=['<',aa,' '],ac=(X&&X.call?X(U):X)||({}),ad=(Y&&Y.call?Y(U):Y)||({}),ae=(Z&&Z.call?Z(T,U):Z)||(''),af=this.domId=ad.id||CKEDITOR.tools.getNextNumber()+'_uiElement',ag=this.id=U.id,ah;
ad.id=af;var ai={};if(U.type)ai['cke_dialog_ui_'+U.type]=1;if(U.className)ai[U.className]=1;var aj=ad['class']&&ad['class'].split?ad['class'].split(' '):[];for(ah=0;ah<aj.length;ah++)if(aj[ah])ai[aj[ah]]=1;var ak=[];for(ah in ai)ak.push(ah);ad['class']=ak.join(' ');if(U.title)ad.title=U.title;var al=(U.style||'').split(';');for(ah in ac)al.push(ah+':'+ac[ah]);if(U.hidden)al.push('display:none');for(ah=al.length-1;ah>=0;ah--)if(al[ah]==='')al.splice(ah,1);if(al.length>0)ad.style=(ad.style?ad.style+'; ':'')+(al.join('; '));for(ah in ad)ab.push(ah+'="'+CKEDITOR.tools.htmlEncode(ad[ah])+'" ');ab.push('>',ae,'</',aa,'>');V.push(ab.join(''));(this._||(this._={})).dialog=T;if(typeof U.isChanged=='boolean')this.isChanged=function(){return U.isChanged;};if(typeof U.isChanged=='function')this.isChanged=U.isChanged;CKEDITOR.event.implementOn(this);this.registerEvents(U);if(this.accessKeyUp&&this.accessKeyDown&&U.accessKey)N(this,T,'CTRL+'+U.accessKey);var am=this;T.on('load',function(){if(am.getInputElement())am.getInputElement().on('focus',function(){T._.tabBarMode=false;T._.hasFocus=true;am.fire('focus');},am);});if(this.keyboardFocusable){this.focusIndex=T._.focusList.push(this)-1;this.on('focus',function(){T._.currentFocusIndex=am.focusIndex;});}CKEDITOR.tools.extend(this,U);},hbox:function(T,U,V,W,X){if(arguments.length<4)return;this._||(this._={});var Y=this._.children=U,Z=X&&X.widths||null,aa=X&&X.height||null,ab={},ac,ad=function(){var ae=['<tbody><tr class="cke_dialog_ui_hbox">'];for(ac=0;ac<V.length;ac++){var af='cke_dialog_ui_hbox_child',ag=[];if(ac===0)af='cke_dialog_ui_hbox_first';if(ac==V.length-1)af='cke_dialog_ui_hbox_last';ae.push('<td class="',af,'" ');if(Z){if(Z[ac])ag.push('width:'+CKEDITOR.tools.cssLength(Z[ac]));}else ag.push('width:'+Math.floor(100/V.length)+'%');if(aa)ag.push('height:'+CKEDITOR.tools.cssLength(aa));if(X&&X.padding!=undefined)ag.push('padding:'+CKEDITOR.tools.cssLength(X.padding));if(ag.length>0)ae.push('style="'+ag.join('; ')+'" ');ae.push('>',V[ac],'</td>');}ae.push('</tr></tbody>');return ae.join('');};CKEDITOR.ui.dialog.uiElement.call(this,T,X||{type:'hbox'},W,'table',ab,X&&X.align&&{align:X.align}||null,ad);},vbox:function(T,U,V,W,X){if(arguments.length<3)return;this._||(this._={});var Y=this._.children=U,Z=X&&X.width||null,aa=X&&X.heights||null,ab=function(){var ac=['<table cellspacing="0" border="0" '];ac.push('style="');if(X&&X.expand)ac.push('height:100%;');ac.push('width:'+CKEDITOR.tools.cssLength(Z||'100%'),';');ac.push('"');
ac.push('align="',CKEDITOR.tools.htmlEncode(X&&X.align||(T.getParentEditor().lang.dir=='ltr'?'left':'right')),'" ');ac.push('><tbody>');for(var ad=0;ad<V.length;ad++){var ae=[];ac.push('<tr><td ');if(Z)ae.push('width:'+CKEDITOR.tools.cssLength(Z||'100%'));if(aa)ae.push('height:'+CKEDITOR.tools.cssLength(aa[ad]));else if(X&&X.expand)ae.push('height:'+Math.floor(100/V.length)+'%');if(X&&X.padding!=undefined)ae.push('padding:'+CKEDITOR.tools.cssLength(X.padding));if(ae.length>0)ac.push('style="',ae.join('; '),'" ');ac.push(' class="cke_dialog_ui_vbox_child">',V[ad],'</td></tr>');}ac.push('</tbody></table>');return ac.join('');};CKEDITOR.ui.dialog.uiElement.call(this,T,X||{type:'vbox'},W,'div',null,null,ab);}};})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId);},getInputElement:function(){return this.getElement();},getDialog:function(){return this._.dialog;},setValue:function(T){this.getInputElement().setValue(T);this.fire('change',{value:T});return this;},getValue:function(){return this.getInputElement().getValue();},isChanged:function(){return false;},selectParentTab:function(){var W=this;var T=W.getInputElement(),U=T,V;while((U=U.getParent())&&(U.$.className.search('cke_dialog_page_contents')==-1)){}if(!U)return W;V=U.getAttribute('name');if(W._.dialog._.currentTabId!=V)W._.dialog.selectPage(V);return W;},focus:function(){this.selectParentTab().getInputElement().focus();return this;},registerEvents:function(T){var U=/^on([A-Z]\w+)/,V,W=function(Y,Z,aa,ab){Z.on('load',function(){Y.getInputElement().on(aa,ab,Y);});};for(var X in T){if(!(V=X.match(U)))continue;if(this.eventProcessors[X])this.eventProcessors[X].call(this,this._.dialog,T[X]);else W(this,this._.dialog,V[1].toLowerCase(),T[X]);}return this;},eventProcessors:{onLoad:function(T,U){T.on('load',U,this);},onShow:function(T,U){T.on('show',U,this);},onHide:function(T,U){T.on('hide',U,this);}},accessKeyDown:function(T,U){this.focus();},accessKeyUp:function(T,U){},disable:function(){var T=this.getInputElement();T.setAttribute('disabled','true');T.addClass('cke_disabled');},enable:function(){var T=this.getInputElement();T.removeAttribute('disabled');T.removeClass('cke_disabled');},isEnabled:function(){return!this.getInputElement().getAttribute('disabled');},isVisible:function(){return!!this.getInputElement().$.offsetHeight;},isFocusable:function(){if(!this.isEnabled()||!this.isVisible())return false;return true;}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement(),{getChild:function(T){var U=this;
if(arguments.length<1)return U._.children.concat();if(!T.splice)T=[T];if(T.length<2)return U._.children[T[0]];else return U._.children[T[0]]&&U._.children[T[0]].getChild?U._.children[T[0]].getChild(T.slice(1,T.length)):null;}},true);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox();(function(){var T={build:function(U,V,W){var X=V.children,Y,Z=[],aa=[];for(var ab=0;ab<X.length&&(Y=X[ab]);ab++){var ac=[];Z.push(ac);aa.push(CKEDITOR.dialog._.uiElementBuilders[Y.type].build(U,Y,ac));}return new CKEDITOR.ui.dialog[V.type](U,aa,Z,W,V);}};CKEDITOR.dialog.addUIElement('hbox',T);CKEDITOR.dialog.addUIElement('vbox',T);})();CKEDITOR.dialogCommand=function(T){this.dialogName=T;};CKEDITOR.dialogCommand.prototype={exec:function(T){T.openDialog(this.dialogName);},canUndo:false};(function(){var T=/^([a]|[^a])+$/,U=/^\d*$/,V=/^\d*(?:\.\d+)?$/;CKEDITOR.VALIDATE_OR=1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){return function(){var ac=this;var W=ac&&ac.getValue?ac.getValue():arguments[0],X=undefined,Y=2,Z=[],aa;for(aa=0;aa<arguments.length;aa++)if(typeof arguments[aa]=='function')Z.push(arguments[aa]);else break;if(aa<arguments.length&&typeof arguments[aa]=='string'){X=arguments[aa];aa++;}if(aa<arguments.length&&typeof arguments[aa]=='number')Y=arguments[aa];var ab=Y==2?true:false;for(aa=0;aa<Z.length;aa++)if(Y==2)ab=ab&&Z[aa](W);else ab=ab||Z[aa](W);if(!ab){if(X!==undefined)alert(X);if(ac&&(ac.select||ac.focus))ac.select||ac.focus();return false;}return true;};},regex:function(W,X){return function(){var Z=this;var Y=Z&&Z.getValue?Z.getValue():arguments[0];if(!W.test(Y)){if(X!==undefined)alert(X);if(Z&&(Z.select||Z.focus))if(Z.select)Z.select();else Z.focus();return false;}return true;};},notEmpty:function(W){return this.regex(T,W);},integer:function(W){return this.regex(U,W);},number:function(W){return this.regex(V,W);},equals:function(W,X){return this.functions(function(Y){return Y==W;},X);},notEqual:function(W,X){return this.functions(function(Y){return Y!=W;},X);}};})();CKEDITOR.skins.add=(function(){var T=CKEDITOR.skins.add;return function(U,V){w[U]={margins:V.margins};return T.apply(this,arguments);};})();})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(t){var u=CKEDITOR.dialog._.dialogDefinitions[t];if(typeof u=='function'){var v=this._.storedDialogs||(this._.storedDialogs={}),w=v[t]||(v[t]=new CKEDITOR.dialog(this,t));w.show();return w;}else if(u=='failed')throw new Error('[CKEDITOR.dialog.openDialog] Dialog "'+t+'" failed when loading definition.');
var x=CKEDITOR.document.getBody(),y=x.$.style.cursor,z=this;x.setStyle('cursor','wait');CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(u),function(){if(typeof CKEDITOR.dialog._.dialogDefinitions[t]!='function')CKEDITOR.dialog._.dialogDefinitions[t]='failed';z.openDialog(t);x.setStyle('cursor',y);});return null;}});(function(){var t=function(v,w){return v._.modes&&v._.modes[w||v.mode];},u;CKEDITOR.plugins.add('editingblock',{init:function(v){if(!v.config.editingBlock)return;v.on('themeSpace',function(w){if(w.data.space=='contents')w.data.html+='<br>';});v.on('themeLoaded',function(){v.fireOnce('editingBlockReady');});v.on('uiReady',function(){v.setMode(v.config.startupMode);});v.on('afterSetData',function(){if(!u){function w(){u=true;t(v).loadData(v.getData());u=false;};if(v.mode)w();else v.on('mode',function(){w();v.removeListener('mode',arguments.callee);});}});v.on('beforeGetData',function(){if(!u&&v.mode){u=true;v.setData(t(v).getData());u=false;}});v.on('getSnapshot',function(w){if(v.mode)w.data=t(v).getSnapshotData();});v.on('loadSnapshot',function(w){if(v.mode)t(v).loadSnapshotData(w.data);});v.on('mode',function(w){w.removeListener();var x=v.container;if(CKEDITOR.env.webkit&&CKEDITOR.env.version<528){var y=v.config.tabIndex||v.element.getAttribute('tabindex')||0;x=x.append(CKEDITOR.dom.element.createFromHtml('<input tabindex="'+y+'"'+' style="position:absolute; left:-10000">'));}x.on('focus',function(){v.focus();});if(v.config.startupFocus)v.focus();setTimeout(function(){v.fireOnce('instanceReady');CKEDITOR.fire('instanceReady',null,v);});});}});CKEDITOR.editor.prototype.mode='';CKEDITOR.editor.prototype.addMode=function(v,w){w.name=v;(this._.modes||(this._.modes={}))[v]=w;};CKEDITOR.editor.prototype.setMode=function(v){var w,x=this.getThemeSpace('contents'),y=this.checkDirty();if(this.mode){if(v==this.mode)return;this.fire('beforeModeUnload');var z=t(this);w=z.getData();z.unload(x);this.mode='';}x.setHtml('');var A=t(this,v);if(!A)throw '[CKEDITOR.editor.setMode] Unknown mode "'+v+'".';if(!y)this.on('mode',function(){this.resetDirty();this.removeListener('mode',arguments.callee);});A.load(x,typeof w!='string'?this.getData():w);};CKEDITOR.editor.prototype.focus=function(){var v=t(this);if(v)v.focus();};})();CKEDITOR.config.startupMode='wysiwyg';CKEDITOR.config.startupFocus=false;CKEDITOR.config.editingBlock=true;CKEDITOR.plugins.add('panel',{beforeInit:function(t){t.ui.addHandler(2,CKEDITOR.ui.panel.handler);}});CKEDITOR.UI_PANEL=2;CKEDITOR.ui.panel=function(t,u){var v=this;
if(u)CKEDITOR.tools.extend(v,u);CKEDITOR.tools.extend(v,{className:'',css:[]});v.id=CKEDITOR.tools.getNextNumber();v.document=t;v._={blocks:{}};};CKEDITOR.ui.panel.handler={create:function(t){return new CKEDITOR.ui.panel(t);}};CKEDITOR.ui.panel.prototype={renderHtml:function(t){var u=[];this.render(t,u);return u.join('');},render:function(t,u){var w=this;var v='cke_'+w.id;u.push('<div class="',t.skinClass,'" lang="',t.langCode,'" style="display:none;z-index:'+(t.config.baseFloatZIndex+1)+'">'+'<div'+' id=',v,' dir=',t.lang.dir,' class="cke_panel cke_',t.lang.dir);if(w.className)u.push(' ',w.className);u.push('">');if(w.forceIFrame||w.css.length){u.push('<iframe id="',v,'_frame" frameborder="0" src="javascript:void(');u.push(CKEDITOR.env.isCustomDomain()?"(function(){document.open();document.domain='"+document.domain+"';"+'document.close();'+'})()':'0');u.push(')"></iframe>');}u.push('</div></div>');return v;},getHolderElement:function(){var t=this._.holder;if(!t){if(this.forceIFrame||this.css.length){var u=this.document.getById('cke_'+this.id+'_frame'),v=u.getParent(),w=v.getAttribute('dir'),x=v.getParent().getAttribute('class'),y=v.getParent().getAttribute('lang'),z=u.getFrameDocument();z.$.open();if(CKEDITOR.env.isCustomDomain())z.$.domain=document.domain;var A=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(C){this.isLoaded=true;if(this.onLoad)this.onLoad();},this));z.$.write('<!DOCTYPE html><html dir="'+w+'" class="'+x+'_container" lang="'+y+'">'+'<head>'+'<style>.'+x+'_container{visibility:hidden}</style>'+'</head>'+'<body class="cke_'+w+' cke_panel_frame '+CKEDITOR.env.cssClass+'" style="margin:0;padding:0"'+' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction('+A+');">'+'</body>'+'<link type="text/css" rel=stylesheet href="'+this.css.join('"><link type="text/css" rel="stylesheet" href="')+'">'+'</html>');z.$.close();var B=z.getWindow();B.$.CKEDITOR=CKEDITOR;z.on('keydown',function(C){var E=this;var D=C.data.getKeystroke();if(E._.onKeyDown&&E._.onKeyDown(D)===false){C.data.preventDefault();return;}if(D==27)E.onEscape&&E.onEscape();},this);t=z.getBody();}else t=this.document.getById('cke_'+this.id);this._.holder=t;}return t;},addBlock:function(t,u){var v=this;u=v._.blocks[t]=u||new CKEDITOR.ui.panel.block(v.getHolderElement());if(!v._.currentBlock)v.showBlock(t);return u;},getBlock:function(t){return this._.blocks[t];},showBlock:function(t){var x=this;var u=x._.blocks,v=u[t],w=x._.currentBlock;if(w)w.hide();x._.currentBlock=v;
v._.focusIndex=-1;x._.onKeyDown=v.onKeyDown&&CKEDITOR.tools.bind(v.onKeyDown,v);v.show();return v;}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(t){var u=this;u.element=t.append(t.getDocument().createElement('div',{attributes:{'class':'cke_panel_block'},styles:{display:'none'}}));u.keys={};u._.focusIndex=-1;u.element.disableContextMenu();},_:{},proto:{show:function(){this.element.setStyle('display','');},hide:function(){var t=this;if(!t.onHide||t.onHide.call(t)!==true)t.element.setStyle('display','none');},onKeyDown:function(t){var y=this;var u=y.keys[t];switch(u){case 'next':var v=y._.focusIndex,w=y.element.getElementsByTag('a'),x;while(x=w.getItem(++v))if(x.getAttribute('_cke_focus')&&x.$.offsetWidth){y._.focusIndex=v;x.focus();break;}return false;case 'prev':v=y._.focusIndex;w=y.element.getElementsByTag('a');while(v>0&&(x=w.getItem(--v)))if(x.getAttribute('_cke_focus')&&x.$.offsetWidth){y._.focusIndex=v;x.focus();break;}return false;case 'click':v=y._.focusIndex;x=v>=0&&y.element.getElementsByTag('a').getItem(v);if(x)x.$.click?x.$.click():x.$.onclick();return false;}return true;}}});CKEDITOR.plugins.add('listblock',{requires:['panel'],onLoad:function(){CKEDITOR.ui.panel.prototype.addListBlock=function(t,u){return this.addBlock(t,new CKEDITOR.ui.listBlock(this.getHolderElement(),u));};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(t,u){var w=this;w.base(t);w.multiSelect=!!u;var v=w.keys;v[40]='next';v[9]='next';v[38]='prev';v[2000+9]='prev';v[32]='click';w._.pendingHtml=[];w._.items={};w._.groups={};},_:{close:function(){if(this._.started){this._.pendingHtml.push('</ul>');delete this._.started;}},getClick:function(){if(!this._.click)this._.click=CKEDITOR.tools.addFunction(function(t){var v=this;var u=true;if(v.multiSelect)u=v.toggle(t);else v.mark(t);if(v.onClick)v.onClick(t,u);},this);return this._.click;}},proto:{add:function(t,u,v){var y=this;var w=y._.pendingHtml,x='cke_'+CKEDITOR.tools.getNextNumber();if(!y._.started){w.push('<ul class=cke_panel_list>');y._.started=1;}y._.items[t]=x;w.push('<li id=',x,' class=cke_panel_listItem><a _cke_focus=1 hidefocus=true title="',v||t,'" href="javascript:void(\'',t,'\')" onclick="CKEDITOR.tools.callFunction(',y._.getClick(),",'",t,"'); return false;\">",u||t,'</a></li>');},startGroup:function(t){this._.close();var u='cke_'+CKEDITOR.tools.getNextNumber();this._.groups[t]=u;this._.pendingHtml.push('<h1 id=',u,' class=cke_panel_grouptitle>',t,'</h1>');},commit:function(){var t=this;
t._.close();t.element.appendHtml(t._.pendingHtml.join(''));t._.pendingHtml=[];},toggle:function(t){var u=this.isMarked(t);if(u)this.unmark(t);else this.mark(t);return!u;},hideGroup:function(t){var u=this.element.getDocument().getById(this._.groups[t]),v=u&&u.getNext();if(u){u.setStyle('display','none');if(v&&v.getName()=='ul')v.setStyle('display','none');}},hideItem:function(t){this.element.getDocument().getById(this._.items[t]).setStyle('display','none');},showAll:function(){var t=this._.items,u=this._.groups,v=this.element.getDocument();for(var w in t)v.getById(t[w]).setStyle('display','');for(var x in u){var y=v.getById(u[x]),z=y.getNext();y.setStyle('display','');if(z&&z.getName()=='ul')z.setStyle('display','');}},mark:function(t){var u=this;if(!u.multiSelect)u.unmarkAll();u.element.getDocument().getById(u._.items[t]).addClass('cke_selected');},unmark:function(t){this.element.getDocument().getById(this._.items[t]).removeClass('cke_selected');},unmarkAll:function(){var t=this._.items,u=this.element.getDocument();for(var v in t)u.getById(t[v]).removeClass('cke_selected');},isMarked:function(t){return this.element.getDocument().getById(this._.items[t]).hasClass('cke_selected');},focus:function(t){this._.focusIndex=-1;if(t){var u=this.element.getDocument().getById(this._.items[t]).getFirst(),v=this.element.getElementsByTag('a'),w,x=-1;while(w=v.getItem(++x))if(w.equals(u)){this._.focusIndex=x;break;}setTimeout(function(){u.focus();},0);}}}});}});CKEDITOR.plugins.add('dialogui');(function(){var t=function(A){var D=this;D._||(D._={});D._['default']=D._.initValue=A['default']||'';var B=[D._];for(var C=1;C<arguments.length;C++)B.push(arguments[C]);B.push(true);CKEDITOR.tools.extend.apply(CKEDITOR.tools,B);return D._;},u={build:function(A,B,C){return new CKEDITOR.ui.dialog.textInput(A,B,C);}},v={build:function(A,B,C){return new CKEDITOR.ui.dialog[B.type](A,B,C);}},w={isChanged:function(){return this.getValue()!=this.getInitValue();},reset:function(){this.setValue(this.getInitValue());},setInitValue:function(){this._.initValue=this.getValue();},resetInitValue:function(){this._.initValue=this._['default'];},getInitValue:function(){return this._.initValue;}},x=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(A,B){if(!this._.domOnChangeRegistered){A.on('load',function(){this.getInputElement().on('change',function(){this.fire('change',{value:this.getValue()});},this);},this);this._.domOnChangeRegistered=true;}this.on('change',B);
}},true),y=/^on([A-Z]\w+)/,z=function(A){for(var B in A)if(y.test(B)||B=='title'||B=='type')delete A[B];return A;};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(A,B,C,D){if(arguments.length<4)return;var E=t.call(this,B);E.labelId=CKEDITOR.tools.getNextNumber()+'_label';var F=this._.children=[],G=function(){var H=[];if(B.labelLayout!='horizontal')H.push('<div class="cke_dialog_ui_labeled_label" id="',E.labelId,'" >',B.label,'</div>','<div class="cke_dialog_ui_labeled_content">',D(A,B),'</div>');else{var I={type:'hbox',widths:B.widths,padding:0,children:[{type:'html',html:'<span class="cke_dialog_ui_labeled_label" id="'+E.labelId+'">'+CKEDITOR.tools.htmlEncode(B.label)+'</span>'},{type:'html',html:'<span class="cke_dialog_ui_labeled_content">'+D(A,B)+'</span>'}]};CKEDITOR.dialog._.uiElementBuilders.hbox.build(A,I,H);}return H.join('');};CKEDITOR.ui.dialog.uiElement.call(this,A,B,C,'div',null,null,G);},textInput:function(A,B,C){if(arguments.length<3)return;t.call(this,B);var D=this._.inputId=CKEDITOR.tools.getNextNumber()+'_textInput',E={'class':'cke_dialog_ui_input_'+B.type,id:D,type:'text'},F;if(B.validate)this.validate=B.validate;if(B.maxLength)E.maxlength=B.maxLength;if(B.size)E.size=B.size;var G=this,H=false;A.on('load',function(){G.getInputElement().on('keydown',function(J){if(J.data.getKeystroke()==13)H=true;});G.getInputElement().on('keyup',function(J){if(J.data.getKeystroke()==13&&H){A.getButton('ok')&&A.getButton('ok').click();H=false;}},null,null,1000);});var I=function(){var J=['<div class="cke_dialog_ui_input_',B.type,'"'];if(B.width)J.push('style="width:'+B.width+'" ');J.push('><input ');for(var K in E)J.push(K+'="'+E[K]+'" ');J.push(' /></div>');return J.join('');};CKEDITOR.ui.dialog.labeledElement.call(this,A,B,C,I);},textarea:function(A,B,C){if(arguments.length<3)return;t.call(this,B);var D=this,E=this._.inputId=CKEDITOR.tools.getNextNumber()+'_textarea',F={};if(B.validate)this.validate=B.validate;F.rows=B.rows||5;F.cols=B.cols||20;var G=function(){var H=['<div class="cke_dialog_ui_input_textarea"><textarea class="cke_dialog_ui_input_textarea" id="',E,'" '];for(var I in F)H.push(I+'="'+CKEDITOR.tools.htmlEncode(F[I])+'" ');H.push('>',CKEDITOR.tools.htmlEncode(D._['default']),'</textarea></div>');return H.join('');};CKEDITOR.ui.dialog.labeledElement.call(this,A,B,C,G);},checkbox:function(A,B,C){if(arguments.length<3)return;var D=t.call(this,B,{'default':!!B['default']});if(B.validate)this.validate=B.validate;var E=function(){var F=CKEDITOR.tools.extend({},B,{id:B.id?B.id+'_checkbox':CKEDITOR.tools.getNextNumber()+'_checkbox'},true),G=[],H={'class':'cke_dialog_ui_checkbox_input',type:'checkbox'};
z(F);if(B['default'])H.checked='checked';D.checkbox=new CKEDITOR.ui.dialog.uiElement(A,F,G,'input',null,H);G.push(' <label for="',H.id,'">',CKEDITOR.tools.htmlEncode(B.label),'</label>');return G.join('');};CKEDITOR.ui.dialog.uiElement.call(this,A,B,C,'span',null,null,E);},radio:function(A,B,C){if(arguments.length<3)return;t.call(this,B);if(!this._['default'])this._['default']=this._.initValue=B.items[0][1];if(B.validate)this.validate=B.valdiate;var D=[],E=this,F=function(){var G=[],H=[],I={'class':'cke_dialog_ui_radio_item'},J=B.id?B.id+'_radio':CKEDITOR.tools.getNextNumber()+'_radio';for(var K=0;K<B.items.length;K++){var L=B.items[K],M=L[2]!==undefined?L[2]:L[0],N=L[1]!==undefined?L[1]:L[0],O=CKEDITOR.tools.extend({},B,{id:CKEDITOR.tools.getNextNumber()+'_radio_input',title:null,type:null},true),P=CKEDITOR.tools.extend({},O,{id:null,title:M},true),Q={type:'radio','class':'cke_dialog_ui_radio_input',name:J,value:N},R=[];if(E._['default']==N)Q.checked='checked';z(O);z(P);D.push(new CKEDITOR.ui.dialog.uiElement(A,O,R,'input',null,Q));R.push(' ');new CKEDITOR.ui.dialog.uiElement(A,P,R,'label',null,{'for':Q.id},L[0]);G.push(R.join(''));}new CKEDITOR.ui.dialog.hbox(A,[],G,H);return H.join('');};CKEDITOR.ui.dialog.labeledElement.call(this,A,B,C,F);this._.children=D;},button:function(A,B,C){if(!arguments.length)return;if(typeof B=='function')B=B(A.getParentEditor());t.call(this,B,{disabled:B.disabled||false});CKEDITOR.event.implementOn(this);var D=this;A.on('load',function(F){var G=this.getElement();(function(){G.on('click',function(H){D.fire('click',{dialog:D.getDialog()});H.data.preventDefault();});})();G.unselectable();},this);var E=CKEDITOR.tools.extend({},B);delete E.style;CKEDITOR.ui.dialog.uiElement.call(this,A,E,C,'a',null,{style:B.style,href:'javascript:void(0)',title:B.label,hidefocus:'true','class':B['class']},'<span class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(B.label)+'</span>');},select:function(A,B,C){if(arguments.length<3)return;var D=t.call(this,B);if(B.validate)this.validate=B.validate;var E=function(){var F=CKEDITOR.tools.extend({},B,{id:B.id?B.id+'_select':CKEDITOR.tools.getNextNumber()+'_select'},true),G=[],H=[],I={'class':'cke_dialog_ui_input_select'};if(B.size!=undefined)I.size=B.size;if(B.multiple!=undefined)I.multiple=B.multiple;z(F);for(var J=0,K;J<B.items.length&&(K=B.items[J]);J++)H.push('<option value="',CKEDITOR.tools.htmlEncode(K[1]!==undefined?K[1]:K[0]),'" /> ',CKEDITOR.tools.htmlEncode(K[0]));D.select=new CKEDITOR.ui.dialog.uiElement(A,F,G,'select',null,I,H.join(''));
return G.join('');};CKEDITOR.ui.dialog.labeledElement.call(this,A,B,C,E);},file:function(A,B,C){if(arguments.length<3)return;if(B['default']===undefined)B['default']='';var D=CKEDITOR.tools.extend(t.call(this,B),{definition:B,buttons:[]});if(B.validate)this.validate=B.validate;var E=function(){D.frameId=CKEDITOR.tools.getNextNumber()+'_fileInput';var F=CKEDITOR.env.isCustomDomain(),G=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" id="',D.frameId,'" title="',B.label,'" src="javascript:void('];G.push(F?"(function(){document.open();document.domain='"+document.domain+"';"+'document.close();'+'})()':'0');G.push(')"></iframe>');return G.join('');};A.on('load',function(){var F=CKEDITOR.document.getById(D.frameId),G=F.getParent();G.addClass('cke_dialog_ui_input_file');});CKEDITOR.ui.dialog.labeledElement.call(this,A,B,C,E);},fileButton:function(A,B,C){if(arguments.length<3)return;var D=t.call(this,B),E=this;if(B.validate)this.validate=B.validate;var F=CKEDITOR.tools.extend({},B),G=F.onClick;F.className=(F.className?F.className+' ':'')+('cke_dialog_ui_button');F.onClick=function(H){var I=B['for'];if(!G||G.call(this,H)!==false){A.getContentElement(I[0],I[1]).submit();this.disable();}};A.on('load',function(){A.getContentElement(B['for'][0],B['for'][1])._.buttons.push(E);});CKEDITOR.ui.dialog.button.call(this,A,F,C);},html:(function(){var A=/^\s*<[\w:]+\s+([^>]*)?>/,B=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,C=/\/$/;return function(D,E,F){if(arguments.length<3)return;var G=[],H,I=E.html,J,K;if(I.charAt(0)!='<')I='<span>'+I+'</span>';if(E.focus){var L=this.focus;this.focus=function(){L.call(this);E.focus.call(this);this.fire('focus');};if(E.isFocusable){var M=this.isFocusable;this.isFocusable=M;}this.keyboardFocusable=true;}CKEDITOR.ui.dialog.uiElement.call(this,D,E,G,'span',null,null,'');H=G.join('');J=H.match(A);K=I.match(B)||['','',''];if(C.test(K[1])){K[1]=K[1].slice(0,-1);K[2]='/'+K[2];}F.push([K[1],' ',J[1]||'',K[2]].join(''));};})()},true);CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement();CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement(),{setLabel:function(A){var B=CKEDITOR.document.getById(this._.labelId);if(B.getChildCount()<1)new CKEDITOR.dom.text(A,CKEDITOR.document).appendTo(B);else B.getChild(0).$.nodeValue=A;return this;},getLabel:function(){var A=CKEDITOR.document.getById(this._.labelId);if(!A||A.getChildCount()<1)return '';else return A.getChild(0).getText();
},eventProcessors:x},true);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement(),{click:function(){var A=this;if(!A._.disabled)return A.fire('click',{dialog:A._.dialog});A.getElement().$.blur();return false;},enable:function(){this._.disabled=false;var A=this.getElement();A&&A.removeClass('disabled');},disable:function(){this._.disabled=true;this.getElement().addClass('disabled');},isVisible:function(){return!!this.getElement().$.firstChild.offsetHeight;},isEnabled:function(){return!this._.disabled;},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(A,B){this.on('click',B);}},true),accessKeyUp:function(){this.click();},accessKeyDown:function(){this.focus();},keyboardFocusable:true},true);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement(),{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId);},focus:function(){var A=this.selectParentTab();setTimeout(function(){var B=A.getInputElement();B&&B.$.focus();},0);},select:function(){var A=this.selectParentTab();setTimeout(function(){var B=A.getInputElement();if(B){B.$.focus();B.$.select();}},0);},accessKeyUp:function(){this.select();},setValue:function(A){A=A||'';return CKEDITOR.ui.dialog.uiElement.prototype.setValue.call(this,A);},keyboardFocusable:true},w,true);CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput();CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement(),{getInputElement:function(){return this._.select.getElement();},add:function(A,B,C){var D=new CKEDITOR.dom.element('option',this.getDialog().getParentEditor().document),E=this.getInputElement().$;D.$.text=A;D.$.value=B===undefined||B===null?A:B;if(C===undefined||C===null){if(CKEDITOR.env.ie)E.add(D.$);else E.add(D.$,null);}else E.add(D.$,C);return this;},remove:function(A){var B=this.getInputElement().$;B.remove(A);return this;},clear:function(){var A=this.getInputElement().$;while(A.length>0)A.remove(0);return this;},keyboardFocusable:true},w,true);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement(),{getInputElement:function(){return this._.checkbox.getElement();},setValue:function(A){this.getInputElement().$.checked=A;this.fire('change',{value:A});},getValue:function(){return this.getInputElement().$.checked;},accessKeyUp:function(){this.setValue(!this.getValue());},eventProcessors:{onChange:function(A,B){if(!CKEDITOR.env.ie)return x.onChange.apply(this,arguments);
else{A.on('load',function(){var C=this._.checkbox.getElement();C.on('propertychange',function(D){D=D.data.$;if(D.propertyName=='checked')this.fire('change',{value:C.$.checked});},this);},this);this.on('change',B);}return null;}},keyboardFocusable:true},w,true);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement(),{setValue:function(A){var B=this._.children,C;for(var D=0;D<B.length&&(C=B[D]);D++)C.getElement().$.checked=C.getValue()==A;this.fire('change',{value:A});},getValue:function(){var A=this._.children;for(var B=0;B<A.length;B++)if(A[B].getElement().$.checked)return A[B].getValue();return null;},accessKeyUp:function(){var A=this._.children,B;for(B=0;B<A.length;B++)if(A[B].getElement().$.checked){A[B].getElement().focus();return;}A[0].getElement().focus();},eventProcessors:{onChange:function(A,B){if(!CKEDITOR.env.ie)return x.onChange.apply(this,arguments);else{A.on('load',function(){var C=this._.children,D=this;for(var E=0;E<C.length;E++){var F=C[E].getElement();F.on('propertychange',function(G){G=G.data.$;if(G.propertyName=='checked'&&this.$.checked)D.fire('change',{value:this.getAttribute('value')});});}},this);this.on('change',B);}return null;}},keyboardFocusable:true},w,true);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement(),w,{getInputElement:function(){var A=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return A.$.forms.length>0?new CKEDITOR.dom.element(A.$.forms[0].elements[0]):this.getElement();},submit:function(){this.getInputElement().getParent().$.submit();return this;},getAction:function(A){return this.getInputElement().getParent().$.action;},reset:function(){var A=CKEDITOR.document.getById(this._.frameId),B=A.getFrameDocument(),C=this._.definition,D=this._.buttons;function E(){B.$.open();if(CKEDITOR.env.isCustomDomain())B.$.domain=document.domain;var F='';if(C.size)F=C.size-(CKEDITOR.env.ie?7:0);B.$.write(['<html><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" action="',CKEDITOR.tools.htmlEncode(C.action),'">','<input type="file" name="',CKEDITOR.tools.htmlEncode(C.id||'cke_upload'),'" size="',CKEDITOR.tools.htmlEncode(F>0?F:''),'" />','</form>','</body></html>'].join(''));B.$.close();for(var G=0;G<D.length;G++)D[G].enable();};if(CKEDITOR.env.gecko)setTimeout(E,500);else E();},getValue:function(){return '';},eventProcessors:x,keyboardFocusable:true},true);
CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button();CKEDITOR.dialog.addUIElement('text',u);CKEDITOR.dialog.addUIElement('password',u);CKEDITOR.dialog.addUIElement('textarea',v);CKEDITOR.dialog.addUIElement('checkbox',v);CKEDITOR.dialog.addUIElement('radio',v);CKEDITOR.dialog.addUIElement('button',v);CKEDITOR.dialog.addUIElement('select',v);CKEDITOR.dialog.addUIElement('file',v);CKEDITOR.dialog.addUIElement('fileButton',v);CKEDITOR.dialog.addUIElement('html',v);})();CKEDITOR.skins.add('galeus',(function(){var t=[];if(CKEDITOR.env.ie&&CKEDITOR.env.version<7)t.push('icons.png','images/sprites_ie6.png','images/dialog_sides.gif');return{preload:t,editor:{css:['editor.css']},dialog:{css:['dialog.css']},templates:{css:['templates.css']},margins:[0,14,18,14]};})());if(CKEDITOR.dialog)CKEDITOR.dialog.on('resize',function(t){var u=t.data,v=u.width,w=u.height,x=u.dialog,y=!CKEDITOR.env.quirk;if(u.skin!='galeus')return;x.parts.contents.setStyles({width:v+'px',height:w+'px'});if(!CKEDITOR.env.ie)return;setTimeout(function(){var z=x.parts.contents,A=z.getParent(),B=A.getParent(),C=B.getChild(2);C.setStyle('width',A.$.offsetWidth+'px');C=B.getChild(7);C.setStyle('width',A.$.offsetWidth-28+'px');C=B.getChild(4);C.setStyle('height',A.$.offsetHeight-31-14+'px');C=B.getChild(5);C.setStyle('height',A.$.offsetHeight-31-14+'px');},100);});CKEDITOR.themes.add('default',(function(){return{build:function(t,u){var v=t.name,w=t.element,x=t.elementMode;if(!w||x==0)return;if(x==1)w.hide();var y=t.fire('themeSpace',{space:'top',html:''}).html,z=t.fire('themeSpace',{space:'contents',html:''}).html,A=t.fireOnce('themeSpace',{space:'bottom',html:''}).html,B=z&&t.config.height,C=t.config.tabIndex||t.element.getAttribute('tabindex')||0;if(!z)B='auto';else if(!isNaN(B))B+='px';var D='',E=t.config.width;if(E){if(!isNaN(E))E+='px';D+='width: '+E+';';}var F=CKEDITOR.dom.element.createFromHtml(['<span id="cke_',v,'" onmousedown="return false;" class="',t.skinClass,'" dir="',t.lang.dir,'" title="',CKEDITOR.env.gecko?' ':'','" lang="',t.langCode,'" tabindex="'+C+'"'+(D?' style="'+D+'"':'')+'>'+'<span class="',CKEDITOR.env.cssClass,'"><span class="cke_wrapper cke_',t.lang.dir,'"><table class="cke_editor" border="0" cellspacing="0" cellpadding="0"><tbody><tr',y?'':' style="display:none"','><td id="cke_top_',v,'" class="cke_top">',y,'</td></tr><tr',z?'':' style="display:none"','><td id="cke_contents_',v,'" class="cke_contents" style="height:',B,'">',z,'</td></tr><tr',A?'':' style="display:none"','><td id="cke_bottom_',v,'" class="cke_bottom">',A,'</td></tr></tbody></table><style>.',t.skinClass,'{visibility:hidden;}</style></span></span></span>'].join(''));
F.getChild([0,0,0,0,0]).unselectable();F.getChild([0,0,0,0,2]).unselectable();if(x==1)F.insertAfter(w);else w.append(F);t.container=F;F.disableContextMenu();t.fireOnce('themeLoaded');t.fireOnce('uiReady');},buildDialog:function(t){var u=CKEDITOR.tools.getNextNumber(),v=CKEDITOR.dom.element.createFromHtml(['<div id="cke_'+t.name.replace('.','\\.')+'_dialog" class="cke_skin_',t.skinName,'" dir="',t.lang.dir,'" lang="',t.langCode,'"><div class="cke_dialog',' '+CKEDITOR.env.cssClass,' cke_',t.lang.dir,'" style="position:absolute"><div class="%body"><div id="%title#" class="%title"></div><div id="%close_button#" class="%close_button"><span>X</span></div><div id="%tabs#" class="%tabs"></div><div id="%contents#" class="%contents"></div><div id="%footer#" class="%footer"></div></div><div id="%tl#" class="%tl"></div><div id="%tc#" class="%tc"></div><div id="%tr#" class="%tr"></div><div id="%ml#" class="%ml"></div><div id="%mr#" class="%mr"></div><div id="%bl#" class="%bl"></div><div id="%bc#" class="%bc"></div><div id="%br#" class="%br"></div></div>',CKEDITOR.env.ie?'':'<style>.cke_dialog{visibility:hidden;}</style>','</div>'].join('').replace(/#/g,'_'+u).replace(/%/g,'cke_dialog_')),w=v.getChild([0,0]);w.getChild(0).unselectable();w.getChild(1).unselectable();return{element:v,parts:{dialog:v.getChild(0),title:w.getChild(0),close:w.getChild(1),tabs:w.getChild(2),contents:w.getChild(3),footer:w.getChild(4)}};},destroy:function(t){var u=t.container,v=t.panels;if(CKEDITOR.env.ie){u.setStyle('display','none');var w=document.body.createTextRange();w.moveToElementText(u.$);try{w.select();}catch(y){}}if(u)u.remove();for(var x=0;v&&x<v.length;x++)v[x].remove();if(t.elementMode==1){t.element.show();delete t.element;}}};})());CKEDITOR.editor.prototype.getThemeSpace=function(t){var u='cke_'+t,v=this._[u]||(this._[u]=CKEDITOR.document.getById(u+'_'+this.name));return v;};CKEDITOR.editor.prototype.resize=function(t,u,v,w){var x=/^\d+$/;if(x.test(t))t+='px';var y=CKEDITOR.document.getById('cke_contents_'+this.name),z=w?y.getAscendant('table').getParent():y.getAscendant('table').getParent().getParent().getParent();CKEDITOR.env.webkit&&z.setStyle('display','none');z.setStyle('width',t);if(CKEDITOR.env.webkit){z.$.offsetWidth;z.setStyle('display','');}var A=v?0:(z.$.offsetHeight||0)-(y.$.clientHeight||0);y.setStyle('height',Math.max(u-A,0)+'px');this.fire('resize');};CKEDITOR.editor.prototype.getResizable=function(){return this.container.getChild([0,0]);};(function(){CKEDITOR.plugins.colordialog={init:function(t){t.addCommand('colordialog',new CKEDITOR.dialogCommand('colordialog'));
CKEDITOR.dialog.add('colordialog',this.path+'dialogs/colordialog.js');}};CKEDITOR.plugins.add('colordialog',CKEDITOR.plugins.colordialog);})();var cke_insertimage_editor=null,floatMenu=null,wimagesContent=null,wInsertImage=null,wsimage_label='Központi képkezelő';function cke_fm_imageSelect(t,u){t.wnd.showSplash();gRPC.request('?base=images&type=images&action=select&id='+u.id+'&module='+u.moduleID+'&field='+u.moduleSubID,cke_fm_imageSelectLoaded);};function makeAttrib(t,u){var v='';if(typeof u=='undefined'||u==null){u='';if(v)u=v.value;}if(u=='')return '';u=u.replace(/&/g,'&amp;');u=u.replace(/\"/g,'&quot;');u=u.replace(/</g,'&lt;');u=u.replace(/>/g,'&gt;');return ' '+t+'="'+u+'"';};function cke_fm_imageSelectLoaded(t){var u=t.split(':'),v='',w='';if(u[0]=='t'){v=u[1];w='<img';w+=makeAttrib('src','/images/images/'+v);w+=makeAttrib('alt');w+=makeAttrib('title');w+=makeAttrib('border');w+=makeAttrib('vspace');w+=makeAttrib('hspace');w+=makeAttrib('width');w+=makeAttrib('height');w+=makeAttrib('id');w+=makeAttrib('dir');w+=makeAttrib('lang');w+=makeAttrib('longdesc');w+=makeAttrib('usemap');w+=makeAttrib('style');w+=' />';}cke_insertimage_editor.insertHtml(w);wInsertImage.close();};CKEDITOR.plugins.add('wsimage',{init:function(t){var u=t.addCommand('wsimage',{exec:function(v){cke_insertimage_editor=v;floatMenu=new floatMenu_Engine();floatMenu.addEvent('show',fm_imageShow);floatMenu.addEvent('select',cke_fm_imageSelect);floatMenu.addEvent('edit',fm_imageEdit);floatMenu.addEvent('delete',fm_imageDelete);floatMenu.addEvent('mkdir',fm_directoryMkDir);floatMenu.addEvent('chdir',fm_directoryChDir);wimagesContent=new window_Engine('imagesContent');wInsertImage=new window_Engine('insertImageFrame');wInsertImage.setContainerStyle({palign:'absmiddle',width:745,padding:'5px',position:'absolute',border:'1px solid #dbdbdb',backgroundColor:'#FFFFFF'});wInsertImage.setRequestCallBack(wInsertImageCallBack);wimagesContent.setFloatMenu(floatMenu);wimagesContent.setFloatMenuMode(1);wInsertImage.open('?base=images&type=images&action=flist','images','image');}});u.modes={wysiwyg:1,source:1};u.canUndo=false;t.ui.addButton('WSImage',{label:wsimage_label,command:'wsimage',className:'ckeditor_wsimage'});}});
