function openTabOrAccordionWithHash(t){$(t).parents(".tab-pane").each((function(){$(this).length&&$('a[href="#'+$(this).attr("id")+'"]').tab("show")})),$(t).parents(".collapse").each((function(){$(this).length&&$(this).collapse("show")})),$("html, body").stop().animate({scrollTop:$(t).offset().top-$("#nav-primary").height()-48},700,"swing",(function(){}))}$(document).ready((function(){$('a[href^="#c"]').each((function(){if(this.host+this.pathName===window.location.host+window.location.pathname||$(this).attr("href").startsWith("#c")){var t=this.hash;$(".tabbable, .accordion").find(t).length&&$(this).click((function(n){n.preventDefault(),openTabOrAccordionWithHash(t)}))}})),($(".tabbable").find(window.location.hash).length||$(".accordion").find(window.location.hash).length)&&openTabOrAccordionWithHash(window.location.hash)}));
