PageSourceSearch

https://www.ogmundur.is/static/themes/main/js/site.min.js?v=273960b040

js ogmundur.is collected 2026-10-02 13:26:24 UTC 37,122 bytes, 4 lines download raw bytes

1!function(){var e=function(e){"use strict";var t=MoyaContainer.get("core.util");MoyaComponents.register("ext.mobilemenu",(function(e){var t={mainMenuElement:e,mainMenuToggleElement:document.getElementById("mainmenuToggle"),mobileMenuElement:e};n.create(t)}));var n=function(){function e(e){this.mainMenuElement=e.mainMenuElement,this.mainMenuToggleElement=e.mainMenuToggleElement,this.mobileMenuElement=e.mainMenuElement}return e.create=function(t){return new e(t).run()},e.prototype.run=function(){this.mainMenuElement&&(this.checkAttributes(),this.addExpand(),this.bind(),this.dispatchEvent())},e.prototype.bind=function(){var e=this;t.delegate(this.mobileMenuElement,"click","body",(function(e){e.stopPropagation()})),t.delegate(document.body,"click","body",(function(t){e.bodyClick(t)})),t.delegate(this.mainMenuToggleElement,"click","#mainmenuToggle",(function(t){e.onMenuClick(t)})),Array.prototype.forEach.call(this.mainMenuElement.querySelectorAll('li[class*="selectedLevel"]'),(function(e){e.classList.add("down")}))},e.prototype.onMenuClick=function(e){e.stopPropagation(),e.preventDefault();var t=document.body.classList.contains("mainmenu-open");this.mobileToggle(t),t?this.mainMenuToggleElement.removeAttribute("aria-expanded"):this.mainMenuToggleElement.setAttribute("aria-expanded","true")},e.prototype.addExpand=function(){Array.prototype.forEach.call(this.mobileMenuElement.querySelectorAll(".children"),(function(t){t.prepend(e.createExpandElement())})),Array.prototype.forEach.call(this.mobileMenuElement.querySelectorAll(".expand"),(function(t){t.addEventListener("click",(function(n){e.expandClick(n,t)}))}))},e.createExpandElement=function(){var e=document.createElement("button");return e.classList.add("expand"),e.setAttribute("aria-label","Opna/loka"),e},e.prototype.mobileToggle=function(e){document.body.classList.toggle("mainmenu-open"),e&&this.closeMenu(e)},e.prototype.closeMenu=function(e){e&&(document.body.classList.add("mainmenu-closing"),setTimeout((function(){document.body.classList.remove("mainmenu-closing")}),300))},e.prototype.bodyClick=function(e){document.body.classList.contains("mainmenu-open")&&(document.body.classList.remove("mainmenu-open"),this.closeMenu(!0))},e.prototype.searchbox=function(){var e=document.getElementById("searchBox").cloneNode(!0);e.id="mSearchBox",this.mobileMenuElement.prepend(e);for(var t=document.getElementById("mSearchBox"),n=t.querySelectorAll("*"),i=0;i<n.length;i++){var o=n[i],a=o.getAttribute("id");if(a){var r="m"+a.substr(0,1).toUpperCase()+a.substr(1),s=t.querySelector('label[for="'+a+'"]');s&&s.setAttribute("for",r),o.setAttribute("id",r)}}},e.prototype.languages=function(){var t=document.getElementById("divisions");if(t){var n=this.mainMenuElement.querySelector("ul.mmLevel1"),i=e.createLangLi();t.querySelectorAll("a").forEach((function(e){if(!e.closest("li").classList.contains("selected")){var t=e.cloneNode(!0);i.append(t)}})),n.append(i)}},e.createLangLi=function(){var e=document.createElement("li");return e.classList.add("ele-language"),e.classList.add("si"),e.classList.add("level1"),e},e.prototype.qn=function(){var e=document.getElementById("qn"),t=this.mobileMenuElement.querySelector("ul.mmLevel1"),n=this.mainMenuElement.hasAttribute("data-qn-selector")?this.mainMenuElement.getAttribute("data-qn-selector"):"li";e.querySelectorAll(n).forEach((function(e){var n=e.cloneNode(!0);n.classList.add("mobileQn"),t.append(n)})),t.append("")},e.prototype.prependHeader=function(){this.mobileMenuElement.querySelectorAll(".mmLevel1 li ul").forEach((function(e){var n=e.parentNode.querySelector("a").cloneNode(!0);n.classList.add("back");var i=document.createElement("div");i.classList.add("header"),i.prepend(n),t.delegate(n,"click","body",(function(t){t.preventDefault(),e.parentElement.classList.remove("down")})),e.prepend(i)}))},e.prototype.prependHome=function(){var e=this;this.mobileMenuElement.querySelectorAll(".mmLevel1 li ul").forEach((function(n){var i=document.createElement("a");i.classList.add("home"),i.setAttribute("href","#");var o=document.createElement("span");o.classList.add("sr-only"),o.innerHTML="Heim",i.prepend(o);var a=document.createElement("div");a.classList.add("navbar"),a.prepend(i),t.delegate(i,"click","body",(function(t){t.preventDefault(),e.mobileMenuElement.querySelectorAll(".mmLevel1 li").forEach((function(e){e.classList.remove("down")}))})),n.prepend(a)}))},e.prototype.cloneMenu=function(){var e=document.createElement("nav");e.setAttribute("id","mobilemenu"),e.classList.add("hidden-md"),e.classList.add("hidden-lg");var t=this.mainMenuElement.querySelector("ul.mmLevel1").cloneNode(!0);t.removeAttribute("id");var n=t.querySelector("ul");n&&n.removeAttribute("id"),e.append(t),this.mainMenuElement.parentNode.insertBefore(e,this.mainMenuElement.nextSibling),this.mobileMenuElement=e,this.mainMenuElement.classList.add("hidden-sm"),this.mainMenuElement.classList.add("hidden-xs"),Array.prototype.forEach.call(this.mobileMenuElement.querySelectorAll('li[class*="selectedLevel"]'),(function(e){e.classList.add("down")}))},e.expandClick=function(e,t){e.preventDefault(),e.stopPropagation(),t.closest("li").classList.toggle("down")},e.prototype.dispatchEvent=function(){MoyaEventHandler.dispatch("ext.mobilemenu.init",{mobilemenu:this})},e.prototype.checkAttributes=function(){this.mainMenuElement.hasAttribute("data-clone")&&this.cloneMenu(),this.mainMenuElement.hasAttribute("data-searchbox")&&this.searchbox(),this.mainMenuElement.hasAttribute("data-qn")&&this.qn(),this.mainMenuElement.hasAttribute("data-languages")&&this.languages(),this.mainMenuElement.hasAttribute("data-mMenu")&&(this.prependHeader(),this.mainMenuElement.hasAttribute("data-homeButton")&&this.prependHome())},e}();return e.MobileMenu=n,e}({});"function"==typeof e&&e()}(),function(){var e=function(e){"use strict";
1var t=MoyaContainer.get("core.util");MoyaComponents.register("ext.head-search",(function(e){(new n).run()}));var n=function(){function e(){this.body=document.body,this.searchToggle=document.getElementById("searchToggle"),this.searchDrop=document.getElementById("searchDrop"),this.searchClose=document.getElementById("searchClose"),this.header=document.querySelector("header")}return e.prototype.run=function(){this.bind(),this.appendToHeader()},e.prototype.bind=function(){var e=this;t.delegate(this.searchToggle,"click","#"+this.searchToggle.id,(function(t){e.body.classList.contains("search-open")?e.closeSearch():(e.body.classList.add("search-open"),e.searchDrop.querySelector("#q").focus())})),t.delegate(this.searchClose,"click","#"+this.searchClose.id,(function(t){e.closeSearch()})),document.addEventListener("keydown",(function(t){"Escape"===t.code&&e.closeSearch()})),document.addEventListener("click",(function(t){e.body.classList.contains("search-open")&&t.target instanceof Node&&(e.searchDrop.contains(t.target)||e.mobileToggle===t.target||e.searchToggle===t.target||e.closeSearch())})),document.addEventListener("touchstart",(function(t){e.body.classList.contains("search-open")&&t.target instanceof Node&&(e.searchDrop.contains(t.target)||e.mobileToggle===t.target||e.searchToggle===t.target||e.closeSearch())}))},e.prototype.closeSearch=function(){this.body.classList.remove("search-open")},e.prototype.appendToHeader=function(){var e=this,n=this.searchToggle.cloneNode();n.classList.add("mobile-only"),this.header.querySelector(".contentWrap").prepend(n),this.mobileToggle=n,t.delegate(n,"click","#"+n.id,(function(t){e.body.classList.contains("search-open")?e.closeSearch():(e.body.classList.add("search-open"),e.searchDrop.querySelector("#q").focus())}))},e}();return e.HeadSearch=n,e}({});"function"==typeof e&&e()}(),function(){var e=function(e){"use strict";var t=function(){function e(){}return e.init=function(){(new e).run()},e.prototype.run=function(){e.initResponsiveVideo(),e.initResponsiveTables(),e.initFrontpage()},e.is=function(e){return document.body.classList.contains(e)},e.initResponsiveVideo=function(){var e=document.querySelectorAll('iframe[src*="youtube.com"], iframe[src*="vimeo.com"]');Array.prototype.forEach.call(e,(function(e){var t=document.createElement("div");t.classList.add("video"),t.style.maxWidth=e.width;var n=document.createElement("div");n.classList.add("embed-responsive","embed-responsive-16by9"),e.parentNode.insertBefore(n,e),n.appendChild(e),n.parentNode.insertBefore(t,n),t.appendChild(n)}))},e.initResponsiveTables=function(){var e=document.querySelectorAll("body:not(.admin) main table");Array.prototype.forEach.call(e,(function(e){var t=document.createElement("div");t.classList.add("table-responsive"),e.parentNode.insertBefore(t,e),t.appendChild(e)}))},e.initFrontpage=function(){e.is("frontpage")},e}();return t.init(),e.Site=t,e}({});"function"==typeof e&&e()}(),function(){"use strict";var e=MoyaContainer.get("core.toggle"),t=document.querySelectorAll("section.accordion"),n=0;if(Array.prototype.forEach.call(t,(function(t){var i=t.querySelector("*:first-child"),o=document.createElement("button");o.innerHTML=i.innerHTML,t.id="accordion-"+s(o.innerText),i.innerHTML="",i.parentNode.insertBefore(o,i),i.remove();var a=document.createElement("div");function r(e){history.pushState?history.pushState(null,null,"#"+e):location.hash="#"}function s(e){var t,n=e.trim().toLowerCase(),i={"á":"a","ð":"d","é":"e","í":"i","ó":"o","ú":"u","ý":"y","þ":"th","æ":"ae","ö":"o"};for(var o in i)t=new RegExp(o,"g"),n=n.replace(t,i[o]);return n.replace(/[^a-zA-Z0-9\s]/g,"").replace(/\s+/g,"-")}a.classList.add("wrap"),a.id="accordion-"+ ++n,a.dataset.moyaComponent="core.max-height",function(e,t){e&&e.length&&(e[0].parentNode.insertBefore(t,e[0]),e.forEach((function(e){return t.appendChild(e)})))}(t.querySelectorAll(":scope >*:not(:first-child)"),a),e.create(o,a,"accordion"+n,{onOpen:function(e){e.getOpenElement().parentElement.classList.add("open"),r(s(o.innerText))},onClose:function(e){e.getOpenElement().parentElement.classList.remove("open"),r("")},closeOnBodyClick:!1}),a.addEventListener("transitionend",(function(){window.dispatchEvent(new Event("resize"))})),t.classList.add("ready")})),t.length){location.hash&&document.addEventListener("DOMContentLoaded",(function(){o(location.hash)}));var i=document.querySelectorAll('a[href*="#"]:not([href="#"])');Array.prototype.forEach.call(i,(function(e){e.addEventListener("click",(function(){location.pathname.replace(/^\//,"")===e.pathname.replace(/^\//,"")&&location.hostname===e.hostname&&o(e.hash)}))}))}var o=function(e){var t,n=e.replace("#","#accordion-"),i=document.querySelector(n);if(i){var o=i.querySelector("button[aria-haspopup]");if(o){i.classList.contains("open")||o.click();var a=parseInt(null!=(t=document.querySelector("header").dataset.offset)?t:"0");setTimeout((function(){window.scrollTo({top:i.getBoundingClientRect().top+window.scrollY-a,behavior:"smooth"})}),200)}}}}(),"function"==typeof tsBuild&&tsBuild(),
2/*! fancyBox v2.1.4 fancyapps.com | fancyapps.com/fancybox/#license */
3function(e,t,n,i){var o=n(e),a=n(t),r=n.fancybox=function(){r.open.apply(this,arguments)},s=navigator.userAgent.match(/msie/),l=null,c=t.createTouch!==i,d=function(e){return e&&e.hasOwnProperty&&e instanceof n},p=function(e){return e&&"string"===n.type(e)},u=function(e){return p(e)&&0<e.indexOf("%")},h=function(e,t){var n=parseInt(e,10)||0;return t&&u(e)&&(n*=r.getViewport()[t]/100),Math.ceil(n)},f=function(e,t){return h(e,t)+"px"};n.extend(r,{version:"2.1.4",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!c,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(s?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,
3skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(e,t){if(e&&(n.isPlainObject(t)||(t={}),!1!==r.close(!0)))return n.isArray(e)||(e=d(e)?n(e).get():[e]),n.each(e,(function(o,a){var s,l,c,u,h,f={};"object"===n.type(a)&&(a.nodeType&&(a=n(a)),d(a)?(f={href:a.data("fancybox-href")||a.attr("href"),title:a.data("fancybox-title")||a.attr("title"),isDom:!0,element:a},n.metadata&&n.extend(!0,f,a.metadata())):f=a),s=t.href||f.href||(p(a)?a:null),l=t.title!==i?t.title:f.title||"",!(u=(c=t.content||f.content)?"html":t.type||f.type)&&f.isDom&&((u=a.data("fancybox-type"))||(u=(u=a.prop("class").match(/fancybox\.(\w+)/))?u[1]:null)),p(s)&&(u||(r.isImage(s)?u="image":r.isSWF(s)?u="swf":"#"===s.charAt(0)?u="inline":p(a)&&(u="html",c=a)),"ajax"===u&&(h=s.split(/\s+/,2),s=h.shift(),h=h.shift())),c||("inline"===u?s?c=n(p(s)?s.replace(/.*(?=#[^\s]+$)/,""):s):f.isDom&&(c=a):"html"===u?c=s:!u&&!s&&f.isDom&&(u="inline",c=a)),n.extend(f,{href:s,type:u,content:c,title:l,selector:h}),e[o]=f})),r.opts=n.extend(!0,{},r.defaults,t),t.keys!==i&&(r.opts.keys=!!t.keys&&n.extend({},r.defaults.keys,t.keys)),r.group=e,r._start(r.opts.index)},cancel:function(){var e=r.coming;e&&!1!==r.trigger("onCancel")&&(r.hideLoading(),r.ajaxLoad&&r.ajaxLoad.abort(),r.ajaxLoad=null,r.imgPreload&&(r.imgPreload.onload=r.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),r.coming=null,r.current||r._afterZoomOut(e))},close:function(e){r.cancel(),!1!==r.trigger("beforeClose")&&(r.unbindEvents(),r.isActive&&(r.isOpen&&!0!==e?(r.isOpen=r.isOpened=!1,r.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),r.wrap.stop(!0,!0).removeClass("fancybox-opened"),r.transitions[r.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),r._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(r.player.timer)},i=function(){t(),r.current&&r.player.isActive&&(r.player.timer=setTimeout(r.next,r.current.playSpeed))},o=function(){t(),n("body").unbind(".player"),r.player.isActive=!1,r.trigger("onPlayEnd")};!0===e||!r.player.isActive&&!1!==e?r.current&&(r.current.loop||r.current.index<r.group.length-1)&&(r.player.isActive=!0,n("body").bind({"afterShow.player onUpdate.player":i,"onCancel.player beforeClose.player":o,"beforeLoad.player":t}),i(),r.trigger("onPlayStart")):o()},next:function(e){var t=r.current;t&&(p(e)||(e=t.direction.next),r.jumpto(t.index+1,e,"next"))},prev:function(e){var t=r.current;t&&(p(e)||(e=t.direction.prev),r.jumpto(t.index-1,e,"prev"))},jumpto:function(e,t,n){var o=r.current;o&&(e=h(e),r.direction=t||o.direction[e>=o.index?"next":"prev"],r.router=n||"jumpto",o.loop&&(0>e&&(e=o.group.length+e%o.group.length),e%=o.group.length),o.group[e]!==i&&(r.cancel(),r._start(e)))},reposition:function(e,t){var i,o=r.current,a=o?o.wrap:null;a&&(i=r._getPosition(t),e&&"scroll"===e.type?(delete i.position,a.stop(!0,!0).animate(i,200)):(a.css(i),o.pos=n.extend({},o.dim,i)))},update:function(e){var t=e&&e.type,n=!t||"orientationchange"===t;n&&(clearTimeout(l),l=null),r.isOpen&&!l&&(l=setTimeout((function(){var i=r.current;i&&!r.isClosing&&(r.wrap.removeClass("fancybox-tmp"),(n||"load"===t||"resize"===t&&i.autoResize)&&r._setDimension(),"scroll"===t&&i.canShrink||r.reposition(e),r.trigger("onUpdate"),l=null)}),n&&!c?0:300))},toggle:function(e){r.isOpen&&(r.current.fitToView="boolean"===n.type(e)?e:!r.current.fitToView,c&&(r.wrap.removeAttr("style").addClass("fancybox-tmp"),r.trigger("onUpdate")),r.update())},hideLoading:function(){a.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var e,t;r.hideLoading(),e=n('<div id="fancybox-loading"><div></div></div>').click(r.cancel).appendTo("body"),a.bind("keydown.loading",(function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),r.cancel())})),r.defaults.fixed||(t=r.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x}))},getViewport:function(){var t=r.current&&r.current.locked||!1,n={x:o.scrollLeft(),y:o.scrollTop()};return t?(n.w=t[0].clientWidth,n.h=t[0].clientHeight):(n.w=c&&e.innerWidth?e.innerWidth:o.width(),n.h=c&&e.innerHe
3ight?e.innerHeight:o.height()),n},unbindEvents:function(){r.wrap&&d(r.wrap)&&r.wrap.unbind(".fb"),a.unbind(".fb"),o.unbind(".fb")},bindEvents:function(){var e,t=r.current;t&&(o.bind("orientationchange.fb"+(c?"":" resize.fb")+(t.autoCenter&&!t.locked?" scroll.fb":""),r.update),(e=t.keys)&&a.bind("keydown.fb",(function(o){var a=o.which||o.keyCode,s=o.target||o.srcElement;if(27===a&&r.coming)return!1;!o.ctrlKey&&!o.altKey&&!o.shiftKey&&!o.metaKey&&(!s||!s.type&&!n(s).is("[contenteditable]"))&&n.each(e,(function(e,s){return 1<t.group.length&&s[a]!==i?(r[e](s[a]),o.preventDefault(),!1):-1<n.inArray(a,s)?(r[e](),o.preventDefault(),!1):void 0}))})),n.fn.mousewheel&&t.mouseWheel&&r.wrap.bind("mousewheel.fb",(function(e,i,o,a){for(var s=n(e.target||null),l=!1;s.length&&!l&&!s.is(".fancybox-skin")&&!s.is(".fancybox-wrap");)l=s[0]&&!(s[0].style.overflow&&"hidden"===s[0].style.overflow)&&(s[0].clientWidth&&s[0].scrollWidth>s[0].clientWidth||s[0].clientHeight&&s[0].scrollHeight>s[0].clientHeight),s=n(s).parent();0!==i&&!l&&1<r.group.length&&!t.canShrink&&(0<a||0<o?r.prev(0<a?"down":"left"):(0>a||0>o)&&r.next(0>a?"up":"right"),e.preventDefault())})))},trigger:function(e,t){var i,o=t||r.coming||r.current;if(o){if(n.isFunction(o[e])&&(i=o[e].apply(o,Array.prototype.slice.call(arguments,1))),!1===i)return!1;o.helpers&&n.each(o.helpers,(function(t,i){i&&r.helpers[t]&&n.isFunction(r.helpers[t][e])&&(i=n.extend(!0,{},r.helpers[t].defaults,i),r.helpers[t][e](i,o))})),n.event.trigger(e+".fb")}},isImage:function(e){return p(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i)},isSWF:function(e){return p(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var t,i,o={};if(e=h(e),!(t=r.group[e]||null))return!1;if(t=(o=n.extend(!0,{},r.opts,t)).margin,i=o.padding,"number"===n.type(t)&&(o.margin=[t,t,t,t]),"number"===n.type(i)&&(o.padding=[i,i,i,i]),o.modal&&n.extend(!0,o,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),o.autoSize&&(o.autoWidth=o.autoHeight=!0),"auto"===o.width&&(o.autoWidth=!0),"auto"===o.height&&(o.autoHeight=!0),o.group=r.group,o.index=e,r.coming=o,!1===r.trigger("beforeLoad"))r.coming=null;else{if(i=o.type,t=o.href,!i)return r.coming=null,!(!r.current||!r.router||"jumpto"===r.router)&&(r.current.index=e,r[r.router](r.direction));if(r.isActive=!0,"image"!==i&&"swf"!==i||(o.autoHeight=o.autoWidth=!1,o.scrolling="visible"),"image"===i&&(o.aspectRatio=!0),"iframe"===i&&c&&(o.scrolling="scroll"),o.wrap=n(o.tpl.wrap).addClass("fancybox-"+(c?"mobile":"desktop")+" fancybox-type-"+i+" fancybox-tmp "+o.wrapCSS).appendTo(o.parent||"body"),n.extend(o,{skin:n(".fancybox-skin",o.wrap),outer:n(".fancybox-outer",o.wrap),inner:n(".fancybox-inner",o.wrap)}),n.each(["Top","Right","Bottom","Left"],(function(e,t){o.skin.css("padding"+t,f(o.padding[e]))})),r.trigger("onReady"),"inline"===i||"html"===i){if(!o.content||!o.content.length)return r._error("content")}else if(!t)return r._error("href");"image"===i?r._loadImage():"ajax"===i?r._loadAjax():"iframe"===i?r._loadIframe():r._afterLoad()}},_error:function(e){n.extend(r.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:r.coming.tpl.error}),r._afterLoad()},_loadImage:function(){var e=r.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,r.coming.width=this.width,r.coming.height=this.height,r._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,r._error("image")},e.src=r.coming.href,!0!==e.complete&&r.showLoading()},_loadAjax:function(){var e=r.coming;r.showLoading(),r.ajaxLoad=n.ajax(n.extend({},e.ajax,{url:e.href,error:function(e,t){r.coming&&"abort"!==t?r._error("ajax",e):r.hideLoading()},success:function(t,n){"success"===n&&(e.content=t,r._afterLoad())}}))},_loadIframe:function(){var e=r.coming,t=n(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",c?"auto":e.iframe.scrolling).attr("src",e.href);n(e.wrap).bind("onReset",(function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}})),e.iframe.preload&&(r.showLoading(),t.one("load",(function(){n(this).data("ready",1),c||n(this).bind("load.fb",r.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),r._afterLoad()}))),e.content=t.appendTo(e.inner),e.iframe.preload||r._afterLoad()},_preloadImages:function(){var e,t,n=r.group,i=r.current,o=n.length,a=i.preload?Math.min(i.preload,o-1):0;for(t=1;t<=a;t+=1)"image"===(e=n[(i.index+t)%o]).type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,t,i,o,a,s=r.coming,l=r.current;if(r.hideLoading(),s&&!1!==r.isActive)if(!1===r.trigger("afterLoad",s,l))s.wrap.stop(!0).trigger("onReset").remove(),r.coming=null;else{switch(l&&(r.trigger("beforeChange",l),l.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),r.unbindEvents(),e=s.content,t=s.type,i=s.scrolling,n.extend(r,{wrap:s.wrap,skin:s.skin,outer:s.outer,inner:s.inner,current:s,previous:l}),o=s.href,t){case"inline":case"ajax":case"html":s.selector?e=n("<div>").html(e).find(s.selector):d(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",n('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),s.wrap.bind("onReset",(function(){n(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)})));break;case"image":e=s.tpl.image.replace("{href}",o);break;case"swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+o+'"></param>',a="",n.each(s.swf,(function(t,n){e+='<param name="'+t+'" value="'+n+'"></param>',a+=" "+t+'="'+n+'"'})),e+='<embed src="'+o+'" type="application/x-shockwave-flash" width="100%" height="100%"'+a+"></embed></object>"}(!d(e)||!e.parent().is(s.inner))&&s.inner.append(e),r.trigger("beforeShow"),s.inner.css("overflow","yes"===i?"scroll":"no"===i?"hidden":i),r._setDimension(),r.reposition(),r.isOpen=!1,r.coming=null,r.bindEvents(),r.isOpened?l.prevMethod&&r.transitions[l.prevMethod]():n(".fancybox-wrap").not(s.wrap).stop(!0).trigger("onReset").remove(),r.transitions[r.isOpened?s.nextMethod:s.openMethod](),r._preloadImages()}},_setDimension:function(){var e,t,i,o,a,s,l,c,d,p=r.getViewport(),m=0,g=!1,y=!1,b=(g=r.wrap,r.skin),v=r.inner,w=r.current,x=(y=w.width,w.height),E=w.minWidth,k=w.minHeight,L=w.maxWidth,C=w.maxHeight,S=w.scrolling,M=w.scrollOutside?w.scrollbarWidth:0,A=w.margin,T=h(A[1]+A[3]),O=h(A[0]+A[2]);if(g.add(b).add(v).width("auto").height("auto").removeClass("fancybox-tmp"),t=T+(A=h(b.outerWidth(!0)-b.width())),i=O+(e=h(b.outerHeight(!0)-b.height())),o=u(y)?(p.w-t)*h(y)/100:y,a=u(x)?(p.h-i)*h(x)/100:x,"iframe"===w.type){if(d=w.content,w.autoHeight&&1===d.data("ready"))try{d[0].contentWindow.document.location&&(v.width(o).height(9999),s=d.contents().find("body"),M&&s.css("overflow-x","hidden"),a=s.height())}catch(e){}}else(w.autoWidth||w.autoHeight)&&(v.addClass("fancybox-tmp"),w.autoWidth||v.width(o),w.autoHeight||v.height(a),w.autoWidth&&(o=v.width()),w.autoHeight&&(a=v.height()),v.removeClass("fancybox-tmp"));if(y=h(o),x=h(a),c=o/a,E=h(u(E)?h(E,"w")-t:E),L=h(u(L)?h(L,"w")-t:L),k=h(u(k)?h(k,"h")-i:k),s=L,l=C=h(u(C)?h(C,"h")-i:C),w.fitToView&&
vendor: 1,517 bytes, line 3
3(L=Math.min(p.w-t,L),C=Math.min(p.h-i,C)),t=p.w-T,O=p.h-O,w.aspectRatio?(y>L&&(x=h((y=L)/c)),x>C&&(y=h((x=C)*c)),y<E&&(x=h((y=E)/c)),x<k&&(y=h((x=k)*c))):(y=Math.max(E,Math.min(y,L)),w.autoHeight&&"iframe"!==w.type&&(v.width(y),x=v.height()),x=Math.max(k,Math.min(x,C))),w.fitToView)if(v.width(y).height(x),g.width(y+A),p=g.width(),T=g.height(),w.aspectRatio)for(;(p>t||T>O)&&y>E&&x>k&&!(19<m++);)x=Math.max(k,Math.min(C,x-10)),(y=h(x*c))<E&&(x=h((y=E)/c)),y>L&&(x=h((y=L)/c)),v.width(y).height(x),g.width(y+A),p=g.width(),T=g.height();else y=Math.max(E,Math.min(y,y-(p-t))),x=Math.max(k,Math.min(x,x-(T-O)));M&&"auto"===S&&x<a&&y+A+M<t&&(y+=M),v.width(y).height(x),g.width(y+A),p=g.width(),T=g.height(),g=(p>t||T>O)&&y>E&&x>k,y=w.aspectRatio?y<s&&x<l&&y<o&&x<a:(y<s||x<l)&&(y<o||x<a),n.extend(w,{dim:{width:f(p),height:f(T)},origWidth:o,origHeight:a,canShrink:g,canExpand:y,wPadding:A,hPadding:e,wrapSpace:T-b.outerHeight(!0),skinSpace:b.height()-x}),!d&&w.autoHeight&&x>k&&x<C&&!y&&v.height("auto")},_getPosition:function(e){var t=r.current,n=r.getViewport(),i=t.margin,o=r.wrap.width()+i[1]+i[3],a=r.wrap.height()+i[0]+i[2];i={position:"absolute",top:i[0],left:i[3]};return t.autoCenter&&t.fixed&&!e&&a<=n.h&&o<=n.w?i.position="fixed":t.locked||(i.top+=n.y,i.left+=n.x),i.top=f(Math.max(i.top,i.top+(n.h-a)*t.topRatio)),i.left=f(Math.max(i.left,i.left+(n.w-o)*t.leftRatio)),i},_afterZoomIn:function(){var e=r.current;e&&(r.isOpen=r.isOpened=!0,r.wrap.css("overflow","visible").addClass("fancybox-opened"),r.update(
3),(e.closeClick||e.nextClick&&1<r.group.length)&&r.inner.css("cursor","pointer").bind("click.fb",(function(t){!n(t.target).is("a")&&!n(t.target).parent().is("a")&&(t.preventDefault(),r[e.closeClick?"close":"next"]())})),e.closeBtn&&n(e.tpl.closeBtn).appendTo(r.skin).bind("click.fb",(function(e){e.preventDefault(),r.close()})),e.arrows&&1<r.group.length&&((e.loop||0<e.index)&&n(e.tpl.prev).appendTo(r.outer).bind("click.fb",r.prev),(e.loop||e.index<r.group.length-1)&&n(e.tpl.next).appendTo(r.outer).bind("click.fb",r.next)),r.trigger("afterShow"),e.loop||e.index!==e.group.length-1?r.opts.autoPlay&&!r.player.isActive&&(r.opts.autoPlay=!1,r.play()):r.play(!1))},_afterZoomOut:function(e){e=e||r.current,n(".fancybox-wrap").trigger("onReset").remove(),n.extend(r,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),r.trigger("afterClose",e)}}),r.transitions={getOrigPosition:function(){var e=r.current,t=e.element,n=e.orig,i={},o=50,a=50,s=e.hPadding,l=e.wPadding,c=r.getViewport();return!n&&e.isDom&&t.is(":visible")&&((n=t.find("img:first")).length||(n=t)),d(n)?(i=n.offset(),n.is("img")&&(o=n.outerWidth(),a=n.outerHeight())):(i.top=c.y+(c.h-a)*e.topRatio,i.left=c.x+(c.w-o)*e.leftRatio),("fixed"===r.wrap.css("position")||e.locked)&&(i.top-=c.y,i.left-=c.x),{top:f(i.top-s*e.topRatio),left:f(i.left-l*e.leftRatio),width:f(o+l),height:f(a+s)}},step:function(e,t){var n,i,o=t.prop,a=(i=r.current).wrapSpace,s=i.skinSpace;"width"!==o&&"height"!==o||(n=t.end===t.start?1:(e-t.start)/(t.end-t.start),r.isClosing&&(n=1-n),i=e-(i="width"===o?i.wPadding:i.hPadding),r.skin[o](h("width"===o?i:i-a*n)),r.inner[o](h("width"===o?i:i-a*n-s*n)))},zoomIn:function(){var e=r.current,t=e.pos,i=e.openEffect,o="elastic"===i,a=n.extend({opacity:1},t);delete a.position,o?(t=this.getOrigPosition(),e.openOpacity&&(t.opacity=.1)):"fade"===i&&(t.opacity=.1),r.wrap.css(t).animate(a,{duration:"none"===i?0:e.openSpeed,easing:e.openEasing,step:o?this.step:null,complete:r._afterZoomIn})},zoomOut:function(){var e=r.current,t=e.closeEffect,n="elastic"===t,i={opacity:.1};n&&(i=this.getOrigPosition(),e.closeOpacity&&(i.opacity=.1)),r.wrap.animate(i,{duration:"none"===t?0:e.closeSpeed,easing:e.closeEasing,step:n?this.step:null,complete:r._afterZoomOut})},changeIn:function(){var e,t=r.current,n=t.nextEffect,i=t.pos,o={opacity:1},a=r.direction;i.opacity=.1,"elastic"===n&&(e="down"===a||"up"===a?"top":"left","down"===a||"right"===a?(i[e]=f(h(i[e])-200),o[e]="+=200px"):(i[e]=f(h(i[e])+200),o[e]="-=200px")),"none"===n?r._afterZoomIn():r.wrap.css(i).animate(o,{duration:t.nextSpeed,easing:t.nextEasing,complete:r._afterZoomIn})},changeOut:function(){var e=r.previous,t=e.prevEffect,i={opacity:.1},o=r.direction;"elastic"===t&&(i["down"===o||"up"===o?"top":"left"]=("up"===o||"left"===o?"-":"+")+"=200px"),e.wrap.animate(i,{duration:"none"===t?0:e.prevSpeed,easing:e.prevEasing,complete:function(){n(this).trigger("onReset").remove()}})}},r.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!c,fixed:!0},overlay:null,fixed:!1,create:function(e){e=n.extend({},this.defaults,e),this.overlay&&this.close(),this.overlay=n('<div class="fancybox-overlay"></div>').appendTo("body"),this.fixed=!1,e.fixed&&r.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=n.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(o.bind("resize.overlay",n.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",(function(e){n(e.target).hasClass("fancybox-overlay")&&(r.isActive?r.close():t.close())})),this.overlay.css(e.css).show()},close:function(){n(".fancybox-overlay").remove(),o.unbind("resize.overlay"),this.overlay=null,!1!==this.margin&&(n("body").css("margin-right",this.margin),this.margin=!1),this.el&&this.el.removeClass("fancybox-lock")},update:function(){var e,n="100%";this.overlay.width(n).height("100%"),s?(e=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),a.width()>e&&(n=a.width())):a.width()>o.width()&&(n=a.width()),this.overlay.width(n).height(a.height())},onReady:function(e,i){n(".fancybox-overlay").stop(!0,!0),this.overlay||(this.margin=(a.height()>o.height()||"scroll"===n("body").css("overflow-y"))&&n("body").css("margin-right"),this.el=t.all&&!t.querySelector?n("html"):n("body"),this.create(e)),e.locked&&this.fixed&&(i.locked=this.overlay.append(i.wrap),i.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){t.locked&&(this.el.addClass("fancybox-lock"),!1!==this.margin&&n("body").css("margin-right",h(this.margin)+t.scrollbarWidth)),this.open(e)}
3,onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!r.isActive&&this.overlay.fadeOut(e.speedOut,n.proxy(this.close,this))}},r.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t=r.current,i=t.title,o=e.type;if(n.isFunction(i)&&(i=i.call(t.element,t)),p(i)&&""!==n.trim(i)){switch(t=n('<div class="fancybox-title fancybox-title-'+o+'-wrap">'+i+"</div>"),o){case"inside":o=r.skin;break;case"outside":o=r.wrap;break;case"over":o=r.inner;break;default:o=r.skin,t.appendTo("body"),s&&t.width(t.width()),t.wrapInner('<span class="child"></span>'),r.current.margin[2]+=Math.abs(h(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](o)}}},n.fn.fancybox=function(e){var t,i=n(this),o=this.selector||"",s=function(a){var s,l,c=n(this).blur(),d=t;!a.ctrlKey&&!a.altKey&&!a.shiftKey&&!a.metaKey&&!c.is(".fancybox-wrap")&&(s=e.groupAttr||"data-fancybox-group",(l=c.attr(s))||(s="rel",l=c.get(0)[s]),l&&""!==l&&"nofollow"!==l&&(d=(c=(c=o.length?n(o):i).filter("["+s+'="'+l+'"]')).index(this)),e.index=d,!1!==r.open(c,e)&&a.preventDefault())};return t=(e=e||{}).index||0,o&&!1!==e.live?a.undelegate(o,"click.fb-start").delegate(o+":not('.fancybox-item, .fancybox-nav')","click.fb-start",s):i.unbind("click.fb-start").bind("click.fb-start",s),this.filter("[data-fancybox-start=1]").trigger("click"),this},a.ready((function(){if(n.scrollbarWidth===i&&(n.scrollbarWidth=function(){var e=n('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),t=(t=e.children()).innerWidth()-t.height(99).innerWidth();return e.remove(),t}),n.support.fixedPosition===i){var e=n.support,t=n('<div style="position:fixed;top:20px;"></div>').appendTo("body"),o=20===t[0].offsetTop||15===t[0].offsetTop;t.remove(),e.fixedPosition=o}n.extend(r.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")})}))}(window,document,jQuery),function(e){var t=e.fancybox;t.helpers.buttons={defaults:{skipSingle:!1,position:"top",tpl:'<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:jQuery.fancybox.close();"></a></li></ul></div>'},list:null,buttons:null,beforeLoad:function(e,t){e.skipSingle&&2>t.group.length?(t.helpers.buttons=!1,t.closeBtn=!0):t.margin["bottom"===e.position?2:0]+=30},onPlayStart:function(){this.buttons&&this.buttons.play.attr("title","Pause slideshow").addClass("btnPlayOn")},onPlayEnd:function(){this.buttons&&this.buttons.play.attr("title","Start slideshow").removeClass("btnPlayOn")},afterShow:function(n,i){var o=this.buttons;o||(this.list=e(n.tpl).addClass(n.position).appendTo("body"),o={prev:this.list.find(".btnPrev").click(t.prev),next:this.list.find(".btnNext").click(t.next),play:this.list.find(".btnPlay").click(t.play),toggle:this.list.find(".btnToggle").click(t.toggle)}),0<i.index||i.loop?o.prev.removeClass("btnDisabled"):o.prev.addClass("btnDisabled"),i.loop||i.index<i.group.length-1?(o.next.removeClass("btnDisabled"),o.play.removeClass("btnDisabled")):(o.next.addClass("btnDisabled"),o.play.addClass("btnDisabled")),this.buttons=o,this.onUpdate(n,i)},onUpdate:function(e,t){var n;this.buttons&&(n=this.buttons.toggle.removeClass("btnDisabled btnToggleOn"),t.canShrink?n.addClass("btnToggleOn"):t.canExpand||n.addClass("btnDisabled"))},beforeClose:function(){this.list&&this.list.remove(),this.buttons=this.list=null}}}(jQuery),function(e){var t=function(t,n,i){return i=i||"","object"===e.type(i)&&(i=e.param(i,!0)),e.each(n,(function(e,n){t=t.replace("$"+e,n||"")})),i.length&&(t+=(0<t.indexOf("?")?"&":"?")+i),t};e.fancybox.helpers.media={defaults:{youtube:{matcher:/(youtube\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"opaque",enablejsapi:1},type:"iframe",url:"//www.youtube.com/embed/$3"},vimeo:{matcher:/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},type:"iframe",url:"//player.vimeo.com/video/$1"},metacafe:{matcher:/metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,params:{autoPlay:"yes"},type:"swf",url:function(t,n,i){return i.swf.flashVars="playerVars="+e.param(n,!0),"//www.metacafe.com/fplayer/"+t[1]+"/.swf"}},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"swf",url:"//www.dailymotion.com/swf/video/$1"},twitvid:{matcher:/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,params:{autoplay:0},type:"iframe",url:"//www.twitvid.com/embed.php?guid=$1"},twitpic:{matcher:/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,type:"image",url:"//twitpic.com/show/full/$1/"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/"},google_maps:{matcher:/maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,type:"iframe",url:function(e){return"//maps.google."+e[1]+"/"+e[3]+e[4]+"&output="+(0<e[4].indexOf("layer=c")?"svembed":"embed")}}},beforeLoad:function(n,i){var o,a,r,s=i.href||"",l=!1;for(o in n)if(a=n[o],r=s.match(a.matcher)){l=a.type,s=e.extend(!0,{},a.params,i[o]||(e.isPlainObject(n[o])?n[o].params:null)),s="function"===e.type(a.url)?a.url.call(this,r,s,i):t(a.url,r,s);break}l&&(i.href=s,i.type=l,i.autoHeight=!1)}}}(jQuery);
4//# sourceMappingURL=site.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.