function initialize(){var n=new google.maps.LatLng(59.3586029,18.122453),t=new google.maps.LatLng(59.3586029,18.122453),i={center:n,zoom:13,mapTypeId:google.maps.MapTypeId.ROADMAP},r=new google.maps.Map(document.getElementById("map-canvas"),i),u=new google.maps.Marker({position:t,icon:"http://www.millesgarden.se/images/layout/milles-map-marker.png"});u.setMap(r)}var ww,adjustMenu;$(document).ready(function(){$("div.articleTemplate_Image:empty").remove();$("div.articleTemplate_Header:empty").remove();$("div.bookBtn:empty").remove();$("div.extraLink:empty").remove();$("div.articleTemplate_ImageCaption:empty").remove();$("div.articleTemplate_Header",".articleTemplate_Container").filter(function(){return $.trim($(this).text())===""}).remove();$(".subMenu").each(function(){var n=$(this).children().length,t=$(this).children();n==0&&($(".subMenu").remove(),$(".contentSection").removeClass("col-9"))})});google.maps.event.addDomListener(window,"load",initialize);ww=document.body.clientWidth;$(document).ready(function(){$(".mainmenu-dropdown li a").each(function(){$(this).next().length>0&&$(this).addClass("parent")});$(".toggleMenu").click(function(n){n.preventDefault();$(this).toggleClass("toggleMenuActive");$(".mainmenu-dropdown").toggle()});adjustMenu()});$(window).bind("resize orientationchange",function(){ww=document.body.clientWidth;adjustMenu()});adjustMenu=function(){ww<=768?($(".more")[0]||$('<div class="more">&nbsp;<\/div>').insertBefore($(".parent")),$(".toggleMenu").css("display","inline-block"),$(".toggleMenu").hasClass("toggleMenuActive")?$(".mainmenu-dropdown").show():$(".mainmenu-dropdown").hide(),$(".mainmenu-dropdown li").unbind("mouseenter mouseleave"),$(".mainmenu-dropdown li a.parent").unbind("click"),$(".mainmenu-dropdown li .more").unbind("click").bind("click",function(){$(this).parent("li").toggleClass("hover")})):ww>=768&&($(".more").remove(),$(".toggleMenu").css("display","none"),$(".mainmenu-dropdown").show(),$(".mainmenu-dropdown li").removeClass("hover"),$(".mainmenu-dropdown li a").unbind("click"),$(".mainmenu-dropdown li").unbind("mouseenter mouseleave").bind("mouseenter mouseleave",function(){$(this).toggleClass("hover")}))};!function(){"use strict";function s(n,t,i){"addEventListener"in window?n.addEventListener(t,i,!1):"attachEvent"in window&&n.attachEvent("on"+t,i)}function d(){for(var i=["moz","webkit","o","ms"],n=0;n<i.length&&!r;n+=1)r=window[i[n]+"RequestAnimationFrame"];r||t(" RequestAnimationFrame not supported")}function g(){var n="Host page";return window.top!==window.self&&(n=window.parentIFrame?window.parentIFrame.getId():"Nested host page"),n}function h(n){return u+"["+g()+"]"+n}function t(t){n.log&&"object"==typeof console&&console.log(h(t))}function nt(n){"object"==typeof console&&console.warn(h(n))}function tt(r){function o(){function t(){v(f);l();n.resizedCallback(f)}s("Height");s("Width");y(t,f,"resetPage")}function g(i){var r=i.id;t(" Removing iFrame: "+r);i.parentNode.removeChild(i);n.closedCallback(r);t(" --")}function tt(){var n=e.substr(k).split(":");return{iframe:document.getElementById(n[0]),id:n[0],height:n[1],width:n[2],type:n[3]}}function s(i){var e=Number(n["max"+i]),o=Number(n["min"+i]),r=i.toLowerCase(),u=Number(f[r]);if(o>e)throw new Error("Value for min"+i+" can not be greater than max"+i);t(" Checking "+r+" is in range "+o+"-"+e);o>u&&(u=o,t(" Set "+r+" to min value"));u>e&&(u=e,t(" Set "+r+" to max value"));f[r]=""+u}function it(){var i=r.origin,u=f.iframe.src.split("/").slice(0,3).join("/");if(n.checkOrigin&&(t(" Checking connection is from: "+u),""+i!="null"&&i!==u))throw new Error("Unexpected message received from: "+i+" for "+f.iframe.id+". Message was: "+r.data+". This error can be disabled by adding the checkOrigin: false option.");return!0}function rt(){return u===(""+e).substr(0,k)}function ut(){var n=f.type in{"true":1,"false":1};return n&&t(" Ignoring init message from meta parent page"),n}function h(n){return e.substr(e.indexOf(":")+ft+n)}function ot(i){t(" MessageCallback passed: {iframe: "+f.iframe.id+", message: "+i+"}");n.messageCallback({iframe:f.iframe,message:JSON.parse(i)});t(" --")}function st(){if(null===f.iframe)throw new Error("iFrame ("+f.id+") does not exist on "+et);return!0}function p(n){var t=n.getBoundingClientRect();return c(),{x:parseInt(t.left,10)+parseInt(i.x,10),y:parseInt(t.top,10)+parseInt(i.y,10)}}function w(n){function e(){i=u;d();t(" --")}function o(){return{x:Number(f.width)+r.x,y:Number(f.height)+r.y}}var r=n?p(f.iframe):{x:0,y:0},u=o();t(" Reposition requested from iFrame (offset x:"+r.x+" y:"+r.y+")");window.top!==window.self?window.parentIFrame?n?parentIFrame.scrollToOffset(u.x,u.y):parentIFrame.scrollTo(f.width,f.height):nt(" Unable to scroll to requested position, window.parentIFrame not found"):e()}function d(){!1!==n.scrollCallback(i)&&l()}function ht(n){function e(n){var u=p(n);t(" Moving to in page link (#"+r+") at x: "+u.x+" y: "+u.y);i={x:u.x,y:u.y};d();t(" --")}var r=n.split("#")[1]||"",u=decodeURIComponent(r),f=document.getElementById(u)||document.getElementsByName(u)[0];window.top!==window.self?window.parentIFrame?parentIFrame.moveToAnchor(r):t(" In page link #"+r+" not found and window.parentIFrame not found"):f?e(f):t(" In page link #"+r+" not found")}function ct(){switch(f.type){case"close":g(f.iframe);n.resizedCallback(f);break;case"message":ot(h(6));break;case"scrollTo":w(!1);break;case"scrollToOffset":w(!0);break;case"inPageLink":ht(h(9));break;case"reset":a(f);break;case"init":o();n.initCallback(f.iframe);break;default:o()}}var e=r.data,f={};rt()&&(t(" Received: "+e),f=tt(),!ut()&&st()&&it()&&(ct(),b=!1))}function c(){null===i&&(i={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop},t(" Get page position: "+i.x+","+i.y))}function l(){null!==i&&(window.scrollTo(i.x,i.y),t(" Set page position: "+i.x+","+i.y),i=null)}function a(n){function i(){v(n);f("reset","reset",n.iframe)}t(" Size reset requested by "+("init"===n.type?"host page":"iFrame"));c();y(i,n,"init")}function v(i){function r(n){i.iframe.style[n]=i[n]+"px";t(" IFrame ("+i.iframe.id+") "+n+" set to "+i[n]+"px")}n.sizeHeight&&r("height");n.sizeWidth&&r("width")}function y(n,i,u){u!==i.type&&r?(t(" Requesting animation frame"),r(n)):n()}function f(n,i,r){t("["+n+"] Sending msg to iframe ("+i+")");r.contentWindow.postMessage(u+i,"*")}function p(){function u(){function r(r){1/0!==n[r]&&0!==n[r]&&(i.style[r]=n[r]+"px",t(" Set "+r+" = "+n[r]+"px"))}r("maxHeight");r("minHeight");r("maxWidth");r("minWidth")}function e(n){return""===n&&(i.id=n="iFrameResizer"+ut++,t(" Added missing iframe ID: "+n+" ("+i.src+")")),n}function o(){t(" IFrame scrolling "+(n.scrolling?"enabled":"disabled")+" for "+r);i.style.overflow=!1===n.scrolling?"hidden":"auto";i.scrolling=!1===n.scrolling?"no":"yes"}function h(){("number"==typeof n.bodyMargin||"0"===n.bodyMargin)&&(n.bodyMarginV1=n.bodyMargin,n.bodyMargin=""+n.bodyMargin+"px")}function c(){return r+":"+n.bodyMarginV1+":"+n.sizeWidth+":"+n.log+":"+n.interval+":"+n.enablePublicMethods+":"+n.autoResize+":"+n.bodyMargin+":"+n.heightCalculationMethod+":"+n.bodyBackground+":"+n.bodyPadding+":"+n.tolerance+":"+n.enableInPageLinks}function l(t){s(i,"load",function(){var r=b;f("iFrame.onload",t,i);!r&&n.heightCalculationMethod in ot&&a({iframe:i,height:0,width:0,type:"init"})});f("init",t,i)}var i=this,r=e(i.id);o();u();h();l(c())}function it(n){if("object"!=typeof n)throw new TypeError("Options is not an object.");}function w(t){t=t||{};it(t);for(var i in o)o.hasOwnProperty(i)&&(n[i]=t.hasOwnProperty(i)?t[i]:o[i])}function e(){function n(n){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">.");p.call(n)}return function(t,i){switch(w(t),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),n);break;case"object":n(i);break;default:throw new TypeError("Unexpected data type ("+typeof i+").");}}}function rt(n){n.fn.iFrameResize=function(n){return w(n),this.filter("iframe").each(p).end()}}var ut=0,b=!0,ft=7,u="[iFrameSizer]",k=u.length,et="",i=null,r=window.requestAnimationFrame,ot={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},n={},o={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,enableInPageLinks:!1,enablePublicMethods:!1,heightCalculationMethod:"offset",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,closedCallback:function(){},initCallback:function(){},messageCallback:function(){},resizedCallback:function(){},scrollCallback:function(){return!0}};d();s(window,"message",tt);window.jQuery&&rt(jQuery);"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e():window.iFrameResize=e()}();$(document).ready(function(){var n=$("#left_library img").length;n==1&&$(".slideshow_container").addClass("hideNavigations");$("iframe").iFrameResize();$(".searchBoxIcon, .searchbox-text-open").click(function(n){n.stopPropagation();$(".searchbox").toggleClass("searchbox-open");$(".searchBoxIcon").toggleClass("fa-search fa-times")})})