var Wei18n,weLoadingVm=new kendo.data.ObservableObject({loadingText:We.translate("Loading...")}),headerVm=kendo.observable({heading:"",headerText:"",profileName:"",showBurgerTop:!1,isLogedIn:!1,isAllPositionsOpen:!1,toggleAllPositions:function(){this.set("isAllPositionsOpen",!this.isAllPositionsOpen)},setHeader:function(n){headerVm.set("headerText",n?n:headerVm.get("heading"))},openRightMenu:function(){this.set("showBurgerTop",!0);$(".menu-slide").removeClass("menu-hide")},closeRightMenu:function(){this.set("showBurgerTop",!1);$(".menu-slide").addClass("menu-hide")},jobSearchLogin:function(){var n=window.location.pathname+window.location.search+"#search",t=We.addLanguage("/Account/SpaLogin?ReturnUrl="+encodeURIComponent(n));window.location.assign(t)},logout:function(){$("#signOutEverywhereForm").submit()},isGoBackVisible:!1,showBackLink:function(){this.set("isGoBackVisible",!0)},hideBackLink:function(){this.set("isGoBackVisible",!1)},setLogoData:function(n){this.set("url",n.CompanyLogoLibUrl);this.set("companyName",n.CompanyName)},altText:function(){return We.companyMeta.translate("Logo for")+" "+this.get("companyName")}}),cookieVm,bgModel;We.addHeaderMenuDefaults(headerVm);cookieVm=new kendo.data.ObservableObject({hasCookie:!1,isCookieDetailsVisible:!1,isCookieInfoVisible:function(){return!1},closeCookieInfo:function(){var n=new Date,t;n.setTime(n.getTime()+5184e6);t="expires="+n.toUTCString();document.cookie="WeCookie=true; "+t+"; path=/";this.set("hasCookie",!0)},showCookieDetails:function(){this.set("isCookieDetailsVisible",!0)}});We.addTermsFunctions(cookieVm);bgModel=new kendo.data.ObservableObject({selectedPhoto:"",asAdvertId:0,asCompanyId:0,hasAs:!1,moreText:!0,moreTextReg:!0,branchPortalInfo:"",allAdvertsInfoVisible:!0,toggleMoreText:function(){this.set("moreText",!this.get("moreText"))},toggleMoreTextReg:function(){this.set("moreTextReg",!this.get("moreTextReg"))},showAsLink:function(){return this.get("hasAs")===!0&&(this.get("asCompanyId")>0||this.get("asAdvertId")>0)},asLink:function(){var n=this.get("asCompanyId"),t;return n==undefined&&(n=0),t=this.get("asAdvertId"),"/userinfo#asCustomer/"+n+"/"+t}});$(document).ready(function(){kendo.bind(document.body,bgModel);kendo.bind($("#topMenu"),headerVm);kendo.bind($(".menu-header"),headerVm);kendo.bind($(".menu-mobile-top"),headerVm);kendo.bind($("#sub-menu"),headerVm);kendo.bind($("#loadingModal"),weLoadingVm);kendo.bind($("#cookieInfo"),cookieVm);kendo.bind($("#logo"),headerVm);$("link[rel='icon']").attr("href","/favicon.png")})