/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){var a=(function(){var f={jY:'B23B',_:{},status:'unloaded',basePath:(function(){var i=window.CKFINDER_BASEPATH||'';if(!i){var j=document.getElementsByTagName('script');for(var k=0;k=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])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.ax.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.aF();f.document=g.document.$;f.folders=g.folders;f.files=g.aG['filesview.filesview'][0].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'][0].on('afterAddFolder',function(j){j.aF();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(m){var n=m.aG['filesview.filesview'][0].tools.dH();g(m.cg,n);}});f.command=j;if(!f.group)f.group='file1';i.gp(j,f);var k=i.aG['filesview.filesview'];for(var l=0;l');f=a.tools.extend(a.jd.call(this),f,true);var h=a.replace(g,f,CKFinder);this.lN=h.cg;return h.cg;},appendTo:function(f,g){g=a.tools.extend(a.jd.call(this),g,true);var h=a.appendTo(f,g,CKFinder);this.lN=h.cg;return h.cg;},replace:function(f,g){g=a.tools.extend(a.jd.call(this),g,true);var h=a.replace(f,g,CKFinder);this.lN=h.cg;return h.cg;},popup:function(f,g){var o=this;f=f||'80%';g=g||'70%';if(typeof f=='string'&&f.length>1&&f.substr(f.length-1,1)=='%')f=parseInt(window.screen.width*parseInt(f,10)/100,10);if(typeof g=='string'&&g.length>1&&g.substr(g.length-1,1)=='%')g=parseInt(window.screen.height*parseInt(g,10)/100,10);if(f<200)f=200;if(g<200)g=200;var h=parseInt((window.screen.height-g)/2,10),i=parseInt((window.screen.width-f)/2,10),j='location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,jy=yes,width='+f+',height='+g+',top='+h+',left='+i,k=a.env.webkit?'about:blank':'',l=window.open(k,'CKFinderpopup',j,true);if(!l)return false;o.width=o.height='100%';var m='CKFinder 2',n=new a.dom.document(l.document);n.$.open();if(a.env.isCustomDomain())n.$.domain=window.document.domain;n.$.write(m);n.$.close();try{l.moveTo(i,h);l.resizeTo(f,g);l.focus();return o.appendTo(n.bH());}catch(p){return o.appendTo(n.bH());}return false;}};CKFinder._={};CKFinder.lang={};CKFinder.version='2.0.2';CKFinder.revision='UNKNOWN';CKFinder.addPlugin=function(f,g,h){var i={bM:h||[]};if(typeof g=='function')g={appReady:g};for(var j in g){if(!g.hasOwnProperty(j))continue;if(j!='connectorInitialized'&&j!='uiReady')i[j]=g[j];}i.bz=function(k){if(g.connectorInitialized)k.on('connectorInitialized',function(l){var m=g.connectorInitialized;if(m)m.call(m,k.cg,l.data.xml);},null,null,1000);if(g.uiReady)k.on('uiReady',function(){var l=g.uiReady;l.call(l,k.cg);},null,null,1000);if(g.appReady)k.on('appReady',function(){var l=g.appReady;l.call(l,k.cg);},null,null,1000);};a.plugins.add(f,i);};CKFinder.getPluginPath=function(f){return a.plugins.getPath(f);};CKFinder.addExternalPlugin=function(f,g,h){a.plugins.tR(f,g,h);};CKFinder.setPluginLang=function(f,g,h){a.plugins.rX(f,g,h);};CKFinder.dialog={add:function(f,g){if(typeof g=='function')g=a.tools.override(g,function(h){return function(i){return h(i.cg);};});a.dialog.add(f,g);}};CKFinder.tools={};CKFinder.env={};CKFinder.dom={};CKFinder.create=function(f,g,h,i,j){var k;if(f!==null&&typeof f==='object'){k=new CKFinder();for(var l in f)k[l]=f[l];}else{k=new CKFinder();k.basePath=f;if(g)k.width=g;if(h)k.height=g;if(i)k.selectActionFunction=i;if(j)k.callback=j;}return k.create();};CKFinder.popup=function(f,g,h,i,j){var k;if(f!==null&&typeof f==='object'){k=new CKFinder();for(var l in f)k[l]=f[l];}else{k=new CKFinder();k.basePath=f;if(i)k.selectActionFunction=i;if(j)k.callback=j;}return k.popup(g,h);};CKFinder.setupFCKeditor=function(f,g,h,i){var j;if(g!==null&&typeof g==='object'){j=new CKFinder();for(var k in g){j[k]=g[k];if(k=='width'){var l=j[k]||800;if(typeof l=='string'&&l.length>1&&l.substr(l.length-1,1)=='%')l=parseInt(window.screen.width*parseInt(l,10)/100,10);f.Config.LinkBrowserWindowWidth=l;f.Config.ImageBrowserWindowWidth=l;f.Config.FlashBrowserWindowWidth=l;}else if(k=='height'){var m=j[k]||600;if(typeof m=='string'&&m.length>1&&m.substr(m.length-1,1)=='%')m=parseInt(window.screen.height*parseInt(m,10)/100,10);f.Config.LinkBrowserWindowHeight=m;f.Config.ImageBrowserWindowHeight=m;f.Config.FlashBrowserWindowHeight=m;}}}else{j=new CKFinder();j.basePath=g;}var n=j.basePath;if(n.substr(0,1)!='/'&&n.indexOf('://')== -1)n=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+n;n=a.lj.call(j,n);var o=n.indexOf('?')!== -1?'&':'?';f.Config.LinkBrowserURL=n;f.Config.ImageBrowserURL=n+o+'type='+(h||'Images');f.Config.FlashBrowserURL=n+o+'type='+(i||'Flash');var p=n.substring(0,1+n.lastIndexOf('/'));f.Config.LinkUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';f.Config.ImageUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(h||'Images');f.Config.FlashUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(i||'Flash');};CKFinder.setupCKEditor=function(f,g,h,i){if(f===null){for(var j in CKEDITOR.instances)CKFinder.setupCKEditor(CKEDITOR.instances[j],g,h,i);CKEDITOR.on('instanceCreated',function(r){CKFinder.setupCKEditor(r.editor,g,h,i);});return;}var k;if(g!==null&&typeof g==='object'){k=new CKFinder();for(var l in g){k[l]=g[l];if(l=='width'){var m=k[l]||800;if(typeof m=='string'&&m.length>1&&m.substr(m.length-1,1)=='%')m=parseInt(window.screen.width*parseInt(m,10)/100,10);f.config.filebrowserWindowWidth=m;}else if(l=='height'){var n=k[l]||600;if(typeof n=='string'&&n.length>1&&n.substr(n.length-1,1)=='%')n=parseInt(window.screen.height*parseInt(n,10)/100,10);f.config.filebrowserWindowHeight=m;}}}else{k=new CKFinder();k.basePath=g;}var o=k.basePath;if(o.substr(0,1)!='/'&&o.indexOf('://')== -1)o=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+o;o=a.lj.call(k,o);var p=o.indexOf('?')!== -1?'&':'?';f.config.filebrowserBrowseUrl=o;f.config.filebrowserImageBrowseUrl=o+p+'type='+(h||'Images');f.config.filebrowserFlashBrowseUrl=o+p+'type='+(i||'Flash');var q=o.substring(0,1+o.lastIndexOf('/'));f.config.filebrowserUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';f.config.filebrowserImageUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(h||'Images');f.config.filebrowserFlashUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(i||'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._={kw:f,ax: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 ax 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 ax 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;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);}}if(h.opera)i=parseFloat(g.version());if(h.air)i=parseFloat(f.match(/ adobeair\/(\d+)/)[1]);if(h.webkit)i=parseFloat(f.match(/ applewebkit\/(\d+)/)[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.eq||a.jt,r=n.responseText;if(/text\/plain/.test(n.getResponseHeader('Content-Type'))){r=a.tools.htmlEncode(r);r=r.replace(/\n/g,' ');r='
'+r+'
';}q.msgDialog(q.lang.SysErrorDlgTitle,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]:'';}};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);},aF:function(k){var n=this;a.event.prototype.aF.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.ax('link');l.setAttributes({rel:'stylesheet',type:'text/css',href:k});this.eD().append(l);}},createElement:function(k,l){var m=new h.ax(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.ax(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;},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');}});a.command=function(l,m){this.pW=[];this.exec=function(n){if(this.bu==a.aY)return false;if(m.oD)l.focus();return m.exec.call(this,l,n)!==false;};i.extend(this,m,{iH:{qt:1},oD:true,bu:a.aS});a.event.call(this);};a.command.prototype={enable:function(){var l=this;if(l.bu==a.aY)l.bR(!l.vf||typeof l.lJ=='undefined'?a.aS:l.lJ);},disable:function(){this.bR(a.aY);},bR:function(l){var m=this;if(m.bu==l)return false;m.lJ=m.bu;m.bu=l;m.oW('bu');return true;},rJ:function(){var l=this;if(l.bu==a.aS)l.bR(a.eV);else if(l.bu==a.eV)l.bR(a.aS);}};a.event.du(a.command.prototype,true);a.config={customConfig:a.getUrl('config.js'),connectorLanguage:'php',language:'',defaultLanguage:'en',defaultViewType:'thumbnails',defaultSortBy:'filename',defaultDisplayFilename:true,defaultDisplayDate:true,defaultDisplayFilesize:true,pO:'',height:400,plugins:'foldertree,folder,filebrowser,container,connector,resource,toolbar,formpanel,filesview,status,contextmenu,uploadform,keystrokes,dragdrop,basket,dialog,tools,resize,help',extraPlugins:'',fileIcons:'ai|avi|bmp|cs|dll|doc|docx|exe|fla|gif|jpg|js|mdb|mp3|ogg|pdf|ppt|pptx|rdp|swf|swt|txt|vsd|xls|xlsx|xml|zip',removePlugins:'',tabIndex:0,theme:'default',skin:'kama',width:'100%',baseFloatZIndex:10000,directDownload:false,log:false,logStackTrace:false,rememberLastFolder:true,id:null,startupPath:'',startupFolderExpanded:true,selectActionFunction:null,selectActionData:null,selectThumbnailActionFunction:null,selectThumbnailActionData:null,disableThumbnailSelection:false,thumbsUrl:null,thumbsDirectAccess:false,imagesMaxWidth:0,imagesMaxHeight:0,selectActionType:'js',resourceType:null,disableHelpButton:false,connectorPath:'core/connector/'};CKFinder.config=a.config;var l=a.config;a.dU=function(m,n){this.rG=m;this.message=n;};a.fs=function(m){if(m.fs)return m.fs;this.hasFocus=false;this._={application:m};return this;};a.fs.prototype={focus:function(){var n=this;if(n._.fW)clearTimeout(n._.fW);if(!n.hasFocus){if(a.eq)a.eq.fs.ly();var m=n._.application;m.container.getFirst().addClass('cke_focus');n.hasFocus=true;m.oW('focus');}},blur:function(){var m=this;if(m._.fW)clearTimeout(m._.fW);m._.fW=setTimeout(function(){delete m._.fW;m.ly();},100);},ly:function(){if(this.hasFocus){var m=this._.application;m.container.getFirst().removeClass('cke_focus');this.hasFocus=false;m.oW('blur');}}};(function(){var m={};a.lang={ko:{cs:1,da:1,de:1,el:1,en:1,es:1,'es-mx':1,fi:1,fr:1,he:1,hu:1,it:1,ja:1,lv:1,nb:1,nl:1,no:1,nn:1,pl:1,'pt-br':1,ru:1,sk:1,sl:1,sv:1,'zh-cn':1,'zh-tw':1},load:function(n,o,p){if(!n|| !a.lang.ko[n])n=this.jV(o,n);if(!this[n])a.ec.load(a.getUrl('lang/'+n+'.js'),function(){p(n,CKFinder.lang[n]);},this);else p(n,this[n]);},jV:function(n,o){var p=this.ko;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;a.lang.jV=r?function(){return r;}:function(t){return t;};return r||n;}};})();(function(){a.log=function(){if(!l.log&& !window.CKFINDER_LOG)return;var m='';for(var n=0;n1)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.aF();});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;O0&&C.aC(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.aC(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.aC(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.et('',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 have been changed. Are you sure to close the dialog?',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 name extension? The file may become unusable',FileRenaming:'Renaming...',FileDelete:'Are you sure you want to delete the file "%1"?',FilesLoading:'Loading...',FilesEmpty:'Empty folder',FilesMoved:'File %1 moved into %2:%3',FilesCopied:'File %1 copied into %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'n'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 the file to upload',UploadProgressLbl:'(Upload in progress, please wait...)',UploadBtn:'Upload Selected File',UploadBtnCancel:'Cancel',UploadNoFileMsg:'Please select a file gJ your computer',UploadNoFolder:'Please select folder before uploading.',UploadNoPerms:'File upload not allowed.',UploadUnknError:'Error sending the file.',UploadExtIncorrect:'File extension not allowed in this folder.',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 has been 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 for security reasons. The file contains HTML like data.',207:'The uploaded file has been 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',pU:'The folder name cannot be empty',oP:'The file name cannot contain any of the following characters: \n\\ / : * ? " < > |',pM:'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.'},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 new thumbnail',thumbnailSmall:'Small (%s)',thumbnailMedium:'Medium (%s)',thumbnailLarge:'Large (%s)',newSize:'Set new size',width:'Width',height:'Height',invalidHeight:'Invalid height.',invalidWidth:'Invalid width.',invalidName:'Invalid file name.',newImage:'Create new image',noExtensionChange:'The file extension cannot be changed.',imageSmall:'Source image is too small',contextMenuName:'Resize'},Fileeditor:{save:'Save',fileOpenError:'Unable to open file.',fileSaveSuccess:'File saved successfully.',contextMenuName:'Edit',loadingFile:'Loading file, please wait...'}};(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){if(t.checkError())return;var u="\x43\157\156\x6e\145\143\164\x6f\162\057\x43\x6f\x6e\x6e\145\x63\x74\157\162\111\156\146\157\057";a.ed=t.selectSingleNode(u+"\x40\163").value;a.bF=t.selectSingleNode(u+"\x40\x63").value+'----';q.config.thumbsEnabled=t.selectSingleNode(u+"\x40\x74\x68\x75\x6d\x62\163\105\x6e\141\x62\x6c\145\x64").value=='true';q.config.thumbsDirectAccess=false;if(q.config.thumbsEnabled){var v;v=t.selectSingleNode(u+"\x40\x74\150\x75\x6d\142\163\x55\162\x6c");if(v)q.config.thumbsUrl=v.value;v=t.selectSingleNode(u+"\x40\164\x68\165\155\x62\x73\104\x69\x72\145\x63\x74\x41\143\x63\145\x73\163");if(v)q.config.thumbsDirectAccess=v.value=='true';}q.config.imagesMaxWidth=parseInt(t.selectSingleNode(u+"\100\x69\x6d\x67\x57\151\x64\x74\150").value,10);q.config.imagesMaxHeight=parseInt(t.selectSingleNode(u+"\100\151\155\x67\110\x65\x69\x67\150\x74").value,10);var w=t.selectSingleNode(u+"\100\160\154\165\x67\x69\156\x73"),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.et(['