(function(b){window.BaseManager={currentWin:b.WindowManager.find(window),path:"{default}",visualPath:"",files:[],selectedFiles:[],focusedFile:null,demoMode:false,disabled:{},specialFolders:[],getFile:function(d){var a;b(this.files).each(function(){if(this.id==d){a=this}});return a},setDisabled:function(a,d){this.disabled[a]=d;if(d){b("#"+a).addClass("disabled").addClass("deactivated")}else{b("#"+a).removeClass("disabled").removeClass("deactivated")}},isDisabled:function(a){return this.disabled[a]?this.disabled[a]:0},addSpecialFolder:function(a){this.specialFolders.push(a)},isDemo:function(){if(this.demoMode){b.WindowManager.info(b.translate("{#error.demo}"));return true}}}})(jQuery);