function updateItems(n){var t=$("#group").children(),r=t.filter(".current"),u=r.index(),i=u+n;i=i<0?0:i>t.length?t.length:i;i!=u&&(r.removeClass("current"),r=t.eq(i).addClass("current"),$("#prev").toggle(!r.is(t.first())),$("#next").toggle(!r.is(t.last())))}function filterTypesOnCourseTypes(n){var t,i;$("div[data-viable-for]").hide();t=$("#courseTypeSelector");t.length&&t.children().length>n&&(i=t.children()[n].text,$("div[data-viable-for~="+i+"]").show())}$(document).ready(function(){$(".block.linkblock").parent().addClass("row-eq-height")});$(function(){function i(){var n=$(".main-body"),t=$("#link-expand");n.hasClass("main-body--expanded")?(n.removeClass("main-body--expanded"),t.html('Les mer<span class="fa fa-chevron-down">'),$("html, body").animate({scrollTop:n.prev().offset().top},300)):(n.addClass("main-body--expanded"),t.html('Les mindre<span class="fa fa-chevron-up">'))}function r(n){return n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth}$("#link-expand").click(function(n){i();n.preventDefault();n.stopPropagation()});var n=document.querySelector("#link-expand"),t=document.querySelector(".main-body");n&&t&&r(t)&&(n.style.display="inline-block")}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}});$("#next").click(function(){updateItems(1)});$("#prev").click(function(){updateItems(-1)});filterTypesOnCourseTypes(0);$("#courseTypeSelector").on("change",function(n){filterTypesOnCourseTypes(n.target.selectedIndex)});(function(n){n.fn.scrollToTop=function(t){var i={speed:800};return t&&n.extend(i,{speed:t}),this.each(function(){var t=n(this);n(window).scroll(function(){100<n(this).scrollTop()?t.fadeIn():t.fadeOut()});t.click(function(t){t.preventDefault();n("body, html").animate({scrollTop:0},i.speed)})})}})(jQuery),function(){function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h=typeof require=="function"&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e=typeof require=="function"&&require,f=0;f<r.length;f++)u(r[f]);return u}return n}()({1:[function(){$(function(){function i(n){var i=$("[data-modal-content="+n.attr("data-open-modal")+"]");$("[data-modal-content].is-active").removeClass("is-active");i.addClass("is-active");n[0].hasAttribute("data-widget-id")&&i.find("[data-widget-id]").val(n.attr("data-widget-id"));n[0].hasAttribute("data-widget-name")&&i.find("[data-widget-name]").text(n.attr("data-widget-name"));$("[data-modal]").addClass("is-active");t(i)}function n(){$("[data-modal]").removeClass("is-active");$("[data-modal-content].is-active").removeClass("is-active");t($("#main-content"))}function t(n){n.focus();n.is(":focus")||(n.attr("tabindex","-1"),n.focus())}$("[data-open-modal]").click(function(n){i($(this));n.preventDefault();n.stopPropagation()});$("[data-close-modal]").click(function(t){n();t.preventDefault();t.stopPropagation()});$("[data-modal]").click(function(t){$(t.target).closest("[data-modal-content]").length||n()})})},{}],2:[function(n){var t=n("./_toggles"),i=n("./_modal")},{"./_modal":1,"./_toggles":3}],3:[function(){$(function(){function t(t){t.hasClass("is-active")?(t.removeClass("is-active"),t.attr("aria-expanded",!1),n(t.closest("[data-toggle-root]").find("["+t.attr("data-toggle-element")+"]"),"is-active")):(t.addClass("is-active"),t.attr("aria-expanded",!0),i(t.closest("[data-toggle-root]").find("["+t.attr("data-toggle-element")+"]"),"is-active"),t[0].hasAttribute("data-toggle-focus")&&r($("["+t.attr("data-toggle-focus")+"]")))}function i(n,t){n.css("display","none");n.addClass(t);n.slideDown(150,"swing",function(){$(this).css("display","")})}function n(n,t){n.css("display","flex");n.slideUp(150,"swing",function(){n.css("display","");n.removeClass(t)})}function r(n){n.focus();n.is(":focus")||(n.attr("tabindex","-1"),n.focus())}$("[data-toggle-element]").click(function(n){if(t($(this)),$(this)[0].hasAttribute("data-close-toggle")){var i=$("[data-toggle-name="+$(this).attr("data-close-toggle")+"]");i.hasClass("is-active")&&t(i)}n.preventDefault();n.stopPropagation()});$("[data-mega-menu-toggle]").click(function(t){if($(this).hasClass("is-active"))n($("[data-mega-menu]"),"is-active"),$(this).removeClass("is-active");else if($("[data-mega-menu-toggle].is-active").attr("aria-expanded",!1),$("[data-mega-menu-toggle].is-active").removeClass("is-active"),$(this).addClass("is-active"),$(this).attr("aria-expanded",!0),$("[data-mega-menu-submenu].is-active").removeClass("is-active"),$("[data-mega-menu-submenu="+$(this).attr("data-mega-menu-toggle")+"]").addClass("is-active"),!$("[data-mega-menu]").hasClass("is-active")){i($("[data-mega-menu]"),"is-active");$("body").on("click",function(t){!$("[data-mega-menu].is-active").length||$(t.target).closest("[data-mega-menu]").length||$(t.target).closest("[data-mega-menu-toggle]").length||(n($("[data-mega-menu]"),"is-active"),$("[data-mega-menu-toggle].is-active").removeClass("is-active"))})}t.preventDefault();t.stopPropagation()})})},{}]},{},[2])