(function(d){var g=function(){var k=/^(\/(.*\/)*)([^\/]+\/?)$/;this.splitPathname=function(m){if(m==="/"){return["","/"]}var l=k.exec(m);return[l[1],l[3]]}};var e=function(k,m){var l=this;var n={defaultSortOrder:"C=N;O=A",store:{viewmode:"h5ai.viewmode"},icons:{crumb:"/h5ai/images/crumb.png",ascending:"/h5ai/images/ascending.png",descending:"/h5ai/images/descending.png"},customHeader:"h5ai.header.html",customFooter:"h5ai.footer.html",callbacks:{folderClick:[],fileClick:[]},viewmodes:["details","icons"],showTree:false,folderStatus:{},lang:undefined,useBrowserLang:true,setParentFolderLabels:true};this.config=d.extend({},n,k);this.folderClick=function(o){if(typeof o==="function"){this.config.callbacks.folderClick.push(o)}return this};this.fileClick=function(o){if(typeof o==="function"){this.config.callbacks.fileClick.push(o)}return this};this.init=function(){document.title=document.domain+decodeURI(document.location.pathname);this.applyViewmode();this.initBreadcrumb();this.initTopSpace();this.initViews();this.customize();this.localize(m,this.config.lang,this.config.useBrowserLang)};this.triggerFolderClick=function(o){for(idx in this.config.callbacks.folderClick){this.config.callbacks.folderClick[idx].call(window,o)}};this.triggerFileClick=function(o){for(idx in this.config.callbacks.fileClick){this.config.callbacks.fileClick[idx].call(window,o)}};this.getViewmode=function(){var o=localStorage.getItem(this.config.store.viewmode);return d.inArray(o,this.config.viewmodes)>=0?o:this.config.viewmodes[0]};this.applyViewmode=function(o){if(o!==undefined){localStorage.setItem(this.config.store.viewmode,o)}o=this.getViewmode();d("body > nav li.view").hide().removeClass("current");if(this.config.viewmodes.length>1){if(d.inArray("details",this.config.viewmodes)>=0){d("#viewdetails").show()}if(d.inArray("icons",this.config.viewmodes)>=0){d("#viewicons").show()}}if(o==="details"){d("#viewdetails").closest("li").addClass("current");d("#table").hide();d("#extended").addClass("details-view").removeClass("icons-view").show()}else{if(o==="icons"){d("#viewicons").closest("li").addClass("current");d("#table").hide();d("#extended").removeClass("details-view").addClass("icons-view").show()}else{d("#table").show();d("#extended").hide()}}};this.initBreadcrumb=function(){var t=d("#domain");var p=t.closest("ul");t.find("span").text(document.domain);var s=decodeURI(document.location.pathname).split("/");var r="/";for(idx in s){var o=s[idx];if(o!==""){r+=o+"/";var q=f.getPathForFolder(r);p.append(q.updateCrumbHtml())}}};this.initTopSpace=function(){function o(){var p=d("body > nav").height();var q=p+50;d("body").css("margin-top",""+q+"px");d("#tree").css("top",""+q+"px")}d(window).resize(function(){o()});o()};this.initTableView=function(){d("#table td").removeAttr("align").removeAttr("valign")};this.initExtendedView=function(){var s=d("