var app={};app.initialize=function(){prepareOrbitIUsed();$(document).foundation();$(document).ready(function(){enableIconBarPanelToogle();prepareMenu();prepareLanguageSwitch()});$(window).on("resize",prepareMenu)};var enableIconBarPanelToogle=function(){$(".icon-bar a:not(.link)").click(function(n){n.preventDefault();$(".icon-bar-panel section.active:not("+n.currentTarget.hash+")").removeClass("active");$(n.currentTarget.hash).toggleClass("active")})},prepareMenu=function(){function n(n){var t=n||600,i=$("body").width(),u=$(".left-off-canvas-menu").width(),r=i-u;i>768&&($(".page-body").animate({width:r+"px"},t),$(".icon-bar-panel").animate({width:r+"px"},t));$(".tab-bar").addClass("active");setCookie("menuIsOpen","",14);$(".grid").length&&$(".grid").masonry&&$(".grid").masonry()}function t(){$(".page-body").animate({width:"100%"},100);$(".icon-bar-panel").animate({width:"100%"},100);$(".tab-bar").removeClass("active");setCookie("menuIsOpen","",-1);$(".grid").length&&$(".grid").masonry&&$(".grid").masonry()}$(document).off("open.fndtn.offcanvas").off("close.fndtn.offcanvas").on("open.fndtn.offcanvas","[data-offcanvas]",n).on("close.fndtn.offcanvas","[data-offcanvas]",t);$(".off-canvas-wrap.move-right").length&&n(1)},setCookie=function(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u="expires="+r.toUTCString();document.cookie=n+"="+t+"; "+u+"; path=/"},prepareLanguageSwitch=function(){var n=$(".item-langugage");n.click(function(){var t=n.attr("href").substring(1);t=="cs"?setCookie("culture","en",14):setCookie("culture","cs",14);location.reload()})},prepareOrbitIUsed=function(){var n=$(".page-orbit");if(n.length)n.on("ready.fndtn.orbit",function(){n.find("li").removeClass("hidden-image-before-ready")})}