jQuery(document).ready(function(e){e(document).foundation({topbar:{sticky_class:"sticky-topbar",custom_back_text:!0,back_text:"Back",is_hover:!1,mobile_show_parent_link:!0,scrolltop:!0},interchange:{},offcanvas:{}});var t="#row-header",n="#main",r="#masthead",i="#top-nav",s=".top-bar-section li a:not(.button), .top-bar-section ul li > a, .top-bar-section ul, .top-bar.expanded .title-area",o=".top-bar-section > ul > .divider",u="ul.title-area li.name",a="#332c2f",f=".site-meta .site-description",l=sf2.headerBG;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))e("#row-header").css("position","inherit");else{var c=function(){e(n).css({marginTop:e(t).height()+"px"})};c();var h=function(){e(f).css("display","none");e(r).fadeOut("fast",0,function(){e(i).css("background-image","url("+l+")")});e(".toggle-topbar").click(function(){e("ul.title-area").css("background-color","transparent")});e(u).css("width","auto").html(''+sf2.siteTitle+"")},p=function(){e(r).fadeIn("slow",function(){e(f).css("display","block")});e(i).css("background-image","none");e(s).css("background-color","transparent");e(o).css("border-right","none");e(i).hasClass("expanded")||e(".top-bar-section .dropdown li").css("background-color",a);e(".top-bar.expanded .title-area").css("background-color","transparent");e(u).html(" ")},d=function(){e("body").scrollTop()||e("html").scrollTop()>0?h():p()};d();e(window).scroll(function(){d();c()})}e.backstretch(sf2BG.page)});