/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

(function(){if(window.CKEDITOR&&window.CKEDITOR.dom)return;if(!window.CKEDITOR)window.CKEDITOR=(function(){var d={timestamp:'B5S15GF',version:'3.6.1 for Wygwam',revision:'7071',_:{},status:'unloaded',basePath:(function(){var g=window.CKEDITOR_BASEPATH||'';if(!g){var h=document.getElementsByTagName('script');for(var i=0;i<h.length;i++){var j=h[i].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(j){g=j[1];break;}}}if(g.indexOf(':/')==-1)if(g.indexOf('/')===0)g=location.href.match(/^.*?:\/\/[^\/]*/)[0]+g;else g=location.href.match(/^[^\?]*\/(?:)/)[0]+g;if(!g)throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return g;})(),getUrl:function(g){if(g.indexOf(':/')==-1&&g.indexOf('/')!==0)g=this.basePath+g;if(this.timestamp&&g.charAt(g.length-1)!='/'&&!/[&?]t=/.test(g))g+=(g.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return g;}},e=window.CKEDITOR_GETURL;if(e){var f=d.getUrl;d.getUrl=function(g){return e.call(d,g)||f.call(d,g);};}return d;})();var d=CKEDITOR;if(!d.event){d.event=function(){};d.event.implementOn=function(e){var f=d.event.prototype;for(var g in f){if(e[g]==undefined)e[g]=f[g];}};d.event.prototype=(function(){var e=function(g){var h=g.getPrivate&&g.getPrivate()||g._||(g._={});return h.events||(h.events={});},f=function(g){this.name=g;this.listeners=[];};f.prototype={getListenerIndex:function(g){for(var h=0,i=this.listeners;h<i.length;h++){if(i[h].fn==g)return h;}return-1;}};return{on:function(g,h,i,j,k){var l=e(this),m=l[g]||(l[g]=new f(g));if(m.getListenerIndex(h)<0){var n=m.listeners;if(!i)i=this;if(isNaN(k))k=10;var o=this,p=function(r,s,t,u){var v={name:g,sender:this,editor:r,data:s,listenerData:j,stop:t,cancel:u,removeListener:function(){o.removeListener(g,h);}};h.call(i,v);return v.data;};p.fn=h;p.priority=k;for(var q=n.length-1;q>=0;q--){if(n[q].priority<=k){n.splice(q+1,0,p);return;}}n.unshift(p);}},fire:(function(){var g=false,h=function(){g=true;},i=false,j=function(){i=true;};return function(k,l,m){var n=e(this)[k],o=g,p=i;g=i=false;if(n){var q=n.listeners;if(q.length){q=q.slice(0);for(var r=0;r<q.length;r++){var s=q[r].call(this,m,l,h,j);if(typeof s!='undefined')l=s;if(g||i)break;}}}var t=i||(typeof l=='undefined'?false:l);g=o;i=p;return t;};})(),fireOnce:function(g,h,i){var j=this.fire(g,h,i);delete e(this)[g];return j;},removeListener:function(g,h){var i=e(this)[g];if(i){var j=i.getListenerIndex(h);if(j>=0)i.listeners.splice(j,1);
}},hasListeners:function(g){var h=e(this)[g];return h&&h.listeners.length>0;}};})();}if(!d.editor){d.ELEMENT_MODE_NONE=0;d.ELEMENT_MODE_REPLACE=1;d.ELEMENT_MODE_APPENDTO=2;d.editor=function(e,f,g,h){var i=this;i._={instanceConfig:e,element:f,data:h};i.elementMode=g||0;d.event.call(i);i._init();};d.editor.replace=function(e,f){var g=e;if(typeof g!='object'){g=document.getElementById(e);if(g&&g.tagName.toLowerCase() in {style:1,script:1,base:1,link:1,meta:1,title:1})g=null;if(!g){var h=0,i=document.getElementsByName(e);while((g=i[h++])&&g.tagName.toLowerCase()!='textarea'){}}if(!g)throw '[CKEDITOR.editor.replace] The element with id or name "'+e+'" was not found.';}g.style.visibility='hidden';return new d.editor(f,g,1);};d.editor.appendTo=function(e,f,g){var h=e;if(typeof h!='object'){h=document.getElementById(e);if(!h)throw '[CKEDITOR.editor.appendTo] The element with id "'+e+'" was not found.';}return new d.editor(f,h,2,g);};d.editor.prototype={_init:function(){var e=d.editor._pending||(d.editor._pending=[]);e.push(this);},fire:function(e,f){return d.event.prototype.fire.call(this,e,f,this);},fireOnce:function(e,f){return d.event.prototype.fireOnce.call(this,e,f,this);}};d.event.implementOn(d.editor.prototype,true);}if(!d.env)d.env=(function(){var e=navigator.userAgent.toLowerCase(),f=window.opera,g={ie:/*@cc_on!@*/false,opera:!!f&&f.version,webkit:e.indexOf(' applewebkit/')>-1,air:e.indexOf(' adobeair/')>-1,mac:e.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:e.indexOf('mobile')>-1,isCustomDomain:function(){if(!this.ie)return false;var j=document.domain,k=window.location.hostname;return j!=k&&j!='['+k+']';},secure:location.protocol=='https:'};g.gecko=navigator.product=='Gecko'&&!g.webkit&&!g.opera;var h=0;if(g.ie){h=parseFloat(e.match(/msie (\d+)/)[1]);g.ie8=!!document.documentMode;g.ie8Compat=document.documentMode==8;g.ie9Compat=document.documentMode==9;g.ie7Compat=h==7&&!document.documentMode||document.documentMode==7;g.ie6Compat=h<7||g.quirks;}if(g.gecko){var i=e.match(/rv:([\d\.]+)/);if(i){i=i[1].split('.');h=i[0]*10000+(i[1]||0)*100+ +(i[2]||0);}}if(g.opera)h=parseFloat(f.version());if(g.air)h=parseFloat(e.match(/ adobeair\/(\d+)/)[1]);if(g.webkit)h=parseFloat(e.match(/ applewebkit\/(\d+)/)[1]);g.version=h;g.isCompatible=!g.mobile&&(g.ie&&h>=6||g.gecko&&h>=10801||g.opera&&h>=9.5||g.air&&h>=1||g.webkit&&h>=522||false);g.cssClass='cke_browser_'+(g.ie?'ie':g.gecko?'gecko':g.opera?'opera':g.webkit?'webkit':'unknown');
if(g.quirks)g.cssClass+=' cke_browser_quirks';if(g.ie){g.cssClass+=' cke_browser_ie'+(g.version<7?'6':g.version>=8?document.documentMode:'7');if(g.quirks)g.cssClass+=' cke_browser_iequirks';}if(g.gecko&&h<10900)g.cssClass+=' cke_browser_gecko18';if(g.air)g.cssClass+=' cke_browser_air';return g;})();var e=d.env;var f=e.ie;if(d.status=='unloaded')(function(){d.event.implementOn(d);d.loadFullCore=function(){if(d.status!='basic_ready'){d.loadFullCore._load=1;return;}delete d.loadFullCore;var h=document.createElement('script');h.type='text/javascript';h.src=d.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(h);};d.loadFullCoreTimeout=0;d.replaceClass='ckeditor';d.replaceByClassEnabled=1;var g=function(h,i,j,k){if(e.isCompatible){if(d.loadFullCore)d.loadFullCore();var l=j(h,i,k);d.add(l);return l;}return null;};d.replace=function(h,i){return g(h,i,d.editor.replace);};d.appendTo=function(h,i,j){return g(h,i,d.editor.appendTo,j);};d.add=function(h){var i=this._.pending||(this._.pending=[]);i.push(h);};d.replaceAll=function(){var h=document.getElementsByTagName('textarea');for(var i=0;i<h.length;i++){var j=null,k=h[i];if(!k.name&&!k.id)continue;if(typeof arguments[0]=='string'){var l=new RegExp('(?:^|\\s)'+arguments[0]+'(?:$|\\s)');if(!l.test(k.className))continue;}else if(typeof arguments[0]=='function'){j={};if(arguments[0](k,j)===false)continue;}this.replace(k,j);}};(function(){var h=function(){var i=d.loadFullCore,j=d.loadFullCoreTimeout;if(d.replaceByClassEnabled)d.replaceAll(d.replaceClass);d.status='basic_ready';if(i&&i._load)i();else if(j)setTimeout(function(){if(d.loadFullCore)d.loadFullCore();},j*1000);};if(window.addEventListener)window.addEventListener('load',h,false);else if(window.attachEvent)window.attachEvent('onload',h);})();d.status='basic_loaded';})();d.dom={};var g=d.dom;(function(){var h=[];d.on('reset',function(){h=[];});d.tools={arrayCompare:function(i,j){if(!i&&!j)return true;if(!i||!j||i.length!=j.length)return false;for(var k=0;k<i.length;k++){if(i[k]!=j[k])return false;}return true;},clone:function(i){var j;if(i&&i instanceof Array){j=[];for(var k=0;k<i.length;k++)j[k]=this.clone(i[k]);return j;}if(i===null||typeof i!='object'||i instanceof String||i instanceof Number||i instanceof Boolean||i instanceof Date||i instanceof RegExp)return i;j=new i.constructor();for(var l in i){var m=i[l];j[l]=this.clone(m);}return j;},capitalize:function(i){return i.charAt(0).toUpperCase()+i.substring(1).toLowerCase();},extend:function(i){var j=arguments.length,k,l;
if(typeof (k=arguments[j-1])=='boolean')j--;else if(typeof (k=arguments[j-2])=='boolean'){l=arguments[j-1];j-=2;}for(var m=1;m<j;m++){var n=arguments[m];for(var o in n){if(k===true||i[o]==undefined)if(!l||o in l)i[o]=n[o];}}return i;},prototypedCopy:function(i){var j=function(){};j.prototype=i;return new j();},isArray:function(i){return!!i&&i instanceof Array;},isEmpty:function(i){for(var j in i){if(i.hasOwnProperty(j))return false;}return true;},cssStyleToDomStyle:(function(){var i=document.createElement('div').style,j=typeof i.cssFloat!='undefined'?'cssFloat':typeof i.styleFloat!='undefined'?'styleFloat':'float';return function(k){if(k=='float')return j;else return k.replace(/-./g,function(l){return l.substr(1).toUpperCase();});};})(),buildStyleHtml:function(i){i=[].concat(i);var j,k=[];for(var l=0;l<i.length;l++){j=i[l];if(/@import|[{}]/.test(j))k.push('<style>'+j+'</style>');else k.push('<link type="text/css" rel=stylesheet href="'+j+'">');}return k.join('');},htmlEncode:function(i){var j=function(n){var o=new g.element('span');o.setText(n);return o.getHtml();},k=j('\n').toLowerCase()=='<br>'?function(n){return j(n).replace(/<br>/gi,'\n');}:j,l=j('>')=='>'?function(n){return k(n).replace(/>/g,'&gt;');}:k,m=j('  ')=='&nbsp; '?function(n){return l(n).replace(/&nbsp;/g,' ');}:l;this.htmlEncode=m;return this.htmlEncode(i);},htmlEncodeAttr:function(i){return i.replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');},getNextNumber:(function(){var i=0;return function(){return++i;};})(),getNextId:function(){return 'cke_'+this.getNextNumber();},override:function(i,j){return j(i);},setTimeout:function(i,j,k,l,m){if(!m)m=window;if(!k)k=m;return m.setTimeout(function(){if(l)i.apply(k,[].concat(l));else i.apply(k);},j||0);},trim:(function(){var i=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(j){return j.replace(i,'');};})(),ltrim:(function(){var i=/^[ \t\n\r]+/g;return function(j){return j.replace(i,'');};})(),rtrim:(function(){var i=/[ \t\n\r]+$/g;return function(j){return j.replace(i,'');};})(),indexOf:Array.prototype.indexOf?function(i,j){return i.indexOf(j);}:function(i,j){for(var k=0,l=i.length;k<l;k++){if(i[k]===j)return k;}return-1;},bind:function(i,j){return function(){return i.apply(j,arguments);};},createClass:function(i){var j=i.$,k=i.base,l=i.privates||i._,m=i.proto,n=i.statics;if(l){var o=j;j=function(){var s=this;var p=s._||(s._={});for(var q in l){var r=l[q];p[q]=typeof r=='function'?d.tools.bind(r,s):r;}o.apply(s,arguments);};}if(k){j.prototype=this.prototypedCopy(k.prototype);
j.prototype['constructor']=j;j.prototype.base=function(){this.base=k.prototype.base;k.apply(this,arguments);this.base=arguments.callee;};}if(m)this.extend(j.prototype,m,true);if(n)this.extend(j,n,true);return j;},addFunction:function(i,j){return h.push(function(){return i.apply(j||this,arguments);})-1;},removeFunction:function(i){h[i]=null;},callFunction:function(i){var j=h[i];return j&&j.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){return function(i){return i+(!i||isNaN(Number(i))?'':'px');};})(),convertToPx:(function(){var i;return function(j){if(!i){i=g.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',d.document);d.document.getBody().append(i);}if(!/%$/.test(j)){i.setStyle('width',j);return i.$.clientWidth;}return j;};})(),repeat:function(i,j){return new Array(j+1).join(i);},tryThese:function(){var i;for(var j=0,k=arguments.length;j<k;j++){var l=arguments[j];try{i=l();break;}catch(m){}}return i;},genKey:function(){return Array.prototype.slice.call(arguments).join('-');}};})();var h=d.tools;d.dtd=(function(){var i=h.extend,j={isindex:1,fieldset:1},k={input:1,button:1,select:1,textarea:1,label:1},l=i({a:1},k),m=i({iframe:1},l),n={hr:1,ul:1,menu:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist: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},o={ins:1,del:1,script:1,style:1},p=i({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,wbr:1},o),q=i({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1,mark:1},p),r=i({p:1},q),s=i({iframe:1},q,k),t={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,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist: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},u=i({a:1},s),v={tr:1},w={'#':1},x=i({param:1},t),y=i({form:1},j,m,n,r),z={li:1},A={style:1,script:1},B={base:1,link:1,meta:1,title:1},C=i(B,A),D={head:1,body:1},E={html:1},F={address:1,blockquote:1,center:1,dir:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};
return{$nonBodyContent:i(E,D,B),$block:F,$blockLimit:{body:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,td:1,th:1,caption:1,form:1},$inline:u,$body:i({script:1,style: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,wbr: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,param:1,audio:1,video:1},$captionBlock:{caption:1,legend: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,mark: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},html:D,head:C,style:w,script:w,body:y,base:{},link:{},meta:{},title:w,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:y,td:y,br:{},wbr:{},th:y,center:y,kbd:u,button:i(r,n),basefont:{},h5:u,h4:u,samp:u,h6:u,ol:z,h1:u,h3:u,option:w,h2:u,form:i(j,m,n,r),select:{optgroup:1,option:1},font:u,ins:u,menu:z,abbr:u,label:u,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:u,tfoot:v,cite:u,li:y,input:{},iframe:y,strong:u,textarea:w,noframes:y,big:u,small:u,span:u,hr:{},dt:u,sub:u,optgroup:{option:1},param:{},bdo:u,'var':u,div:y,object:x,sup:u,dd:y,strike:u,area:{},dir:z,map:i({area:1,form:1,p:1},j,o,n),applet:x,dl:{dt:1,dd:1},del:u,isindex:{},fieldset:i({legend:1},t),thead:v,ul:z,acronym:u,b:u,a:s,blockquote:y,caption:u,i:u,u:u,tbody:v,s:u,address:i(m,r),tt:u,legend:u,q:u,pre:i(p,l),p:u,em:u,dfn:u,section:y,header:y,footer:y,nav:y,article:y,aside:y,figure:y,dialog:y,hgroup:y,mark:u,time:u,meter:u,menu:u,command:u,keygen:u,output:u,progress:x,audio:x,video:x,details:x,datagrid:x,datalist:x};})();var i=d.dtd;g.event=function(j){this.$=j;};g.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var k=this;var j=k.getKey();if(k.$.ctrlKey||k.$.metaKey)j+=1114112;if(k.$.shiftKey)j+=2228224;if(k.$.altKey)j+=4456448;return j;},preventDefault:function(j){var k=this.$;if(k.preventDefault)k.preventDefault();else k.returnValue=false;if(j)this.stopPropagation();},stopPropagation:function(){var j=this.$;if(j.stopPropagation)j.stopPropagation();else j.cancelBubble=true;
},getTarget:function(){var j=this.$.target||this.$.srcElement;return j?new g.node(j):null;}};d.CTRL=1114112;d.SHIFT=2228224;d.ALT=4456448;g.domObject=function(j){if(j)this.$=j;};g.domObject.prototype=(function(){var j=function(k,l){return function(m){if(typeof d!='undefined')k.fire(l,new g.event(m));};};return{getPrivate:function(){var k;if(!(k=this.getCustomData('_')))this.setCustomData('_',k={});return k;},on:function(k){var n=this;var l=n.getCustomData('_cke_nativeListeners');if(!l){l={};n.setCustomData('_cke_nativeListeners',l);}if(!l[k]){var m=l[k]=j(n,k);if(n.$.attachEvent)n.$.attachEvent('on'+k,m);else if(n.$.addEventListener)n.$.addEventListener(k,m,!!d.event.useCapture);}return d.event.prototype.on.apply(n,arguments);},removeListener:function(k){var n=this;d.event.prototype.removeListener.apply(n,arguments);if(!n.hasListeners(k)){var l=n.getCustomData('_cke_nativeListeners'),m=l&&l[k];if(m){if(n.$.detachEvent)n.$.detachEvent('on'+k,m);else if(n.$.removeEventListener)n.$.removeEventListener(k,m,false);delete l[k];}}},removeAllListeners:function(){var n=this;var k=n.getCustomData('_cke_nativeListeners');for(var l in k){var m=k[l];if(n.$.detachEvent)n.$.detachEvent('on'+l,m);else if(n.$.removeEventListener)n.$.removeEventListener(l,m,false);delete k[l];}}};})();(function(j){var k={};d.on('reset',function(){k={};});j.equals=function(l){return l&&l.$===this.$;};j.setCustomData=function(l,m){var n=this.getUniqueId(),o=k[n]||(k[n]={});o[l]=m;return this;};j.getCustomData=function(l){var m=this.$['data-cke-expando'],n=m&&k[m];return n&&n[l];};j.removeCustomData=function(l){var m=this.$['data-cke-expando'],n=m&&k[m],o=n&&n[l];if(typeof o!='undefined')delete n[l];return o||null;};j.clearCustomData=function(){this.removeAllListeners();var l=this.$['data-cke-expando'];l&&delete k[l];};j.getUniqueId=function(){return this.$['data-cke-expando']||(this.$['data-cke-expando']=h.getNextNumber());};d.event.implementOn(j);})(g.domObject.prototype);g.window=function(j){g.domObject.call(this,j);};g.window.prototype=new g.domObject();h.extend(g.window.prototype,{focus:function(){if(e.webkit&&this.$.parent)this.$.parent.focus();this.$.focus();},getViewPaneSize:function(){var j=this.$.document,k=j.compatMode=='CSS1Compat';return{width:(k?j.documentElement.clientWidth:j.body.clientWidth)||0,height:(k?j.documentElement.clientHeight:j.body.clientHeight)||0};},getScrollPosition:function(){var j=this.$;if('pageXOffset' in j)return{x:j.pageXOffset||0,y:j.pageYOffset||0};else{var k=j.document;
return{x:k.documentElement.scrollLeft||k.body.scrollLeft||0,y:k.documentElement.scrollTop||k.body.scrollTop||0};}}});g.document=function(j){g.domObject.call(this,j);};var j=g.document;j.prototype=new g.domObject();h.extend(j.prototype,{appendStyleSheet:function(k){if(this.$.createStyleSheet)this.$.createStyleSheet(k);else{var l=new g.element('link');l.setAttributes({rel:'stylesheet',type:'text/css',href:k});this.getHead().append(l);}},appendStyleText:function(k){var n=this;if(n.$.createStyleSheet){var l=n.$.createStyleSheet('');l.cssText=k;}else{var m=new g.element('style',n);m.append(new g.text(k,n));n.getHead().append(m);}},createElement:function(k,l){var m=new g.element(k,this);if(l){if(l.attributes)m.setAttributes(l.attributes);if(l.styles)m.setStyles(l.styles);}return m;},createText:function(k){return new g.text(k,this);},focus:function(){this.getWindow().focus();},getById:function(k){var l=this.$.getElementById(k);return l?new g.element(l):null;},getByAddress:function(k,l){var m=this.$.documentElement;for(var n=0;m&&n<k.length;n++){var o=k[n];if(!l){m=m.childNodes[o];continue;}var p=-1;for(var q=0;q<m.childNodes.length;q++){var r=m.childNodes[q];if(l===true&&r.nodeType==3&&r.previousSibling&&r.previousSibling.nodeType==3)continue;p++;if(p==o){m=r;break;}}}return m?new g.node(m):null;},getElementsByTag:function(k,l){if(!(f&&!(document.documentMode>8))&&l)k=l+':'+k;return new g.nodeList(this.$.getElementsByTagName(k));},getHead:function(){var k=this.$.getElementsByTagName('head')[0];if(!k)k=this.getDocumentElement().append(new g.element('head'),true);else k=new g.element(k);return(this.getHead=function(){return k;})();},getBody:function(){var k=new g.element(this.$.body);return(this.getBody=function(){return k;})();},getDocumentElement:function(){var k=new g.element(this.$.documentElement);return(this.getDocumentElement=function(){return k;})();},getWindow:function(){var k=new g.window(this.$.parentWindow||this.$.defaultView);return(this.getWindow=function(){return k;})();},write:function(k){var l=this;l.$.open('text/html','replace');e.isCustomDomain()&&(l.$.domain=document.domain);l.$.write(k);l.$.close();}});g.node=function(k){if(k){switch(k.nodeType){case 9:return new j(k);case 1:return new g.element(k);case 3:return new g.text(k);}g.domObject.call(this,k);}return this;};g.node.prototype=new g.domObject();d.NODE_ELEMENT=1;d.NODE_DOCUMENT=9;d.NODE_TEXT=3;d.NODE_COMMENT=8;d.NODE_DOCUMENT_FRAGMENT=11;d.POSITION_IDENTICAL=0;d.POSITION_DISCONNECTED=1;d.POSITION_FOLLOWING=2;
d.POSITION_PRECEDING=4;d.POSITION_IS_CONTAINED=8;d.POSITION_CONTAINS=16;h.extend(g.node.prototype,{appendTo:function(k,l){k.append(this,l);return k;},clone:function(k,l){var m=this.$.cloneNode(k),n=function(o){if(o.nodeType!=1)return;if(!l)o.removeAttribute('id',false);o.removeAttribute('data-cke-expando',false);if(k){var p=o.childNodes;for(var q=0;q<p.length;q++)n(p[q]);}};n(m);return new g.node(m);},hasPrevious:function(){return!!this.$.previousSibling;},hasNext:function(){return!!this.$.nextSibling;},insertAfter:function(k){k.$.parentNode.insertBefore(this.$,k.$.nextSibling);return k;},insertBefore:function(k){k.$.parentNode.insertBefore(this.$,k.$);return k;},insertBeforeMe:function(k){this.$.parentNode.insertBefore(k.$,this.$);return k;},getAddress:function(k){var l=[],m=this.getDocument().$.documentElement,n=this.$;while(n&&n!=m){var o=n.parentNode;if(o)l.unshift(this.getIndex.call({$:n},k));n=o;}return l;},getDocument:function(){return new j(this.$.ownerDocument||this.$.parentNode.ownerDocument);},getIndex:function(k){var l=this.$,m=0;while(l=l.previousSibling){if(k&&l.nodeType==3&&(!l.nodeValue.length||l.previousSibling&&l.previousSibling.nodeType==3))continue;m++;}return m;},getNextSourceNode:function(k,l,m){if(m&&!m.call){var n=m;m=function(q){return!q.equals(n);};}var o=!k&&this.getFirst&&this.getFirst(),p;if(!o){if(this.type==1&&m&&m(this,true)===false)return null;o=this.getNext();}while(!o&&(p=(p||this).getParent())){if(m&&m(p,true)===false)return null;o=p.getNext();}if(!o)return null;if(m&&m(o)===false)return null;if(l&&l!=o.type)return o.getNextSourceNode(false,l,m);return o;},getPreviousSourceNode:function(k,l,m){if(m&&!m.call){var n=m;m=function(q){return!q.equals(n);};}var o=!k&&this.getLast&&this.getLast(),p;if(!o){if(this.type==1&&m&&m(this,true)===false)return null;o=this.getPrevious();}while(!o&&(p=(p||this).getParent())){if(m&&m(p,true)===false)return null;o=p.getPrevious();}if(!o)return null;if(m&&m(o)===false)return null;if(l&&o.type!=l)return o.getPreviousSourceNode(false,l,m);return o;},getPrevious:function(k){var l=this.$,m;do{l=l.previousSibling;m=l&&new g.node(l);}while(m&&k&&!k(m));return m;},getNext:function(k){var l=this.$,m;do{l=l.nextSibling;m=l&&new g.node(l);}while(m&&k&&!k(m));return m;},getParent:function(){var k=this.$.parentNode;return k&&k.nodeType==1?new g.node(k):null;},getParents:function(k){var l=this,m=[];do m[k?'push':'unshift'](l);while(l=l.getParent());return m;},getCommonAncestor:function(k){var m=this;if(k.equals(m))return m;
if(k.contains&&k.contains(m))return k;var l=m.contains?m:m.getParent();do{if(l.contains(k))return l;}while(l=l.getParent());return null;},getPosition:function(k){var l=this.$,m=k.$;if(l.compareDocumentPosition)return l.compareDocumentPosition(m);if(l==m)return 0;if(this.type==1&&k.type==1){if(l.contains){if(l.contains(m))return 16+4;if(m.contains(l))return 8+2;}if('sourceIndex' in l)return l.sourceIndex<0||m.sourceIndex<0?1:l.sourceIndex<m.sourceIndex?4:2;}var n=this.getAddress(),o=k.getAddress(),p=Math.min(n.length,o.length);for(var q=0;q<=p-1;q++){if(n[q]!=o[q]){if(q<p)return n[q]<o[q]?4:2;break;}}return n.length<o.length?16+4:8+2;},getAscendant:function(k,l){var m=this.$,n;if(!l)m=m.parentNode;while(m){if(m.nodeName&&(n=m.nodeName.toLowerCase(),typeof k=='string'?n==k:n in k))return new g.node(m);m=m.parentNode;}return null;},hasAscendant:function(k,l){var m=this.$;if(!l)m=m.parentNode;while(m){if(m.nodeName&&m.nodeName.toLowerCase()==k)return true;m=m.parentNode;}return false;},move:function(k,l){k.append(this.remove(),l);},remove:function(k){var l=this.$,m=l.parentNode;if(m){if(k)for(var n;n=l.firstChild;)m.insertBefore(l.removeChild(n),l);m.removeChild(l);}return this;},replace:function(k){this.insertBefore(k);k.remove();},trim:function(){this.ltrim();this.rtrim();},ltrim:function(){var n=this;var k;while(n.getFirst&&(k=n.getFirst())){if(k.type==3){var l=h.ltrim(k.getText()),m=k.getLength();if(!l){k.remove();continue;}else if(l.length<m){k.split(m-l.length);n.$.removeChild(n.$.firstChild);}}break;}},rtrim:function(){var n=this;var k;while(n.getLast&&(k=n.getLast())){if(k.type==3){var l=h.rtrim(k.getText()),m=k.getLength();if(!l){k.remove();continue;}else if(l.length<m){k.split(l.length);n.$.lastChild.parentNode.removeChild(n.$.lastChild);}}break;}if(!f&&!e.opera){k=n.$.lastChild;if(k&&k.type==1&&k.nodeName.toLowerCase()=='br')k.parentNode.removeChild(k);}},isReadOnly:function(){var k=this;while(k){if(k.type==1){if(k.is('body')||!!k.data('cke-editable'))break;if(k.getAttribute('contentEditable')=='false')return k;else if(k.getAttribute('contentEditable')=='true')break;}k=k.getParent();}return false;}});g.nodeList=function(k){this.$=k;};g.nodeList.prototype={count:function(){return this.$.length;},getItem:function(k){var l=this.$[k];return l?new g.node(l):null;}};g.element=function(k,l){if(typeof k=='string')k=(l?l.$:document).createElement(k);g.domObject.call(this,k);};var k=g.element;k.get=function(l){return l&&(l.$?l:new k(l));};k.prototype=new g.node();
k.createFromHtml=function(l,m){var n=new k('div',m);n.setHtml(l);return n.getFirst().remove();};k.setMarker=function(l,m,n,o){var p=m.getCustomData('list_marker_id')||m.setCustomData('list_marker_id',h.getNextNumber()).getCustomData('list_marker_id'),q=m.getCustomData('list_marker_names')||m.setCustomData('list_marker_names',{}).getCustomData('list_marker_names');l[p]=m;q[n]=1;return m.setCustomData(n,o);};k.clearAllMarkers=function(l){for(var m in l)k.clearMarkers(l,l[m],1);};k.clearMarkers=function(l,m,n){var o=m.getCustomData('list_marker_names'),p=m.getCustomData('list_marker_id');for(var q in o)m.removeCustomData(q);m.removeCustomData('list_marker_names');if(n){m.removeCustomData('list_marker_id');delete l[p];}};h.extend(k.prototype,{type:1,addClass:function(l){var m=this.$.className;if(m){var n=new RegExp('(?:^|\\s)'+l+'(?:\\s|$)','');if(!n.test(m))m+=' '+l;}this.$.className=m||l;},removeClass:function(l){var m=this.getAttribute('class');if(m){var n=new RegExp('(?:^|\\s+)'+l+'(?=\\s|$)','i');if(n.test(m)){m=m.replace(n,'').replace(/^\s+/,'');if(m)this.setAttribute('class',m);else this.removeAttribute('class');}}},hasClass:function(l){var m=new RegExp('(?:^|\\s+)'+l+'(?=\\s|$)','');return m.test(this.getAttribute('class'));},append:function(l,m){var n=this;if(typeof l=='string')l=n.getDocument().createElement(l);if(m)n.$.insertBefore(l.$,n.$.firstChild);else n.$.appendChild(l.$);return l;},appendHtml:function(l){var n=this;if(!n.$.childNodes.length)n.setHtml(l);else{var m=new k('div',n.getDocument());m.setHtml(l);m.moveChildren(n);}},appendText:function(l){if(this.$.text!=undefined)this.$.text+=l;else this.append(new g.text(l));},appendBogus:function(){var n=this;var l=n.getLast();while(l&&l.type==3&&!h.rtrim(l.getText()))l=l.getPrevious();if(!l||!l.is||!l.is('br')){var m=e.opera?n.getDocument().createText(''):n.getDocument().createElement('br');e.gecko&&m.setAttribute('type','_moz');n.append(m);}},breakParent:function(l){var o=this;var m=new g.range(o.getDocument());m.setStartAfter(o);m.setEndAfter(l);var n=m.extractContents();m.insertNode(o.remove());n.insertAfterNode(o);},contains:f||e.webkit?function(l){var m=this.$;return l.type!=1?m.contains(l.getParent().$):m!=l.$&&m.contains(l.$);}:function(l){return!!(this.$.compareDocumentPosition(l.$)&16);},focus:(function(){function l(){try{this.$.focus();}catch(m){}};return function(m){if(m)h.setTimeout(l,100,this);else l.call(this);};})(),getHtml:function(){var l=this.$.innerHTML;return f?l.replace(/<\?[^>]*>/g,''):l;
},getOuterHtml:function(){var m=this;if(m.$.outerHTML)return m.$.outerHTML.replace(/<\?[^>]*>/,'');var l=m.$.ownerDocument.createElement('div');l.appendChild(m.$.cloneNode(true));return l.innerHTML;},setHtml:function(l){return this.$.innerHTML=l;},setText:function(l){k.prototype.setText=this.$.innerText!=undefined?function(m){return this.$.innerText=m;}:function(m){return this.$.textContent=m;};return this.setText(l);},getAttribute:(function(){var l=function(m){return this.$.getAttribute(m,2);};if(f&&(e.ie7Compat||e.ie6Compat))return function(m){var q=this;switch(m){case 'class':m='className';break;case 'http-equiv':m='httpEquiv';break;case 'name':return q.$.name;case 'tabindex':var n=l.call(q,m);if(n!==0&&q.$.tabIndex===0)n=null;return n;break;case 'checked':var o=q.$.attributes.getNamedItem(m),p=o.specified?o.nodeValue:q.$.checked;return p?'checked':null;case 'hspace':case 'value':return q.$[m];case 'style':return q.$.style.cssText;}return l.call(q,m);};else return l;})(),getChildren:function(){return new g.nodeList(this.$.childNodes);},getComputedStyle:f?function(l){return this.$.currentStyle[h.cssStyleToDomStyle(l)];}:function(l){return this.getWindow().$.getComputedStyle(this.$,'').getPropertyValue(l);},getDtd:function(){var l=i[this.getName()];this.getDtd=function(){return l;};return l;},getElementsByTag:j.prototype.getElementsByTag,getTabIndex:f?function(){var l=this.$.tabIndex;if(l===0&&!i.$tabIndex[this.getName()]&&parseInt(this.getAttribute('tabindex'),10)!==0)l=-1;return l;}:e.webkit?function(){var l=this.$.tabIndex;if(l==undefined){l=parseInt(this.getAttribute('tabindex'),10);if(isNaN(l))l=-1;}return l;}: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 l=this.$.nodeName.toLowerCase();if(f&&!(document.documentMode>8)){var m=this.$.scopeName;if(m!='HTML')l=m.toLowerCase()+':'+l;}return(this.getName=function(){return l;})();},getValue:function(){return this.$.value;},getFirst:function(l){var m=this.$.firstChild,n=m&&new g.node(m);if(n&&l&&!l(n))n=n.getNext(l);return n;},getLast:function(l){var m=this.$.lastChild,n=m&&new g.node(m);if(n&&l&&!l(n))n=n.getPrevious(l);return n;},getStyle:function(l){return this.$.style[h.cssStyleToDomStyle(l)];},is:function(){var l=this.getName();for(var m=0;m<arguments.length;m++){if(arguments[m]==l)return true;
}return false;},isEditable:function(){if(this.isReadOnly())return false;var l=this.getName(),m=!i.$nonEditable[l]&&(i[l]||i.span);return m&&m['#'];},isIdentical:function(l){if(this.getName()!=l.getName())return false;var m=this.$.attributes,n=l.$.attributes,o=m.length,p=n.length;for(var q=0;q<o;q++){var r=m[q];if(r.nodeName=='_moz_dirty')continue;if((!f||r.specified&&r.nodeName!='data-cke-expando')&&r.nodeValue!=l.getAttribute(r.nodeName))return false;}if(f)for(q=0;q<p;q++){r=n[q];if(r.specified&&r.nodeName!='data-cke-expando'&&r.nodeValue!=this.getAttribute(r.nodeName))return false;}return true;},isVisible:function(){var l=!!this.$.offsetHeight&&this.getComputedStyle('visibility')!='hidden',m,n;if(l&&(e.webkit||e.opera)){m=this.getWindow();if(!m.equals(d.document.getWindow())&&(n=m.$.frameElement))l=new k(n).isVisible();}return l;},isEmptyInlineRemoveable:function(){if(!i.$removeEmpty[this.getName()])return false;var l=this.getChildren();for(var m=0,n=l.count();m<n;m++){var o=l.getItem(m);if(o.type==1&&o.data('cke-bookmark'))continue;if(o.type==1&&!o.isEmptyInlineRemoveable()||o.type==3&&h.trim(o.getText()))return false;}return true;},hasAttributes:f&&(e.ie7Compat||e.ie6Compat)?function(){var l=this.$.attributes;for(var m=0;m<l.length;m++){var n=l[m];switch(n.nodeName){case 'class':if(this.getAttribute('class'))return true;case 'data-cke-expando':continue;default:if(n.specified)return true;}}return false;}:function(){var l=this.$.attributes,m=l.length,n={'data-cke-expando':1,_moz_dirty:1};return m>0&&(m>2||!n[l[0].nodeName]||m==2&&!n[l[1].nodeName]);},hasAttribute:(function(){function l(m){var n=this.$.attributes.getNamedItem(m);return!!(n&&n.specified);};return f&&e.version<8?function(m){if(m=='name')return!!this.$.name;return l.call(this,m);}:l;})(),hide:function(){this.setStyle('display','none');},moveChildren:function(l,m){var n=this.$;l=l.$;if(n==l)return;var o;if(m)while(o=n.lastChild)l.insertBefore(n.removeChild(o),l.firstChild);else while(o=n.firstChild)l.appendChild(n.removeChild(o));},mergeSiblings:(function(){function l(m,n,o){if(n&&n.type==1){var p=[];while(n.data('cke-bookmark')||n.isEmptyInlineRemoveable()){p.push(n);n=o?n.getNext():n.getPrevious();if(!n||n.type!=1)return;}if(m.isIdentical(n)){var q=o?m.getLast():m.getFirst();while(p.length)p.shift().move(m,!o);n.moveChildren(m,!o);n.remove();if(q&&q.type==1)q.mergeSiblings();}}};return function(m){var n=this;if(!(m===false||i.$removeEmpty[n.getName()]||n.is('a')))return;l(n,n.getNext(),true);
l(n,n.getPrevious());};})(),show:function(){this.setStyles({display:'',visibility:''});},setAttribute:(function(){var l=function(m,n){this.$.setAttribute(m,n);return this;};if(f&&(e.ie7Compat||e.ie6Compat))return function(m,n){var o=this;if(m=='class')o.$.className=n;else if(m=='style')o.$.style.cssText=n;else if(m=='tabindex')o.$.tabIndex=n;else if(m=='checked')o.$.checked=n;else l.apply(o,arguments);return o;};else if(e.ie8Compat&&e.secure)return function(m,n){if(m=='src'&&n.match(/^http:\/\//))try{l.apply(this,arguments);}catch(o){}else l.apply(this,arguments);return this;};else return l;})(),setAttributes:function(l){for(var m in l)this.setAttribute(m,l[m]);return this;},setValue:function(l){this.$.value=l;return this;},removeAttribute:(function(){var l=function(m){this.$.removeAttribute(m);};if(f&&(e.ie7Compat||e.ie6Compat))return function(m){if(m=='class')m='className';else if(m=='tabindex')m='tabIndex';l.call(this,m);};else return l;})(),removeAttributes:function(l){if(h.isArray(l))for(var m=0;m<l.length;m++)this.removeAttribute(l[m]);else for(var n in l)l.hasOwnProperty(n)&&this.removeAttribute(n);},removeStyle:function(l){var m=this;m.setStyle(l,'');if(m.$.style.removeAttribute)m.$.style.removeAttribute(h.cssStyleToDomStyle(l));if(!m.$.style.cssText)m.removeAttribute('style');},setStyle:function(l,m){this.$.style[h.cssStyleToDomStyle(l)]=m;return this;},setStyles:function(l){for(var m in l)this.setStyle(m,l[m]);return this;},setOpacity:function(l){if(f){l=Math.round(l*100);this.setStyle('filter',l>=100?'':'progid:DXImageTransform.Microsoft.Alpha(opacity='+l+')');}else this.setStyle('opacity',l);},unselectable:e.gecko?function(){this.$.style.MozUserSelect='none';this.on('dragstart',function(l){l.data.preventDefault();});}:e.webkit?function(){this.$.style.KhtmlUserSelect='none';this.on('dragstart',function(l){l.data.preventDefault();});}:function(){if(f||e.opera){var l=this.$,m,n=0;l.unselectable='on';while(m=l.all[n++])switch(m.tagName.toLowerCase()){case 'iframe':case 'textarea':case 'input':case 'select':break;default:m.unselectable='on';}}},getPositionedAncestor:function(){var l=this;while(l.getName()!='html'){if(l.getComputedStyle('position')!='static')return l;l=l.getParent();}return null;},getDocumentPosition:function(l){var G=this;var m=0,n=0,o=G.getDocument().getBody(),p=G.getDocument().$.compatMode=='BackCompat',q=G.getDocument();if(document.documentElement.getBoundingClientRect){var r=G.$.getBoundingClientRect(),s=q.$,t=s.documentElement,u=t.clientTop||o.$.clientTop||0,v=t.clientLeft||o.$.clientLeft||0,w=true;
if(f){var x=q.getDocumentElement().contains(G),y=q.getBody().contains(G);w=p&&y||!p&&x;}if(w){m=r.left+(!p&&t.scrollLeft||o.$.scrollLeft);m-=v;n=r.top+(!p&&t.scrollTop||o.$.scrollTop);n-=u;}}else{var z=G,A=null,B;while(z&&!(z.getName()=='body'||z.getName()=='html')){m+=z.$.offsetLeft-z.$.scrollLeft;n+=z.$.offsetTop-z.$.scrollTop;if(!z.equals(G)){m+=z.$.clientLeft||0;n+=z.$.clientTop||0;}var C=A;while(C&&!C.equals(z)){m-=C.$.scrollLeft;n-=C.$.scrollTop;C=C.getParent();}A=z;z=(B=z.$.offsetParent)?new k(B):null;}}if(l){var D=G.getWindow(),E=l.getWindow();if(!D.equals(E)&&D.$.frameElement){var F=new k(D.$.frameElement).getDocumentPosition(l);m+=F.x;n+=F.y;}}if(!document.documentElement.getBoundingClientRect)if(e.gecko&&!p){m+=G.$.clientLeft?1:0;n+=G.$.clientTop?1:0;}return{x:m,y:n};},scrollIntoView:function(l){var r=this;var m=r.getWindow(),n=m.getViewPaneSize().height,o=n*-1;if(l)o+=n;else{o+=r.$.offsetHeight||0;o+=parseInt(r.getComputedStyle('marginBottom')||0,10)||0;}var p=r.getDocumentPosition();o+=p.y;o=o<0?0:o;var q=m.getScrollPosition().y;if(o>q||o<q-n)m.$.scrollTo(0,o);},setState:function(l){var m=this;switch(l){case 1:m.addClass('cke_on');m.removeClass('cke_off');m.removeClass('cke_disabled');break;case 0:m.addClass('cke_disabled');m.removeClass('cke_off');m.removeClass('cke_on');break;default:m.addClass('cke_off');m.removeClass('cke_on');m.removeClass('cke_disabled');break;}},getFrameDocument:function(){var l=this.$;try{l.contentWindow.document;}catch(m){l.src=l.src;if(f&&e.version<7)window.showModalDialog('javascript:document.write("<script>window.setTimeout(function(){window.close();},50);</script>")');}return l&&new j(l.contentWindow.document);},copyAttributes:function(l,m){var s=this;var n=s.$.attributes;m=m||{};for(var o=0;o<n.length;o++){var p=n[o],q=p.nodeName.toLowerCase(),r;if(q in m)continue;if(q=='checked'&&(r=s.getAttribute(q)))l.setAttribute(q,r);else if(p.specified||f&&p.nodeValue&&q=='value'){r=s.getAttribute(q);if(r===null)r=p.nodeValue;l.setAttribute(q,r);}}if(s.$.style.cssText!=='')l.$.style.cssText=s.$.style.cssText;},renameNode:function(l){var o=this;if(o.getName()==l)return;var m=o.getDocument(),n=new k(l,m);o.copyAttributes(n);o.moveChildren(n);o.getParent()&&o.$.parentNode.replaceChild(n.$,o.$);n.$['data-cke-expando']=o.$['data-cke-expando'];o.$=n.$;},getChild:function(l){var m=this.$;if(!l.slice)m=m.childNodes[l];else while(l.length>0&&m)m=m.childNodes[l.shift()];return m?new g.node(m):null;},getChildCount:function(){return this.$.childNodes.length;
},disableContextMenu:function(){this.on('contextmenu',function(l){if(!l.data.getTarget().hasClass('cke_enable_context_menu'))l.data.preventDefault();});},getDirection:function(l){var m=this;return l?m.getComputedStyle('direction')||m.getDirection()||m.getDocument().$.dir||m.getDocument().getBody().getDirection(1):m.getStyle('direction')||m.getAttribute('dir');},data:function(l,m){l='data-'+l;if(m===undefined)return this.getAttribute(l);else if(m===false)this.removeAttribute(l);else this.setAttribute(l,m);return null;}});(function(){var l={width:['border-left-width','border-right-width','padding-left','padding-right'],height:['border-top-width','border-bottom-width','padding-top','padding-bottom']};function m(n){var o=0;for(var p=0,q=l[n].length;p<q;p++)o+=parseInt(this.getComputedStyle(l[n][p])||0,10)||0;return o;};k.prototype.setSize=function(n,o,p){if(typeof o=='number'){if(p&&!(f&&e.quirks))o-=m.call(this,n);this.setStyle(n,o+'px');}};k.prototype.getSize=function(n,o){var p=Math.max(this.$['offset'+h.capitalize(n)],this.$['client'+h.capitalize(n)])||0;if(o)p-=m.call(this,n);return p;};})();d.command=function(l,m){this.uiItems=[];this.exec=function(n){if(this.state==0)return false;if(this.editorFocus)l.focus();return m.exec.call(this,l,n)!==false;};h.extend(this,m,{modes:{wysiwyg:1},editorFocus:1,state:2});d.event.call(this);};d.command.prototype={enable:function(){var l=this;if(l.state==0)l.setState(!l.preserveState||typeof l.previousState=='undefined'?2:l.previousState);},disable:function(){this.setState(0);},setState:function(l){var m=this;if(m.state==l)return false;m.previousState=m.state;m.state=l;m.fire('state');return true;},toggleState:function(){var l=this;if(l.state==2)l.setState(1);else if(l.state==1)l.setState(2);}};d.event.implementOn(d.command.prototype,true);d.ENTER_P=1;d.ENTER_BR=2;d.ENTER_DIV=3;d.config={customConfig:'config.js',autoUpdateElement:true,baseHref:'',contentsCss:d.basePath+'contents.css',contentsLangDirection:'ui',contentsLanguage:'',language:'',defaultLanguage:'en',enterMode:1,forceEnterMode:false,shiftEnterMode:2,corePlugins:'',docType:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',bodyId:'',bodyClass:'',fullPage:false,height:200,plugins:'about,a11yhelp,basicstyles,bidi,blockquote,button,clipboard,colorbutton,colordialog,contextmenu,dialogadvtab,div,elementspath,enterkey,entities,filebrowser,find,flash,font,format,forms,horizontalrule,htmldataprocessor,iframe,image,indent,justify,keystrokes,link,list,liststyle,maximize,newpage,pagebreak,pastefromword,pastetext,popup,preview,print,removeformat,resize,save,scayt,smiley,showblocks,showborders,sourcearea,stylescombo,table,tabletools,specialchar,tab,templates,toolbar,undo,wysiwygarea,wsc',extraPlugins:'',removePlugins:'',protectedSource:[],tabIndex:0,theme:'default',skin:'kama',width:'',baseFloatZIndex:10000};
var l=d.config;d.focusManager=function(m){if(m.focusManager)return m.focusManager;this.hasFocus=false;this._={editor:m};return this;};d.focusManager.prototype={focus:function(){var n=this;if(n._.timer)clearTimeout(n._.timer);if(!n.hasFocus){if(d.currentInstance)d.currentInstance.focusManager.forceBlur();var m=n._.editor;m.container.getChild(1).addClass('cke_focus');n.hasFocus=true;m.fire('focus');}},blur:function(){var m=this;if(m._.timer)clearTimeout(m._.timer);m._.timer=setTimeout(function(){delete m._.timer;m.forceBlur();},100);},forceBlur:function(){if(this.hasFocus){var m=this._.editor;m.container.getChild(1).removeClass('cke_focus');this.hasFocus=false;m.fire('blur');}}};(function(){var m={};d.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,'en-au':1,'en-ca':1,'en-gb':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,ka: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(n,o,p){if(!n||!d.lang.languages[n])n=this.detect(o,n);if(!this[n])d.scriptLoader.load(d.getUrl('lang/'+n+'.js'),function(){p(n,this[n]);},this);else p(n,this[n]);},detect:function(n,o){var p=this.languages;o=o||navigator.userLanguage||navigator.language;var q=o.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),r=q[1],s=q[2];if(p[r+'-'+s])r=r+'-'+s;else if(!p[r])r=null;d.lang.detect=r?function(){return r;}:function(t){return t;};return r||n;}};})();d.scriptLoader=(function(){var m={},n={};return{load:function(o,p,q,r){var s=typeof o=='string';if(s)o=[o];if(!q)q=d;var t=o.length,u=[],v=[],w=function(B){if(p)if(s)p.call(q,B);else p.call(q,u,v);};if(t===0){w(true);return;}var x=function(B,C){(C?u:v).push(B);if(--t<=0){r&&d.document.getDocumentElement().removeStyle('cursor');w(C);}},y=function(B,C){m[B]=1;var D=n[B];delete n[B];for(var E=0;E<D.length;E++)D[E](B,C);},z=function(B){if(m[B]){x(B,true);return;}var C=n[B]||(n[B]=[]);C.push(x);if(C.length>1)return;var D=new k('script');D.setAttributes({type:'text/javascript',src:B});if(p)if(f)D.$.onreadystatechange=function(){if(D.$.readyState=='loaded'||D.$.readyState=='complete'){D.$.onreadystatechange=null;y(B,true);}};else{D.$.onload=function(){setTimeout(function(){y(B,true);},0);};D.$.onerror=function(){y(B,false);};}D.appendTo(d.document.getHead());};r&&d.document.getDocumentElement().setStyle('cursor','wait');for(var A=0;A<t;A++)z(o[A]);}};})();d.resourceManager=function(m,n){var o=this;
o.basePath=m;o.fileName=n;o.registered={};o.loaded={};o.externals={};o._={waitingList:{}};};d.resourceManager.prototype={add:function(m,n){if(this.registered[m])throw '[CKEDITOR.resourceManager.add] The resource name "'+m+'" is already registered.';d.fire(m+h.capitalize(this.fileName)+'Ready',this.registered[m]=n||{});},get:function(m){return this.registered[m]||null;},getPath:function(m){var n=this.externals[m];return d.getUrl(n&&n.dir||this.basePath+m+'/');},getFilePath:function(m){var n=this.externals[m];return d.getUrl(this.getPath(m)+(n&&typeof n.file=='string'?n.file:this.fileName+'.js'));},addExternal:function(m,n,o){m=m.split(',');for(var p=0;p<m.length;p++){var q=m[p];this.externals[q]={dir:n,file:o};}},load:function(m,n,o){if(!h.isArray(m))m=m?[m]:[];var p=this.loaded,q=this.registered,r=[],s={},t={};for(var u=0;u<m.length;u++){var v=m[u];if(!v)continue;if(!p[v]&&!q[v]){var w=this.getFilePath(v);r.push(w);if(!(w in s))s[w]=[];s[w].push(v);}else t[v]=this.get(v);}d.scriptLoader.load(r,function(x,y){if(y.length)throw '[CKEDITOR.resourceManager.load] Resource name "'+s[y[0]].join(',')+'" was not found at "'+y[0]+'".';for(var z=0;z<x.length;z++){var A=s[x[z]];for(var B=0;B<A.length;B++){var C=A[B];t[C]=this.get(C);p[C]=1;}}n.call(o,t);},this);}};d.plugins=new d.resourceManager('plugins/','plugin');var m=d.plugins;m.load=h.override(m.load,function(n){return function(o,p,q){var r={},s=function(t){n.call(this,t,function(u){h.extend(r,u);var v=[];for(var w in u){var x=u[w],y=x&&x.requires;if(y)for(var z=0;z<y.length;z++){if(!r[y[z]])v.push(y[z]);}}if(v.length)s.call(this,v);else{for(w in r){x=r[w];if(x.onLoad&&!x.onLoad._called){x.onLoad();x.onLoad._called=1;}}if(p)p.call(q||window,r);}},this);};s.call(this,o);};});m.setLang=function(n,o,p){var q=this.get(n),r=q.langEntries||(q.langEntries={}),s=q.lang||(q.lang=[]);if(h.indexOf(s,o)==-1)s.push(o);r[o]=p;};d.skins=(function(){var n={},o={},p=function(q,r,s,t){var u=n[r];if(!q.skin){q.skin=u;if(u.init)u.init(q);}var v=function(E){for(var F=0;F<E.length;F++)E[F]=d.getUrl(o[r]+E[F]);};function w(E,F){return E.replace(/url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,function(G,H,I,J){if(/^\/|^\w?:/.test(I))return G;else return 'url('+F+H+I+J+')';});};s=u[s];var x=!s||!!s._isLoaded;if(x)t&&t();else{var y=s._pending||(s._pending=[]);y.push(t);if(y.length>1)return;var z=!s.css||!s.css.length,A=!s.js||!s.js.length,B=function(){if(z&&A){s._isLoaded=1;for(var E=0;E<y.length;E++){if(y[E])y[E]();}}};if(!z){var C=s.css;if(h.isArray(C)){v(C);
for(var D=0;D<C.length;D++)d.document.appendStyleSheet(C[D]);}else{C=w(C,d.getUrl(o[r]));d.document.appendStyleText(C);}s.css=C;z=1;}if(!A){v(s.js);d.scriptLoader.load(s.js,function(){A=1;B();});}B();}};return{add:function(q,r){n[q]=r;r.skinPath=o[q]||(o[q]=d.getUrl('skins/'+q+'/'));},load:function(q,r,s){var t=q.skinName,u=q.skinPath;if(n[t])p(q,t,r,s);else{o[t]=u;d.scriptLoader.load(d.getUrl(u+'skin.js'),function(){p(q,t,r,s);});}}};})();d.themes=new d.resourceManager('themes/','theme');d.ui=function(n){if(n.ui)return n.ui;this._={handlers:{},items:{},editor:n};return this;};var n=d.ui;n.prototype={add:function(o,p,q){this._.items[o]={type:p,command:q.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(o){var t=this;var p=t._.items[o],q=p&&t._.handlers[p.type],r=p&&p.command&&t._.editor.getCommand(p.command),s=q&&q.create.apply(t,p.args);p&&(s=h.extend(s,t._.editor.skin[p.type],true));if(r)r.uiItems.push(s);return s;},addHandler:function(o,p){this._.handlers[o]=p;}};d.event.implementOn(n);(function(){var o=0,p=function(){var A='editor'+ ++o;return d.instances&&d.instances[A]?p():A;},q={},r=function(A){var B=A.config.customConfig;if(!B)return false;B=d.getUrl(B);var C=q[B]||(q[B]={});if(C.fn){C.fn.call(A,A.config);if(d.getUrl(A.config.customConfig)==B||!r(A))A.fireOnce('customConfigLoaded');}else d.scriptLoader.load(B,function(){if(d.editorConfig)C.fn=d.editorConfig;else C.fn=function(){};r(A);});return true;},s=function(A,B){A.on('customConfigLoaded',function(){if(B){if(B.on)for(var C in B.on)A.on(C,B.on[C]);h.extend(A.config,B,true);delete A.config.on;}t(A);});if(B&&B.customConfig!=undefined)A.config.customConfig=B.customConfig;if(!r(A))A.fireOnce('customConfigLoaded');},t=function(A){var B=A.config.skin.split(','),C=B[0],D=d.getUrl(B[1]||'skins/'+C+'/');A.skinName=C;A.skinPath=D;A.skinClass='cke_skin_'+C;A.tabIndex=A.config.tabIndex||A.element.getAttribute('tabindex')||0;A.readOnly=!!(A.config.readOnly||A.element.getAttribute('disabled'));A.fireOnce('configLoaded');w(A);},u=function(A){d.lang.load(A.config.language,A.config.defaultLanguage,function(B,C){A.langCode=B;A.lang=h.prototypedCopy(C);if(e.gecko&&e.version<10900&&A.lang.dir=='rtl')A.lang.dir='ltr';A.fire('langLoaded');var D=A.config;D.contentsLangDirection=='ui'&&(D.contentsLangDirection=A.lang.dir);v(A);});},v=function(A){var B=A.config,C=B.plugins,D=B.extraPlugins,E=B.removePlugins;if(D){var F=new RegExp('(?:^|,)(?:'+D.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');C=C.replace(F,'');
C+=','+D;}if(E){F=new RegExp('(?:^|,)(?:'+E.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');C=C.replace(F,'');}e.air&&(C+=',adobeair');m.load(C.split(','),function(G){var H=[],I=[],J=[];A.plugins=G;for(var K in G){var L=G[K],M=L.lang,N=m.getPath(K),O=null;L.path=N;if(M){O=h.indexOf(M,A.langCode)>=0?A.langCode:M[0];if(!L.langEntries||!L.langEntries[O])J.push(d.getUrl(N+'lang/'+O+'.js'));else{h.extend(A.lang,L.langEntries[O]);O=null;}}I.push(O);H.push(L);}d.scriptLoader.load(J,function(){var P=['beforeInit','init','afterInit'];for(var Q=0;Q<P.length;Q++)for(var R=0;R<H.length;R++){var S=H[R];if(Q===0&&I[R]&&S.lang)h.extend(A.lang,S.langEntries[I[R]]);if(S[P[Q]])S[P[Q]](A);}A.fire('pluginsLoaded');x(A);});});},w=function(A){d.skins.load(A,'editor',function(){u(A);});},x=function(A){var B=A.config.theme;d.themes.load(B,function(){var C=A.theme=d.themes.get(B);C.path=d.themes.getPath(B);C.build(A);if(A.config.autoUpdateElement)y(A);});},y=function(A){var B=A.element;if(A.elementMode==1&&B.is('textarea')){var C=B.$.form&&new k(B.$.form);if(C){function D(){A.updateElement();};C.on('submit',D);if(!C.$.submit.nodeName&&!C.$.submit.length)C.$.submit=h.override(C.$.submit,function(E){return function(){A.updateElement();if(E.apply)E.apply(this,arguments);else E();};});A.on('destroy',function(){C.removeListener('submit',D);});}}};function z(){var A,B=this._.commands,C=this.mode;if(!C)return;for(var D in B){A=B[D];A[A.startDisabled?'disable':this.readOnly&&!A.readOnly?'disable':A.modes[C]?'enable':'disable']();}};d.editor.prototype._init=function(){var C=this;var A=k.get(C._.element),B=C._.instanceConfig;delete C._.element;delete C._.instanceConfig;C._.commands={};C._.styles=[];C.element=A;C.name=A&&C.elementMode==1&&(A.getId()||A.getNameAtt())||p();if(C.name in d.instances)throw '[CKEDITOR.editor] The instance "'+C.name+'" already exists.';C.id=h.getNextId();C.config=h.prototypedCopy(l);C.ui=new n(C);C.focusManager=new d.focusManager(C);d.fire('instanceCreated',null,C);C.on('mode',z,null,null,1);C.on('readOnly',z,null,null,1);s(C,B);};})();h.extend(d.editor.prototype,{addCommand:function(o,p){return this._.commands[o]=new d.command(this,p);},addCss:function(o){this._.styles.push(o);},destroy:function(o){var p=this;if(!o)p.updateElement();p.fire('destroy');p.theme&&p.theme.destroy(p);d.remove(p);d.fire('instanceDestroyed',null,p);},execCommand:function(o,p){var q=this.getCommand(o),r={name:o,commandData:p,command:q};if(q&&q.state!=0)if(this.fire('beforeCommandExec',r)!==true){r.returnValue=q.exec(r.commandData);
if(!q.async&&this.fire('afterCommandExec',r)!==true)return r.returnValue;}return false;},getCommand:function(o){return this._.commands[o];},getData:function(){var q=this;q.fire('beforeGetData');var o=q._.data;if(typeof o!='string'){var p=q.element;if(p&&q.elementMode==1)o=p.is('textarea')?p.getValue():p.getHtml();else o='';}o={dataValue:o};q.fire('getData',o);return o.dataValue;},getSnapshot:function(){var o=this.fire('getSnapshot');if(typeof o!='string'){var p=this.element;if(p&&this.elementMode==1)o=p.is('textarea')?p.getValue():p.getHtml();}return o;},loadSnapshot:function(o){this.fire('loadSnapshot',o);},setData:function(o,p,q){if(p)this.on('dataReady',function(s){s.removeListener();p.call(s.editor);});var r={dataValue:o};!q&&this.fire('setData',r);this._.data=r.dataValue;!q&&this.fire('afterSetData',r);},setReadOnly:function(o){o=o==undefined||o;if(this.readOnly!=o){this.readOnly=o;this.fire('readOnly');}},insertHtml:function(o){this.fire('insertHtml',o);},insertText:function(o){this.fire('insertText',o);},insertElement:function(o){this.fire('insertElement',o);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var q=this;var o=q.element;if(o&&q.elementMode==1){var p=q.getData();if(q.config.htmlEncodeOutput)p=h.htmlEncode(p);if(o.is('textarea'))o.setValue(p);else o.setHtml(p);}}});d.on('loaded',function(){var o=d.editor._pending;if(o){delete d.editor._pending;for(var p=0;p<o.length;p++)o[p]._init();}});d.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:\"[^\"]*\")|(?:'[^']*')|[^\"'>])*)\\/?>))",'g')};};(function(){var o=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,p={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};d.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(q){var D=this;var r,s,t=0,u;while(r=D._.htmlPartsRegex.exec(q)){var v=r.index;if(v>t){var w=q.substring(t,v);if(u)u.push(w);else D.onText(w);}t=D._.htmlPartsRegex.lastIndex;if(s=r[1]){s=s.toLowerCase();if(u&&i.$cdata[s]){D.onCDATA(u.join(''));u=null;}if(!u){D.onTagClose(s);continue;}}if(u){u.push(r[0]);continue;}if(s=r[3]){s=s.toLowerCase();if(/="/.test(s))continue;
var x={},y,z=r[4],A=!!(z&&z.charAt(z.length-1)=='/');if(z)while(y=o.exec(z)){var B=y[1].toLowerCase(),C=y[2]||y[3]||y[4]||'';if(!C&&p[B])x[B]=B;else x[B]=C;}D.onTagOpen(s,x,A);if(!u&&i.$cdata[s])u=[];continue;}if(s=r[2])D.onComment(s);}if(q.length>t)D.onText(q.substring(t,q.length));}};})();d.htmlParser.comment=function(o){this.value=o;this._={isBlockLike:false};};d.htmlParser.comment.prototype={type:8,writeHtml:function(o,p){var q=this.value;if(p){if(!(q=p.onComment(q,this)))return;if(typeof q!='string'){q.parent=this.parent;q.writeHtml(o,p);return;}}o.comment(q);}};(function(){var o=/[\t\r\n ]{2,}|[\t\r\n]/g;d.htmlParser.text=function(p){this.value=p;this._={isBlockLike:false};};d.htmlParser.text.prototype={type:3,writeHtml:function(p,q){var r=this.value;if(q&&!(r=q.onText(r,this)))return;p.text(r);}};})();(function(){d.htmlParser.cdata=function(o){this.value=o;};d.htmlParser.cdata.prototype={type:3,writeHtml:function(o){o.write(this.value);}};})();d.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var o=h.extend({table:1,ul:1,ol:1,dl:1},i.table,i.ul,i.ol,i.dl),p=f&&e.version<8?{dd:1,dt:1}:{},q={ol:1,ul:1},r=h.extend({},{html:1},i.html,i.body,i.head,{style:1,script:1});d.htmlParser.fragment.fromHtml=function(s,t,u){var v=new d.htmlParser(),w=u||new d.htmlParser.fragment(),x=[],y=[],z=w,A=false;function B(E){var F;if(x.length>0)for(var G=0;G<x.length;G++){var H=x[G],I=H.name,J=i[I],K=z.name&&i[z.name];if((!K||K[I])&&(!E||!J||J[E]||!i[E])){if(!F){C();F=1;}H=H.clone();H.parent=z;z=H;x.splice(G,1);G--;}}};function C(){while(y.length)z.add(y.shift());};function D(E,F,G){if(E.previous!==undefined)return;F=F||z||w;var H=z;if(t&&(!F.type||F.name=='body')){var I,J;if(E.attributes&&(J=E.attributes['data-cke-real-element-type']))I=J;else I=E.name;if(I&&!(I in i.$body||I=='body'||E.isOrphan)){z=F;v.onTagOpen(t,{});E.returnPoint=F=z;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=h.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){z=E.returnPoint;delete E.returnPoint;}else z=G?F:H;};v.onTagOpen=function(E,F,G,H){var I=new d.htmlParser.element(E,F);if(I.isUnknown&&G)I.isEmpty=true;I.isOptionalClose=E in p||H;if(i.$removeEmpty[E]){x.push(I);return;}else if(E=='pre')A=true;else if(E=='br'&&A){z.add(new d.htmlParser.text('\n'));return;}if(E=='br'){y.push(I);return;}while(1){var J=z.name,K=J?i[J]||(z._.isBlockLike?i.div:i.span):r;
if(!I.isUnknown&&!z.isUnknown&&!K[E]){if(z.isOptionalClose)v.onTagClose(J);else if(E in q&&J in q){var L=z.children,M=L[L.length-1];if(!(M&&M.name=='li'))D(M=new d.htmlParser.element('li'),z);!I.returnPoint&&(I.returnPoint=z);z=M;}else if(E in i.$listItem&&J!=E)v.onTagOpen(E=='li'?'ul':'dl',{},0,1);else if(J in o&&J!=E){!I.returnPoint&&(I.returnPoint=z);z=z.parent;}else{if(J in i.$inline)x.unshift(z);if(z.parent)D(z,z.parent,1);else{I.isOrphan=1;break;}}}else break;}B(E);C();I.parent=z;if(I.isEmpty)D(I);else z=I;};v.onTagClose=function(E){for(var F=x.length-1;F>=0;F--){if(E==x[F].name){x.splice(F,1);return;}}var G=[],H=[],I=z;while(I!=w&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.returnPoint||I.parent;}if(I!=w){for(F=0;F<G.length;F++){var J=G[F];D(J,J.parent);}z=I;if(z.name=='pre')A=false;if(I._.isBlockLike)C();D(I,I.parent);if(I==z)z=z.parent;x=x.concat(H);}if(E=='body')t=false;};v.onText=function(E){if((!z._.hasInlineStarted||y.length)&&!A){E=h.ltrim(E);if(E.length===0)return;}C();B();if(t&&(!z.type||z.name=='body')&&h.trim(E))this.onTagOpen(t,{},0,1);if(!A)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');z.add(new d.htmlParser.text(E));};v.onCDATA=function(E){z.add(new d.htmlParser.cdata(E));};v.onComment=function(E){C();B();z.add(new d.htmlParser.comment(E));};v.parse(s);C(!f&&1);while(z!=w)D(z,z.parent,1);return w;};d.htmlParser.fragment.prototype={add:function(s,t){var v=this;isNaN(t)&&(t=v.children.length);var u=t>0?v.children[t-1]:null;if(u){if(s._.isBlockLike&&u.type==3){u.value=h.rtrim(u.value);if(u.value.length===0){v.children.pop();v.add(s);return;}}u.next=s;}s.previous=u;s.parent=v;v.children.splice(t,0,s);v._.hasInlineStarted=s.type==3||s.type==1&&!s._.isBlockLike;},writeHtml:function(s,t){var u;this.filterChildren=function(){var v=new d.htmlParser.basicWriter();this.writeChildrenHtml.call(this,v,t,true);var w=v.getHtml();this.children=new d.htmlParser.fragment.fromHtml(w).children;u=1;};!this.name&&t&&t.onFragment(this);this.writeChildrenHtml(s,u?null:t);},writeChildrenHtml:function(s,t){for(var u=0;u<this.children.length;u++)this.children[u].writeHtml(s,t);}};})();d.htmlParser.element=function(o,p){var v=this;v.name=o;v.attributes=p||(p={});v.children=[];var q=p['data-cke-real-element-type']||o||'',r=q.match(/^cke:(.*)/);r&&(q=r[1]);var s=i,t=!!(s.$nonBodyContent[q]||s.$block[q]||s.$listItem[q]||s.$tableContent[q]||s.$nonEditable[q]||q=='br'),u=!!s.$empty[o];v.isEmpty=u;v.isUnknown=!s[o];v._={isBlockLike:t,hasInlineStarted:u||!t};};
d.htmlParser.cssStyle=function(){var o,p=arguments[0],q={};o=p instanceof d.htmlParser.element?p.attributes.style:p;(o||'').replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(r,s,t){s=='font-family'&&(t=t.replace(/["']/g,''));q[s.toLowerCase()]=t;});return{rules:q,populate:function(r){var s=this.toString();if(s)r instanceof k?r.setAttribute('style',s):r instanceof d.htmlParser.element?r.attributes.style=s:r.style=s;},'toString':function(){var r=[];for(var s in q)q[s]&&r.push(s,':',q[s],';');return r.join('');}};};(function(){var o=function(p,q){p=p[0];q=q[0];return p<q?-1:p>q?1:0;};d.htmlParser.element.prototype={type:1,add:d.htmlParser.fragment.prototype.add,clone:function(){return new d.htmlParser.element(this.name,this.attributes);},writeHtml:function(p,q){var r=this.attributes,s=this,t=s.name,u,v,w,x;s.filterChildren=function(){if(!x){var E=new d.htmlParser.basicWriter();d.htmlParser.fragment.prototype.writeChildrenHtml.call(s,E,q);s.children=new d.htmlParser.fragment.fromHtml(E.getHtml(),0,s.clone()).children;x=1;}};if(q){for(;;){if(!(t=q.onElementName(t)))return;s.name=t;if(!(s=q.onElement(s)))return;s.parent=this.parent;if(s.name==t)break;if(s.type!=1){s.writeHtml(p,q);return;}t=s.name;if(!t){for(var y=0,z=this.children.length;y<z;y++)this.children[y].parent=s.parent;this.writeChildrenHtml.call(s,p,x?null:q);return;}}r=s.attributes;}p.openTag(t,r);var A=[];for(var B=0;B<2;B++)for(u in r){v=u;w=r[u];if(B==1)A.push([u,w]);else if(q){for(;;){if(!(v=q.onAttributeName(u))){delete r[u];break;}else if(v!=u){delete r[u];u=v;continue;}else break;}if(v)if((w=q.onAttribute(s,v,w))===false)delete r[v];else r[v]=w;}}if(p.sortAttributes)A.sort(o);var C=A.length;for(B=0;B<C;B++){var D=A[B];p.attribute(D[0],D[1]);}p.openTagClose(t,s.isEmpty);if(!s.isEmpty){this.writeChildrenHtml.call(s,p,x?null:q);p.closeTag(t);}},writeChildrenHtml:function(p,q){d.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments);}};})();(function(){d.htmlParser.filter=h.createClass({$:function(t){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(t)this.addRules(t,10);},proto:{addRules:function(t,u){var v=this;if(typeof u!='number')u=10;p(v._.elementNames,t.elementNames,u);p(v._.attributeNames,t.attributeNames,u);q(v._.elements,t.elements,u);q(v._.attributes,t.attributes,u);v._.text=r(v._.text,t.text,u)||v._.text;v._.comment=r(v._.comment,t.comment,u)||v._.comment;v._.root=r(v._.root,t.root,u)||v._.root;},onElementName:function(t){return o(t,this._.elementNames);
},onAttributeName:function(t){return o(t,this._.attributeNames);},onText:function(t){var u=this._.text;return u?u.filter(t):t;},onComment:function(t,u){var v=this._.comment;return v?v.filter(t,u):t;},onFragment:function(t){var u=this._.root;return u?u.filter(t):t;},onElement:function(t){var y=this;var u=[y._.elements['^'],y._.elements[t.name],y._.elements.$],v,w;for(var x=0;x<3;x++){v=u[x];if(v){w=v.filter(t,y);if(w===false)return null;if(w&&w!=t)return y.onNode(w);if(t.parent&&!t.name)break;}}return t;},onNode:function(t){var u=t.type;return u==1?this.onElement(t):u==3?new d.htmlParser.text(this.onText(t.value)):u==8?new d.htmlParser.comment(this.onComment(t.value)):null;},onAttribute:function(t,u,v){var w=this._.attributes[u];if(w){var x=w.filter(v,t,this);if(x===false)return false;if(typeof x!='undefined')return x;}return v;}}});function o(t,u){for(var v=0;t&&v<u.length;v++){var w=u[v];t=t.replace(w[0],w[1]);}return t;};function p(t,u,v){if(typeof u=='function')u=[u];var w,x,y=t.length,z=u&&u.length;if(z){for(w=0;w<y&&t[w].pri<v;w++){}for(x=z-1;x>=0;x--){var A=u[x];if(A){A.pri=v;t.splice(w,0,A);}}}};function q(t,u,v){if(u)for(var w in u){var x=t[w];t[w]=r(x,u[w],v);if(!x)t.$length++;}};function r(t,u,v){if(u){u.pri=v;if(t){if(!t.splice){if(t.pri>v)t=[u,t];else t=[t,u];t.filter=s;}else p(t,u,v);return t;}else{u.filter=u;return u;}}};function s(t){var u=t.type||t instanceof d.htmlParser.fragment;for(var v=0;v<this.length;v++){if(u)var w=t.type,x=t.name;var y=this[v],z=y.apply(window,arguments);if(z===false)return z;if(u){if(z&&(z.name!=x||z.type!=w))return z;}else if(typeof z!='string')return z;z!=undefined&&(t=z);}return t;};})();d.htmlParser.basicWriter=h.createClass({$:function(){this._={output:[]};},proto:{openTag:function(o,p){this._.output.push('<',o);},openTagClose:function(o,p){if(p)this._.output.push(' />');else this._.output.push('>');},attribute:function(o,p){if(typeof p=='string')p=h.htmlEncodeAttr(p);this._.output.push(' ',o,'="',p,'"');},closeTag:function(o){this._.output.push('</',o,'>');},text:function(o){this._.output.push(o);},comment:function(o){this._.output.push('<!--',o,'-->');},write:function(o){this._.output.push(o);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(o){var p=this._.output.join('');if(o)this.reset();return p;}}});delete d.loadFullCore;d.instances={};d.document=new j(document);d.add=function(o){d.instances[o.name]=o;o.on('focus',function(){if(d.currentInstance!=o){d.currentInstance=o;d.fire('currentInstance');
}});o.on('blur',function(){if(d.currentInstance==o){d.currentInstance=null;d.fire('currentInstance');}});};d.remove=function(o){delete d.instances[o.name];};d.on('instanceDestroyed',function(){if(h.isEmpty(this.instances))d.fire('reset');});d.TRISTATE_ON=1;d.TRISTATE_OFF=2;d.TRISTATE_DISABLED=0;g.comment=h.createClass({base:g.node,$:function(o,p){if(typeof o=='string')o=(p?p.$:document).createComment(o);this.base(o);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var o={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,dd:1,legend:1,caption:1},p={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,form:1,fieldset:1},q=function(r){var s=r.getChildren();for(var t=0,u=s.count();t<u;t++){var v=s.getItem(t);if(v.type==1&&i.$block[v.getName()])return true;}return false;};g.elementPath=function(r){var x=this;var s=null,t=null,u=[],v=r;while(v){if(v.type==1){if(!x.lastElement)x.lastElement=v;var w=v.getName();if(f&&v.$.scopeName!='HTML')w=v.$.scopeName.toLowerCase()+':'+w;if(!t){if(!s&&o[w])s=v;if(p[w])if(!s&&w=='div'&&!q(v))s=v;else t=v;}u.push(v);if(w=='body')break;}v=v.getParent();}x.block=s;x.blockLimit=t;x.elements=u;};})();g.elementPath.prototype={compare:function(o){var p=this.elements,q=o&&o.elements;if(!q||p.length!=q.length)return false;for(var r=0;r<p.length;r++){if(!p[r].equals(q[r]))return false;}return true;},contains:function(o){var p=this.elements;for(var q=0;q<p.length;q++){if(p[q].getName() in o)return p[q];}return null;}};g.text=function(o,p){if(typeof o=='string')o=(p?p.$:document).createTextNode(o);this.$=o;};g.text.prototype=new g.node();h.extend(g.text.prototype,{type:3,getLength:function(){return this.$.nodeValue.length;},getText:function(){return this.$.nodeValue;},setText:function(o){this.$.nodeValue=o;},split:function(o){var t=this;if(f&&o==t.getLength()){var p=t.getDocument().createText('');p.insertAfter(t);return p;}var q=t.getDocument(),r=new g.text(t.$.splitText(o),q);if(e.ie8){var s=new g.text('',q);s.insertAfter(r);s.remove();}return r;},substring:function(o,p){if(typeof p!='number')return this.$.nodeValue.substr(o);else return this.$.nodeValue.substring(o,p);}});g.documentFragment=function(o){o=o||d.document;this.$=o.$.createDocumentFragment();};h.extend(g.documentFragment.prototype,k.prototype,{type:11,insertAfterNode:function(o){o=o.$;o.parentNode.insertBefore(this.$,o.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 o(v,w){if(this._.end)return null;var x,y=this.range,z,A=this.guard,B=this.type,C=v?'getPreviousSourceNode':'getNextSourceNode';if(!this._.start){this._.start=1;y.trim();if(y.collapsed){this.end();return null;}}if(!v&&!this._.guardLTR){var D=y.endContainer,E=D.getChild(y.endOffset);this._.guardLTR=function(I,J){return(!J||!D.equals(I))&&(!E||!I.equals(E))&&(I.type!=1||!J||I.getName()!='body');};}if(v&&!this._.guardRTL){var F=y.startContainer,G=y.startOffset>0&&F.getChild(y.startOffset-1);this._.guardRTL=function(I,J){return(!J||!F.equals(I))&&(!G||!I.equals(G))&&(I.type!=1||!J||I.getName()!='body');};}var H=v?this._.guardRTL:this._.guardLTR;if(A)z=function(I,J){if(H(I,J)===false)return false;return A(I,J);};else z=H;if(this.current)x=this.current[C](false,B,z);else if(v){x=y.endContainer;if(y.endOffset>0){x=x.getChild(y.endOffset-1);if(z(x)===false)x=null;}else x=z(x,true)===false?null:x.getPreviousSourceNode(true,B,z);}else{x=y.startContainer;x=x.getChild(y.startOffset);if(x){if(z(x)===false)x=null;}else x=z(y.startContainer,true)===false?null:y.startContainer.getNextSourceNode(true,B,z);}while(x&&!this._.end){this.current=x;if(!this.evaluator||this.evaluator(x)!==false){if(!w)return x;}else if(w&&this.evaluator)return false;x=x[C](false,B,z);}this.end();return this.current=null;};function p(v){var w,x=null;while(w=o.call(this,v))x=w;return x;};g.walker=h.createClass({$:function(v){this.range=v;this._={};},proto:{end:function(){this._.end=1;},next:function(){return o.call(this);},previous:function(){return o.call(this,1);},checkForward:function(){return o.call(this,0,1)!==false;},checkBackward:function(){return o.call(this,1,1)!==false;},lastForward:function(){return p.call(this);},lastBackward:function(){return p.call(this,1);},reset:function(){delete this.current;this._={};}}});var q={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};k.prototype.isBlockBoundary=function(v){var w=v?h.extend({},i.$block,v||{}):i.$block;return this.getComputedStyle('float')=='none'&&q[this.getComputedStyle('display')]||w[this.getName()];};g.walker.blockBoundary=function(v){return function(w,x){return!(w.type==1&&w.isBlockBoundary(v));};};g.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};g.walker.bookmark=function(v,w){function x(y){return y&&y.getName&&y.getName()=='span'&&y.data('cke-bookmark');};return function(y){var z,A;
z=y&&!y.getName&&(A=y.getParent())&&x(A);z=v?z:z||x(y);return!!(w^z);};};g.walker.whitespaces=function(v){return function(w){var x=w&&w.type==3&&!h.trim(w.getText());return!!(v^x);};};g.walker.invisible=function(v){var w=g.walker.whitespaces();return function(x){var y=w(x)||x.is&&!x.$.offsetHeight;return!!(v^y);};};g.walker.nodeType=function(v,w){return function(x){return!!(w^x.type==v);};};var r=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,s=g.walker.whitespaces(),t=g.walker.bookmark(),u=function(v){return t(v)||s(v)||v.type==1&&v.getName() in i.$inline&&!(v.getName() in i.$empty);};k.prototype.getBogus=function(){var v=this;do v=v.getPreviousSourceNode();while(u(v));if(v&&(!f?v.is&&v.is('br'):v.getText&&r.test(v.getText())))return v;return false;};})();g.range=function(o){var p=this;p.startContainer=null;p.startOffset=null;p.endContainer=null;p.endOffset=null;p.collapsed=true;p.document=o;};(function(){var o=function(w){w.collapsed=w.startContainer&&w.endContainer&&w.startContainer.equals(w.endContainer)&&w.startOffset==w.endOffset;},p=function(w,x,y,z){w.optimizeBookmark();var A=w.startContainer,B=w.endContainer,C=w.startOffset,D=w.endOffset,E,F;if(B.type==3)B=B.split(D);else if(B.getChildCount()>0)if(D>=B.getChildCount()){B=B.append(w.document.createText(''));F=true;}else B=B.getChild(D);if(A.type==3){A.split(C);if(A.equals(B))B=A.getNext();}else if(!C){A=A.getFirst().insertBeforeMe(w.document.createText(''));E=true;}else if(C>=A.getChildCount()){A=A.append(w.document.createText(''));E=true;}else A=A.getChild(C).getPrevious();var G=A.getParents(),H=B.getParents(),I,J,K;for(I=0;I<G.length;I++){J=G[I];K=H[I];if(!J.equals(K))break;}var L=y,M,N,O,P;for(var Q=I;Q<G.length;Q++){M=G[Q];if(L&&!M.equals(A))N=L.append(M.clone());O=M.getNext();while(O){if(O.equals(H[Q])||O.equals(B))break;P=O.getNext();if(x==2)L.append(O.clone(true));else{O.remove();if(x==1)L.append(O);}O=P;}if(L)L=N;}L=y;for(var R=I;R<H.length;R++){M=H[R];if(x>0&&!M.equals(B))N=L.append(M.clone());if(!G[R]||M.$.parentNode!=G[R].$.parentNode){O=M.getPrevious();while(O){if(O.equals(G[R])||O.equals(A))break;P=O.getPrevious();if(x==2)L.$.insertBefore(O.$.cloneNode(true),L.$.firstChild);else{O.remove();if(x==1)L.$.insertBefore(O.$,L.$.firstChild);}O=P;}}if(L)L=N;}if(x==2){var S=w.startContainer;if(S.type==3){S.$.data+=S.$.nextSibling.data;S.$.parentNode.removeChild(S.$.nextSibling);}var T=w.endContainer;if(T.type==3&&T.$.nextSibling){T.$.data+=T.$.nextSibling.data;T.$.parentNode.removeChild(T.$.nextSibling);}}else{if(J&&K&&(A.$.parentNode!=J.$.parentNode||B.$.parentNode!=K.$.parentNode)){var U=K.getIndex();
if(E&&K.$.parentNode==A.$.parentNode)U--;if(z&&J.type==1){var V=k.createFromHtml('<span data-cke-bookmark="1" style="display:none">&nbsp;</span>',w.document);V.insertAfter(J);J.mergeSiblings(false);w.moveToBookmark({startNode:V});}else w.setStart(K.getParent(),U);}w.collapse(true);}if(E)A.remove();if(F&&B.$.parentNode)B.remove();},q={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 r(w){var x=false,y=g.walker.bookmark(true);return function(z){if(y(z))return true;if(z.type==3){if(z.hasAscendant('pre')||h.trim(z.getText()).length)return false;}else if(z.type==1)if(!q[z.getName()])if(!w&&!f&&z.getName()=='br'&&!x)x=true;else return false;return true;};};function s(w){return w.type!=3&&w.getName() in i.$removeEmpty||!h.trim(w.getText())||!!w.getParent().data('cke-bookmark');};var t=new g.walker.whitespaces(),u=new g.walker.bookmark();function v(w){return!t(w)&&!u(w);};g.range.prototype={clone:function(){var x=this;var w=new g.range(x.document);w.startContainer=x.startContainer;w.startOffset=x.startOffset;w.endContainer=x.endContainer;w.endOffset=x.endOffset;w.collapsed=x.collapsed;return w;},collapse:function(w){var x=this;if(w){x.endContainer=x.startContainer;x.endOffset=x.startOffset;}else{x.startContainer=x.endContainer;x.startOffset=x.endOffset;}x.collapsed=true;},cloneContents:function(){var w=new g.documentFragment(this.document);if(!this.collapsed)p(this,2,w);return w;},deleteContents:function(w){if(this.collapsed)return;p(this,0,null,w);},extractContents:function(w){var x=new g.documentFragment(this.document);if(!this.collapsed)p(this,1,x,w);return x;},createBookmark:function(w){var C=this;var x,y,z,A,B=C.collapsed;x=C.document.createElement('span');x.data('cke-bookmark',1);x.setStyle('display','none');x.setHtml('&nbsp;');if(w){z='cke_bm_'+h.getNextNumber();x.setAttribute('id',z+'S');}if(!B){y=x.clone();y.setHtml('&nbsp;');if(w)y.setAttribute('id',z+'E');A=C.clone();A.collapse();A.insertNode(y);}A=C.clone();A.collapse(true);A.insertNode(x);if(y){C.setStartAfter(x);C.setEndBefore(y);}else C.moveToPosition(x,4);return{startNode:w?z+'S':x,endNode:w?z+'E':y,serializable:w,collapsed:B};},createBookmark2:function(w){var E=this;var x=E.startContainer,y=E.endContainer,z=E.startOffset,A=E.endOffset,B=E.collapsed,C,D;if(!x||!y)return{start:0,end:0};if(w){if(x.type==1){C=x.getChild(z);if(C&&C.type==3&&z>0&&C.getPrevious().type==3){x=C;z=0;
}if(C&&C.type==1)z=C.getIndex(1);}while(x.type==3&&(D=x.getPrevious())&&D.type==3){x=D;z+=D.getLength();}if(!B){if(y.type==1){C=y.getChild(A);if(C&&C.type==3&&A>0&&C.getPrevious().type==3){y=C;A=0;}if(C&&C.type==1)A=C.getIndex(1);}while(y.type==3&&(D=y.getPrevious())&&D.type==3){y=D;A+=D.getLength();}}}return{start:x.getAddress(w),end:B?null:y.getAddress(w),startOffset:z,endOffset:A,normalized:w,collapsed:B,is2:true};},moveToBookmark:function(w){var E=this;if(w.is2){var x=E.document.getByAddress(w.start,w.normalized),y=w.startOffset,z=w.end&&E.document.getByAddress(w.end,w.normalized),A=w.endOffset;E.setStart(x,y);if(z)E.setEnd(z,A);else E.collapse(true);}else{var B=w.serializable,C=B?E.document.getById(w.startNode):w.startNode,D=B?E.document.getById(w.endNode):w.endNode;E.setStartBefore(C);C.remove();if(D){E.setEndBefore(D);D.remove();}else E.collapse(true);}},getBoundaryNodes:function(){var B=this;var w=B.startContainer,x=B.endContainer,y=B.startOffset,z=B.endOffset,A;if(w.type==1){A=w.getChildCount();if(A>y)w=w.getChild(y);else if(A<1)w=w.getPreviousSourceNode();else{w=w.$;while(w.lastChild)w=w.lastChild;w=new g.node(w);w=w.getNextSourceNode()||w;}}if(x.type==1){A=x.getChildCount();if(A>z)x=x.getChild(z).getPreviousSourceNode(true);else if(A<1)x=x.getPreviousSourceNode();else{x=x.$;while(x.lastChild)x=x.lastChild;x=new g.node(x);}}if(w.getPosition(x)&2)w=x;return{startNode:w,endNode:x};},getCommonAncestor:function(w,x){var B=this;var y=B.startContainer,z=B.endContainer,A;if(y.equals(z)){if(w&&y.type==1&&B.startOffset==B.endOffset-1)A=y.getChild(B.startOffset);else A=y;}else A=y.getCommonAncestor(z);return x&&!A.is?A.getParent():A;},optimize:function(){var y=this;var w=y.startContainer,x=y.startOffset;if(w.type!=1)if(!x)y.setStartBefore(w);else if(x>=w.getLength())y.setStartAfter(w);w=y.endContainer;x=y.endOffset;if(w.type!=1)if(!x)y.setEndBefore(w);else if(x>=w.getLength())y.setEndAfter(w);},optimizeBookmark:function(){var y=this;var w=y.startContainer,x=y.endContainer;if(w.is&&w.is('span')&&w.data('cke-bookmark'))y.setStartAt(w,3);if(x&&x.is&&x.is('span')&&x.data('cke-bookmark'))y.setEndAt(x,4);},trim:function(w,x){var E=this;var y=E.startContainer,z=E.startOffset,A=E.collapsed;if((!w||A)&&y&&y.type==3){if(!z){z=y.getIndex();y=y.getParent();}else if(z>=y.getLength()){z=y.getIndex()+1;y=y.getParent();}else{var B=y.split(z);z=y.getIndex()+1;y=y.getParent();if(E.startContainer.equals(E.endContainer))E.setEnd(B,E.endOffset-E.startOffset);else if(y.equals(E.endContainer))E.endOffset+=1;
}E.setStart(y,z);if(A){E.collapse(true);return;}}var C=E.endContainer,D=E.endOffset;if(!(x||A)&&C&&C.type==3){if(!D){D=C.getIndex();C=C.getParent();}else if(D>=C.getLength()){D=C.getIndex()+1;C=C.getParent();}else{C.split(D);D=C.getIndex()+1;C=C.getParent();}E.setEnd(C,D);}},enlarge:function(w,x){switch(w){case 1:if(this.collapsed)return;var y=this.getCommonAncestor(),z=this.document.getBody(),A,B,C,D,E,F=false,G,H,I=this.startContainer,J=this.startOffset;if(I.type==3){if(J){I=!h.trim(I.substring(0,J)).length&&I;F=!!I;}if(I)if(!(D=I.getPrevious()))C=I.getParent();}else{if(J)D=I.getChild(J-1)||I.getLast();if(!D)C=I;}while(C||D){if(C&&!D){if(!E&&C.equals(y))E=true;if(!z.contains(C))break;if(!F||C.getComputedStyle('display')!='inline'){F=false;if(E)A=C;else this.setStartBefore(C);}D=C.getPrevious();}while(D){G=false;if(D.type==3){H=D.getText();if(/[^\s\ufeff]/.test(H))D=null;G=/[\s\ufeff]$/.test(H);}else if((D.$.offsetWidth>0||x&&D.is('br'))&&!D.data('cke-bookmark'))if(F&&i.$removeEmpty[D.getName()]){H=D.getText();if(/[^\s\ufeff]/.test(H))D=null;else{var K=D.$.all||D.$.getElementsByTagName('*');for(var L=0,M;M=K[L++];){if(!i.$removeEmpty[M.nodeName.toLowerCase()]){D=null;break;}}}if(D)G=!!H.length;}else D=null;if(G)if(F){if(E)A=C;else if(C)this.setStartBefore(C);}else F=true;if(D){var N=D.getPrevious();if(!C&&!N){C=D;D=null;break;}D=N;}else C=null;}if(C)C=C.getParent();}I=this.endContainer;J=this.endOffset;C=D=null;E=F=false;if(I.type==3){I=!h.trim(I.substring(J)).length&&I;F=!(I&&I.getLength());if(I)if(!(D=I.getNext()))C=I.getParent();}else{D=I.getChild(J);if(!D)C=I;}while(C||D){if(C&&!D){if(!E&&C.equals(y))E=true;if(!z.contains(C))break;if(!F||C.getComputedStyle('display')!='inline'){F=false;if(E)B=C;else if(C)this.setEndAfter(C);}D=C.getNext();}while(D){G=false;if(D.type==3){H=D.getText();if(/[^\s\ufeff]/.test(H))D=null;G=/^[\s\ufeff]/.test(H);}else if((D.$.offsetWidth>0||x&&D.is('br'))&&!D.data('cke-bookmark'))if(F&&i.$removeEmpty[D.getName()]){H=D.getText();if(/[^\s\ufeff]/.test(H))D=null;else{K=D.$.all||D.$.getElementsByTagName('*');for(L=0;M=K[L++];){if(!i.$removeEmpty[M.nodeName.toLowerCase()]){D=null;break;}}}if(D)G=!!H.length;}else D=null;if(G)if(F)if(E)B=C;else this.setEndAfter(C);if(D){N=D.getNext();if(!C&&!N){C=D;D=null;break;}D=N;}else C=null;}if(C)C=C.getParent();}if(A&&B){y=A.contains(B)?B:A;this.setStartBefore(y);this.setEndAfter(y);}break;case 2:case 3:var O=new g.range(this.document);z=this.document.getBody();O.setStartAt(z,1);O.setEnd(this.startContainer,this.startOffset);
var P=new g.walker(O),Q,R,S=g.walker.blockBoundary(w==3?{br:1}:null),T=function(V){var W=S(V);if(!W)Q=V;return W;},U=function(V){var W=T(V);if(!W&&V.is&&V.is('br'))R=V;return W;};P.guard=T;C=P.lastBackward();Q=Q||z;this.setStartAt(Q,!Q.is('br')&&(!C&&this.checkStartOfBlock()||C&&Q.contains(C))?1:4);O=this.clone();O.collapse();O.setEndAt(z,2);P=new g.walker(O);P.guard=w==3?U:T;Q=null;C=P.lastForward();Q=Q||z;this.setEndAt(Q,!C&&this.checkEndOfBlock()||C&&Q.contains(C)?2:3);if(R)this.setEndAfter(R);}},shrink:function(w,x){if(!this.collapsed){w=w||2;var y=this.clone(),z=this.startContainer,A=this.endContainer,B=this.startOffset,C=this.endOffset,D=this.collapsed,E=1,F=1;if(z&&z.type==3)if(!B)y.setStartBefore(z);else if(B>=z.getLength())y.setStartAfter(z);else{y.setStartBefore(z);E=0;}if(A&&A.type==3)if(!C)y.setEndBefore(A);else if(C>=A.getLength())y.setEndAfter(A);else{y.setEndAfter(A);F=0;}var G=new g.walker(y),H=g.walker.bookmark();G.evaluator=function(L){return L.type==(w==1?1:3);};var I;G.guard=function(L,M){if(H(L))return true;if(w==1&&L.type==3)return false;if(M&&L.equals(I))return false;if(!M&&L.type==1)I=L;return true;};if(E){var J=G[w==1?'lastForward':'next']();J&&this.setStartAt(J,x?1:3);}if(F){G.reset();var K=G[w==1?'lastBackward':'previous']();K&&this.setEndAt(K,x?2:4);}return!!(E||F);}},insertNode:function(w){var A=this;A.optimizeBookmark();A.trim(false,true);var x=A.startContainer,y=A.startOffset,z=x.getChild(y);if(z)w.insertBefore(z);else x.append(w);if(w.getParent().equals(A.endContainer))A.endOffset++;A.setStartBefore(w);},moveToPosition:function(w,x){this.setStartAt(w,x);this.collapse(true);},selectNodeContents:function(w){this.setStart(w,0);this.setEnd(w,w.type==3?w.getLength():w.getChildCount());},setStart:function(w,x){var y=this;if(w.type==1&&i.$empty[w.getName()])x=w.getIndex(),w=w.getParent();y.startContainer=w;y.startOffset=x;if(!y.endContainer){y.endContainer=w;y.endOffset=x;}o(y);},setEnd:function(w,x){var y=this;if(w.type==1&&i.$empty[w.getName()])x=w.getIndex()+1,w=w.getParent();y.endContainer=w;y.endOffset=x;if(!y.startContainer){y.startContainer=w;y.startOffset=x;}o(y);},setStartAfter:function(w){this.setStart(w.getParent(),w.getIndex()+1);},setStartBefore:function(w){this.setStart(w.getParent(),w.getIndex());},setEndAfter:function(w){this.setEnd(w.getParent(),w.getIndex()+1);},setEndBefore:function(w){this.setEnd(w.getParent(),w.getIndex());},setStartAt:function(w,x){var y=this;switch(x){case 1:y.setStart(w,0);break;case 2:if(w.type==3)y.setStart(w,w.getLength());
else y.setStart(w,w.getChildCount());break;case 3:y.setStartBefore(w);break;case 4:y.setStartAfter(w);}o(y);},setEndAt:function(w,x){var y=this;switch(x){case 1:y.setEnd(w,0);break;case 2:if(w.type==3)y.setEnd(w,w.getLength());else y.setEnd(w,w.getChildCount());break;case 3:y.setEndBefore(w);break;case 4:y.setEndAfter(w);}o(y);},fixBlock:function(w,x){var A=this;var y=A.createBookmark(),z=A.document.createElement(x);A.collapse(w);A.enlarge(2);A.extractContents().appendTo(z);z.trim();if(!f)z.appendBogus();A.insertNode(z);A.moveToBookmark(y);return z;},splitBlock:function(w){var G=this;var x=new g.elementPath(G.startContainer),y=new g.elementPath(G.endContainer),z=x.blockLimit,A=y.blockLimit,B=x.block,C=y.block,D=null;if(!z.equals(A))return null;if(w!='br'){if(!B){B=G.fixBlock(true,w);C=new g.elementPath(G.endContainer).block;}if(!C)C=G.fixBlock(false,w);}var E=B&&G.checkStartOfBlock(),F=C&&G.checkEndOfBlock();G.deleteContents();if(B&&B.equals(C))if(F){D=new g.elementPath(G.startContainer);G.moveToPosition(C,4);C=null;}else if(E){D=new g.elementPath(G.startContainer);G.moveToPosition(B,3);B=null;}else{C=G.splitElement(B);if(!f&&!B.is('ul','ol'))B.appendBogus();}return{previousBlock:B,nextBlock:C,wasStartOfBlock:E,wasEndOfBlock:F,elementPath:D};},splitElement:function(w){var z=this;if(!z.collapsed)return null;z.setEndAt(w,2);var x=z.extractContents(),y=w.clone(false);x.appendTo(y);y.insertAfter(w);z.moveToPosition(w,4);return y;},checkBoundaryOfElement:function(w,x){var y=x==1,z=this.clone();z.collapse(y);z[y?'setStartAt':'setEndAt'](w,y?1:2);var A=new g.walker(z);A.evaluator=s;return A[y?'checkBackward':'checkForward']();},checkStartOfBlock:function(){var C=this;var w=C.startContainer,x=C.startOffset;if(x&&w.type==3){var y=h.ltrim(w.substring(0,x));if(y.length)return false;}C.trim();var z=new g.elementPath(C.startContainer),A=C.clone();A.collapse(true);A.setStartAt(z.block||z.blockLimit,1);var B=new g.walker(A);B.evaluator=r(true);return B.checkBackward();},checkEndOfBlock:function(){var C=this;var w=C.endContainer,x=C.endOffset;if(w.type==3){var y=h.rtrim(w.substring(x));if(y.length)return false;}C.trim();var z=new g.elementPath(C.endContainer),A=C.clone();A.collapse(false);A.setEndAt(z.block||z.blockLimit,2);var B=new g.walker(A);B.evaluator=r(false);return B.checkForward();},checkReadOnly:(function(){function w(x,y){while(x){if(x.type==1)if(x.getAttribute('contentEditable')=='false'&&!x.data('cke-editable'))return 0;else if(x.is('html')||x.getAttribute('contentEditable')=='true'&&(x.contains(y)||x.equals(y)))break;
x=x.getParent();}return 1;};return function(){var x=this.startContainer,y=this.endContainer;return!(w(x,y)&&w(y,x));};})(),moveToElementEditablePosition:function(w,x){var y;if(i.$empty[w.getName()])return false;while(w&&w.type==1){y=w.isEditable();if(y)this.moveToPosition(w,x?2:1);else if(i.$inline[w.getName()]){this.moveToPosition(w,x?4:3);return true;}if(i.$empty[w.getName()])w=w[x?'getPrevious':'getNext'](v);else w=w[x?'getLast':'getFirst'](v);if(w&&w.type==3){this.moveToPosition(w,x?4:3);return true;}}return y;},moveToElementEditStart:function(w){return this.moveToElementEditablePosition(w);},moveToElementEditEnd:function(w){return this.moveToElementEditablePosition(w,true);},getEnclosedNode:function(){var w=this.clone();w.optimize();if(w.startContainer.type!=1||w.endContainer.type!=1)return null;var x=new g.walker(w),y=g.walker.bookmark(true),z=g.walker.whitespaces(true),A=function(C){return z(C)&&y(C);};w.evaluator=A;var B=x.next();x.reset();return B&&B.equals(x.previous())?B:null;},getTouchedStartNode:function(){var w=this.startContainer;if(this.collapsed||w.type!=1)return w;return w.getChild(this.startOffset)||w;},getTouchedEndNode:function(){var w=this.endContainer;if(this.collapsed||w.type!=1)return w;return w.getChild(this.endOffset-1)||w;}};})();d.POSITION_AFTER_START=1;d.POSITION_BEFORE_END=2;d.POSITION_BEFORE_START=3;d.POSITION_AFTER_END=4;d.ENLARGE_ELEMENT=1;d.ENLARGE_BLOCK_CONTENTS=2;d.ENLARGE_LIST_ITEM_CONTENTS=3;d.START=1;d.END=2;d.STARTEND=3;d.SHRINK_ELEMENT=1;d.SHRINK_TEXT=2;(function(){g.rangeList=function(q){if(q instanceof g.rangeList)return q;if(!q)q=[];else if(q instanceof g.range)q=[q];return h.extend(q,o);};var o={createIterator:function(){var q=this,r=g.walker.bookmark(),s=function(v){return!(v.is&&v.is('tr'));},t=[],u;return{getNextRange:function(v){u=u==undefined?0:u+1;var w=q[u];if(w&&q.length>1){if(!u)for(var x=q.length-1;x>=0;x--)t.unshift(q[x].createBookmark(true));if(v){var y=0;while(q[u+y+1]){var z=w.document,A=0,B=z.getById(t[y].endNode),C=z.getById(t[y+1].startNode),D;while(1){D=B.getNextSourceNode(false);if(!C.equals(D)){if(r(D)||D.type==1&&D.isBlockBoundary()){B=D;continue;}}else A=1;break;}if(!A)break;y++;}}w.moveToBookmark(t.shift());while(y--){D=q[++u];D.moveToBookmark(t.shift());w.setEnd(D.endContainer,D.endOffset);}}return w;}};},createBookmarks:function(q){var v=this;var r=[],s;for(var t=0;t<v.length;t++){r.push(s=v[t].createBookmark(q,true));for(var u=t+1;u<v.length;u++){v[u]=p(s,v[u]);v[u]=p(s,v[u],true);}}return r;
},createBookmarks2:function(q){var r=[];for(var s=0;s<this.length;s++)r.push(this[s].createBookmark2(q));return r;},moveToBookmarks:function(q){for(var r=0;r<this.length;r++)this[r].moveToBookmark(q[r]);}};function p(q,r,s){var t=q.serializable,u=r[s?'endContainer':'startContainer'],v=s?'endOffset':'startOffset',w=t?r.document.getById(q.startNode):q.startNode,x=t?r.document.getById(q.endNode):q.endNode;if(u.equals(w.getPrevious())){r.startOffset=r.startOffset-u.getLength()-x.getPrevious().getLength();u=x.getNext();}else if(u.equals(x.getPrevious())){r.startOffset=r.startOffset-u.getLength();u=x.getNext();}u.equals(w.getParent())&&r[v]++;u.equals(x.getParent())&&r[v]++;r[s?'endContainer':'startContainer']=u;return r;};})();(function(){if(e.webkit){e.hc=false;return;}var o=k.createFromHtml('<div style="width:0px;height:0px;position:absolute;left:-10000px;border: 1px solid;border-color: red blue;"></div>',d.document);o.appendTo(d.document.getHead());try{e.hc=o.getComputedStyle('border-top-color')==o.getComputedStyle('border-right-color');}catch(p){e.hc=false;}if(e.hc)e.cssClass+=' cke_hc';o.remove();})();m.load(l.corePlugins.split(','),function(){d.status='loaded';d.fire('loaded');var o=d._.pending;if(o){delete d._.pending;for(var p=0;p<o.length;p++)d.add(o[p]);}});if(f)try{document.execCommand('BackgroundImageCache',false,true);}catch(o){}d.skins.add('wygwam2',(function(){var p='cke_ui_color';return{editor:{css:['editor.css']},dialog:{css:['dialog.css']},richcombo:{canGroup:false},templates:{css:['templates.css']},margins:[0,0,0,0],init:function(q){if(q.config.width&&!isNaN(q.config.width))q.config.width-=12;var r=[],s=/\$color/g,t='/* UI Color Support */.cke_skin_wygwam2 .cke_menuitem .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_wygwam2 .cke_menuitem a:hover .cke_icon_wrapper,.cke_skin_wygwam2 .cke_menuitem a:focus .cke_icon_wrapper,.cke_skin_wygwam2 .cke_menuitem a:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_wygwam2 .cke_menuitem a:hover .cke_label,.cke_skin_wygwam2 .cke_menuitem a:focus .cke_label,.cke_skin_wygwam2 .cke_menuitem a:active .cke_label{\tbackground-color: $color !important;}.cke_skin_wygwam2 .cke_menuitem a.cke_disabled:hover .cke_label,.cke_skin_wygwam2 .cke_menuitem a.cke_disabled:focus .cke_label,.cke_skin_wygwam2 .cke_menuitem a.cke_disabled:active .cke_label{\tbackground-color: transparent !important;}.cke_skin_wygwam2 .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,.cke_skin_wygwam2 .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,.cke_skin_wygwam2 .cke_menuitem a.cke_disabled:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_wygwam2 .cke_menuitem a.cke_disabled .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_wygwam2 .cke_menuseparator{\tbackground-color: $color !important;}.cke_skin_wygwam2 .cke_menuitem a:hover,.cke_skin_wygwam2 .cke_menuitem a:focus,.cke_skin_wygwam2 .cke_menuitem a:active{\tbackground-color: $color !important;}';
if(e.webkit){t=t.split('}').slice(0,-1);for(var u=0;u<t.length;u++)t[u]=t[u].split('{');}function v(y){var z=y.getById(p);if(!z){z=y.getHead().append('style');z.setAttribute('id',p);z.setAttribute('type','text/css');}return z;};function w(y,z,A){var B,C,D;for(var E=0;E<y.length;E++){if(e.webkit)for(C=0;C<z.length;C++){D=z[C][1];for(B=0;B<A.length;B++)D=D.replace(A[B][0],A[B][1]);y[E].$.sheet.addRule(z[C][0],D);}else{D=z;for(B=0;B<A.length;B++)D=D.replace(A[B][0],A[B][1]);if(f)y[E].$.styleSheet.cssText+=D;else y[E].$.innerHTML+=D;}}};var x=/\$color/g;h.extend(q,{uiColor:null,getUiColor:function(){return this.uiColor;},setUiColor:function(y){var z,A=v(d.document),B='.'+q.id,C=[B+' .cke_wrapper',B+'_dialog .cke_dialog_contents',B+'_dialog a.cke_dialog_tab',B+'_dialog .cke_dialog_footer'].join(','),D='background-color: $color !important;';if(e.webkit)z=[[C,D]];else z=C+'{'+D+'}';return(this.setUiColor=function(E){var F=[[x,E]];q.uiColor=E;w([A],z,F);w(r,t,F);})(y);}});q.on('menuShow',function(y){var z=y.data[0],A=z.element.getElementsByTag('iframe').getItem(0).getFrameDocument();if(!A.getById('cke_ui_color')){var B=v(A);r.push(B);var C=q.getUiColor();if(C)w([B],t,[[x,C]]);}});if(q.config.uiColor)q.setUiColor(q.config.uiColor);}};})());(function(){d.dialog?p():d.on('dialogPluginReady',p);function p(){d.dialog.on('resize',function(q){var r=q.data,s=r.width,t=r.height,u=r.dialog,v=u.parts.contents;if(r.skin!='wygwam2')return;v.setStyles({width:s+'px',height:t+'px'});});};})();m.add('about',{requires:['dialog'],init:function(p){var q=p.addCommand('about',new d.dialogCommand('about'));q.modes={wysiwyg:1,source:1};q.canUndo=false;q.readOnly=1;p.ui.addButton('About',{label:p.lang.about.title,command:'about'});d.dialog.add('about',this.path+'dialogs/about.js');}});(function(){var p='a11yhelp',q='a11yHelp';m.add(p,{availableLangs:{en:1,he:1},init:function(r){var s=this;r.addCommand(q,{exec:function(){var t=r.langCode;t=s.availableLangs[t]?t:'en';d.scriptLoader.load(d.getUrl(s.path+'lang/'+t+'.js'),function(){h.extend(r.lang,s.langEntries[t]);r.openDialog(q);});},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:false});d.dialog.add(q,this.path+'dialogs/a11yhelp.js');}});})();m.add('basicstyles',{requires:['styles','button'],init:function(p){var q=function(t,u,v,w){var x=new d.style(w);p.attachStyleStateChange(x,function(y){!p.readOnly&&p.getCommand(v).setState(y);});p.addCommand(v,new d.styleCommand(x));p.ui.addButton(t,{label:u,command:v});},r=p.config,s=p.lang;q('Bold',s.bold,'bold',r.coreStyles_bold);
q('Italic',s.italic,'italic',r.coreStyles_italic);q('Underline',s.underline,'underline',r.coreStyles_underline);q('Strike',s.strike,'strike',r.coreStyles_strike);q('Subscript',s.subscript,'subscript',r.coreStyles_subscript);q('Superscript',s.superscript,'superscript',r.coreStyles_superscript);}});l.coreStyles_bold={element:'strong',overrides:'b'};l.coreStyles_italic={element:'em',overrides:'i'};l.coreStyles_underline={element:'u'};l.coreStyles_strike={element:'strike'};l.coreStyles_subscript={element:'sub'};l.coreStyles_superscript={element:'sup'};(function(){var p={table:1,ul:1,ol:1,blockquote:1,div:1},q={},r={};h.extend(q,p,{tr:1,p:1,div:1,li:1});h.extend(r,q,{td:1});function s(E){t(E);u(E);};function t(E){var F=E.editor,G=E.data.path;if(F.readOnly)return;var H=F.config.useComputedState,I;H=H===undefined||H;if(!H)I=v(G.lastElement);I=I||G.block||G.blockLimit;if(I.is('body')){var J=F.getSelection().getRanges()[0].getEnclosedNode();J&&J.type==1&&(I=J);}if(!I)return;var K=H?I.getComputedStyle('direction'):I.getStyle('direction')||I.getAttribute('dir');F.getCommand('bidirtl').setState(K=='rtl'?1:2);F.getCommand('bidiltr').setState(K=='ltr'?1:2);};function u(E){var F=E.editor,G=E.data.path.block||E.data.path.blockLimit;F.fire('contentDirChanged',G?G.getComputedStyle('direction'):F.lang.dir);};function v(E){while(E&&!(E.getName() in r||E.is('body'))){var F=E.getParent();if(!F)break;E=F;}return E;};function w(E,F,G,H){if(E.isReadOnly())return;k.setMarker(H,E,'bidi_processed',1);var I=E;while((I=I.getParent())&&!I.is('body')){if(I.getCustomData('bidi_processed')){E.removeStyle('direction');E.removeAttribute('dir');return;}}var J='useComputedState' in G.config?G.config.useComputedState:1,K=J?E.getComputedStyle('direction'):E.getStyle('direction')||E.hasAttribute('dir');if(K==F)return;E.removeStyle('direction');if(J){E.removeAttribute('dir');if(F!=E.getComputedStyle('direction'))E.setAttribute('dir',F);}else E.setAttribute('dir',F);G.forceNextSelectionCheck();};function x(E,F,G){var H=E.getCommonAncestor(false,true);E=E.clone();E.enlarge(G==2?3:2);if(E.checkBoundaryOfElement(H,1)&&E.checkBoundaryOfElement(H,2)){var I;while(H&&H.type==1&&(I=H.getParent())&&I.getChildCount()==1&&!(H.getName() in F))H=I;return H.type==1&&H.getName() in F&&H;}};function y(E){return function(F){var G=F.getSelection(),H=F.config.enterMode,I=G.getRanges();if(I&&I.length){var J={},K=G.createBookmarks(),L=I.createIterator(),M,N=0;while(M=L.getNextRange(1)){var O=M.getEnclosedNode();if(!O||O&&!(O.type==1&&O.getName() in q))O=x(M,p,H);
O&&w(O,E,F,J);var P,Q,R=new g.walker(M),S=K[N].startNode,T=K[N++].endNode;R.evaluator=function(U){return!!(U.type==1&&U.getName() in p&&!(U.getName()==(H==1?'p':'div')&&U.getParent().type==1&&U.getParent().getName()=='blockquote')&&U.getPosition(S)&2&&(U.getPosition(T)&4+16)==4);};while(Q=R.next())w(Q,E,F,J);P=M.createIterator();P.enlargeBr=H!=2;while(Q=P.getNextParagraph(H==1?'p':'div'))w(Q,E,F,J);}k.clearAllMarkers(J);F.forceNextSelectionCheck();G.selectBookmarks(K);F.focus();}};};m.add('bidi',{requires:['styles','button'],init:function(E){var F=function(H,I,J,K){E.addCommand(J,new d.command(E,{exec:K}));E.ui.addButton(H,{label:I,command:J});},G=E.lang.bidi;F('BidiLtr',G.ltr,'bidiltr',y('ltr'));F('BidiRtl',G.rtl,'bidirtl',y('rtl'));E.on('selectionChange',s);E.on('contentDom',function(){E.document.on('dirChanged',function(H){E.fire('dirChanged',{node:H.data,dir:H.data.getDirection(1)});});});}});function z(E){var F=E.getDocument().getBody().getParent();while(E){if(E.equals(F))return false;E=E.getParent();}return true;};function A(E){var F=E==B.setAttribute,G=E==B.removeAttribute,H=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;return function(I,J){var M=this;if(!M.getDocument().equals(d.document)){var K;if((I==(F||G?'dir':'direction')||I=='style'&&(G||H.test(J)))&&!z(M)){K=M.getDirection(1);var L=E.apply(M,arguments);if(K!=M.getDirection(1)){M.getDocument().fire('dirChanged',M);return L;}}}return E.apply(M,arguments);};};var B=k.prototype,C=['setStyle','removeStyle','setAttribute','removeAttribute'];for(var D=0;D<C.length;D++)B[C[D]]=h.override(B[C[D]],A);})();(function(){function p(t,u){var v=u.block||u.blockLimit;if(!v||v.getName()=='body')return 2;if(v.getAscendant('blockquote',true))return 1;return 2;};function q(t){var u=t.editor;if(u.readOnly)return;var v=u.getCommand('blockquote');v.state=p(u,t.data.path);v.fire('state');};function r(t){for(var u=0,v=t.getChildCount(),w;u<v&&(w=t.getChild(u));u++){if(w.type==1&&w.isBlockBoundary())return false;}return true;};var s={exec:function(t){var u=t.getCommand('blockquote').state,v=t.getSelection(),w=v&&v.getRanges(true)[0];if(!w)return;var x=v.createBookmarks();if(f){var y=x[0].startNode,z=x[0].endNode,A;if(y&&y.getParent().getName()=='blockquote'){A=y;while(A=A.getNext()){if(A.type==1&&A.isBlockBoundary()){y.move(A,true);break;}}}if(z&&z.getParent().getName()=='blockquote'){A=z;while(A=A.getPrevious()){if(A.type==1&&A.isBlockBoundary()){z.move(A);break;}}}}var B=w.createIterator(),C;B.enlargeBr=t.config.enterMode!=2;if(u==2){var D=[];
while(C=B.getNextParagraph())D.push(C);if(D.length<1){var E=t.document.createElement(t.config.enterMode==1?'p':'div'),F=x.shift();w.insertNode(E);E.append(new g.text('\ufeff',t.document));w.moveToBookmark(F);w.selectNodeContents(E);w.collapse(true);F=w.createBookmark();D.push(E);x.unshift(F);}var G=D[0].getParent(),H=[];for(var I=0;I<D.length;I++){C=D[I];G=G.getCommonAncestor(C.getParent());}var J={table:1,tbody:1,tr:1,ol:1,ul:1};while(J[G.getName()])G=G.getParent();var K=null;while(D.length>0){C=D.shift();while(!C.getParent().equals(G))C=C.getParent();if(!C.equals(K))H.push(C);K=C;}while(H.length>0){C=H.shift();if(C.getName()=='blockquote'){var L=new g.documentFragment(t.document);while(C.getFirst()){L.append(C.getFirst().remove());D.push(L.getLast());}L.replace(C);}else D.push(C);}var M=t.document.createElement('blockquote');M.insertBefore(D[0]);while(D.length>0){C=D.shift();M.append(C);}}else if(u==1){var N=[],O={};while(C=B.getNextParagraph()){var P=null,Q=null;while(C.getParent()){if(C.getParent().getName()=='blockquote'){P=C.getParent();Q=C;break;}C=C.getParent();}if(P&&Q&&!Q.getCustomData('blockquote_moveout')){N.push(Q);k.setMarker(O,Q,'blockquote_moveout',true);}}k.clearAllMarkers(O);var R=[],S=[];O={};while(N.length>0){var T=N.shift();M=T.getParent();if(!T.getPrevious())T.remove().insertBefore(M);else if(!T.getNext())T.remove().insertAfter(M);else{T.breakParent(T.getParent());S.push(T.getNext());}if(!M.getCustomData('blockquote_processed')){S.push(M);k.setMarker(O,M,'blockquote_processed',true);}R.push(T);}k.clearAllMarkers(O);for(I=S.length-1;I>=0;I--){M=S[I];if(r(M))M.remove();}if(t.config.enterMode==2){var U=true;while(R.length){T=R.shift();if(T.getName()=='div'){L=new g.documentFragment(t.document);var V=U&&T.getPrevious()&&!(T.getPrevious().type==1&&T.getPrevious().isBlockBoundary());if(V)L.append(t.document.createElement('br'));var W=T.getNext()&&!(T.getNext().type==1&&T.getNext().isBlockBoundary());while(T.getFirst())T.getFirst().remove().appendTo(L);if(W)L.append(t.document.createElement('br'));L.replace(T);U=false;}}}}v.selectBookmarks(x);t.focus();}};m.add('blockquote',{init:function(t){t.addCommand('blockquote',s);t.ui.addButton('Blockquote',{label:t.lang.blockquote,command:'blockquote'});t.on('selectionChange',q);},requires:['domiterator']});})();m.add('button',{beforeInit:function(p){p.ui.addHandler('button',n.button.handler);}});d.UI_BUTTON='button';n.button=function(p){h.extend(this,p,{title:p.label,className:p.className||p.command&&'cke_button_'+p.command||'',click:p.click||(function(q){q.execCommand(p.command);
})});this._={};};n.button.handler={create:function(p){return new n.button(p);}};(function(){n.button.prototype={render:function(p,q){var r=e,s=this._.id=h.getNextId(),t='',u=this.command,v;this._.editor=p;var w={id:s,button:this,editor:p,focus:function(){var C=d.document.getById(s);C.focus();},execute:function(){if(f&&e.version<7)h.setTimeout(function(){this.button.click(p);},0,this);else this.button.click(p);}},x=h.addFunction(function(C){if(w.onkey){C=new g.event(C);return w.onkey(w,C.getKeystroke())!==false;}}),y=h.addFunction(function(C){var D;if(w.onfocus)D=w.onfocus(w,new g.event(C))!==false;if(e.gecko&&e.version<10900)C.preventBubble();return D;});w.clickFn=v=h.addFunction(w.execute,w);if(this.modes){var z={};function A(){var C=p.mode;if(C){var D=this.modes[C]?z[C]!=undefined?z[C]:2:0;this.setState(p.readOnly&&!this.readOnly?0:D);}};p.on('beforeModeUnload',function(){if(p.mode&&this._.state!=0)z[p.mode]=this._.state;},this);p.on('mode',A,this);!this.readOnly&&p.on('readOnly',A,this);}else if(u){u=p.getCommand(u);if(u){u.on('state',function(){this.setState(u.state);},this);t+='cke_'+(u.state==1?'on':u.state==0?'disabled':'off');}}if(!u)t+='cke_off';if(this.className)t+=' '+this.className;q.push('<span class="cke_button'+(this.icon&&this.icon.indexOf('.png')==-1?' cke_noalphafix':'')+'">','<a id="',s,'" class="',t,'"',r.gecko&&r.version>=10900&&!r.hc?'':'" href="javascript:void(\''+(this.title||'').replace("'",'')+"')\"",' title="',this.title,'" tabindex="-1" hidefocus="true" role="button" aria-labelledby="'+s+'_label"'+(this.hasArrow?' aria-haspopup="true"':''));if(r.opera||r.gecko&&r.mac)q.push(' onkeypress="return false;"');if(r.gecko)q.push(' onblur="this.style.cssText = this.style.cssText;"');q.push(' onkeydown="return CKEDITOR.tools.callFunction(',x,', event);" onfocus="return CKEDITOR.tools.callFunction(',y,', event);" '+(f?'onclick="return false;" onmouseup':'onclick')+'="CKEDITOR.tools.callFunction(',v,', this); return false;"><span class="cke_icon"');if(this.icon){var B=(this.iconOffset||0)*-16;q.push(' style="background-image:url(',d.getUrl(this.icon),');background-position:0 '+B+'px;"');}q.push('>&nbsp;</span><span id="',s,'_label" class="cke_label">',this.label,'</span>');if(this.hasArrow)q.push('<span class="cke_buttonarrow">'+(e.hc?'&#9660;':'&nbsp;')+'</span>');q.push('</a>','</span>');if(this.onRender)this.onRender();return w;},setState:function(p){if(this._.state==p)return false;this._.state=p;var q=d.document.getById(this._.id);if(q){q.setState(p);
p==0?q.setAttribute('aria-disabled',true):q.removeAttribute('aria-disabled');p==1?q.setAttribute('aria-pressed',true):q.removeAttribute('aria-pressed');return true;}else return false;}};})();n.prototype.addButton=function(p,q){this.add(p,'button',q);};(function(){var p=function(B,C){var D=B.document,E=D.getBody(),F=0,G=function(){F=1;};E.on(C,G);(e.version>7?D.$:D.$.selection.createRange()).execCommand(C);E.removeListener(C,G);return F;},q=f?function(B,C){return p(B,C);}:function(B,C){try{return B.document.$.execCommand(C,false,null);}catch(D){return false;}},r=function(B){var C=this;C.type=B;C.canUndo=C.type=='cut';C.startDisabled=true;};r.prototype={exec:function(B,C){this.type=='cut'&&w(B);var D=q(B,this.type);if(!D)alert(B.lang.clipboard[this.type+'Error']);return D;}};var s={canUndo:false,exec:f?function(B){B.focus();if(!B.document.getBody().fire('beforepaste')&&!p(B,'paste')){B.fire('pasteDialog');return false;}}:function(B){try{if(!B.document.getBody().fire('beforepaste')&&!B.document.$.execCommand('Paste',false,null))throw 0;}catch(C){setTimeout(function(){B.fire('pasteDialog');},0);return false;}}},t=function(B){if(this.mode!='wysiwyg')return;switch(B.data.keyCode){case 1114112+86:case 2228224+45:var C=this.document.getBody();if(!f&&C.fire('beforepaste'))B.cancel();else if(e.opera||e.gecko&&e.version<10900)C.fire('paste');return;case 1114112+88:case 2228224+46:var D=this;this.fire('saveSnapshot');setTimeout(function(){D.fire('saveSnapshot');},0);}};function u(B){B.cancel();};function v(B,C,D){var E=this.document;if(E.getById('cke_pastebin'))return;if(C=='text'&&B.data&&B.data.$.clipboardData){var F=B.data.$.clipboardData.getData('text/plain');if(F){B.data.preventDefault();D(F);return;}}var G=this.getSelection(),H=new g.range(E),I=new k(C=='text'?'textarea':e.webkit?'body':'div',E);I.setAttribute('id','cke_pastebin');e.webkit&&I.append(E.createText('\xa0'));E.getBody().append(I);I.setStyles({position:'absolute',top:G.getStartElement().getDocumentPosition().y+'px',width:'1px',height:'1px',overflow:'hidden'});I.setStyle(this.config.contentsLangDirection=='ltr'?'left':'right','-1000px');var J=G.createBookmarks();this.on('selectionChange',u,null,null,0);if(C=='text')I.$.focus();else{H.setStartAt(I,1);H.setEndAt(I,2);H.select(true);}var K=this;window.setTimeout(function(){C=='text'&&e.gecko&&K.focusGrabber.focus();I.remove();K.removeListener('selectionChange',u);var L;I=e.webkit&&(L=I.getFirst())&&L.is&&L.hasClass('Apple-style-span')?L:I;G.selectBookmarks(J);
D(I['get'+(C=='text'?'Value':'Html')]());},0);};function w(B){if(!f||e.quirks)return;var C=B.getSelection(),D;if(C.getType()==3&&(D=C.getSelectedElement())){var E=C.getRanges()[0],F=B.document.createText('');F.insertBefore(D);E.setStartBefore(F);E.setEndAfter(D);C.selectRanges([E]);setTimeout(function(){if(D.getParent()){F.remove();C.selectElement(D);}},0);}};var x;function y(B,C){f&&(x=1);var D=2;try{D=C.document.$.queryCommandEnabled(B)?2:0;}catch(E){}x=0;return D;};var z;function A(){var C=this;if(C.mode!='wysiwyg')return;C.getCommand('cut').setState(z?0:y('Cut',C));C.getCommand('copy').setState(y('Copy',C));var B=z?0:e.webkit?2:y('Paste',C);C.fire('pasteState',B);};m.add('clipboard',{requires:['dialog','htmldataprocessor'],init:function(B){B.on('paste',function(D){var E=D.data;if(E.html)B.insertHtml(E.html);else if(E.text)B.insertText(E.text);setTimeout(function(){B.fire('afterPaste');},0);},null,null,1000);B.on('pasteDialog',function(D){setTimeout(function(){B.openDialog('paste');},0);});B.on('pasteState',function(D){B.getCommand('paste').setState(D.data);});function C(D,E,F,G){var H=B.lang[E];B.addCommand(E,F);B.ui.addButton(D,{label:H,command:E});if(B.addMenuItems)B.addMenuItem(E,{label:H,command:E,group:'clipboard',order:G});};C('Cut','cut',new r('cut'),1);C('Copy','copy',new r('copy'),4);C('Paste','paste',s,8);d.dialog.add('paste',d.getUrl(this.path+'dialogs/paste.js'));B.on('key',t,B);B.on('contentDom',function(){var D=B.document.getBody();D.on(e.webkit?'paste':'beforepaste',function(E){if(x)return;var F={mode:'html'};B.fire('beforePaste',F);v.call(B,E,F.mode,function(G){if(!(G=h.trim(G.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,''))))return;var H={};H[F.mode]=G;B.fire('paste',H);});});D.on('contextmenu',function(){x=1;setTimeout(function(){x=0;},10);});D.on('beforecut',function(){!x&&w(B);});D.on('mouseup',function(){setTimeout(function(){A.call(B);},0);},B);D.on('keyup',A,B);});B.on('selectionChange',function(D){z=D.data.selection.getRanges()[0].checkReadOnly();A.call(B);});if(B.contextMenu)B.contextMenu.addListener(function(D,E){var F=E.getRanges()[0].checkReadOnly();return{cut:!F&&y('Cut',B),copy:y('Copy',B),paste:!F&&(e.webkit?2:y('Paste',B))};});}});})();m.add('colorbutton',{requires:['panelbutton','floatpanel','styles'],init:function(p){var q=p.config,r=p.lang.colorButton,s;if(!e.hc){t('TextColor','fore',r.textColorTitle);t('BGColor','back',r.bgColorTitle);}function t(w,x,y){var z=h.getNextId()+'_colorBox';p.ui.add(w,'panelbutton',{label:y,title:y,className:'cke_button_'+w.toLowerCase(),modes:{wysiwyg:1},panel:{css:p.skin.editor.css,attributes:{role:'listbox','aria-label':r.panelTitle}},onBlock:function(A,B){B.autoSize=true;
B.element.addClass('cke_colorblock');B.element.setHtml(u(A,x,z));B.element.getDocument().getBody().setStyle('overflow','hidden');n.fire('ready',this);var C=B.keys,D=p.lang.dir=='rtl';C[D?37:39]='next';C[40]='next';C[9]='next';C[D?39:37]='prev';C[38]='prev';C[2228224+9]='prev';C[32]='click';},onOpen:function(){var A=p.getSelection(),B=A&&A.getStartElement(),C=new g.elementPath(B),D;B=C.block||C.blockLimit||p.document.getBody();do D=B&&B.getComputedStyle(x=='back'?'background-color':'color')||'transparent';while(x=='back'&&D=='transparent'&&B&&(B=B.getParent()));if(!D||D=='transparent')D='#ffffff';this._.panel._.iframe.getFrameDocument().getById(z).setStyle('background-color',D);}});};function u(w,x,y){var z=[],A=q.colorButton_colors.split(','),B=A.length+(q.colorButton_enableMore?2:1),C=h.addFunction(function(I,J){if(I=='?'){var K=arguments.callee;function L(N){this.removeListener('ok',L);this.removeListener('cancel',L);N.name=='ok'&&K(this.getContentElement('picker','selectedColor').getValue(),J);};p.openDialog('colordialog',function(){this.on('ok',L);this.on('cancel',L);});return;}p.focus();w.hide(false);p.fire('saveSnapshot');new d.style(q['colorButton_'+J+'Style'],{color:'inherit'}).remove(p.document);if(I){var M=q['colorButton_'+J+'Style'];M.childRule=J=='back'?function(N){return v(N);}:function(N){return N.getName()!='a'||v(N);};new d.style(M,{color:I}).apply(p.document);}p.fire('saveSnapshot');});z.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',r.auto,'" onclick="CKEDITOR.tools.callFunction(',C,",null,'",x,"');return false;\" href=\"javascript:void('",r.auto,'\')" role="option" aria-posinset="1" aria-setsize="',B,'"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" id="',y,'"></span></td><td colspan=7 align=center>',r.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">');for(var D=0;D<A.length;D++){if(D%8===0)z.push('</tr><tr>');var E=A[D].split('/'),F=E[0],G=E[1]||F;if(!E[1])F='#'+F.replace(/^(.)(.)(.)$/,'$1$1$2$2$3$3');var H=p.lang.colors[G]||G;z.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',H,'" onclick="CKEDITOR.tools.callFunction(',C,",'",F,"','",x,"'); return false;\" href=\"javascript:void('",H,'\')" role="option" aria-posinset="',D+2,'" aria-setsize="',B,'"><span class="cke_colorbox" style="background-color:#',G,'"></span></a></td>');}if(q.colorButton_enableMore===undefined||q.colorButton_enableMore)z.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',r.more,'" onclick="CKEDITOR.tools.callFunction(',C,",'?','",x,"');return false;\" href=\"javascript:void('",r.more,"')\"",' role="option" aria-posinset="',B,'" aria-setsize="',B,'">',r.more,'</a></td>');
z.push('</tr></table>');return z.join('');};function v(w){return w.getAttribute('contentEditable')=='false'||w.getAttribute('data-nostyle');};}});l.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';l.colorButton_foreStyle={element:'span',styles:{color:'#(color)'},overrides:[{element:'font',attributes:{color:null}}]};l.colorButton_backStyle={element:'span',styles:{'background-color':'#(color)'}};m.colordialog={init:function(p){p.addCommand('colordialog',new d.dialogCommand('colordialog'));d.dialog.add('colordialog',this.path+'dialogs/colordialog.js');}};m.add('colordialog',m.colordialog);m.add('contextmenu',{requires:['menu'],onLoad:function(){m.contextMenu=h.createClass({base:d.menu,$:function(p){this.base.call(this,p,{panel:{className:p.skinClass+' cke_contextmenu',attributes:{'aria-label':p.lang.contextmenu.options}}});},proto:{addTarget:function(p,q){if(e.opera&&!('oncontextmenu' in document.body)){var r;p.on('mousedown',function(v){v=v.data;if(v.$.button!=2){if(v.getKeystroke()==1114112+1)p.fire('contextmenu',v);return;}if(q&&(e.mac?v.$.metaKey:v.$.ctrlKey))return;var w=v.getTarget();if(!r){var x=w.getDocument();r=x.createElement('input');r.$.type='button';x.getBody().append(r);}r.setAttribute('style','position:absolute;top:'+(v.$.clientY-2)+'px;left:'+(v.$.clientX-2)+'px;width:5px;height:5px;opacity:0.01');});p.on('mouseup',function(v){if(r){r.remove();r=undefined;p.fire('contextmenu',v.data);}});}p.on('contextmenu',function(v){var w=v.data;if(q&&(e.webkit?s:e.mac?w.$.metaKey:w.$.ctrlKey))return;w.preventDefault();var x=w.getTarget().getDocument().getDocumentElement(),y=w.$.clientX,z=w.$.clientY;h.setTimeout(function(){this.open(x,null,y,z);},0,this);},this);if(e.opera)p.on('keypress',function(v){var w=v.data;if(w.$.keyCode===0)w.preventDefault();});if(e.webkit){var s,t=function(v){s=e.mac?v.data.$.metaKey:v.data.$.ctrlKey;},u=function(){s=0;};p.on('keydown',t);p.on('keyup',u);p.on('contextmenu',u);}},open:function(p,q,r,s){this.editor.focus();p=p||d.document.getDocumentElement();this.show(p,q,r,s);}}});},beforeInit:function(p){p.contextMenu=new m.contextMenu(p);p.addCommand('contextMenu',{exec:function(){p.contextMenu.open(p.document.getBody());}});}});(function(){function p(r){var s=this.att,t=r&&r.hasAttribute(s)&&r.getAttribute(s)||'';
if(t!==undefined)this.setValue(t);};function q(){var r;for(var s=0;s<arguments.length;s++){if(arguments[s] instanceof k){r=arguments[s];break;}}if(r){var t=this.att,u=this.getValue();if(u)r.setAttribute(t,u);else r.removeAttribute(t,u);}};m.add('dialogadvtab',{createAdvancedTab:function(r,s){if(!s)s={id:1,dir:1,classes:1,styles:1};var t=r.lang.common,u={id:'advanced',label:t.advancedTab,title:t.advancedTab,elements:[{type:'vbox',padding:1,children:[]}]},v=[];if(s.id||s.dir){if(s.id)v.push({id:'advId',att:'id',type:'text',label:t.id,setup:p,commit:q});if(s.dir)v.push({id:'advLangDir',att:'dir',type:'select',label:t.langDir,'default':'',style:'width:100%',items:[[t.notSet,''],[t.langDirLTR,'ltr'],[t.langDirRTL,'rtl']],setup:p,commit:q});u.elements[0].children.push({type:'hbox',widths:['50%','50%'],children:[].concat(v)});}if(s.styles||s.classes){v=[];if(s.styles)v.push({id:'advStyles',att:'style',type:'text',label:t.styles,'default':'',onChange:function(){},getStyle:function(w,x){var y=this.getValue().match(new RegExp(w+'\\s*:\\s*([^;]*)','i'));return y?y[1]:x;},updateStyle:function(w,x){var y=this.getValue();if(y)y=y.replace(new RegExp('\\s*'+w+'s*:[^;]*(?:$|;s*)','i'),'').replace(/^[;\s]+/,'').replace(/\s+$/,'');if(x){y&&!/;\s*$/.test(y)&&(y+='; ');y+=w+': '+x;}this.setValue(y,1);},setup:p,commit:q});if(s.classes)v.push({type:'hbox',widths:['45%','55%'],children:[{id:'advCSSClasses',att:'class',type:'text',label:t.cssClasses,'default':'',setup:p,commit:q}]});u.elements[0].children.push({type:'hbox',widths:['50%','50%'],children:[].concat(v)});}return u;}});})();(function(){m.add('div',{requires:['editingblock','domiterator','styles'],init:function(p){var q=p.lang.div;p.addCommand('creatediv',new d.dialogCommand('creatediv'));p.addCommand('editdiv',new d.dialogCommand('editdiv'));p.addCommand('removediv',{exec:function(r){var s=r.getSelection(),t=s&&s.getRanges(),u,v=s.createBookmarks(),w,x=[];function y(A){var B=new g.elementPath(A),C=B.blockLimit,D=C.is('div')&&C;if(D&&!D.data('cke-div-added')){x.push(D);D.data('cke-div-added');}};for(var z=0;z<t.length;z++){u=t[z];if(u.collapsed)y(s.getStartElement());else{w=new g.walker(u);w.evaluator=y;w.lastForward();}}for(z=0;z<x.length;z++)x[z].remove(true);s.selectBookmarks(v);}});p.ui.addButton('CreateDiv',{label:q.toolbar,command:'creatediv'});if(p.addMenuItems){p.addMenuItems({editdiv:{label:q.edit,command:'editdiv',group:'div',order:1},removediv:{label:q.remove,command:'removediv',group:'div',order:5}});if(p.contextMenu)p.contextMenu.addListener(function(r,s){if(!r||r.isReadOnly())return null;
var t=new g.elementPath(r),u=t.blockLimit;if(u&&u.getAscendant('div',true))return{editdiv:2,removediv:2};return null;});}d.dialog.add('creatediv',this.path+'dialogs/div.js');d.dialog.add('editdiv',this.path+'dialogs/div.js');}});})();(function(){var p={toolbarFocus:{editorFocus:false,readOnly:1,exec:function(r){var s=r._.elementsPath.idBase,t=d.document.getById(s+'0');t&&t.focus(f||e.air);}}},q='<span class="cke_empty">&nbsp;</span>';m.add('elementspath',{requires:['selection'],init:function(r){var s='cke_path_'+r.name,t,u=function(){if(!t)t=d.document.getById(s);return t;},v='cke_elementspath_'+h.getNextNumber()+'_';r._.elementsPath={idBase:v,filters:[]};r.on('themeSpace',function(A){if(A.data.space=='bottom')A.data.html+='<span id="'+s+'_label" class="cke_voice_label">'+r.lang.elementsPath.eleLabel+'</span>'+'<div id="'+s+'" class="cke_path" role="group" aria-labelledby="'+s+'_label">'+q+'</div>';});function w(A){r.focus();var B=r._.elementsPath.list[A];if(B.is('body')){var C=new g.range(r.document);C.selectNodeContents(B);C.select();}else r.getSelection().selectElement(B);};var x=h.addFunction(w),y=h.addFunction(function(A,B){var C=r._.elementsPath.idBase,D;B=new g.event(B);var E=r.lang.dir=='rtl';switch(B.getKeystroke()){case E?39:37:case 9:D=d.document.getById(C+(A+1));if(!D)D=d.document.getById(C+'0');D.focus();return false;case E?37:39:case 2228224+9:D=d.document.getById(C+(A-1));if(!D)D=d.document.getById(C+(r._.elementsPath.list.length-1));D.focus();return false;case 27:r.focus();return false;case 13:case 32:w(A);return false;}return true;});r.on('selectionChange',function(A){var B=e,C=A.data.selection,D=C.getStartElement(),E=[],F=A.editor,G=F._.elementsPath.list=[],H=F._.elementsPath.filters;while(D){var I=0,J;if(D.data('cke-display-name'))J=D.data('cke-display-name');else if(D.data('cke-real-element-type'))J=D.data('cke-real-element-type');else J=D.getName();for(var K=0;K<H.length;K++){var L=H[K](D,J);if(L===false){I=1;break;}J=L||J;}if(!I){var M=G.push(D)-1,N='';if(B.opera||B.gecko&&B.mac)N+=' onkeypress="return false;"';if(B.gecko)N+=' onblur="this.style.cssText = this.style.cssText;"';var O=F.lang.elementsPath.eleTitle.replace(/%1/,J);E.unshift('<a id="',v,M,'" href="javascript:void(\'',J,'\')" tabindex="-1" title="',O,'"'+(e.gecko&&e.version<10900?' onfocus="event.preventBubble();"':'')+' hidefocus="true" '+' onkeydown="return CKEDITOR.tools.callFunction(',y,',',M,', event );"'+N,' onclick="CKEDITOR.tools.callFunction('+x,',',M,'); return false;"',' role="button" aria-labelledby="'+v+M+'_label">',J,'<span id="',v,M,'_label" class="cke_label">'+O+'</span>','</a>');
}if(J=='body')break;D=D.getParent();}var P=u();P.setHtml(E.join('')+q);F.fire('elementsPathUpdate',{space:P});});function z(){t&&t.setHtml(q);delete r._.elementsPath.list;};r.on('readOnly',z);r.on('contentDomUnload',z);r.addCommand('elementsPathFocus',p.toolbarFocus);}});})();(function(){m.add('embedmedia',{requires:['iframedialog'],init:function(p){var q=this;d.dialog.add('EmbedMediaDialog',function(r){var s=d.currentInstance.id;return{title:'Embed Media Dialog',minWidth:550,minHeight:200,contents:[{id:'iframe',label:'Embed Media',expand:true,elements:[{type:'html',id:'pageEmbedMedia',label:'Embed Media',style:'width : 100%;',html:'<iframe src="'+q.path+'/dialogs/embedmedia.html" frameborder="0" name="iframeEmbedMedia_'+s+'" id="iframeEmbedMedia" allowtransparency="1" style="width:100%;margin:0;padding:0;height:165px;"></iframe>'}]}],onOk:function(t){for(var u=0;u<window.frames.length;u++){if(window.frames[u].name=='iframeEmbedMedia_'+s)var v=window.frames[u].document.getElementById('embed').value;}final_html='EmbedMediaInsertData|---'+escape('<div class="embed_media">'+v+'</div>')+'---|EmbedMediaInsertData';r.insertHtml(final_html);updated_editor_data=r.getData();clean_editor_data=updated_editor_data.replace(final_html,'<div class="embed_media">'+v+'</div>');r.setData(clean_editor_data);}};});p.addCommand('EmbedMedia',new d.dialogCommand('EmbedMediaDialog'));p.ui.addButton('EmbedMedia',{label:'Embed Media',command:'EmbedMedia',icon:this.path+'images/icon.gif'});}});})();(function(){m.add('enterkey',{requires:['keystrokes','indent'],init:function(w){w.addCommand('enter',{modes:{wysiwyg:1},editorFocus:false,exec:function(y){u(y);}});w.addCommand('shiftEnter',{modes:{wysiwyg:1},editorFocus:false,exec:function(y){t(y);}});var x=w.keystrokeHandler.keystrokes;x[13]='enter';x[2228224+13]='shiftEnter';}});m.enterkey={enterBlock:function(w,x,y,z){y=y||v(w);if(!y)return;var A=y.document,B=y.checkStartOfBlock(),C=y.checkEndOfBlock(),D=new g.elementPath(y.startContainer),E=D.block;if(B&&C){if(E&&(E.is('li')||E.getParent().is('li'))){w.execCommand('outdent');return;}}else if(E&&E.is('pre')){if(!C){q(w,x,y,z);return;}}else if(E&&i.$captionBlock[E.getName()]){q(w,x,y,z);return;}var F=x==3?'div':'p',G=y.splitBlock(F);if(!G)return;var H=G.previousBlock,I=G.nextBlock,J=G.wasStartOfBlock,K=G.wasEndOfBlock,L;if(I){L=I.getParent();if(L.is('li')){I.breakParent(L);I.move(I.getNext(),1);}}else if(H&&(L=H.getParent())&&L.is('li')){H.breakParent(L);L=H.getNext();y.moveToElementEditStart(L);
H.move(H.getPrevious());}if(!J&&!K){if(I.is('li')&&(L=I.getFirst(g.walker.invisible(true)))&&L.is&&L.is('ul','ol'))(f?A.createText('\xa0'):A.createElement('br')).insertBefore(L);if(I)y.moveToElementEditStart(I);}else{var M,N;if(H){if(H.is('li')||!(s.test(H.getName())||H.is('pre')))M=H.clone();}else if(I)M=I.clone();if(!M){if(L&&L.is('li'))M=L;else{M=A.createElement(F);if(H&&(N=H.getDirection()))M.setAttribute('dir',N);}}else if(z&&!M.is('li'))M.renameNode(F);var O=G.elementPath;if(O)for(var P=0,Q=O.elements.length;P<Q;P++){var R=O.elements[P];if(R.equals(O.block)||R.equals(O.blockLimit))break;if(i.$removeEmpty[R.getName()]){R=R.clone();M.moveChildren(R);M.append(R);}}if(!f)M.appendBogus();if(!M.getParent())y.insertNode(M);M.is('li')&&M.removeAttribute('value');if(f&&J&&(!K||!H.getChildCount())){y.moveToElementEditStart(K?H:M);y.select();}y.moveToElementEditStart(J&&!K?I:M);}if(!f)if(I){var S=A.createElement('span');S.setHtml('&nbsp;');y.insertNode(S);S.scrollIntoView();y.deleteContents();}else M.scrollIntoView();y.select();},enterBr:function(w,x,y,z){y=y||v(w);if(!y)return;var A=y.document,B=x==3?'div':'p',C=y.checkEndOfBlock(),D=new g.elementPath(w.getSelection().getStartElement()),E=D.block,F=E&&D.block.getName(),G=false;if(!z&&F=='li'){r(w,x,y,z);return;}if(!z&&C&&s.test(F)){var H,I;if(I=E.getDirection()){H=A.createElement('div');H.setAttribute('dir',I);H.insertAfter(E);y.setStart(H,0);}else{A.createElement('br').insertAfter(E);if(e.gecko)A.createText('').insertAfter(E);y.setStartAt(E.getNext(),f?3:1);}}else{var J;G=F=='pre';if(G&&!e.gecko)J=A.createText(f?'\r':'\n');else J=A.createElement('br');y.deleteContents();y.insertNode(J);if(f)y.setStartAt(J,4);else{A.createText('\ufeff').insertAfter(J);if(C)J.getParent().appendBogus();J.getNext().$.nodeValue='';y.setStartAt(J.getNext(),1);var K=null;if(!e.gecko){K=A.createElement('span');K.setHtml('&nbsp;');}else K=A.createElement('br');K.insertBefore(J.getNext());K.scrollIntoView();K.remove();}}y.collapse(true);y.select(G);}};var p=m.enterkey,q=p.enterBr,r=p.enterBlock,s=/^h[1-6]$/;function t(w){if(w.mode!='wysiwyg')return false;return u(w,w.config.shiftEnterMode,1);};function u(w,x,y){y=w.config.forceEnterMode||y;if(w.mode!='wysiwyg')return false;if(!x)x=w.config.enterMode;setTimeout(function(){w.fire('saveSnapshot');if(x==2)q(w,x,null,y);else r(w,x,null,y);},0);return true;};function v(w){var x=w.getSelection().getRanges(true);for(var y=x.length-1;y>0;y--)x[y].deleteContents();return x[0];};})();(function(){var p='nbsp,gt,lt,amp',q='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',r='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',s='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 t(u,v){var w={},x=[],y={nbsp:'\xa0',shy:'­',gt:'>',lt:'<',amp:'&'};u=u.replace(/\b(nbsp|shy|gt|lt|amp)(?:,|$)/g,function(D,E){var F=v?'&'+E+';':y[E],G=v?y[E]:'&'+E+';';w[F]=G;x.push(F);return '';});if(!v&&u){u=u.split(',');var z=document.createElement('div'),A;z.innerHTML='&'+u.join(';&')+';';A=z.innerHTML;z=null;for(var B=0;B<A.length;B++){var C=A.charAt(B);w[C]='&'+u[B]+';';x.push(C);}}w.regex=x.join(v?'|':'');return w;};m.add('entities',{afterInit:function(u){var v=u.config,w=u.dataProcessor,x=w&&w.htmlFilter;if(x){var y='';if(v.basicEntities!==false)y+=p;if(v.entities){y+=','+q;if(v.entities_latin)y+=','+r;if(v.entities_greek)y+=','+s;if(v.entities_additional)y+=','+v.entities_additional;}var z=t(y),A=z.regex?'['+z.regex+']':'a^';delete z.regex;if(v.entities&&v.entities_processNumerical)A='[^ -~]|'+A;A=new RegExp(A,'g');function B(F){return v.entities_processNumerical=='force'||!z[F]?'&#'+F.charCodeAt(0)+';':z[F];};var C=t([p,'shy'].join(','),true),D=new RegExp(C.regex,'g');function E(F){return C[F];};x.addRules({text:function(F){return F.replace(D,E).replace(A,B);}});}}});})();l.basicEntities=true;l.entities=true;l.entities_latin=true;l.entities_greek=true;l.entities_additional='#39';m.add('find',{init:function(p){var q=m.find;p.ui.addButton('Find',{label:p.lang.findAndReplace.find,command:'find'});var r=p.addCommand('find',new d.dialogCommand('find'));r.canUndo=false;r.readOnly=1;p.ui.addButton('Replace',{label:p.lang.findAndReplace.replace,command:'replace'});var s=p.addCommand('replace',new d.dialogCommand('replace'));s.canUndo=false;d.dialog.add('find',this.path+'dialogs/find.js');d.dialog.add('replace',this.path+'dialogs/find.js');},requires:['styles']});l.find_highlight={element:'span',styles:{'background-color':'#004',color:'#fff'}};(function(){var p=/\.swf(?:$|\?)/i;function q(s){var t=s.attributes;return t.type=='application/x-shockwave-flash'||p.test(t.src||'');};function r(s,t){return s.createFakeParserElement(t,'cke_flash','flash',true);};m.add('flash',{init:function(s){s.addCommand('flash',new d.dialogCommand('flash'));s.ui.addButton('Flash',{label:s.lang.common.flash,command:'flash'});d.dialog.add('flash',this.path+'dialogs/flash.js');s.addCss('img.cke_flash{background-image: url('+d.getUrl(this.path+'images/placeholder.png')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'width: 80px;'+'height: 80px;'+'}');if(s.addMenuItems)s.addMenuItems({flash:{label:s.lang.flash.properties,command:'flash',group:'flash'}});
s.on('doubleclick',function(t){var u=t.data.element;if(u.is('img')&&u.data('cke-real-element-type')=='flash')t.data.dialog='flash';});if(s.contextMenu)s.contextMenu.addListener(function(t,u){if(t&&t.is('img')&&!t.isReadOnly()&&t.data('cke-real-element-type')=='flash')return{flash:2};});},afterInit:function(s){var t=s.dataProcessor,u=t&&t.dataFilter;if(u)u.addRules({elements:{'cke:object':function(v){var w=v.attributes,x=w.classid&&String(w.classid).toLowerCase();if(!x&&!q(v)){for(var y=0;y<v.children.length;y++){if(v.children[y].name=='cke:embed'){if(!q(v.children[y]))return null;return r(s,v);}}return null;}return r(s,v);},'cke:embed':function(v){if(!q(v))return null;return r(s,v);}}},5);},requires:['fakeobjects']});})();h.extend(l,{flashEmbedTagOnly:false,flashAddEmbedTag:true,flashConvertOnEdit:false});(function(){function p(q,r,s,t,u,v,w){var x=q.config,y=u.split(';'),z=[],A={};for(var B=0;B<y.length;B++){var C=y[B];if(C){C=C.split('/');var D={},E=y[B]=C[0];D[s]=z[B]=C[1]||E;A[E]=new d.style(w,D);A[E]._.definition.name=E;}else y.splice(B--,1);}q.ui.addRichCombo(r,{label:t.label,title:t.panelTitle,className:'cke_'+(s=='size'?'fontSize':'font'),panel:{css:q.skin.editor.css.concat(x.contentsCss),multiSelect:false,attributes:{'aria-label':t.panelTitle}},init:function(){this.startGroup(t.panelTitle);for(var F=0;F<y.length;F++){var G=y[F];this.add(G,A[G].buildPreview(),G);}},onClick:function(F){q.focus();q.fire('saveSnapshot');var G=A[F];if(this.getValue()==F)G.remove(q.document);else G.apply(q.document);q.fire('saveSnapshot');},onRender:function(){q.on('selectionChange',function(F){var G=this.getValue(),H=F.data.path,I=H.elements;for(var J=0,K;J<I.length;J++){K=I[J];for(var L in A){if(A[L].checkElementRemovable(K,true)){if(L!=G)this.setValue(L);return;}}}this.setValue('',v);},this);}});};m.add('font',{requires:['richcombo','styles'],init:function(q){var r=q.config;p(q,'Font','family',q.lang.font,r.font_names,r.font_defaultLabel,r.font_style);p(q,'FontSize','size',q.lang.fontSize,r.fontSize_sizes,r.fontSize_defaultLabel,r.fontSize_style);}});})();l.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';l.font_defaultLabel='';l.font_style={element:'span',styles:{'font-family':'#(family)'},overrides:[{element:'font',attributes:{face:null}}]};
l.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';l.fontSize_defaultLabel='';l.fontSize_style={element:'span',styles:{'font-size':'#(size)'},overrides:[{element:'font',attributes:{size:null}}]};m.add('format',{requires:['richcombo','styles'],init:function(p){var q=p.config,r=p.lang.format,s=q.format_tags.split(';'),t={};for(var u=0;u<s.length;u++){var v=s[u];t[v]=new d.style(q['format_'+v]);t[v]._.enterMode=p.config.enterMode;}p.ui.addRichCombo('Format',{label:r.label,title:r.panelTitle,className:'cke_format',panel:{css:p.skin.editor.css.concat(q.contentsCss),multiSelect:false,attributes:{'aria-label':r.panelTitle}},init:function(){this.startGroup(r.panelTitle);for(var w in t){var x=r['tag_'+w];this.add(w,t[w].buildPreview(x),x);}},onClick:function(w){p.focus();p.fire('saveSnapshot');var x=t[w],y=new g.elementPath(p.getSelection().getStartElement());x[x.checkActive(y)?'remove':'apply'](p.document);setTimeout(function(){p.fire('saveSnapshot');},0);},onRender:function(){p.on('selectionChange',function(w){var x=this.getValue(),y=w.data.path;for(var z in t){if(t[z].checkActive(y)){if(z!=x)this.setValue(z,p.lang.format['tag_'+z]);return;}}this.setValue('');},this);}});}});l.format_tags='p;h1;h2;h3;h4;h5;h6;pre;address;div';l.format_p={element:'p'};l.format_div={element:'div'};l.format_pre={element:'pre'};l.format_address={element:'address'};l.format_h1={element:'h1'};l.format_h2={element:'h2'};l.format_h3={element:'h3'};l.format_h4={element:'h4'};l.format_h5={element:'h5'};l.format_h6={element:'h6'};m.add('forms',{init:function(p){var q=p.lang;p.addCss('form{border: 1px dotted #FF0000;padding: 2px;}\n');p.addCss('img.cke_hidden{background-image: url('+d.getUrl(this.path+'images/hiddenfield.gif')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'width: 16px !important;'+'height: 16px !important;'+'}');var r=function(t,u,v){p.addCommand(u,new d.dialogCommand(u));p.ui.addButton(t,{label:q.common[t.charAt(0).toLowerCase()+t.slice(1)],command:u});d.dialog.add(u,v);},s=this.path+'dialogs/';r('Form','form',s+'form.js');r('Checkbox','checkbox',s+'checkbox.js');r('Radio','radio',s+'radio.js');r('TextField','textfield',s+'textfield.js');r('Textarea','textarea',s+'textarea.js');r('Select','select',s+'select.js');r('Button','button',s+'button.js');r('ImageButton','imagebutton',m.getPath('image')+'dialogs/image.js');r('HiddenField','hiddenfield',s+'hiddenfield.js');
if(p.addMenuItems)p.addMenuItems({form:{label:q.form.menu,command:'form',group:'form'},checkbox:{label:q.checkboxAndRadio.checkboxTitle,command:'checkbox',group:'checkbox'},radio:{label:q.checkboxAndRadio.radioTitle,command:'radio',group:'radio'},textfield:{label:q.textfield.title,command:'textfield',group:'textfield'},hiddenfield:{label:q.hidden.title,command:'hiddenfield',group:'hiddenfield'},imagebutton:{label:q.image.titleButton,command:'imagebutton',group:'imagebutton'},button:{label:q.button.title,command:'button',group:'button'},select:{label:q.select.title,command:'select',group:'select'},textarea:{label:q.textarea.title,command:'textarea',group:'textarea'}});if(p.contextMenu){p.contextMenu.addListener(function(t){if(t&&t.hasAscendant('form',true)&&!t.isReadOnly())return{form:2};});p.contextMenu.addListener(function(t){if(t&&!t.isReadOnly()){var u=t.getName();if(u=='select')return{select:2};if(u=='textarea')return{textarea:2};if(u=='input')switch(t.getAttribute('type')){case 'button':case 'submit':case 'reset':return{button:2};case 'checkbox':return{checkbox:2};case 'radio':return{radio:2};case 'image':return{imagebutton:2};default:return{textfield:2};}if(u=='img'&&t.data('cke-real-element-type')=='hiddenfield')return{hiddenfield:2};}});}p.on('doubleclick',function(t){var u=t.data.element;if(u.is('form'))t.data.dialog='form';else if(u.is('select'))t.data.dialog='select';else if(u.is('textarea'))t.data.dialog='textarea';else if(u.is('img')&&u.data('cke-real-element-type')=='hiddenfield')t.data.dialog='hiddenfield';else if(u.is('input'))switch(u.getAttribute('type')){case 'button':case 'submit':case 'reset':t.data.dialog='button';break;case 'checkbox':t.data.dialog='checkbox';break;case 'radio':t.data.dialog='radio';break;case 'image':t.data.dialog='imagebutton';break;default:t.data.dialog='textfield';break;}});},afterInit:function(p){var q=p.dataProcessor,r=q&&q.htmlFilter,s=q&&q.dataFilter;if(f)r&&r.addRules({elements:{input:function(t){var u=t.attributes,v=u.type;if(!v)u.type='text';if(v=='checkbox'||v=='radio')u.value=='on'&&delete u.value;}}});if(s)s.addRules({elements:{input:function(t){if(t.attributes.type=='hidden')return p.createFakeParserElement(t,'cke_hidden','hiddenfield');}}});},requires:['image','fakeobjects']});if(f)k.prototype.hasAttribute=h.override(k.prototype.hasAttribute,function(p){return function(q){var t=this;var r=t.$.attributes.getNamedItem(q);if(t.getName()=='input')switch(q){case 'class':return t.$.className.length>0;case 'checked':return!!t.$.checked;
case 'value':var s=t.getAttribute('type');return s=='checkbox'||s=='radio'?t.$.value!='on':t.$.value;}return p.apply(t,arguments);};});(function(){var p={canUndo:false,exec:function(r){var s=r.document.createElement('hr'),t=new g.range(r.document);r.insertElement(s);t.moveToPosition(s,4);var u=s.getNext();if(!u||u.type==1&&!u.isEditable())t.fixBlock(true,r.config.enterMode==3?'div':'p');t.select();}},q='horizontalrule';m.add(q,{init:function(r){r.addCommand(q,p);r.ui.addButton('HorizontalRule',{label:r.lang.horizontalrule,command:q});}});})();(function(){var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q='{cke_protected}';function r(W){var X=W.children.length,Y=W.children[X-1];while(Y&&Y.type==3&&!h.trim(Y.value))Y=W.children[--X];return Y;};function s(W,X){var Y=W.children,Z=r(W);if(Z){if((X||!f)&&Z.type==1&&Z.name=='br')Y.pop();if(Z.type==3&&p.test(Z.value))Y.pop();}};function t(W,X,Y){if(!X&&(!Y||typeof Y=='function'&&Y(W)===false))return false;if(X&&f&&(document.documentMode>7||W.name in i.tr||W.name in i.$listItem))return false;var Z=r(W);return!Z||Z&&(Z.type==1&&Z.name=='br'||W.name=='form'&&Z.name=='input');};function u(W,X){return function(Y){s(Y,!W);if(t(Y,!W,X))if(W||f)Y.add(new d.htmlParser.text('\xa0'));else Y.add(new d.htmlParser.element('br',{}));};};var v=i,w=['caption','colgroup','col','thead','tfoot','tbody'],x=h.extend({},v.$block,v.$listItem,v.$tableContent);for(var y in x){if(!('br' in v[y]))delete x[y];}delete x.pre;var z={elements:{},attributeNames:[[/^on/,'data-cke-pa-on']]},A={elements:{}};for(y in x)A.elements[y]=u();var B={elementNames:[[/^cke:/,''],[/^\?xml:namespace$/,'']],attributeNames:[[/^data-cke-(saved|pa)-/,''],[/^data-cke-.*/,''],['hidefocus','']],elements:{$:function(W){var X=W.attributes;if(X){if(X['data-cke-temp'])return false;var Y=['name','href','src'],Z;for(var aa=0;aa<Y.length;aa++){Z='data-cke-saved-'+Y[aa];Z in X&&delete X[Y[aa]];}}return W;},table:function(W){var X=W.children;X.sort(function(Y,Z){return Y.type==1&&Z.type==Y.type?h.indexOf(w,Y.name)>h.indexOf(w,Z.name)?1:-1:0;});},embed:function(W){var X=W.parent;if(X&&X.name=='object'){var Y=X.attributes.width,Z=X.attributes.height;Y&&(W.attributes.width=Y);Z&&(W.attributes.height=Z);}},param:function(W){W.children=[];W.isEmpty=true;return W;},a:function(W){if(!(W.children.length||W.attributes.name||W.attributes['data-cke-saved-name']))return false;},span:function(W){if(W.attributes['class']=='Apple-style-span')delete W.name;},pre:function(W){f&&s(W);},html:function(W){delete W.attributes.contenteditable;
delete W.attributes['class'];},body:function(W){delete W.attributes.spellcheck;delete W.attributes.contenteditable;},style:function(W){var X=W.children[0];X&&X.value&&(X.value=h.trim(X.value));if(!W.attributes.type)W.attributes.type='text/css';},title:function(W){var X=W.children[0];X&&(X.value=W.attributes['data-cke-title']||'');}},attributes:{'class':function(W,X){return h.ltrim(W.replace(/(?:^|\s+)cke_[^\s]*/g,''))||false;}}};if(f)B.attributes.style=function(W,X){return W.replace(/(^|;)([^\:]+)/g,function(Y){return Y.toLowerCase();});};function C(W){var X=W.attributes;if(X.contenteditable!='false')X['data-cke-editable']=X.contenteditable?'true':1;X.contenteditable='false';};function D(W){var X=W.attributes;switch(X['data-cke-editable']){case 'true':X.contenteditable='true';break;case '1':delete X.contenteditable;break;}};for(y in {input:1,textarea:1}){z.elements[y]=C;B.elements[y]=D;}var E=/<(a|area|img|input)\b([^>]*)>/gi,F=/\b(href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,G=/(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,H=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,I=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,J=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,K=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;function L(W){return W.replace(E,function(X,Y,Z){return '<'+Y+Z.replace(F,function(aa,ab){if(Z.indexOf('data-cke-saved-'+ab)==-1)return ' data-cke-saved-'+aa+' '+aa;return aa;})+'>';});};function M(W){return W.replace(G,function(X){return '<cke:encoded>'+encodeURIComponent(X)+'</cke:encoded>';});};function N(W){return W.replace(H,function(X,Y){return decodeURIComponent(Y);});};function O(W){return W.replace(I,'$1cke:$2');};function P(W){return W.replace(J,'$1$2');};function Q(W){return W.replace(K,'<cke:$1$2></cke:$1>');};function R(W){return W.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,'$1$2$2');};function S(W){return W.replace(/<!--(?!{cke_protected})[\s\S]+?-->/g,function(X){return '<!--'+q+'{C}'+encodeURIComponent(X).replace(/--/g,'%2D%2D')+'-->';});};function T(W){return W.replace(/<!--\{cke_protected\}\{C\}([\s\S]+?)-->/g,function(X,Y){return decodeURIComponent(Y);});};function U(W,X){var Y=X._.dataStore;return W.replace(/<!--\{cke_protected\}([\s\S]+?)-->/g,function(Z,aa){return decodeURIComponent(aa);}).replace(/\{cke_protected_(\d+)\}/g,function(Z,aa){return Y&&Y[aa]||'';});};function V(W,X){var Y=[],Z=X.config.protectedSource,aa=X._.dataStore||(X._.dataStore={id:1}),ab=/<\!--\{cke_temp(comment)?\}(\d*?)-->/g,ac=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(Z);
W=W.replace(/<!--[\s\S]*?-->/g,function(ae){return '<!--{cke_tempcomment}'+(Y.push(ae)-1)+'-->';});for(var ad=0;ad<ac.length;ad++)W=W.replace(ac[ad],function(ae){ae=ae.replace(ab,function(af,ag,ah){return Y[ah];});return/cke_temp(comment)?/.test(ae)?ae:'<!--{cke_temp}'+(Y.push(ae)-1)+'-->';});W=W.replace(ab,function(ae,af,ag){return '<!--'+q+(af?'{C}':'')+encodeURIComponent(Y[ag]).replace(/--/g,'%2D%2D')+'-->';});return W.replace(/(['"]).*?\1/g,function(ae){return ae.replace(/<!--\{cke_protected\}([\s\S]+?)-->/g,function(af,ag){aa[aa.id]=decodeURIComponent(ag);return '{cke_protected_'+aa.id++ +'}';});});};m.add('htmldataprocessor',{requires:['htmlwriter'],init:function(W){var X=W.dataProcessor=new d.htmlDataProcessor(W);X.writer.forceSimpleAmpersand=W.config.forceSimpleAmpersand;X.dataFilter.addRules(z);X.dataFilter.addRules(A);X.htmlFilter.addRules(B);var Y={elements:{}};for(y in x)Y.elements[y]=u(true,W.config.fillEmptyBlocks);X.htmlFilter.addRules(Y);},onLoad:function(){!('fillEmptyBlocks' in l)&&(l.fillEmptyBlocks=1);}});d.htmlDataProcessor=function(W){var X=this;X.editor=W;X.writer=new d.htmlWriter();X.dataFilter=new d.htmlParser.filter();X.htmlFilter=new d.htmlParser.filter();};d.htmlDataProcessor.prototype={toHtml:function(W,X){W=V(W,this.editor);W=L(W);W=M(W);W=O(W);W=Q(W);W=R(W);var Y=new k('div');Y.setHtml('a'+W);W=Y.getHtml().substr(1);W=P(W);W=N(W);W=T(W);var Z=d.htmlParser.fragment.fromHtml(W,X),aa=new d.htmlParser.basicWriter();Z.writeHtml(aa,this.dataFilter);W=aa.getHtml(true);W=S(W);return W;},toDataFormat:function(W,X){var Y=this.writer,Z=d.htmlParser.fragment.fromHtml(W,X);Y.reset();Z.writeHtml(Y,this.htmlFilter);var aa=Y.getHtml(true);aa=T(aa);aa=U(aa,this.editor);return aa;}};})();(function(){m.add('iframe',{requires:['dialog','fakeobjects'],init:function(p){var q='iframe',r=p.lang.iframe;d.dialog.add(q,this.path+'dialogs/iframe.js');p.addCommand(q,new d.dialogCommand(q));p.addCss('img.cke_iframe{background-image: url('+d.getUrl(this.path+'images/placeholder.png')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'width: 80px;'+'height: 80px;'+'}');p.ui.addButton('Iframe',{label:r.toolbar,command:q});p.on('doubleclick',function(s){var t=s.data.element;if(t.is('img')&&t.data('cke-real-element-type')=='iframe')s.data.dialog='iframe';});if(p.addMenuItems)p.addMenuItems({iframe:{label:r.title,command:'iframe',group:'image'}});if(p.contextMenu)p.contextMenu.addListener(function(s,t){if(s&&s.is('img')&&s.data('cke-real-element-type')=='iframe')return{iframe:2};
});},afterInit:function(p){var q=p.dataProcessor,r=q&&q.dataFilter;if(r)r.addRules({elements:{iframe:function(s){return p.createFakeParserElement(s,'cke_iframe','iframe',true);}}});}});})();m.add('image',{init:function(p){var q='image';d.dialog.add(q,this.path+'dialogs/image.js');p.addCommand(q,new d.dialogCommand(q));p.ui.addButton('Image',{label:p.lang.common.image,command:q});p.on('doubleclick',function(r){var s=r.data.element;if(s.is('img')&&!s.data('cke-realelement')&&!s.isReadOnly())r.data.dialog='image';});if(p.addMenuItems)p.addMenuItems({image:{label:p.lang.image.menu,command:'image',group:'image'}});if(p.contextMenu)p.contextMenu.addListener(function(r,s){if(!r||!r.is('img')||r.data('cke-realelement')||r.isReadOnly())return null;return{image:2};});}});l.image_removeLinkByEmptyURL=true;(function(){var p={ol:1,ul:1},q=g.walker.whitespaces(true),r=g.walker.bookmark(false,true);function s(w){var E=this;if(w.editor.readOnly)return null;var x=w.editor,y=w.data.path,z=y&&y.contains(p),A=y.block||y.blockLimit;if(z)return E.setState(2);if(!E.useIndentClasses&&E.name=='indent')return E.setState(2);if(!A)return E.setState(0);if(E.useIndentClasses){var B=A.$.className.match(E.classNameRegex),C=0;if(B){B=B[1];C=E.indentClassMap[B];}if(E.name=='outdent'&&!C||E.name=='indent'&&C==x.config.indentClasses.length)return E.setState(0);return E.setState(2);}else{var D=parseInt(A.getStyle(u(A)),10);if(isNaN(D))D=0;if(D<=0)return E.setState(0);return E.setState(2);}};function t(w,x){var z=this;z.name=x;z.useIndentClasses=w.config.indentClasses&&w.config.indentClasses.length>0;if(z.useIndentClasses){z.classNameRegex=new RegExp('(?:^|\\s+)('+w.config.indentClasses.join('|')+')(?=$|\\s)');z.indentClassMap={};for(var y=0;y<w.config.indentClasses.length;y++)z.indentClassMap[w.config.indentClasses[y]]=y+1;}z.startDisabled=x=='outdent';};function u(w,x){return(x||w.getComputedStyle('direction'))=='ltr'?'margin-left':'margin-right';};function v(w){return w.type=1&&w.is('li');};t.prototype={exec:function(w){var x=this,y={};function z(P){var Q=F.startContainer,R=F.endContainer;while(Q&&!Q.getParent().equals(P))Q=Q.getParent();while(R&&!R.getParent().equals(P))R=R.getParent();if(!Q||!R)return;var S=Q,T=[],U=false;while(!U){if(S.equals(R))U=true;T.push(S);S=S.getNext();}if(T.length<1)return;var V=P.getParents(true);for(var W=0;W<V.length;W++){if(V[W].getName&&p[V[W].getName()]){P=V[W];break;}}var X=x.name=='indent'?1:-1,Y=T[0],Z=T[T.length-1],aa=m.list.listToArray(P,y),ab=aa[Z.getCustomData('listarray_index')].indent;
for(W=Y.getCustomData('listarray_index');W<=Z.getCustomData('listarray_index');W++){aa[W].indent+=X;var ac=aa[W].parent;aa[W].parent=new k(ac.getName(),ac.getDocument());}for(W=Z.getCustomData('listarray_index')+1;W<aa.length&&aa[W].indent>ab;W++)aa[W].indent+=X;var ad=m.list.arrayToList(aa,y,null,w.config.enterMode,P.getDirection());if(x.name=='outdent'){var ae;if((ae=P.getParent())&&ae.is('li')){var af=ad.listNode.getChildren(),ag=[],ah=af.count(),ai;for(W=ah-1;W>=0;W--){if((ai=af.getItem(W))&&ai.is&&ai.is('li'))ag.push(ai);}}}if(ad)ad.listNode.replace(P);if(ag&&ag.length)for(W=0;W<ag.length;W++){var aj=ag[W],ak=aj;while((ak=ak.getNext())&&ak.is&&ak.getName() in p){if(f&&!aj.getFirst(function(al){return q(al)&&r(al);}))aj.append(F.document.createText('\xa0'));aj.append(ak);}aj.insertAfter(ae);}};function A(){var P=F.createIterator(),Q=w.config.enterMode;P.enforceRealBlocks=true;P.enlargeBr=Q!=2;var R;while(R=P.getNextParagraph(Q==1?'p':'div'))B(R);};function B(P,Q){if(P.getCustomData('indent_processed'))return false;if(x.useIndentClasses){var R=P.$.className.match(x.classNameRegex),S=0;if(R){R=R[1];S=x.indentClassMap[R];}if(x.name=='outdent')S--;else S++;if(S<0)return false;S=Math.min(S,w.config.indentClasses.length);S=Math.max(S,0);P.$.className=h.ltrim(P.$.className.replace(x.classNameRegex,''));if(S>0)P.addClass(w.config.indentClasses[S-1]);}else{var T=u(P,Q),U=parseInt(P.getStyle(T),10);if(isNaN(U))U=0;var V=w.config.indentOffset||40;U+=(x.name=='indent'?1:-1)*V;if(U<0)return false;U=Math.max(U,0);U=Math.ceil(U/V)*V;P.setStyle(T,U?U+(w.config.indentUnit||'px'):'');if(P.getAttribute('style')==='')P.removeAttribute('style');}k.setMarker(y,P,'indent_processed',1);return true;};var C=w.getSelection(),D=C.createBookmarks(1),E=C&&C.getRanges(1),F,G=E.createIterator();while(F=G.getNextRange()){var H=F.getCommonAncestor(),I=H;while(I&&!(I.type==1&&p[I.getName()]))I=I.getParent();if(!I){var J=F.getEnclosedNode();if(J&&J.type==1&&J.getName() in p){F.setStartAt(J,1);F.setEndAt(J,2);I=J;}}if(I&&F.startContainer.type==1&&F.startContainer.getName() in p){var K=new g.walker(F);K.evaluator=v;F.startContainer=K.next();}if(I&&F.endContainer.type==1&&F.endContainer.getName() in p){K=new g.walker(F);K.evaluator=v;F.endContainer=K.previous();}if(I){var L=I.getFirst(v),M=!!L.getNext(v),N=F.startContainer,O=L.equals(N)||L.contains(N);if(!(O&&(x.name=='indent'||x.useIndentClasses||parseInt(I.getStyle(u(I)),10))&&B(I,!M&&L.getDirection())))z(I);}else A();}k.clearAllMarkers(y);
w.forceNextSelectionCheck();C.selectBookmarks(D);}};m.add('indent',{init:function(w){var x=w.addCommand('indent',new t(w,'indent')),y=w.addCommand('outdent',new t(w,'outdent'));w.ui.addButton('Indent',{label:w.lang.indent,command:'indent'});w.ui.addButton('Outdent',{label:w.lang.outdent,command:'outdent'});w.on('selectionChange',h.bind(s,x));w.on('selectionChange',h.bind(s,y));if(e.ie6Compat||e.ie7Compat)w.addCss('ul,ol{\tmargin-left: 0px;\tpadding-left: 40px;}');w.on('dirChanged',function(z){var A=new g.range(w.document);A.setStartBefore(z.data.node);A.setEndAfter(z.data.node);var B=new g.walker(A),C;while(C=B.next()){if(C.type==1){if(!C.equals(z.data.node)&&C.getDirection()){A.setStartAfter(C);B=new g.walker(A);continue;}var D=w.config.indentClasses;if(D){var E=z.data.dir=='ltr'?['_rtl','']:['','_rtl'];for(var F=0;F<D.length;F++){if(C.hasClass(D[F]+E[0])){C.removeClass(D[F]+E[0]);C.addClass(D[F]+E[1]);}}}var G=C.getStyle('margin-right'),H=C.getStyle('margin-left');G?C.setStyle('margin-left',G):C.removeStyle('margin-left');H?C.setStyle('margin-right',H):C.removeStyle('margin-right');}}});},requires:['domiterator','list']});})();(function(){function p(u,v){var w=v.block||v.blockLimit;if(!w||w.getName()=='body')return 2;return q(w,u.config.useComputedState)==this.value?1:2;};function q(u,v){v=v===undefined||v;var w;if(v)w=u.getComputedStyle('text-align');else{while(!u.hasAttribute||!(u.hasAttribute('align')||u.getStyle('text-align'))){var x=u.getParent();if(!x)break;u=x;}w=u.getStyle('text-align')||u.getAttribute('align')||'';}w&&(w=w.replace(/-moz-|-webkit-|start|auto/i,''));!w&&v&&(w=u.getComputedStyle('direction')=='rtl'?'right':'left');return w;};function r(u){if(u.editor.readOnly)return;var v=u.editor.getCommand(this.name);v.state=p.call(this,u.editor,u.data.path);v.fire('state');};function s(u,v,w){var y=this;y.name=v;y.value=w;var x=u.config.justifyClasses;if(x){switch(w){case 'left':y.cssClassName=x[0];break;case 'center':y.cssClassName=x[1];break;case 'right':y.cssClassName=x[2];break;case 'justify':y.cssClassName=x[3];break;}y.cssClassRegex=new RegExp('(?:^|\\s+)(?:'+x.join('|')+')(?=$|\\s)');}};function t(u){var v=u.editor,w=new g.range(v.document);w.setStartBefore(u.data.node);w.setEndAfter(u.data.node);var x=new g.walker(w),y;while(y=x.next()){if(y.type==1){if(!y.equals(u.data.node)&&y.getDirection()){w.setStartAfter(y);x=new g.walker(w);continue;}var z=v.config.justifyClasses;if(z)if(y.hasClass(z[0])){y.removeClass(z[0]);y.addClass(z[2]);}else if(y.hasClass(z[2])){y.removeClass(z[2]);
y.addClass(z[0]);}var A='text-align',B=y.getStyle(A);if(B=='left')y.setStyle(A,'right');else if(B=='right')y.setStyle(A,'left');}}};s.prototype={exec:function(u){var G=this;var v=u.getSelection(),w=u.config.enterMode;if(!v)return;var x=v.createBookmarks(),y=v.getRanges(true),z=G.cssClassName,A,B,C=u.config.useComputedState;C=C===undefined||C;for(var D=y.length-1;D>=0;D--){A=y[D].createIterator();A.enlargeBr=w!=2;while(B=A.getNextParagraph(w==1?'p':'div')){B.removeAttribute('align');B.removeStyle('text-align');var E=z&&(B.$.className=h.ltrim(B.$.className.replace(G.cssClassRegex,''))),F=G.state==2&&(!C||q(B,true)!=G.value);if(z){if(F)B.addClass(z);else if(!E)B.removeAttribute('class');}else if(F)B.setStyle('text-align',G.value);}}u.focus();u.forceNextSelectionCheck();v.selectBookmarks(x);}};m.add('justify',{init:function(u){var v=new s(u,'justifyleft','left'),w=new s(u,'justifycenter','center'),x=new s(u,'justifyright','right'),y=new s(u,'justifyblock','justify');u.addCommand('justifyleft',v);u.addCommand('justifycenter',w);u.addCommand('justifyright',x);u.addCommand('justifyblock',y);u.ui.addButton('JustifyLeft',{label:u.lang.justify.left,command:'justifyleft'});u.ui.addButton('JustifyCenter',{label:u.lang.justify.center,command:'justifycenter'});u.ui.addButton('JustifyRight',{label:u.lang.justify.right,command:'justifyright'});u.ui.addButton('JustifyBlock',{label:u.lang.justify.block,command:'justifyblock'});u.on('selectionChange',h.bind(r,v));u.on('selectionChange',h.bind(r,x));u.on('selectionChange',h.bind(r,w));u.on('selectionChange',h.bind(r,y));u.on('dirChanged',t);},requires:['domiterator']});})();m.add('keystrokes',{beforeInit:function(p){p.keystrokeHandler=new d.keystrokeHandler(p);p.specialKeys={};},init:function(p){var q=p.config.keystrokes,r=p.config.blockedKeystrokes,s=p.keystrokeHandler.keystrokes,t=p.keystrokeHandler.blockedKeystrokes;for(var u=0;u<q.length;u++)s[q[u][0]]=q[u][1];for(u=0;u<r.length;u++)t[r[u]]=1;}});d.keystrokeHandler=function(p){var q=this;if(p.keystrokeHandler)return p.keystrokeHandler;q.keystrokes={};q.blockedKeystrokes={};q._={editor:p};return q;};(function(){var p,q=function(s){s=s.data;var t=s.getKeystroke(),u=this.keystrokes[t],v=this._.editor;p=v.fire('key',{keyCode:t})===true;if(!p){if(u){var w={from:'keystrokeHandler'};p=v.execCommand(u,w)!==false;}if(!p){var x=v.specialKeys[t];p=x&&x(v)===true;if(!p)p=!!this.blockedKeystrokes[t];}}if(p)s.preventDefault(true);return!p;},r=function(s){if(p){p=false;s.data.preventDefault(true);
}};d.keystrokeHandler.prototype={attach:function(s){s.on('keydown',q,this);if(e.opera||e.gecko&&e.mac)s.on('keypress',r,this);}};})();l.blockedKeystrokes=[1114112+66,1114112+73,1114112+85];l.keystrokes=[[4456448+121,'toolbarFocus'],[4456448+122,'elementsPathFocus'],[2228224+121,'contextMenu'],[1114112+2228224+121,'contextMenu'],[1114112+90,'undo'],[1114112+89,'redo'],[1114112+2228224+90,'redo'],[1114112+76,'link'],[1114112+66,'bold'],[1114112+73,'italic'],[1114112+85,'underline'],[4456448+(f||e.webkit?189:109),'toolbarCollapse'],[4456448+48,'a11yHelp']];m.add('link',{init:function(p){p.addCommand('link',new d.dialogCommand('link'));p.addCommand('anchor',new d.dialogCommand('anchor'));p.addCommand('unlink',new d.unlinkCommand());p.addCommand('removeAnchor',new d.removeAnchorCommand());p.ui.addButton('Link',{label:p.lang.link.toolbar,command:'link'});p.ui.addButton('Unlink',{label:p.lang.unlink,command:'unlink'});p.ui.addButton('Anchor',{label:p.lang.anchor.toolbar,command:'anchor'});d.dialog.add('link',this.path+'dialogs/link.js');d.dialog.add('anchor',this.path+'dialogs/anchor.js');var q=p.lang.dir=='rtl'?'right':'left',r='background:url('+d.getUrl(this.path+'images/anchor.gif')+') no-repeat '+q+' center;'+'border:1px dotted #00f;';p.addCss('a.cke_anchor,a.cke_anchor_empty'+(f&&e.version<7?'':',a[name],a[data-cke-saved-name]')+'{'+r+'padding-'+q+':18px;'+'cursor:auto;'+'}'+(f?'a.cke_anchor_empty{display:inline-block;}':'')+'img.cke_anchor'+'{'+r+'width:16px;'+'min-height:15px;'+'height:1.15em;'+'vertical-align:'+(e.opera?'middle':'text-bottom')+';'+'}');p.on('selectionChange',function(s){if(p.readOnly)return;var t=p.getCommand('unlink'),u=s.data.path.lastElement&&s.data.path.lastElement.getAscendant('a',true);if(u&&u.getName()=='a'&&u.getAttribute('href')&&u.getChildCount())t.setState(2);else t.setState(0);});p.on('doubleclick',function(s){var t=m.link.getSelectedLink(p)||s.data.element;if(!t.isReadOnly())if(t.is('a')){s.data.dialog=t.getAttribute('name')&&(!t.getAttribute('href')||!t.getChildCount())?'anchor':'link';p.getSelection().selectElement(t);}else if(m.link.tryRestoreFakeAnchor(p,t))s.data.dialog='anchor';});if(p.addMenuItems)p.addMenuItems({anchor:{label:p.lang.anchor.menu,command:'anchor',group:'anchor',order:1},removeAnchor:{label:p.lang.anchor.remove,command:'removeAnchor',group:'anchor',order:5},link:{label:p.lang.link.menu,command:'link',group:'link',order:1},unlink:{label:p.lang.unlink,command:'unlink',group:'link',order:5}});if(p.contextMenu)p.contextMenu.addListener(function(s,t){if(!s||s.isReadOnly())return null;
var u=m.link.tryRestoreFakeAnchor(p,s);if(!u&&!(u=m.link.getSelectedLink(p)))return null;var v={};if(u.getAttribute('href')&&u.getChildCount())v={link:2,unlink:2};if(u&&u.hasAttribute('name'))v.anchor=v.removeAnchor=2;return v;});},afterInit:function(p){var q=p.dataProcessor,r=q&&q.dataFilter,s=q&&q.htmlFilter,t=p._.elementsPath&&p._.elementsPath.filters;if(r)r.addRules({elements:{a:function(u){var v=u.attributes;if(!v.name)return null;var w=!u.children.length;if(m.link.synAnchorSelector){var x=w?'cke_anchor_empty':'cke_anchor',y=v['class'];if(v.name&&(!y||y.indexOf(x)<0))v['class']=(y||'')+' '+x;if(w&&m.link.emptyAnchorFix){v.contenteditable='false';v['data-cke-editable']=1;}}else if(m.link.fakeAnchor&&w)return p.createFakeParserElement(u,'cke_anchor','anchor');return null;}}});if(m.link.emptyAnchorFix&&s)s.addRules({elements:{a:function(u){delete u.attributes.contenteditable;}}});if(t)t.push(function(u,v){if(v=='a')if(m.link.tryRestoreFakeAnchor(p,u)||u.getAttribute('name')&&(!u.getAttribute('href')||!u.getChildCount()))return 'anchor';});},requires:['fakeobjects']});m.link={getSelectedLink:function(p){try{var q=p.getSelection();if(q.getType()==3){var r=q.getSelectedElement();if(r.is('a'))return r;}var s=q.getRanges(true)[0];s.shrink(2);var t=s.getCommonAncestor();return t.getAscendant('a',true);}catch(u){return null;}},fakeAnchor:e.opera||e.webkit,synAnchorSelector:f,emptyAnchorFix:f&&e.version<8,tryRestoreFakeAnchor:function(p,q){if(q&&q.data('cke-real-element-type')&&q.data('cke-real-element-type')=='anchor'){var r=p.restoreRealElement(q);if(r.data('cke-saved-name'))return r;}}};d.unlinkCommand=function(){};d.unlinkCommand.prototype={exec:function(p){var q=p.getSelection(),r=q.createBookmarks(),s=q.getRanges(),t,u;for(var v=0;v<s.length;v++){t=s[v].getCommonAncestor(true);u=t.getAscendant('a',true);if(!u)continue;s[v].selectNodeContents(u);}q.selectRanges(s);p.document.$.execCommand('unlink',false,null);q.selectBookmarks(r);},startDisabled:true};d.removeAnchorCommand=function(){};d.removeAnchorCommand.prototype={exec:function(p){var q=p.getSelection(),r=q.createBookmarks(),s;if(q&&(s=q.getSelectedElement())&&(m.link.fakeAnchor&&!s.getChildCount()?m.link.tryRestoreFakeAnchor(p,s):s.is('a')))s.remove(1);else if(s=m.link.getSelectedLink(p))if(s.hasAttribute('href')){s.removeAttributes({name:1,'data-cke-saved-name':1});s.removeClass('cke_anchor');}else s.remove(1);q.selectBookmarks(r);}};h.extend(l,{linkShowAdvancedTab:true,linkShowTargetTab:true});(function(){var p={ol:1,ul:1},q=/^[\n\r\t ]*$/,r=g.walker.whitespaces(),s=g.walker.bookmark(),t=function(H){return!(r(H)||s(H));
};m.list={listToArray:function(H,I,J,K,L){if(!p[H.getName()])return[];if(!K)K=0;if(!J)J=[];for(var M=0,N=H.getChildCount();M<N;M++){var O=H.getChild(M);if(O.type==1&&O.getName() in i.$list)m.list.listToArray(O,I,J,K+1);if(O.$.nodeName.toLowerCase()!='li')continue;var P={parent:H,indent:K,element:O,contents:[]};if(!L){P.grandparent=H.getParent();if(P.grandparent&&P.grandparent.$.nodeName.toLowerCase()=='li')P.grandparent=P.grandparent.getParent();}else P.grandparent=L;if(I)k.setMarker(I,O,'listarray_index',J.length);J.push(P);for(var Q=0,R=O.getChildCount(),S;Q<R;Q++){S=O.getChild(Q);if(S.type==1&&p[S.getName()])m.list.listToArray(S,I,J,K+1,P.grandparent);else P.contents.push(S);}}return J;},arrayToList:function(H,I,J,K,L){if(!J)J=0;if(!H||H.length<J+1)return null;var M=H[J].parent.getDocument(),N=new g.documentFragment(M),O=null,P=J,Q=Math.max(H[J].indent,0),R=null,S,T=K==1?'p':'div';while(1){var U=H[P];S=U.element.getDirection(1);if(U.indent==Q){if(!O||H[P].parent.getName()!=O.getName()){O=H[P].parent.clone(false,1);L&&O.setAttribute('dir',L);N.append(O);}R=O.append(U.element.clone(0,1));if(S!=O.getDirection(1))R.setAttribute('dir',S);else R.removeAttribute('dir');for(var V=0;V<U.contents.length;V++)R.append(U.contents[V].clone(1,1));P++;}else if(U.indent==Math.max(Q,0)+1){var W=H[P-1].element.getDirection(1),X=m.list.arrayToList(H,null,P,K,W!=S?S:null);if(!R.getChildCount()&&f&&!(M.$.documentMode>7))R.append(M.createText('\xa0'));R.append(X.listNode);P=X.nextIndex;}else if(U.indent==-1&&!J&&U.grandparent){if(p[U.grandparent.getName()])R=U.element.clone(false,true);else if(L||U.element.hasAttributes()||K!=2){R=M.createElement(T);U.element.copyAttributes(R,{type:1,value:1});if(!L&&K==2&&!R.hasAttributes())R=new g.documentFragment(M);}else R=new g.documentFragment(M);if(R.type==1)if(U.grandparent.getDirection(1)!=S)R.setAttribute('dir',S);else R.removeAttribute('dir');for(V=0;V<U.contents.length;V++)R.append(U.contents[V].clone(1,1));if(R.type==11&&P!=H.length-1){var Y=R.getLast();if(Y&&Y.type==1&&Y.getAttribute('type')=='_moz')Y.remove();if(!(Y=R.getLast(t)&&Y.type==1&&Y.getName() in i.$block))R.append(M.createElement('br'));}if(R.type==1&&R.getName()==T&&R.$.firstChild){R.trim();var Z=R.getFirst();if(Z.type==1&&Z.isBlockBoundary()){var aa=new g.documentFragment(M);R.moveChildren(aa);R=aa;}}var ab=R.$.nodeName.toLowerCase();if(!f&&(ab=='div'||ab=='p'))R.appendBogus();N.append(R);O=null;P++;}else return null;if(H.length<=P||Math.max(H[P].indent,0)<Q)break;}if(I){var ac=N.getFirst();
while(ac){if(ac.type==1)k.clearMarkers(I,ac);ac=ac.getNextSourceNode();}}return{listNode:N,nextIndex:P};}};function u(H){if(H.editor.readOnly)return null;var I=H.data.path,J=I.blockLimit,K=I.elements,L,M;for(M=0;M<K.length&&(L=K[M])&&!L.equals(J);M++){if(p[K[M].getName()])return this.setState(this.type==K[M].getName()?1:2);}return this.setState(2);};function v(H,I,J,K){var L=m.list.listToArray(I.root,J),M=[];for(var N=0;N<I.contents.length;N++){var O=I.contents[N];O=O.getAscendant('li',true);if(!O||O.getCustomData('list_item_processed'))continue;M.push(O);k.setMarker(J,O,'list_item_processed',true);}var P=I.root,Q=P.getDocument().createElement(this.type);P.copyAttributes(Q,{start:1,type:1});Q.removeStyle('list-style-type');for(N=0;N<M.length;N++){var R=M[N].getCustomData('listarray_index');L[R].parent=Q;}var S=m.list.arrayToList(L,J,null,H.config.enterMode),T,U=S.listNode.getChildCount();for(N=0;N<U&&(T=S.listNode.getChild(N));N++){if(T.getName()==this.type)K.push(T);}S.listNode.replace(I.root);};var w=/^h[1-6]$/;function x(H,I,J){var K=I.contents,L=I.root.getDocument(),M=[];if(K.length==1&&K[0].equals(I.root)){var N=L.createElement('div');K[0].moveChildren&&K[0].moveChildren(N);K[0].append(N);K[0]=N;}var O=I.contents[0].getParent();for(var P=0;P<K.length;P++)O=O.getCommonAncestor(K[P].getParent());var Q=H.config.useComputedState,R,S;Q=Q===undefined||Q;for(P=0;P<K.length;P++){var T=K[P],U;while(U=T.getParent()){if(U.equals(O)){M.push(T);if(!S&&T.getDirection())S=1;var V=T.getDirection(Q);if(R!==null)if(R&&R!=V)R=null;else R=V;break;}T=U;}}if(M.length<1)return;var W=M[M.length-1].getNext(),X=L.createElement(this.type);J.push(X);var Y,Z;while(M.length){Y=M.shift();Z=L.createElement('li');if(Y.is('pre')||w.test(Y.getName()))Y.appendTo(Z);else{Y.copyAttributes(Z);if(R&&Y.getDirection()){Z.removeStyle('direction');Z.removeAttribute('dir');}Y.moveChildren(Z);Y.remove();}Z.appendTo(X);}if(R&&S)X.setAttribute('dir',R);if(W)X.insertBefore(W);else X.appendTo(O);};function y(H,I,J){var K=m.list.listToArray(I.root,J),L=[];for(var M=0;M<I.contents.length;M++){var N=I.contents[M];N=N.getAscendant('li',true);if(!N||N.getCustomData('list_item_processed'))continue;L.push(N);k.setMarker(J,N,'list_item_processed',true);}var O=null;for(M=0;M<L.length;M++){var P=L[M].getCustomData('listarray_index');K[P].indent=-1;O=P;}for(M=O+1;M<K.length;M++){if(K[M].indent>K[M-1].indent+1){var Q=K[M-1].indent+1-K[M].indent,R=K[M].indent;while(K[M]&&K[M].indent>=R){K[M].indent+=Q;M++;}M--;}}var S=m.list.arrayToList(K,J,null,H.config.enterMode,I.root.getAttribute('dir')),T=S.listNode,U,V;
function W(X){if((U=T[X?'getFirst':'getLast']())&&!(U.is&&U.isBlockBoundary())&&(V=I.root[X?'getPrevious':'getNext'](g.walker.whitespaces(true)))&&!(V.is&&V.isBlockBoundary({br:1})))H.document.createElement('br')[X?'insertBefore':'insertAfter'](U);};W(true);W();T.replace(I.root);};function z(H,I){this.name=H;this.type=I;};z.prototype={exec:function(H){var I=H.document,J=H.config,K=H.getSelection(),L=K&&K.getRanges(true);if(!L||L.length<1)return;if(this.state==2){var M=I.getBody();if(!M.getFirst(t)){J.enterMode==2?M.appendBogus():L[0].fixBlock(1,J.enterMode==1?'p':'div');K.selectRanges(L);}else{var N=L.length==1&&L[0],O=N&&N.getEnclosedNode();if(O&&O.is&&this.type==O.getName())this.setState(1);}}var P=K.createBookmarks(true),Q=[],R={},S=L.createIterator(),T=0;while((N=S.getNextRange())&&++T){var U=N.getBoundaryNodes(),V=U.startNode,W=U.endNode;if(V.type==1&&V.getName()=='td')N.setStartAt(U.startNode,1);if(W.type==1&&W.getName()=='td')N.setEndAt(U.endNode,2);var X=N.createIterator(),Y;X.forceBrBreak=this.state==2;while(Y=X.getNextParagraph()){if(Y.getCustomData('list_block'))continue;else k.setMarker(R,Y,'list_block',1);var Z=new g.elementPath(Y),aa=Z.elements,ab=aa.length,ac=null,ad=0,ae=Z.blockLimit,af;for(var ag=ab-1;ag>=0&&(af=aa[ag]);ag--){if(p[af.getName()]&&ae.contains(af)){ae.removeCustomData('list_group_object_'+T);var ah=af.getCustomData('list_group_object');if(ah)ah.contents.push(Y);else{ah={root:af,contents:[Y]};Q.push(ah);k.setMarker(R,af,'list_group_object',ah);}ad=1;break;}}if(ad)continue;var ai=ae;if(ai.getCustomData('list_group_object_'+T))ai.getCustomData('list_group_object_'+T).contents.push(Y);else{ah={root:ai,contents:[Y]};k.setMarker(R,ai,'list_group_object_'+T,ah);Q.push(ah);}}}var aj=[];while(Q.length>0){ah=Q.shift();if(this.state==2){if(p[ah.root.getName()])v.call(this,H,ah,R,aj);else x.call(this,H,ah,aj);}else if(this.state==1&&p[ah.root.getName()])y.call(this,H,ah,R);}for(ag=0;ag<aj.length;ag++){ac=aj[ag];var ak,al=this;(ak=function(am){var an=ac[am?'getPrevious':'getNext'](g.walker.whitespaces(true));if(an&&an.getName&&an.getName()==al.type){an.remove();an.moveChildren(ac,am);}})();ak(1);}k.clearAllMarkers(R);K.selectBookmarks(P);H.focus();}};var A=i,B=/[\t\r\n ]*(?:&nbsp;|\xa0)$/;function C(H,I){var J,K=H.children,L=K.length;for(var M=0;M<L;M++){J=K[M];if(J.name&&J.name in I)return M;}return L;};function D(H){return function(I){var J=I.children,K=C(I,A.$list),L=J[K],M=L&&L.previous,N;if(M&&(M.name&&M.name=='br'||M.value&&(N=M.value.match(B)))){var O=M;
if(!(N&&N.index)&&O==J[0])J[0]=H||f?new d.htmlParser.text('\xa0'):new d.htmlParser.element('br',{});else if(O.name=='br')J.splice(K-1,1);else O.value=O.value.replace(B,'');}};};var E={elements:{}};for(var F in A.$listItem)E.elements[F]=D();var G={elements:{}};for(F in A.$listItem)G.elements[F]=D(true);m.add('list',{init:function(H){var I=H.addCommand('numberedlist',new z('numberedlist','ol')),J=H.addCommand('bulletedlist',new z('bulletedlist','ul'));H.ui.addButton('NumberedList',{label:H.lang.numberedlist,command:'numberedlist'});H.ui.addButton('BulletedList',{label:H.lang.bulletedlist,command:'bulletedlist'});H.on('selectionChange',h.bind(u,I));H.on('selectionChange',h.bind(u,J));},afterInit:function(H){var I=H.dataProcessor;if(I){I.dataFilter.addRules(E);I.htmlFilter.addRules(G);}},requires:['domiterator']});})();(function(){m.liststyle={requires:['dialog'],init:function(p){p.addCommand('numberedListStyle',new d.dialogCommand('numberedListStyle'));d.dialog.add('numberedListStyle',this.path+'dialogs/liststyle.js');p.addCommand('bulletedListStyle',new d.dialogCommand('bulletedListStyle'));d.dialog.add('bulletedListStyle',this.path+'dialogs/liststyle.js');if(p.addMenuItems){p.addMenuGroup('list',108);p.addMenuItems({numberedlist:{label:p.lang.list.numberedTitle,group:'list',command:'numberedListStyle'},bulletedlist:{label:p.lang.list.bulletedTitle,group:'list',command:'bulletedListStyle'}});}if(p.contextMenu)p.contextMenu.addListener(function(q,r){if(!q||q.isReadOnly())return null;while(q){var s=q.getName();if(s=='ol')return{numberedlist:2};else if(s=='ul')return{bulletedlist:2};q=q.getParent();}return null;});}};m.add('liststyle',m.liststyle);})();(function(){function p(v){if(!v||v.type!=1||v.getName()!='form')return[];var w=[],x=['style','className'];for(var y=0;y<x.length;y++){var z=x[y],A=v.$.elements.namedItem(z);if(A){var B=new k(A);w.push([B,B.nextSibling]);B.remove();}}return w;};function q(v,w){if(!v||v.type!=1||v.getName()!='form')return;if(w.length>0)for(var x=w.length-1;x>=0;x--){var y=w[x][0],z=w[x][1];if(z)y.insertBefore(z);else y.appendTo(v);}};function r(v,w){var x=p(v),y={},z=v.$;if(!w){y['class']=z.className||'';z.className='';}y.inline=z.style.cssText||'';if(!w)z.style.cssText='position: static; overflow: visible';q(x);return y;};function s(v,w){var x=p(v),y=v.$;if('class' in w)y.className=w['class'];if('inline' in w)y.style.cssText=w.inline;q(x);};function t(v){var w=d.instances;for(var x in w){var y=w[x];if(y.mode=='wysiwyg'&&!y.readOnly){var z=y.document.getBody();
z.setAttribute('contentEditable',false);z.setAttribute('contentEditable',true);}}if(v.focusManager.hasFocus){v.toolbox.focus();v.focus();}};function u(v){if(!f||e.version>6)return null;var w=k.createFromHtml('<iframe frameborder="0" tabindex="-1" src="javascript:void((function(){document.open();'+(e.isCustomDomain()?"document.domain='"+this.getDocument().$.domain+"';":'')+'document.close();'+'})())"'+' style="display:block;position:absolute;z-index:-1;'+'progid:DXImageTransform.Microsoft.Alpha(opacity=0);'+'"></iframe>');return v.append(w,true);};m.add('maximize',{init:function(v){var w=v.lang,x=d.document,y=x.getWindow(),z,A,B,C;function D(){var F=y.getViewPaneSize();C&&C.setStyles({width:F.width+'px',height:F.height+'px'});v.resize(F.width,F.height,null,true);};var E=2;v.addCommand('maximize',{modes:{wysiwyg:1,source:1},readOnly:1,editorFocus:false,exec:function(){var F=v.container.getChild(1),G=v.getThemeSpace('contents');if(v.mode=='wysiwyg'){var H=v.getSelection();z=H&&H.getRanges();A=y.getScrollPosition();}else{var I=v.textarea.$;z=!f&&[I.selectionStart,I.selectionEnd];A=[I.scrollLeft,I.scrollTop];}if(this.state==2){y.on('resize',D);B=y.getScrollPosition();var J=v.container;while(J=J.getParent()){J.setCustomData('maximize_saved_styles',r(J));J.setStyle('z-index',v.config.baseFloatZIndex-1);}G.setCustomData('maximize_saved_styles',r(G,true));F.setCustomData('maximize_saved_styles',r(F,true));var K={overflow:e.webkit?'':'hidden',width:0,height:0};x.getDocumentElement().setStyles(K);!e.gecko&&x.getDocumentElement().setStyle('position','fixed');!(e.gecko&&e.quirks)&&x.getBody().setStyles(K);f?setTimeout(function(){y.$.scrollTo(0,0);},0):y.$.scrollTo(0,0);F.setStyle('position',e.gecko&&e.quirks?'fixed':'absolute');F.$.offsetLeft;F.setStyles({'z-index':v.config.baseFloatZIndex-1,left:'0px',top:'0px'});C=u(F);F.addClass('cke_maximized');D();var L=F.getDocumentPosition();F.setStyles({left:-1*L.x+'px',top:-1*L.y+'px'});e.gecko&&t(v);}else if(this.state==1){y.removeListener('resize',D);var M=[G,F];for(var N=0;N<M.length;N++){s(M[N],M[N].getCustomData('maximize_saved_styles'));M[N].removeCustomData('maximize_saved_styles');}J=v.container;while(J=J.getParent()){s(J,J.getCustomData('maximize_saved_styles'));J.removeCustomData('maximize_saved_styles');}f?setTimeout(function(){y.$.scrollTo(B.x,B.y);},0):y.$.scrollTo(B.x,B.y);F.removeClass('cke_maximized');if(e.webkit){F.setStyle('display','inline');setTimeout(function(){F.setStyle('display','block');},0);}if(C){C.remove();
C=null;}v.fire('resize');}this.toggleState();var O=this.uiItems[0];if(O){var P=this.state==2?w.maximize:w.minimize,Q=v.element.getDocument().getById(O._.id);Q.getChild(1).setHtml(P);Q.setAttribute('title',P);Q.setAttribute('href','javascript:void("'+P+'");');}if(v.mode=='wysiwyg'){if(z){e.gecko&&t(v);v.getSelection().selectRanges(z);var R=v.getSelection().getStartElement();R&&R.scrollIntoView(true);}else y.$.scrollTo(A.x,A.y);}else{if(z){I.selectionStart=z[0];I.selectionEnd=z[1];}I.scrollLeft=A[0];I.scrollTop=A[1];}z=A=null;E=this.state;},canUndo:false});v.ui.addButton('Maximize',{label:w.maximize,command:'maximize'});v.on('mode',function(){var F=v.getCommand('maximize');F.setState(F.state==0?0:E);},null,null,100);}});})();m.add('newpage',{init:function(p){p.addCommand('newpage',{modes:{wysiwyg:1,source:1},exec:function(q){var r=this;q.setData(q.config.newpage_html||'',function(){setTimeout(function(){q.fire('afterCommandExec',{name:r.name,command:r});q.selectionChange();},200);});q.focus();},async:true});p.ui.addButton('NewPage',{label:p.lang.newPage,command:'newpage'});}});m.add('pagebreak',{init:function(p){p.addCommand('pagebreak',m.pagebreakCmd);p.ui.addButton('PageBreak',{label:p.lang.pagebreak,command:'pagebreak'});var q=['{','background: url('+d.getUrl(this.path+'images/pagebreak.gif')+') no-repeat center center;','clear: both;','width:100%; _width:99.9%;','border-top: #999999 1px dotted;','border-bottom: #999999 1px dotted;','padding:0;','height: 5px;','cursor: default;','}'].join('').replace(/;/g,' !important;');p.addCss('div.cke_pagebreak'+q);e.opera&&p.on('contentDom',function(){p.document.on('click',function(r){var s=r.data.getTarget();if(s.is('div')&&s.hasClass('cke_pagebreak'))p.getSelection().selectElement(s);});});},afterInit:function(p){var q=p.lang.pagebreakAlt,r=p.dataProcessor,s=r&&r.dataFilter,t=r&&r.htmlFilter;if(t)t.addRules({attributes:{'class':function(u,v){var w=u.replace('cke_pagebreak','');if(w!=u){var x=d.htmlParser.fragment.fromHtml('<span style="display: none;">&nbsp;</span>');v.children.length=0;v.add(x);var y=v.attributes;delete y['aria-label'];delete y.contenteditable;delete y.title;}return w;}}},5);if(s)s.addRules({elements:{div:function(u){var v=u.attributes,w=v&&v.style,x=w&&u.children.length==1&&u.children[0],y=x&&x.name=='span'&&x.attributes.style;if(y&&/page-break-after\s*:\s*always/i.test(w)&&/display\s*:\s*none/i.test(y)){v.contenteditable='false';v['class']='cke_pagebreak';v['data-cke-display-name']='pagebreak';v['aria-label']=q;
v.title=q;u.children.length=0;}}}});},requires:['fakeobjects']});m.pagebreakCmd={exec:function(p){var q=p.lang.pagebreakAlt,r=k.createFromHtml('<div style="page-break-after: always;"contenteditable="false" title="'+q+'" '+'aria-label="'+q+'" '+'data-cke-display-name="pagebreak" '+'class="cke_pagebreak">'+'</div>',p.document),s=p.getSelection().getRanges(true);p.fire('saveSnapshot');for(var t,u=s.length-1;u>=0;u--){t=s[u];if(u<s.length-1)r=r.clone(true);t.splitBlock('p');t.insertNode(r);if(u==s.length-1){var v=r.getNext();t.moveToPosition(r,4);if(!v||v.type==1&&!v.isEditable())t.fixBlock(true,p.config.enterMode==3?'div':'p');t.select();}}p.fire('saveSnapshot');}};(function(){function p(q){q.data.mode='html';};m.add('pastefromword',{init:function(q){var r=0,s=function(t){t&&t.removeListener();q.removeListener('beforePaste',p);r&&setTimeout(function(){r=0;},0);};q.addCommand('pastefromword',{canUndo:false,exec:function(){r=1;q.on('beforePaste',p);if(q.execCommand('paste','html')===false){q.on('dialogShow',function(t){t.removeListener();t.data.on('cancel',s);});q.on('dialogHide',function(t){t.data.removeListener('cancel',s);});}q.on('afterPaste',s);}});q.ui.addButton('PasteFromWord',{label:q.lang.pastefromword.toolbar,command:'pastefromword'});q.on('pasteState',function(t){q.getCommand('pastefromword').setState(t.data);});q.on('paste',function(t){var u=t.data,v;if((v=u.html)&&(r||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(v))){var w=this.loadFilterRules(function(){if(w)q.fire('paste',u);else if(!q.config.pasteFromWordPromptCleanup||r||confirm(q.lang.pastefromword.confirmCleanup))u.html=d.cleanWord(v,q);});w&&t.cancel();}},this);},loadFilterRules:function(q){var r=d.cleanWord;if(r)q();else{var s=d.getUrl(l.pasteFromWordCleanupFile||this.path+'filter/default.js');d.scriptLoader.load(s,q,null,true);}return!r;},requires:['clipboard']});})();(function(){var p={exec:function(q){var r=h.tryThese(function(){var s=window.clipboardData.getData('Text');if(!s)throw 0;return s;});if(!r){q.openDialog('pastetext');return false;}else q.fire('paste',{text:r});return true;}};m.add('pastetext',{init:function(q){var r='pastetext',s=q.addCommand(r,p);q.ui.addButton('PasteText',{label:q.lang.pasteText.button,command:r});d.dialog.add(r,d.getUrl(this.path+'dialogs/pastetext.js'));if(q.config.forcePasteAsPlainText){q.on('beforeCommandExec',function(t){var u=t.data.commandData;if(t.data.name=='paste'&&u!='html'){q.execCommand('pastetext');t.cancel();}},null,null,0);q.on('beforePaste',function(t){t.data.mode='text';
});}q.on('pasteState',function(t){q.getCommand('pastetext').setState(t.data);});},requires:['clipboard']});})();m.add('popup');h.extend(d.editor.prototype,{popup:function(p,q,r,s){q=q||'80%';r=r||'70%';if(typeof q=='string'&&q.length>1&&q.substr(q.length-1,1)=='%')q=parseInt(window.screen.width*parseInt(q,10)/100,10);if(typeof r=='string'&&r.length>1&&r.substr(r.length-1,1)=='%')r=parseInt(window.screen.height*parseInt(r,10)/100,10);if(q<640)q=640;if(r<420)r=420;var t=parseInt((window.screen.height-r)/2,10),u=parseInt((window.screen.width-q)/2,10);s=(s||'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes')+',width='+q+',height='+r+',top='+t+',left='+u;var v=window.open('',null,s,true);if(!v)return false;try{v.moveTo(u,t);v.resizeTo(q,r);v.focus();v.location.href=p;}catch(w){v=window.open(p,null,s,true);}return true;}});(function(){var p={modes:{wysiwyg:1,source:1},canUndo:false,readOnly:1,exec:function(r){var s,t=r.config,u=t.baseHref?'<base href="'+t.baseHref+'"/>':'',v=e.isCustomDomain();if(t.fullPage)s=r.getData().replace(/<head>/,'$&'+u).replace(/[^>]*(?=<\/title>)/,'$& &mdash; '+r.lang.preview);else{var w='<body ',x=r.document&&r.document.getBody();if(x){if(x.getAttribute('id'))w+='id="'+x.getAttribute('id')+'" ';if(x.getAttribute('class'))w+='class="'+x.getAttribute('class')+'" ';}w+='>';s=r.config.docType+'<html dir="'+r.config.contentsLangDirection+'">'+'<head>'+u+'<title>'+r.lang.preview+'</title>'+h.buildStyleHtml(r.config.contentsCss)+'</head>'+w+r.getData()+'</body></html>';}var y=640,z=420,A=80;try{var B=window.screen;y=Math.round(B.width*0.8);z=Math.round(B.height*0.7);A=Math.round(B.width*0.1);}catch(E){}var C='';if(v){window._cke_htmlToLoad=s;C='javascript:void( (function(){document.open();document.domain="'+document.domain+'";'+'document.write( window.opener._cke_htmlToLoad );'+'document.close();'+'window.opener._cke_htmlToLoad = null;'+'})() )';}var D=window.open(C,null,'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+y+',height='+z+',left='+A);if(!v){D.document.open();D.document.write(s);D.document.close();}}},q='preview';m.add(q,{init:function(r){r.addCommand(q,p);r.ui.addButton('Preview',{label:r.lang.preview,command:q});}});})();m.add('print',{init:function(p){var q='print',r=p.addCommand(q,m.print);p.ui.addButton('Print',{label:p.lang.print,command:q});}});m.print={exec:function(p){if(e.opera)return;else if(e.gecko)p.window.$.print();
else p.document.$.execCommand('Print');},canUndo:false,readOnly:1,modes:{wysiwyg:!e.opera}};m.add('removeformat',{requires:['selection'],init:function(p){p.addCommand('removeFormat',m.removeformat.commands.removeformat);p.ui.addButton('RemoveFormat',{label:p.lang.removeFormat,command:'removeFormat'});p._.removeFormat={filters:[]};}});m.removeformat={commands:{removeformat:{exec:function(p){var q=p._.removeFormatRegex||(p._.removeFormatRegex=new RegExp('^(?:'+p.config.removeFormatTags.replace(/,/g,'|')+')$','i')),r=p._.removeAttributes||(p._.removeAttributes=p.config.removeFormatAttributes.split(',')),s=m.removeformat.filter,t=p.getSelection().getRanges(1),u=t.createIterator(),v;while(v=u.getNextRange()){if(!v.collapsed)v.enlarge(1);var w=v.createBookmark(),x=w.startNode,y=w.endNode,z,A=function(C){var D=new g.elementPath(C),E=D.elements;for(var F=1,G;G=E[F];F++){if(G.equals(D.block)||G.equals(D.blockLimit))break;if(q.test(G.getName())&&s(p,G))C.breakParent(G);}};A(x);if(y){A(y);z=x.getNextSourceNode(true,1);while(z){if(z.equals(y))break;var B=z.getNextSourceNode(false,1);if(!(z.getName()=='img'&&z.data('cke-realelement'))&&s(p,z))if(q.test(z.getName()))z.remove(1);else{z.removeAttributes(r);p.fire('removeFormatCleanup',z);}z=B;}}v.moveToBookmark(w);}p.getSelection().selectRanges(t);}}},filter:function(p,q){var r=p._.removeFormat.filters;for(var s=0;s<r.length;s++){if(r[s](q)===false)return false;}return true;}};d.editor.prototype.addRemoveFormatFilter=function(p){this._.removeFormat.filters.push(p);};l.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';l.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';m.add('resize',{init:function(p){var q=p.config,r=p.element.getDirection(1);!q.resize_dir&&(q.resize_dir='both');q.resize_maxWidth==undefined&&(q.resize_maxWidth=3000);q.resize_maxHeight==undefined&&(q.resize_maxHeight=3000);q.resize_minWidth==undefined&&(q.resize_minWidth=750);q.resize_minHeight==undefined&&(q.resize_minHeight=250);if(q.resize_enabled!==false){var s=null,t,u,v=(q.resize_dir=='both'||q.resize_dir=='horizontal')&&q.resize_minWidth!=q.resize_maxWidth,w=(q.resize_dir=='both'||q.resize_dir=='vertical')&&q.resize_minHeight!=q.resize_maxHeight;function x(A){var B=A.data.$.screenX-t.x,C=A.data.$.screenY-t.y,D=u.width,E=u.height,F=D+B*(r=='rtl'?-1:1),G=E+C;if(v)D=Math.max(q.resize_minWidth,Math.min(F,q.resize_maxWidth));if(w)E=Math.max(q.resize_minHeight,Math.min(G,q.resize_maxHeight));
p.resize(D,E);};function y(A){d.document.removeListener('mousemove',x);d.document.removeListener('mouseup',y);if(p.document){p.document.removeListener('mousemove',x);p.document.removeListener('mouseup',y);}};var z=h.addFunction(function(A){if(!s)s=p.getResizable();u={width:s.$.offsetWidth||0,height:s.$.offsetHeight||0};t={x:A.screenX,y:A.screenY};q.resize_minWidth>u.width&&(q.resize_minWidth=u.width);q.resize_minHeight>u.height&&(q.resize_minHeight=u.height);d.document.on('mousemove',x);d.document.on('mouseup',y);if(p.document){p.document.on('mousemove',x);p.document.on('mouseup',y);}});p.on('destroy',function(){h.removeFunction(z);});p.on('themeSpace',function(A){if(A.data.space=='bottom'){var B='';if(v&&!w)B=' cke_resizer_horizontal';if(!v&&w)B=' cke_resizer_vertical';var C='<div class="cke_resizer'+B+' cke_resizer_'+r+'"'+' title="'+h.htmlEncode(p.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+z+', event)"'+'></div>';r=='ltr'&&B=='ltr'?A.data.html+=C:A.data.html=C+A.data.html;}},p,null,100);}}});(function(){var p={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(r){var s=r.element.$.form;if(s)try{s.submit();}catch(t){if(s.submit.click)s.submit.click();}}},q='save';m.add(q,{init:function(r){var s=r.addCommand(q,p);s.modes={wysiwyg:!!r.element.$.form};r.ui.addButton('Save',{label:r.lang.save,command:q});}});})();(function(){var p='scaytcheck',q='';function r(w,x){var y=0,z;for(z in x){if(x[z]==w){y=1;break;}}return y;};var s=function(){var w=this,x=function(){var B=w.config,C={};C.srcNodeRef=w.document.getWindow().$.frameElement;C.assocApp='CKEDITOR.'+d.version+'@'+d.revision;C.customerid=B.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';C.customDictionaryIds=B.scayt_customDictionaryIds||'';C.userDictionaryName=B.scayt_userDictionaryName||'';C.sLang=B.scayt_sLang||'en_US';C.onLoad=function(){if(!(f&&e.version<8))this.addStyle(this.selectorCss(),'padding-bottom: 2px !important;');if(w.focusManager.hasFocus&&!t.isControlRestored(w))this.focus();};C.onBeforeChange=function(){if(t.getScayt(w)&&!w.checkDirty())setTimeout(function(){w.resetDirty();},0);};var D=window.scayt_custom_params;if(typeof D=='object')for(var E in D)C[E]=D[E];if(t.getControlId(w))C.id=t.getControlId(w);var F=new window.scayt(C);F.afterMarkupRemove.push(function(H){new k(H,F.document).mergeSiblings();});var G=t.instances[w.name];if(G){F.sLang=G.sLang;F.option(G.option());F.paused=G.paused;}t.instances[w.name]=F;try{F.setDisabled(t.isPaused(w)===false);
}catch(H){}w.fire('showScaytState');};w.on('contentDom',x);w.on('contentDomUnload',function(){var B=d.document.getElementsByTag('script'),C=/^dojoIoScript(\d+)$/i,D=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var E=0;E<B.count();E++){var F=B.getItem(E),G=F.getId(),H=F.getAttribute('src');if(G&&H&&G.match(C)&&H.match(D))F.remove();}});w.on('beforeCommandExec',function(B){if((B.data.name=='source'||B.data.name=='newpage')&&w.mode=='wysiwyg'){var C=t.getScayt(w);if(C){t.setPaused(w,!C.disabled);t.setControlId(w,C.id);C.destroy(true);delete t.instances[w.name];}}else if(B.data.name=='source'&&w.mode=='source')t.markControlRestore(w);});w.on('afterCommandExec',function(B){if(!t.isScaytEnabled(w))return;if(w.mode=='wysiwyg'&&(B.data.name=='undo'||B.data.name=='redo'))window.setTimeout(function(){t.getScayt(w).refresh();},10);});w.on('destroy',function(B){var C=B.editor,D=t.getScayt(C);if(!D)return;delete t.instances[C.name];t.setControlId(C,D.id);D.destroy(true);});w.on('afterSetData',function(){if(t.isScaytEnabled(w))window.setTimeout(function(){var B=t.getScayt(w);B&&B.refresh();},10);});w.on('insertElement',function(){var B=t.getScayt(w);if(t.isScaytEnabled(w)){if(f)w.getSelection().unlock(true);window.setTimeout(function(){B.focus();B.refresh();},10);}},this,null,50);w.on('insertHtml',function(){var B=t.getScayt(w);if(t.isScaytEnabled(w)){if(f)w.getSelection().unlock(true);window.setTimeout(function(){B.focus();B.refresh();},10);}},this,null,50);w.on('scaytDialog',function(B){B.data.djConfig=window.djConfig;B.data.scayt_control=t.getScayt(w);B.data.tab=q;B.data.scayt=window.scayt;});var y=w.dataProcessor,z=y&&y.htmlFilter;if(z)z.addRules({elements:{span:function(B){if(B.attributes['data-scayt_word']&&B.attributes['data-scaytid']){delete B.name;return B;}}}});var A=m.undo.Image.prototype;A.equals=h.override(A.equals,function(B){return function(C){var H=this;var D=H.contents,E=C.contents,F=t.getScayt(H.editor);if(F&&t.isScaytReady(H.editor)){H.contents=F.reset(D)||'';C.contents=F.reset(E)||'';}var G=B.apply(H,arguments);H.contents=D;C.contents=E;return G;};});if(w.document)x();};m.scayt={engineLoaded:false,instances:{},controlInfo:{},setControlInfo:function(w,x){if(w&&w.name&&typeof this.controlInfo[w.name]!='object')this.controlInfo[w.name]={};for(var y in x)this.controlInfo[w.name][y]=x[y];},isControlRestored:function(w){if(w&&w.name&&this.controlInfo[w.name])return this.controlInfo[w.name].restored;return false;},markControlRestore:function(w){this.setControlInfo(w,{restored:true});
},setControlId:function(w,x){this.setControlInfo(w,{id:x});},getControlId:function(w){if(w&&w.name&&this.controlInfo[w.name]&&this.controlInfo[w.name].id)return this.controlInfo[w.name].id;return null;},setPaused:function(w,x){this.setControlInfo(w,{paused:x});},isPaused:function(w){if(w&&w.name&&this.controlInfo[w.name])return this.controlInfo[w.name].paused;return undefined;},getScayt:function(w){return this.instances[w.name];},isScaytReady:function(w){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(w);},isScaytEnabled:function(w){var x=this.getScayt(w);return x?x.disabled===false:false;},getUiTabs:function(w){var x=[],y=w.config.scayt_uiTabs||'1,1,1';y=y.split(',');y[3]='1';for(var z=0;z<4;z++)x[z]=typeof window.scayt!='undefined'&&typeof window.scayt.uiTags!='undefined'?parseInt(y[z],10)&&window.scayt.uiTags[z]:parseInt(y[z],10);return x;},loadEngine:function(w){if(e.gecko&&e.version<10900||e.opera||e.air)return w.fire('showScaytState');if(this.engineLoaded===true)return s.apply(w);else if(this.engineLoaded==-1)return d.on('scaytReady',function(){s.apply(w);});d.on('scaytReady',s,w);d.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var x=document.location.protocol;x=x.search(/https?:/)!=-1?x:'http:';var y='svc.spellchecker.net/scayt26/loader__base.js',z=w.config.scayt_srcUrl||x+'//'+y,A=t.parseUrl(z).path+'/';if(window.scayt==undefined){d._djScaytConfig={baseUrl:A,addOnLoad:[function(){d.fireOnce('scaytReady');}],isDebug:false};d.document.getHead().append(d.document.createElement('script',{attributes:{type:'text/javascript',async:'true',src:z}}));}else d.fireOnce('scaytReady');return null;},parseUrl:function(w){var x;if(w.match&&(x=w.match(/(.*)[\/\\](.*?\.\w+)$/)))return{path:x[1],file:x[2]};else return w;}};var t=m.scayt,u=function(w,x,y,z,A,B,C){w.addCommand(z,A);w.addMenuItem(z,{label:y,command:z,group:B,order:C});},v={preserveState:true,editorFocus:false,canUndo:false,exec:function(w){if(t.isScaytReady(w)){var x=t.isScaytEnabled(w);this.setState(x?2:1);var y=t.getScayt(w);y.focus();y.setDisabled(x);}else if(!w.config.scayt_autoStartup&&t.engineLoaded>=0){this.setState(0);t.loadEngine(w);}}};m.add('scayt',{requires:['menubutton'],beforeInit:function(w){var x=w.config.scayt_contextMenuItemsOrder||'suggest|moresuggest|control',y='';x=x.split('|');if(x&&x.length)for(var z=0;z<x.length;z++)y+='scayt_'+x[z]+(x.length!=parseInt(z,10)+1?',':'');w.config.menu_groups=y+','+w.config.menu_groups;
},init:function(w){var x=w.dataProcessor&&w.dataProcessor.dataFilter,y={elements:{span:function(H){var I=H.attributes;if(I&&I['data-scaytid'])delete H.name;}}};x&&x.addRules(y);var z={},A={},B=w.addCommand(p,v);d.dialog.add(p,d.getUrl(this.path+'dialogs/options.js'));var C=t.getUiTabs(w),D='scaytButton';w.addMenuGroup(D);var E={},F=w.lang.scayt;E.scaytToggle={label:F.enable,command:p,group:D};if(C[0]==1)E.scaytOptions={label:F.options,group:D,onClick:function(){q='options';w.openDialog(p);}};if(C[1]==1)E.scaytLangs={label:F.langs,group:D,onClick:function(){q='langs';w.openDialog(p);}};if(C[2]==1)E.scaytDict={label:F.dictionariesTab,group:D,onClick:function(){q='dictionaries';w.openDialog(p);}};E.scaytAbout={label:w.lang.scayt.about,group:D,onClick:function(){q='about';w.openDialog(p);}};w.addMenuItems(E);w.ui.add('Scayt','menubutton',{label:F.title,title:e.opera?F.opera_title:F.title,className:'cke_button_scayt',modes:{wysiwyg:1},onRender:function(){B.on('state',function(){this.setState(B.state);},this);},onMenu:function(){var H=t.isScaytEnabled(w);w.getMenuItem('scaytToggle').label=F[H?'disable':'enable'];var I=t.getUiTabs(w);return{scaytToggle:2,scaytOptions:H&&I[0]?2:0,scaytLangs:H&&I[1]?2:0,scaytDict:H&&I[2]?2:0,scaytAbout:H&&I[3]?2:0};}});if(w.contextMenu&&w.addMenuItems)w.contextMenu.addListener(function(H,I){if(!t.isScaytEnabled(w)||I.getRanges()[0].checkReadOnly())return null;var J=t.getScayt(w),K=J.getScaytNode();if(!K)return null;var L=J.getWord(K);if(!L)return null;var M=J.getLang(),N={},O=window.scayt.getSuggestion(L,M);if(!O||!O.length)return null;for(var P in z){delete w._.menuItems[P];delete w._.commands[P];}for(P in A){delete w._.menuItems[P];delete w._.commands[P];}z={};A={};var Q=w.config.scayt_moreSuggestions||'on',R=false,S=w.config.scayt_maxSuggestions;typeof S!='number'&&(S=5);!S&&(S=O.length);var T=w.config.scayt_contextCommands||'all';T=T.split('|');for(var U=0,V=O.length;U<V;U+=1){var W='scayt_suggestion_'+O[U].replace(' ','_'),X=(function(ab,ac){return{exec:function(){J.replace(ab,ac);}};})(K,O[U]);if(U<S){u(w,'button_'+W,O[U],W,X,'scayt_suggest',U+1);N[W]=2;A[W]=2;}else if(Q=='on'){u(w,'button_'+W,O[U],W,X,'scayt_moresuggest',U+1);z[W]=2;R=true;}}if(R){w.addMenuItem('scayt_moresuggest',{label:F.moreSuggestions,group:'scayt_moresuggest',order:10,getItems:function(){return z;}});A.scayt_moresuggest=2;}if(r('all',T)||r('ignore',T)){var Y={exec:function(){J.ignore(K);}};u(w,'ignore',F.ignore,'scayt_ignore',Y,'scayt_control',1);A.scayt_ignore=2;
}if(r('all',T)||r('ignoreall',T)){var Z={exec:function(){J.ignoreAll(K);}};u(w,'ignore_all',F.ignoreAll,'scayt_ignore_all',Z,'scayt_control',2);A.scayt_ignore_all=2;}if(r('all',T)||r('add',T)){var aa={exec:function(){window.scayt.addWordToUserDictionary(K);}};u(w,'add_word',F.addWord,'scayt_add_word',aa,'scayt_control',3);A.scayt_add_word=2;}if(J.fireOnContextMenu)J.fireOnContextMenu(w);return A;});var G=function(){w.removeListener('showScaytState',G);if(!e.opera&&!e.air)B.setState(t.isScaytEnabled(w)?1:2);else B.setState(0);};w.on('showScaytState',G);if(e.opera||e.air)w.on('instanceReady',function(){G();});if(w.config.scayt_autoStartup)w.on('instanceReady',function(){t.loadEngine(w);});},afterInit:function(w){var x,y=function(z){if(z.hasAttribute('data-scaytid'))return false;};if(w._.elementsPath&&(x=w._.elementsPath.filters))x.push(y);w.addRemoveFormatFilter&&w.addRemoveFormatFilter(y);}});})();m.add('smiley',{requires:['dialog'],init:function(p){p.config.smiley_path=p.config.smiley_path||this.path+'images/';p.addCommand('smiley',new d.dialogCommand('smiley'));p.ui.addButton('Smiley',{label:p.lang.smiley.toolbar,command:'smiley'});d.dialog.add('smiley',this.path+'dialogs/smiley.js');}});l.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'];l.smiley_descriptions=['smiley','sad','wink','laugh','frown','cheeky','blush','surprise','indecision','angry','angel','cool','devil','crying','enlightened','no','yes','heart','broken heart','kiss','mail'];(function(){var p='.%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;background-position: top %3;border: 1px dotted gray;padding-top: 8px;padding-%3: 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);}',q=/%1/g,r=/%2/g,s=/%3/g,t={readOnly:1,preserveState:true,editorFocus:false,exec:function(u){this.toggleState();this.refresh(u);},refresh:function(u){if(u.document){var v=this.state==1?'addClass':'removeClass';u.document.getBody()[v]('cke_show_blocks');
}}};m.add('showblocks',{requires:['wysiwygarea'],init:function(u){var v=u.addCommand('showblocks',t);v.canUndo=false;if(u.config.startupOutlineBlocks)v.setState(1);u.addCss(p.replace(q,'background-image: url('+d.getUrl(this.path)+'images/block_').replace(r,'cke_show_blocks ').replace(s,u.lang.dir=='rtl'?'right':'left'));u.ui.addButton('ShowBlocks',{label:u.lang.showBlocks,command:'showblocks'});u.on('mode',function(){if(v.state!=0)v.refresh(u);});u.on('contentDom',function(){if(v.state!=0)v.refresh(u);});}});})();(function(){var p='cke_show_border',q,r=(e.ie6Compat?['.%1 table.%2,','.%1 table.%2 td, .%1 table.%2 th','{','border : #d3d3d3 1px dotted','}']:['.%1 table.%2,','.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,','.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,','.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,','.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th','{','border : #d3d3d3 1px dotted','}']).join('');q=r.replace(/%2/g,p).replace(/%1/g,'cke_show_borders ');var s={preserveState:true,editorFocus:false,readOnly:1,exec:function(t){this.toggleState();this.refresh(t);},refresh:function(t){if(t.document){var u=this.state==1?'addClass':'removeClass';t.document.getBody()[u]('cke_show_borders');}}};m.add('showborders',{requires:['wysiwygarea'],modes:{wysiwyg:1},init:function(t){var u=t.addCommand('showborders',s);u.canUndo=false;if(t.config.startupShowBorders!==false)u.setState(1);t.addCss(q);t.on('mode',function(){if(u.state!=0)u.refresh(t);},null,null,100);t.on('contentDom',function(){if(u.state!=0)u.refresh(t);});t.on('removeFormatCleanup',function(v){var w=v.data;if(t.getCommand('showborders').state==1&&w.is('table')&&(!w.hasAttribute('border')||parseInt(w.getAttribute('border'),10)<=0))w.addClass(p);});},afterInit:function(t){var u=t.dataProcessor,v=u&&u.dataFilter,w=u&&u.htmlFilter;if(v)v.addRules({elements:{table:function(x){var y=x.attributes,z=y['class'],A=parseInt(y.border,10);if(!A||A<=0)y['class']=(z||'')+' '+p;}}});if(w)w.addRules({elements:{table:function(x){var y=x.attributes,z=y['class'];z&&(y['class']=z.replace(p,'').replace(/\s{2}/,' ').replace(/^\s+|\s+$/,''));}}});}});d.on('dialogDefinition',function(t){var u=t.data.name;if(u=='table'||u=='tableProperties'){var v=t.data.definition,w=v.getContents('info'),x=w.get('txtBorder'),y=x.commit;x.commit=h.override(y,function(B){return function(C,D){B.apply(this,arguments);var E=parseInt(this.getValue(),10);D[!E||E<=0?'addClass':'removeClass'](p);
};});var z=v.getContents('advanced'),A=z&&z.get('advCSSClasses');if(A){A.setup=h.override(A.setup,function(B){return function(){B.apply(this,arguments);this.setValue(this.getValue().replace(/cke_show_border/,''));};});A.commit=h.override(A.commit,function(B){return function(C,D){B.apply(this,arguments);if(!parseInt(D.getAttribute('border'),10))D.addClass('cke_show_border');};});}}});})();m.add('sourcearea',{requires:['editingblock'],init:function(p){var q=m.sourcearea,r=d.document.getWindow();p.on('editingBlockReady',function(){var s,t;p.addMode('source',{load:function(u,v){if(f&&e.version<8)u.setStyle('position','relative');p.textarea=s=new k('textarea');s.setAttributes({dir:'ltr',tabIndex:e.webkit?-1:p.tabIndex,role:'textbox','aria-label':p.lang.editorTitle.replace('%1',p.name)});s.addClass('cke_source');s.addClass('cke_enable_context_menu');p.readOnly&&s.setAttribute('readOnly','readonly');var w={width:e.ie7Compat?'99%':'100%',height:'100%',resize:'none',outline:'none','text-align':'left'};if(f){t=function(){s.hide();s.setStyle('height',u.$.clientHeight+'px');s.setStyle('width',u.$.clientWidth+'px');s.show();};p.on('resize',t);r.on('resize',t);setTimeout(t,0);}u.setHtml('');u.append(s);s.setStyles(w);p.fire('ariaWidget',s);s.on('blur',function(){p.focusManager.blur();});s.on('focus',function(){p.focusManager.focus();});p.mayBeDirty=true;this.loadData(v);var x=p.keystrokeHandler;if(x)x.attach(s);setTimeout(function(){p.mode='source';p.fire('mode');},e.gecko||e.webkit?100:0);},loadData:function(u){s.setValue(u);p.fire('dataReady');},getData:function(){return s.getValue();},getSnapshotData:function(){return s.getValue();},unload:function(u){s.clearCustomData();p.textarea=s=null;if(t){p.removeListener('resize',t);r.removeListener('resize',t);}if(f&&e.version<8)u.removeStyle('position');},focus:function(){s.focus();}});});p.on('readOnly',function(){if(p.mode=='source')if(p.readOnly)p.textarea.setAttribute('readOnly','readonly');else p.textarea.removeAttribute('readOnly');});p.addCommand('source',q.commands.source);if(p.ui.addButton)p.ui.addButton('Source',{label:p.lang.source,command:'source'});p.on('mode',function(){p.getCommand('source').setState(p.mode=='source'?1:2);});}});m.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:false,readOnly:1,exec:function(p){if(p.mode=='wysiwyg')p.fire('saveSnapshot');p.getCommand('source').setState(0);p.setMode(p.mode=='source'?'wysiwyg':'source');},canUndo:false}}};(function(){m.add('stylescombo',{requires:['richcombo','styles'],init:function(q){var r=q.config,s=q.lang.stylesCombo,t={},u=[],v;
function w(x){q.getStylesSet(function(y){if(!u.length){var z,A;for(var B=0,C=y.length;B<C;B++){var D=y[B];A=D.name;z=t[A]=new d.style(D);z._name=A;z._.enterMode=r.enterMode;u.push(z);}u.sort(p);}x&&x();});};q.ui.addRichCombo('Styles',{label:s.label,title:s.panelTitle,className:'cke_styles',panel:{css:q.skin.editor.css.concat(r.contentsCss),multiSelect:true,attributes:{'aria-label':s.panelTitle}},init:function(){v=this;w(function(){var x,y,z,A,B,C;for(B=0,C=u.length;B<C;B++){x=u[B];y=x._name;A=x.type;if(A!=z){v.startGroup(s['panelTitle'+String(A)]);z=A;}v.add(y,x.type==3?y:x.buildPreview(),y);}v.commit();});},onClick:function(x){q.focus();q.fire('saveSnapshot');var y=t[x],z=q.getSelection(),A=new g.elementPath(z.getStartElement());y[y.checkActive(A)?'remove':'apply'](q.document);q.fire('saveSnapshot');},onRender:function(){q.on('selectionChange',function(x){var y=this.getValue(),z=x.data.path,A=z.elements;for(var B=0,C=A.length,D;B<C;B++){D=A[B];for(var E in t){if(t[E].checkElementRemovable(D,true)){if(E!=y)this.setValue(E);return;}}}this.setValue('');},this);},onOpen:function(){var E=this;if(f||e.webkit)q.focus();var x=q.getSelection(),y=x.getSelectedElement(),z=new g.elementPath(y||x.getStartElement()),A=[0,0,0,0];E.showAll();E.unmarkAll();for(var B in t){var C=t[B],D=C.type;if(C.checkActive(z))E.mark(B);else if(D==3&&!C.checkApplicable(z)){E.hideItem(B);A[D]--;}A[D]++;}if(!A[1])E.hideGroup(s['panelTitle'+String(1)]);if(!A[2])E.hideGroup(s['panelTitle'+String(2)]);if(!A[3])E.hideGroup(s['panelTitle'+String(3)]);},reset:function(){if(v){delete v._.panel;delete v._.list;v._.committed=0;v._.items={};v._.state=2;}t={};u=[];w();}});q.on('instanceReady',function(){w();});}});function p(q,r){var s=q.type,t=r.type;return s==t?0:s==3?-1:t==3?1:t==1?1:-1;};})();m.add('table',{init:function(p){var q=m.table,r=p.lang.table;p.addCommand('table',new d.dialogCommand('table'));p.addCommand('tableProperties',new d.dialogCommand('tableProperties'));p.ui.addButton('Table',{label:r.toolbar,command:'table'});d.dialog.add('table',this.path+'dialogs/table.js');d.dialog.add('tableProperties',this.path+'dialogs/table.js');if(p.addMenuItems)p.addMenuItems({table:{label:r.menu,command:'tableProperties',group:'table',order:5},tabledelete:{label:r.deleteTable,command:'tableDelete',group:'table',order:1}});p.on('doubleclick',function(s){var t=s.data.element;if(t.is('table'))s.data.dialog='tableProperties';});if(p.contextMenu)p.contextMenu.addListener(function(s,t){if(!s||s.isReadOnly())return null;
var u=s.hasAscendant('table',1);if(u)return{tabledelete:2,table:2};return null;});}});(function(){var p=/^(?:td|th)$/;function q(J){var K=J.createBookmarks(),L=J.getRanges(),M=[],N={};function O(W){if(M.length>0)return;if(W.type==1&&p.test(W.getName())&&!W.getCustomData('selected_cell')){k.setMarker(N,W,'selected_cell',true);M.push(W);}};for(var P=0;P<L.length;P++){var Q=L[P];if(Q.collapsed){var R=Q.getCommonAncestor(),S=R.getAscendant('td',true)||R.getAscendant('th',true);if(S)M.push(S);}else{var T=new g.walker(Q),U;T.guard=O;while(U=T.next()){var V=U.getAscendant('td')||U.getAscendant('th');if(V&&!V.getCustomData('selected_cell')){k.setMarker(N,V,'selected_cell',true);M.push(V);}}}}k.clearAllMarkers(N);J.selectBookmarks(K);return M;};function r(J){var K=0,L=J.length-1,M={},N,O,P;while(N=J[K++])k.setMarker(M,N,'delete_cell',true);K=0;while(N=J[K++]){if((O=N.getPrevious())&&!O.getCustomData('delete_cell')||(O=N.getNext())&&!O.getCustomData('delete_cell')){k.clearAllMarkers(M);return O;}}k.clearAllMarkers(M);P=J[0].getParent();if(P=P.getPrevious())return P.getLast();P=J[L].getParent();if(P=P.getNext())return P.getChild(0);return null;};function s(J,K){var L=q(J),M=L[0],N=M.getAscendant('table'),O=M.getDocument(),P=L[0].getParent(),Q=P.$.rowIndex,R=L[L.length-1],S=R.getParent().$.rowIndex+R.$.rowSpan-1,T=new k(N.$.rows[S]),U=K?Q:S,V=K?P:T,W=h.buildTableMap(N),X=W[U],Y=K?W[U-1]:W[U+1],Z=W[0].length,aa=O.createElement('tr');for(var ab=0;ab<Z;ab++){var ac;if(X[ab].rowSpan>1&&Y&&X[ab]==Y[ab]){ac=X[ab];ac.rowSpan+=1;}else{ac=new k(X[ab]).clone();ac.removeAttribute('rowSpan');!f&&ac.appendBogus();aa.append(ac);ac=ac.$;}ab+=ac.colSpan-1;}K?aa.insertBefore(V):aa.insertAfter(V);};function t(J){if(J instanceof g.selection){var K=q(J),L=K[0],M=L.getAscendant('table'),N=h.buildTableMap(M),O=K[0].getParent(),P=O.$.rowIndex,Q=K[K.length-1],R=Q.getParent().$.rowIndex+Q.$.rowSpan-1,S=[];for(var T=P;T<=R;T++){var U=N[T],V=new k(M.$.rows[T]);for(var W=0;W<U.length;W++){var X=new k(U[W]),Y=X.getParent().$.rowIndex;if(X.$.rowSpan==1)X.remove();else{X.$.rowSpan-=1;if(Y==T){var Z=N[T+1];Z[W-1]?X.insertAfter(new k(Z[W-1])):new k(M.$.rows[T+1]).append(X,1);}}W+=X.$.colSpan-1;}S.push(V);}var aa=M.$.rows,ab=new k(aa[R+1]||(P>0?aa[P-1]:null)||M.$.parentNode);for(T=S.length;T>=0;T--)t(S[T]);return ab;}else if(J instanceof k){M=J.getAscendant('table');if(M.$.rows.length==1)M.remove();else J.remove();}return null;};function u(J,K){var L=J.getParent(),M=L.$.cells,N=0;for(var O=0;O<M.length;
O++){var P=M[O];N+=K?1:P.colSpan;if(P==J.$)break;}return N-1;};function v(J,K){var L=K?Infinity:0;for(var M=0;M<J.length;M++){var N=u(J[M],K);if(K?N<L:N>L)L=N;}return L;};function w(J,K){var L=q(J),M=L[0],N=M.getAscendant('table'),O=v(L,1),P=v(L),Q=K?O:P,R=h.buildTableMap(N),S=[],T=[],U=R.length;for(var V=0;V<U;V++){S.push(R[V][Q]);var W=K?R[V][Q-1]:R[V][Q+1];W&&T.push(W);}for(V=0;V<U;V++){var X;if(S[V].colSpan>1&&T.length&&T[V]==S[V]){X=S[V];X.colSpan+=1;}else{X=new k(S[V]).clone();X.removeAttribute('colSpan');!f&&X.appendBogus();X[K?'insertBefore':'insertAfter'].call(X,new k(S[V]));X=X.$;}V+=X.rowSpan-1;}};function x(J){var K=q(J),L=K[0],M=K[K.length-1],N=L.getAscendant('table'),O=h.buildTableMap(N),P,Q,R=[];for(var S=0,T=O.length;S<T;S++)for(var U=0,V=O[S].length;U<V;U++){if(O[S][U]==L.$)P=U;if(O[S][U]==M.$)Q=U;}for(S=P;S<=Q;S++)for(U=0;U<O.length;U++){var W=O[U],X=new k(N.$.rows[U]),Y=new k(W[S]);if(Y.$){if(Y.$.colSpan==1)Y.remove();else Y.$.colSpan-=1;U+=Y.$.rowSpan-1;if(!X.$.cells.length)R.push(X);}}var Z=N.$.rows[0]&&N.$.rows[0].cells,aa=new k(Z[P]||(P?Z[P-1]:N.$.parentNode));if(R.length==T)N.remove();return aa;};function y(J){var K=[],L=J[0]&&J[0].getAscendant('table'),M,N,O,P;for(M=0,N=J.length;M<N;M++)K.push(J[M].$.cellIndex);K.sort();for(M=1,N=K.length;M<N;M++){if(K[M]-K[M-1]>1){O=K[M-1]+1;break;}}if(!O)O=K[0]>0?K[0]-1:K[K.length-1]+1;var Q=L.$.rows;for(M=0,N=Q.length;M<N;M++){P=Q[M].cells[O];if(P)break;}return P?new k(P):L.getPrevious();};function z(J,K){var L=J.getStartElement(),M=L.getAscendant('td',1)||L.getAscendant('th',1);if(!M)return;var N=M.clone();if(!f)N.appendBogus();if(K)N.insertBefore(M);else N.insertAfter(M);};function A(J){if(J instanceof g.selection){var K=q(J),L=K[0]&&K[0].getAscendant('table'),M=r(K);for(var N=K.length-1;N>=0;N--)A(K[N]);if(M)C(M,true);else if(L)L.remove();}else if(J instanceof k){var O=J.getParent();if(O.getChildCount()==1)O.remove();else J.remove();}};function B(J){var K=J.getBogus();K&&K.remove();J.trim();};function C(J,K){var L=new g.range(J.getDocument());if(!L['moveToElementEdit'+(K?'End':'Start')](J)){L.selectNodeContents(J);L.collapse(K?false:true);}L.select(true);};function D(J,K,L){var M=J[K];if(typeof L=='undefined')return M;for(var N=0;M&&N<M.length;N++){if(L.is&&M[N]==L.$)return N;else if(N==L)return new k(M[N]);}return L.is?-1:null;};function E(J,K,L){var M=[];for(var N=0;N<J.length;N++){var O=J[N];if(typeof L=='undefined')M.push(O[K]);else if(L.is&&O[K]==L.$)return N;else if(N==L)return new k(O[K]);
}return typeof L=='undefined'?M:L.is?-1:null;};function F(J,K,L){var M=q(J),N;if((K?M.length!=1:M.length<2)||(N=J.getCommonAncestor())&&N.type==1&&N.is('table'))return false;var O,P=M[0],Q=P.getAscendant('table'),R=h.buildTableMap(Q),S=R.length,T=R[0].length,U=P.getParent().$.rowIndex,V=D(R,U,P);if(K){var W;try{var X=parseInt(P.getAttribute('rowspan'),10)||1,Y=parseInt(P.getAttribute('colspan'),10)||1;W=R[K=='up'?U-X:K=='down'?U+X:U][K=='left'?V-Y:K=='right'?V+Y:V];}catch(aq){return false;}if(!W||P.$==W)return false;M[K=='up'||K=='left'?'unshift':'push'](new k(W));}var Z=P.getDocument(),aa=U,ab=0,ac=0,ad=!L&&new g.documentFragment(Z),ae=0;for(var af=0;af<M.length;af++){O=M[af];var ag=O.getParent(),ah=O.getFirst(),ai=O.$.colSpan,aj=O.$.rowSpan,ak=ag.$.rowIndex,al=D(R,ak,O);ae+=ai*aj;ac=Math.max(ac,al-V+ai);ab=Math.max(ab,ak-U+aj);if(!L){if(B(O),O.getChildren().count()){if(ak!=aa&&ah&&!(ah.isBlockBoundary&&ah.isBlockBoundary({br:1}))){var am=ad.getLast(g.walker.whitespaces(true));if(am&&!(am.is&&am.is('br')))ad.append('br');}O.moveChildren(ad);}af?O.remove():O.setHtml('');}aa=ak;}if(!L){ad.moveChildren(P);if(!f)P.appendBogus();if(ac>=T)P.removeAttribute('rowSpan');else P.$.rowSpan=ab;if(ab>=S)P.removeAttribute('colSpan');else P.$.colSpan=ac;var an=new g.nodeList(Q.$.rows),ao=an.count();for(af=ao-1;af>=0;af--){var ap=an.getItem(af);if(!ap.$.cells.length){ap.remove();ao++;continue;}}return P;}else return ab*ac==ae;};function G(J,K){var L=q(J);if(L.length>1)return false;else if(K)return true;var M=L[0],N=M.getParent(),O=N.getAscendant('table'),P=h.buildTableMap(O),Q=N.$.rowIndex,R=D(P,Q,M),S=M.$.rowSpan,T,U,V,W;if(S>1){U=Math.ceil(S/2);V=Math.floor(S/2);W=Q+U;var X=new k(O.$.rows[W]),Y=D(P,W),Z;T=M.clone();for(var aa=0;aa<Y.length;aa++){Z=Y[aa];if(Z.parentNode==X.$&&aa>R){T.insertBefore(new k(Z));break;}else Z=null;}if(!Z)X.append(T,true);}else{V=U=1;X=N.clone();X.insertAfter(N);X.append(T=M.clone());var ab=D(P,Q);for(var ac=0;ac<ab.length;ac++)ab[ac].rowSpan++;}if(!f)T.appendBogus();M.$.rowSpan=U;T.$.rowSpan=V;if(U==1)M.removeAttribute('rowSpan');if(V==1)T.removeAttribute('rowSpan');return T;};function H(J,K){var L=q(J);if(L.length>1)return false;else if(K)return true;var M=L[0],N=M.getParent(),O=N.getAscendant('table'),P=h.buildTableMap(O),Q=N.$.rowIndex,R=D(P,Q,M),S=M.$.colSpan,T,U,V;if(S>1){U=Math.ceil(S/2);V=Math.floor(S/2);}else{V=U=1;var W=E(P,R);for(var X=0;X<W.length;X++)W[X].colSpan++;}T=M.clone();T.insertAfter(M);if(!f)T.appendBogus();M.$.colSpan=U;T.$.colSpan=V;
if(U==1)M.removeAttribute('colSpan');if(V==1)T.removeAttribute('colSpan');return T;};var I={thead:1,tbody:1,tfoot:1,td:1,tr:1,th:1};m.tabletools={init:function(J){var K=J.lang.table;J.addCommand('cellProperties',new d.dialogCommand('cellProperties'));d.dialog.add('cellProperties',this.path+'dialogs/tableCell.js');J.addCommand('tableDelete',{exec:function(L){var M=L.getSelection(),N=M&&M.getStartElement(),O=N&&N.getAscendant('table',1);if(!O)return;var P=O.getParent();if(P.getChildCount()==1&&!P.is('body','td','th'))O=P;var Q=new g.range(L.document);Q.moveToPosition(O,3);O.remove();Q.select();}});J.addCommand('rowDelete',{exec:function(L){var M=L.getSelection();C(t(M));}});J.addCommand('rowInsertBefore',{exec:function(L){var M=L.getSelection();s(M,true);}});J.addCommand('rowInsertAfter',{exec:function(L){var M=L.getSelection();s(M);}});J.addCommand('columnDelete',{exec:function(L){var M=L.getSelection(),N=x(M);N&&C(N,true);}});J.addCommand('columnInsertBefore',{exec:function(L){var M=L.getSelection();w(M,true);}});J.addCommand('columnInsertAfter',{exec:function(L){var M=L.getSelection();w(M);}});J.addCommand('cellDelete',{exec:function(L){var M=L.getSelection();A(M);}});J.addCommand('cellMerge',{exec:function(L){C(F(L.getSelection()),true);}});J.addCommand('cellMergeRight',{exec:function(L){C(F(L.getSelection(),'right'),true);}});J.addCommand('cellMergeDown',{exec:function(L){C(F(L.getSelection(),'down'),true);}});J.addCommand('cellVerticalSplit',{exec:function(L){C(G(L.getSelection()));}});J.addCommand('cellHorizontalSplit',{exec:function(L){C(H(L.getSelection()));}});J.addCommand('cellInsertBefore',{exec:function(L){var M=L.getSelection();z(M,true);}});J.addCommand('cellInsertAfter',{exec:function(L){var M=L.getSelection();z(M);}});if(J.addMenuItems)J.addMenuItems({tablecell:{label:K.cell.menu,group:'tablecell',order:1,getItems:function(){var L=J.getSelection(),M=q(L);return{tablecell_insertBefore:2,tablecell_insertAfter:2,tablecell_delete:2,tablecell_merge:F(L,null,true)?2:0,tablecell_merge_right:F(L,'right',true)?2:0,tablecell_merge_down:F(L,'down',true)?2:0,tablecell_split_vertical:G(L,true)?2:0,tablecell_split_horizontal:H(L,true)?2:0,tablecell_properties:M.length>0?2:0};}},tablecell_insertBefore:{label:K.cell.insertBefore,group:'tablecell',command:'cellInsertBefore',order:5},tablecell_insertAfter:{label:K.cell.insertAfter,group:'tablecell',command:'cellInsertAfter',order:10},tablecell_delete:{label:K.cell.deleteCell,group:'tablecell',command:'cellDelete',order:15},tablecell_merge:{label:K.cell.merge,group:'tablecell',command:'cellMerge',order:16},tablecell_merge_right:{label:K.cell.mergeRight,group:'tablecell',command:'cellMergeRight',order:17},tablecell_merge_down:{label:K.cell.mergeDown,group:'tablecell',command:'cellMergeDown',order:18},tablecell_split_horizontal:{label:K.cell.splitHorizontal,group:'tablecell',command:'cellHorizontalSplit',order:19},tablecell_split_vertical:{label:K.cell.splitVertical,group:'tablecell',command:'cellVerticalSplit',order:20},tablecell_properties:{label:K.cell.title,group:'tablecellproperties',command:'cellProperties',order:21},tablerow:{label:K.row.menu,group:'tablerow',order:1,getItems:function(){return{tablerow_insertBefore:2,tablerow_insertAfter:2,tablerow_delete:2};
}},tablerow_insertBefore:{label:K.row.insertBefore,group:'tablerow',command:'rowInsertBefore',order:5},tablerow_insertAfter:{label:K.row.insertAfter,group:'tablerow',command:'rowInsertAfter',order:10},tablerow_delete:{label:K.row.deleteRow,group:'tablerow',command:'rowDelete',order:15},tablecolumn:{label:K.column.menu,group:'tablecolumn',order:1,getItems:function(){return{tablecolumn_insertBefore:2,tablecolumn_insertAfter:2,tablecolumn_delete:2};}},tablecolumn_insertBefore:{label:K.column.insertBefore,group:'tablecolumn',command:'columnInsertBefore',order:5},tablecolumn_insertAfter:{label:K.column.insertAfter,group:'tablecolumn',command:'columnInsertAfter',order:10},tablecolumn_delete:{label:K.column.deleteColumn,group:'tablecolumn',command:'columnDelete',order:15}});if(J.contextMenu)J.contextMenu.addListener(function(L,M){if(!L||L.isReadOnly())return null;while(L){if(L.getName() in I)return{tablecell:2,tablerow:2,tablecolumn:2};L=L.getParent();}return null;});},getSelectedCells:q};m.add('tabletools',m.tabletools);})();h.buildTableMap=function(p){var q=p.$.rows,r=-1,s=[];for(var t=0;t<q.length;t++){r++;!s[r]&&(s[r]=[]);var u=-1;for(var v=0;v<q[t].cells.length;v++){var w=q[t].cells[v];u++;while(s[r][u])u++;var x=isNaN(w.colSpan)?1:w.colSpan,y=isNaN(w.rowSpan)?1:w.rowSpan;for(var z=0;z<y;z++){if(!s[r+z])s[r+z]=[];for(var A=0;A<x;A++)s[r+z][u+A]=q[t].cells[v];}u+=x-1;}}return s;};m.add('specialchar',{availableLangs:{en:1},init:function(p){var q='specialchar',r=this;d.dialog.add(q,this.path+'dialogs/specialchar.js');p.addCommand(q,{exec:function(){var s=p.langCode;s=r.availableLangs[s]?s:'en';d.scriptLoader.load(d.getUrl(r.path+'lang/'+s+'.js'),function(){h.extend(p.lang.specialChar,r.langEntries[s]);p.openDialog(q);});},modes:{wysiwyg:1},canUndo:false});p.ui.addButton('SpecialChar',{label:p.lang.specialChar.toolbar,command:q});}});l.specialChars=['!','&quot;','#','$','%','&amp;',"'",'(',')','*','+','-','.','/','0','1','2','3','4','5','6','7','8','9',':',';','&lt;','=','&gt;','?','@','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','[',']','^','_','`','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','{','|','}','~','&euro;','&lsquo;','&rsquo;','&ldquo;','&rdquo;','&ndash;','&mdash;','&iexcl;','&cent;','&pound;','&curren;','&yen;','&brvbar;','&sect;','&uml;','&copy;','&ordf;','&laquo;','&not;','&reg;','&macr;','&deg;','&','&sup2;','&sup3;','&acute;','&micro;','&para;','&middot;','&cedil;','&sup1;','&ordm;','&','&frac14;','&frac12;','&frac34;','&iquest;','&Agrave;','&Aacute;','&Acirc;','&Atilde;','&Auml;','&Aring;','&AElig;','&Ccedil;','&Egrave;','&Eacute;','&Ecirc;','&Euml;','&Igrave;','&Iacute;','&Icirc;','&Iuml;','&ETH;','&Ntilde;','&Ograve;','&Oacute;','&Ocirc;','&Otilde;','&Ouml;','&times;','&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;','&divide;','&oslash;','&ugrave;','&uacute;','&ucirc;','&uuml;','&uuml;','&yacute;','&thorn;','&yuml;','&OElig;','&oelig;','&#372;','&#374','&#373','&#375;','&sbquo;','&#8219;','&bdquo;','&hellip;','&trade;','&#9658;','&bull;','&rarr;','&rArr;','&hArr;','&diams;','&asymp;'];
(function(){var p={editorFocus:false,modes:{wysiwyg:1,source:1}},q={exec:function(t){t.container.focusNext(true,t.tabIndex);}},r={exec:function(t){t.container.focusPrevious(true,t.tabIndex);}};function s(t){return{editorFocus:false,canUndo:false,modes:{wysiwyg:1},exec:function(u){if(u.focusManager.hasFocus){var v=u.getSelection(),w=v.getCommonAncestor(),x;if(x=w.getAscendant('td',true)||w.getAscendant('th',true)){var y=new g.range(u.document),z=h.tryThese(function(){var G=x.getParent(),H=G.$.cells[x.$.cellIndex+(t?-1:1)];H.parentNode.parentNode;return H;},function(){var G=x.getParent(),H=G.getAscendant('table'),I=H.$.rows[G.$.rowIndex+(t?-1:1)];return I.cells[t?I.cells.length-1:0];});if(!(z||t)){var A=x.getAscendant('table').$,B=x.getParent().$.cells,C=new k(A.insertRow(-1),u.document);for(var D=0,E=B.length;D<E;D++){var F=C.append(new k(B[D],u.document).clone(false,false));!f&&F.appendBogus();}y.moveToElementEditStart(C);}else if(z){z=new k(z);y.moveToElementEditStart(z);if(!(y.checkStartOfBlock()&&y.checkEndOfBlock()))y.selectNodeContents(z);}else return true;y.select(true);return true;}}return false;}};};m.add('tab',{requires:['keystrokes'],init:function(t){var u=t.config.enableTabKeyTools!==false,v=t.config.tabSpaces||0,w='';while(v--)w+='\xa0';if(w)t.on('key',function(x){if(x.data.keyCode==9){t.insertHtml(w);x.cancel();}});if(u)t.on('key',function(x){if(x.data.keyCode==9&&t.execCommand('selectNextCell')||x.data.keyCode==2228224+9&&t.execCommand('selectPreviousCell'))x.cancel();});if(e.webkit||e.gecko)t.on('key',function(x){var y=x.data.keyCode;if(y==9&&!w){x.cancel();t.execCommand('blur');}if(y==2228224+9){t.execCommand('blurBack');x.cancel();}});t.addCommand('blur',h.extend(q,p));t.addCommand('blurBack',h.extend(r,p));t.addCommand('selectNextCell',s());t.addCommand('selectPreviousCell',s(true));}});})();k.prototype.focusNext=function(p,q){var z=this;var r=z.$,s=q===undefined?z.getTabIndex():q,t,u,v,w,x,y;if(s<=0){x=z.getNextSourceNode(p,1);while(x){if(x.isVisible()&&x.getTabIndex()===0){v=x;break;}x=x.getNextSourceNode(false,1);}}else{x=z.getDocument().getBody().getFirst();while(x=x.getNextSourceNode(false,1)){if(!t)if(!u&&x.equals(z)){u=true;if(p){if(!(x=x.getNextSourceNode(true,1)))break;t=1;}}else if(u&&!z.contains(x))t=1;if(!x.isVisible()||(y=x.getTabIndex())<0)continue;if(t&&y==s){v=x;break;}if(y>s&&(!v||!w||y<w)){v=x;w=y;}else if(!v&&y===0){v=x;w=y;}}}if(v)v.focus();};k.prototype.focusPrevious=function(p,q){var z=this;var r=z.$,s=q===undefined?z.getTabIndex():q,t,u,v,w=0,x,y=z.getDocument().getBody().getLast();
while(y=y.getPreviousSourceNode(false,1)){if(!t)if(!u&&y.equals(z)){u=true;if(p){if(!(y=y.getPreviousSourceNode(true,1)))break;t=1;}}else if(u&&!z.contains(y))t=1;if(!y.isVisible()||(x=y.getTabIndex())<0)continue;if(s<=0){if(t&&x===0){v=y;break;}if(x>w){v=y;w=x;}}else{if(t&&x==s){v=y;break;}if(x<s&&(!v||x>w)){v=y;w=x;}}}if(v)v.focus();};(function(){m.add('templates',{requires:['dialog'],init:function(r){d.dialog.add('templates',d.getUrl(this.path+'dialogs/templates.js'));r.addCommand('templates',new d.dialogCommand('templates'));r.ui.addButton('Templates',{label:r.lang.templates.button,command:'templates'});}});var p={},q={};d.addTemplates=function(r,s){p[r]=s;};d.getTemplates=function(r){return p[r];};d.loadTemplates=function(r,s){var t=[];for(var u=0,v=r.length;u<v;u++){if(!q[r[u]]){t.push(r[u]);q[r[u]]=1;}}if(t.length)d.scriptLoader.load(t,s);else setTimeout(s,0);};})();l.templates_files=[d.getUrl('plugins/templates/templates/default.js')];l.templates_replaceContent=true;(function(){var p=function(){this.toolbars=[];this.focusCommandExecuted=false;};p.prototype.focus=function(){for(var r=0,s;s=this.toolbars[r++];)for(var t=0,u;u=s.items[t++];){if(u.focus){u.focus();return;}}};var q={toolbarFocus:{modes:{wysiwyg:1,source:1},readOnly:1,exec:function(r){if(r.toolbox){r.toolbox.focusCommandExecuted=true;if(f||e.air)setTimeout(function(){r.toolbox.focus();},100);else r.toolbox.focus();}}}};m.add('toolbar',{init:function(r){var s,t=function(u,v){var w,x,y=r.lang.dir=='rtl',z=r.config.toolbarGroupCycling;z=z===undefined||z;switch(v){case 9:case 2228224+9:while(!x||!x.items.length){x=v==9?(x?x.next:u.toolbar.next)||r.toolbox.toolbars[0]:(x?x.previous:u.toolbar.previous)||r.toolbox.toolbars[r.toolbox.toolbars.length-1];if(x.items.length){u=x.items[s?x.items.length-1:0];while(u&&!u.focus){u=s?u.previous:u.next;if(!u)x=0;}}}if(u)u.focus();return false;case y?37:39:case 40:w=u;do{w=w.next;if(!w&&z)w=u.toolbar.items[0];}while(w&&!w.focus);if(w)w.focus();else t(u,9);return false;case y?39:37:case 38:w=u;do{w=w.previous;if(!w&&z)w=u.toolbar.items[u.toolbar.items.length-1];}while(w&&!w.focus);if(w)w.focus();else{s=1;t(u,2228224+9);s=0;}return false;case 27:r.focus();return false;case 13:case 32:u.execute();return false;}return true;};r.on('themeSpace',function(u){if(u.data.space==r.config.toolbarLocation){r.toolbox=new p();var v=h.getNextId(),w=['<div class="cke_toolbox" role="group" aria-labelledby="',v,'" onmousedown="return false;"'],x=r.config.toolbarStartupExpanded!==false,y;
w.push(x?'>':' style="display:none">');w.push('<span id="',v,'" class="cke_voice_label">',r.lang.toolbars,'</span>');var z=r.toolbox.toolbars,A=r.config.toolbar instanceof Array?r.config.toolbar:r.config['toolbar_'+r.config.toolbar];for(var B=0;B<A.length;B++){var C,D=0,E,F=A[B],G;if(!F)continue;if(y){w.push('</div>');y=0;}if(F==='/'){w.push('<div class="cke_break"></div>');continue;}G=F.items||F;for(var H=0;H<G.length;H++){var I,J=G[H],K;I=r.ui.create(J);if(I){K=I.canGroup!==false;if(!D){C=h.getNextId();D={id:C,items:[]};E=F.name&&(r.lang.toolbarGroups[F.name]||F.name);w.push('<span id="',C,'" class="cke_toolbar"',E?' aria-labelledby="'+C+'_label"':'',' role="toolbar">');E&&w.push('<span id="',C,'_label" class="cke_voice_label">',E,'</span>');w.push('<span class="cke_toolbar_start"></span>');var L=z.push(D)-1;if(L>0){D.previous=z[L-1];D.previous.next=D;}}if(K){if(!y){w.push('<span class="cke_toolgroup" role="presentation">');y=1;}}else if(y){w.push('</span>');y=0;}var M=I.render(r,w);L=D.items.push(M)-1;if(L>0){M.previous=D.items[L-1];M.previous.next=M;}M.toolbar=D;M.onkey=t;M.onfocus=function(){if(!r.toolbox.focusCommandExecuted)r.focus();};}}if(y){w.push('</span>');y=0;}if(D)w.push('<span class="cke_toolbar_end"></span></span>');}w.push('</div>');if(r.config.toolbarCanCollapse){var N=h.addFunction(function(){r.execCommand('toolbarCollapse');});r.on('destroy',function(){h.removeFunction(N);});var O=h.getNextId();r.addCommand('toolbarCollapse',{readOnly:1,exec:function(P){var Q=d.document.getById(O),R=Q.getPrevious(),S=P.getThemeSpace('contents'),T=R.getParent(),U=parseInt(S.$.style.height,10),V=T.$.offsetHeight,W=!R.isVisible();if(!W){R.hide();Q.addClass('cke_toolbox_collapser_min');Q.setAttribute('title',P.lang.toolbarExpand);}else{R.show();Q.removeClass('cke_toolbox_collapser_min');Q.setAttribute('title',P.lang.toolbarCollapse);}Q.getFirst().setText(W?'▲':'◀');var X=T.$.offsetHeight-V;S.setStyle('height',U-X+'px');P.fire('resize');},modes:{wysiwyg:1,source:1}});w.push('<a title="'+(x?r.lang.toolbarCollapse:r.lang.toolbarExpand)+'" id="'+O+'" tabIndex="-1" class="cke_toolbox_collapser');if(!x)w.push(' cke_toolbox_collapser_min');w.push('" onclick="CKEDITOR.tools.callFunction('+N+')">','<span>&#9650;</span>','</a>');}u.data.html+=w.join('');}});r.on('destroy',function(){var u,v=0,w,x,y;u=this.toolbox.toolbars;for(;v<u.length;v++){x=u[v].items;for(w=0;w<x.length;w++){y=x[w];if(y.clickFn)h.removeFunction(y.clickFn);if(y.keyDownFn)h.removeFunction(y.keyDownFn);
}}});r.addCommand('toolbarFocus',q.toolbarFocus);r.ui.add('-',d.UI_SEPARATOR,{});r.ui.addHandler(d.UI_SEPARATOR,{create:function(){return{render:function(u,v){v.push('<span class="cke_separator" role="separator"></span>');return{};}};}});}});})();d.UI_SEPARATOR='separator';l.toolbarLocation='top';l.toolbar_Basic=[['Bold','Italic','-','NumberedList','BulletedList','-','Link','Unlink','-','About']];l.toolbar_Full=[{name:'document',items:['Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates']},{name:'clipboard',items:['Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo']},{name:'editing',items:['Find','Replace','-','SelectAll','-','SpellChecker','Scayt']},{name:'forms',items:['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField']},'/',{name:'basicstyles',items:['Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat']},{name:'paragraph',items:['NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl']},{name:'links',items:['Link','Unlink','Anchor']},{name:'insert',items:['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe']},'/',{name:'styles',items:['Styles','Format','Font','FontSize']},{name:'colors',items:['TextColor','BGColor']},{name:'tools',items:['Maximize','ShowBlocks','-','About']}];l.toolbar='Full';l.toolbarCanCollapse=true;(function(){m.add('undo',{requires:['selection','wysiwygarea'],init:function(v){var w=new r(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.readOnly?false: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');};v.on('updateSnapshot',function(){if(w.currentImage&&new p(v).equals(w.currentImage))setTimeout(function(){w.update();},0);});}});m.undo={};var p=m.undo.Image=function(v){this.editor=v;v.fire('beforeUndoImage');var w=v.getSnapshot(),x=w&&v.getSelection();f&&w&&(w=w.replace(/\s+data-cke-expando=".*?"/g,''));this.contents=w;this.bookmarks=x&&x.createBookmarks2(true);v.fire('afterUndoImage');},q=/\b(?:href|src|name)="[^"]*?"/gi;p.prototype={equals:function(v,w){var x=this.contents,y=v.contents;if(f&&(e.ie7Compat||e.ie6Compat)){x=x.replace(q,'');y=y.replace(q,'');}if(x!=y)return false;if(w)return true;var z=this.bookmarks,A=v.bookmarks;if(z||A){if(!z||!A||z.length!=A.length)return false;for(var B=0;B<z.length;B++){var C=z[B],D=A[B];if(C.startOffset!=D.startOffset||C.endOffset!=D.endOffset||!h.arrayCompare(C.start,D.start)||!h.arrayCompare(C.end,D.end))return false;}}return true;}};function r(v){this.editor=v;this.reset();};var s={8:1,46:1},t={16:1,17:1,18:1},u={37:1,38:1,39:1,40:1};r.prototype={type:function(v){var w=v&&v.data.getKey(),x=w in t,y=w in s,z=this.lastKeystroke in s,A=y&&w==this.lastKeystroke,B=w in u,C=this.lastKeystroke in u,D=!y&&!B,E=y&&!A,F=!(x||this.typing)||D&&(z||C);if(F||E){var G=new p(this.editor);h.setTimeout(function(){var I=this;var H=I.editor.getSnapshot();if(f)H=H.replace(/\s+data-cke-expando=".*?"/g,'');if(G.contents!=H){I.typing=true;if(!I.save(false,G,false))I.snapshots.splice(I.index+1,I.snapshots.length-I.index-1);I.hasUndo=true;I.hasRedo=false;I.typesCount=1;I.modifiersCount=1;I.onChange();}},0,this);}this.lastKeystroke=w;if(y){this.typesCount=0;this.modifiersCount++;if(this.modifiersCount>25){this.save(false,null,false);this.modifiersCount=1;}}else if(!B){this.modifiersCount=0;this.typesCount++;if(this.typesCount>25){this.save(false,null,false);this.typesCount=1;}}},reset:function(){var v=this;v.lastKeystroke=0;v.snapshots=[];v.index=-1;v.limit=v.editor.config.undoStackSize||20;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 p(z.editor);if(w.contents===false)return false;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(f){var w=x.editor.document.getBody().$.createTextRange();w.collapse(true);w.select();}x.index=v.index;x.update();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;},update:function(){var v=this;v.snapshots.splice(v.index,1,v.currentImage=new p(v.editor));}};})();(function(){var p=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,q=g.walker.whitespaces(true);function r(F){return F.isBlockBoundary()&&i.$empty[F.getName()];};function s(F){return function(G){if(this.mode=='wysiwyg'){this.focus();this.fire('saveSnapshot');F.call(this,G.data);h.setTimeout(function(){this.fire('saveSnapshot');},0,this);}};};function t(F){var P=this;if(P.dataProcessor)F=P.dataProcessor.toHtml(F);if(!F)return;var G=P.getSelection(),H=G.getRanges()[0];if(H.checkReadOnly())return;if(e.opera){var I=new g.elementPath(H.startContainer);if(I.block){var J=d.htmlParser.fragment.fromHtml(F,false).children;for(var K=0,L=J.length;K<L;K++){if(J[K]._.isBlockLike){H.splitBlock(P.enterMode==3?'div':'p');H.insertNode(H.document.createText(''));H.select();break;}}}}if(f){var M=G.isLocked;if(M)G.unlock();var N=G.getNative();if(N.type=='Control')N.clear();else if(G.getType()==2){H=G.getRanges()[0];var O=H&&H.endContainer;if(O&&O.type==1&&O.getAttribute('contenteditable')=='false'&&H.checkBoundaryOfElement(O,2)){H.setEndAfter(H.endContainer);H.deleteContents();}}try{N.createRange().pasteHTML(F);}catch(Q){}if(M)P.getSelection().lock();}else P.document.$.execCommand('inserthtml',false,F);if(e.webkit){G=P.getSelection();G.scrollIntoView();}};function u(F){var G=this.getSelection(),H=G.getStartElement().hasAscendant('pre',true)?2:this.config.enterMode,I=H==2,J=h.htmlEncode(F.replace(/\r\n|\r/g,'\n'));
J=J.replace(/^[ \t]+|[ \t]+$/g,function(P,Q,R){if(P.length==1)return '&nbsp;';else if(!Q)return h.repeat('&nbsp;',P.length-1)+' ';else return ' '+h.repeat('&nbsp;',P.length-1);});J=J.replace(/[ \t]{2,}/g,function(P){return h.repeat('&nbsp;',P.length-1)+' ';});var K=H==1?'p':'div';if(!I)J=J.replace(/(\n{2})([\s\S]*?)(?:$|\1)/g,function(P,Q,R){return '<'+K+'>'+R+'</'+K+'>';});J=J.replace(/\n/g,'<br>');if(!(I||f))J=J.replace(new RegExp('<br>(?=</'+K+'>)'),function(P){return h.repeat(P,2);});if(e.gecko||e.webkit){var L=new g.elementPath(G.getStartElement()),M=[];for(var N=0;N<L.elements.length;N++){var O=L.elements[N].getName();if(O in i.$inline)M.unshift(L.elements[N].getOuterHtml().match(/^<.*?>/));else if(O in i.$block)break;}J=M.join('')+J;}t.call(this,J);};function v(F){var G=this.getSelection(),H=G.getRanges(),I=F.getName(),J=i.$block[I],K=G.isLocked;if(K)G.unlock();var L,M,N,O;for(var P=H.length-1;P>=0;P--){L=H[P];if(!L.checkReadOnly()){L.deleteContents(1);M=!P&&F||F.clone(1);var Q,R;if(J)while((Q=L.getCommonAncestor(0,1))&&(R=i[Q.getName()])&&!(R&&R[I])){if(Q.getName() in i.span)L.splitElement(Q);else if(L.checkStartOfBlock()&&L.checkEndOfBlock()){L.setStartBefore(Q);L.collapse(true);Q.remove();}else L.splitBlock();}L.insertNode(M);if(!N)N=M;}}if(N){L.moveToPosition(N,4);if(J){var S=N.getNext(q),T=S&&S.type==1&&S.getName();if(T&&i.$block[T]&&i[T]['#'])L.moveToElementEditStart(S);}}G.selectRanges([L]);if(K)this.getSelection().lock();};function w(F){if(!F.checkDirty())setTimeout(function(){F.resetDirty();},0);};var x=g.walker.whitespaces(true),y=g.walker.bookmark(false,true);function z(F){return x(F)&&y(F);};function A(F){return F.type==3&&h.trim(F.getText()).match(/^(?:&nbsp;|\xa0)$/);};function B(F){if(F.isLocked){F.unlock();setTimeout(function(){F.lock();},0);}};function C(F){return F.getOuterHtml().match(p);};x=g.walker.whitespaces(true);function D(F){var G=F.window,H=F.document,I=F.document.getBody(),J=I.getFirst(),K=I.getChildren().count();if(!K||K==1&&J.type==1&&J.hasAttribute('_moz_editor_bogus_node')){w(F);var L=F.element.getDocument(),M=L.getDocumentElement(),N=M.$.scrollTop,O=M.$.scrollLeft,P=H.$.createEvent('KeyEvents');P.initKeyEvent('keypress',true,true,G.$,false,false,false,false,0,32);H.$.dispatchEvent(P);if(N!=M.$.scrollTop||O!=M.$.scrollLeft)L.getWindow().$.scrollTo(O,N);K&&I.getFirst().remove();H.getBody().appendBogus();var Q=new g.range(H);Q.setStartAt(I,1);Q.select();}};function E(F){var G=F.editor,H=F.data.path,I=H.blockLimit,J=F.data.selection,K=J.getRanges()[0],L=G.document.getBody(),M=G.config.enterMode;
if(e.gecko){D(G);var N=H.block||H.blockLimit,O=N&&N.getLast(z);if(N&&N.isBlockBoundary()&&!(O&&O.type==1&&O.isBlockBoundary())&&!N.is('pre')&&!N.getBogus()){G.fire('updateSnapshot');w(G);N.appendBogus();}}if(G.config.autoParagraph!==false&&M!=2&&K.collapsed&&I.getName()=='body'&&!H.block){G.fire('updateSnapshot');w(G);f&&B(J);var P=K.fixBlock(true,G.config.enterMode==3?'div':'p');if(f){var Q=P.getFirst(z);Q&&A(Q)&&Q.remove();}if(C(P)){var R=P.getNext(x);if(R&&R.type==1&&!r(R)){K.moveToElementEditStart(R);P.remove();}else{R=P.getPrevious(x);if(R&&R.type==1&&!r(R)){K.moveToElementEditEnd(R);P.remove();}}}K.select();F.cancel();}var S=new g.range(G.document);S.moveToElementEditEnd(G.document.getBody());var T=new g.elementPath(S.startContainer);if(!T.blockLimit.is('body')){G.fire('updateSnapshot');w(G);f&&B(J);var U;if(M!=2)U=L.append(G.document.createElement(M==1?'p':'div'));else U=L;if(!f)U.appendBogus();}};m.add('wysiwygarea',{requires:['editingblock'],init:function(F){var G=F.config.enterMode!=2&&F.config.autoParagraph!==false?F.config.enterMode==3?'div':'p':false,H=F.lang.editorTitle.replace('%1',F.name),I;F.on('editingBlockReady',function(){var O,P,Q,R,S,T,U=e.isCustomDomain(),V=function(Y){if(P)P.remove();var Z='document.open();'+(U?'document.domain="'+document.domain+'";':'')+'document.close();';Z=e.air?'javascript:void(0)':f?'javascript:void(function(){'+encodeURIComponent(Z)+'}())':'';P=k.createFromHtml('<iframe style="width:100%;height:100%" frameBorder="0" title="'+H+'"'+' src="'+Z+'"'+' tabIndex="'+(e.webkit?-1:F.tabIndex)+'"'+' allowTransparency="true"'+'></iframe>');if(document.location.protocol=='chrome:')d.event.useCapture=true;P.on('load',function(aa){S=1;aa.removeListener();var ab=P.getFrameDocument();ab.write(Y);e.air&&X(ab.getWindow().$);});if(document.location.protocol=='chrome:')d.event.useCapture=false;O.append(P);};I=h.addFunction(X);var W='<script id="cke_actscrpt" type="text/javascript" data-cke-temp="1">'+(U?'document.domain="'+document.domain+'";':'')+'window.parent.CKEDITOR.tools.callFunction( '+I+', window );'+'</script>';function X(Y){if(!S)return;S=0;F.fire('ariaWidget',P);var Z=Y.document,aa=Z.body,ab=Z.getElementById('cke_actscrpt');ab&&ab.parentNode.removeChild(ab);aa.spellcheck=!F.config.disableNativeSpellChecker;var ac=!F.readOnly;if(f){aa.hideFocus=true;aa.disabled=true;aa.contentEditable=ac;aa.removeAttribute('disabled');}else setTimeout(function(){if(e.gecko&&e.version>=10900||e.opera)Z.$.body.contentEditable=ac;else if(e.webkit)Z.$.body.parentNode.contentEditable=ac;
else Z.$.designMode=ac?'off':'on';},0);ac&&e.gecko&&h.setTimeout(D,0,null,F);Y=F.window=new g.window(Y);Z=F.document=new j(Z);ac&&Z.on('dblclick',function(ai){var aj=ai.data.getTarget(),ak={element:aj,dialog:''};F.fire('doubleclick',ak);ak.dialog&&F.openDialog(ak.dialog);});f&&Z.on('click',function(ai){var aj=ai.data.getTarget();if(aj.is('input')){var ak=aj.getAttribute('type');if(ak=='submit'||ak=='reset')ai.data.preventDefault();}});if(!(f||e.opera))Z.on('mousedown',function(ai){var aj=ai.data.getTarget();if(aj.is('img','hr','input','textarea','select'))F.getSelection().selectElement(aj);});if(e.gecko)Z.on('mouseup',function(ai){if(ai.data.$.button==2){var aj=ai.data.getTarget();if(!aj.getOuterHtml().replace(p,'')){var ak=new g.range(Z);ak.moveToElementEditStart(aj);ak.select(true);}}});Z.on('click',function(ai){ai=ai.data;if(ai.getTarget().is('a')&&ai.$.button!=2)ai.preventDefault();});if(e.webkit){Z.on('mousedown',function(){af=1;});Z.on('click',function(ai){if(ai.data.getTarget().is('input','select'))ai.data.preventDefault();});Z.on('mouseup',function(ai){if(ai.data.getTarget().is('input','textarea'))ai.data.preventDefault();});}if(ac&&f&&Z.$.compatMode=='CSS1Compat'||e.gecko||e.opera){var ad=Z.getDocumentElement();ad.on('mousedown',function(ai){if(ai.data.getTarget().equals(ad)){if(e.gecko&&e.version>=10900)M();N.focus();}});}var ae=f?P:Y;ae.on('blur',function(){F.focusManager.blur();});var af;ae.on('focus',function(){var ai=F.document;if(ac&&e.gecko&&e.version>=10900)M();else if(e.opera)ai.getBody().focus();else if(e.webkit)if(!af){F.document.getDocumentElement().focus();af=1;}F.focusManager.focus();});var ag=F.keystrokeHandler;ag.blockedKeystrokes[8]=!ac;ag.attach(Z);if(f){Z.getDocumentElement().addClass(Z.$.compatMode);ac&&Z.on('keydown',function(ai){var aj=ai.data.getKeystroke();if(aj in {8:1,46:1}){var ak=F.getSelection(),al=ak.getSelectedElement();if(al){F.fire('saveSnapshot');var am=ak.getRanges()[0].createBookmark();al.remove();ak.selectBookmarks([am]);F.fire('saveSnapshot');ai.data.preventDefault();}}});if(Z.$.compatMode=='CSS1Compat'){var ah={33:1,34:1};Z.on('keydown',function(ai){if(ai.data.getKeystroke() in ah)setTimeout(function(){F.getSelection().scrollIntoView();},0);});}F.config.enterMode!=1&&Z.on('selectionchange',function(){var ai=Z.getBody(),aj=F.getSelection().getRanges()[0];if(ai.getHtml().match(/^<p>&nbsp;<\/p>$/i)&&aj.startContainer.equals(ai))setTimeout(function(){aj=F.getSelection().getRanges()[0];if(!aj.startContainer.equals('body')){ai.getFirst().remove(1);
aj.moveToElementEditEnd(ai);aj.select(1);}},0);});}if(F.contextMenu)F.contextMenu.addTarget(Z,F.config.browserContextMenuOnCtrl!==false);setTimeout(function(){F.fire('contentDom');if(T){F.mode='wysiwyg';F.fire('mode');T=false;}Q=false;if(R){F.focus();R=false;}setTimeout(function(){F.fire('dataReady');},0);try{F.document.$.execCommand('enableInlineTableEditing',false,!F.config.disableNativeTableHandles);}catch(ai){}if(F.config.disableObjectResizing)try{F.document.$.execCommand('enableObjectResizing',false,false);}catch(aj){F.document.getBody().on(f?'resizestart':'resize',function(ak){ak.data.preventDefault();});}if(f)setTimeout(function(){if(F.document){var ak=F.document.$.body;ak.runtimeStyle.marginBottom='0px';ak.runtimeStyle.marginBottom='';}},1000);},0);};F.addMode('wysiwyg',{load:function(Y,Z,aa){O=Y;if(f&&e.quirks)Y.setStyle('position','relative');F.mayBeDirty=true;T=true;if(aa)this.loadSnapshotData(Z);else this.loadData(Z);},loadData:function(Y){Q=true;F._.dataStore={id:1};var Z=F.config,aa=Z.fullPage,ab=Z.docType,ac='<style type="text/css" data-cke-temp="1">'+F._.styles.join('\n')+'</style>';!aa&&(ac=h.buildStyleHtml(F.config.contentsCss)+ac);var ad=Z.baseHref?'<base href="'+Z.baseHref+'" data-cke-temp="1" />':'';if(aa)Y=Y.replace(/<!DOCTYPE[^>]*>/i,function(ae){F.docType=ab=ae;return '';}).replace(/<\?xml\s[^\?]*\?>/i,function(ae){F.xmlDeclaration=ae;return '';});if(F.dataProcessor)Y=F.dataProcessor.toHtml(Y,G);if(aa){if(!/<body[\s|>]/.test(Y))Y='<body>'+Y;if(!/<html[\s|>]/.test(Y))Y='<html>'+Y+'</html>';if(!/<head[\s|>]/.test(Y))Y=Y.replace(/<html[^>]*>/,'$&<head><title></title></head>');else if(!/<title[\s|>]/.test(Y))Y=Y.replace(/<head[^>]*>/,'$&<title></title>');ad&&(Y=Y.replace(/<head>/,'$&'+ad));Y=Y.replace(/<\/head\s*>/,ac+'$&');Y=ab+Y;}else Y=Z.docType+'<html dir="'+Z.contentsLangDirection+'"'+' lang="'+(Z.contentsLanguage||F.langCode)+'">'+'<head>'+'<title>'+H+'</title>'+ad+ac+'</head>'+'<body'+(Z.bodyId?' id="'+Z.bodyId+'"':'')+(Z.bodyClass?' class="'+Z.bodyClass+'"':'')+'>'+Y+'</html>';if(e.gecko)Y=Y.replace(/<br \/>(?=\s*<\/(:?html|body)>)/,'$&<br type="_moz" />');Y+=W;this.onDispose();V(Y);},getData:function(){var Y=F.config,Z=Y.fullPage,aa=Z&&F.docType,ab=Z&&F.xmlDeclaration,ac=P.getFrameDocument(),ad=Z?ac.getDocumentElement().getOuterHtml():ac.getBody().getHtml();if(e.gecko)ad=ad.replace(/<br>(?=\s*(:?$|<\/body>))/,'');if(F.dataProcessor)ad=F.dataProcessor.toDataFormat(ad,G);if(Y.ignoreEmptyParagraph)ad=ad.replace(p,function(ae,af){return af;
});if(ab)ad=ab+'\n'+ad;if(aa)ad=aa+'\n'+ad;return ad;},getSnapshotData:function(){return P.getFrameDocument().getBody().getHtml();},loadSnapshotData:function(Y){P.getFrameDocument().getBody().setHtml(Y);},onDispose:function(){if(!F.document)return;F.document.getDocumentElement().clearCustomData();F.document.getBody().clearCustomData();F.window.clearCustomData();F.document.clearCustomData();P.clearCustomData();P.remove();},unload:function(Y){this.onDispose();F.window=F.document=P=O=R=null;F.fire('contentDomUnload');},focus:function(){var Y=F.window;if(Q)R=true;else if(e.opera&&F.document){var Z=F.window.$.frameElement;Z.blur(),Z.focus();F.document.getBody().focus();F.selectionChange();}else if(!e.opera&&Y){e.air?setTimeout(function(){Y.focus();},0):Y.focus();F.selectionChange();}}});F.on('insertHtml',s(t),null,null,20);F.on('insertElement',s(v),null,null,20);F.on('insertText',s(u),null,null,20);F.on('selectionChange',E,null,null,1);});var J;F.on('contentDom',function(){var O=F.document.getElementsByTag('title').getItem(0);O.data('cke-title',F.document.$.title);F.document.$.title=H;});F.on('readOnly',function(){if(F.mode=='wysiwyg'){var O=F.getMode();O.loadData(O.getData());}});if(d.document.$.documentMode>=8){F.addCss('html.CSS1Compat [contenteditable=false]{ min-height:0 !important;}');var K=[];for(var L in i.$removeEmpty)K.push('html.CSS1Compat '+L+'[contenteditable=false]');F.addCss(K.join(',')+'{ display:inline-block;}');}else if(e.gecko){F.addCss('html { height: 100% !important; }');F.addCss('img:-moz-broken { -moz-force-broken-image-icon : 1;\twidth : 24px; height : 24px; }');}F.addCss('html {\t_overflow-y: scroll; cursor: text;\t*cursor:auto;}');F.addCss('img, input, textarea { cursor: default;}');function M(O){if(F.readOnly)return;h.tryThese(function(){F.document.$.designMode='on';setTimeout(function(){F.document.$.designMode='off';if(d.currentInstance==F)F.document.getBody().focus();},50);},function(){F.document.$.designMode='off';var P=F.document.getBody();P.setAttribute('contentEditable',false);P.setAttribute('contentEditable',true);!O&&M(1);});};if(e.gecko||f||e.opera){var N;F.on('uiReady',function(){N=F.container.append(k.createFromHtml('<span tabindex="-1" style="position:absolute;" role="presentation"></span>'));N.on('focus',function(){F.focus();});F.focusGrabber=N;});F.on('destroy',function(){h.removeFunction(I);N.clearCustomData();delete F.focusGrabber;});}F.on('insertElement',function(O){var P=O.data;if(P.type==1&&(P.is('input')||P.is('textarea'))){if(!P.isReadOnly())P.data('cke-editable',P.hasAttribute('contenteditable')?'true':'1');
P.setAttribute('contentEditable',false);}});}});if(e.gecko)(function(){var F=document.body;if(!F)window.addEventListener('load',arguments.callee,false);else{var G=F.getAttribute('onpageshow');F.setAttribute('onpageshow',(G?G+';':'')+'event.persisted && (function(){'+'var allInstances = CKEDITOR.instances, editor, doc;'+'for ( var i in allInstances )'+'{'+'\teditor = allInstances[ i ];'+'\tdoc = editor.document;'+'\tif ( doc )'+'\t{'+'\t\tdoc.$.designMode = "off";'+'\t\tdoc.$.designMode = "on";'+'\t}'+'}'+'})();');}})();})();l.disableObjectResizing=false;l.disableNativeTableHandles=true;l.disableNativeSpellChecker=true;l.ignoreEmptyParagraph=true;m.add('wsc',{requires:['dialog'],init:function(p){var q='checkspell',r=p.addCommand(q,new d.dialogCommand(q));r.modes={wysiwyg:!e.opera&&!e.air&&document.domain==window.location.hostname};p.ui.addButton('SpellChecker',{label:p.lang.spellCheck.toolbar,command:q});d.dialog.add(q,this.path+'dialogs/wsc.js');}});l.wsc_customerId=l.wsc_customerId||'1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk';l.wsc_customLoaderScript=l.wsc_customLoaderScript||null;d.DIALOG_RESIZE_NONE=0;d.DIALOG_RESIZE_WIDTH=1;d.DIALOG_RESIZE_HEIGHT=2;d.DIALOG_RESIZE_BOTH=3;(function(){var p=h.cssLength;function q(V){return!!this._.tabs[V][0].$.offsetHeight;};function r(){var Z=this;var V=Z._.currentTabId,W=Z._.tabIdList.length,X=h.indexOf(Z._.tabIdList,V)+W;for(var Y=X-1;Y>X-W;Y--){if(q.call(Z,Z._.tabIdList[Y%W]))return Z._.tabIdList[Y%W];}return null;};function s(){var Z=this;var V=Z._.currentTabId,W=Z._.tabIdList.length,X=h.indexOf(Z._.tabIdList,V);for(var Y=X+1;Y<X+W;Y++){if(q.call(Z,Z._.tabIdList[Y%W]))return Z._.tabIdList[Y%W];}return null;};function t(V,W){var X=V.$.getElementsByTagName('input');for(var Y=0,Z=X.length;Y<Z;Y++){var aa=new k(X[Y]);if(aa.getAttribute('type').toLowerCase()=='text')if(W){aa.setAttribute('value',aa.getCustomData('fake_value')||'');aa.removeCustomData('fake_value');}else{aa.setCustomData('fake_value',aa.getAttribute('value'));aa.setAttribute('value','');}}};function u(V,W){var Y=this;var X=Y.getInputElement();if(X)V?X.removeAttribute('aria-invalid'):X.setAttribute('aria-invalid',true);if(!V)if(Y.select)Y.select();else Y.focus();W&&alert(W);Y.fire('validated',{valid:V,msg:W});};function v(){var V=this.getInputElement();V&&V.removeAttribute('aria-invalid');};d.dialog=function(V,W){var X=d.dialog._.dialogDefinitions[W],Y=h.clone(x),Z=V.config.dialog_buttonsOrder||'OS',aa=V.lang.dir;if(Z=='OS'&&e.mac||Z=='rtl'&&aa=='ltr'||Z=='ltr'&&aa=='rtl')Y.buttons.reverse();
X=h.extend(X(V),Y);X=h.clone(X);X=new B(this,X);var ab=d.document,ac=V.theme.buildDialog(V);this._={editor:V,element:ac.element,name:W,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:false,focusList:[],currentFocusIndex:0,hasFocus:false};this.parts=ac.parts;h.setTimeout(function(){V.fire('ariaWidget',this.parts.contents);},0,this);var ad={position:e.ie6Compat?'absolute':'fixed',top:0,visibility:'hidden'};ad[aa=='rtl'?'right':'left']=0;this.parts.dialog.setStyles(ad);d.event.call(this);this.definition=X=d.fire('dialogDefinition',{name:W,definition:X},V).definition;var ae={};if(!('removeDialogTabs' in V._)&&V.config.removeDialogTabs){var af=V.config.removeDialogTabs.split(';');for(i=0;i<af.length;i++){var ag=af[i].split(':');if(ag.length==2){var ah=ag[0];if(!ae[ah])ae[ah]=[];ae[ah].push(ag[1]);}}V._.removeDialogTabs=ae;}if(V._.removeDialogTabs&&(ae=V._.removeDialogTabs[W]))for(i=0;i<ae.length;i++)X.removeContents(ae[i]);if(X.onLoad)this.on('load',X.onLoad);if(X.onShow)this.on('show',X.onShow);if(X.onHide)this.on('hide',X.onHide);if(X.onOk)this.on('ok',function(au){V.fire('saveSnapshot');setTimeout(function(){V.fire('saveSnapshot');},0);if(X.onOk.call(this,au)===false)au.data.hide=false;});if(X.onCancel)this.on('cancel',function(au){if(X.onCancel.call(this,au)===false)au.data.hide=false;});var ai=this,aj=function(au){var av=ai._.contents,aw=false;for(var ax in av)for(var ay in av[ax]){aw=au.call(this,av[ax][ay]);if(aw)return;}};this.on('ok',function(au){aj(function(av){if(av.validate){var aw=av.validate(this),ax=typeof aw=='string'||aw===false;if(ax){au.data.hide=false;au.stop();}u.call(av,!ax,typeof aw=='string'?aw:undefined);return ax;}});},this,null,0);this.on('cancel',function(au){aj(function(av){if(av.isChanged()){if(!confirm(V.lang.common.confirmCancel))au.data.hide=false;return true;}});},this,null,0);this.parts.close.on('click',function(au){if(this.fire('cancel',{hide:true}).hide!==false)this.hide();au.data.preventDefault();},this);function ak(){var au=ai._.focusList;au.sort(function(ax,ay){if(ax.tabIndex!=ay.tabIndex)return ay.tabIndex-ax.tabIndex;else return ax.focusIndex-ay.focusIndex;});var av=au.length;for(var aw=0;aw<av;aw++)au[aw].focusIndex=aw;};function al(au){var av=ai._.focusList,aw=au?1:-1;if(av.length<1)return;var ax=ai._.currentFocusIndex;try{av[ax].getInputElement().$.blur();}catch(aA){}var ay=(ax+aw+av.length)%av.length,az=ay;
while(!av[az].isFocusable()){az=(az+aw+av.length)%av.length;if(az==ay)break;}av[az].focus();if(av[az].type=='text')av[az].select();};this.changeFocus=al;var am;function an(au){var az=this;if(ai!=d.dialog._.currentTop)return;var av=au.data.getKeystroke(),aw=V.lang.dir=='rtl';am=0;if(av==9||av==2228224+9){var ax=av==2228224+9;if(ai._.tabBarMode){var ay=ax?r.call(ai):s.call(ai);ai.selectPage(ay);ai._.tabs[ay][0].focus();}else al(!ax);am=1;}else if(av==4456448+121&&!ai._.tabBarMode&&ai.getPageCount()>1){ai._.tabBarMode=true;ai._.tabs[ai._.currentTabId][0].focus();am=1;}else if((av==37||av==39)&&ai._.tabBarMode){ay=av==(aw?39:37)?r.call(ai):s.call(ai);ai.selectPage(ay);ai._.tabs[ay][0].focus();am=1;}else if((av==13||av==32)&&ai._.tabBarMode){az.selectPage(az._.currentTabId);az._.tabBarMode=false;az._.currentFocusIndex=-1;al(true);am=1;}if(am){au.stop();au.data.preventDefault();}};function ao(au){am&&au.data.preventDefault();};var ap=this._.element;this.on('show',function(){ap.on('keydown',an,this,null,0);if(e.opera||e.gecko&&e.mac)ap.on('keypress',ao,this);});this.on('hide',function(){ap.removeListener('keydown',an);if(e.opera||e.gecko&&e.mac)ap.removeListener('keypress',ao);aj(function(au){v.apply(au);});});this.on('iframeAdded',function(au){var av=new j(au.data.iframe.$.contentWindow.document);av.on('keydown',an,this,null,0);});this.on('show',function(){var ay=this;ak();if(V.config.dialog_startupFocusTab&&ai._.pageCount>1){ai._.tabBarMode=true;ai._.tabs[ai._.currentTabId][0].focus();}else if(!ay._.hasFocus){ay._.currentFocusIndex=-1;if(X.onFocus){var au=X.onFocus.call(ay);au&&au.focus();}else al(true);if(ay._.editor.mode=='wysiwyg'&&f){var av=V.document.$.selection,aw=av.createRange();if(aw)if(aw.parentElement&&aw.parentElement().ownerDocument==V.document.$||aw.item&&aw.item(0).ownerDocument==V.document.$){var ax=document.body.createTextRange();ax.moveToElementText(ay.getElement().getFirst().$);ax.collapse(true);ax.select();}}}},this,null,4294967295);if(e.ie6Compat)this.on('load',function(au){var av=this.getElement(),aw=av.getFirst();aw.remove();aw.appendTo(av);},this);D(this);E(this);new g.text(X.title,d.document).appendTo(this.parts.title);for(var aq=0;aq<X.contents.length;aq++){var ar=X.contents[aq];ar&&this.addPage(ar);}this.parts.tabs.on('click',function(au){var ax=this;var av=au.data.getTarget();if(av.hasClass('cke_dialog_tab')){var aw=av.$.id;ax.selectPage(aw.substring(4,aw.lastIndexOf('_')));if(ax._.tabBarMode){ax._.tabBarMode=false;ax._.currentFocusIndex=-1;
al(true);}au.data.preventDefault();}},this);var as=[],at=d.dialog._.uiElementBuilders.hbox.build(this,{type:'hbox',className:'cke_dialog_footer_buttons',widths:[],children:X.buttons},as).getChild();this.parts.footer.setHtml(as.join(''));for(aq=0;aq<at.length;aq++)this._.buttons[at[aq].id]=at[aq];};function w(V,W,X){this.element=W;this.focusIndex=X;this.tabIndex=0;this.isFocusable=function(){return!W.getAttribute('disabled')&&W.isVisible();};this.focus=function(){V._.currentFocusIndex=this.focusIndex;this.element.focus();};W.on('keydown',function(Y){if(Y.data.getKeystroke() in {32:1,13:1})this.fire('click');});W.on('focus',function(){this.fire('mouseover');});W.on('blur',function(){this.fire('mouseout');});};d.dialog.prototype={destroy:function(){this.hide();this._.element.remove();},resize:(function(){return function(V,W){var X=this;if(X._.contentSize&&X._.contentSize.width==V&&X._.contentSize.height==W)return;d.dialog.fire('resize',{dialog:X,skin:X._.editor.skinName,width:V,height:W},X._.editor);X.fire('resize',{skin:X._.editor.skinName,width:V,height:W},X._.editor);if(X._.editor.lang.dir=='rtl'&&X._.position)X._.position.x=d.document.getWindow().getViewPaneSize().width-X._.contentSize.width-parseInt(X._.element.getFirst().getStyle('right'),10);X._.contentSize={width:V,height:W};};})(),getSize:function(){var V=this._.element.getFirst();return{width:V.$.offsetWidth||0,height:V.$.offsetHeight||0};},move:(function(){var V;return function(W,X,Y){var af=this;var Z=af._.element.getFirst(),aa=af._.editor.lang.dir=='rtl';if(V===undefined)V=Z.getComputedStyle('position')=='fixed';if(V&&af._.position&&af._.position.x==W&&af._.position.y==X)return;af._.position={x:W,y:X};if(!V){var ab=d.document.getWindow().getScrollPosition();W+=ab.x;X+=ab.y;}if(aa){var ac=af.getSize(),ad=d.document.getWindow().getViewPaneSize();W=ad.width-ac.width-W;}var ae={top:(X>0?X:0)+'px'};ae[aa?'right':'left']=(W>0?W:0)+'px';Z.setStyles(ae);Y&&(af._.moved=1);};})(),getPosition:function(){return h.extend({},this._.position);},show:function(){var V=this._.element,W=this.definition;if(!(V.getParent()&&V.getParent().equals(d.document.getBody())))V.appendTo(d.document.getBody());else V.setStyle('display','block');if(e.gecko&&e.version<10900){var X=this.parts.dialog;X.setStyle('position','absolute');setTimeout(function(){X.setStyle('position','fixed');},0);}this.resize(this._.contentSize&&this._.contentSize.width||W.width||W.minWidth,this._.contentSize&&this._.contentSize.height||W.height||W.minHeight);
this.reset();this.selectPage(this.definition.contents[0].id);if(d.dialog._.currentZIndex===null)d.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex;this._.element.getFirst().setStyle('z-index',d.dialog._.currentZIndex+=10);if(d.dialog._.currentTop===null){d.dialog._.currentTop=this;this._.parentDialog=null;J(this._.editor);V.on('keydown',N);V.on(e.opera?'keypress':'keyup',O);for(var Y in {keyup:1,keydown:1,keypress:1})V.on(Y,U);}else{this._.parentDialog=d.dialog._.currentTop;var Z=this._.parentDialog.getElement().getFirst();Z.$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2);d.dialog._.currentTop=this;}P(this,this,'\x1b',null,function(){this.getButton('cancel')&&this.getButton('cancel').click();});this._.hasFocus=false;h.setTimeout(function(){this.layout();this.parts.dialog.setStyle('visibility','');this.fireOnce('load',{});n.fire('ready',this);this.fire('show',{});this._.editor.fire('dialogShow',this);this.foreach(function(aa){aa.setInitValue&&aa.setInitValue();});},100,this);},layout:function(){var X=this;var V=d.document.getWindow().getViewPaneSize(),W=X.getSize();X.move(X._.moved?X._.position.x:(V.width-W.width)/2,X._.moved?X._.position.y:(V.height-W.height)/2);},foreach:function(V){var Y=this;for(var W in Y._.contents)for(var X in Y._.contents[W])V.call(Y,Y._.contents[W][X]);return Y;},reset:(function(){var V=function(W){if(W.reset)W.reset(1);};return function(){this.foreach(V);return this;};})(),setupContent:function(){var V=arguments;this.foreach(function(W){if(W.setup)W.setup.apply(W,V);});},commitContent:function(){var V=arguments;this.foreach(function(W){if(f&&this._.currentFocusIndex==W.focusIndex)W.getInputElement().$.blur();if(W.commit)W.commit.apply(W,V);});},hide:function(){if(!this.parts.dialog.isVisible())return;this.fire('hide',{});this._.editor.fire('dialogHide',this);var V=this._.element;V.setStyle('display','none');this.parts.dialog.setStyle('visibility','hidden');Q(this);while(d.dialog._.currentTop!=this)d.dialog._.currentTop.hide();if(!this._.parentDialog)K();else{var W=this._.parentDialog.getElement().getFirst();W.setStyle('z-index',parseInt(W.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2));}d.dialog._.currentTop=this._.parentDialog;if(!this._.parentDialog){d.dialog._.currentZIndex=null;V.removeListener('keydown',N);V.removeListener(e.opera?'keypress':'keyup',O);for(var X in {keyup:1,keydown:1,keypress:1})V.removeListener(X,U);var Y=this._.editor;Y.focus();if(Y.mode=='wysiwyg'&&f){var Z=Y.getSelection();
Z&&Z.unlock(true);}}else d.dialog._.currentZIndex-=10;delete this._.parentDialog;this.foreach(function(aa){aa.resetInitValue&&aa.resetInitValue();});},addPage:function(V){var ah=this;var W=[],X=V.label?' title="'+h.htmlEncode(V.label)+'"':'',Y=V.elements,Z=d.dialog._.uiElementBuilders.vbox.build(ah,{type:'vbox',className:'cke_dialog_page_contents',children:V.elements,expand:!!V.expand,padding:V.padding,style:V.style||'width: 100%;height:100%'},W),aa=k.createFromHtml(W.join(''));aa.setAttribute('role','tabpanel');var ab=e,ac='cke_'+V.id+'_'+h.getNextNumber(),ad=k.createFromHtml(['<a class="cke_dialog_tab"',ah._.pageCount>0?' cke_last':'cke_first',X,!!V.hidden?' style="display:none"':'',' id="',ac,'"',ab.gecko&&ab.version>=10900&&!ab.hc?'':' href="javascript:void(0)"',' tabIndex="-1"',' hidefocus="true"',' role="tab">',V.label,'</a>'].join(''));aa.setAttribute('aria-labelledby',ac);ah._.tabs[V.id]=[ad,aa];ah._.tabIdList.push(V.id);!V.hidden&&ah._.pageCount++;ah._.lastTab=ad;ah.updateStyle();var ae=ah._.contents[V.id]={},af,ag=Z.getChild();while(af=ag.shift()){ae[af.id]=af;if(typeof af.getChild=='function')ag.push.apply(ag,af.getChild());}aa.setAttribute('name',V.id);aa.appendTo(ah.parts.contents);ad.unselectable();ah.parts.tabs.append(ad);if(V.accessKey){P(ah,ah,'CTRL+'+V.accessKey,S,R);ah._.accessKeyMap['CTRL+'+V.accessKey]=V.id;}},selectPage:function(V){if(this._.currentTabId==V)return;if(this.fire('selectPage',{page:V,currentPage:this._.currentTabId})===true)return;for(var W in this._.tabs){var X=this._.tabs[W][0],Y=this._.tabs[W][1];if(W!=V){X.removeClass('cke_dialog_tab_selected');Y.hide();}Y.setAttribute('aria-hidden',W!=V);}var Z=this._.tabs[V];Z[0].addClass('cke_dialog_tab_selected');if(e.ie6Compat||e.ie7Compat){t(Z[1]);Z[1].show();setTimeout(function(){t(Z[1],1);},0);}else Z[1].show();this._.currentTabId=V;this._.currentTabIndex=h.indexOf(this._.tabIdList,V);},updateStyle:function(){this.parts.dialog[(this._.pageCount===1?'add':'remove')+'Class']('cke_single_page');},hidePage:function(V){var X=this;var W=X._.tabs[V]&&X._.tabs[V][0];if(!W||X._.pageCount==1||!W.isVisible())return;else if(V==X._.currentTabId)X.selectPage(r.call(X));W.hide();X._.pageCount--;X.updateStyle();},showPage:function(V){var X=this;var W=X._.tabs[V]&&X._.tabs[V][0];if(!W)return;W.show();X._.pageCount++;X.updateStyle();},getElement:function(){return this._.element;},getName:function(){return this._.name;},getContentElement:function(V,W){var X=this._.contents[V];return X&&X[W];},getValueOf:function(V,W){return this.getContentElement(V,W).getValue();
},setValueOf:function(V,W,X){return this.getContentElement(V,W).setValue(X);},getButton:function(V){return this._.buttons[V];},click:function(V){return this._.buttons[V].click();},disableButton:function(V){return this._.buttons[V].disable();},enableButton:function(V){return this._.buttons[V].enable();},getPageCount:function(){return this._.pageCount;},getParentEditor:function(){return this._.editor;},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement();},addFocusable:function(V,W){var Y=this;if(typeof W=='undefined'){W=Y._.focusList.length;Y._.focusList.push(new w(Y,V,W));}else{Y._.focusList.splice(W,0,new w(Y,V,W));for(var X=W+1;X<Y._.focusList.length;X++)Y._.focusList[X].focusIndex++;}}};h.extend(d.dialog,{add:function(V,W){if(!this._.dialogDefinitions[V]||typeof W=='function')this._.dialogDefinitions[V]=W;},exists:function(V){return!!this._.dialogDefinitions[V];},getCurrent:function(){return d.dialog._.currentTop;},okButton:(function(){var V=function(W,X){X=X||{};return h.extend({id:'ok',type:'button',label:W.lang.common.ok,'class':'cke_dialog_ui_button_ok',onClick:function(Y){var Z=Y.data.dialog;if(Z.fire('ok',{hide:true}).hide!==false)Z.hide();}},X,true);};V.type='button';V.override=function(W){return h.extend(function(X){return V(X,W);},{type:'button'},true);};return V;})(),cancelButton:(function(){var V=function(W,X){X=X||{};return h.extend({id:'cancel',type:'button',label:W.lang.common.cancel,'class':'cke_dialog_ui_button_cancel',onClick:function(Y){var Z=Y.data.dialog;if(Z.fire('cancel',{hide:true}).hide!==false)Z.hide();}},X,true);};V.type='button';V.override=function(W){return h.extend(function(X){return V(X,W);},{type:'button'},true);};return V;})(),addUIElement:function(V,W){this._.uiElementBuilders[V]=W;}});d.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};d.event.implementOn(d.dialog);d.event.implementOn(d.dialog.prototype,true);var x={resizable:3,minWidth:600,minHeight:400,buttons:[d.dialog.okButton,d.dialog.cancelButton]},y=function(V,W,X){for(var Y=0,Z;Z=V[Y];Y++){if(Z.id==W)return Z;if(X&&Z[X]){var aa=y(Z[X],W,X);if(aa)return aa;}}return null;},z=function(V,W,X,Y,Z){if(X){for(var aa=0,ab;ab=V[aa];aa++){if(ab.id==X){V.splice(aa,0,W);return W;}if(Y&&ab[Y]){var ac=z(ab[Y],W,X,Y,true);if(ac)return ac;}}if(Z)return null;}V.push(W);return W;},A=function(V,W,X){for(var Y=0,Z;Z=V[Y];Y++){if(Z.id==W)return V.splice(Y,1);if(X&&Z[X]){var aa=A(Z[X],W,X);if(aa)return aa;
}}return null;},B=function(V,W){this.dialog=V;var X=W.contents;for(var Y=0,Z;Z=X[Y];Y++)X[Y]=Z&&new C(V,Z);h.extend(this,W);};B.prototype={getContents:function(V){return y(this.contents,V);},getButton:function(V){return y(this.buttons,V);},addContents:function(V,W){return z(this.contents,V,W);},addButton:function(V,W){return z(this.buttons,V,W);},removeContents:function(V){A(this.contents,V);},removeButton:function(V){A(this.buttons,V);}};function C(V,W){this._={dialog:V};h.extend(this,W);};C.prototype={get:function(V){return y(this.elements,V,'children');},add:function(V,W){return z(this.elements,V,W,'children');},remove:function(V){A(this.elements,V,'children');}};function D(V){var W=null,X=null,Y=V.getElement().getFirst(),Z=V.getParentEditor(),aa=Z.config.dialog_magnetDistance,ab=Z.skin.margins||[0,0,0,0];if(typeof aa=='undefined')aa=20;function ac(ae){var af=V.getSize(),ag=d.document.getWindow().getViewPaneSize(),ah=ae.data.$.screenX,ai=ae.data.$.screenY,aj=ah-W.x,ak=ai-W.y,al,am;W={x:ah,y:ai};X.x+=aj;X.y+=ak;if(X.x+ab[3]<aa)al=-ab[3];else if(X.x-ab[1]>ag.width-af.width-aa)al=ag.width-af.width+(Z.lang.dir=='rtl'?0:ab[1]);else al=X.x;if(X.y+ab[0]<aa)am=-ab[0];else if(X.y-ab[2]>ag.height-af.height-aa)am=ag.height-af.height+ab[2];else am=X.y;V.move(al,am,1);ae.data.preventDefault();};function ad(ae){d.document.removeListener('mousemove',ac);d.document.removeListener('mouseup',ad);if(e.ie6Compat){var af=H.getChild(0).getFrameDocument();af.removeListener('mousemove',ac);af.removeListener('mouseup',ad);}};V.parts.title.on('mousedown',function(ae){W={x:ae.data.$.screenX,y:ae.data.$.screenY};d.document.on('mousemove',ac);d.document.on('mouseup',ad);X=V.getPosition();if(e.ie6Compat){var af=H.getChild(0).getFrameDocument();af.on('mousemove',ac);af.on('mouseup',ad);}ae.data.preventDefault();},V);};function E(V){var W=V.definition,X=W.resizable;if(X==0)return;var Y=V.getParentEditor(),Z,aa,ab,ac,ad,ae,af=h.addFunction(function(ai){ad=V.getSize();var aj=V.parts.contents,ak=aj.$.getElementsByTagName('iframe').length;if(ak){ae=k.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>');aj.append(ae);}aa=ad.height-V.parts.contents.getSize('height',!(e.gecko||e.opera||f&&e.quirks));Z=ad.width-V.parts.contents.getSize('width',1);ac={x:ai.screenX,y:ai.screenY};ab=d.document.getWindow().getViewPaneSize();d.document.on('mousemove',ag);d.document.on('mouseup',ah);if(e.ie6Compat){var al=H.getChild(0).getFrameDocument();
al.on('mousemove',ag);al.on('mouseup',ah);}ai.preventDefault&&ai.preventDefault();});V.on('load',function(){var ai='';if(X==1)ai=' cke_resizer_horizontal';else if(X==2)ai=' cke_resizer_vertical';var aj=k.createFromHtml('<div class="cke_resizer'+ai+' cke_resizer_'+Y.lang.dir+'"'+' title="'+h.htmlEncode(Y.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+af+', event )"></div>');V.parts.footer.append(aj,1);});Y.on('destroy',function(){h.removeFunction(af);});function ag(ai){var aj=Y.lang.dir=='rtl',ak=(ai.data.$.screenX-ac.x)*(aj?-1:1),al=ai.data.$.screenY-ac.y,am=ad.width,an=ad.height,ao=am+ak*(V._.moved?1:2),ap=an+al*(V._.moved?1:2),aq=V._.element.getFirst(),ar=aj&&aq.getComputedStyle('right'),as=V.getPosition();if(as.y+ap>ab.height)ap=ab.height-as.y;if((aj?ar:as.x)+ao>ab.width)ao=ab.width-(aj?ar:as.x);if(X==1||X==3)am=Math.max(W.minWidth||0,ao-Z);if(X==2||X==3)an=Math.max(W.minHeight||0,ap-aa);V.resize(am,an);if(!V._.moved)V.layout();ai.data.preventDefault();};function ah(){d.document.removeListener('mouseup',ah);d.document.removeListener('mousemove',ag);if(ae){ae.remove();ae=null;}if(e.ie6Compat){var ai=H.getChild(0).getFrameDocument();ai.removeListener('mouseup',ah);ai.removeListener('mousemove',ag);}};};var F,G={},H;function I(V){V.data.preventDefault(1);};function J(V){var W=d.document.getWindow(),X=V.config,Y=X.dialog_backgroundCoverColor||'white',Z=X.dialog_backgroundCoverOpacity,aa=X.baseFloatZIndex,ab=h.genKey(Y,Z,aa),ac=G[ab];if(!ac){var ad=['<div tabIndex="-1" style="position: ',e.ie6Compat?'absolute':'fixed','; z-index: ',aa,'; top: 0px; left: 0px; ',!e.ie6Compat?'background-color: '+Y:'','" class="cke_dialog_background_cover">'];if(e.ie6Compat){var ae=e.isCustomDomain(),af="<html><body style=\\'background-color:"+Y+";\\'></body></html>";ad.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');ad.push('void((function(){document.open();'+(ae?"document.domain='"+document.domain+"';":'')+"document.write( '"+af+"' );"+'document.close();'+'})())');ad.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>');}ad.push('</div>');ac=k.createFromHtml(ad.join(''));ac.setOpacity(Z!=undefined?Z:0.5);ac.on('keydown',I);ac.on('keypress',I);ac.on('keyup',I);ac.appendTo(d.document.getBody());G[ab]=ac;}else ac.show();H=ac;var ag=function(){var aj=W.getViewPaneSize();ac.setStyles({width:aj.width+'px',height:aj.height+'px'});},ah=function(){var aj=W.getScrollPosition(),ak=d.dialog._.currentTop;
ac.setStyles({left:aj.x+'px',top:aj.y+'px'});if(ak)do{var al=ak.getPosition();ak.move(al.x,al.y);}while(ak=ak._.parentDialog)};F=ag;W.on('resize',ag);ag();if(!(e.mac&&e.webkit))ac.focus();if(e.ie6Compat){var ai=function(){ah();arguments.callee.prevScrollHandler.apply(this,arguments);};W.$.setTimeout(function(){ai.prevScrollHandler=window.onscroll||(function(){});window.onscroll=ai;},0);ah();}};function K(){if(!H)return;var V=d.document.getWindow();H.hide();V.removeListener('resize',F);if(e.ie6Compat)V.$.setTimeout(function(){var W=window.onscroll&&window.onscroll.prevScrollHandler;window.onscroll=W||null;},0);F=null;};function L(){for(var V in G)G[V].remove();G={};};var M={},N=function(V){var W=V.data.$.ctrlKey||V.data.$.metaKey,X=V.data.$.altKey,Y=V.data.$.shiftKey,Z=String.fromCharCode(V.data.$.keyCode),aa=M[(W?'CTRL+':'')+(X?'ALT+':'')+(Y?'SHIFT+':'')+Z];if(!aa||!aa.length)return;aa=aa[aa.length-1];aa.keydown&&aa.keydown.call(aa.uiElement,aa.dialog,aa.key);V.data.preventDefault();},O=function(V){var W=V.data.$.ctrlKey||V.data.$.metaKey,X=V.data.$.altKey,Y=V.data.$.shiftKey,Z=String.fromCharCode(V.data.$.keyCode),aa=M[(W?'CTRL+':'')+(X?'ALT+':'')+(Y?'SHIFT+':'')+Z];if(!aa||!aa.length)return;aa=aa[aa.length-1];if(aa.keyup){aa.keyup.call(aa.uiElement,aa.dialog,aa.key);V.data.preventDefault();}},P=function(V,W,X,Y,Z){var aa=M[X]||(M[X]=[]);aa.push({uiElement:V,dialog:W,key:X,keyup:Z||V.accessKeyUp,keydown:Y||V.accessKeyDown});},Q=function(V){for(var W in M){var X=M[W];for(var Y=X.length-1;Y>=0;Y--){if(X[Y].dialog==V||X[Y].uiElement==V)X.splice(Y,1);}if(X.length===0)delete M[W];}},R=function(V,W){if(V._.accessKeyMap[W])V.selectPage(V._.accessKeyMap[W]);},S=function(V,W){},T={27:1,13:1},U=function(V){if(V.data.getKeystroke() in T)V.data.stopPropagation();};(function(){n.dialog={uiElement:function(V,W,X,Y,Z,aa,ab){if(arguments.length<4)return;var ac=(Y.call?Y(W):Y)||'div',ad=['<',ac,' '],ae=(Z&&Z.call?Z(W):Z)||{},af=(aa&&aa.call?aa(W):aa)||{},ag=(ab&&ab.call?ab.call(this,V,W):ab)||'',ah=this.domId=af.id||h.getNextId()+'_uiElement',ai=this.id=W.id,aj;af.id=ah;var ak={};if(W.type)ak['cke_dialog_ui_'+W.type]=1;if(W.className)ak[W.className]=1;if(W.disabled)ak.cke_disabled=1;var al=af['class']&&af['class'].split?af['class'].split(' '):[];for(aj=0;aj<al.length;aj++){if(al[aj])ak[al[aj]]=1;}var am=[];for(aj in ak)am.push(aj);af['class']=am.join(' ');if(W.title)af.title=W.title;var an=(W.style||'').split(';');if(W.align){var ao=W.align;ae['margin-left']=ao=='left'?0:'auto';
ae['margin-right']=ao=='right'?0:'auto';}for(aj in ae)an.push(aj+':'+ae[aj]);if(W.hidden)an.push('display:none');for(aj=an.length-1;aj>=0;aj--){if(an[aj]==='')an.splice(aj,1);}if(an.length>0)af.style=(af.style?af.style+'; ':'')+an.join('; ');for(aj in af)ad.push(aj+'="'+h.htmlEncode(af[aj])+'" ');ad.push('>',ag,'</',ac,'>');X.push(ad.join(''));(this._||(this._={})).dialog=V;if(typeof W.isChanged=='boolean')this.isChanged=function(){return W.isChanged;};if(typeof W.isChanged=='function')this.isChanged=W.isChanged;if(typeof W.setValue=='function')this.setValue=h.override(this.setValue,function(aq){return function(ar){aq.call(this,W.setValue.call(this,ar));};});if(typeof W.getValue=='function')this.getValue=h.override(this.getValue,function(aq){return function(){return W.getValue.call(this,aq.call(this));};});d.event.implementOn(this);this.registerEvents(W);if(this.accessKeyUp&&this.accessKeyDown&&W.accessKey)P(this,V,'CTRL+'+W.accessKey);var ap=this;V.on('load',function(){if(ap.getInputElement())ap.getInputElement().on('focus',function(){V._.tabBarMode=false;V._.hasFocus=true;ap.fire('focus');},ap);});if(this.keyboardFocusable){this.tabIndex=W.tabIndex||0;this.focusIndex=V._.focusList.push(this)-1;this.on('focus',function(){V._.currentFocusIndex=ap.focusIndex;});}h.extend(this,W);},hbox:function(V,W,X,Y,Z){if(arguments.length<4)return;this._||(this._={});var aa=this._.children=W,ab=Z&&Z.widths||null,ac=Z&&Z.height||null,ad={},ae,af=function(){var ah=['<tbody><tr class="cke_dialog_ui_hbox">'];for(ae=0;ae<X.length;ae++){var ai='cke_dialog_ui_hbox_child',aj=[];if(ae===0)ai='cke_dialog_ui_hbox_first';if(ae==X.length-1)ai='cke_dialog_ui_hbox_last';ah.push('<td class="',ai,'" role="presentation" ');if(ab){if(ab[ae])aj.push('width:'+p(ab[ae]));}else aj.push('width:'+Math.floor(100/X.length)+'%');if(ac)aj.push('height:'+p(ac));if(Z&&Z.padding!=undefined)aj.push('padding:'+p(Z.padding));if(f&&e.quirks&&aa[ae].align)aj.push('text-align:'+aa[ae].align);if(aj.length>0)ah.push('style="'+aj.join('; ')+'" ');ah.push('>',X[ae],'</td>');}ah.push('</tr></tbody>');return ah.join('');},ag={role:'presentation'};Z&&Z.align&&(ag.align=Z.align);n.dialog.uiElement.call(this,V,Z||{type:'hbox'},Y,'table',ad,ag,af);},vbox:function(V,W,X,Y,Z){if(arguments.length<3)return;this._||(this._={});var aa=this._.children=W,ab=Z&&Z.width||null,ac=Z&&Z.heights||null,ad=function(){var ae=['<table role="presentation" cellspacing="0" border="0" '];ae.push('style="');if(Z&&Z.expand)ae.push('height:100%;');
ae.push('width:'+p(ab||'100%'),';');ae.push('"');ae.push('align="',h.htmlEncode(Z&&Z.align||(V.getParentEditor().lang.dir=='ltr'?'left':'right')),'" ');ae.push('><tbody>');for(var af=0;af<X.length;af++){var ag=[];ae.push('<tr><td role="presentation" ');if(ab)ag.push('width:'+p(ab||'100%'));if(ac)ag.push('height:'+p(ac[af]));else if(Z&&Z.expand)ag.push('height:'+Math.floor(100/X.length)+'%');if(Z&&Z.padding!=undefined)ag.push('padding:'+p(Z.padding));if(f&&e.quirks&&aa[af].align)ag.push('text-align:'+aa[af].align);if(ag.length>0)ae.push('style="',ag.join('; '),'" ');ae.push(' class="cke_dialog_ui_vbox_child">',X[af],'</td></tr>');}ae.push('</tbody></table>');return ae.join('');};n.dialog.uiElement.call(this,V,Z||{type:'vbox'},Y,'div',null,{role:'presentation'},ad);}};})();n.dialog.uiElement.prototype={getElement:function(){return d.document.getById(this.domId);},getInputElement:function(){return this.getElement();},getDialog:function(){return this._.dialog;},setValue:function(V,W){this.getInputElement().setValue(V);!W&&this.fire('change',{value:V});return this;},getValue:function(){return this.getInputElement().getValue();},isChanged:function(){return false;},selectParentTab:function(){var Y=this;var V=Y.getInputElement(),W=V,X;while((W=W.getParent())&&W.$.className.search('cke_dialog_page_contents')==-1){}if(!W)return Y;X=W.getAttribute('name');if(Y._.dialog._.currentTabId!=X)Y._.dialog.selectPage(X);return Y;},focus:function(){this.selectParentTab().getInputElement().focus();return this;},registerEvents:function(V){var W=/^on([A-Z]\w+)/,X,Y=function(aa,ab,ac,ad){ab.on('load',function(){aa.getInputElement().on(ac,ad,aa);});};for(var Z in V){if(!(X=Z.match(W)))continue;if(this.eventProcessors[Z])this.eventProcessors[Z].call(this,this._.dialog,V[Z]);else Y(this,this._.dialog,X[1].toLowerCase(),V[Z]);}return this;},eventProcessors:{onLoad:function(V,W){V.on('load',W,this);},onShow:function(V,W){V.on('show',W,this);},onHide:function(V,W){V.on('hide',W,this);}},accessKeyDown:function(V,W){this.focus();},accessKeyUp:function(V,W){},disable:function(){var V=this.getElement(),W=this.getInputElement();W.setAttribute('disabled','true');V.addClass('cke_disabled');},enable:function(){var V=this.getElement(),W=this.getInputElement();W.removeAttribute('disabled');V.removeClass('cke_disabled');},isEnabled:function(){return!this.getElement().hasClass('cke_disabled');},isVisible:function(){return this.getInputElement().isVisible();},isFocusable:function(){if(!this.isEnabled()||!this.isVisible())return false;
return true;}};n.dialog.hbox.prototype=h.extend(new n.dialog.uiElement(),{getChild:function(V){var W=this;if(arguments.length<1)return W._.children.concat();if(!V.splice)V=[V];if(V.length<2)return W._.children[V[0]];else return W._.children[V[0]]&&W._.children[V[0]].getChild?W._.children[V[0]].getChild(V.slice(1,V.length)):null;}},true);n.dialog.vbox.prototype=new n.dialog.hbox();(function(){var V={build:function(W,X,Y){var Z=X.children,aa,ab=[],ac=[];for(var ad=0;ad<Z.length&&(aa=Z[ad]);ad++){var ae=[];ab.push(ae);ac.push(d.dialog._.uiElementBuilders[aa.type].build(W,aa,ae));}return new n.dialog[X.type](W,ac,ab,Y,X);}};d.dialog.addUIElement('hbox',V);d.dialog.addUIElement('vbox',V);})();d.dialogCommand=function(V){this.dialogName=V;};d.dialogCommand.prototype={exec:function(V){V.openDialog(this.dialogName);},canUndo:false,editorFocus:f||e.webkit};(function(){var V=/^([a]|[^a])+$/,W=/^\d*$/,X=/^\d*(?:\.\d+)?$/,Y=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,Z=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i;d.VALIDATE_OR=1;d.VALIDATE_AND=2;d.dialog.validate={functions:function(){var aa=arguments;return function(){var ab=this&&this.getValue?this.getValue():aa[0],ac=undefined,ad=2,ae=[],af;for(af=0;af<aa.length;af++){if(typeof aa[af]=='function')ae.push(aa[af]);else break;}if(af<aa.length&&typeof aa[af]=='string'){ac=aa[af];af++;}if(af<aa.length&&typeof aa[af]=='number')ad=aa[af];var ag=ad==2?true:false;for(af=0;af<ae.length;af++){if(ad==2)ag=ag&&ae[af](ab);else ag=ag||ae[af](ab);}return!ag?ac:true;};},regex:function(aa,ab){return function(){var ac=this&&this.getValue?this.getValue():arguments[0];return!aa.test(ac)?ab:true;};},notEmpty:function(aa){return this.regex(V,aa);},integer:function(aa){return this.regex(W,aa);},number:function(aa){return this.regex(X,aa);},cssLength:function(aa){return this.functions(function(ab){return Z.test(h.trim(ab));},aa);},htmlLength:function(aa){return this.functions(function(ab){return Y.test(h.trim(ab));},aa);},equals:function(aa,ab){return this.functions(function(ac){return ac==aa;},ab);},notEqual:function(aa,ab){return this.functions(function(ac){return ac!=aa;},ab);}};d.on('instanceDestroyed',function(aa){if(h.isEmpty(d.instances)){var ab;while(ab=d.dialog._.currentTop)ab.hide();L();}var ac=aa.editor._.storedDialogs;for(var ad in ac)ac[ad].destroy();});})();h.extend(d.editor.prototype,{openDialog:function(V,W){if(this.mode=='wysiwyg'&&f){var X=this.getSelection();X&&X.lock();}var Y=d.dialog._.dialogDefinitions[V],Z=this.skin.dialog;
if(d.dialog._.currentTop===null)J(this);if(typeof Y=='function'&&Z._isLoaded){var aa=this._.storedDialogs||(this._.storedDialogs={}),ab=aa[V]||(aa[V]=new d.dialog(this,V));W&&W.call(ab,ab);ab.show();return ab;}else if(Y=='failed'){K();throw new Error('[CKEDITOR.dialog.openDialog] Dialog "'+V+'" failed when loading definition.');}var ac=this;function ad(af){var ag=d.dialog._.dialogDefinitions[V],ah=ac.skin.dialog;if(!ah._isLoaded||ae&&typeof af=='undefined')return;if(typeof ag!='function')d.dialog._.dialogDefinitions[V]='failed';ac.openDialog(V,W);};if(typeof Y=='string'){var ae=1;d.scriptLoader.load(d.getUrl(Y),ad,null,0,1);}d.skins.load(this,'dialog',ad);return null;}});})();m.add('dialog',{requires:['dialogui']});m.add('styles',{requires:['selection'],init:function(p){p.on('contentDom',function(){p.document.setCustomData('cke_includeReadonly',!p.config.disableReadonlyStyling);});}});d.editor.prototype.attachStyleStateChange=function(p,q){var r=this._.styleStateChangeCallbacks;if(!r){r=this._.styleStateChangeCallbacks=[];this.on('selectionChange',function(s){for(var t=0;t<r.length;t++){var u=r[t],v=u.style.checkActive(s.data.path)?1:2;u.fn.call(this,v);}});}r.push({style:p,fn:q});};d.STYLE_BLOCK=1;d.STYLE_INLINE=2;d.STYLE_OBJECT=3;(function(){var p={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1},q={a:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},r=/\s*(?:;\s*|$)/,s=/#\((.+?)\)/g,t=g.walker.bookmark(0,1),u=g.walker.whitespaces(1);d.style=function(W,X){var Z=this;if(X){W=h.clone(W);O(W.attributes,X);O(W.styles,X);}var Y=Z.element=W.element?typeof W.element=='string'?W.element.toLowerCase():W.element:'*';Z.type=p[Y]?1:q[Y]?3:2;if(typeof Z.element=='object')Z.type=3;Z._={definition:W};};d.style.prototype={apply:function(W){V.call(this,W,false);},remove:function(W){V.call(this,W,true);},applyToRange:function(W){var X=this;return(X.applyToRange=X.type==2?w:X.type==1?A:X.type==3?y:null).call(X,W);},removeFromRange:function(W){var X=this;return(X.removeFromRange=X.type==2?x:X.type==1?B:X.type==3?z:null).call(X,W);},applyToObject:function(W){N(W,this);},checkActive:function(W){var ab=this;switch(ab.type){case 1:return ab.checkElementRemovable(W.block||W.blockLimit,true);case 3:case 2:var X=W.elements;for(var Y=0,Z;Y<X.length;Y++){Z=X[Y];
if(ab.type==2&&(Z==W.block||Z==W.blockLimit))continue;if(ab.type==3){var aa=Z.getName();if(!(typeof ab.element=='string'?aa==ab.element:aa in ab.element))continue;}if(ab.checkElementRemovable(Z,true))return true;}}return false;},checkApplicable:function(W){switch(this.type){case 2:case 1:break;case 3:return W.lastElement.getAscendant(this.element,true);}return true;},checkElementRemovable:function(W,X){var ah=this;if(!W||W.isReadOnly())return false;var Y=ah._.definition,Z,aa=W.getName();if(typeof ah.element=='string'?aa==ah.element:aa in ah.element){if(!X&&!W.hasAttributes())return true;Z=P(Y);if(Z._length){for(var ab in Z){if(ab=='_length')continue;var ac=W.getAttribute(ab)||'';if(ab=='style'?U(Z[ab],S(ac,false)):Z[ab]==ac){if(!X)return true;}else if(X)return false;}if(X)return true;}else return true;}var ad=Q(ah)[W.getName()];if(ad){if(!(Z=ad.attributes))return true;for(var ae=0;ae<Z.length;ae++){ab=Z[ae][0];var af=W.getAttribute(ab);if(af){var ag=Z[ae][1];if(ag===null||typeof ag=='string'&&af==ag||ag.test(af))return true;}}}return false;},buildPreview:function(W){var X=this._.definition,Y=[],Z=X.element;if(Z=='bdo')Z='span';Y=['<',Z];var aa=X.attributes;if(aa)for(var ab in aa)Y.push(' ',ab,'="',aa[ab],'"');var ac=d.style.getStyleText(X);if(ac)Y.push(' style="',ac,'"');Y.push('>',W||X.name,'</',Z,'>');return Y.join('');}};d.style.getStyleText=function(W){var X=W._ST;if(X)return X;X=W.styles;var Y=W.attributes&&W.attributes.style||'',Z='';if(Y.length)Y=Y.replace(r,';');for(var aa in X){var ab=X[aa],ac=(aa+':'+ab).replace(r,';');if(ab=='inherit')Z+=ac;else Y+=ac;}if(Y.length)Y=S(Y);Y+=Z;return W._ST=Y;};function v(W){var X,Y;while(W=W.getParent()){if(W.getName()=='body')break;if(W.getAttribute('data-nostyle'))X=W;else if(!Y){var Z=W.getAttribute('contentEditable');if(Z=='false')X=W;else if(Z=='true')Y=1;}}return X;};function w(W){var aA=this;var X=W.document;if(W.collapsed){var Y=M(aA,X);W.insertNode(Y);W.moveToPosition(Y,2);return;}var Z=aA.element,aa=aA._.definition,ab,ac=aa.includeReadonly;if(ac==undefined)ac=X.getCustomData('cke_includeReadonly');var ad=i[Z]||(ab=true,i.span);W.enlarge(1,1);W.trim();var ae=W.createBookmark(),af=ae.startNode,ag=ae.endNode,ah=af,ai,aj=v(af),ak=v(ag);if(aj)ah=aj.getNextSourceNode(true);if(ak)ag=ak;if(ah.getPosition(ag)==2)ah=0;while(ah){var al=false;if(ah.equals(ag)){ah=null;al=true;}else{var am=ah.type,an=am==1?ah.getName():null,ao=an&&ah.getAttribute('contentEditable')=='false',ap=an&&ah.getAttribute('data-nostyle');if(an&&ah.data('cke-bookmark')){ah=ah.getNextSourceNode(true);
continue;}if(!an||ad[an]&&!ap&&(!ao||ac)&&(ah.getPosition(ag)|4|0|8)==4+0+8&&(!aa.childRule||aa.childRule(ah))){var aq=ah.getParent();if(aq&&((aq.getDtd()||i.span)[Z]||ab)&&(!aa.parentRule||aa.parentRule(aq))){if(!ai&&(!an||!i.$removeEmpty[an]||(ah.getPosition(ag)|4|0|8)==4+0+8)){ai=new g.range(X);ai.setStartBefore(ah);}if(am==3||ao||am==1&&!ah.getChildCount()){var ar=ah,as;while((al=!ar.getNext(t))&&(as=ar.getParent(),ad[as.getName()])&&(as.getPosition(af)|2|0|8)==2+0+8&&(!aa.childRule||aa.childRule(as)))ar=as;ai.setEndAfter(ar);}}else al=true;}else al=true;ah=ah.getNextSourceNode(ap||ao);}if(al&&ai&&!ai.collapsed){var at=M(aA,X),au=at.hasAttributes(),av=ai.getCommonAncestor(),aw={styles:{},attrs:{},blockedStyles:{},blockedAttrs:{}},ax,ay,az;while(at&&av){if(av.getName()==Z){for(ax in aa.attributes){if(aw.blockedAttrs[ax]||!(az=av.getAttribute(ay)))continue;if(at.getAttribute(ax)==az)aw.attrs[ax]=1;else aw.blockedAttrs[ax]=1;}for(ay in aa.styles){if(aw.blockedStyles[ay]||!(az=av.getStyle(ay)))continue;if(at.getStyle(ay)==az)aw.styles[ay]=1;else aw.blockedStyles[ay]=1;}}av=av.getParent();}for(ax in aw.attrs)at.removeAttribute(ax);for(ay in aw.styles)at.removeStyle(ay);if(au&&!at.hasAttributes())at=null;if(at){ai.extractContents().appendTo(at);J(aA,at);ai.insertNode(at);at.mergeSiblings();if(!f)at.$.normalize();}else{at=new k('span');ai.extractContents().appendTo(at);ai.insertNode(at);J(aA,at);at.remove(true);}ai=null;}}W.moveToBookmark(ae);W.shrink(2);};function x(W){W.enlarge(1,1);var X=W.createBookmark(),Y=X.startNode;if(W.collapsed){var Z=new g.elementPath(Y.getParent()),aa;for(var ab=0,ac;ab<Z.elements.length&&(ac=Z.elements[ab]);ab++){if(ac==Z.block||ac==Z.blockLimit)break;if(this.checkElementRemovable(ac)){var ad;if(W.collapsed&&(W.checkBoundaryOfElement(ac,2)||(ad=W.checkBoundaryOfElement(ac,1)))){aa=ac;aa.match=ad?'start':'end';}else{ac.mergeSiblings();if(ac.getName()==this.element)I(this,ac);else K(ac,Q(this)[ac.getName()]);}}}if(aa){var ae=Y;for(ab=0;true;ab++){var af=Z.elements[ab];if(af.equals(aa))break;else if(af.match)continue;else af=af.clone();af.append(ae);ae=af;}ae[aa.match=='start'?'insertBefore':'insertAfter'](aa);}}else{var ag=X.endNode,ah=this;function ai(){var al=new g.elementPath(Y.getParent()),am=new g.elementPath(ag.getParent()),an=null,ao=null;for(var ap=0;ap<al.elements.length;ap++){var aq=al.elements[ap];if(aq==al.block||aq==al.blockLimit)break;if(ah.checkElementRemovable(aq))an=aq;}for(ap=0;ap<am.elements.length;ap++){aq=am.elements[ap];
if(aq==am.block||aq==am.blockLimit)break;if(ah.checkElementRemovable(aq))ao=aq;}if(ao)ag.breakParent(ao);if(an)Y.breakParent(an);};ai();var aj=Y.getNext();while(!aj.equals(ag)){var ak=aj.getNextSourceNode();if(aj.type==1&&this.checkElementRemovable(aj)){if(aj.getName()==this.element)I(this,aj);else K(aj,Q(this)[aj.getName()]);if(ak.type==1&&ak.contains(Y)){ai();ak=Y.getNext();}}aj=ak;}}W.moveToBookmark(X);};function y(W){var X=W.getCommonAncestor(true,true),Y=X.getAscendant(this.element,true);Y&&!Y.isReadOnly()&&N(Y,this);};function z(W){var X=W.getCommonAncestor(true,true),Y=X.getAscendant(this.element,true);if(!Y)return;var Z=this,aa=Z._.definition,ab=aa.attributes,ac=d.style.getStyleText(aa);if(ab)for(var ad in ab)Y.removeAttribute(ad,ab[ad]);if(aa.styles)for(var ae in aa.styles){if(!aa.styles.hasOwnProperty(ae))continue;Y.removeStyle(ae);}};function A(W){var X=W.createBookmark(true),Y=W.createIterator();Y.enforceRealBlocks=true;if(this._.enterMode)Y.enlargeBr=this._.enterMode!=2;var Z,aa=W.document,ab;while(Z=Y.getNextParagraph()){if(!Z.isReadOnly()){var ac=M(this,aa,Z);C(Z,ac);}}W.moveToBookmark(X);};function B(W){var ab=this;var X=W.createBookmark(1),Y=W.createIterator();Y.enforceRealBlocks=true;Y.enlargeBr=ab._.enterMode!=2;var Z;while(Z=Y.getNextParagraph()){if(ab.checkElementRemovable(Z))if(Z.is('pre')){var aa=ab._.enterMode==2?null:W.document.createElement(ab._.enterMode==1?'p':'div');aa&&Z.copyAttributes(aa);C(Z,aa);}else I(ab,Z,1);}W.moveToBookmark(X);};function C(W,X){var Y=!X;if(Y){X=W.getDocument().createElement('div');W.copyAttributes(X);}var Z=X&&X.is('pre'),aa=W.is('pre'),ab=Z&&!aa,ac=!Z&&aa;if(ab)X=H(W,X);else if(ac)X=G(Y?[W.getHtml()]:E(W),X);else W.moveChildren(X);X.replace(W);if(Z)D(X);else if(Y)L(X);};function D(W){var X;if(!((X=W.getPrevious(u))&&X.is&&X.is('pre')))return;var Y=F(X.getHtml(),/\n$/,'')+'\n\n'+F(W.getHtml(),/^\n/,'');if(f)W.$.outerHTML='<pre>'+Y+'</pre>';else W.setHtml(Y);X.remove();};function E(W){var X=/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,Y=W.getName(),Z=F(W.getOuterHtml(),X,function(ab,ac,ad){return ac+'</pre>'+ad+'<pre>';}),aa=[];Z.replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(ab,ac){aa.push(ac);});return aa;};function F(W,X,Y){var Z='',aa='';W=W.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(ab,ac,ad){ac&&(Z=ac);ad&&(aa=ad);return '';});return Z+W.replace(X,Y)+aa;};function G(W,X){var Y;if(W.length>1)Y=new g.documentFragment(X.getDocument());
for(var Z=0;Z<W.length;Z++){var aa=W[Z];aa=aa.replace(/(\r\n|\r)/g,'\n');aa=F(aa,/^[ \t]*\n/,'');aa=F(aa,/\n$/,'');aa=F(aa,/^[ \t]+|[ \t]+$/g,function(ac,ad,ae){if(ac.length==1)return '&nbsp;';else if(!ad)return h.repeat('&nbsp;',ac.length-1)+' ';else return ' '+h.repeat('&nbsp;',ac.length-1);});aa=aa.replace(/\n/g,'<br>');aa=aa.replace(/[ \t]{2,}/g,function(ac){return h.repeat('&nbsp;',ac.length-1)+' ';});if(Y){var ab=X.clone();ab.setHtml(aa);Y.append(ab);}else X.setHtml(aa);}return Y||X;};function H(W,X){var Y=W.getBogus();Y&&Y.remove();var Z=W.getHtml();Z=F(Z,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,'');Z=Z.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,'$1');Z=Z.replace(/([ \t\n\r]+|&nbsp;)/g,' ');Z=Z.replace(/<br\b[^>]*>/gi,'\n');if(f){var aa=W.getDocument().createElement('div');aa.append(X);X.$.outerHTML='<pre>'+Z+'</pre>';X.copyAttributes(aa.getFirst());X=aa.getFirst().remove();}else X.setHtml(Z);return X;};function I(W,X){var Y=W._.definition,Z=h.extend({},Y.attributes,Q(W)[X.getName()]),aa=Y.styles,ab=h.isEmpty(Z)&&h.isEmpty(aa);for(var ac in Z){if((ac=='class'||W._.definition.fullMatch)&&X.getAttribute(ac)!=R(ac,Z[ac]))continue;ab=X.hasAttribute(ac);X.removeAttribute(ac);}for(var ad in aa){if(W._.definition.fullMatch&&X.getStyle(ad)!=R(ad,aa[ad],true))continue;ab=ab||!!X.getStyle(ad);X.removeStyle(ad);}if(ab)!i.$block[X.getName()]||W._.enterMode==2&&!X.hasAttributes()?L(X):X.renameNode(W._.enterMode==1?'p':'div');};function J(W,X){var Y=W._.definition,Z=Y.attributes,aa=Y.styles,ab=Q(W),ac=X.getElementsByTag(W.element);for(var ad=ac.count();--ad>=0;)I(W,ac.getItem(ad));for(var ae in ab){if(ae!=W.element){ac=X.getElementsByTag(ae);for(ad=ac.count()-1;ad>=0;ad--){var af=ac.getItem(ad);K(af,ab[ae]);}}}};function K(W,X){var Y=X&&X.attributes;if(Y)for(var Z=0;Z<Y.length;Z++){var aa=Y[Z][0],ab;if(ab=W.getAttribute(aa)){var ac=Y[Z][1];if(ac===null||ac.test&&ac.test(ab)||typeof ac=='string'&&ab==ac)W.removeAttribute(aa);}}L(W);};function L(W){if(!W.hasAttributes())if(i.$block[W.getName()]){var X=W.getPrevious(u),Y=W.getNext(u);if(X&&(X.type==3||!X.isBlockBoundary({br:1})))W.append('br',1);if(Y&&(Y.type==3||!Y.isBlockBoundary({br:1})))W.append('br');W.remove(true);}else{var Z=W.getFirst(),aa=W.getLast();W.remove(true);if(Z){Z.type==1&&Z.mergeSiblings();if(aa&&!Z.equals(aa)&&aa.type==1)aa.mergeSiblings();}}};function M(W,X,Y){var Z,aa=W._.definition,ab=W.element;if(ab=='*')ab='span';Z=new k(ab,X);if(Y)Y.copyAttributes(Z);Z=N(Z,W);if(X.getCustomData('doc_processing_style')&&Z.hasAttribute('id'))Z.removeAttribute('id');
else X.setCustomData('doc_processing_style',1);return Z;};function N(W,X){var Y=X._.definition,Z=Y.attributes,aa=d.style.getStyleText(Y);if(Z)for(var ab in Z)W.setAttribute(ab,Z[ab]);if(aa)W.setAttribute('style',aa);return W;};function O(W,X){for(var Y in W)W[Y]=W[Y].replace(s,function(Z,aa){return X[aa];});};function P(W){var X=W._AC;if(X)return X;X={};var Y=0,Z=W.attributes;if(Z)for(var aa in Z){Y++;X[aa]=Z[aa];}var ab=d.style.getStyleText(W);if(ab){if(!X.style)Y++;X.style=ab;}X._length=Y;return W._AC=X;};function Q(W){if(W._.overrides)return W._.overrides;var X=W._.overrides={},Y=W._.definition.overrides;if(Y){if(!h.isArray(Y))Y=[Y];for(var Z=0;Z<Y.length;Z++){var aa=Y[Z],ab,ac,ad;if(typeof aa=='string')ab=aa.toLowerCase();else{ab=aa.element?aa.element.toLowerCase():W.element;ad=aa.attributes;}ac=X[ab]||(X[ab]={});if(ad){var ae=ac.attributes=ac.attributes||[];for(var af in ad)ae.push([af.toLowerCase(),ad[af]]);}}}return X;};function R(W,X,Y){var Z=new k('span');Z[Y?'setStyle':'setAttribute'](W,X);return Z[Y?'getStyle':'getAttribute'](W);};function S(W,X){var Y;if(X!==false){var Z=new k('span');Z.setAttribute('style',W);Y=Z.getAttribute('style')||'';}else Y=W;Y=Y.replace(/(font-family:)(.*?)(?=;|$)/,function(aa,ab,ac){var ad=ac.split(',');for(var ae=0;ae<ad.length;ae++)ad[ae]=h.trim(ad[ae].replace(/["']/g,''));return ab+ad.join(',');});return Y.replace(/\s*([;:])\s*/,'$1').replace(/([^\s;])$/,'$1;').replace(/,\s+/g,',').replace(/\"/g,'').toLowerCase();};function T(W){var X={};W.replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(Y,Z,aa){X[Z]=aa;});return X;};function U(W,X){typeof W=='string'&&(W=T(W));typeof X=='string'&&(X=T(X));for(var Y in W){if(!(Y in X&&(X[Y]==W[Y]||W[Y]=='inherit'||X[Y]=='inherit')))return false;}return true;};function V(W,X){var Y=W.getSelection(),Z=Y.createBookmarks(1),aa=Y.getRanges(),ab=X?this.removeFromRange:this.applyToRange,ac,ad=aa.createIterator();while(ac=ad.getNextRange())ab.call(this,ac);if(Z.length==1&&Z[0].collapsed){Y.selectRanges(aa);W.getById(Z[0].startNode).remove();}else Y.selectBookmarks(Z);W.removeCustomData('doc_processing_style');};})();d.styleCommand=function(p){this.style=p;};d.styleCommand.prototype.exec=function(p){var r=this;p.focus();var q=p.document;if(q)if(r.state==2)r.style.apply(q);else if(r.state==1)r.style.remove(q);return!!q;};d.stylesSet=new d.resourceManager('','stylesSet');d.addStylesSet=h.bind(d.stylesSet.add,d.stylesSet);d.loadStylesSet=function(p,q,r){d.stylesSet.addExternal(p,q,'');
d.stylesSet.load(p,r);};d.editor.prototype.getStylesSet=function(p){if(!this._.stylesDefinitions){var q=this,r=q.config.stylesCombo_stylesSet||q.config.stylesSet||'default';if(r instanceof Array){q._.stylesDefinitions=r;p(r);return;}var s=r.split(':'),t=s[0],u=s[1],v=m.registered.styles.path;d.stylesSet.addExternal(t,u?s.slice(1).join(':'):v+'styles/'+t+'.js','');d.stylesSet.load(t,function(w){q._.stylesDefinitions=w[t];p(q._.stylesDefinitions);});}else p(this._.stylesDefinitions);};m.add('domiterator');(function(){function p(v){var w=this;if(arguments.length<1)return;w.range=v;w.forceBrBreak=0;w.enlargeBr=1;w.enforceRealBlocks=0;w._||(w._={});};var q=/^[\r\n\t ]+$/,r=g.walker.bookmark(false,true),s=g.walker.whitespaces(true),t=function(v){return r(v)&&s(v);};function u(v,w,x){var y=v.getNextSourceNode(w,null,x);while(!r(y))y=y.getNextSourceNode(w,null,x);return y;};p.prototype={getNextParagraph:function(v){var V=this;var w,x,y,z,A,B;if(!V._.lastNode){x=V.range.clone();x.shrink(1,true);z=x.endContainer.hasAscendant('pre',true)||x.startContainer.hasAscendant('pre',true);x.enlarge(V.forceBrBreak&&!z||!V.enlargeBr?3:2);var C=new g.walker(x),D=g.walker.bookmark(true,true);C.evaluator=D;V._.nextNode=C.next();C=new g.walker(x);C.evaluator=D;var E=C.previous();V._.lastNode=E.getNextSourceNode(true);if(V._.lastNode&&V._.lastNode.type==3&&!h.trim(V._.lastNode.getText())&&V._.lastNode.getParent().isBlockBoundary()){var F=new g.range(x.document);F.moveToPosition(V._.lastNode,4);if(F.checkEndOfBlock()){var G=new g.elementPath(F.endContainer),H=G.block||G.blockLimit;V._.lastNode=H.getNextSourceNode(true);}}if(!V._.lastNode){V._.lastNode=V._.docEndMarker=x.document.createText('');V._.lastNode.insertAfter(E);}x=null;}var I=V._.nextNode;E=V._.lastNode;V._.nextNode=null;while(I){var J=0,K=I.hasAscendant('pre'),L=I.type!=1,M=0;if(!L){var N=I.getName();if(I.isBlockBoundary(V.forceBrBreak&&!K&&{br:1})){if(N=='br')L=1;else if(!x&&!I.getChildCount()&&N!='hr'){w=I;y=I.equals(E);break;}if(x){x.setEndAt(I,3);if(N!='br')V._.nextNode=I;}J=1;}else{if(I.getFirst()){if(!x){x=new g.range(V.range.document);x.setStartAt(I,3);}I=I.getFirst();continue;}L=1;}}else if(I.type==3)if(q.test(I.getText()))L=0;if(L&&!x){x=new g.range(V.range.document);x.setStartAt(I,3);}y=(!J||L)&&I.equals(E);if(x&&!J)while(!I.getNext(t)&&!y){var O=I.getParent();if(O.isBlockBoundary(V.forceBrBreak&&!K&&{br:1})){J=1;L=0;y=y||O.equals(E);x.setEndAt(O,2);break;}I=O;L=1;y=I.equals(E);M=1;}if(L)x.setEndAt(I,4);I=u(I,M,E);
y=!I;if(y||J&&x)break;}if(!w){if(!x){V._.docEndMarker&&V._.docEndMarker.remove();V._.nextNode=null;return null;}var P=new g.elementPath(x.startContainer),Q=P.blockLimit,R={div:1,th:1,td:1};w=P.block;if(!w&&!V.enforceRealBlocks&&R[Q.getName()]&&x.checkStartOfBlock()&&x.checkEndOfBlock())w=Q;else if(!w||V.enforceRealBlocks&&w.getName()=='li'){w=V.range.document.createElement(v||'p');x.extractContents().appendTo(w);w.trim();x.insertNode(w);A=B=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();A=!S.wasStartOfBlock;B=!S.wasEndOfBlock;x.insertNode(w);}}else if(!y)V._.nextNode=w.equals(E)?null:u(x.getBoundaryNodes().endNode,1,E);}if(A){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(B){var U=w.getLast();if(U&&U.type==1&&U.getName()=='br')if(f||U.getPrevious(r)||U.getNext(r))U.remove();}if(!V._.nextNode)V._.nextNode=y||w.equals(E)?null:u(w,1,E);return w;}};g.range.prototype.createIterator=function(){return new p(this);};})();m.add('panelbutton',{requires:['button'],onLoad:function(){function p(q){var s=this;var r=s._;if(r.state==0)return;s.createPanel(q);if(r.on){r.panel.hide();return;}r.panel.showBlock(s._.id,s.document.getById(s._.id),4);};n.panelButton=h.createClass({base:n.button,$:function(q){var s=this;var r=q.panel;delete q.panel;s.base(q);s.document=r&&r.parent&&r.parent.getDocument()||d.document;r.block={attributes:r.attributes};s.hasArrow=true;s.click=p;s._={panelDefinition:r};},statics:{handler:{create:function(q){return new n.panelButton(q);}}},proto:{createPanel:function(q){var r=this._;if(r.panel)return;var s=this._.panelDefinition||{},t=this._.panelDefinition.block,u=s.parent||d.document.getBody(),v=this._.panel=new n.floatPanel(q,u,s),w=v.addBlock(r.id,t),x=this;v.onShow=function(){if(x.className)this.element.getFirst().addClass(x.className+'_panel');x.setState(1);r.on=1;if(x.onOpen)x.onOpen();};v.onHide=function(y){if(x.className)this.element.getFirst().removeClass(x.className+'_panel');x.setState(x.modes&&x.modes[q.mode]?2:0);r.on=0;if(!y&&x.onClose)x.onClose();};v.onEscape=function(){v.hide();x.document.getById(r.id).focus();};if(this.onBlock)this.onBlock(v,w);w.onHide=function(){r.on=0;x.setState(2);};}}});},beforeInit:function(p){p.ui.addHandler('panelbutton',n.panelButton.handler);}});d.UI_PANELBUTTON='panelbutton';m.add('floatpanel',{requires:['panel']});
(function(){var p={},q=false;function r(s,t,u,v,w){var x=h.genKey(t.getUniqueId(),u.getUniqueId(),s.skinName,s.lang.dir,s.uiColor||'',v.css||'',w||''),y=p[x];if(!y){y=p[x]=new n.panel(t,v);y.element=u.append(k.createFromHtml(y.renderHtml(s),t));y.element.setStyles({display:'none',position:'absolute'});}return y;};n.floatPanel=h.createClass({$:function(s,t,u,v){u.forceIFrame=1;var w=t.getDocument(),x=r(s,w,t,u,v||0),y=x.element,z=y.getFirst().getFirst();this.element=y;this._={editor:s,panel:x,parentElement:t,definition:u,document:w,iframe:z,children:[],dir:s.lang.dir};s.on('mode',function(){this.hide();},this);},proto:{addBlock:function(s,t){return this._.panel.addBlock(s,t);},addListBlock:function(s,t){return this._.panel.addListBlock(s,t);},getBlock:function(s){return this._.panel.getBlock(s);},showBlock:function(s,t,u,v,w){var x=this._.panel,y=x.showBlock(s);this.allowBlur(false);q=1;this._.returnFocus=this._.editor.focusManager.hasFocus?this._.editor:new k(d.document.$.activeElement);var z=this.element,A=this._.iframe,B=this._.definition,C=t.getDocumentPosition(z.getDocument()),D=this._.dir=='rtl',E=C.x+(v||0),F=C.y+(w||0);if(D&&(u==1||u==4))E+=t.$.offsetWidth;else if(!D&&(u==2||u==3))E+=t.$.offsetWidth-1;if(u==3||u==4)F+=t.$.offsetHeight-1;this._.panel._.offsetParentId=t.getId();z.setStyles({top:F+'px',left:0,display:''});z.setOpacity(0);z.getFirst().removeStyle('width');if(!this._.blurSet){var G=f?A:new g.window(A.$.contentWindow);d.event.useCapture=true;G.on('blur',function(H){var J=this;if(!J.allowBlur())return;var I=H.data.getTarget();if(I.getName&&I.getName()!='iframe')return;if(J.visible&&!J._.activeChild&&!q){delete J._.returnFocus;J.hide();}},this);G.on('focus',function(){this._.focused=true;this.hideChild();this.allowBlur(true);},this);d.event.useCapture=false;this._.blurSet=1;}x.onEscape=h.bind(function(H){if(this.onEscape&&this.onEscape(H)===false)return false;},this);h.setTimeout(function(){if(D)E-=z.$.offsetWidth;var H=h.bind(function(){var I=z.getFirst();if(y.autoSize){var J=y.element.$;if(e.gecko||e.opera)J=J.parentNode;if(f)J=J.document.body;var K=J.scrollWidth;if(f&&e.quirks&&K>0)K+=(I.$.offsetWidth||0)-(I.$.clientWidth||0)+3;K+=4;I.setStyle('width',K+'px');y.element.addClass('cke_frameLoaded');var L=y.element.$.scrollHeight;if(f&&e.quirks&&L>0)L+=(I.$.offsetHeight||0)-(I.$.clientHeight||0)+3;I.setStyle('height',L+'px');x._.currentBlock.element.setStyle('display','none').removeStyle('display');}else I.removeStyle('height');var M=x.element,N=M.getWindow(),O=N.getScrollPosition(),P=N.getViewPaneSize(),Q={height:M.$.offsetHeight,width:M.$.offsetWidth};
if(D?E<0:E+Q.width>P.width+O.x)E+=Q.width*(D?1:-1);if(F+Q.height>P.height+O.y)F-=Q.height;if(f){var R=new k(z.$.offsetParent),S=R;if(S.getName()=='html')S=S.getDocument().getBody();if(S.getComputedStyle('direction')=='rtl')if(e.ie8Compat)E-=z.getDocument().getDocumentElement().$.scrollLeft*2;else E-=R.$.scrollWidth-R.$.clientWidth;}var T=z.getFirst(),U;if(U=T.getCustomData('activePanel'))U.onHide&&U.onHide.call(this,1);T.setCustomData('activePanel',this);z.setStyles({top:F+'px',left:E+'px'});z.setOpacity(1);},this);x.isLoaded?H():x.onLoad=H;h.setTimeout(function(){A.$.contentWindow.focus();this.allowBlur(true);},0,this);},e.air?200:0,this);this.visible=1;if(this.onShow)this.onShow.call(this);q=0;},hide:function(s){var u=this;if(u.visible&&(!u.onHide||u.onHide.call(u)!==true)){u.hideChild();e.gecko&&u._.iframe.getFrameDocument().$.activeElement.blur();u.element.setStyle('display','none');u.visible=0;u.element.getFirst().removeCustomData('activePanel');var t=s!==false&&u._.returnFocus;if(t){if(e.webkit&&t.type)t.getWindow().$.focus();t.focus();}}},allowBlur:function(s){var t=this._.panel;if(s!=undefined)t.allowBlur=s;return t.allowBlur;},showAsChild:function(s,t,u,v,w,x){if(this._.activeChild==s&&s._.panel._.offsetParentId==u.getId())return;this.hideChild();s.onHide=h.bind(function(){h.setTimeout(function(){if(!this._.focused)this.hide();},0,this);},this);this._.activeChild=s;this._.focused=false;s.showBlock(t,u,v,w,x);if(e.ie7Compat||e.ie8&&e.ie6Compat)setTimeout(function(){s.element.getChild(0).$.style.cssText+='';},100);},hideChild:function(){var s=this._.activeChild;if(s){delete s.onHide;delete s._.returnFocus;delete this._.activeChild;s.hide();}}}});d.on('instanceDestroyed',function(){var s=h.isEmpty(d.instances);for(var t in p){var u=p[t];if(s)u.destroy();else u.element.hide();}s&&(p={});});})();m.add('menu',{beforeInit:function(p){var q=p.config.menu_groups.split(','),r=p._.menuGroups={},s=p._.menuItems={};for(var t=0;t<q.length;t++)r[q[t]]=t+1;p.addMenuGroup=function(u,v){r[u]=v||100;};p.addMenuItem=function(u,v){if(r[v.group])s[u]=new d.menuItem(this,u,v);};p.addMenuItems=function(u){for(var v in u)this.addMenuItem(v,u[v]);};p.getMenuItem=function(u){return s[u];};p.removeMenuItem=function(u){delete s[u];};},requires:['floatpanel']});(function(){d.menu=h.createClass({$:function(q,r){var u=this;r=u._.definition=r||{};u.id=h.getNextId();u.editor=q;u.items=[];u._.listeners=[];u._.level=r.level||1;var s=h.extend({},r.panel,{css:q.skin.editor.css,level:u._.level-1,block:{}}),t=s.block.attributes=s.attributes||{};
!t.role&&(t.role='menu');u._.panelDefinition=s;},_:{onShow:function(){var y=this;var q=y.editor.getSelection();if(f)q&&q.lock();var r=q&&q.getStartElement(),s=y._.listeners,t=[];y.removeAll();for(var u=0;u<s.length;u++){var v=s[u](r,q);if(v)for(var w in v){var x=y.editor.getMenuItem(w);if(x&&(!x.command||y.editor.getCommand(x.command).state)){x.state=v[w];y.add(x);}}}},onClick:function(q){this.hide(false);if(q.onClick)q.onClick();else if(q.command)this.editor.execCommand(q.command);},onEscape:function(q){var r=this.parent;if(r){r._.panel.hideChild();var s=r._.panel._.panel._.currentBlock,t=s._.focusIndex;s._.markItem(t);}else if(q==27)this.hide();return false;},onHide:function(){if(f){var q=this.editor.getSelection();q&&q.unlock();}this.onHide&&this.onHide();},showSubMenu:function(q){var y=this;var r=y._.subMenu,s=y.items[q],t=s.getItems&&s.getItems();if(!t){y._.panel.hideChild();return;}var u=y._.panel.getBlock(y.id);u._.focusIndex=q;if(r)r.removeAll();else{r=y._.subMenu=new d.menu(y.editor,h.extend({},y._.definition,{level:y._.level+1},true));r.parent=y;r._.onClick=h.bind(y._.onClick,y);}for(var v in t){var w=y.editor.getMenuItem(v);if(w){w.state=t[v];r.add(w);}}var x=y._.panel.getBlock(y.id).element.getDocument().getById(y.id+String(q));r.show(x,2);}},proto:{add:function(q){if(!q.order)q.order=this.items.length;this.items.push(q);},removeAll:function(){this.items=[];},show:function(q,r,s,t){if(!this.parent){this._.onShow();if(!this.items.length)return;}r=r||(this.editor.lang.dir=='rtl'?2:1);var u=this.items,v=this.editor,w=this._.panel,x=this._.element;if(!w){w=this._.panel=new n.floatPanel(this.editor,d.document.getBody(),this._.panelDefinition,this._.level);w.onEscape=h.bind(function(I){if(this._.onEscape(I)===false)return false;},this);w.onHide=h.bind(function(){this._.onHide&&this._.onHide();},this);var y=w.addBlock(this.id,this._.panelDefinition.block);y.autoSize=true;var z=y.keys;z[40]='next';z[9]='next';z[38]='prev';z[2228224+9]='prev';z[v.lang.dir=='rtl'?37:39]=f?'mouseup':'click';z[32]=f?'mouseup':'click';f&&(z[13]='mouseup');x=this._.element=y.element;x.addClass(v.skinClass);var A=x.getDocument();A.getBody().setStyle('overflow','hidden');A.getElementsByTag('html').getItem(0).setStyle('overflow','hidden');this._.itemOverFn=h.addFunction(function(I){var J=this;clearTimeout(J._.showSubTimeout);J._.showSubTimeout=h.setTimeout(J._.showSubMenu,v.config.menu_subMenuDelay||400,J,[I]);},this);this._.itemOutFn=h.addFunction(function(I){clearTimeout(this._.showSubTimeout);
},this);this._.itemClickFn=h.addFunction(function(I){var K=this;var J=K.items[I];if(J.state==0){K.hide();return;}if(J.getItems)K._.showSubMenu(I);else K._.onClick(J);},this);}p(u);var B=v.container.getChild(1),C=B.hasClass('cke_mixed_dir_content')?' cke_mixed_dir_content':'',D=['<div class="cke_menu'+C+'" role="presentation">'],E=u.length,F=E&&u[0].group;for(var G=0;G<E;G++){var H=u[G];if(F!=H.group){D.push('<div class="cke_menuseparator" role="separator"></div>');F=H.group;}H.render(this,G,D);}D.push('</div>');x.setHtml(D.join(''));n.fire('ready',this);if(this.parent)this.parent._.panel.showAsChild(w,this.id,q,r,s,t);else w.showBlock(this.id,q,r,s,t);v.fire('menuShow',[w]);},addListener:function(q){this._.listeners.push(q);},hide:function(q){var r=this;r._.onHide&&r._.onHide();r._.panel&&r._.panel.hide(q);}}});function p(q){q.sort(function(r,s){if(r.group<s.group)return-1;else if(r.group>s.group)return 1;return r.order<s.order?-1:r.order>s.order?1:0;});};d.menuItem=h.createClass({$:function(q,r,s){var t=this;h.extend(t,s,{order:0,className:'cke_button_'+r});t.group=q._.menuGroups[t.group];t.editor=q;t.name=r;},proto:{render:function(q,r,s){var z=this;var t=q.id+String(r),u=typeof z.state=='undefined'?2:z.state,v=' cke_'+(u==1?'on':u==0?'disabled':'off'),w=z.label;if(z.className)v+=' '+z.className;var x=z.getItems;s.push('<span class="cke_menuitem'+(z.icon&&z.icon.indexOf('.png')==-1?' cke_noalphafix':'')+'">'+'<a id="',t,'" class="',v,'" href="javascript:void(\'',(z.label||'').replace("'",''),'\')" title="',z.label,'" tabindex="-1"_cke_focus=1 hidefocus="true" role="menuitem"'+(x?'aria-haspopup="true"':'')+(u==0?'aria-disabled="true"':'')+(u==1?'aria-pressed="true"':''));if(e.opera||e.gecko&&e.mac)s.push(' onkeypress="return false;"');if(e.gecko)s.push(' onblur="this.style.cssText = this.style.cssText;"');var y=(z.iconOffset||0)*-16;s.push(' onmouseover="CKEDITOR.tools.callFunction(',q._.itemOverFn,',',r,');" onmouseout="CKEDITOR.tools.callFunction(',q._.itemOutFn,',',r,');" '+(f?'onclick="return false;" onmouseup':'onclick')+'="CKEDITOR.tools.callFunction(',q._.itemClickFn,',',r,'); return false;"><span class="cke_icon_wrapper"><span class="cke_icon"'+(z.icon?' style="background-image:url('+d.getUrl(z.icon)+');background-position:0 '+y+'px;"':'')+'></span></span>'+'<span class="cke_label">');if(x)s.push('<span class="cke_menuarrow">','<span>&#',z.editor.lang.dir=='rtl'?'9668':'9658',';</span>','</span>');s.push(w,'</span></a></span>');}}});})();l.menu_groups='clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div';
(function(){var p;m.add('editingblock',{init:function(q){if(!q.config.editingBlock)return;q.on('themeSpace',function(r){if(r.data.space=='contents')r.data.html+='<br>';});q.on('themeLoaded',function(){q.fireOnce('editingBlockReady');});q.on('uiReady',function(){q.setMode(q.config.startupMode);});q.on('afterSetData',function(){if(!p){function r(){p=true;q.getMode().loadData(q.getData());p=false;};if(q.mode)r();else q.on('mode',function(){if(q.mode){r();q.removeListener('mode',arguments.callee);}});}});q.on('beforeGetData',function(){if(!p&&q.mode){p=true;q.setData(q.getMode().getData(),null,1);p=false;}});q.on('getSnapshot',function(r){if(q.mode)r.data=q.getMode().getSnapshotData();});q.on('loadSnapshot',function(r){if(q.mode)q.getMode().loadSnapshotData(r.data);});q.on('mode',function(r){r.removeListener();e.webkit&&q.container.on('focus',function(){q.focus();});if(q.config.startupFocus)q.focus();setTimeout(function(){q.fireOnce('instanceReady');d.fire('instanceReady',null,q);},0);});q.on('destroy',function(){var r=this;if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));});}});d.editor.prototype.mode='';d.editor.prototype.addMode=function(q,r){r.name=q;(this._.modes||(this._.modes={}))[q]=r;};d.editor.prototype.setMode=function(q){this.fire('beforeSetMode',{newMode:q});var r,s=this.getThemeSpace('contents'),t=this.checkDirty();if(this.mode){if(q==this.mode)return;this.fire('beforeModeUnload');var u=this.getMode();r=u.getData();u.unload(s);this.mode='';}s.setHtml('');var v=this.getMode(q);if(!v)throw '[CKEDITOR.editor.setMode] Unknown mode "'+q+'".';if(!t)this.on('mode',function(){this.resetDirty();this.removeListener('mode',arguments.callee);});v.load(s,typeof r!='string'?this.getData():r);};d.editor.prototype.getMode=function(q){return this._.modes&&this._.modes[q||this.mode];};d.editor.prototype.focus=function(){this.forceNextSelectionCheck();var q=this.getMode();if(q)q.focus();};})();l.startupMode='wysiwyg';l.editingBlock=true;(function(){function p(){var E=this;try{var B=E.getSelection();if(!B||!B.document.getWindow().$)return;var C=B.getStartElement(),D=new g.elementPath(C);if(!D.compare(E._.selectionPreviousPath)){E._.selectionPreviousPath=D;E.fire('selectionChange',{selection:B,path:D,element:C});}}catch(F){}};var q,r;function s(){r=true;if(q)return;t.call(this);q=h.setTimeout(t,200,this);};function t(){q=null;if(r){h.setTimeout(p,0,this);r=false;}};function u(B){function C(G){return G&&G.type==1&&G.getName() in i.$removeEmpty;};function D(G){var H=B.document.getBody();
return!G.is('body')&&H.getChildCount()==1;};var E=B.startContainer,F=B.startOffset;if(E.type==3)return false;return!h.trim(E.getHtml())?C(E)||D(E):C(E.getChild(F-1))||C(E.getChild(F));};var v={modes:{wysiwyg:1,source:1},readOnly:f||e.webkit,exec:function(B){switch(B.mode){case 'wysiwyg':B.document.$.execCommand('SelectAll',false,null);B.forceNextSelectionCheck();B.selectionChange();break;case 'source':var C=B.textarea.$;if(f)C.createTextRange().execCommand('SelectAll');else{C.selectionStart=0;C.selectionEnd=C.value.length;}C.focus();}},canUndo:false};function w(B){z(B);var C=B.createText('​');B.setCustomData('cke-fillingChar',C);return C;};function x(B){return B&&B.getCustomData('cke-fillingChar');};function y(B){var C=B&&x(B);if(C)if(C.getCustomData('ready'))z(B);else C.setCustomData('ready',1);};function z(B){var C=B&&B.removeCustomData('cke-fillingChar');if(C){C.setText(C.getText().replace(/\u200B/g,''));C=0;}};m.add('selection',{init:function(B){if(e.webkit){B.on('selectionChange',function(){y(B.document);});B.on('beforeSetMode',function(){z(B.document);});B.on('key',function(G){switch(G.data.keyCode){case 13:case 2228224+13:case 37:case 39:case 8:z(B.document);}},null,null,10);var C,D;function E(){var G=B.document,H=x(G);if(H){var I=G.$.defaultView.getSelection();if(I.type=='Caret'&&I.anchorNode==H.$)D=1;C=H.getText();H.setText(C.replace(/\u200B/g,''));}};function F(){var G=B.document,H=x(G);if(H){H.setText(C);if(D){G.$.defaultView.getSelection().setPosition(H.$,H.getLength());D=0;}}};B.on('beforeUndoImage',E);B.on('afterUndoImage',F);B.on('beforeGetData',E,null,null,0);B.on('getData',F);}B.on('contentDom',function(){var G=B.document,H=G.getBody(),I=G.getDocumentElement();if(f){var J,K,L=1;H.on('focusin',function(P){if(P.data.$.srcElement.nodeName!='BODY')return;if(J){if(L){try{J.select();}catch(R){}var Q=G.getCustomData('cke_locked_selection');if(Q){Q.unlock();Q.lock();}}J=null;}});H.on('focus',function(){K=1;O();});H.on('beforedeactivate',function(P){if(P.data.$.toElement)return;K=0;L=1;});if(f&&e.version<8)B.on('blur',function(P){try{B.document&&B.document.$.selection.empty();}catch(Q){}});I.on('mousedown',function(){L=0;});I.on('mouseup',function(){L=1;});if(f&&(e.ie7Compat||e.version<8||e.quirks))I.on('click',function(P){if(P.data.getTarget().getName()=='html')B.getSelection().getRanges()[0].select();});var M;H.on('mousedown',function(P){if(P.data.$.button==2){var Q=B.document.$.selection;if(Q.type=='None')M=B.window.getScrollPosition();}N();});H.on('mouseup',function(P){if(P.data.$.button==2&&M){B.document.$.documentElement.scrollLeft=M.x;
B.document.$.documentElement.scrollTop=M.y;}M=null;K=1;setTimeout(function(){O(true);},0);});H.on('keydown',N);H.on('keyup',function(){K=1;O();});G.on('selectionchange',O);function N(){K=0;};function O(P){if(K){var Q=B.document,R=B.getSelection(),S=R&&R.getNative();if(P&&S&&S.type=='None')if(!Q.$.queryCommandEnabled('InsertImage')){h.setTimeout(O,50,this,true);return;}var T;if(S&&S.type&&S.type!='Control'&&(T=S.createRange())&&(T=T.parentElement())&&(T=T.nodeName)&&T.toLowerCase() in {input:1,textarea:1})return;J=S&&R.getRanges()[0];s.call(B);}};}else{G.on('mouseup',s,B);G.on('keyup',s,B);}});B.on('contentDomUnload',B.forceNextSelectionCheck,B);B.addCommand('selectAll',v);B.ui.addButton('SelectAll',{label:B.lang.selectAll,command:'selectAll'});B.selectionChange=s;e.ie9Compat&&B.on('destroy',function(){var G=B.getSelection();G&&G.getNative().clear();},null,null,9);}});d.editor.prototype.getSelection=function(){return this.document&&this.document.getSelection();};d.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath;};j.prototype.getSelection=function(){var B=new g.selection(this);return!B||B.isInvalid?null:B;};d.SELECTION_NONE=1;d.SELECTION_TEXT=2;d.SELECTION_ELEMENT=3;g.selection=function(B){var E=this;var C=B.getCustomData('cke_locked_selection');if(C)return C;E.document=B;E.isLocked=0;E._={cache:{}};if(f){var D=E.getNative().createRange();if(!D||D.item&&D.item(0).ownerDocument!=E.document.$||D.parentElement&&D.parentElement().ownerDocument!=E.document.$)E.isInvalid=true;}return E;};var A={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};g.selection.prototype={getNative:f?function(){return this._.cache.nativeSel||(this._.cache.nativeSel=this.document.$.selection);}:function(){return this._.cache.nativeSel||(this._.cache.nativeSel=this.document.getWindow().$.getSelection());},getType:f?function(){var B=this._.cache;if(B.type)return B.type;var C=1;try{var D=this.getNative(),E=D.type;if(E=='Text')C=2;if(E=='Control')C=3;if(D.createRange().parentElement)C=2;}catch(F){}return B.type=C;}:function(){var B=this._.cache;if(B.type)return B.type;var C=2,D=this.getNative();if(!D)C=1;else if(D.rangeCount==1){var E=D.getRangeAt(0),F=E.startContainer;if(F==E.endContainer&&F.nodeType==1&&E.endOffset-E.startOffset==1&&A[F.childNodes[E.startOffset].nodeName.toLowerCase()])C=3;}return B.type=C;},getRanges:(function(){var B=f?(function(){function C(E){return new g.node(E).getIndex();
};var D=function(E,F){E=E.duplicate();E.collapse(F);var G=E.parentElement(),H=G.ownerDocument;if(!G.hasChildNodes())return{container:G,offset:0};var I=G.children,J,K,L=E.duplicate(),M=0,N=I.length-1,O=-1,P,Q;while(M<=N){O=Math.floor((M+N)/2);J=I[O];L.moveToElementText(J);P=L.compareEndPoints('StartToStart',E);if(P>0)N=O-1;else if(P<0)M=O+1;else if(e.ie9Compat&&J.tagName=='BR'){var R='cke_range_marker';E.execCommand('CreateBookmark',false,R);J=H.getElementsByName(R)[0];var S=C(J);G.removeChild(J);return{container:G,offset:S};}else return{container:G,offset:C(J)};}if(O==-1||O==I.length-1&&P<0){L.moveToElementText(G);L.setEndPoint('StartToStart',E);Q=L.text.replace(/(\r\n|\r)/g,'\n').length;I=G.childNodes;if(!Q){J=I[I.length-1];if(J.nodeType==1)return{container:G,offset:I.length};else return{container:J,offset:J.nodeValue.length};}var T=I.length;while(Q>0)Q-=I[--T].nodeValue.length;return{container:I[T],offset:-Q};}else{L.collapse(P>0?true:false);L.setEndPoint(P>0?'StartToStart':'EndToStart',E);Q=L.text.replace(/(\r\n|\r)/g,'\n').length;if(!Q)return{container:G,offset:C(J)+(P>0?0:1)};while(Q>0)try{K=J[P>0?'previousSibling':'nextSibling'];Q-=K.nodeValue.length;J=K;}catch(U){return{container:G,offset:C(J)};}return{container:J,offset:P>0?-Q:J.nodeValue.length+Q};}};return function(){var O=this;var E=O.getNative(),F=E&&E.createRange(),G=O.getType(),H;if(!E)return[];if(G==2){H=new g.range(O.document);var I=D(F,true);H.setStart(new g.node(I.container),I.offset);I=D(F);H.setEnd(new g.node(I.container),I.offset);if(H.endContainer.getPosition(H.startContainer)&4&&H.endOffset<=H.startContainer.getIndex())H.collapse();return[H];}else if(G==3){var J=[];for(var K=0;K<F.length;K++){var L=F.item(K),M=L.parentNode,N=0;H=new g.range(O.document);for(;N<M.childNodes.length&&M.childNodes[N]!=L;N++){}H.setStart(new g.node(M),N);H.setEnd(new g.node(M),N+1);J.push(H);}return J;}return[];};})():function(){var C=[],D,E=this.document,F=this.getNative();if(!F)return C;if(!F.rangeCount){D=new g.range(E);D.moveToElementEditStart(E.getBody());C.push(D);}for(var G=0;G<F.rangeCount;G++){var H=F.getRangeAt(G);D=new g.range(E);D.setStart(new g.node(H.startContainer),H.startOffset);D.setEnd(new g.node(H.endContainer),H.endOffset);C.push(D);}return C;};return function(C){var D=this._.cache;if(D.ranges&&!C)return D.ranges;else if(!D.ranges)D.ranges=new g.rangeList(B.call(this));if(C){var E=D.ranges;for(var F=0;F<E.length;F++){var G=E[F],H=G.getCommonAncestor();if(H.isReadOnly())E.splice(F,1);if(G.collapsed)continue;
var I=G.startContainer,J=G.endContainer,K=G.startOffset,L=G.endOffset,M=G.clone(),N;if(N=I.isReadOnly())G.setStartAfter(N);if(I&&I.type==3)if(K>=I.getLength())M.setStartAfter(I);else M.setStartBefore(I);if(J&&J.type==3)if(!L)M.setEndBefore(J);else M.setEndAfter(J);var O=new g.walker(M);O.evaluator=function(P){if(P.type==1&&P.isReadOnly()){var Q=G.clone();G.setEndBefore(P);if(G.collapsed)E.splice(F--,1);if(!(P.getPosition(M.endContainer)&16)){Q.setStartAfter(P);if(!Q.collapsed)E.splice(F+1,0,Q);}return true;}return false;};O.next();}}return D.ranges;};})(),getStartElement:function(){var I=this;var B=I._.cache;if(B.startElement!==undefined)return B.startElement;var C,D=I.getNative();switch(I.getType()){case 3:return I.getSelectedElement();case 2:var E=I.getRanges()[0];if(E){if(!E.collapsed){E.optimize();while(1){var F=E.startContainer,G=E.startOffset;if(G==(F.getChildCount?F.getChildCount():F.getLength())&&!F.isBlockBoundary())E.setStartAfter(F);else break;}C=E.startContainer;if(C.type!=1)return C.getParent();C=C.getChild(E.startOffset);if(!C||C.type!=1)C=E.startContainer;else{var H=C.getFirst();while(H&&H.type==1){C=H;H=H.getFirst();}}}else{C=E.startContainer;if(C.type!=1)C=C.getParent();}C=C.$;}}return B.startElement=C?new k(C):null;},getSelectedElement:function(){var B=this._.cache;if(B.selectedElement!==undefined)return B.selectedElement;var C=this,D=h.tryThese(function(){return C.getNative().createRange().item(0);},function(){var E=C.getRanges()[0],F,G;for(var H=2;H&&!((F=E.getEnclosedNode())&&F.type==1&&A[F.getName()]&&(G=F));H--)E.shrink(1);return G.$;});return B.selectedElement=D?new k(D):null;},getSelectedText:function(){var B=this._.cache;if(B.selectedText!==undefined)return B.selectedText;var C='',D=this.getNative();if(this.getType()==2)C=f?D.createRange().text:D.toString();return B.selectedText=C;},lock:function(){var B=this;B.getRanges();B.getStartElement();B.getSelectedElement();B.getSelectedText();B._.cache.nativeSel={};B.isLocked=1;B.document.setCustomData('cke_locked_selection',B);},unlock:function(B){var G=this;var C=G.document,D=C.getCustomData('cke_locked_selection');if(D){C.setCustomData('cke_locked_selection',null);if(B){var E=D.getSelectedElement(),F=!E&&D.getRanges();G.isLocked=0;G.reset();C.getBody().focus();if(E)G.selectElement(E);else G.selectRanges(F);}}if(!D||!B){G.isLocked=0;G.reset();}},reset:function(){this._.cache={};},selectElement:function(B){var D=this;if(D.isLocked){var C=new g.range(D.document);C.setStartBefore(B);C.setEndAfter(B);
D._.cache.selectedElement=B;D._.cache.startElement=B;D._.cache.ranges=new g.rangeList(C);D._.cache.type=3;return;}C=new g.range(B.getDocument());C.setStartBefore(B);C.setEndAfter(B);C.select();D.document.fire('selectionchange');D.reset();},selectRanges:function(B){var P=this;if(P.isLocked){P._.cache.selectedElement=null;P._.cache.startElement=B[0]&&B[0].getTouchedStartNode();P._.cache.ranges=new g.rangeList(B);P._.cache.type=2;return;}if(f){if(B.length>1){var C=B[B.length-1];B[0].setEnd(C.endContainer,C.endOffset);B.length=1;}if(B[0])B[0].select();P.reset();}else{var D=P.getNative();if(!D)return;if(B.length){D.removeAllRanges();e.webkit&&z(P.document);}for(var E=0;E<B.length;E++){if(E<B.length-1){var F=B[E],G=B[E+1],H=F.clone();H.setStart(F.endContainer,F.endOffset);H.setEnd(G.startContainer,G.startOffset);if(!H.collapsed){H.shrink(1,true);var I=H.getCommonAncestor(),J=H.getEnclosedNode();if(I.isReadOnly()||J&&J.isReadOnly()){G.setStart(F.startContainer,F.startOffset);B.splice(E--,1);continue;}}}var K=B[E],L=P.document.$.createRange(),M=K.startContainer;if(K.collapsed&&(e.opera||e.gecko&&e.version<10900)&&M.type==1&&!M.getChildCount())M.appendText('');if(K.collapsed&&e.webkit&&u(K)){var N=w(P.document);K.insertNode(N);var O=N.getNext();if(O&&!N.getPrevious()&&O.type==1&&O.getName()=='br'){z(P.document);K.moveToPosition(O,3);}else K.moveToPosition(N,4);}L.setStart(K.startContainer.$,K.startOffset);try{L.setEnd(K.endContainer.$,K.endOffset);}catch(Q){if(Q.toString().indexOf('NS_ERROR_ILLEGAL_VALUE')>=0){K.collapse(1);L.setEnd(K.endContainer.$,K.endOffset);}else throw Q;}D.addRange(L);}P.reset();}},createBookmarks:function(B){return this.getRanges().createBookmarks(B);},createBookmarks2:function(B){return this.getRanges().createBookmarks2(B);},selectBookmarks:function(B){var C=[];for(var D=0;D<B.length;D++){var E=new g.range(this.document);E.moveToBookmark(B[D]);C.push(E);}this.selectRanges(C);return this;},getCommonAncestor:function(){var B=this.getRanges(),C=B[0].startContainer,D=B[B.length-1].endContainer;return C.getCommonAncestor(D);},scrollIntoView:function(){var B=this.getStartElement();B.scrollIntoView();}};})();(function(){var p=g.walker.whitespaces(true),q=/\ufeff|\u00a0/,r={table:1,tbody:1,tr:1};g.range.prototype.select=f?function(s){var D=this;var t=D.collapsed,u,v,w,x=D.getEnclosedNode();if(x)try{w=D.document.$.body.createControlRange();w.addElement(x.$);w.select();return;}catch(E){}if(D.startContainer.type==1&&D.startContainer.getName() in r||D.endContainer.type==1&&D.endContainer.getName() in r)D.shrink(1,true);
var y=D.createBookmark(),z=y.startNode,A;if(!t)A=y.endNode;w=D.document.$.body.createTextRange();w.moveToElementText(z.$);w.moveStart('character',1);if(A){var B=D.document.$.body.createTextRange();B.moveToElementText(A.$);w.setEndPoint('EndToEnd',B);w.moveEnd('character',-1);}else{var C=z.getNext(p);u=!(C&&C.getText&&C.getText().match(q))&&(s||!z.hasPrevious()||z.getPrevious().is&&z.getPrevious().is('br'));v=D.document.createElement('span');v.setHtml('&#65279;');v.insertBefore(z);if(u)D.document.createText('\ufeff').insertBefore(z);}D.setStartBefore(z);z.remove();if(t){if(u){w.moveStart('character',-1);w.select();D.document.$.selection.clear();}else w.select();D.moveToPosition(v,3);v.remove();}else{D.setEndBefore(A);A.remove();w.select();}D.document.fire('selectionchange');}:function(){this.document.getSelection().selectRanges([this]);};})();(function(){var p=d.htmlParser.cssStyle,q=h.cssLength,r=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i;function s(u,v){var w=r.exec(u),x=r.exec(v);if(w){if(!w[2]&&x[2]=='px')return x[1];if(w[2]=='px'&&!x[2])return x[1]+'px';}return v;};var t={elements:{$:function(u){var v=u.attributes,w=v&&v['data-cke-realelement'],x=w&&new d.htmlParser.fragment.fromHtml(decodeURIComponent(w)),y=x&&x.children[0];if(y&&u.attributes['data-cke-resizable']){var z=new p(u).rules,A=y.attributes,B=z.width,C=z.height;B&&(A.width=s(A.width,B));C&&(A.height=s(A.height,C));}return y;}}};m.add('fakeobjects',{requires:['htmlwriter'],afterInit:function(u){var v=u.dataProcessor,w=v&&v.htmlFilter;if(w)w.addRules(t);}});d.editor.prototype.createFakeElement=function(u,v,w,x){var y=this.lang.fakeobjects,z=y[w]||y.unknown,A={'class':v,src:d.getUrl('images/spacer.gif'),'data-cke-realelement':encodeURIComponent(u.getOuterHtml()),'data-cke-real-node-type':u.type,alt:z,title:z,align:u.getAttribute('align')||''};if(w)A['data-cke-real-element-type']=w;if(x){A['data-cke-resizable']=x;var B=new p(),C=u.getAttribute('width'),D=u.getAttribute('height');C&&(B.rules.width=q(C));D&&(B.rules.height=q(D));B.populate(A);}return this.document.createElement('img',{attributes:A});};d.editor.prototype.createFakeParserElement=function(u,v,w,x){var y=this.lang.fakeobjects,z=y[w]||y.unknown,A,B=new d.htmlParser.basicWriter();u.writeHtml(B);A=B.getHtml();var C={'class':v,src:d.getUrl('images/spacer.gif'),'data-cke-realelement':encodeURIComponent(A),'data-cke-real-node-type':u.type,alt:z,title:z,align:u.attributes.align||''};if(w)C['data-cke-real-element-type']=w;if(x){C['data-cke-resizable']=x;
var D=u.attributes,E=new p(),F=D.width,G=D.height;F!=undefined&&(E.rules.width=q(F));G!=undefined&&(E.rules.height=q(G));E.populate(C);}return new d.htmlParser.element('img',C);};d.editor.prototype.restoreRealElement=function(u){if(u.data('cke-real-node-type')!=1)return null;var v=k.createFromHtml(decodeURIComponent(u.data('cke-realelement')),this.document);if(u.data('cke-resizable')){var w=u.getStyle('width'),x=u.getStyle('height');w&&v.setAttribute('width',s(v.getAttribute('width'),w));x&&v.setAttribute('height',s(v.getAttribute('height'),x));}return v;};})();m.add('richcombo',{requires:['floatpanel','listblock','button'],beforeInit:function(p){p.ui.addHandler('richcombo',n.richCombo.handler);}});d.UI_RICHCOMBO='richcombo';n.richCombo=h.createClass({$:function(p){var r=this;h.extend(r,p,{title:p.label,modes:{wysiwyg:1}});var q=r.panel||{};delete r.panel;r.id=h.getNextNumber();r.document=q&&q.parent&&q.parent.getDocument()||d.document;q.className=(q.className||'')+' cke_rcombopanel';q.block={multiSelect:q.multiSelect,attributes:q.attributes};r._={panelDefinition:q,items:{},state:2};},statics:{handler:{create:function(p){return new n.richCombo(p);}}},proto:{renderHtml:function(p){var q=[];this.render(p,q);return q.join('');},render:function(p,q){var r=e,s='cke_'+this.id,t=h.addFunction(function(y){var B=this;var z=B._;if(z.state==0)return;B.createPanel(p);if(z.on){z.panel.hide();return;}B.commit();var A=B.getValue();if(A)z.list.mark(A);else z.list.unmarkAll();z.panel.showBlock(B.id,new k(y),4);},this),u={id:s,combo:this,focus:function(){var y=d.document.getById(s).getChild(1);y.focus();},clickFn:t};function v(){var z=this;var y=z.modes[p.mode]?2:0;z.setState(p.readOnly&&!z.readOnly?0:y);z.setValue('');};p.on('mode',v,this);!this.readOnly&&p.on('readOnly',v,this);var w=h.addFunction(function(y,z){y=new g.event(y);var A=y.getKeystroke();switch(A){case 13:case 32:case 40:h.callFunction(t,z);break;default:u.onkey(u,A);}y.preventDefault();}),x=h.addFunction(function(){u.onfocus&&u.onfocus();});u.keyDownFn=w;q.push('<span class="cke_rcombo" role="presentation">','<span id=',s);if(this.className)q.push(' class="',this.className,' cke_off"');q.push(' role="presentation">','<span id="'+s+'_label" class=cke_label>',this.label,'</span>','<a hidefocus=true title="',this.title,'" tabindex="-1"',r.gecko&&r.version>=10900&&!r.hc?'':" href=\"javascript:void('"+this.label+"')\"",' role="button" aria-labelledby="',s,'_label" aria-describedby="',s,'_text" aria-haspopup="true"');
if(e.opera||e.gecko&&e.mac)q.push(' onkeypress="return false;"');if(e.gecko)q.push(' onblur="this.style.cssText = this.style.cssText;"');q.push(' onkeydown="CKEDITOR.tools.callFunction( ',w,', event, this );" onfocus="return CKEDITOR.tools.callFunction(',x,', event);" '+(f?'onclick="return false;" onmouseup':'onclick')+'="CKEDITOR.tools.callFunction(',t,', this); return false;"><span><span id="'+s+'_text" class="cke_text cke_inline_label">'+this.label+'</span>'+'</span>'+'<span class=cke_openbutton><span class=cke_icon>'+(e.hc?'&#9660;':e.air?'&nbsp;':'')+'</span></span>'+'</a>'+'</span>'+'</span>');if(this.onRender)this.onRender();return u;},createPanel:function(p){if(this._.panel)return;var q=this._.panelDefinition,r=this._.panelDefinition.block,s=q.parent||d.document.getBody(),t=new n.floatPanel(p,s,q),u=t.addListBlock(this.id,r),v=this;t.onShow=function(){if(v.className)this.element.getFirst().addClass(v.className+'_panel');v.setState(1);u.focus(!v.multiSelect&&v.getValue());v._.on=1;if(v.onOpen)v.onOpen();};t.onHide=function(w){if(v.className)this.element.getFirst().removeClass(v.className+'_panel');v.setState(v.modes&&v.modes[p.mode]?2:0);v._.on=0;if(!w&&v.onClose)v.onClose();};t.onEscape=function(){t.hide();};u.onClick=function(w,x){v.document.getWindow().focus();if(v.onClick)v.onClick.call(v,w,x);if(x)v.setValue(w,v._.items[w]);else v.setValue('');t.hide(false);};this._.panel=t;this._.list=u;t.getBlock(this.id).onHide=function(){v._.on=0;v.setState(2);};if(this.init)this.init();},setValue:function(p,q){var s=this;s._.value=p;var r=s.document.getById('cke_'+s.id+'_text');if(r){if(!(p||q)){q=s.label;r.addClass('cke_inline_label');}else r.removeClass('cke_inline_label');r.setHtml(typeof q!='undefined'?q:p);}},getValue:function(){return this._.value||'';},unmarkAll:function(){this._.list.unmarkAll();},mark:function(p){this._.list.mark(p);},hideItem:function(p){this._.list.hideItem(p);},hideGroup:function(p){this._.list.hideGroup(p);},showAll:function(){this._.list.showAll();},add:function(p,q,r){this._.items[p]=r||p;this._.list.add(p,q,r);},startGroup:function(p){this._.list.startGroup(p);},commit:function(){var p=this;if(!p._.committed){p._.list.commit();p._.committed=1;n.fire('ready',p);}p._.committed=1;},setState:function(p){var q=this;if(q._.state==p)return;q.document.getById('cke_'+q.id).setState(p);q._.state=p;}}});n.prototype.addRichCombo=function(p,q){this.add(p,'richcombo',q);};m.add('htmlwriter');d.htmlWriter=h.createClass({base:d.htmlParser.basicWriter,$:function(){var r=this;
r.base();r.indentationChars='\t';r.selfClosingEnd=' />';r.lineBreakChars='\n';r.forceSimpleAmpersand=0;r.sortAttributes=1;r._.indent=0;r._.indentation='';r._.inPre=0;r._.rules={};var p=i;for(var q in h.extend({},p.$nonBodyContent,p.$block,p.$listItem,p.$tableContent))r.setRules(q,{indent:1,breakBeforeOpen:1,breakAfterOpen:1,breakBeforeClose:!p[q]['#'],breakAfterClose:1});r.setRules('br',{breakAfterOpen:1});r.setRules('title',{indent:0,breakAfterOpen:0});r.setRules('style',{indent:0,breakBeforeClose:1});r.setRules('pre',{indent:0});},proto:{openTag:function(p,q){var s=this;var r=s._.rules[p];if(s._.indent)s.indentation();else if(r&&r.breakBeforeOpen){s.lineBreak();s.indentation();}s._.output.push('<',p);},openTagClose:function(p,q){var s=this;var r=s._.rules[p];if(q)s._.output.push(s.selfClosingEnd);else{s._.output.push('>');if(r&&r.indent)s._.indentation+=s.indentationChars;}if(r&&r.breakAfterOpen)s.lineBreak();p=='pre'&&(s._.inPre=1);},attribute:function(p,q){if(typeof q=='string'){this.forceSimpleAmpersand&&(q=q.replace(/&amp;/g,'&'));q=h.htmlEncodeAttr(q);}this._.output.push(' ',p,'="',q,'"');},closeTag:function(p){var r=this;var q=r._.rules[p];if(q&&q.indent)r._.indentation=r._.indentation.substr(r.indentationChars.length);if(r._.indent)r.indentation();else if(q&&q.breakBeforeClose){r.lineBreak();r.indentation();}r._.output.push('</',p,'>');p=='pre'&&(r._.inPre=0);if(q&&q.breakAfterClose)r.lineBreak();},text:function(p){var q=this;if(q._.indent){q.indentation();!q._.inPre&&(p=h.ltrim(p));}q._.output.push(p);},comment:function(p){if(this._.indent)this.indentation();this._.output.push('<!--',p,'-->');},lineBreak:function(){var p=this;if(!p._.inPre&&p._.output.length>0)p._.output.push(p.lineBreakChars);p._.indent=1;},indentation:function(){var p=this;if(!p._.inPre)p._.output.push(p._.indentation);p._.indent=0;},setRules:function(p,q){var r=this._.rules[p];if(r)h.extend(r,q,true);else this._.rules[p]=q;}}});m.add('menubutton',{requires:['button','menu'],beforeInit:function(p){p.ui.addHandler('menubutton',n.menuButton.handler);}});d.UI_MENUBUTTON='menubutton';(function(){var p=function(q){var r=this._;if(r.state===0)return;r.previousState=r.state;var s=r.menu;if(!s){s=r.menu=new d.menu(q,{panel:{className:q.skinClass+' cke_contextmenu',attributes:{'aria-label':q.lang.common.options}}});s.onHide=h.bind(function(){this.setState(this.modes&&this.modes[q.mode]?r.previousState:0);},this);if(this.onMenu)s.addListener(this.onMenu);}if(r.on){s.hide();return;}this.setState(1);
s.show(d.document.getById(this._.id),4);};n.menuButton=h.createClass({base:n.button,$:function(q){var r=q.panel;delete q.panel;this.base(q);this.hasArrow=true;this.click=p;},statics:{handler:{create:function(q){return new n.menuButton(q);}}}});})();m.add('dialogui');(function(){var p=function(x){var A=this;A._||(A._={});A._['default']=A._.initValue=x['default']||'';A._.required=x.required||false;var y=[A._];for(var z=1;z<arguments.length;z++)y.push(arguments[z]);y.push(true);h.extend.apply(h,y);return A._;},q={build:function(x,y,z){return new n.dialog.textInput(x,y,z);}},r={build:function(x,y,z){return new n.dialog[y.type](x,y,z);}},s={build:function(x,y,z){var A=y.children,B,C=[],D=[];for(var E=0;E<A.length&&(B=A[E]);E++){var F=[];C.push(F);D.push(d.dialog._.uiElementBuilders[B.type].build(x,B,F));}return new n.dialog[y.type](x,D,C,z,y);}},t={isChanged:function(){return this.getValue()!=this.getInitValue();},reset:function(x){this.setValue(this.getInitValue(),x);},setInitValue:function(){this._.initValue=this.getValue();},resetInitValue:function(){this._.initValue=this._['default'];},getInitValue:function(){return this._.initValue;}},u=h.extend({},n.dialog.uiElement.prototype.eventProcessors,{onChange:function(x,y){if(!this._.domOnChangeRegistered){x.on('load',function(){this.getInputElement().on('change',function(){if(!x.parts.dialog.isVisible())return;this.fire('change',{value:this.getValue()});},this);},this);this._.domOnChangeRegistered=true;}this.on('change',y);}},true),v=/^on([A-Z]\w+)/,w=function(x){for(var y in x){if(v.test(y)||y=='title'||y=='type')delete x[y];}return x;};h.extend(n.dialog,{labeledElement:function(x,y,z,A){if(arguments.length<4)return;var B=p.call(this,y);B.labelId=h.getNextId()+'_label';var C=this._.children=[],D=function(){var E=[],F=y.required?' cke_required':'';if(y.labelLayout!='horizontal')E.push('<label class="cke_dialog_ui_labeled_label'+F+'" ',' id="'+B.labelId+'"',' for="'+B.inputId+'"',(y.labelStyle?' style="'+y.labelStyle+'"':'')+'>',y.label,'</label>','<div class="cke_dialog_ui_labeled_content"'+(y.controlStyle?' style="'+y.controlStyle+'"':'')+' role="presentation">',A.call(this,x,y),'</div>');else{var G={type:'hbox',widths:y.widths,padding:0,children:[{type:'html',html:'<label class="cke_dialog_ui_labeled_label'+F+'"'+' id="'+B.labelId+'"'+' for="'+B.inputId+'"'+(y.labelStyle?' style="'+y.labelStyle+'"':'')+'>'+h.htmlEncode(y.label)+'</span>'},{type:'html',html:'<span class="cke_dialog_ui_labeled_content"'+(y.controlStyle?' style="'+y.controlStyle+'"':'')+'>'+A.call(this,x,y)+'</span>'}]};
d.dialog._.uiElementBuilders.hbox.build(x,G,E);}return E.join('');};n.dialog.uiElement.call(this,x,y,z,'div',null,{role:'presentation'},D);},textInput:function(x,y,z){if(arguments.length<3)return;p.call(this,y);var A=this._.inputId=h.getNextId()+'_textInput',B={'class':'cke_dialog_ui_input_'+y.type,id:A,type:'text'},C;if(y.validate)this.validate=y.validate;if(y.maxLength)B.maxlength=y.maxLength;if(y.size)B.size=y.size;if(y.inputStyle)B.style=y.inputStyle;var D=this,E=false;x.on('load',function(){D.getInputElement().on('keydown',function(G){if(G.data.getKeystroke()==13)E=true;});D.getInputElement().on('keyup',function(G){if(G.data.getKeystroke()==13&&E){x.getButton('ok')&&setTimeout(function(){x.getButton('ok').click();},0);E=false;}},null,null,1000);});var F=function(){var G=['<div class="cke_dialog_ui_input_',y.type,'" role="presentation"'];if(y.width)G.push('style="width:'+y.width+'" ');G.push('><input ');B['aria-labelledby']=this._.labelId;this._.required&&(B['aria-required']=this._.required);for(var H in B)G.push(H+'="'+B[H]+'" ');G.push(' /></div>');return G.join('');};n.dialog.labeledElement.call(this,x,y,z,F);},textarea:function(x,y,z){if(arguments.length<3)return;p.call(this,y);var A=this,B=this._.inputId=h.getNextId()+'_textarea',C={};if(y.validate)this.validate=y.validate;C.rows=y.rows||5;C.cols=y.cols||20;if(typeof y.inputStyle!='undefined')C.style=y.inputStyle;var D=function(){C['aria-labelledby']=this._.labelId;this._.required&&(C['aria-required']=this._.required);var E=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea class="cke_dialog_ui_input_textarea" id="',B,'" '];for(var F in C)E.push(F+'="'+h.htmlEncode(C[F])+'" ');E.push('>',h.htmlEncode(A._['default']),'</textarea></div>');return E.join('');};n.dialog.labeledElement.call(this,x,y,z,D);},checkbox:function(x,y,z){if(arguments.length<3)return;var A=p.call(this,y,{'default':!!y['default']});if(y.validate)this.validate=y.validate;var B=function(){var C=h.extend({},y,{id:y.id?y.id+'_checkbox':h.getNextId()+'_checkbox'},true),D=[],E=h.getNextId()+'_label',F={'class':'cke_dialog_ui_checkbox_input',type:'checkbox','aria-labelledby':E};w(C);if(y['default'])F.checked='checked';if(typeof C.inputStyle!='undefined')C.style=C.inputStyle;A.checkbox=new n.dialog.uiElement(x,C,D,'input',null,F);D.push(' <label id="',E,'" for="',F.id,'"'+(y.labelStyle?' style="'+y.labelStyle+'"':'')+'>',h.htmlEncode(y.label),'</label>');return D.join('');};n.dialog.uiElement.call(this,x,y,z,'span',null,null,B);
},radio:function(x,y,z){if(arguments.length<3)return;p.call(this,y);if(!this._['default'])this._['default']=this._.initValue=y.items[0][1];if(y.validate)this.validate=y.valdiate;var A=[],B=this,C=function(){var D=[],E=[],F={'class':'cke_dialog_ui_radio_item','aria-labelledby':this._.labelId},G=y.id?y.id+'_radio':h.getNextId()+'_radio';for(var H=0;H<y.items.length;H++){var I=y.items[H],J=I[2]!==undefined?I[2]:I[0],K=I[1]!==undefined?I[1]:I[0],L=h.getNextId()+'_radio_input',M=L+'_label',N=h.extend({},y,{id:L,title:null,type:null},true),O=h.extend({},N,{title:J},true),P={type:'radio','class':'cke_dialog_ui_radio_input',name:G,value:K,'aria-labelledby':M},Q=[];if(B._['default']==K)P.checked='checked';w(N);w(O);if(typeof N.inputStyle!='undefined')N.style=N.inputStyle;A.push(new n.dialog.uiElement(x,N,Q,'input',null,P));Q.push(' ');new n.dialog.uiElement(x,O,Q,'label',null,{id:M,'for':P.id},I[0]);D.push(Q.join(''));}new n.dialog.hbox(x,[],D,E);return E.join('');};n.dialog.labeledElement.call(this,x,y,z,C);this._.children=A;},button:function(x,y,z){if(!arguments.length)return;if(typeof y=='function')y=y(x.getParentEditor());p.call(this,y,{disabled:y.disabled||false});d.event.implementOn(this);var A=this;x.on('load',function(D){var E=this.getElement();(function(){E.on('click',function(F){A.fire('click',{dialog:A.getDialog()});F.data.preventDefault();});E.on('keydown',function(F){if(F.data.getKeystroke() in {32:1}){A.click();F.data.preventDefault();}});})();E.unselectable();},this);var B=h.extend({},y);delete B.style;var C=h.getNextId()+'_label';n.dialog.uiElement.call(this,x,B,z,'a',null,{style:y.style,href:'javascript:void(0)',title:y.label,hidefocus:'true','class':y['class'],role:'button','aria-labelledby':C},'<span id="'+C+'" class="cke_dialog_ui_button">'+h.htmlEncode(y.label)+'</span>');},select:function(x,y,z){if(arguments.length<3)return;var A=p.call(this,y);if(y.validate)this.validate=y.validate;A.inputId=h.getNextId()+'_select';var B=function(){var C=h.extend({},y,{id:y.id?y.id+'_select':h.getNextId()+'_select'},true),D=[],E=[],F={id:A.inputId,'class':'cke_dialog_ui_input_select','aria-labelledby':this._.labelId};if(y.size!=undefined)F.size=y.size;if(y.multiple!=undefined)F.multiple=y.multiple;w(C);for(var G=0,H;G<y.items.length&&(H=y.items[G]);G++)E.push('<option value="',h.htmlEncode(H[1]!==undefined?H[1]:H[0]).replace(/"/g,'&quot;'),'" /> ',h.htmlEncode(H[0]));if(typeof C.inputStyle!='undefined')C.style=C.inputStyle;A.select=new n.dialog.uiElement(x,C,D,'select',null,F,E.join(''));
return D.join('');};n.dialog.labeledElement.call(this,x,y,z,B);},file:function(x,y,z){if(arguments.length<3)return;if(y['default']===undefined)y['default']='';var A=h.extend(p.call(this,y),{definition:y,buttons:[]});if(y.validate)this.validate=y.validate;var B=function(){A.frameId=h.getNextId()+'_fileInput';var C=e.isCustomDomain(),D=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" id="',A.frameId,'" title="',y.label,'" src="javascript:void('];D.push(C?"(function(){document.open();document.domain='"+document.domain+"';"+'document.close();'+'})()':'0');D.push(')"></iframe>');return D.join('');};x.on('load',function(){var C=d.document.getById(A.frameId),D=C.getParent();D.addClass('cke_dialog_ui_input_file');});n.dialog.labeledElement.call(this,x,y,z,B);},fileButton:function(x,y,z){if(arguments.length<3)return;var A=p.call(this,y),B=this;if(y.validate)this.validate=y.validate;var C=h.extend({},y),D=C.onClick;C.className=(C.className?C.className+' ':'')+'cke_dialog_ui_button';C.onClick=function(E){var F=y['for'];if(!D||D.call(this,E)!==false){x.getContentElement(F[0],F[1]).submit();this.disable();}};x.on('load',function(){x.getContentElement(y['for'][0],y['for'][1])._.buttons.push(B);});n.dialog.button.call(this,x,C,z);},html:(function(){var x=/^\s*<[\w:]+\s+([^>]*)?>/,y=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,z=/\/$/;return function(A,B,C){if(arguments.length<3)return;var D=[],E,F=B.html,G,H;if(F.charAt(0)!='<')F='<span>'+F+'</span>';var I=B.focus;if(I){var J=this.focus;this.focus=function(){J.call(this);typeof I=='function'&&I.call(this);this.fire('focus');};if(B.isFocusable){var K=this.isFocusable;this.isFocusable=K;}this.keyboardFocusable=true;}n.dialog.uiElement.call(this,A,B,D,'span',null,null,'');E=D.join('');G=E.match(x);H=F.match(y)||['','',''];if(z.test(H[1])){H[1]=H[1].slice(0,-1);H[2]='/'+H[2];}C.push([H[1],' ',G[1]||'',H[2]].join(''));};})(),fieldset:function(x,y,z,A,B){var C=B.label,D=function(){var E=[];C&&E.push('<legend>'+C+'</legend>');for(var F=0;F<z.length;F++)E.push(z[F]);return E.join('');};this._={children:y};n.dialog.uiElement.call(this,x,B,A,'fieldset',null,null,D);}},true);n.dialog.html.prototype=new n.dialog.uiElement();n.dialog.labeledElement.prototype=h.extend(new n.dialog.uiElement(),{setLabel:function(x){var y=d.document.getById(this._.labelId);if(y.getChildCount()<1)new g.text(x,d.document).appendTo(y);else y.getChild(0).$.nodeValue=x;return this;},getLabel:function(){var x=d.document.getById(this._.labelId);
if(!x||x.getChildCount()<1)return '';else return x.getChild(0).getText();},eventProcessors:u},true);n.dialog.button.prototype=h.extend(new n.dialog.uiElement(),{click:function(){var x=this;if(!x._.disabled)return x.fire('click',{dialog:x._.dialog});x.getElement().$.blur();return false;},enable:function(){this._.disabled=false;var x=this.getElement();x&&x.removeClass('cke_disabled');},disable:function(){this._.disabled=true;this.getElement().addClass('cke_disabled');},isVisible:function(){return this.getElement().getFirst().isVisible();},isEnabled:function(){return!this._.disabled;},eventProcessors:h.extend({},n.dialog.uiElement.prototype.eventProcessors,{onClick:function(x,y){this.on('click',y);}},true),accessKeyUp:function(){this.click();},accessKeyDown:function(){this.focus();},keyboardFocusable:true},true);n.dialog.textInput.prototype=h.extend(new n.dialog.labeledElement(),{getInputElement:function(){return d.document.getById(this._.inputId);},focus:function(){var x=this.selectParentTab();setTimeout(function(){var y=x.getInputElement();y&&y.$.focus();},0);},select:function(){var x=this.selectParentTab();setTimeout(function(){var y=x.getInputElement();if(y){y.$.focus();y.$.select();}},0);},accessKeyUp:function(){this.select();},setValue:function(x){!x&&(x='');return n.dialog.uiElement.prototype.setValue.apply(this,arguments);},keyboardFocusable:true},t,true);n.dialog.textarea.prototype=new n.dialog.textInput();n.dialog.select.prototype=h.extend(new n.dialog.labeledElement(),{getInputElement:function(){return this._.select.getElement();},add:function(x,y,z){var A=new k('option',this.getDialog().getParentEditor().document),B=this.getInputElement().$;A.$.text=x;A.$.value=y===undefined||y===null?x:y;if(z===undefined||z===null){if(f)B.add(A.$);else B.add(A.$,null);}else B.add(A.$,z);return this;},remove:function(x){var y=this.getInputElement().$;y.remove(x);return this;},clear:function(){var x=this.getInputElement().$;while(x.length>0)x.remove(0);return this;},keyboardFocusable:true},t,true);n.dialog.checkbox.prototype=h.extend(new n.dialog.uiElement(),{getInputElement:function(){return this._.checkbox.getElement();},setValue:function(x,y){this.getInputElement().$.checked=x;!y&&this.fire('change',{value:x});},getValue:function(){return this.getInputElement().$.checked;},accessKeyUp:function(){this.setValue(!this.getValue());},eventProcessors:{onChange:function(x,y){if(!f)return u.onChange.apply(this,arguments);else{x.on('load',function(){var z=this._.checkbox.getElement();
z.on('propertychange',function(A){A=A.data.$;if(A.propertyName=='checked')this.fire('change',{value:z.$.checked});},this);},this);this.on('change',y);}return null;}},keyboardFocusable:true},t,true);n.dialog.radio.prototype=h.extend(new n.dialog.uiElement(),{setValue:function(x,y){var z=this._.children,A;for(var B=0;B<z.length&&(A=z[B]);B++)A.getElement().$.checked=A.getValue()==x;!y&&this.fire('change',{value:x});},getValue:function(){var x=this._.children;for(var y=0;y<x.length;y++){if(x[y].getElement().$.checked)return x[y].getValue();}return null;},accessKeyUp:function(){var x=this._.children,y;for(y=0;y<x.length;y++){if(x[y].getElement().$.checked){x[y].getElement().focus();return;}}x[0].getElement().focus();},eventProcessors:{onChange:function(x,y){if(!f)return u.onChange.apply(this,arguments);else{x.on('load',function(){var z=this._.children,A=this;for(var B=0;B<z.length;B++){var C=z[B].getElement();C.on('propertychange',function(D){D=D.data.$;if(D.propertyName=='checked'&&this.$.checked)A.fire('change',{value:this.getAttribute('value')});});}},this);this.on('change',y);}return null;}},keyboardFocusable:true},t,true);n.dialog.file.prototype=h.extend(new n.dialog.labeledElement(),t,{getInputElement:function(){var x=d.document.getById(this._.frameId).getFrameDocument();return x.$.forms.length>0?new k(x.$.forms[0].elements[0]):this.getElement();},submit:function(){this.getInputElement().getParent().$.submit();return this;},getAction:function(){return this.getInputElement().getParent().$.action;},registerEvents:function(x){var y=/^on([A-Z]\w+)/,z,A=function(C,D,E,F){C.on('formLoaded',function(){C.getInputElement().on(E,F,C);});};for(var B in x){if(!(z=B.match(y)))continue;if(this.eventProcessors[B])this.eventProcessors[B].call(this,this._.dialog,x[B]);else A(this,this._.dialog,z[1].toLowerCase(),x[B]);}return this;},reset:function(){var x=this._,y=d.document.getById(x.frameId),z=y.getFrameDocument(),A=x.definition,B=x.buttons,C=this.formLoadedNumber,D=this.formUnloadNumber,E=x.dialog._.editor.lang.dir,F=x.dialog._.editor.langCode;if(!C){C=this.formLoadedNumber=h.addFunction(function(){this.fire('formLoaded');},this);D=this.formUnloadNumber=h.addFunction(function(){this.getInputElement().clearCustomData();},this);this.getDialog()._.editor.on('destroy',function(){h.removeFunction(C);h.removeFunction(D);});}function G(){z.$.open();if(e.isCustomDomain())z.$.domain=document.domain;var H='';if(A.size)H=A.size-(f?7:0);z.$.write(['<html dir="'+E+'" lang="'+F+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+E+'" lang="'+F+'" action="',h.htmlEncode(A.action),'">','<input type="file" name="',h.htmlEncode(A.id||'cke_upload'),'" size="',h.htmlEncode(H>0?H:''),'" />','</form>','</body></html>','<script>window.parent.CKEDITOR.tools.callFunction('+C+');','window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction('+D+')}</script>'].join(''));
z.$.close();for(var I=0;I<B.length;I++)B[I].enable();};if(e.gecko)setTimeout(G,500);else G();},getValue:function(){return this.getInputElement().$.value||'';},setInitValue:function(){this._.initValue='';},eventProcessors:{onChange:function(x,y){if(!this._.domOnChangeRegistered){this.on('formLoaded',function(){this.getInputElement().on('change',function(){this.fire('change',{value:this.getValue()});},this);},this);this._.domOnChangeRegistered=true;}this.on('change',y);}},keyboardFocusable:true},true);n.dialog.fileButton.prototype=new n.dialog.button();n.dialog.fieldset.prototype=h.clone(n.dialog.hbox.prototype);d.dialog.addUIElement('text',q);d.dialog.addUIElement('password',q);d.dialog.addUIElement('textarea',r);d.dialog.addUIElement('checkbox',r);d.dialog.addUIElement('radio',r);d.dialog.addUIElement('button',r);d.dialog.addUIElement('select',r);d.dialog.addUIElement('file',r);d.dialog.addUIElement('fileButton',r);d.dialog.addUIElement('html',r);d.dialog.addUIElement('fieldset',s);})();m.add('panel',{beforeInit:function(p){p.ui.addHandler('panel',n.panel.handler);}});d.UI_PANEL='panel';n.panel=function(p,q){var r=this;if(q)h.extend(r,q);h.extend(r,{className:'',css:[]});r.id=h.getNextId();r.document=p;r._={blocks:{}};};n.panel.handler={create:function(p){return new n.panel(p);}};n.panel.prototype={renderHtml:function(p){var q=[];this.render(p,q);return q.join('');},render:function(p,q){var s=this;var r=s.id;q.push('<div class="',p.skinClass,'" lang="',p.langCode,'" role="presentation" style="display:none;z-index:'+(p.config.baseFloatZIndex+1)+'">'+'<div'+' id=',r,' dir=',p.lang.dir,' role="presentation" class="cke_panel cke_',p.lang.dir);if(s.className)q.push(' ',s.className);q.push('">');if(s.forceIFrame||s.css.length){q.push('<iframe id="',r,'_frame" frameborder="0" role="application" src="javascript:void(');q.push(e.isCustomDomain()?"(function(){document.open();document.domain='"+document.domain+"';"+'document.close();'+'})()':'0');q.push(')"></iframe>');}q.push('</div></div>');return r;},getHolderElement:function(){var p=this._.holder;if(!p){if(this.forceIFrame||this.css.length){var q=this.document.getById(this.id+'_frame'),r=q.getParent(),s=r.getAttribute('dir'),t=r.getParent().getAttribute('class'),u=r.getParent().getAttribute('lang'),v=q.getFrameDocument(),w=h.addFunction(h.bind(function(z){this.isLoaded=true;if(this.onLoad)this.onLoad();},this)),x='<!DOCTYPE html><html dir="'+s+'" class="'+t+'_container" lang="'+u+'">'+'<head>'+'<style>.'+t+'_container{visibility:hidden}</style>'+'</head>'+'<body class="cke_'+s+' cke_panel_frame '+e.cssClass+'" style="margin:0;padding:0"'+' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction('+w+');"></body>'+h.buildStyleHtml(this.css)+'</html>';
v.write(x);var y=v.getWindow();y.$.CKEDITOR=d;v.on('key'+(e.opera?'press':'down'),function(z){var C=this;var A=z.data.getKeystroke(),B=C.document.getById(C.id).getAttribute('dir');if(C._.onKeyDown&&C._.onKeyDown(A)===false){z.data.preventDefault();return;}if(A==27||A==(B=='rtl'?39:37))if(C.onEscape&&C.onEscape(A)===false)z.data.preventDefault();},this);p=v.getBody();p.unselectable();e.air&&h.callFunction(w);}else p=this.document.getById(this.id);this._.holder=p;}return p;},addBlock:function(p,q){var r=this;q=r._.blocks[p]=q instanceof n.panel.block?q:new n.panel.block(r.getHolderElement(),q);if(!r._.currentBlock)r.showBlock(p);return q;},getBlock:function(p){return this._.blocks[p];},showBlock:function(p){var q=this._.blocks,r=q[p],s=this._.currentBlock,t=this.forceIFrame?this.document.getById(this.id+'_frame'):this._.holder;t.getParent().getParent().disableContextMenu();if(s){t.removeAttributes(s.attributes);s.hide();}this._.currentBlock=r;t.setAttributes(r.attributes);d.fire('ariaWidget',t);r._.focusIndex=-1;this._.onKeyDown=r.onKeyDown&&h.bind(r.onKeyDown,r);r.onMark=function(u){t.setAttribute('aria-activedescendant',u.getId()+'_option');};r.onUnmark=function(){t.removeAttribute('aria-activedescendant');};r.show();return r;},destroy:function(){this.element&&this.element.remove();}};n.panel.block=h.createClass({$:function(p,q){var r=this;r.element=p.append(p.getDocument().createElement('div',{attributes:{tabIndex:-1,'class':'cke_panel_block',role:'presentation'},styles:{display:'none'}}));if(q)h.extend(r,q);if(!r.attributes.title)r.attributes.title=r.attributes['aria-label'];r.keys={};r._.focusIndex=-1;r.element.disableContextMenu();},_:{markItem:function(p){var s=this;if(p==-1)return;var q=s.element.getElementsByTag('a'),r=q.getItem(s._.focusIndex=p);if(e.webkit||e.opera)r.getDocument().getWindow().focus();r.focus();s.onMark&&s.onMark(r);}},proto:{show:function(){this.element.setStyle('display','');},hide:function(){var p=this;if(!p.onHide||p.onHide.call(p)!==true)p.element.setStyle('display','none');},onKeyDown:function(p){var u=this;var q=u.keys[p];switch(q){case 'next':var r=u._.focusIndex,s=u.element.getElementsByTag('a'),t;while(t=s.getItem(++r)){if(t.getAttribute('_cke_focus')&&t.$.offsetWidth){u._.focusIndex=r;t.focus();break;}}return false;case 'prev':r=u._.focusIndex;s=u.element.getElementsByTag('a');while(r>0&&(t=s.getItem(--r))){if(t.getAttribute('_cke_focus')&&t.$.offsetWidth){u._.focusIndex=r;t.focus();break;}}return false;case 'click':case 'mouseup':r=u._.focusIndex;
t=r>=0&&u.element.getElementsByTag('a').getItem(r);if(t)t.$[q]?t.$[q]():t.$['on'+q]();return false;}return true;}}});m.add('listblock',{requires:['panel'],onLoad:function(){n.panel.prototype.addListBlock=function(p,q){return this.addBlock(p,new n.listBlock(this.getHolderElement(),q));};n.listBlock=h.createClass({base:n.panel.block,$:function(p,q){var t=this;q=q||{};var r=q.attributes||(q.attributes={});(t.multiSelect=!!q.multiSelect)&&(r['aria-multiselectable']=true);!r.role&&(r.role='listbox');t.base.apply(t,arguments);var s=t.keys;s[40]='next';s[9]='next';s[38]='prev';s[2228224+9]='prev';s[32]=f?'mouseup':'click';f&&(s[13]='mouseup');t._.pendingHtml=[];t._.items={};t._.groups={};},_:{close:function(){if(this._.started){this._.pendingHtml.push('</ul>');delete this._.started;}},getClick:function(){if(!this._.click)this._.click=h.addFunction(function(p){var r=this;var q=true;if(r.multiSelect)q=r.toggle(p);else r.mark(p);if(r.onClick)r.onClick(p,q);},this);return this._.click;}},proto:{add:function(p,q,r){var u=this;var s=u._.pendingHtml,t=h.getNextId();if(!u._.started){s.push('<ul role="presentation" class=cke_panel_list>');u._.started=1;u._.size=u._.size||0;}u._.items[p]=t;s.push('<li id=',t,' class=cke_panel_listItem role=presentation><a id="',t,'_option" _cke_focus=1 hidefocus=true title="',r||p,'" href="javascript:void(\'',p,"')\" "+(f?'onclick="return false;" onmouseup':'onclick')+'="CKEDITOR.tools.callFunction(',u._.getClick(),",'",p,"'); return false;\"",' role="option" aria-posinset="'+ ++u._.size+'">',q||p,'</a></li>');},startGroup:function(p){this._.close();var q=h.getNextId();this._.groups[p]=q;this._.pendingHtml.push('<h1 role="presentation" id=',q,' class=cke_panel_grouptitle>',p,'</h1>');},commit:function(){var s=this;s._.close();s.element.appendHtml(s._.pendingHtml.join(''));var p=s._.items,q=s.element.getDocument();for(var r in p)q.getById(p[r]+'_option').setAttribute('aria-setsize',s._.size);delete s._.size;s._.pendingHtml=[];},toggle:function(p){var q=this.isMarked(p);if(q)this.unmark(p);else this.mark(p);return!q;},hideGroup:function(p){var q=this.element.getDocument().getById(this._.groups[p]),r=q&&q.getNext();if(q){q.setStyle('display','none');if(r&&r.getName()=='ul')r.setStyle('display','none');}},hideItem:function(p){this.element.getDocument().getById(this._.items[p]).setStyle('display','none');},showAll:function(){var p=this._.items,q=this._.groups,r=this.element.getDocument();for(var s in p)r.getById(p[s]).setStyle('display','');for(var t in q){var u=r.getById(q[t]),v=u.getNext();
u.setStyle('display','');if(v&&v.getName()=='ul')v.setStyle('display','');}},mark:function(p){var s=this;if(!s.multiSelect)s.unmarkAll();var q=s._.items[p],r=s.element.getDocument().getById(q);r.addClass('cke_selected');s.element.getDocument().getById(q+'_option').setAttribute('aria-selected',true);s.element.setAttribute('aria-activedescendant',q+'_option');s.onMark&&s.onMark(r);},unmark:function(p){var t=this;var q=t.element.getDocument(),r=t._.items[p],s=q.getById(r);s.removeClass('cke_selected');q.getById(r+'_option').removeAttribute('aria-selected');t.onUnmark&&t.onUnmark(s);},unmarkAll:function(){var t=this;var p=t._.items,q=t.element.getDocument();for(var r in p){var s=p[r];q.getById(s).removeClass('cke_selected');q.getById(s+'_option').removeAttribute('aria-selected');}t.onUnmark&&t.onUnmark();},isMarked:function(p){return this.element.getDocument().getById(this._.items[p]).hasClass('cke_selected');},focus:function(p){this._.focusIndex=-1;if(p){var q=this.element.getDocument().getById(this._.items[p]).getFirst(),r=this.element.getElementsByTag('a'),s,t=-1;while(s=r.getItem(++t)){if(s.equals(q)){this._.focusIndex=t;break;}}setTimeout(function(){q.focus();},0);}}}});}});(function(){m.add('wygwam',{init:function(p){d.on('instanceReady',function(q){if(e.webkit)q.editor.on('paste',function(r){var s=r.data,t=r.editor;if(typeof s.html!=='undefined'&&s.html!=''){s.html=s.html.replace(/<(META|LINK)[^>]*>\s*/gi,'');var u=document.createElement('div');u.innerHTML=s.html;if(u.children.length==1&&u.children[0].className.indexOf('Apple-style-span')>-1){s.html=$(u).children[0].innerHTML;u=document.createElement('div');u.innerHTML=s.html;}var v=t.getSelection(),w=v.getRanges()[0],x=w.startContainer,y=x.getNext();if(w.startContainer.$.nodeName!='#text')if(x.$.innerHTML.match(/^\s*<br>\s*$/)&&x.$.tagName=='P'){var z=new g.range(w.document),A=document.createDocumentFragment();for(var B=0;B<u.childNodes.length;++B){if(typeof u.childNodes[B]=='object')if(u.childNodes[B].nodeName=='#text')A.appendChild(document.createTextNode(u.childNodes[B].data));else A.appendChild(u.childNodes[B].cloneNode(true));}x.$.parentNode.replaceChild(A,x.$);if(y){z.setStartAt(y,3);z.setEndAt(y,3);}else{z.setStartAt(t.document.getBody(),2);z.setEndAt(t.document.getBody(),2);}z.select();r.cancel();}}});});d.on('dialogDefinition',function(q){var r=[],s=[];r.id='advId';r.dir='advLangDir';r.accesskey='advAccessKey';r.name='advName';r.lang='advLangCode';r.tabindex='advTabIndex';r.title='advTitle';r.type='advContentType';
r['class']='advCSSClasses';r.charset='advCharset';r.style='advStyles';r.rel='advRel';s.target='linkTargetType';var t=q.data.definition,u=q.data.name,v=t.getContents('info'),w=[],x=p.config.link_types;if(q.editor!=p||u!='link')return;var y=b(v.elements,'linkType');if(x)for(label in x){var z=a(label);y.items.push([label,z]);w.push(z);}y.onChange=h.override(y.onChange,function(L){return function(){L.call(this);var M=this.getValue(),N=this.getDialog();if(x){if(c(w,M,false))for(var O=0;O<w.length;O++){var P=N.getContentElement('info',w[O]+'_wrapper').getElement();if(!P)continue;if(w[O]==M){P.show();var Q=N.getContentElement('info',w[O]);J(Q);K(Q);}else P.hide();}else for(var O=0;O<w.length;O++){var P=N.getContentElement('info',w[O]+'_wrapper').getElement();if(!P)continue;P.hide();var Q=N.getContentElement('info',w[O]);J(Q);}for(var R in x){if(M==a(R))N.showPage('target');}}};});for(var A in x){var B=a(A),C=x[A],D=0,E=[];for(var F in C){var G=C[F],H='';if(G.label_depth)H=new Array(G.label_depth*4+1).join('\xa0');E[D]=[H+G.label,G.url];D++;}var I={id:B,type:'select',label:A,items:E,required:true,onLoad:function(){var L=this.getDialog(),M=L.getContentElement('info',this.id+'_wrapper').getElement();M.hide();},setup:function(L){if(L.type==this.id)this.setValue(L.customLinkUrl||'');},commit:function(L){if(L.type==this.id)L.customLinkUrl=this.getValue();},validate:function(){var L=this.getDialog();if(y)if(L.getValueOf('info','linkType')==this.id)return true;},onChange:function(){J(this);K(this);}};v.elements.push({type:'vbox',id:B+'_wrapper',children:[I]});}var J=function(L){for(var M in r){var N=L.getDialog().getContentElement('advanced',r[M]);N.setValue('');}for(var O in s){var P=L.getDialog().getContentElement('target',s[O]);O=='target'?P.setValue('notSet'):P.setValue('');}},K=function(L){var M=L.id;for(var N in x){var O=a(N);if(O==M){var P=x[N];for(var Q in P){var R=P[Q];if(L.getValue()==R.url)for(var S in R){if(typeof r[S]!='undefined'){var T=L.getDialog().getContentElement('advanced',r[S]);T.setValue(R[S]);}if(typeof s[S]!='undefined'){var U=L.getDialog().getContentElement('target',s[S]);U.setValue(R[S]);}}}}}};});}});})();var a=function(p){p=p.replace(' ','_').toLowerCase();p=p.replace(/\'/g,'');p=p.replace(/\"/g,'');return p;},b=function(p,q){for(var r=0,s;s=p[r];r++){if(s.id==q)return s;}return null;},c=function(p,q,r){var s;if(!p)return false;for(s=0;s<p.length;s++){if(!r){if(p[s].toLowerCase()==q.toLowerCase())return true;}else if(p[s]==q)return true;}return false;
};m.add('readmore',{requires:['fakeobjects','htmldataprocessor'],init:function(p){p.addCommand('readmore',{exec:function(){var r=p.document.getElementsByTag('img');for(var s=0,t=r.count();s<t;s++){var u=r.getItem(s);if(u.hasClass('cke_wygwam_read_more'))if(confirm('This entry already contains a "Read More" break.  Would you like to remove it and place a new one here?')){u.remove();break;}else return;}q('read_more');}});p.ui.addButton('ReadMore',{label:'Read More',command:'readmore'});p.addCss('img.cke_wygwam_read_more{background-image: url('+d.getUrl(this.path+'images/readmore.gif')+');'+'background-position: left bottom;'+'background-repeat: no-repeat;'+'clear: both;'+'display: block;'+'float: none;'+'width:100% !important; _width:99.9% !important;'+'border-top: #CCC 1px dotted;'+'height: 9px !important;'+'}');function q(r){if(!g.comment.prototype.getAttribute){g.comment.prototype.getAttribute=function(){return '';};g.comment.prototype.attributes={align:''};}var s=p.createFakeElement(new g.comment(r),'cke_wygwam_'+r,'hr'),t=p.getSelection().getRanges()[0],u=new g.elementPath(t.getCommonAncestor(true)),v=u.block&&u.block.getParent()||u.blockLimit,w;while(v&&v.getName()!='body'){t.moveToPosition(v,4);w=1;v=v.getParent();}if(!w)t.splitBlock('p');t.insertNode(s);var x=s;while((x=x.getNext())&&!t.moveToElementEditStart(x)){}};},afterInit:function(p){p.dataProcessor.dataFilter.addRules({comment:function(q){if(!d.htmlParser.comment.prototype.getAttribute){d.htmlParser.comment.prototype.getAttribute=function(){return '';};d.htmlParser.comment.prototype.attributes={align:''};}if(q=='read_more')return p.createFakeParserElement(new d.htmlParser.comment(q),'cke_wygwam_'+q,'hr');return q;}});}});d.themes.add('default',(function(){var p={};function q(r,s){var t,u;u=r.config.sharedSpaces;u=u&&u[s];u=u&&d.document.getById(u);if(u){var v='<span class="cke_shared " dir="'+r.lang.dir+'"'+'>'+'<span class="'+r.skinClass+' '+r.id+' cke_editor_'+r.name+'">'+'<span class="'+e.cssClass+'">'+'<span class="cke_wrapper cke_'+r.lang.dir+'">'+'<span class="cke_editor">'+'<div class="cke_'+s+'">'+'</div></span></span></span></span></span>',w=u.append(k.createFromHtml(v,u.getDocument()));if(u.getCustomData('cke_hasshared'))w.hide();else u.setCustomData('cke_hasshared',1);t=w.getChild([0,0,0,0]);!r.sharedSpaces&&(r.sharedSpaces={});r.sharedSpaces[s]=t;r.on('focus',function(){for(var x=0,y,z=u.getChildren();y=z.getItem(x);x++){if(y.type==1&&!y.equals(w)&&y.hasClass('cke_shared'))y.hide();
}w.show();});r.on('destroy',function(){w.remove();});}return t;};return{build:function(r,s){var t=r.name,u=r.element,v=r.elementMode;if(!u||v==0)return;if(v==1)u.hide();var w=r.fire('themeSpace',{space:'top',html:''}).html,x=r.fire('themeSpace',{space:'contents',html:''}).html,y=r.fireOnce('themeSpace',{space:'bottom',html:''}).html,z=x&&r.config.height,A=r.config.tabIndex||r.element.getAttribute('tabindex')||0;if(!x)z='auto';else if(!isNaN(z))z+='px';var B='',C=r.config.width;if(C){if(!isNaN(C))C+='px';B+='width: '+C+';';}var D=w&&q(r,'top'),E=q(r,'bottom');D&&(D.setHtml(w),w='');E&&(E.setHtml(y),y='');var F='<style>.'+r.skinClass+'{visibility:hidden;}</style>';if(p[r.skinClass])F='';else p[r.skinClass]=1;var G=k.createFromHtml(['<span id="cke_',t,'" class="',r.skinClass,' ',r.id,' cke_editor_',t,'" dir="',r.lang.dir,'" title="',e.gecko?' ':'','" lang="',r.langCode,'"'+(e.webkit?' tabindex="'+A+'"':'')+' role="application"'+' aria-labelledby="cke_',t,'_arialbl"'+(B?' style="'+B+'"':'')+'>'+'<span id="cke_',t,'_arialbl" class="cke_voice_label">'+r.lang.editor+'</span>'+'<span class="',e.cssClass,'" role="presentation"><span class="cke_wrapper cke_',r.lang.dir,'" role="presentation"><table class="cke_editor" border="0" cellspacing="0" cellpadding="0" role="presentation"><tbody><tr',w?'':' style="display:none"',' role="presentation"><td id="cke_top_',t,'" class="cke_top" role="presentation">',w,'</td></tr><tr',x?'':' style="display:none"',' role="presentation"><td id="cke_contents_',t,'" class="cke_contents" style="height:',z,'" role="presentation">',x,'</td></tr><tr',y?'':' style="display:none"',' role="presentation"><td id="cke_bottom_',t,'" class="cke_bottom" role="presentation">',y,'</td></tr></tbody></table>'+F+'</span>'+'</span>'+'</span>'].join(''));G.getChild([1,0,0,0,0]).unselectable();G.getChild([1,0,0,0,2]).unselectable();if(v==1)G.insertAfter(u);else u.append(G);r.container=G;G.disableContextMenu();r.on('contentDirChanged',function(H){var I=(r.lang.dir!=H.data?'add':'remove')+'Class';G.getChild(1)[I]('cke_mixed_dir_content');var J=this.sharedSpaces&&this.sharedSpaces[this.config.toolbarLocation];J&&J.getParent().getParent()[I]('cke_mixed_dir_content');});r.fireOnce('themeLoaded');r.fireOnce('uiReady');},buildDialog:function(r){var s=h.getNextNumber(),t=k.createFromHtml(['<div class="',r.id,'_dialog cke_editor_',r.name.replace('.','\\.'),'_dialog cke_skin_',r.skinName,'" dir="',r.lang.dir,'" lang="',r.langCode,'" role="dialog" aria-labelledby="%title#"><table class="cke_dialog',' '+e.cssClass,' cke_',r.lang.dir,'" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="%body" role="presentation"><div id="%title#" class="%title" role="presentation"></div><a id="%close_button#" class="%close_button" href="javascript:void(0)" title="'+r.lang.common.close+'" role="button"><span class="cke_label">X</span></a>'+'<div id="%tabs#" class="%tabs" role="tablist"></div>'+'<table class="%contents" role="presentation">'+'<tr>'+'<td id="%contents#" class="%contents" role="presentation"></td>'+'</tr>'+'<tr>'+'<td id="%footer#" class="%footer" role="presentation"></td>'+'</tr>'+'</table>'+'</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>'+'</td></tr>'+'</table>',f?'':'<style>.cke_dialog{visibility:hidden;}</style>','</div>'].join('').replace(/#/g,'_'+s).replace(/%/g,'cke_dialog_')),u=t.getChild([0,0,0,0,0]),v=u.getChild(0),w=u.getChild(1);
v.unselectable();w.unselectable();return{element:t,parts:{dialog:t.getChild(0),title:v,close:w,tabs:u.getChild(2),contents:u.getChild([3,0,0,0]),footer:u.getChild([3,0,1,0])}};},destroy:function(r){var s=r.container,t=r.element;if(s){s.clearCustomData();s.remove();}if(t){t.clearCustomData();r.elementMode==1&&t.show();delete r.element;}}};})());d.editor.prototype.getThemeSpace=function(p){var q='cke_'+p,r=this._[q]||(this._[q]=d.document.getById(q+'_'+this.name));return r;};d.editor.prototype.resize=function(p,q,r,s){var t=this.container,u=d.document.getById('cke_contents_'+this.name),v=s?t.getChild(1):t;e.webkit&&v.setStyle('display','none');v.setSize('width',p,true);if(e.webkit){v.$.offsetWidth;v.setStyle('display','');}var w=r?0:(v.$.offsetHeight||0)-(u.$.clientHeight||0);u.setStyle('height',Math.max(q-w,0)+'px');this.fire('resize');};d.editor.prototype.getResizable=function(p){return p?d.document.getById('cke_contents_'+this.name):this.container;};})();
