!function(t,n,o,e){"use strict";function a(){var o=t(".a-btn.creative, .a-btn-2.creative").not(".anima");if(o.length)for(var e=0;e=t(o[e]).offset().top-.9*t(n).height()&&t(o[e]).addClass("anima")}function s(n,o){if(n&&t(n.hash).length){b=1;var e=n.hash;t("html, body").stop().animate({scrollTop:g[e].top},o,function(){history.pushState?history.pushState(null,null,e):location.hash=e,m=e,b=0,t(f).parent().removeClass(p),t(f+'[data-hash="'+m+'"]').parent().addClass(p)})}}function i(){if(!b){var o=t(n).scrollTop();for(var e in g)if(g[e].top<=o&&g[e].bottom>o&&m!=e){t(f).parent().removeClass(p),history.pushState?history.pushState(null,null,e):location.hash=e,t(f).parent().removeClass(p),t(f+'[data-hash="'+e+'"]').parent().addClass(p),m=e;break}}}navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i);if("function"!=typeof r){var h,r,l,c=n.addEventListener;(r=function(e){n.innerWidth,h=n.innerHeight,t(n).scrollTop(),t(o).height(),t("html"),l=t(n).scrollTop(),l,e&&(c("load",e,!0),c("resize",e,!0))})(function(){r()})}r(function(){!function(n,o){if(!n)return console.info("no img selector"),!1;var e,a,s,i,h;t(n).each(function(){h=t(this),s=h.data("s-hidden"),i=h.data("s-sibling"),e=(e=h.closest(o)).length?e:h.parent(),i?(e.addClass("s-back-sibling-switch"),(a=(a=h.next()).length?a:h.next()).css("background-image","url("+this.src+")").addClass("s-sibling-switch")):e.css("background-image","url("+this.src+")").addClass("s-back-switch"),s?h.css("visibility","hidden"):h.hide()})}(".s-img-switch"),function(){var n=t(".top-banner.fullheight"),o=(t(".top-banner.fullheight .content"),t(".top-banner.fullheight .content").outerHeight(!0));h0&&location.hash&&s(location,1e3)}),t("html, body").on("scroll mousedown DOMMouseScroll mousewheel keyup",function(n){(n.which>0||"mousedown"==n.type||"mousewheel"==n.type)&&b?(t("html,body").stop(),b=0,i()):b||(b=0,i())});var v;t(n).on("scroll",function(){t(this).scrollTop()>=v?t(".prague-header").addClass("sticky"):t(".prague-header").removeClass("sticky")})}(jQuery,window,document);