function getCookie(e){"use strict";var t=null;if(document.cookie&&""!==document.cookie)for(var n=document.cookie.split(";"),i=0;i'+n+"";i.find("ul").append("
  • "+t+"
  • "),e.find(".section__title__content").html(n)}),window.location.hash&&(e=window.location.hash,window.requestAnimationFrame(function(){window.location.hash=e})),t.on("click","."+o,function(e){e.preventDefault();e=$(this);i.find(".active").removeClass("active"),e.addClass("active"),TweenLite.to(window,.5,{scrollTo:e.attr("href")})}),n.find(".section").each(function(){var e=this;scrollMonitor.create(e).fullyEnterViewport(function(){i.find(".active").removeClass("active"),i.find('a[href="#'+$(e).attr("id")+'"]').addClass("active")})});var a=i.offset().top;$(window).on("resize",function(){a=i.offset().top});var r=$(".content__navigation__progress__fill");!function e(){var t;window.navigation_is_open||(t=Math.round(100/window.document_height*(window.scroll_top+window.window_height)),r.height(t+"%"),a&&window.scroll_top>=a?i.addClass("fixed"):i.removeClass("fixed")),window.requestAnimationFrame(e)}()}),$(function(){"use strict";var e=$("body");e.on("click",".control__item__open",function(e){e.preventDefault();var e=$(this),i=e.parents(".control__item");i.addClass("loading"),$.get(e.attr("data-href"),function(e){var t=i.find(".control__item__content"),n=t.find(".control__item__content__main"),e=e.replace(/autofocus/g,"");n.html(e),t.height(n.outerHeight(!0)),i.addClass("active"),window.on_transitionend(t,function(e){e&&e.target!==this||(t.off(window.transitionend),t.removeAttr("style"),i.removeClass("loading"))})})}),e.on("click",".control__item__close",function(e){e.preventDefault();var t=$(this).parents(".control__item"),n=t.find(".control__item__content"),i=n.find(".control__item__content__main");n.height(i.outerHeight(!0)),window.on_transitionend(n,function(e){e&&e.target!==this||(n.off(window.transitionend),i.html(""))}),window.requestAnimationFrame(function(){t.removeClass("active"),n.removeAttr("style")})}),e.on("submit",".control__item form",function(e){e.preventDefault();var t=$(this);t.addClass("loading"),$.ajax({type:t.attr("method"),url:t.attr("action"),data:t.serialize(),success:function(e){t.replaceWith(e)}})});e=$(".task__form");e.hasClass("errors")&&(window.location="#form"),e.on("formAdded",function(e){var t=$(e.target).find("h3"),e=parseInt(t.attr("data-id").match(/\d+/)[0]);t.html(t.html().replace("%(id)",e+1))}),e.on("formDeleted",function(e){$(e.target).hide()}),$(".downloads__frame").each(function(){var l=$(this),c=[];l.find(".download__item__title").each(function(){var e;e=(e=(e=$(this).text().toLowerCase())+" "+$(this).next().text().toLowerCase())+" "+$(this).next().next().text().toLowerCase(),c.push({$element:$(this).parents("li"),text:e})}),l.on("input",".downloads_search",function(e){for(var t=$(this).val().toLowerCase(),n=$.trim(t).split(" "),i=[],o=0;o.05*$(window).height()&&window.timetable_can_scroll&&(t.removeClass("notification_open"),o())),window.requestAnimationFrame(e)});var a=0,r=parseInt(i.attr("data-last")),s=document.getElementsByClassName("timetable__item"),l=$(".timetable__next"),c=$("#timetable__clock__digital__time"),d=$("#timetable__clock__progress"),u=parseFloat(d.attr("stroke-dasharray"));function f(e){var t,n;e<=r&&0<=e&&(a=e,i.attr("data-active",a),a===r?l.addClass("hidden"):l.removeClass("hidden"),t=$(s[a-1]),n=60*parseInt(t.attr("data-hour"))+parseInt(t.attr("data-minute")),e=1/720*(n-360),t=c.text().split(":"),t=60*parseInt(t[0])+parseInt(t[1]),new CountUp("timetable__clock__digital__time",t,n,0,1.5,{useEasing:!0,separator:""}).start(),n&&d.attr("stroke-dashoffset",u*Math.abs(e-1)))}t.on("click",".timetable__next",function(e){e.preventDefault(),n||($(window).scrollTop($(window).height()),o())}),document.querySelector(".timetable__button a").addEventListener("click",function(e){e.preventDefault();var t=document.querySelector(".timetable__button").getAttribute("data-video-vimeo-id"),e=document.querySelectorAll(".pswp")[0],t=new PhotoSwipe(e,PhotoSwipeUI_Default,[{html:''}],{showHideOpacity:!0,download:!1,fullscreenEl:!1,shareEl:!1});t.listen("close",function(){document.querySelector("#timetable").style.height="",n.pause()}),t.init(),document.querySelector("#timetable").style.height="100%";var n,t=document.querySelector(".pswp iframe");(n=new Vimeo.Player(t)).play()})}),$(function(){$("body").find(".video").each(function(){var e=$(this),t=this.querySelector("iframe"),n=new Vimeo.Player(t),i=!1;e.on("click",".video__thumbnail",function(e){e.preventDefault(),i?n.pause():n.play()}),n.on("play",function(){i=!0,window.requestAnimationFrame(function(){e.addClass("playing")})}),n.on("pause",function(){i=!1,window.requestAnimationFrame(function(){e.removeClass("playing")})}),n.on("ended",function(){i=!1,window.requestAnimationFrame(function(){e.removeClass("playing")})})})});