");}$("#site").prepend("
");var offset=220;var duration=500;$(window).scroll(function(){if($(this).scrollTop()>offset){$(".toTop").fadeIn(duration);}else{$(".toTop").fadeOut(duration);}});$(".toTop").click(function(event){event.preventDefault();$("html, body").animate({scrollTop:0},duration);return(false);});prevScrollpos=window.pageYOffset;var siteMaxWidth=$("#page").css("max-width");if(siteMaxWidth!="none"){for(var i=1;i<=3;i++)$("header").find("#toolbar"+i).css("max-width",siteMaxWidth);}$("#site").css({"overflow-y":"hidden"});$("header").css({"position":"fixed","top":"0","z-index":"9998","background-color":"hsla(0,0%,100%,0.8)","transition":"top 1s"});$("header").addClass("fill-available");moveContent();$(window).resize(moveContent);$(window).on("scroll",function(){var currentScrollPos=window.pageYOffset;if(currentScrollPos<0)currentScrollPos=0;if((currentScrollPos<=0)||(prevScrollpos>currentScrollPos)){$("header").css({"top":"0"});}else{$("header").css({"top":"-"+($("header").outerHeight()+10)+"px"});}prevScrollpos=currentScrollPos;if(currentScrollPos==0){$("header").css({"box-shadow":"none"});}else{$("header").css({"box-shadow":"rgba(0, 0, 0, 0.1) 0px 4px 4px 0px"});}});if(typeof onTOWebPageLoaded=="function")onTOWebPageLoaded();});