'+r));}return{};},m=function(n,o,p,q){var r= ! !o;a.log('[AJAX] POST '+n);var s=i();if(!s)return null;if(!q)s.open('GET',n,r);else s.open('POST',n,r);if(r)s.onreadystatechange=function(){if(s.readyState==4){o(p(s));s=null;}};if(q){s.setRequestHeader('Content-type','application/x-www-form-urlencoded');s.send(q);}else s.send(null);return r?'':p(s);};return{load:function(n,o,p){return m(n,o,k,p);},loadXml:function(n,o,p){return m(n,o,l,p);}};})();CKFinder.ajax=a.ajax;(function(){var i=[];a.tools={arrayCompare:function(j,k){if(!j&& !k)return true;if(!j|| !k||j.length!=k.length)return false;for(var l=0;l'?function(o){return k(o).replace(/ /gi,'\n');}:k,m=k('>')=='>'?function(o){return l(o).replace(/>/g,'>');}:l,n=k(' ')==' '?function(o){return m(o).replace(/ /g,' ');}:m;this.htmlEncode=n;return this.htmlEncode(j);},getNextNumber:(function(){var j=0;return function(){return++j;};})(),override:function(j,k){return k(j);},setTimeout:function(j,k,l,m,n){if(!n)n=window;if(!l)l=n;return n.setTimeout(function(){if(m)j.apply(l,[].concat(m));else j.apply(l);},k||0);},trim:(function(){var j=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(k){return k?k.replace(j,''):null;};})(),ltrim:(function(){var j=/^[ \t\n\r]+/g;return function(k){return k?k.replace(j,''):null;};})(),rtrim:(function(){var j=/[ \t\n\r]+$/g;return function(k){return k?k.replace(j,''):null;};})(),indexOf:Array.prototype.indexOf?function(j,k){return j.indexOf(k);}:function(j,k){for(var l=0,m=j.length;l1?m[1]:null;},htmlEncode:function(j){if(!j)return '';j=typeof j!='string'?j.toString():j;j=j.replace(/&/g,'&');j=j.replace(//g,'>');return j;},setCookie:function(j,k,l){document.cookie=j+'='+k+(!l?'; expires=Thu, 6 Oct 2016 01:00:00 UTC; path=/':'');},getCookie:function(j){var k=document.cookie.match(new RegExp('(^|\\s|;)'+j+'=([^;]*)'));return k&&k.length>0?k[2]:'';},mH:function(j){if(g){j.$.onfocusin=function(){j.addClass('focus_inside');};j.$.onfocusout=function(){j.removeClass('focus_inside');};}else{j.$.addEventListener('focus',function(){j.addClass('focus_inside');},true);j.$.addEventListener('blur',function(){j.removeClass('focus_inside');},true);}}};CKFinder._.callFunction=a.tools.callFunction;CKFinder.tools=a.tools;})();var i=a.tools;h.event=function(j){this.$=j;};h.event.prototype={oV:function(){return this.$.keyCode||this.$.which;},db:function(){var k=this;var j=k.oV();if(k.$.ctrlKey||k.$.metaKey)j+=a.bP;if(k.$.shiftKey)j+=a.dy;if(k.$.altKey)j+=a.eJ;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;},bK:function(){var j=this.$.target||this.$.srcElement;return j?new h.bi(j):null;}};a.bP=1000;a.dy=2000;a.eJ=4000;h.dE=function(j){if(j)this.$=j;};h.dE.prototype=(function(){var j=function(k,l){return function(m){if(typeof a!='undefined')k.oW(l,new h.event(m));};};return{kk:function(){var k;if(!(k=this.dw('_')))this.fL('_',k={});return k;},on:function(k){var n=this;var l=n.dw('_cke_nativeListeners');if(!l){l={};n.fL('_cke_nativeListeners',l);}if(!l[k]){var m=l[k]=j(n,k);if(n.$.addEventListener&& !g)n.$.addEventListener(k,m,! !a.event.jP);else if(n.$.attachEvent)n.$.attachEvent('on'+k,m);}return a.event.prototype.on.apply(n,arguments);},removeListener:function(k){var n=this;a.event.prototype.removeListener.apply(n,arguments);if(!n.rC(k)){var l=n.dw('_cke_nativeListeners'),m=l&&l[k];if(m){if(n.$.removeEventListener)n.$.removeEventListener(k,m,false);else if(n.$.detachEvent)n.$.detachEvent('on'+k,m);delete l[k];}}}};})();(function(j){var k={};j.equals=function(l){return l&&l.$===this.$;};j.fL=function(l,m){var n=this.iY(),o=k[n]||(k[n]={});o[l]=m;return this;};j.dw=function(l){var m=this.$.dj,n=m&&k[m];return n&&n[l];};j.jF=function(l){var m=this.$.dj,n=m&&k[m],o=n&&n[l];if(typeof o!='undefined')delete n[l];return o||null;};j.iY=function(){return this.$.dj||(this.$.dj=i.getNextNumber());};a.event.du(j);})(h.dE.prototype);h.window=function(j){h.dE.call(this,j);};h.window.prototype=new h.dE();i.extend(h.window.prototype,{focus:function(){if(f.webkit&&this.$.parent)this.$.parent.focus();this.$.focus();},eR: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};},hV: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};}}});h.document=function(j){h.dE.call(this,j);};var j=h.document;j.prototype=new h.dE();i.extend(j.prototype,{pb:function(k){if(this.$.createStyleSheet)this.$.createStyleSheet(k);else{var l=new h.element('link');l.setAttributes({rel:'stylesheet',type:'text/css',href:k});this.eD().append(l);}},createElement:function(k,l){var m=new h.element(k,this);if(l){if(l.attributes)m.setAttributes(l.attributes);if(l.gS)m.setStyles(l.gS);}return m;},jT:function(k){return new h.text(k,this);},focus:function(){this.getWindow().focus();},getById:function(k){var l=this.$.getElementById(k);return l?new h.element(l):null;},vu:function(k,l){var m=this.$.documentElement;for(var n=0;m&&n]*>/,'');var l=m.$.ownerDocument.createElement('div');l.appendChild(m.$.cloneNode(true));return l.innerHTML;},setHtml:function(l){a.log('[DOM] DOM flush into '+this.getName());return this.$.innerHTML=l;},setText:function(l){k.prototype.setText=this.$.innerText!=undefined?function(m){a.log('[DOM] Text flush');return this.$.innerText=m;}:function(m){a.log('[DOM] Text flush');return this.$.textContent=m;};return this.setText(l);},getAttribute:(function(){var l=function(m){return this.$.getAttribute(m,2);};if(g&&(f.ie7Compat||f.ie6Compat))return function(m){var o=this;switch(m){case 'class':m='className';break;case 'tabindex':var n=l.call(o,m);if(n!==0&&o.$.tabIndex===0)n=null;return n;break;case 'checked':return o.$.checked;break;case 'style':return o.$.style.cssText;}return l.call(o,m);};else return l;})(),getChildren:function(){return new h.iT(this.$.childNodes);},getComputedStyle:g?function(l){return this.$.currentStyle[i.cssStyleToDomStyle(l)];}:function(l){return this.getWindow().$.getComputedStyle(this.$,'').getPropertyValue(l);},pf:function(){var l=a.ga[this.getName()];this.pf=function(){return l;};return l;},eG:j.prototype.eG,vp:g?function(){var l=this.$.tabIndex;if(l===0&& !a.ga.ug[this.getName()]&&parseInt(this.getAttribute('tabindex'),10)!==0)l= -1;return l;}:f.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();},dS:function(){return this.$.id||null;},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;},vm:function(){return this.$.name||null;},getName:function(){var l=this.$.nodeName.toLowerCase();if(g){var m=this.$.scopeName;if(m!='HTML')l=m.toLowerCase()+':'+l;}return(this.getName=function(){return l;})();},getValue:function(){return this.$.value;},getFirst:function(){var l=this.$.firstChild;return l?new h.bi(l):null;},dB:function(l){var m=this.$.lastChild,n=m&&new h.bi(m);if(n&&l&& !l(n))n=n.cf(l);return n;},rd:function(l){return this.$.style[i.cssStyleToDomStyle(l)];},is:function(){var l=this.getName();for(var m=0;m1||l.length==1&&l[0].nodeName!='dj';},hasAttribute:function(l){var m=this.$.attributes.getNamedItem(l);return! !(m&&m.specified);},hide:function(){this.setStyle('display','none');},jg: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));},show:function(){this.setStyles({display:'',visibility:''});},setAttribute:(function(){var l=function(m,n){this.$.setAttribute(m,n);return this;};if(g&&(f.ie7Compat||f.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 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(g&&(f.ie7Compat||f.ie6Compat))return function(m){if(m=='class')m='className';else if(m=='tabindex')m='tabIndex';l.call(this,m);};else return l;})(),uW:function(l){for(var m=0;m=100?'':'progid:DXImageTransform.Microsoft.Alpha(opacity='+l+')');}else this.setStyle('opacity',l);},unselectable:f.gecko?function(){this.$.style.MozUserSelect='none';}:f.webkit?function(){this.$.style.uE='none';}:function(){if(g||f.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';}}},vr:function(){var l=this;while(l.getName()!='html'){if(l.getComputedStyle('position')!='static')return l;l=l.getParent();}return null;},ir:function(l){var G=this;var m=0,n=0,o=G.getDocument().bH(),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(g){var x=q.gT().contains(G),y=q.bH().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).ir(l);m+=F.x;n+=F.y;}}if(!document.documentElement.getBoundingClientRect)if(f.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.eR().height,o=n* -1;if(l)o+=n;else{o+=r.$.offsetHeight||0;o+=parseInt(r.getComputedStyle('marginBottom')||0,10)||0;}var p=r.ir();o+=p.y;o=o<0?0:o;var q=m.hV().y;if(o>q||owindow.setTimeout(function(){window.close();},50);")');}return l&&new j(l.contentWindow.document);},qw:function(l,m){var s=this;var n=s.$.attributes;m=m||{};for(var o=0;o0&&m)m=m.childNodes[l.shift()];return m?new h.bi(m):null;},iu:function(){return this.$.childNodes.length;},hX:function(){this.on('contextmenu',function(l){if(!l.data.bK().hasClass('cke_enable_context_menu'))l.data.preventDefault();});},'toString':function(){return this.getName()+'#'+this.dS()+'.'+this.getAttribute('class');}});(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;p1)return;var E=new k('script');E.setAttributes({type:'text/javascript',src:C});if(p)if(g)E.$.onreadystatechange=function(){if(E.$.readyState=='loaded'||E.$.readyState=='complete'){E.$.onreadystatechange=null;a.log('[LOADED] '+C);z(C,true);}};else{E.$.onload=function(){setTimeout(function(){a.log('[LOADED] '+C);z(C,true);},0);};E.$.onerror=function(){z(C,false);};}E.appendTo(s?s:a.document.eD());};for(var B=0;B0){w(x);a.rw.load(x,function(){o[s]=1;q(r,s,t,u);});return;}o[s]=1;}t=v[t];var y=0;if(t){if(!t.iB)t.iB=[];else if(t.iB[r.name])y=1;}else y=1;if(y)u&&u();else{if(t.eb===undefined)t.eb=[];if(t.eb[r.name]===undefined)t.eb[r.name]=[];var z=t.eb[r.name];z.push(u);if(z.length>1)return;var A= !t.css|| !t.css.length,B= !t.js|| !t.js.length,C=function(){if(A&&B){t.iB[r.name]=1;for(var E=0;E\n";E.removeListener();});A=1;}if(!B){w(t.js);r.ec.load(t.js,function(){B=1;C();});}C();}};return{add:function(r,s){n[r]=s;s.fh=p[r]||(p[r]=a.getUrl('skins/'+r+'/'));},loaded:n,load:function(r,s,t){var u=r.gd,v=r.fh;if(n[u]){q(r,u,s,t);var w=n[u];}else{p[u]=v;a.ec.load(v+'skin.js',function(){q(r,u,s,t);});}}};})();a.gc=new a.fQ('gc/','theme');a.bY=function(n){if(n.bY)return n.bY;this._={jZ:{},items:{},application:n};return this;};var n=a.bY;n.prototype={add:function(o,p,q){this._.items[o]={type:p,command:q.command||null,mp:Array.prototype.slice.call(arguments,2)};},create:function(o){var t=this;var p=t._.items[o],q=p&&t._.jZ[p.type],r=p&&p.command&&t._.application.cS(p.command),s=q&&q.create.apply(t,p.mp);if(r)r.pW.push(s);return s;},kd:function(o,p){this._.jZ[o]=p;}};(function(){var o=0,p=function(){var y='ckfinder'+ ++o;return a.instances&&a.instances[y]?p():y;},q={},r=function(y){var z=y.config.customConfig;if(!z)return false;var A=q[z]||(q[z]={});if(A.gg){A.gg.call(y,y.config);if(y.config.customConfig==z|| !r(y))y.cr('customConfigLoaded');}else a.ec.load(z,function(){if(CKFinder.customConfig)A.gg=CKFinder.customConfig;else A.gg=function(){};r(y);});return true;},s=function(y,z){y.on('customConfigLoaded',function(){if(z){if(z.on)for(var A in z.on)y.on(A,z.on[A]);i.extend(y.config,z,true);delete y.config.on;}t(y);});if(z&&z.customConfig!=undefined)y.config.customConfig=z.customConfig;if(!r(y))y.cr('customConfigLoaded');},t=function(y){var z=y.config.skin.split(','),A=z[0],B=a.getUrl(z[1]||'skins/'+A+'/');y.gd=A;y.fh=B;y.iy='cke_skin_'+A+' skin_'+A;y.qn=y.ox();y.on('uiReady',function(){y.document.getWindow().on('lW',function(){i.setCookie('CKFinder_UTime',Math.round(new Date().getTime()/1000),true);i.setCookie('CKFinder_UId',encodeURIComponent(y.id?y.id:location.href),true);});});y.cr('configLoaded');u(y);},u=function(y){a.lang.load(y.config.language,y.config.defaultLanguage,function(z,A){y.langCode=z;y.lang=i.prototypedCopy(A);y.lB=(function(){var B="['"+y.lang.DateAmPm.join("','")+"']",C=y.lang.DateTime.replace(/dd|mm|yyyy|hh|HH|MM|aa|d|m|yy|h|H|M|a/g,function(D){var E;switch(D){case 'd':E="day.replace(/^0/,'')";break;case 'dd':E='day';break;case 'm':E="month.replace(/^0/,'')";break;case 'mm':E='month';break;case 'yy':E='year.substr(2)';break;case 'yyyy':E='year';break;case 'H':E="hour.replace(/^0/,'')";break;case 'HH':E='hour';break;case 'h':E="( hour < 12 ? hour : ( ( hour - 12 ) + 100 ).toString().substr( 1 ) ).replace(/^0/,'')";break;case 'hh':E='( hour < 12 ? hour : ( ( hour - 12 ) + 100 ).toString().substr( 1 ) )';break;case 'M':E="minute.replace(/^0/,'')";break;case 'MM':E='minute';break;case 'a':E=B+'[ hour < 12 ? 0 : 1 ].charAt(0)';break;case 'aa':E=B+'[ hour < 12 ? 0 : 1 ]';break;default:E="'"+D+"'";}return "',"+E+",'";});C="'"+C+"'";C=C.replace(/('',)|,''$/g,'');return new Function('day','month','year','hour','minute','return ['+C+"].join('');");})();if(f.gecko&&f.version<10900&&y.lang.dir=='rtl')y.lang.dir='ltr';v(y);});},v=function(y){var z=y.config,A=z.plugins,B=z.extraPlugins,C=z.removePlugins;if(B){var D=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');A=A.replace(D,'');A+=','+B;}if(C){D=new RegExp('(?:^|,)(?:'+C.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');A=A.replace(D,'');}m.load(A.split(','),function(E){var F=[],G=[],H=[];y.plugins=E;for(var I in E){var J=E[I],K=J.lang,L=m.getPath(I),M=null;E[I].name=I;J.pathName=L;if(K){M=i.indexOf(K,y.langCode)>=0?y.langCode:K[0];if(!J.lang[M])H.push(a.getUrl(L+'lang/'+M+'.js'));else{i.extend(y.lang,J.lang[M]);M=null;}}G.push(M);F.push(J);}a.ec.load(H,function(){var N=['eK','bz','gr'];for(var O=0;O');return p.querySelectorAll(u);}else alert('XPath is not supported in your browser');return r;},vB:function(o,p){var q=this.selectSingleNode(o,p),r=[];if(q){q=q.firstChild;while(q){if(q.xml)r.push(q.xml);else if(window.XMLSerializer)r.push(new XMLSerializer().serializeToString(q));q=q.nextSibling;}}return r.length?r.join(''):null;}};(function(){var o={address:1,tY:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,de:1},p={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},q=function(r){var s=r.getChildren();for(var t=0,u=s.count();t0&&C.getChild(v.startOffset-1);this._.ka=function(F,G){return(!G|| !C.equals(F))&&(!D|| !F.equals(D))&&(F.type!=a.cv||F.getName()!='body');};}var E=s?this._.ka:this._.kp;if(x)w=function(F,G){if(E(F,G)===false)return false;return x(F);};else w=E;if(this.current)u=this.current[z](false,y,w);else if(s){u=v.endContainer;if(v.endOffset>0){u=u.getChild(v.endOffset-1);if(w(u)===false)u=null;}else u=w(u)===false?null:u.hZ(true,y,w);}else{u=v.startContainer;u=u.getChild(v.startOffset);if(u){if(w(u)===false)u=null;}else u=w(v.startContainer)===false?null:v.startContainer.hL(true,y,w);}while(u&& !this._.end){this.current=u;if(!this.lf||this.lf(u)!==false){if(!t)return u;}else if(t&&this.lf)return false;u=u[z](false,y,w);}this.end();return this.current=null;};function p(s){var t,u=null;while(t=o.call(this,s))u=t;return u;};h.gm=i.createClass({$:function(s){this.mk=s;this._={};},ej:{end:function(){this._.end=1;},next:function(){return o.call(this);},previous:function(){return o.call(this,true);},sC:function(){return o.call(this,false,true)!==false;},sD:function(){return o.call(this,true,true)!==false;},uF:function(){return p.call(this);},uB:function(){return p.call(this,true);},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},r={hr:1};k.prototype.qy=function(s){var t=i.extend({},r,s||{});return q[this.getComputedStyle('display')]||t[this.getName()];};h.gm.pQ=function(s){return function(t,u){return!(t.type==a.cv&&t.qy(s));};};h.gm.us=function(){return this.pQ({br:1});};h.gm.tU=function(s){},h.gm.tW=function(s,t){function u(v){return v&&v.getName&&v.getName()=='span'&&v.hasAttribute('_fck_bookmark');};return function(v){var w,x;w=v&& !v.getName&&(x=v.getParent())&&u(x);w=s?w:w||u(v);return t^w;};};h.gm.sf=function(s){return function(t){var u=t&&t.type==a.fl&& !i.trim(t.getText());return s^u;};};})();(function(){if(f.webkit){f.hc=false;return;}var o=g&&f.version<7,p=g&&f.version==7,q=o?a.basePath+'images/spacer.gif':p?'about:blank':'data:image/png;base64,',r=k.kE('',a.document);r.appendTo(a.document.eD());try{f.hc=r.getComputedStyle('background-image')=='none';}catch(s){f.hc=false;}if(f.hc)f.cssClass+=' cke_hc';r.remove();})();m.load(l.pO.split(','),function(){a.status='loaded';a.oW('loaded');var o=a._.io;if(o){delete a._.io;for(var p=0;p, unavailable',confirmCancel:'Some of the options were changed. Are you sure you want to close the dialog window?',ok:'OK',cancel:'Cancel',confirmationTitle:'Confirmation',messageTitle:'Information',inputTitle:'Question',undo:'Undo',redo:'Redo',skip:'Skip',skipAll:'Skip all',makeDecision:'What action should be taken?',rememberDecision:'Remember my decision'},dir:'ltr',HelpLang:'en',LangCode:'en',DateTime:'m/d/yyyy h:MM aa',DateAmPm:['AM','PM'],FoldersTitle:'Folders',FolderLoading:'Loading...',FolderNew:'Please type the new folder name: ',FolderRename:'Please type the new folder name: ',FolderDelete:'Are you sure you want to delete the "%1" folder?',FolderRenaming:' (Renaming...)',FolderDeleting:' (Deleting...)',FileRename:'Please type the new file name: ',FileRenameExt:'Are you sure you want to change the file extension? The file may become unusable.',FileRenaming:'Renaming...',FileDelete:'Are you sure you want to delete the file "%1"?',FilesLoading:'Loading...',FilesEmpty:'The folder is empty.',FilesMoved:'File %1 moved to %2:%3.',FilesCopied:'File %1 copied to %2:%3.',BasketFolder:'Basket',BasketClear:'Clear Basket',BasketRemove:'Remove from Basket',BasketOpenFolder:'Open Parent Folder',BasketTruncateConfirm:'Do you really want to remove all files from the basket?',BasketRemoveConfirm:'Do you really want to remove the file "%1" from the basket?',BasketEmpty:'No files in the basket, drag and drop some.',BasketCopyFilesHere:'Copy Files from Basket',BasketMoveFilesHere:'Move Files from Basket',BasketPasteErrorOther:'File %s error: %e',BasketPasteMoveSuccess:'The following files were moved: %s',BasketPasteCopySuccess:'The following files were copied: %s',Upload:'Upload',UploadTip:'Upload New File',Refresh:'Refresh',Settings:'Settings',Help:'Help',HelpTip:'Help',Select:'Select',SelectThumbnail:'Select Thumbnail',View:'View',Download:'Download',NewSubFolder:'New Subfolder',Rename:'Rename',Delete:'Delete',CopyDragDrop:'Copy File Here',MoveDragDrop:'Move File Here',RenameDlgTitle:'Rename',NewNameDlgTitle:'New Name',FileExistsDlgTitle:'File Already Exists',SysErrorDlgTitle:'System Error',FileOverwrite:'Overwrite',FileAutorename:'Auto-rename',OkBtn:'OK',CancelBtn:'Cancel',CloseBtn:'Close',UploadTitle:'Upload New File',UploadSelectLbl:'Select a file to upload',UploadProgressLbl:'(Upload in progress, please wait...)',UploadBtn:'Upload Selected File',UploadBtnCancel:'Cancel',UploadNoFileMsg:'Please select a file from your computer.',UploadNoFolder:'Please select a folder before uploading.',UploadNoPerms:'File upload not allowed.',UploadUnknError:'Error sending the file.',UploadExtIncorrect:'File extension not allowed in this folder.',UploadLabel:'Files to Upload',UploadTotalFiles:'Total Files:',UploadTotalSize:'Total Size:',UploadAddFiles:'Add Files',UploadClearFiles:'Clear Files',UploadCancel:'Cancel Upload',UploadRemove:'Remove',UploadRemoveTip:'Remove !f',UploadUploaded:'Uploaded !n%',UploadProcessing:'Processing...',SetTitle:'Settings',SetView:'View:',SetViewThumb:'Thumbnails',SetViewList:'List',SetDisplay:'Display:',SetDisplayName:'File Name',SetDisplayDate:'Date',SetDisplaySize:'File Size',SetSort:'Sorting:',SetSortName:'by File Name',SetSortDate:'by Date',SetSortSize:'by Size',FilesCountEmpty:'',FilesCountOne:'1 file',FilesCountMany:'%1 files',Kb:'%1 kB',KbPerSecond:'%1 kB/s',ErrorUnknown:'It was not possible to complete the request. (Error %1)',Errors:{10:'Invalid command.',11:'The resource type was not specified in the request.',12:'The requested resource type is not valid.',102:'Invalid file or folder name.',103:'It was not possible to complete the request due to authorization restrictions.',104:'It was not possible to complete the request due to file system permission restrictions.',105:'Invalid file extension.',109:'Invalid request.',110:'Unknown error.',115:'A file or folder with the same name already exists.',116:'Folder not found. Please refresh and try again.',117:'File not found. Please refresh the files list and try again.',118:'Source and target paths are equal.',201:'A file with the same name is already available. The uploaded file was renamed to "%1".',202:'Invalid file.',203:'Invalid file. The file size is too big.',204:'The uploaded file is corrupt.',205:'No temporary folder is available for upload in the server.',206:'Upload cancelled due to security reasons. The file contains HTML-like data.',207:'The uploaded file was renamed to "%1".',300:'Moving file(s) failed.',301:'Copying file(s) failed.',500:'The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.',501:'The thumbnails support is disabled.'},ErrorMsg:{pg:'The file name cannot be empty.',FileExists:'File %s already exists.',FolderEmpty:'The folder name cannot be empty.',oP:'The file name cannot contain any of the following characters: \n\\ / : * ? " < > |',FolderInvChar:'The folder name cannot contain any of the following characters: \n\\ / : * ? " < > |',oo:'It was not possible to open the file in a new window. Please configure your browser and disable all popup blockers for this site.',XmlError:'It was not possible to properly load the XML response from the web server.',XmlEmpty:'It was not possible to load the XML response from the web server. The server returned an empty response.',XmlRawResponse:'Raw response from the server: %s'},Imageresize:{dialogTitle:'Resize %s',sizeTooBig:'Cannot set image height or width to a value bigger than the original size (%size).',resizeSuccess:'Image resized successfully.',thumbnailNew:'Create a new thumbnail',thumbnailSmall:'Small (%s)',thumbnailMedium:'Medium (%s)',thumbnailLarge:'Large (%s)',newSize:'Set a new size',width:'Width',height:'Height',invalidHeight:'Invalid height.',invalidWidth:'Invalid width.',invalidName:'Invalid file name.',newImage:'Create a new image',noExtensionChange:'File extension cannot be changed.',imageSmall:'Source image is too small.',contextMenuName:'Resize',lockRatio:'Lock ratio',resetSize:'Reset size'},Fileeditor:{save:'Save',fileOpenError:'Unable to open file.',fileSaveSuccess:'File saved successfully.',contextMenuName:'Edit',loadingFile:'Loading file, please wait...'},Maximize:{maximize:'Maximize',minimize:'Minimize'}};(function(){var p=1,q=2,r=4,s=8,t=16,u=32,v=64,w=128;a.aL.Acl=function(x){var y=this;if(!x)x=0;y.folderView=(x&p)==p;y.folderCreate=(x&q)==q;y.folderRename=(x&r)==r;y.folderDelete=(x&s)==s;y.fileView=(x&t)==t;y.fileUpload=(x&u)==u;y.fileRename=(x&v)==v;y.fileDelete=(x&w)==w;};m.add('acl');})();(function(){m.add('connector',{bM:[],bz:function(q){q.on('appReady',function(){q.connector=new a.aL.Connector(q);var r=q.config.resourceType,s=r?{type:r}:null;q.connector.sendCommand('Init',s,function(t){var u;if(t.checkError())return;var v="\103\157\156\156\x65\x63\164\x6f\x72\x2f\x43\157\156\x6e\145\143\x74\x6f\x72\111\156\x66\x6f\057";a.ed=t.selectSingleNode(v+"\x40\163").value;a.bF=t.selectSingleNode(v+"\100\143").value+'----';q.config.thumbsEnabled=t.selectSingleNode(v+"\100\x74\x68\x75\155\142\163\x45\156\x61\142\154\x65\144").value=='true';q.config.thumbsDirectAccess=false;if(q.config.thumbsEnabled){u=t.selectSingleNode(v+"\x40\164\150\x75\x6d\142\163\x55\x72\154");if(u)q.config.thumbsUrl=u.value;u=t.selectSingleNode(v+"\x40\x74\150\x75\155\142\x73\x44\151\162\x65\x63\164\x41\x63\143\x65\x73\x73");if(u)q.config.thumbsDirectAccess=u.value=='true';}q.config.imagesMaxWidth=parseInt(t.selectSingleNode(v+"\x40\x69\155\147\x57\151\x64\164\x68").value,10);q.config.imagesMaxHeight=parseInt(t.selectSingleNode(v+"\100\151\x6d\x67\110\145\x69\x67\x68\x74").value,10);u=t.selectSingleNode(v+"\100\165\x70\154\x6f\141\144\x4d\141\x78\x53\x69\172\145");q.config.uploadMaxSize=u?parseInt(u.value,10):0;u=t.selectSingleNode(v+"\x40\x75\x70\x6c\157\141\144\x43\150\145\143\x6b\111\x6d\141\147\145\x73");q.config.uploadCheckImages=u?u.value=='true':false;var w=t.selectSingleNode(v+"\100\x70\154\165\x67\x69\156\163"),x=w&&w.value;if(x&&x.length)m.load(x.split(','),function(y){var z=[],A=[],B=[];for(var C in y){var D=y[C],E=D.lang,F=m.getPath(C),G=null;if(!q.plugins[C])q.plugins[C]=y[C];else continue;y[C].name=C;D.pathName=F;if(E){G=i.indexOf(E,q.langCode)>=0?q.langCode:E[0];if(!D.lang[G])B.push(a.getUrl(F+'lang/'+G+'.js'));else{i.extend(q.lang,D.lang[G]);G=null;}}A.push(G);z.push(D);}a.ec.load(B,function(){var H=['eK','bz','gr'];for(var I=0;I0){var s=q.toLowerCase().split(',');for(var t=0;t\|]/};m.add('folder',{bM:['resource','connector','acl'],bz:function(s){s.folders=[];s.aV=null;s.on('resourcesReceived',function y(t){var u=[],v=t.data.hK;for(var w=0;w
'+''+'';a.log('[THEME] DOM flush using document.write');p.document.$.write(y);function z(){if(f.ie6Compat)p.layout.oG=p.document.getWindow().eR();};p.cr('themeLoaded');p.cr('uiReady',function(){z();p.cr('appReady',function(){z();if(f.ie8){var A=p.document.$,B;if(A.documentMode)B=A.documentMode;else{B=5;if(A.compatMode)if(A.compatMode=='CSS1Compat')B=7;}if(B<8){var C='Forced IE compatibility mode! CKFinder may not look as intended.',D=p.plugins.tools;D.showTool(D.addTool(C));}}if(f.ie6Compat)p.document.getWindow().on('resize',z);p.document.getWindow().on('resize',function(){p.layout.ea.call(p.layout);});var E;function F(){E=E||p.document.eD().eG('link').getItem(0);var G=0;if(E)try{if(E.$.sheet&&E.$.sheet.cssRules.length>0)G=1;else if(E.$.styleSheet&&E.$.styleSheet.cssText.length>0)G=1;else if(E.$.innerHTML&&E.$.innerHTML.length>0)G=1;}catch(H){}if(!G){window.setTimeout(F,250);return;}if(f.ie6Compat){z();p.layout.ea();setTimeout(function(){p.layout.ea();},500);}else{p.layout.ea(true);setTimeout(function(){p.document.getById('ckfinder').removeStyle('visibility');});}return undefined;};F();});});},pu:function(p){var q=i.getNextNumber(),r=k.kE(['
X
',g?'':'','
'].join('').replace(/#/g,'_'+q).replace(/%/g,'cke_dialog_'),a.document),s=r.getChild([0,0,0,0,0]),t=s.getChild(0),u=s.getChild(1);t.unselectable();u.unselectable();return{element:r,bO:{dialog:r.getChild(0),title:t,close:u,tabs:s.getChild(2),contents:s.getChild([3,0,0,0]),footer:s.getChild(4)}};},fH:function(p){var q=p.container,r=p.ia;if(q)q.remove();for(var s=0;r&&s=0?'&':'?')+'t='+this.jY;return i;}},g=window.CKFINDER_GETURL;if(g){var h=f.getUrl;f.getUrl=function(i){return g.call(f,i)||h.call(f,i);};}return f;})();function b(f){return a.instances[f];};var c={callback:1,selectThumbnailActionFunction:1,selectActionFunction:1};a.jd=function(){var h=this;var f={};for(var g in h){if(!h.hasOwnProperty(g))continue;if(typeof h[g]=='function'&& !c[g]||typeof h[g]=='undefined')continue;f[g]=h[g];}if(h.callback)f.callback=h.callback;return f;};a.lj=function(f){var i=this;f=f||i.basePath;var g='';if(!f||f.length===0)f=CKFinder.DEFAULT_basePath;if(f.substr(f.length-1,1)!='/')f+='/';f+='ckfinder.html';var h;if(i.hh){h=i.hh;if(typeof h=='function')h=h.toString().match(/function ([^(]+)/)[1];g+='?action=js&func='+h;}if(i.jx){g+=g?'&':'?';g+='data='+encodeURIComponent(i.jx);}if(i.disableThumbnailSelection){g+=g?'&':'?';g+='dts=1';}else if(i.lH||i.hh){h=i.lH||i.hh;if(typeof h=='function')h=h.toString().match(/function ([^(]+)/)[1];g+=g?'&':'?';g+='thumbFunc='+h;if(i.nm)g+='&tdata='+encodeURIComponent(i.nm);else if(!i.lH&&i.jx)g+='&tdata='+encodeURIComponent(i.jx);}if(i.startupPath){g+=g?'&':'?';g+='start='+encodeURIComponent(i.startupPath+(i.startupFolderExpanded?':1':':0'));}if(!i.rememberLastFolder){g+=g?'&':'?';g+='rlf=0';}if(i.id){g+=g?'&':'?';g+='id='+encodeURIComponent(i.id);}if(i.skin){g+=g?'&':'?';g+='skin='+encodeURIComponent(i.skin);}return f+g;};function d(f){var i=this;i.id=f.name;var g=f.element.getDocument().getWindow().$,h=a.oC.getWindow().$;i.inPopup= ! !(g&&g.opener);i.inIframe= !i.inPopup&&g!=h.top&&g.frameElement.nodeName.toLowerCase()=='iframe';i.inFrame= !i.inPopup&&g!=h.top&&g.frameElement.nodeName.toLowerCase()=='frame';i.inUrlPopup= ! !(i.inPopup&&h.opener);};function e(f,g,h){g.on('appReady',function(i){i.removeListener();f.document=g.document.$;f.folders=g.folders;f.files=g.aG['filesview.filesview'].data().files;f.basketFiles=g.basketFiles;f.resourceTypes=g.resourceTypes;f.connector=g.connector;f.lang=g.lang;f.langCode=g.langCode;f.config=g.config;g.aG['foldertree.foldertree'].on('afterAddFolder',function(j){j.removeListener();if(h)h(f);},f);},f,null,999);};d.prototype={_:{},addFileContextMenuOption:function(f,g,h){var i=b(this.id),j='FileContextMenu_'+f.command;i.bD(j,{exec:function(k){var l=k.aG['filesview.filesview'].tools.dH();g(k.cg,l);}});f.command=j;if(!f.group)f.group='file1';i.gp(j,f);i.aG['filesview.filesview'].on('beforeContextMenu',function m(k){if(h){var l=h(this.tools.dH());if(l)k.data.bj[j]=l== -1?a.aY:a.aS;}else k.data.bj[j]=a.aS;});},disableFileContextMenuOption:function(f,g){var h=b(this.id),i=g?'FileContextMenu_'+f:f,j=function l(k){delete k.data.bj[i];};h.aG['filesview.filesview'].on('beforeContextMenu',j);return function(){h.aG['filesview.filesview'].removeListener('beforeContextMenu',j);};},addFolderContextMenuOption:function(f,g,h){var i=b(this.id),j='FolderContextMenu_'+f.command;i.bD(j,{exec:function(k){g(k.cg,k.aV);}});f.command=j;if(!f.group)f.group='folder1';i.gp(j,f);i.aG['foldertree.foldertree'].on('beforeContextMenu',function m(k){if(h){var l=h(this.app.aV);if(l)k.data.bj[j]=l== -1?a.aY:a.aS;}else k.data.bj[j]=a.aS;});},disableFolderContextMenuOption:function(f,g){var h=b(this.id),i=g?'FolderContextMenu_'+f:f,j=function l(k){delete k.data.bj[i];};h.aG['foldertree.foldertree'].on('beforeContextMenu',j);return function(){h.aG['foldertree.foldertree'].removeListener('beforeContextMenu',j);};},getSelectedFile:function(){return b(this.id).aG['filesview.filesview'].tools.dH();},getSelectedFolder:function(){return b(this.id).aV;},setUiColor:function(f){return b(this.id).setUiColor(f);},destroy:function(f){b(this.id).destroy();f&&f();},openDialog:function(f,g){var j=this;var h=new a.dom.document(window.document).eD(),i=b(j.id).document.getWindow();if(j.inFrame||j.inPopup||j.inIframe)a.document=b(j.id).document;return b(j.id).openDialog(f,g,h);},openMsgDialog:function(f,g){b(this.id).msgDialog(f,g);},openConfirmDialog:function(f,g,h){b(this.id).fe(f,g,h);},openInputDialog:function(f,g,h,i){b(this.id).hs(f,g,h,i);},addTool:function(f){return b(this.id).plugins.tools.addTool(f);},addToolPanel:function(f){return b(this.id).plugins.tools.addToolPanel(f);},removeTool:function(f){b(this.id).plugins.tools.removeTool(f);},showTool:function(f){b(this.id).plugins.tools.showTool(f);},hideTool:function(f){b(this.id).plugins.tools.hideTool(f);},getResourceType:function(f){return b(this.id).getResourceType(f);},log:function(f){a.log.apply(a.log,arguments);},getLog:function(){return a.mZ();},emptyBasket:function(){b(this.id).execCommand('TruncateBasket');},replaceUploadForm:function(f,g,h,i){var j=b(this.id);if(!i)i=10;if(i>=(j.dC||20))return;j.dC=i;j.aG['formpanel.formpanel'].on('beforeUploadFileForm',function(k){if(k.data.step!=2)return;if(i>j.dC)return;k.cancel(true);var l=this.data(),m=k.data.folder;try{if(l.dc=='upload')this.oW('requestUnloadForm',function(){this.app.cS('upload').bR(a.aS);});else{if(this.data().dc)this.oW('requestUnloadForm');if(!h)this.eh.removeClass('show_border');this.oW('requestLoadForm',{html:f,command:'upload'});g&&g();}}catch(n){this.oW('failedUploadFileForm',k.data);this.oW('afterUploadFileForm',k.data);throw a.ba(n);}});return{hide:function(){j.oW('requestUnloadForm',function(){j.cS('upload').bR(a.aS);});}};},resizeFormPanel:function(f){var g=b(this.id);if(typeof f=='undefined'){g.document.getById('panel_view').setStyle('height','');g.document.getById('panel_widget').setStyle('height','');}else{var h=Math.min(f,Math.max(90,g.document.getById('main_container').$.offsetHeight-300));g.document.getById('panel_view').setStyle('height',h+'px');g.document.getById('panel_widget').setStyle('height',h-3+'px');}g.layout.ea(true);},refreshOpenedFolder:function(){var f=b(this.id),g=f.aG['filesview.filesview'].tools.currentFolder();f.oW('requestSelectFolder',{folder:g});},selectFile:function(f){var g=b(this.id);g.oW('requestSelectFile',{file:f,scrollTo:1});},closePopup:function(){if(!this.inPopup)return;b(this.id).element.getDocument().getWindow().$.close();},openFolder:function(f,g){var h=b(this.id);g=g.replace(/\/$/,'');f=f.toLowerCase();for(var i=0;i');g=a.tools.extend(a.jd.call(this),g,true);var i=a.replace(h,g,CKFinder);this.api=i.cg;return i.cg;},appendTo:function(g,h){h=a.tools.extend(a.jd.call(this),h,true);var i=a.appendTo(g,h,CKFinder);this.api=i.cg;return i.cg;},replace:function(g,h){h=a.tools.extend(a.jd.call(this),h,true);var i=a.replace(g,h,CKFinder);this.api=i.cg;return i.cg;},popup:function(g,h){var q=this;g=g||'80%';h=h||'70%';if(typeof g=='string'&&g.length>1&&g.substr(g.length-1,1)=='%')g=parseInt(window.screen.width*parseInt(g,10)/100,10);if(typeof h=='string'&&h.length>1&&h.substr(h.length-1,1)=='%')h=parseInt(window.screen.height*parseInt(h,10)/100,10);if(g<200)g=200;if(h<200)h=200;var i=parseInt((window.screen.height-h)/2,10),j=parseInt((window.screen.width-g)/2,10),k='location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,width='+g+',height='+h+',top='+i+',left='+j,l=a.env.webkit?'about:blank':'',m=window.open(l,'CKFinderpopup',k,true);if(!m)return false;q.width=q.height='100%';var n='CKFinder 2',o=new a.dom.document(m.document);o.$.open();if(a.env.isCustomDomain())o.$.domain=window.document.domain;o.$.write(n);o.$.close();try{var p=navigator.userAgent.toLowerCase();if(p.indexOf(' chrome/18')== -1){m.moveTo(j,i);m.resizeTo(g,h);}m.focus();return q.appendTo(o.bH());}catch(r){return q.appendTo(o.bH());}return false;}};CKFinder._={};CKFinder._.instanceConfig=[];CKFinder.lang={};CKFinder.version='2.2.1';CKFinder.revision='2206';CKFinder.addPlugin=function(g,h,i){var j={bM:i||[]};if(typeof h=='function')h={appReady:h};for(var k in h){if(!h.hasOwnProperty(k))continue;if(k!='connectorInitialized'&&k!='uiReady')j[k]=h[k];}j.bz=function(l){if(l.config.readOnly&&j.readOnly===false)return null;if(h.connectorInitialized)l.on('connectorInitialized',function(m){var n=h.connectorInitialized;if(n)n.call(n,l.cg,m.data.xml);},null,null,1000);if(h.connectorResponse)l.on('connectorResponse',function(m){var n=h.connectorResponse;if(n)n.call(n,l.cg,m.data.xml);});if(h.galleryCallback)l.on('launchGallery',function(m){var n=h.galleryCallback;if(n)m.data.bx=n.call(n,l.cg,m.data.selected,m.data.files);});if(h.uiReady)l.on('uiReady',function(){var m=h.uiReady;m.call(m,l.cg);},null,null,1000);if(h.appReady)l.on('appReady',function(){var m=h.appReady;m.call(m,l.cg);},null,null,1000);};a.plugins.add(g,j);};CKFinder.getPluginPath=function(g){return a.plugins.getPath(g);};CKFinder.addExternalPlugin=function(g,h,i){a.plugins.tR(g,h,i);};CKFinder.setPluginLang=function(g,h,i){a.plugins.rX(g,h,i);};CKFinder.dialog={add:function(g,h){if(typeof h=='function')h=a.tools.override(h,function(i){return function(j){return i(j.cg);};});a.dialog.add(g,h);}};CKFinder.tools={};CKFinder.env={};CKFinder.dom={};CKFinder.create=function(g,h,i,j,k){var l;if(g!==null&&typeof g==='object'){l=new CKFinder();for(var m in g)l[m]=g[m];}else{l=new CKFinder();l.basePath=g;if(h)l.width=h;if(i)l.height=h;if(j)l.selectActionFunction=j;if(k)l.callback=k;}return l.create();};CKFinder.popup=function(g,h,i,j,k){var l;if(g!==null&&typeof g==='object'){l=new CKFinder();for(var m in g)l[m]=g[m];}else{l=new CKFinder();l.basePath=g;if(j)l.selectActionFunction=j;if(k)l.callback=k;}return l.popup(h,i);};CKFinder.setupFCKeditor=function(g,h,i,j){var k,l;if(h!==null&&typeof h==='object'){l=f(h);k=new CKFinder();for(var m in h){k[m]=h[m];if(m=='width'){var n=k[m]||800;if(typeof n=='string'&&n.length>1&&n.substr(n.length-1,1)=='%')n=parseInt(window.screen.width*parseInt(n,10)/100,10);g.Config.LinkBrowserWindowWidth=n;g.Config.ImageBrowserWindowWidth=n;g.Config.FlashBrowserWindowWidth=n;}else if(m=='height'){var o=k[m]||600;if(typeof o=='string'&&o.length>1&&o.substr(o.length-1,1)=='%')o=parseInt(window.screen.height*parseInt(o,10)/100,10);g.Config.LinkBrowserWindowHeight=o;g.Config.ImageBrowserWindowHeight=o;g.Config.FlashBrowserWindowHeight=o;}}}else{k=new CKFinder();k.basePath=h;}var p=k.basePath;if(p.substr(0,1)!='/'&&p.indexOf('://')== -1)p=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+p;p=a.lj.call(k,p);var q=p.indexOf('?')!== -1?'&':'?';if(l){p+=q+'configId='+l;q='&';}g.Config.LinkBrowserURL=p;g.Config.ImageBrowserURL=p+q+'type='+(i||'Images');g.Config.FlashBrowserURL=p+q+'type='+(j||'Flash');var r=p.substring(0,1+p.lastIndexOf('/'));g.Config.LinkUploadURL=r+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';g.Config.ImageUploadURL=r+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(i||'Images');g.Config.FlashUploadURL=r+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(j||'Flash');};CKFinder.setupCKEditor=function(g,h,i,j){if(g===null){for(var k in CKEDITOR.instances)CKFinder.setupCKEditor(CKEDITOR.instances[k],h,i,j);CKEDITOR.on('instanceCreated',function(t){CKFinder.setupCKEditor(t.editor,h,i,j);});return;}var l,m;if(h!==null&&typeof h==='object'){m=f(h);l=new CKFinder();for(var n in h){l[n]=h[n];if(n=='width'){var o=l[n]||800;if(typeof o=='string'&&o.length>1&&o.substr(o.length-1,1)=='%')o=parseInt(window.screen.width*parseInt(o,10)/100,10);g.config.filebrowserWindowWidth=o;}else if(n=='height'){var p=l[n]||600;if(typeof p=='string'&&p.length>1&&p.substr(p.length-1,1)=='%')p=parseInt(window.screen.height*parseInt(p,10)/100,10);g.config.filebrowserWindowHeight=o;}}}else{l=new CKFinder();l.basePath=h;}var q=l.basePath;if(q.substr(0,1)!='/'&&q.indexOf('://')== -1)q=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+q;q=a.lj.call(l,q);var r=q.indexOf('?')!== -1?'&':'?';if(m){q+=r+'configId='+m;r='&';}g.config.filebrowserBrowseUrl=q;g.config.filebrowserImageBrowseUrl=q+r+'type='+(i||'Images');g.config.filebrowserFlashBrowseUrl=q+r+'type='+(j||'Flash');var s=q.substring(0,1+q.lastIndexOf('/'));g.config.filebrowserUploadUrl=s+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';g.config.filebrowserImageUploadUrl=s+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(i||'Images');g.config.filebrowserFlashUploadUrl=s+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(j||'Flash');};})();if(!a.event){a.event=function(){};a.event.du=function(f,g){var h=a.event.prototype;for(var i in h){if(f[i]==undefined)f[i]=h[i];}};a.event.prototype=(function(){var f=function(h){var i=h.kk&&h.kk()||h._||(h._={});return i.cC||(i.cC={});},g=function(h){this.name=h;this.dF=[];};g.prototype={mi:function(h){for(var i=0,j=this.dF;i=0;r--){if(o[r].nT<=l){o.splice(r+1,0,q);return;}}o.unshift(q);}},oW:(function(){var h=false,i=function(){h=true;},j=false,k=function(l){j=l?2:true;};return function w(l,m,n,o){if(typeof m=='function'){o=m;m=null;}else if(typeof n=='function'){o=n;n=null;}if(l!='mousemove')a.log('[EVENT] '+l,m,o);var p=f(this)[l],q=h,r=j;h=j=false;if(p){var s=p.dF;if(s.length){s=s.slice(0);for(var t=0;t=0)j.dF.splice(k,1);}},mF:function(){var h=f(this);for(var i=0;i0;}};})();}if(!a.application){a.kZ=0;a.fc=1;a.qE=2;a.application=function(f,g,h,i){var j=this;j._={instanceConfig:f,element:g};j.ff=h||a.kZ;a.event.call(j);j.iI(i);};a.application.replace=function(f,g,h){var i=f;if(typeof i!='object'){i=document.getElementById(f);if(!i){var j=0,k=document.getElementsByName(f);while((i=k[j++])&&i.tagName.toLowerCase()!='textarea'){}}if(!i)throw '[CKFINDER.application.replace] The element with id or name "'+f+'" was not found.';}return new a.application(g,i,a.fc,h);};a.application.appendTo=function(f,g,h){if(typeof f!='object'){f=document.getElementById(f);if(!f)throw '[CKFINDER.application.appendTo] The element with id "'+f+'" was not found.';}return new a.application(g,f,a.qE,h);};a.application.prototype={iI:function(){var f=a.application.eb||(a.application.eb=[]);f.push(this);},oW:function(f,g,h){return a.event.prototype.oW.call(this,f,g,this,h);},cr:function(f,g,h){return a.event.prototype.cr.call(this,f,g,this,h);}};a.event.du(a.application.prototype,true);}if(!a.env){a.env=(function(){var f=navigator.userAgent.toLowerCase(),g=window.opera,h={ie:
+/*@cc_on!@*/false,opera: ! !g&&g.version,webkit:f.indexOf(' applewebkit/')> -1,air:f.indexOf(' adobeair/')> -1,mac:f.indexOf('macintosh')> -1,quirks:document.compatMode=='BackCompat',isCustomDomain:function(){return this.ie&&document.domain!=window.location.hostname;}};h.gecko=navigator.product=='Gecko'&& !h.webkit&& !h.opera;h.chrome=false;h.safari=false;if(h.webkit)if(f.indexOf(' chrome/')> -1)h.chrome=true;else h.safari=true;var i=0;if(h.ie){i=parseFloat(f.match(/msie (\d+)/)[1]);h.ie8= ! !document.documentMode;h.ie8Compat=document.documentMode==8;h.ie7Compat=i==7&& !document.documentMode||document.documentMode==7;h.ie6Compat=i<7||h.quirks;}if(h.gecko){var j=f.match(/rv:([\d\.]+)/);if(j){j=j[1].split('.');i=j[0]*10000+(j[1]||0)*100+ +(j[2]||0);}h.isMobile=f.indexOf('fennec')> -1;}if(h.opera){i=parseFloat(g.version());h.isMobile=f.indexOf('opera mobi')> -1;}if(h.air)i=parseFloat(f.match(/ adobeair\/(\d+)/)[1]);if(h.webkit){i=parseFloat(f.match(/ applewebkit\/(\d+)/)[1]);h.isMobile=f.indexOf('mobile')> -1;}h.version=i;h.isCompatible=h.ie&&i>=6||h.gecko&&i>=10801||h.opera&&i>=9.5||h.air&&i>=1||h.webkit&&i>=522||false;h.cssClass='browser_'+(h.ie?'ie':h.gecko?'gecko':h.opera?'opera':h.air?'air':h.webkit?'webkit':'unknown');if(h.quirks)h.cssClass+=' browser_quirks';if(h.ie){h.cssClass+=' browser_ie'+(h.version<7?'6':h.version>=8?'8':'7');if(h.quirks)h.cssClass+=' browser_iequirks';}if(h.gecko&&i<10900)h.cssClass+=' browser_gecko18';return h;})();CKFinder.env=a.env;}var f=a.env;var g=f.ie;if(a.status=='unloaded')(function(){a.event.du(a);a.dO=function(){if(a.status!='basic_ready'){a.dO.qr=true;return;}delete a.dO;var i=document.createElement('script');i.type='text/javascript';i.src=a.basePath+'ckfinder.js';document.getElementsByTagName('head')[0].appendChild(i);};a.mS=0;a.uQ='ckfinder';a.uM=true;var h=function(i,j,k,l){if(f.isCompatible){if(a.dO)a.dO();var m=k(i,j,l);a.add(m);return m;}return null;};a.replace=function(i,j,k){return h(i,j,a.application.replace,k);};a.appendTo=function(i,j,k){return h(i,j,a.application.appendTo,k);};a.add=function(i){var j=this._.io||(this._.io=[]);j.push(i);};a.uL=function(){var i=document.getElementsByTagName('textarea');for(var j=0;j=200&&n.status<300||n.status==304||n.status===0||n.status==1223);},k=function(n){if(j(n))return n.responseText;return null;},l=function(n){if(j(n)){var o=n.responseXML,p=new a.xml(o&&o.firstChild&&o.documentElement&&o.documentElement.nodeName!='parsererror'?o:n.responseText.replace(/^[^<]+/,'').replace(/[^>]+$/,''));if(p&&p.mq&&p.mq.documentElement&&p.mq.documentElement.nodeName!='parsererror'&&p.mq.documentElement.nodeName!='html'&&p.mq.documentElement.nodeName!='br')return p;}var q=a.nG||a.jt,r=n.responseText,s=q.lang.ErrorMsg[!r?'XmlEmpty':'XmlError']+' ';if(p&&p.mq)if(p.mq.parseError&&p.mq.parseError.reason)s+=p.mq.parseError.reason;else if(p.mq.documentElement&&p.mq.documentElement.nodeName=='parsererror')s+=p.mq.documentElement.textContent;if(!r)q.msgDialog(q.lang.SysErrorDlgTitle,s);else{if(/text\/plain/.test(n.getResponseHeader('Content-Type'))||/');r='
'+r));}return{};},m=function(n,o,p,q){var r= ! !o;a.log('[AJAX] '+(q?'POST':'GET')+' '+n);var s=i();if(!s)return null;if(!q)s.open('GET',n,r);else s.open('POST',n,r);if(r)s.onreadystatechange=function(){if(s.readyState==4){o(p(s));s=null;}};if(q){s.setRequestHeader('Content-type','application/x-www-form-urlencoded');s.send(q);}else s.send(null);return r?'':p(s);};return{load:function(n,o,p){return m(n,o,k,p);},loadXml:function(n,o,p){return m(n,o,l,p);}};})();CKFinder.ajax=a.ajax;(function(){var i=[];a.tools={arrayCompare:function(j,k){if(!j&& !k)return true;if(!j|| !k||j.length!=k.length)return false;for(var l=0;l'?function(o){return k(o).replace(/ /gi,'\n');}:k,m=k('>')=='>'?function(o){return l(o).replace(/>/g,'>');}:l,n=k(' ')==' '?function(o){return m(o).replace(/ /g,' ');}:m;this.htmlEncode=n;return this.htmlEncode(j);},getNextNumber:(function(){var j=0;return function(){return++j;};})(),override:function(j,k){return k(j);},setTimeout:function(j,k,l,m,n){if(!n)n=window;if(!l)l=n;return n.setTimeout(function(){if(m)j.apply(l,[].concat(m));else j.apply(l);},k||0);},trim:(function(){var j=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(k){return k?k.replace(j,''):null;};})(),ltrim:(function(){var j=/^[ \t\n\r]+/g;return function(k){return k?k.replace(j,''):null;};})(),rtrim:(function(){var j=/[ \t\n\r]+$/g;return function(k){return k?k.replace(j,''):null;};})(),indexOf:Array.prototype.indexOf?function(j,k){return j.indexOf(k);}:function(j,k){for(var l=0,m=j.length;l1?m[1]:null;},htmlEncode:function(j){if(!j)return '';j=typeof j!='string'?j.toString():j;j=j.replace(/&/g,'&');j=j.replace(//g,'>');return j;},setCookie:function(j,k,l){document.cookie=j+'='+k+(!l?'; expires=Thu, 6 Oct 2016 01:00:00 UTC; path=/':'');},getCookie:function(j){var k=document.cookie.match(new RegExp('(^|\\s|;)'+j+'=([^;]*)'));return k&&k.length>0?k[2]:'';},mH:function(j){if(g){j.$.onfocusin=function(){j.addClass('focus_inside');};j.$.onfocusout=function(){j.removeClass('focus_inside');};}else{j.$.addEventListener('focus',function(){j.addClass('focus_inside');},true);j.$.addEventListener('blur',function(){j.removeClass('focus_inside');},true);}},formatSize:function(j,k,l){if(j==0)return '0';if(j<1)return k.Kb.replace('%1',1);if(j<1024){if(!l)j=j.toFixed(2);return k.Kb.replace('%1',j);}if(j<1048576)return k.Mb.replace('%1',(j/1024).toFixed(2));return k.Gb.replace('%1',(j/1048576).toFixed(2));},formatSpeed:function(j,k){return k.SizePerSecond.replace('%1',this.formatSize(j,k));}};CKFinder._.callFunction=a.tools.callFunction;CKFinder.tools=a.tools;})();var i=a.tools;h.event=function(j){this.$=j;};h.event.prototype={oV:function(){return this.$.keyCode||this.$.which;},db:function(){var k=this;var j=k.oV();if(k.$.ctrlKey||k.$.metaKey)j+=a.bP;if(k.$.shiftKey)j+=a.dy;if(k.$.altKey)j+=a.eJ;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;},bK:function(){var j=this.$.target||this.$.srcElement;return j?new h.bi(j):null;},getButton:function(){if(this.$.which)return this.$.which;switch(this.$.button){case 1:return 1;case 4:return 2;case 2:return 3;}},ov:function(){return 1==this.getButton();}};a.bP=1000;a.dy=2000;a.eJ=4000;h.dE=function(j){if(j)this.$=j;};h.dE.prototype=(function(){var j=function(k,l){return function(m){if(typeof a!='undefined')k.oW(l,new h.event(m));};};return{kk:function(){var k;if(!(k=this.dw('_')))this.fL('_',k={});return k;},on:function(k){var n=this;var l=n.dw('_cke_nativeListeners');if(!l){l={};n.fL('_cke_nativeListeners',l);}if(!l[k]){var m=l[k]=j(n,k);if(n.$.addEventListener)n.$.addEventListener(k,m,! !a.event.jP);else if(n.$.attachEvent)n.$.attachEvent('on'+k,m);}return a.event.prototype.on.apply(n,arguments);},removeListener:function(k){var n=this;a.event.prototype.removeListener.apply(n,arguments);if(!n.rC(k)){var l=n.dw('_cke_nativeListeners'),m=l&&l[k];if(m){if(n.$.removeEventListener)n.$.removeEventListener(k,m,false);else if(n.$.detachEvent)n.$.detachEvent('on'+k,m);delete l[k];}}}};})();(function(j){var k={};j.equals=function(l){return l&&l.$===this.$;};j.fL=function(l,m){var n=this.iY(),o=k[n]||(k[n]={});o[l]=m;return this;};j.dw=function(l){var m=this.$.dj,n=m&&k[m];return n&&n[l];};j.jF=function(l){var m=this.$.dj,n=m&&k[m],o=n&&n[l];if(typeof o!='undefined')delete n[l];return o||null;};j.iY=function(){return this.$.dj||(this.$.dj=i.getNextNumber());};a.event.du(j);})(h.dE.prototype);h.window=function(j){h.dE.call(this,j);};h.window.prototype=new h.dE();i.extend(h.window.prototype,{focus:function(){if(f.webkit&&this.$.parent)this.$.parent.focus();this.$.focus();},eR: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};},hV: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};}}});h.document=function(j){h.dE.call(this,j);};var j=h.document;j.prototype=new h.dE();i.extend(j.prototype,{pb:function(k){if(this.$.createStyleSheet)this.$.createStyleSheet(k);else{var l=new h.element('link');l.setAttributes({rel:'stylesheet',type:'text/css',href:k});this.eD().append(l);}},createElement:function(k,l){var m=new h.element(k,this);if(l){if(l.attributes)m.setAttributes(l.attributes);if(l.gS)m.setStyles(l.gS);}return m;},jT:function(k){return new h.text(k,this);},focus:function(){this.getWindow().focus();},getById:function(k){var l=this.$.getElementById(k);return l?new h.element(l):null;},vu:function(k,l){var m=this.$.documentElement;for(var n=0;m&&n]*>/,'');var l=m.$.ownerDocument.createElement('div');l.appendChild(m.$.cloneNode(true));return l.innerHTML;},setHtml:function(l){a.log('[DOM] DOM flush into '+this.getName());return this.$.innerHTML=l;},setText:function(l){k.prototype.setText=this.$.innerText!=undefined?function(m){a.log('[DOM] Text flush');return this.$.innerText=m;}:function(m){a.log('[DOM] Text flush');return this.$.textContent=m;};return this.setText(l);},getAttribute:(function(){var l=function(m){return this.$.getAttribute(m,2);};if(g&&(f.ie7Compat||f.ie6Compat))return function(m){var o=this;switch(m){case 'class':m='className';break;case 'tabindex':var n=l.call(o,m);if(n!==0&&o.$.tabIndex===0)n=null;return n;break;case 'checked':return o.$.checked;break;case 'style':return o.$.style.cssText;}return l.call(o,m);};else return l;})(),getChildren:function(){return new h.iT(this.$.childNodes);},getComputedStyle:g?function(l){return this.$.currentStyle[i.cssStyleToDomStyle(l)];}:function(l){return this.getWindow().$.getComputedStyle(this.$,'').getPropertyValue(l);},pf:function(){var l=a.ga[this.getName()];this.pf=function(){return l;};return l;},eG:j.prototype.eG,vp:g?function(){var l=this.$.tabIndex;if(l===0&& !a.ga.ug[this.getName()]&&parseInt(this.getAttribute('tabindex'),10)!==0)l= -1;return l;}:f.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();},dS:function(){return this.$.id||null;},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;},vm:function(){return this.$.name||null;},getName:function(){var l=this.$.nodeName.toLowerCase();if(g&& !(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(){var l=this.$.firstChild;return l?new h.bi(l):null;},dB:function(l){var m=this.$.lastChild,n=m&&new h.bi(m);if(n&&l&& !l(n))n=n.cf(l);return n;},rd:function(l){return this.$.style[i.cssStyleToDomStyle(l)];},is:function(){var l=this.getName();for(var m=0;m1||l.length==1&&l[0].nodeName!='dj';},hasAttribute:function(l){var m=this.$.attributes.getNamedItem(l);return! !(m&&m.specified);},hide:function(){this.setStyle('display','none');},jg: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));},show:function(){this.setStyles({display:'',visibility:''});},setAttribute:(function(){var l=function(m,n){this.$.setAttribute(m,n);return this;};if(g&&(f.ie7Compat||f.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 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(g&&(f.ie7Compat||f.ie6Compat))return function(m){if(m=='class')m='className';else if(m=='tabindex')m='tabIndex';l.call(this,m);};else return l;})(),uW:function(l){for(var m=0;m=100?'':'progid:DXImageTransform.Microsoft.Alpha(opacity='+l+')');}else this.setStyle('opacity',l);},unselectable:f.gecko?function(){this.$.style.MozUserSelect='none';}:f.webkit?function(){this.$.style.uE='none';}:function(){if(g||f.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';}}},vr:function(){var l=this;while(l.getName()!='html'){if(l.getComputedStyle('position')!='static')return l;l=l.getParent();}return null;},ir:function(l){var G=this;var m=0,n=0,o=G.getDocument().bH(),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(g){var x=q.gT().contains(G),y=q.bH().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).ir(l);m+=F.x;n+=F.y;}}if(!document.documentElement.getBoundingClientRect)if(f.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.eR().height,o=n* -1;if(l)o+=n;else{o+=r.$.offsetHeight||0;o+=parseInt(r.getComputedStyle('marginBottom')||0,10)||0;}var p=r.ir();o+=p.y;o=o<0?0:o;var q=m.hV().y;if(o>q||owindow.setTimeout(function(){window.close();},50);")');}return l&&new j(l.contentWindow.document);},qw:function(l,m){var s=this;var n=s.$.attributes;m=m||{};for(var o=0;o0&&m)m=m.childNodes[l.shift()];return m?new h.bi(m):null;},iu:function(){return this.$.childNodes.length;},hX:function(){this.on('contextmenu',function(l){if(!l.data.bK().hasClass('cke_enable_context_menu'))l.data.preventDefault();});},'toString':function(){return this.getName()+'#'+this.dS()+'.'+this.getAttribute('class');}});(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;p1)return;var E=new k('script');E.setAttributes({type:'text/javascript',src:C});if(p)if(g)E.$.onreadystatechange=function(){if(E.$.readyState=='loaded'||E.$.readyState=='complete'){E.$.onreadystatechange=null;a.log('[LOADED] '+C);z(C,true);}};else{E.$.onload=function(){setTimeout(function(){a.log('[LOADED] '+C);z(C,true);},0);};E.$.onerror=function(){z(C,false);};}E.appendTo(s?s:a.document.eD());};for(var B=0;B0){w(x);a.rw.load(x,function(){o[s]=1;q(r,s,t,u);});return;}o[s]=1;}t=v[t];var y=0;if(t){if(!t.iB)t.iB=[];else if(t.iB[r.name])y=1;}else y=1;if(y)u&&u();else{if(t.eb===undefined)t.eb=[];if(t.eb[r.name]===undefined)t.eb[r.name]=[];var z=t.eb[r.name];z.push(u);if(z.length>1)return;var A= !t.css|| !t.css.length,B= !t.js|| !t.js.length,C=function(){if(A&&B){t.iB[r.name]=1;for(var E=0;E\n";E.removeListener();});A=1;}if(!B){w(t.js);r.ec.load(t.js,function(){B=1;C();});}C();}};return{add:function(r,s){n[r]=s;s.fh=p[r]||(p[r]=a.getUrl('skins/'+r+'/'));},loaded:n,load:function(r,s,t){var u=r.gd,v=r.fh;if(n[u]){q(r,u,s,t);var w=n[u];}else{p[u]=v;a.ec.load(v+'skin.js',function(){q(r,u,s,t);});}}};})();a.gc=new a.fQ('gc/','theme');a.bY=function(n){if(n.bY)return n.bY;this._={jZ:{},items:{},application:n};return this;};var n=a.bY;n.prototype={add:function(o,p,q){this._.items[o]={type:p,command:q.command||null,mp:Array.prototype.slice.call(arguments,2)};},create:function(o){var t=this;var p=t._.items[o],q=p&&t._.jZ[p.type],r=p&&p.command&&t._.application.cS(p.command),s=q&&q.create.apply(t,p.mp);if(r)r.pW.push(s);return s;},kd:function(o,p){this._.jZ[o]=p;}};(function(){var o=0,p=function(){var y='ckfinder'+ ++o;return a.instances&&a.instances[y]?p():y;},q={},r=function(y){var z=y.config.customConfig;if(!z)return false;var A=q[z]||(q[z]={});if(A.fn){A.fn.call(y,y.config);if(y.config.customConfig==z|| !r(y))y.cr('customConfigLoaded');}else a.ec.load(z,function(){if(CKFinder.customConfig)A.fn=CKFinder.customConfig;else A.fn=function(){};r(y);});return true;},s=function(y,z){y.on('customConfigLoaded',function(){if(z){if(z.on)for(var A in z.on)y.on(A,z.on[A]);i.extend(y.config,z,true);delete y.config.on;}t(y);});if(z&&z.id)y.config.id=z.id;if(z&&z.customConfig!=undefined)y.config.customConfig=z.customConfig;if(!r(y))y.cr('customConfigLoaded');},t=function(y){var z=y.config.skin.split(','),A=z[0],B=a.getUrl(z[1]||'skins/'+A+'/');y.gd=A;y.fh=B;y.iy='cke_skin_'+A+' skin_'+A;y.qn=y.ox();y.on('uiReady',function(){y.document.getWindow().on('lW',function(){i.setCookie('CKFinder_UTime',Math.round(new Date().getTime()/1000),true);i.setCookie('CKFinder_UId',encodeURIComponent(y.id?y.id:location.href),true);});});y.cr('configLoaded');u(y);},u=function(y){a.lang.load(y.config.language,y.config.defaultLanguage,function(z,A){y.langCode=z;y.lang=i.prototypedCopy(A);y.lB=(function(){var B="['"+y.lang.DateAmPm.join("','")+"']",C=y.lang.DateTime.replace(/dd|mm|yyyy|hh|HH|MM|aa|d|m|yy|h|H|M|a/g,function(D){var E;switch(D){case 'd':E="day.replace(/^0/,'')";break;case 'dd':E='day';break;case 'm':E="month.replace(/^0/,'')";break;case 'mm':E='month';break;case 'yy':E='year.substr(2)';break;case 'yyyy':E='year';break;case 'H':E="hour.replace(/^0/,'')";break;case 'HH':E='hour';break;case 'h':E="( hour < 12 ? hour : ( ( hour - 12 ) + 100 ).toString().substr( 1 ) ).replace(/^0/,'')";break;case 'hh':E='( hour < 12 ? hour : ( ( hour - 12 ) + 100 ).toString().substr( 1 ) )';break;case 'M':E="minute.replace(/^0/,'')";break;case 'MM':E='minute';break;case 'a':E=B+'[ hour < 12 ? 0 : 1 ].charAt(0)';break;case 'aa':E=B+'[ hour < 12 ? 0 : 1 ]';break;default:E="'"+D+"'";}return "',"+E+",'";});C="'"+C+"'";C=C.replace(/('',)|,''$/g,'');return new Function('day','month','year','hour','minute','return ['+C+"].join('');");})();if(f.gecko&&f.version<10900&&y.lang.dir=='rtl')y.lang.dir='ltr';v(y);});},v=function(y){var z=y.config,A=z.plugins,B=z.extraPlugins,C=z.removePlugins;if(B){var D=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');A=A.replace(D,'');A+=','+B;}if(C){D=new RegExp('(?:^|,)(?:'+C.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');A=A.replace(D,'');}m.load(A.split(','),function(E){var F=[],G=[],H=[],I;if(y.config.readOnly)for(var I in E){if(E[I].readOnly===false)delete E[I];}y.plugins=E;for(I in E){var J=E[I],K=J.lang,L=m.getPath(I),M=null;E[I].name=I;J.pathName=L;if(K){M=i.indexOf(K,y.langCode)>=0?y.langCode:K[0];if(!J.lang[M])H.push(a.getUrl(L+'lang/'+M+'.js'));else{i.extend(y.lang,J.lang[M]);M=null;}}G.push(M);F.push(J);}a.ec.load(H,function(){var N=['eK','bz','gr'];for(var O=0;O');return p.querySelectorAll(u);}else alert('XPath is not supported in your browser');return r;},vB:function(o,p){var q=this.selectSingleNode(o,p),r=[];if(q){q=q.firstChild;while(q){if(q.xml)r.push(q.xml);else if(window.XMLSerializer)r.push(new XMLSerializer().serializeToString(q));q=q.nextSibling;}}return r.length?r.join(''):null;}};(function(){var o={address:1,tY:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,de:1},p={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},q=function(r){var s=r.getChildren();for(var t=0,u=s.count();t0&&C.getChild(v.startOffset-1);this._.ka=function(F,G){return(!G|| !C.equals(F))&&(!D|| !F.equals(D))&&(F.type!=a.cv||F.getName()!='body');};}var E=s?this._.ka:this._.kp;if(x)w=function(F,G){if(E(F,G)===false)return false;return x(F);};else w=E;if(this.current)u=this.current[z](false,y,w);else if(s){u=v.endContainer;if(v.endOffset>0){u=u.getChild(v.endOffset-1);if(w(u)===false)u=null;}else u=w(u)===false?null:u.hZ(true,y,w);}else{u=v.startContainer;u=u.getChild(v.startOffset);if(u){if(w(u)===false)u=null;}else u=w(v.startContainer)===false?null:v.startContainer.hL(true,y,w);}while(u&& !this._.end){this.current=u;if(!this.lf||this.lf(u)!==false){if(!t)return u;}else if(t&&this.lf)return false;u=u[z](false,y,w);}this.end();return this.current=null;};function p(s){var t,u=null;while(t=o.call(this,s))u=t;return u;};h.gm=i.createClass({$:function(s){this.mk=s;this._={};},ej:{end:function(){this._.end=1;},next:function(){return o.call(this);},previous:function(){return o.call(this,true);},sC:function(){return o.call(this,false,true)!==false;},sD:function(){return o.call(this,true,true)!==false;},uF:function(){return p.call(this);},uB:function(){return p.call(this,true);},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},r={hr:1};k.prototype.qy=function(s){var t=i.extend({},r,s||{});return q[this.getComputedStyle('display')]||t[this.getName()];};h.gm.pQ=function(s){return function(t,u){return!(t.type==a.cv&&t.qy(s));};};h.gm.us=function(){return this.pQ({br:1});};h.gm.tU=function(s){},h.gm.tW=function(s,t){function u(v){return v&&v.getName&&v.getName()=='span'&&v.hasAttribute('_fck_bookmark');};return function(v){var w,x;w=v&& !v.getName&&(x=v.getParent())&&u(x);w=s?w:w||u(v);return t^w;};};h.gm.sf=function(s){return function(t){var u=t&&t.type==a.fl&& !i.trim(t.getText());return s^u;};};})();(function(){if(f.webkit){f.hc=false;return;}var o=k.kE('',a.document);o.appendTo(a.document.eD());try{f.hc=o.getComputedStyle('border-top-color')==o.getComputedStyle('border-right-color');}catch(p){f.hc=false;}if(f.hc)f.cssClass+=' cke_hc';o.remove();})();m.load(l.pO.split(','),function(){a.status='loaded';a.oW('loaded');var o=a._.io;if(o){delete a._.io;for(var p=0;p, unavailable',confirmCancel:'Some of the options were changed. Are you sure you want to close the dialog window?',ok:'OK',cancel:'Cancel',confirmationTitle:'Confirmation',messageTitle:'Information',inputTitle:'Question',undo:'Undo',redo:'Redo',skip:'Skip',skipAll:'Skip all',makeDecision:'What action should be taken?',rememberDecision:'Remember my decision'},dir:'ltr',HelpLang:'en',LangCode:'en',DateTime:'m/d/yyyy h:MM aa',DateAmPm:['AM','PM'],FoldersTitle:'Folders',FolderLoading:'Loading...',FolderNew:'Please type the new folder name: ',FolderRename:'Please type the new folder name: ',FolderDelete:'Are you sure you want to delete the "%1" folder?',FolderRenaming:' (Renaming...)',FolderDeleting:' (Deleting...)',FileRename:'Please type the new file name: ',FileRenameExt:'Are you sure you want to change the file extension? The file may become unusable.',FileRenaming:'Renaming...',FileDelete:'Are you sure you want to delete the file "%1"?',FilesLoading:'Loading...',FilesEmpty:'The folder is empty.',FilesMoved:'File %1 moved to %2:%3.',FilesCopied:'File %1 copied to %2:%3.',BasketFolder:'Basket',BasketClear:'Clear Basket',BasketRemove:'Remove from Basket',BasketOpenFolder:'Open Parent Folder',BasketTruncateConfirm:'Do you really want to remove all files from the basket?',BasketRemoveConfirm:'Do you really want to remove the file "%1" from the basket?',BasketEmpty:'No files in the basket, drag and drop some.',BasketCopyFilesHere:'Copy Files from Basket',BasketMoveFilesHere:'Move Files from Basket',BasketPasteErrorOther:'File %s error: %e',BasketPasteMoveSuccess:'The following files were moved: %s',BasketPasteCopySuccess:'The following files were copied: %s',Upload:'Upload',UploadTip:'Upload New File',Refresh:'Refresh',Settings:'Settings',Help:'Help',HelpTip:'Help',Select:'Select',SelectThumbnail:'Select Thumbnail',View:'View',Download:'Download',NewSubFolder:'New Subfolder',Rename:'Rename',Delete:'Delete',CopyDragDrop:'Copy File Here',MoveDragDrop:'Move File Here',RenameDlgTitle:'Rename',NewNameDlgTitle:'New Name',FileExistsDlgTitle:'File Already Exists',SysErrorDlgTitle:'System Error',FileOverwrite:'Overwrite',FileAutorename:'Auto-rename',OkBtn:'OK',CancelBtn:'Cancel',CloseBtn:'ns',UploadTitle:'Upload New File',UploadSelectLbl:'Select a file to upload',UploadProgressLbl:'(Upload in progress, please wait...)',UploadBtn:'Upload Selected File',UploadBtnCancel:'Cancel',UploadNoFileMsg:'Please select a file from your computer.',UploadNoFolder:'Please select a folder before uploading.',UploadNoPerms:'File upload not allowed.',UploadUnknError:'Error sending the file.',UploadExtIncorrect:'File extension not allowed in this folder.',UploadLabel:'Files to Upload',UploadTotalFiles:'Total Files:',UploadTotalSize:'Total Size:',UploadSend:'Upload',UploadAddFiles:'Add Files',UploadClearFiles:'Clear Files',UploadCancel:'Cancel Upload',UploadRemove:'Remove',UploadRemoveTip:'Remove !f',UploadUploaded:'Uploaded !n%',UploadProcessing:'Processing...',SetTitle:'Settings',SetView:'View:',SetViewThumb:'Thumbnails',SetViewList:'List',SetDisplay:'Display:',SetDisplayName:'File Name',SetDisplayDate:'Date',SetDisplaySize:'File Size',SetSort:'Sorting:',SetSortName:'by File Name',SetSortDate:'by Date',SetSortSize:'by Size',SetSortExtension:'by Extension',FilesCountEmpty:'',FilesCountOne:'1 file',FilesCountMany:'%1 files',Kb:'%1 KB',Mb:'%1 MB',Gb:'%1 GB',SizePerSecond:'%1/s',ErrorUnknown:'It was not possible to complete the request. (Error %1)',Errors:{10:'Invalid command.',11:'The resource type was not specified in the request.',12:'The requested resource type is not valid.',102:'Invalid file or folder name.',103:'It was not possible to complete the request due to authorization restrictions.',104:'It was not possible to complete the request due to file system permission restrictions.',105:'Invalid file extension.',109:'Invalid request.',110:'Unknown error.',115:'A file or folder with the same name already exists.',116:'Folder not found. Please refresh and try again.',117:'File not found. Please refresh the files list and try again.',118:'Source and target paths are equal.',201:'A file with the same name is already available. The uploaded file was renamed to "%1".',202:'Invalid file.',203:'Invalid file. The file size is too big.',204:'The uploaded file is corrupt.',205:'No temporary folder is available for upload in the server.',206:'Upload cancelled due to security reasons. The file contains HTML-like data.',207:'The uploaded file was renamed to "%1".',300:'Moving file(s) failed.',301:'Copying file(s) failed.',500:'The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.',501:'The thumbnails support is disabled.'},ErrorMsg:{pg:'The file name cannot be empty.',FileExists:'File %s already exists.',FolderEmpty:'The folder name cannot be empty.',oP:'The file name cannot contain any of the following characters: \n\\ / : * ? " < > |',FolderInvChar:'The folder name cannot contain any of the following characters: \n\\ / : * ? " < > |',oo:'It was not possible to open the file in a new window. Please configure your browser and disable all popup blockers for this site.',XmlError:'It was not possible to properly load the XML response from the web server.',XmlEmpty:'It was not possible to load the XML response from the web server. The server returned an empty response.',XmlRawResponse:'Raw response from the server: %s'},Imageresize:{dialogTitle:'Resize %s',sizeTooBig:'Cannot set image height or width to a value bigger than the original size (%size).',resizeSuccess:'Image resized successfully.',thumbnailNew:'Create a new thumbnail',thumbnailSmall:'Small (%s)',thumbnailMedium:'Medium (%s)',thumbnailLarge:'Large (%s)',newSize:'Set a new size',width:'Width',height:'Height',invalidHeight:'Invalid height.',invalidWidth:'Invalid width.',invalidName:'Invalid file name.',newImage:'Create a new image',noExtensionChange:'File extension cannot be changed.',imageSmall:'Source image is too small.',contextMenuName:'Resize',lockRatio:'Lock ratio',resetSize:'Reset size'},Fileeditor:{save:'Save',fileOpenError:'Unable to open file.',fileSaveSuccess:'File saved successfully.',contextMenuName:'Edit',loadingFile:'Loading file, please wait...'},Maximize:{maximize:'Maximize',minimize:'Minimize'},Gallery:{current:'Image {current} of {total}'}};(function(){var p=1,q=2,r=4,s=8,t=16,u=32,v=64,w=128;a.aL.Acl=function(x){var y=this;if(!x)x=0;y.folderView=(x&p)==p;y.folderCreate=(x&q)==q;y.folderRename=(x&r)==r;y.folderDelete=(x&s)==s;y.fileView=(x&t)==t;y.fileUpload=(x&u)==u;y.fileRename=(x&v)==v;y.fileDelete=(x&w)==w;};m.add('acl');})();(function(){m.add('connector',{bM:[],bz:function(q){q.on('appReady',function(){q.connector=new a.aL.Connector(q);var r=q.config.resourceType,s=r?{type:r}:null;q.connector.sendCommand('Init',s,function(t){var u;if(t.checkError())return;var v="\x43\157\156\x6e\145\x63\164\157\x72\057\103\x6f\x6e\156\145\143\164\157\x72\111\156\x66\157\057";a.ed=t.selectSingleNode(v+"\x40\x73").value;a.bF=t.selectSingleNode(v+"\100\143").value+'----';q.config.thumbsEnabled=t.selectSingleNode(v+"\x40\x74\x68\x75\x6d\x62\x73\105\x6e\141\x62\154\x65\x64").value=='true';q.config.thumbsDirectAccess=false;if(q.config.thumbsEnabled){u=t.selectSingleNode(v+"\100\164\150\165\155\142\x73\x55\x72\x6c");if(u)q.config.thumbsUrl=u.value;u=t.selectSingleNode(v+"\100\x74\x68\x75\155\x62\163\104\151\x72\x65\143\x74\x41\x63\143\145\163\x73");if(u)q.config.thumbsDirectAccess=u.value=='true';}q.config.imagesMaxWidth=parseInt(t.selectSingleNode(v+"\x40\x69\x6d\147\x57\151\144\x74\x68").value,10);q.config.imagesMaxHeight=parseInt(t.selectSingleNode(v+"\x40\x69\155\147\x48\145\x69\x67\150\164").value,10);u=t.selectSingleNode(v+"\100\x75\160\154\157\141\144\115\141\x78\123\x69\172\145");q.config.uploadMaxSize=u?parseInt(u.value,10):0;u=t.selectSingleNode(v+"\x40\165\x70\x6c\x6f\x61\144\103\150\145\x63\x6b\111\155\x61\147\x65\163");q.config.uploadCheckImages=u?u.value=='true':false;var w=t.selectSingleNode(v+"\100\x70\154\x75\x67\x69\x6e\163"),x=w&&w.value;if(x&&x.length)m.load(x.split(','),function(y){var z=[],A=[],B=[];for(var C in y){var D=y[C],E=D.lang,F=m.getPath(C),G=null;if(!q.plugins[C])q.plugins[C]=y[C];else continue;y[C].name=C;D.pathName=F;if(E){G=i.indexOf(E,q.langCode)>=0?q.langCode:E[0];if(!D.lang[G])B.push(a.getUrl(F+'lang/'+G+'.js'));else{i.extend(q.lang,D.lang[G]);G=null;}}A.push(G);z.push(D);}a.ec.load(B,function(){var H=['eK','bz','gr'];for(var I=0;I0){var s=q.toLowerCase().split(',');for(var t=0;t\|]/};m.add('folder',{bM:['resource','connector','acl'],bz:function(s){s.folders=[];s.aV=null;s.on('resourcesReceived',function y(t){var u=[],v=t.data.hK;for(var w=0;w
'+''+'';a.log('[THEME] DOM flush using document.write');p.document.$.write(A);function B(){if(f.ie6Compat)p.layout.oG=p.document.getWindow().eR();};p.cr('themeLoaded');p.cr('uiReady',function(){B();p.cr('appReady',function(){B();if(f.ie8){var C=p.document.$,D;if(C.documentMode)D=C.documentMode;else{D=5;if(C.compatMode)if(C.compatMode=='CSS1Compat')D=7;}if(D<8){var E='Forced IE compatibility mode! CKFinder may not look as intended.',F=p.plugins.tools;F.showTool(F.addTool(E));}}if(f.ie6Compat)p.document.getWindow().on('resize',B);p.document.getWindow().on('resize',function(){p.layout.ea.call(p.layout);});var G;function H(){G=G||p.document.eD().eG('link').getItem(0);var I=0;if(G)try{if(G.$.sheet&&G.$.sheet.cssRules.length>0)I=1;else if(G.$.styleSheet&&G.$.styleSheet.cssText.length>0)I=1;else if(G.$.innerHTML&&G.$.innerHTML.length>0)I=1;}catch(J){}if(!I){window.setTimeout(H,250);return;}if(f.ie6Compat){B();p.layout.ea();setTimeout(function(){p.layout.ea();},500);}else{p.layout.ea(true);setTimeout(function(){p.document.getById('ckfinder').removeStyle('visibility');});}return undefined;};H();});});},pu:function(p){var q=i.getNextNumber(),r=k.kE(['