﻿function positionFooter(){var b=0,c=0,a=$(".footer");b=a.outerHeight(true);c=($(window).scrollTop()+$(window).height()-b)+"px";if(($(document.body).height()+b)<$(window).height()){a.css("top",$(window).height()-b)}else{a.css("top",$(document.body).height())}if($(window).width()<1000){$("body").css("overflow-x","visible");$("#wrapper").css("overflow-x","hidden")}else{$("body").css("overflow-x","hidden");$("#wrapper").css("overflow-x","visible")}}function siteSearch(a){console.debug("/sok/"+escape(a));document.location.href="/sok/"+encodeURI(a);return false}$(window).bind("load",function(){positionFooter();$(window).scroll(positionFooter).resize(positionFooter)});$(document).ready(function(){$(".dropdown_toggler").click(function(){$("#dropdown").stop(true,true).slideToggle(300,function(){positionFooter()})});$(".avdeling").hover(function(){$(this).children(".box").show()},function(){$(this).children(".box").hide()});if(document.location.pathname!="/"){$("#dropdown").hide()}$(".box").hide();$("#submenu").height($("#pagecontent").outerHeight(true));$("#breadcrumbs .crumbswrapper").children(".seperator").last().remove()});
