$(document).ready(function(){var b=$("title").text().split(" | "),d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],i=b[5],c=$("#section h1").text(),j=c+"s";$("#subcol a[href^='http'], #article-text a[href^='http']").not("*[href^='http://museum.doaks.org'], *[href^='http://www.doaks.org'], *[href^='http://dumbartonbookbindings.omeka.net'], *[href^='http://robertandmonnoyer.omeka.net'], *[href^='http://nrs.harvard.edu'], #doaks_org_byz .fp a, .modal a").each(function(){this.host!=window.location.host&&($(this).attr("target", "_new"),$(this).attr("rel","external"))});$("#subcol .social_media a[rel='external']:after, #subcol .facebook a[rel='external']:hover:after").css("content","none");$("a[href*=#]").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=$(this.hash),a=a.length&&a||$("[name="+this.hash.slice(1)+"]");if(a.length)return a=a.offset().top-14,$("html,body").animate({scrollTop:a},500),!1}});var b=$("#article-text p, #article-text li").text().length, k=550*$("#article-text img").length;1500<b+k&&$("#article-text").append("<p class='noprint'><small><a href='#'>Back to Top</a></small></p>");$("#article-text .entry:gt(0)").not(":last").append("<p class='noprint'><small><a href='#'>Back to Top</a></small></p>");$("#article-text .attribution").each(function(){45<$(this).text().length&&$(this).css("text-align","left")});$("table tbody tr:odd").not("table[id] tbody tr:odd").addClass("hlght");$("#subcol>div>ul>li, .csggr #subcol>div>div>ul>li").each(function(){var a= $(this).text(),b=$(".csggr #article-text h2").text();(a==e||a==j||a==f)&&$(this).addClass("up");(a==d||a==c||a==b)&&$(this).find("a").replaceWith("<strong>"+a+"</strong>")});$("#nav li").each(function(){var a=$(this).text();(a==d||a==e||a==f||a==g||a==h||a==i)&&$(this).addClass("current");a==d&&$(this).find("a").replaceWith("<strong>"+a+"</strong>");a==f&&$(c).prepend(e+": ")});$("body.cshom #header a, html[id^='doaks_org_hom'] #header a").remove();$("#article-text .nav li").each(function(){var a= $(this).text(),b=$("#article-text h2:first").text();(a==c||a==b)&&$(this).css("display","none")});"Contact Information"==d&&$("#cnav a").css("color","#777777");$("#nav li:first-child a,#nav li:first-child strong").css("border-left-width","1px");$(".fees table tbody tr td+td, .fees table thead tr th+th").addClass("price");$(".fees table tr td:first-child, .fees table tr th:first-child").addClass("firstcol");$("#list_cfhb_washingtonensis tr td:nth-last-child(2)").css("width","33%");$("#list_cfhb_washingtonensis tr td:first-child").css("width", "20%");$("#list_cfhb_washingtonensis td:not([colspan='4'])").addClass("hlght");$("#list_cfhb_washingtonensis td[colspan='4']").css("padding","0.5em 0.1em 3em 0.1em");$("#list_cfhb_washingtonensis td:contains('DOT')").css("font-weight","bold");$(function(){$('#subcol div:has("ul")>h2').click(function(a){this==a.target&&$(this).parent().find("ul").toggle("slow");return!1})});$(".csggr #subcol>div>div>h2").each(function(){$(this).text()!=c&&$(this).parent().find("ul").toggle()});$("#subcol ul[id^='garden_collection_']>li").each(function(){var a= $(".csggr #article-text p img").attr("alt");$(this).find("img").attr("alt")==a&&($(this).wrapInner("<strong></strong>"),$(this).find("img").css("opacity",0.25))});$("div[id^='slideshow'] div").css("cursor","pointer").attr("title","The slideshow has been paused. Click image to continue.");$("#maincol:has(div[id^='slideshow_type_0'])").css("margin-top","0").find("img").css("margin-top","0");$("#article-text a:has('img')").css("border-bottom","none");$("html[id^='doaks_byz'] body").addClass("csbyz"); $("li[id$='x']").css("background-color","#ddd");$("#article-text.program>ul>li:last").css("border-bottom","1px dashed #555");$("#article-text span[id]>a:has('img'), #article-text .modal a").colorbox();$("#article-text .stream_thumbnail>a, #article-text .stream_thumbnail>span>a").colorbox();b=$("#article-text span[id^='note.']");0!=b.length&&($("#article-text").append("<ul id='footnotes' />"),b.each(function(a){var a=a+1,b=$(this);b.clone().appendTo("#footnotes").wrap("<li />").prepend("<strong><a id='note."+ a+"' href='#ref.note."+a+"' title='Return to text'>"+a+"&emsp;</a></strong>");b.wrapInner("<span />").prepend("<strong><a id='ref.note."+a+"' href='#note."+a+"' title='View footnote'>"+a+"</a></strong>");b.find("span").remove()}))});
