function setTabIndex(n){var t=1;$("#"+n+" :input").each(function(){$(this).attr("id")!="undefined"&&$(this).attr("type")!="hidden"?($(this).attr("tabindex",t),t++):$(this).removeAttr("tabindex")})}var dataTablesLanguage={"da-DK":"//cdn.datatables.net/plug-ins/1.10.9/i18n/Danish.json","sv-SE":"//cdn.datatables.net/plug-ins/1.10.9/i18n/Swedish.json"},breakpointDefinition={tablet:1182,phone:750};$(function(){function u(){i!==$(".change-this-into-sticky-menu:visible ul").height()&&(n=$(".hide-on-scroll-down").height(),i=$(".change-this-into-sticky-menu:visible ul").height(),r=n+i);!$(".empty-element-visible-only-on-desktops").is(":hidden")&&t&&($(".change-this-into-sticky-menu").removeClass("sticky-navigation").css("width","100%"),t=!1)}function f(){$(".empty-element-visible-only-on-desktops").is(":hidden")&&($(window).scrollTop()<n?($(".change-this-into-sticky-menu").removeClass("sticky-navigation").css("width","100%").css("top",$(".hide-on-scroll-down").offset().top),$(".hide-on-scroll-down").css("height",n),t=!0):($(".hide-on-scroll-down").css("height",r),$(".change-this-into-sticky-menu").addClass("sticky-navigation").css("width",$(".take-width-from-this-parent").width()).css("top",0),t=!0))}$(".new-messages").click(function(){window.location=$(this).data("url")});var t=!1,n=$(".hide-on-scroll-down").height(),i=$(".change-this-into-sticky-menu:visible ul").height(),r=n+i;$(window).resize(function(){u();f()});$(window).scroll(function(){u();f()})});$(document).ready(function(){$("#isMaintance").length||($.validator.methods.date=function(){return!0})});