Shadowbox.init({skipSetup:!0,viewportPadding:50}),function(a){a.fn.setupShadowbox=function(){this.each(function(){$this=a(this),url=$this.attr("src"),url.indexOf("http://")==-1||url.indexOf("http://"+window.location.hostname)>-1?(filename=url.substring(url.lastIndexOf("/")+1),filepath=url.substring(0,url.lastIndexOf("/")+1),url.indexOf("_resampled")>-1&&(filename=filename.substring(filename.indexOf("-")+1),filepath=filepath.substring(0,filepath.length-11)),$this.wrap('<a href="'+filepath+filename+'"></a>')):$this.wrap('<a href="'+url+'"></a>'),Shadowbox.setup($this.parent())})}}(jQuery),jQuery(document).ready(function(){Shadowbox.setup(""),jQuery("#topbar input").one("focus",function(){jQuery(this).attr("value","")}),jQuery("#topbar input").keydown(function(a){a.keyCode==13&&jQuery("#topbar form").eq(0).submit()}),jQuery("#navbar ul.submenu").each(function(){jQuery(this).css("min-width",jQuery(this).prev().width()+50+"px")}),jQuery("#content img").setupShadowbox()})
