(function(d){var c=window.FileManager||window.ImageManager;c.addSpecialFolder({title:"{#history.special_folder_title}",path:"history:///",type:"history"});d().bind("filelist:changed",function(){if(c.path.indexOf("history://")!=-1){d(c.tools).each(function(a,b){c.setDisabled(b,1)});d(["insert","download","view"]).each(function(a,b){c.setDisabled(b,0)})}})})(jQuery);