!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=0}this.matches=function(b,c){return"string"!=typeof b?!1:(b=b.trim(),a(b,c))}}b.exports=new d},{}],6:[function(a,b,c){"use strict";function d(a){f.pattern=a.pattern||f.pattern,f.template=a.template||f.template,"function"==typeof a.middleware&&(f.middleware=a.middleware)}function e(a){return f.template.replace(f.pattern,function(b,c){var d=f.middleware(c,a[c],f.template);return void 0!==d?d:a[c]||b})}b.exports={compile:e,setOptions:d};var f={};f.pattern=/\{(.*?)\}/g,f.template="",f.middleware=function(){}},{}],7:[function(a,b,c){!function(b,c,d){"use strict";function e(a){o.put(a),i()}function f(a){p.load(a,function(b,c){b&&k("failed to get JSON ("+a+")"),e(c)})}function g(){l.resultsContainer.innerHTML=""}function h(a){l.resultsContainer.innerHTML+=a}function i(){l.searchInput.addEventListener("keyup",function(a){g(),a.target.value.length>0&&j(o.search(a.target.value))})}function j(a){if(0===a.length)return h(l.noResultsText);for(var b=0;b{title}',templateMiddleware:function(){},noResultsText:"No results found",limit:10,fuzzy:!1,exclude:[]},m=["searchInput","resultsContainer","json"],n=a("./Templater"),o=a("./Repository"),p=a("./JSONLoader"),q=a("./OptionsValidator")({required:m}),r=a("./utils");b.SimpleJekyllSearch=function(a){var b=q.validate(a);b.length>0&&k("You must specify the following required options: "+m),l=r.merge(l,a),n.setOptions({template:l.searchResultTemplate,middleware:l.templateMiddleware}),o.setOptions({fuzzy:l.fuzzy,limit:l.limit}),r.isJSON(l.json)?e(l.json):f(l.json)},b.SimpleJekyllSearch.init=b.SimpleJekyllSearch}(window,document)},{"./JSONLoader":1,"./OptionsValidator":2,"./Repository":3,"./Templater":6,"./utils":8}],8:[function(a,b,c){"use strict";function d(a,b){var c={};for(var d in a)c[d]=a[d],void 0!==b[d]&&(c[d]=b[d]);return c}function e(a){try{return a instanceof Object&&JSON.parse(JSON.stringify(a))?!0:!1}catch(b){return!1}}b.exports={merge:d,isJSON:e}},{}]},{},[7]),function(a,b,c){"use strict";var d=b.Modernizr,e=a("body");a.DLMenu=function(b,c){this.$el=a(c),this._init(b)},a.DLMenu.defaults={animationClasses:{classin:"dl-animate-in-1",classout:"dl-animate-out-1"},onLevelClick:function(a,b){return!1},onLinkClick:function(a,b){return!1}},a.DLMenu.prototype={_init:function(b){this.options=a.extend(!0,{},a.DLMenu.defaults,b),this._config();var c={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"},e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"};this.animEndEventName=c[d.prefixed("animation")]+".dlmenu",this.transEndEventName=e[d.prefixed("transition")]+".dlmenu",this.supportAnimations=d.cssanimations,this.supportTransitions=d.csstransitions,this._initEvents()},_config:function(){this.open=!1,this.$trigger=this.$el.children(".dl-trigger"),this.$menu=this.$el.children("ul.dl-menu"),this.$menuitems=this.$menu.find("li:not(.dl-back)"),this.$el.find("ul.dl-submenu").prepend('
  • back
  • '),this.$back=this.$menu.find("li.dl-back")},_initEvents:function(){var b=this;this.$trigger.on("click.dlmenu",function(){return b.open?b._closeMenu():b._openMenu(),!1}),this.$menuitems.on("click.dlmenu",function(c){c.stopPropagation();var d=a(this),e=d.children("ul.dl-submenu");if(e.length>0){var f=e.clone().css({opacity:0,margin:0}).insertAfter(b.$menu),g=function(){b.$menu.off(b.animEndEventName).removeClass(b.options.animationClasses.classout).addClass("dl-subview"),d.addClass("dl-subviewopen").parents(".dl-subviewopen:first").removeClass("dl-subviewopen").addClass("dl-subview"),f.remove()};return setTimeout(function(){f.addClass(b.options.animationClasses.classin),b.$menu.addClass(b.options.animationClasses.classout),b.supportAnimations?b.$menu.on(b.animEndEventName,g):g.call(),b.options.onLevelClick(d,d.children("a:first").text())}),!1}b.options.onLinkClick(d,c)}),this.$back.on("click.dlmenu",function(c){var d=a(this),e=d.parents("ul.dl-submenu:first"),f=e.parent(),g=e.clone().insertAfter(b.$menu),h=function(){b.$menu.off(b.animEndEventName).removeClass(b.options.animationClasses.classin),g.remove()};return setTimeout(function(){g.addClass(b.options.animationClasses.classout),b.$menu.addClass(b.options.animationClasses.classin),b.supportAnimations?b.$menu.on(b.animEndEventName,h):h.call(),f.removeClass("dl-subviewopen");var a=d.parents(".dl-subview:first");a.is("li")&&a.addClass("dl-subviewopen"),a.removeClass("dl-subview")}),!1})},closeMenu:function(){this.open&&this._closeMenu()},_closeMenu:function(){var a=this,b=function(){a.$menu.off(a.transEndEventName),a._resetMenu()};this.$menu.removeClass("dl-menuopen"),this.$menu.addClass("dl-menu-toggle"),this.$trigger.removeClass("dl-active"),this.supportTransitions?this.$menu.on(this.transEndEventName,b):b.call(),this.open=!1},openMenu:function(){this.open||this._openMenu()},_openMenu:function(){var b=this;e.off("click").on("click.dlmenu",function(){b._closeMenu()}),this.$menu.addClass("dl-menuopen dl-menu-toggle").on(this.transEndEventName,function(){a(this).removeClass("dl-menu-toggle")}),this.$trigger.addClass("dl-active"),this.open=!0},_resetMenu:function(){this.$menu.removeClass("dl-subview"),this.$menuitems.removeClass("dl-subview dl-subviewopen")}};var f=function(a){b.console&&b.console.error(a)};a.fn.dlmenu=function(b){if("string"==typeof b){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var d=a.data(this,"dlmenu");return d?a.isFunction(d[b])&&"_"!==b.charAt(0)?void d[b].apply(d,c):void f("no such method '"+b+"' for dlmenu instance"):void f("cannot call methods on dlmenu prior to initialization; attempted to call method '"+b+"'")})}else this.each(function(){var c=a.data(this,"dlmenu");c?c._init():c=a.data(this,"dlmenu",new a.DLMenu(b,this))});return this}}(jQuery,window),function(a){"use strict";a.fn.fitVids=function(b){var c={customSelector:null},d=document.createElement("div"),e=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return d.className="fit-vids-style",d.innerHTML="­",e.parentNode.insertBefore(d,e),b&&a.extend(c,b),this.each(function(){var b=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.youtube-nocookie.com']","iframe[src*='www.kickstarter.com']","object","embed"];c.customSelector&&b.push(c.customSelector);var d=a(this).find(b.join(","));d.each(function(){var b=a(this);if(!("embed"===this.tagName.toLowerCase()&&b.parent("object").length||b.parent(".fluid-width-video-wrapper").length)){var c="object"===this.tagName.toLowerCase()||b.attr("height")&&!isNaN(parseInt(b.attr("height"),10))?parseInt(b.attr("height"),10):b.height(),d=isNaN(parseInt(b.attr("width"),10))?b.width():parseInt(b.attr("width"),10),e=c/d;if(!b.attr("id")){var f="fitvid"+Math.floor(999999*Math.random());b.attr("id",f)}b.wrap('
    ').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),b.removeAttr("height").removeAttr("width")}})})}}(jQuery),!function(a,b,c){function d(b,c){this.element=b,this.settings=a.extend({},j,c),this._defaults=j,this._name=i,this.init()}function e(a,d,e,f){var g=b.innerWidth?b.innerWidth:c.documentElement.clientWidth?c.documentElement.clientWidth:screen.width,h=b.innerHeight?b.innerHeight:c.documentElement.clientHeight?c.documentElement.clientHeight:screen.height,i=g/2-e/2+10,j=h/2-f/2+50,k=b.open(a,d,"scrollbars=yes, width="+e+", height="+f+", top="+j+", left="+i);k.focus()}function f(a){return a>=1e9?(a/1e9).toFixed(1).replace(/\.0$/,"")+"G":a>=1e6?(a/1e6).toFixed(1).replace(/\.0$/,"")+"M":a>=1e3?(a/1e3).toFixed(1).replace(/\.0$/,"")+"K":a}function g(d){var e=b.innerWidth?b.innerWidth:c.documentElement.clientWidth?c.documentElement.clientWidth:screen.width;961>e?a.each(d,function(){a(this).css("width",100/d.length+"%")}):a.each(d,function(){a(this).removeAttr("style")})}function h(c,d,e){switch(d=encodeURI(d),c){case"facebook":a.get("https://graph.facebook.com/"+d,function(b){if(b.shares&&b.shares>0){var c=a("",{"class":"shareCount"});c.append(f(b.shares)),e.append(c),e.find("i").removeClass("m-top5")}},"jsonp");break;case"twitter":a.get("https://urls.api.twitter.com/1/urls/count.json?url="+d+"&callback=?",function(b){if(b.count&&b.count>0){var c=a("",{"class":"shareCount"});c.append(f(b.count)),e.append(c),e.find("i").removeClass("m-top5")}},"jsonp");break;case"linkedin":a.get("https://www.linkedin.com/countserv/count/share?url="+d+"&callback=?",function(b){if(b.count&&b.count>0){var c=a("",{"class":"shareCount"});c.append(f(b.count)),e.append(c),e.find("i").removeClass("m-top5")}},"jsonp");break;case"pinterest":a.get("https://api.pinterest.com/v1/urls/count.json?url="+d+"&callback=?",function(b){if(b.count&&b.count>0){var c=a("",{"class":"shareCount"});c.append(f(b.count)),e.append(c),e.find("i").removeClass("m-top5")}},"jsonp");break;case"google-plus":b.services||(b.services={},b.services.gplus={}),b.services.gplus.cb=function(a){b.gplusShares=a},a.getScript("http://share.yandex.ru/gpp.xml?url="+d+"&callback=?",function(){if(b.gplusShares>0){var c=a("",{"class":"shareCount"});c.append(f(b.gplusShares)),e.append(c),e.find("i").removeClass("m-top5")}});break;default:return-1}}var i="floatingSocialShare",j={place:"top-left",counter:!0,buttons:["facebook","twitter","google-plus","linkedin"],title:c.title,url:b.location.href,text:"share with ",description:a("meta[name='description']").attr("content"),popup_width:400,popup_height:300};a.extend(d.prototype,{init:function(){var c=this;-1==a.inArray(this.settings.place,l)&&(this.settings.place=this._defaults.place);var d=a("
    ",{id:"floatingSocialShare"}),f=a("
    ",{"class":this.settings.place});f.appendTo(d),a.each(this.settings.buttons,function(b,d){a.each(k,function(b,e){if(d==b){var g=a("",{title:c.settings.title,"class":""+e.className+" pop-upper"}),i=a("",{"class":"m-top5 fa fa-"+d}),j=e.url;return j=j.replace("{url}",c.settings.url).replace("{title}",c.settings.title).replace("{description}",c.settings.description),g.attr("href",j).attr("title",c.settings.text+d).append(i),c.settings.counter===!0&&h(d,c.settings.url,g),f.append(g),!1}})}),d.appendTo(this.element);var i=a(this.element).find(".pop-upper");i.on("click",function(b){b.preventDefault(),e(a(this).attr("href"),a(this).attr("title"),c.settings.popup_width,c.settings.popup_height)}),g(i),a(b).resize(function(){g(i)})}});var k={facebook:{className:"facebook",url:"https://www.facebook.com/sharer/sharer.php?u={url}&t={title}"},twitter:{className:"twitter",url:"https://twitter.com/home?status={url}"},"google-plus":{className:"google-plus",url:"https://plus.google.com/share?url={url}"},linkedin:{className:"linkedin",url:"https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={description}&source="},envelope:{className:"envelope",url:"mailto:asd@asd.com?subject={url}"},pinterest:{className:"pinterest",url:"https://pinterest.com/pin/create%2Fbutton/?url={url}"},stumbleupon:{className:"stumbleupon",url:"https://www.stumbleupon.com/submit?url={url}&title={title}"}},l=["top-left","top-right"];a.fn[i]=function(b){return this.each(function(){a.data(this,"plugin_"+i)||a.data(this,"plugin_"+i,new d(this,b))}),this}}(jQuery,window,document),function(a){var b,c,d,e,f,g,h,i="Close",j="BeforeClose",k="AfterClose",l="BeforeAppend",m="MarkupParse",n="Open",o="Change",p="mfp",q="."+p,r="mfp-ready",s="mfp-removing",t="mfp-prevent-close",u=function(){},v=!!window.jQuery,w=a(window),x=function(a,c){b.ev.on(p+a+q,c)},y=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},z=function(c,d){b.ev.triggerHandler(p+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},A=function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).trigger("focus")},B=function(c){return c===h&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),h=c),b.currTemplate.closeBtn},C=function(){a.magnificPopup.instance||(b=new u,b.init(),a.magnificPopup.instance=b)},D=function(c){if(!a(c).hasClass(t)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},E=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};u.prototype={constructor:u,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=E(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document.body),e=a(document),b.popupsCache={}},open:function(c){var d;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var f,h=c.items;for(d=0;d(a||w.height())},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),z(m,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(q+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith(''):d.attr(e[1],c)}}else b.find(q+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.id="mfp-sbm",a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:u.prototype,modules:[],open:function(a,b){return C(),a||(a={}),a.isObj=!0,a.index=b||0,this.instance.open(a)},close:function(){return a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){C();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=v?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else v?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var F,G,H,I="inline",J=function(){H&&(G.after(H.addClass(F)).detach(),H=null)};a.magnificPopup.registerModule(I,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(I),x(i+"."+I,function(){J()})},getInline:function(c,d){if(J(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(G||(F=e.hiddenClass,G=y(F),F="mfp-"+F),H=f.after(G).detach().removeClass(F)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
    ");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var K,L="ajax",M=function(){K&&d.removeClass(K)};a.magnificPopup.registerModule(L,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(L),K=b.st.ajax.cursor,x(i+"."+L,function(){M(),b.req&&b.req.abort()})},getAjax:function(c){K&&d.addClass(K),b.updateStatus("loading");var e=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};z("ParseAjax",g),b.appendContent(a(g.data),L),c.finished=!0,M(),A(),setTimeout(function(){b.wrap.addClass(r)},16),b.updateStatus("ready"),z("AjaxContentAdded")},error:function(){M(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(e),""}}});var N,O=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
    ',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var a=b.st.image,c=".image";b.types.push("image"),x(n+c,function(){"image"===b.currItem.type&&a.cursor&&d.addClass(a.cursor)}),x(i+c,function(){a.cursor&&d.removeClass(a.cursor),w.off("resize"+q)}),x("Resize"+c,b.resizeImage),b.isLowIE&&x("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,N&&clearInterval(N),a.isCheckingImgSize=!1,z("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){N&&clearInterval(N),N=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(N),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,z("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=new Image;j.className="mfp-img",c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),c.img[0].naturalWidth>0&&(c.hasSize=!0)}return b._parseMarkup(d,{title:O(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(N&&clearInterval(N),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var P,Q=function(){return void 0===P&&(P=void 0!==document.createElement("p").style.MozTransform),P};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a=b.st.zoom,c=".zoom";if(a.enabled&&b.supportsTransition){var d,e,f=a.duration,g=function(b){var c=b.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+a.duration/1e3+"s "+a.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,c.css(e),c},h=function(){b.content.css("visibility","visible")};x("BuildControls"+c,function(){if(b._allowZoom()){if(clearTimeout(d),b.content.css("visibility","hidden"),image=b._getItemToZoom(),!image)return void h();e=g(image),e.css(b._getOffset()),b.wrap.append(e),d=setTimeout(function(){e.css(b._getOffset(!0)),d=setTimeout(function(){h(),setTimeout(function(){e.remove(),image=e=null,z("ZoomAnimationEnded")},16)},f)},16)}}),x(j+c,function(){if(b._allowZoom()){if(clearTimeout(d),b.st.removalDelay=f,!image){if(image=b._getItemToZoom(),!image)return;e=g(image)}e.css(b._getOffset(!0)),b.wrap.append(e),b.content.css("visibility","hidden"),setTimeout(function(){e.css(b._getOffset())},16)}}),x(i+c,function(){b._allowZoom()&&(h(),e&&e.remove())})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(v?d.innerHeight():d[0].offsetHeight)-g-f};return Q()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var R="iframe",S="//about:blank",T=function(a){if(b.currTemplate[R]){var c=b.currTemplate[R].find("iframe");c.length&&(a||(c[0].src=S),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(R,{options:{markup:'
    ',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(R),x("BeforeChange",function(a,b,c){b!==c&&(b===R?T():c===R&&T(!0))}),x(i+"."+R,function(){T()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var U=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},V=function(a,b,c){return a.replace("%curr%",b+1).replace("%total%",c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%" },proto:{initGallery:function(){var c=b.st.gallery,d=".mfp-gallery",f=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(g+=" mfp-gallery",x(n+d,function(){c.navigateByImgClick&&b.wrap.on("click"+d,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),e.on("keydown"+d,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),x("UpdateStatus"+d,function(a,c){c.text&&(c.text=V(c.text,b.currItem.index,b.items.length))}),x(m+d,function(a,d,e,f){var g=b.items.length;e.counter=g>1?V(c.tCounter,f.index,g):""}),x("BuildControls"+d,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace("%title%",c.tPrev).replace("%dir%","left")).addClass(t),g=b.arrowRight=a(d.replace("%title%",c.tNext).replace("%dir%","right")).addClass(t),h=f?"mfpFastClick":"click";e[h](function(){b.prev()}),g[h](function(){b.next()}),b.isIE7&&(y("b",e[0],!1,!0),y("a",e[0],!1,!0),y("b",g[0],!1,!0),y("a",g[0],!1,!0)),b.container.append(e.add(g))}}),x(o+d,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void x(i+d,function(){e.off(d),b.wrap.off("click"+d),b.arrowLeft&&f&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=U(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=U(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=U(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),z("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,z("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var W="retina";a.magnificPopup.registerModule(W,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(x("ImageHasSize."+W,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),x("ElementParse."+W,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){w.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,w.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&w.off("touchmove"+f+" touchend"+f)}}()}(window.jQuery||window.Zepto),!function(a){function b(){a[c].glbl||(h={$wndw:a(window),$html:a("html"),$body:a("body")},e={},f={},g={},a.each([e,f,g],function(a,b){b.add=function(a){a=a.split(" ");for(var c=0,d=a.length;d>c;c++)b[a[c]]=b.mm(a[c])}}),e.mm=function(a){return"mm-"+a},e.add("wrapper menu panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),e.umm=function(a){return"mm-"==a.slice(0,3)&&(a=a.slice(3)),a},f.mm=function(a){return"mm-"+a},f.add("parent sub"),g.mm=function(a){return a+".mm"},g.add("transitionend webkitTransitionEnd mousedown mouseup touchstart touchmove touchend click keydown"),a[c]._c=e,a[c]._d=f,a[c]._e=g,a[c].glbl=h)}var c="mmenu",d="5.4.0";if(!a[c]){a[c]=function(a,b,c){this.$menu=a,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=b,this.conf=c,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var d=this.$menu.children(this.conf.panelNodetype);return this._initAddons(),this.init(d),"function"==typeof this.___debug&&this.___debug(),this},a[c].version=d,a[c].addons={},a[c].uniqueId=0,a[c].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},a[c].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},a[c].prototype={init:function(a){a=a.not("."+e.nopanel),a=this._initPanels(a),this.trigger("init",a),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(a){this.$menu.find("."+e.listview).children().removeClass(e.selected),a.addClass(e.selected),this.trigger("setSelected",a)},openPanel:function(b){var d=b.parent();if(d.hasClass(e.vertical)){var f=d.parents("."+e.subopened);if(f.length)return this.openPanel(f.first());d.addClass(e.opened)}else{if(b.hasClass(e.current))return;var g=this.$menu.children("."+e.panel),h=g.filter("."+e.current);g.removeClass(e.highest).removeClass(e.current).not(b).not(h).not("."+e.vertical).addClass(e.hidden),a[c].support.csstransitions||h.addClass(e.hidden),b.hasClass(e.opened)?b.nextAll("."+e.opened).addClass(e.highest).removeClass(e.opened).removeClass(e.subopened):(b.addClass(e.highest),h.addClass(e.subopened)),b.removeClass(e.hidden).addClass(e.current),setTimeout(function(){b.removeClass(e.subopened).addClass(e.opened)},this.conf.openingInterval)}this.trigger("openPanel",b)},closePanel:function(a){var b=a.parent();b.hasClass(e.vertical)&&(b.removeClass(e.opened),this.trigger("closePanel",a))},closeAllPanels:function(){this.$menu.find("."+e.listview).children().removeClass(e.selected).filter("."+e.vertical).removeClass(e.opened);var a=this.$menu.children("."+e.panel),b=a.first();this.$menu.children("."+e.panel).not(b).removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden),this.openPanel(b)},togglePanel:function(a){var b=a.parent();b.hasClass(e.vertical)&&this[b.hasClass(e.opened)?"closePanel":"openPanel"](a)},getInstance:function(){return this},bind:function(a,b){this.cbck[a]=this.cbck[a]||[],this.cbck[a].push(b)},trigger:function(){var a=this,b=Array.prototype.slice.call(arguments),c=b.shift();if(this.cbck[c])for(var d=0,e=this.cbck[c].length;e>d;d++)this.cbck[c][d].apply(a,b)},_initMenu:function(){this.opts.offCanvas&&this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){a(this).attr("id",e.mm(a(this).attr("id")))})),this.$menu.contents().each(function(){3==a(this)[0].nodeType&&a(this).remove()}),this.$menu.parent().addClass(e.wrapper);var b=[e.menu];this.opts.slidingSubmenus||b.push(e.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&b.push(this.opts.extensions),this.$menu.addClass(b.join(" "))},_initPanels:function(b){var c=this,d=this.__findAddBack(b,"ul, ol");this.__refactorClass(d,this.conf.classNames.inset,"inset").addClass(e.nolistview+" "+e.nopanel),d.not("."+e.nolistview).addClass(e.listview);var g=this.__findAddBack(b,"."+e.listview).children();this.__refactorClass(g,this.conf.classNames.selected,"selected"),this.__refactorClass(g,this.conf.classNames.divider,"divider"),this.__refactorClass(g,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(b,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var h=a(),i=b.add(b.find("."+e.panel)).add(this.__findAddBack(b,"."+e.listview).children().children(this.conf.panelNodetype)).not("."+e.nopanel);this.__refactorClass(i,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||i.addClass(e.vertical),i.each(function(){var b=a(this),d=b;b.is("ul, ol")?(b.wrap('
    '),d=b.parent()):d.addClass(e.panel);var f=b.attr("id");b.removeAttr("id"),d.attr("id",f||c.__getUniqueId()),b.hasClass(e.vertical)&&(b.removeClass(c.conf.classNames.vertical),d.add(d.parent()).addClass(e.vertical)),h=h.add(d)});var j=a("."+e.panel,this.$menu);h.each(function(){var b=a(this),d=b.parent(),g=d.children("a, span").first();if(d.is("."+e.menu)||(d.data(f.sub,b),b.data(f.parent,d)),!d.children("."+e.next).length&&d.parent().is("."+e.listview)){var h=b.attr("id"),i=a('').insertBefore(g);g.is("span")&&i.addClass(e.fullsubopen)}if(!b.children("."+e.navbar).length&&!d.hasClass(e.vertical)){if(d.parent().is("."+e.listview))var d=d.closest("."+e.panel);else var g=d.closest("."+e.panel).find('a[href="#'+b.attr("id")+'"]').first(),d=g.closest("."+e.panel);var j=a('
    ');if(d.length){var h=d.attr("id");switch(c.opts.navbar.titleLink){case"anchor":_url=g.attr("href");break;case"panel":case"parent":_url="#"+h;break;case"none":default:_url=!1}j.append('').append(a('").text(g.text())).prependTo(b),c.opts.navbar.add&&b.addClass(e.hasnavbar)}else c.opts.navbar.title&&(j.append(''+c.opts.navbar.title+"").prependTo(b),c.opts.navbar.add&&b.addClass(e.hasnavbar))}});var k=this.__findAddBack(b,"."+e.listview).children("."+e.selected).removeClass(e.selected).last().addClass(e.selected);k.add(k.parentsUntil("."+e.menu,"li")).filter("."+e.vertical).addClass(e.opened).end().not("."+e.vertical).each(function(){a(this).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened)}),k.children("."+e.panel).not("."+e.vertical).addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened);var l=j.filter("."+e.opened);return l.length||(l=h.first()),l.addClass(e.opened).last().addClass(e.current),h.not("."+e.vertical).not(l.last()).addClass(e.hidden).end().appendTo(this.$menu),h},_initAnchors:function(){var b=this;h.$body.on(g.click+"-oncanvas","a[href]",function(d){var f=a(this),g=!1,i=b.$menu.find(f).length;for(var j in a[c].addons)if(g=a[c].addons[j].clickAnchor.call(b,f,i))break;if(!g&&i){var k=f.attr("href");if(k.length>1&&"#"==k.slice(0,1))try{var l=a(k,b.$menu);l.is("."+e.panel)&&(g=!0,b[f.parent().hasClass(e.vertical)?"togglePanel":"openPanel"](l))}catch(m){}}if(g&&d.preventDefault(),!g&&i&&f.is("."+e.listview+" > li > a")&&!f.is('[rel="external"]')&&!f.is('[target="_blank"]')){b.__valueOrFn(b.opts.onClick.setSelected,f)&&b.setSelected(a(d.target).parent());var n=b.__valueOrFn(b.opts.onClick.preventDefault,f,"#"==k.slice(0,1));n&&d.preventDefault(),b.__valueOrFn(b.opts.onClick.blockUI,f,!n)&&h.$html.addClass(e.blocking),b.__valueOrFn(b.opts.onClick.close,f,n)&&b.close()}})},_initAddons:function(){for(var b in a[c].addons)a[c].addons[b].add.call(this),a[c].addons[b].add=function(){};for(var b in a[c].addons)a[c].addons[b].setup.call(this)},__api:function(){var b=this,c={};return a.each(this._api,function(){var a=this;c[a]=function(){var d=b[a].apply(b,arguments);return"undefined"==typeof d?c:d}}),c},__valueOrFn:function(a,b,c){return"function"==typeof a?a.call(b[0]):"undefined"==typeof a&&"undefined"!=typeof c?c:a},__refactorClass:function(a,b,c){return a.filter("."+b).removeClass(b).addClass(e[c])},__findAddBack:function(a,b){return a.find(b).add(a.filter(b))},__filterListItems:function(a){return a.not("."+e.divider).not("."+e.hidden)},__transitionend:function(a,b,c){var d=!1,e=function(){d||b.call(a[0]),d=!0};a.one(g.transitionend,e),a.one(g.webkitTransitionEnd,e),setTimeout(e,1.1*c)},__getUniqueId:function(){return e.mm(a[c].uniqueId++)}},a.fn[c]=function(d,e){return b(),d=a.extend(!0,{},a[c].defaults,d),e=a.extend(!0,{},a[c].configuration,e),this.each(function(){var b=a(this);if(!b.data(c)){var f=new a[c](b,d,e);b.data(c,f.__api())}})},a[c].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints,csstransitions:function(){if("undefined"!=typeof Modernizr)return Modernizr.csstransitions;var a=document.body||document.documentElement,b=a.style,c="transition";if("string"==typeof b[c])return!0;var d=["Moz","webkit","Webkit","Khtml","O","ms"];c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e1&&f.wrapPageIfNeeded&&(b=b.wrapAll("<"+this.conf[c].pageNodetype+" />").parent())),b.each(function(){a(this).attr("id",a(this).attr("id")||e.__getUniqueId())}),b.addClass(d.page+" "+d.slideout),g.$page=b,this.trigger("setPage",b)},a[b].prototype["_initWindow_"+c]=function(){g.$wndw.off(f.keydown+"-offcanvas").on(f.keydown+"-offcanvas",function(a){return g.$html.hasClass(d.opened)&&9==a.keyCode?(a.preventDefault(),!1):void 0});var a=0;g.$wndw.off(f.resize+"-offcanvas").on(f.resize+"-offcanvas",function(b,c){if(1==g.$page.length&&(c||g.$html.hasClass(d.opened))){var e=g.$wndw.height();(c||e!=a)&&(a=e,g.$page.css("minHeight",e))}})},a[b].prototype._initBlocker=function(){var b=this;g.$blck||(g.$blck=a('
    ')),g.$blck.appendTo(g.$body).off(f.touchstart+"-offcanvas "+f.touchmove+"-offcanvas").on(f.touchstart+"-offcanvas "+f.touchmove+"-offcanvas",function(a){a.preventDefault(),a.stopPropagation(),g.$blck.trigger(f.mousedown+"-offcanvas")}).off(f.mousedown+"-offcanvas").on(f.mousedown+"-offcanvas",function(a){a.preventDefault(),g.$html.hasClass(d.modal)||(b.closeAllOthers(),b.close())})};var d,e,f,g}(jQuery),!function(a){var b="mmenu",c="autoHeight";a[b].addons[c]={setup:function(){if(this.opts.offCanvas){switch(this.opts.offCanvas.position){case"left":case"right":return}var e=this,h=this.opts[c];if(this.conf[c],g=a[b].glbl,"boolean"==typeof h&&h&&(h={height:"auto"}),"object"!=typeof h&&(h={}),h=this.opts[c]=a.extend(!0,{},a[b].defaults[c],h),"auto"==h.height){this.$menu.addClass(d.autoheight);var i=function(a){var b=this.$menu.children("."+d.current);_top=parseInt(b.css("top"),10)||0,_bot=parseInt(b.css("bottom"),10)||0,this.$menu.addClass(d.measureheight),a=a||this.$menu.children("."+d.current),a.is("."+d.vertical)&&(a=a.parents("."+d.panel).not("."+d.vertical).first()),this.$menu.height(a.outerHeight()+_top+_bot).removeClass(d.measureheight)};this.bind("update",i),this.bind("openPanel",i),this.bind("closePanel",i),this.bind("open",i),g.$wndw.off(f.resize+"-autoheight").on(f.resize+"-autoheight",function(){i.call(e)})}}},add:function(){d=a[b]._c,e=a[b]._d,f=a[b]._e,d.add("autoheight measureheight"),f.add("resize")},clickAnchor:function(){}},a[b].defaults[c]={height:"default"};var d,e,f,g}(jQuery),!function(a){var b="mmenu",c="backButton";a[b].addons[c]={setup:function(){if(this.opts.offCanvas){var e=this,f=this.opts[c];if(this.conf[c],g=a[b].glbl,"boolean"==typeof f&&(f={close:f}),"object"!=typeof f&&(f={}),f=a.extend(!0,{},a[b].defaults[c],f),f.close){var h="#"+e.$menu.attr("id");this.bind("opened",function(){location.hash!=h&&history.pushState(null,document.title,h)}),a(window).on("popstate",function(a){g.$html.hasClass(d.opened)?(a.stopPropagation(),e.close()):location.hash==h&&(a.stopPropagation(),e.open())})}}},add:function(){return window.history&&window.history.pushState?(d=a[b]._c,e=a[b]._d,void(f=a[b]._e)):void(a[b].addons[c].setup=function(){})},clickAnchor:function(){}},a[b].defaults[c]={close:!1};var d,e,f,g}(jQuery),!function(a){var b="mmenu",c="counters";a[b].addons[c]={setup:function(){var f=this,h=this.opts[c];this.conf[c],g=a[b].glbl,"boolean"==typeof h&&(h={add:h,update:h}),"object"!=typeof h&&(h={}),h=this.opts[c]=a.extend(!0,{},a[b].defaults[c],h),this.bind("init",function(b){this.__refactorClass(a("em",b),this.conf.classNames[c].counter,"counter")}),h.add&&this.bind("init",function(b){b.each(function(){var b=a(this).data(e.parent);b&&(b.children("em."+d.counter).length||b.prepend(a('')))})}),h.update&&this.bind("update",function(){this.$menu.find("."+d.panel).each(function(){var b=a(this),c=b.data(e.parent);if(c){var g=c.children("em."+d.counter);g.length&&(b=b.children("."+d.listview),b.length&&g.html(f.__filterListItems(b.children()).length))}})})},add:function(){d=a[b]._c,e=a[b]._d,f=a[b]._e,d.add("counter search noresultsmsg")},clickAnchor:function(){}},a[b].defaults[c]={add:!1,update:!1},a[b].configuration.classNames[c]={counter:"Counter"};var d,e,f,g}(jQuery),!function(a){var b="mmenu",c="dividers";a[b].addons[c]={setup:function(){var e=this,h=this.opts[c];if(this.conf[c],g=a[b].glbl,"boolean"==typeof h&&(h={add:h,fixed:h}),"object"!=typeof h&&(h={}),h=this.opts[c]=a.extend(!0,{},a[b].defaults[c],h),this.bind("init",function(){this.__refactorClass(a("li",this.$menu),this.conf.classNames[c].collapsed,"collapsed")}),h.add&&this.bind("init",function(b){switch(h.addTo){case"panels":var c=b;break;default:var c=a(h.addTo,this.$menu).filter("."+d.panel)}a("."+d.divider,c).remove(),c.find("."+d.listview).not("."+d.vertical).each(function(){var b="";e.__filterListItems(a(this).children()).each(function(){var c=a.trim(a(this).children("a, span").text()).slice(0,1).toLowerCase();c!=b&&c.length&&(b=c,a('
  • '+c+"
  • ").insertBefore(this))})})}),h.collapse&&this.bind("init",function(b){a("."+d.divider,b).each(function(){var b=a(this),c=b.nextUntil("."+d.divider,"."+d.collapsed);c.length&&(b.children("."+d.subopen).length||(b.wrapInner(""),b.prepend('')))})}),h.fixed){var i=function(b){b=b||this.$menu.children("."+d.current);var c=b.find("."+d.divider).not("."+d.hidden);if(c.length){this.$menu.addClass(d.hasdividers);var e=b.scrollTop()||0,f="";b.is(":visible")&&b.find("."+d.divider).not("."+d.hidden).each(function(){a(this).position().top+e
  • ').prependTo(this.$menu).children(),this.bind("openPanel",i),this.bind("init",function(b){b.off(f.scroll+"-dividers "+f.touchmove+"-dividers").on(f.scroll+"-dividers "+f.touchmove+"-dividers",function(){i.call(e,a(this))})})}},add:function(){d=a[b]._c,e=a[b]._d,f=a[b]._e,d.add("collapsed uncollapsed fixeddivider hasdividers"),f.add("scroll")},clickAnchor:function(a,b){if(this.opts[c].collapse&&b){var e=a.parent();if(e.is("."+d.divider)){var f=e.nextUntil("."+d.divider,"."+d.collapsed);return e.toggleClass(d.opened),f[e.hasClass(d.opened)?"addClass":"removeClass"](d.uncollapsed),!0}}return!1}},a[b].defaults[c]={add:!1,addTo:"panels",fixed:!1,collapse:!1},a[b].configuration.classNames[c]={collapsed:"Collapsed"};var d,e,f,g}(jQuery),!function(a){function b(a,b,c){return b>a&&(a=b),a>c&&(a=c),a}var c="mmenu",d="dragOpen";a[c].addons[d]={setup:function(){if(this.opts.offCanvas){var f=this,g=this.opts[d],i=this.conf[d];if(h=a[c].glbl,"boolean"==typeof g&&(g={open:g}),"object"!=typeof g&&(g={}),g=this.opts[d]=a.extend(!0,{},a[c].defaults[d],g),g.open){var j,k,l,m,n,o={},p=0,q=!1,r=!1,s=0,t=0;switch(this.opts.offCanvas.position){case"left":case"right":o.events="panleft panright",o.typeLower="x",o.typeUpper="X",r="width";break;case"top":case"bottom":o.events="panup pandown",o.typeLower="y",o.typeUpper="Y",r="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":o.negative=!0,m=function(a){a>=h.$wndw[r]()-g.maxStartPos&&(p=1)};break;default:o.negative=!1,m=function(a){a<=g.maxStartPos&&(p=1)}}switch(this.opts.offCanvas.position){case"left":o.open_dir="right",o.close_dir="left";break;case"right":o.open_dir="left",o.close_dir="right";break;case"top":o.open_dir="down",o.close_dir="up";break;case"bottom":o.open_dir="up",o.close_dir="down"}switch(this.opts.offCanvas.zposition){case"front":n=function(){return this.$menu};break;default:n=function(){return a("."+e.slideout)}}var u=this.__valueOrFn(g.pageNode,this.$menu,h.$page);"string"==typeof u&&(u=a(u));var v=new Hammer(u[0],g.vendors.hammer);v.on("panstart",function(a){m(a.center[o.typeLower]),h.$slideOutNodes=n(),q=o.open_dir}).on(o.events+" panend",function(a){p>0&&a.preventDefault()}).on(o.events,function(a){if(j=a["delta"+o.typeUpper],o.negative&&(j=-j),j!=s&&(q=j>=s?o.open_dir:o.close_dir),s=j,s>g.threshold&&1==p){if(h.$html.hasClass(e.opened))return;p=2,f._openSetup(),f.trigger("opening"),h.$html.addClass(e.dragging),t=b(h.$wndw[r]()*i[r].perc,i[r].min,i[r].max)}2==p&&(k=b(s,10,t)-("front"==f.opts.offCanvas.zposition?t:0),o.negative&&(k=-k),l="translate"+o.typeUpper+"("+k+"px )",h.$slideOutNodes.css({"-webkit-transform":"-webkit-"+l,transform:l}))}).on("panend",function(){2==p&&(h.$html.removeClass(e.dragging),h.$slideOutNodes.css("transform",""),f[q==o.open_dir?"_openFinish":"close"]()),p=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(a[c].addons[d].setup=function(){}):(e=a[c]._c,f=a[c]._d,g=a[c]._e,void e.add("dragging"))},clickAnchor:function(){}},a[c].defaults[d]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer:{}}},a[c].configuration[d]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}};var e,f,g,h}(jQuery),!function(a){var b="mmenu",c="fixedElements";a[b].addons[c]={setup:function(){if(this.opts.offCanvas){this.opts[c],this.conf[c],g=a[b].glbl;var d=function(a){var b=this.conf.classNames[c].fixed;this.__refactorClass(a.find("."+b),b,"slideout").appendTo(g.$body)};d.call(this,g.$page),this.bind("setPage",d)}},add:function(){d=a[b]._c,e=a[b]._d,f=a[b]._e,d.add("fixed")},clickAnchor:function(){}},a[b].configuration.classNames[c]={fixed:"Fixed"};var d,e,f,g}(jQuery),!function(a){var b="mmenu",c="iconPanels";a[b].addons[c]={setup:function(){var e=this,f=this.opts[c];if(this.conf[c],g=a[b].glbl,"boolean"==typeof f&&(f={add:f}),"number"==typeof f&&(f={add:!0,visible:f}),"object"!=typeof f&&(f={}),f=this.opts[c]=a.extend(!0,{},a[b].defaults[c],f),f.visible++,f.add){this.$menu.addClass(d.iconpanel);for(var h=[],i=0;i<=f.visible;i++)h.push(d.iconpanel+"-"+i);h=h.join(" ");var j=function(b){var c=e.$menu.children("."+d.panel).removeClass(h),g=c.filter("."+d.subopened);g.removeClass(d.hidden).add(b).slice(-f.visible).each(function(b){a(this).addClass(d.iconpanel+"-"+b)})};this.bind("openPanel",j),this.bind("init",function(b){j.call(e,e.$menu.children("."+d.current)),f.hideNavbars&&b.removeClass(d.hasnavbar),b.each(function(){a(this).children("."+d.subblocker).length||a(this).prepend('
    ')})})}},add:function(){d=a[b]._c,e=a[b]._d,f=a[b]._e,d.add("iconpanel subblocker")},clickAnchor:function(){}},a[b].defaults[c]={add:!1,visible:3,hideNavbars:!1};var d,e,f,g}(jQuery),!function(a){var b="mmenu",c="navbars";a[b].addons[c]={setup:function(){var e=this,f=this.opts[c],h=this.conf[c];if(g=a[b].glbl,"undefined"!=typeof f){f instanceof Array||(f=[f]);var i={};a.each(f,function(g){var j=f[g];"boolean"==typeof j&&j&&(j={}),"object"!=typeof j&&(j={}),"undefined"==typeof j.content&&(j.content=["prev","title"]),j.content instanceof Array||(j.content=[j.content]),j=a.extend(!0,{},e.opts.navbar,j);var k=j.position,l=j.height;"number"!=typeof l&&(l=1),l=Math.min(4,Math.max(1,l)),"bottom"!=k&&(k="top"),i[k]||(i[k]=0),i[k]++;var m=a("
    ").addClass(d.navbar+" "+d.navbar+"-"+k+" "+d.navbar+"-"+k+"-"+i[k]+" "+d.navbar+"-size-"+l);i[k]+=l-1;for(var n=0,o=j.content.length;o>n;n++){var p=a[b].addons[c][j.content[n]]||!1;p?p.call(e,m,j,h):(p=j.content[n],p instanceof a||(p=a(j.content[n])),p.each(function(){m.append(a(this))}))}var q=Math.ceil(m.children().not("."+d.btn).length/l);q>1&&m.addClass(d.navbar+"-content-"+q),m.children("."+d.btn).length&&m.addClass(d.hasbtns),m.prependTo(e.$menu)});for(var j in i)e.$menu.addClass(d.hasnavbar+"-"+j+"-"+i[j])}},add:function(){d=a[b]._c,e=a[b]._d,f=a[b]._e,d.add("close hasbtns")},clickAnchor:function(){}},a[b].configuration[c]={breadcrumbSeparator:"/"},a[b].configuration.classNames[c]={panelTitle:"Title",panelNext:"Next",panelPrev:"Prev"};var d,e,f,g}(jQuery),function(a){var b="mmenu",c="navbars",d="breadcrumbs";a[b].addons[c][d]=function(c,d,e){var f=a[b]._c,g=a[b]._d;f.add("breadcrumbs separator"),c.append(''),this.bind("init",function(b){b.removeClass(f.hasnavbar).each(function(){for(var b=[],c=a(this),d=a(''),h=a(this).children().first(),i=!0;h&&h.length;){h.is("."+f.panel)||(h=h.closest("."+f.panel));var j=h.children("."+f.navbar).children("."+f.title).text();b.unshift(i?""+j+"":''+j+""),i=!1,h=h.data(g.parent)}d.append(b.join(''+e.breadcrumbSeparator+"")).appendTo(c.children("."+f.navbar))})});var h=function(){var a=this.$menu.children("."+f.current),b=c.find("."+f.breadcrumbs),d=a.children("."+f.navbar).children("."+f.breadcrumbs);b.html(d.html())};this.bind("openPanel",h),this.bind("init",h)}}(jQuery),function(a){var b="mmenu",c="navbars",d="close";a[b].addons[c][d]=function(c){var d=a[b]._c,e=a[b].glbl;c.append('');var f=function(a){c.find("."+d.close).attr("href","#"+a.attr("id"))};f.call(this,e.$page),this.bind("setPage",f)}}(jQuery),function(a){var b="mmenu",c="navbars",d="next";a[b].addons[c][d]=function(d){var e=a[b]._c;d.append('');var f=function(a){a=a||this.$menu.children("."+e.current);var b=d.find("."+e.next),f=a.find("."+this.conf.classNames[c].panelNext),g=f.attr("href"),h=f.html();b[g?"attr":"removeAttr"]("href",g),b[g||h?"removeClass":"addClass"](e.hidden),b.html(h)};this.bind("openPanel",f),this.bind("init",function(){f.call(this)})}}(jQuery),function(a){var b="mmenu",c="navbars",d="prev";a[b].addons[c][d]=function(d){var e=a[b]._c;d.append(''),this.bind("init",function(a){a.removeClass(e.hasnavbar)});var f=function(){var a=this.$menu.children("."+e.current),b=d.find("."+e.prev),f=a.find("."+this.conf.classNames[c].panelPrev);f.length||(f=a.children("."+e.navbar).children("."+e.prev));var g=f.attr("href"),h=f.html();b[g?"attr":"removeAttr"]("href",g),b[g||h?"removeClass":"addClass"](e.hidden),b.html(h)};this.bind("openPanel",f),this.bind("init",f)}}(jQuery),function(a){var b="mmenu",c="navbars",d="searchfield";a[b].addons[c][d]=function(c){var d=a[b]._c,e=a('
    ').appendTo(c);"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=e}}(jQuery),function(a){var b="mmenu",c="navbars",d="title";a[b].addons[c][d]=function(d,e){var f=a[b]._c;d.append('');var g=function(a){a=a||this.$menu.children("."+f.current);var b=d.find("."+f.title),g=a.find("."+this.conf.classNames[c].panelTitle);g.length||(g=a.children("."+f.navbar).children("."+f.title));var h=g.attr("href"),i=g.html()||e.title;b[h?"attr":"removeAttr"]("href",h),b[h||i?"removeClass":"addClass"](f.hidden),b.html(i)};this.bind("openPanel",g),this.bind("init",function(){g.call(this)})}}(jQuery),!function(a){function b(a){switch(a){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}var c="mmenu",d="searchfield";a[c].addons[d]={setup:function(){var i=this,j=this.opts[d],k=this.conf[d];h=a[c].glbl,"boolean"==typeof j&&(j={add:j}),"object"!=typeof j&&(j={}),j=this.opts[d]=a.extend(!0,{},a[c].defaults[d],j),this.bind("close",function(){this.$menu.find("."+e.search).find("input").blur()}),this.bind("init",function(c){if(j.add){switch(j.addTo){case"panels":var d=c;break;default:var d=a(j.addTo,this.$menu)}d.each(function(){var b=a(this);if(!b.is("."+e.panel)||!b.is("."+e.vertical)){if(!b.children("."+e.search).length){var c=k.form?"form":"div",d=a("<"+c+' class="'+e.search+'" />');if(k.form&&"object"==typeof k.form)for(var f in k.form)d.attr(f,k.form[f]);d.append(''),b.hasClass(e.search)?b.replaceWith(d):b.prepend(d).addClass(e.hassearch)}if(j.noResults){var g=b.closest("."+e.panel).length;if(g||(b=i.$menu.children("."+e.panel).first()),!b.children("."+e.noresultsmsg).length){var h=b.children("."+e.listview).first(); a('
    ').append(j.noResults)[h.length?"insertAfter":"prependTo"](h.length?h:b)}}}}),j.search&&a("."+e.search,this.$menu).each(function(){var c=a(this),d=c.closest("."+e.panel).length;if(d)var h=c.closest("."+e.panel),k=h;else var h=a("."+e.panel,i.$menu),k=i.$menu;var l=c.children("input"),m=i.__findAddBack(h,"."+e.listview).children("li"),n=m.filter("."+e.divider),o=i.__filterListItems(m),p="> a",q=p+", > span",r=function(){var b=l.val().toLowerCase();h.scrollTop(0),o.add(n).addClass(e.hidden).find("."+e.fullsubopensearch).removeClass(e.fullsubopen).removeClass(e.fullsubopensearch),o.each(function(){var c=a(this),d=p;(j.showTextItems||j.showSubPanels&&c.find("."+e.next))&&(d=q),a(d,c).text().toLowerCase().indexOf(b)>-1&&c.add(c.prevAll("."+e.divider).first()).removeClass(e.hidden)}),j.showSubPanels&&h.each(function(){var b=a(this);i.__filterListItems(b.find("."+e.listview).children()).each(function(){var b=a(this),c=b.data(f.sub);b.removeClass(e.nosubresults),c&&c.find("."+e.listview).children().removeClass(e.hidden)})}),a(h.get().reverse()).each(function(b){var c=a(this),g=c.data(f.parent);g&&(i.__filterListItems(c.find("."+e.listview).children()).length?(g.hasClass(e.hidden)&&g.children("."+e.next).not("."+e.fullsubopen).addClass(e.fullsubopen).addClass(e.fullsubopensearch),g.removeClass(e.hidden).removeClass(e.nosubresults).prevAll("."+e.divider).first().removeClass(e.hidden)):d||(c.hasClass(e.opened)&&setTimeout(function(){i.openPanel(g.closest("."+e.panel))},1.5*(b+1)*i.conf.openingInterval),g.addClass(e.nosubresults)))}),k[o.not("."+e.hidden).length?"removeClass":"addClass"](e.noresults),this.update()};l.off(g.keyup+"-searchfield "+g.change+"-searchfield").on(g.keyup+"-searchfield",function(a){b(a.keyCode)||r.call(i)}).on(g.change+"-searchfield",function(){r.call(i)})})}})},add:function(){e=a[c]._c,f=a[c]._d,g=a[c]._e,e.add("search hassearch noresultsmsg noresults nosubresults fullsubopensearch"),g.add("change keyup")},clickAnchor:function(){}},a[c].defaults[d]={add:!1,addTo:"panels",search:!0,placeholder:"Search",noResults:"No results found.",showTextItems:!1,showSubPanels:!0},a[c].configuration[d]={form:!1};var e,f,g,h}(jQuery),!function(a){var b="mmenu",c="sectionIndexer";a[b].addons[c]={setup:function(){var e=this,h=this.opts[c];this.conf[c],g=a[b].glbl,"boolean"==typeof h&&(h={add:h}),"object"!=typeof h&&(h={}),h=this.opts[c]=a.extend(!0,{},a[b].defaults[c],h),this.bind("init",function(b){if(h.add){switch(h.addTo){case"panels":var c=b;break;default:var c=a(h.addTo,this.$menu).filter("."+d.panel)}c.find("."+d.divider).closest("."+d.panel).addClass(d.hasindexer)}if(!this.$indexer&&this.$menu.children("."+d.hasindexer).length){this.$indexer=a('
    ').prependTo(this.$menu).append('abcdefghijklmnopqrstuvwxyz'),this.$indexer.children().on(f.mouseover+"-sectionindexer "+d.touchstart+"-sectionindexer",function(){var b=a(this).attr("href").slice(1),c=e.$menu.children("."+d.current),f=c.find("."+d.listview),g=!1,h=c.scrollTop(),i=f.position().top+parseInt(f.css("margin-top"),10)+parseInt(f.css("padding-top"),10)+h;c.scrollTop(0),f.children("."+d.divider).not("."+d.hidden).each(function(){g===!1&&b==a(this).text().slice(0,1).toLowerCase()&&(g=a(this).position().top+i)}),c.scrollTop(g!==!1?g:h)});var g=function(a){e.$menu[(a.hasClass(d.hasindexer)?"add":"remove")+"Class"](d.hasindexer)};this.bind("openPanel",g),g.call(this,this.$menu.children("."+d.current))}})},add:function(){d=a[b]._c,e=a[b]._d,f=a[b]._e,d.add("indexer hasindexer"),f.add("mouseover touchstart")},clickAnchor:function(a){return a.parent().is("."+d.indexer)?!0:void 0}},a[b].defaults[c]={add:!1,addTo:"panels"};var d,e,f,g}(jQuery),!function(a){var b="mmenu",c="toggles";a[b].addons[c]={setup:function(){var e=this;this.opts[c],this.conf[c],g=a[b].glbl,this.bind("init",function(b){this.__refactorClass(a("input",b),this.conf.classNames[c].toggle,"toggle"),this.__refactorClass(a("input",b),this.conf.classNames[c].check,"check"),a("input."+d.toggle+", input."+d.check,b).each(function(){var b=a(this),c=b.closest("li"),f=b.hasClass(d.toggle)?"toggle":"check",g=b.attr("id")||e.__getUniqueId();c.children('label[for="'+g+'"]').length||(b.attr("id",g),c.prepend(b),a('').insertBefore(c.children("a, span").last()))})})},add:function(){d=a[b]._c,e=a[b]._d,f=a[b]._e,d.add("toggle check")},clickAnchor:function(){}},a[b].configuration.classNames[c]={toggle:"Toggle",check:"Check"};var d,e,f,g}(jQuery),window.matchMedia=window.matchMedia||function(a,b){"use strict";var c,d=a.documentElement,e=d.firstElementChild||d.firstChild,f=a.createElement("body"),g=a.createElement("div");return g.id="mq-test-1",g.style.cssText="position:absolute;top:-100em",f.style.background="none",f.appendChild(g),function(a){return g.innerHTML='­',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(document),function(a){"use strict";function b(){v(!0)}var c={};if(a.respond=c,c.update=function(){},c.mediaQueriesSupported=a.matchMedia&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var d,e,f,g=a.document,h=g.documentElement,i=[],j=[],k=[],l={},m=30,n=g.getElementsByTagName("head")[0]||h,o=g.getElementsByTagName("base")[0],p=n.getElementsByTagName("link"),q=[],r=function(){for(var b=0;bh;h++){var k,l,m,n;g?(k=c,j.push(f(a))):(k=d[h].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,j.push(RegExp.$2&&f(RegExp.$2))),m=k.split(","),n=m.length;for(var o=0;n>o;o++)l=m[o],i.push({media:l.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:j.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}v()},u=function(){var a,b=g.createElement("div"),c=g.body,d=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=d=g.createElement("body"),c.style.background="none"),c.appendChild(b),h.insertBefore(c,h.firstChild),a=b.offsetWidth,d?h.removeChild(c):c.removeChild(b),a=f=parseFloat(a)},v=function(b){var c="clientWidth",l=h[c],o="CSS1Compat"===g.compatMode&&l||g.body[c]||l,q={},r=p[p.length-1],s=(new Date).getTime();if(b&&d&&m>s-d)return a.clearTimeout(e),void(e=a.setTimeout(v,m));d=s;for(var t in i)if(i.hasOwnProperty(t)){var w=i[t],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?f||u():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?f||u():1)),w.hasquery&&(z&&A||!(z||o>=x)||!(A||y>=o))||(q[w.media]||(q[w.media]=[]),q[w.media].push(j[w.rules]))}for(var C in k)k.hasOwnProperty(C)&&k[C]&&k[C].parentNode===n&&n.removeChild(k[C]);for(var D in q)if(q.hasOwnProperty(D)){var E=g.createElement("style"),F=q[D].join("\n");E.type="text/css",E.media=D,n.insertBefore(E,r.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(g.createTextNode(F)),k.push(E)}},w=function(a,b){var c=x();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},x=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}();r(),c.update=r,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this),$(function(){$("#dl-menu").dlmenu({animationClasses:{classin:"dl-animate-in",classout:"dl-animate-out"}})}),$(function(){$("article").fitVids()}),$(".close-menu").click(function(){$(".menu").toggleClass("disabled"),$(".links").toggleClass("enabled")}),$(".about").click(function(){$("#about").css("display","block")}),$(".close-about").click(function(){$("#about").css("display","")}),$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup"),$(document).ready(function(){$(".image-popup").magnificPopup({type:"image",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'Image #%curr% could not be loaded.'},removalDelay:300,mainClass:"mfp-fade"})}),$(document).ready(function(a){$(window).scroll(function(){var a=$(".header-menu"),b=$(window).scrollTop();b>300?a.attr("class","header-menu header-menu-overflow"):a.attr("class","header-menu header-menu-top")})}),$(document).ready(function(){$("#menu").attr("style",""),$("#menu").mmenu({extensions:["border-full","effect-zoom-menu","effect-zoom-panels","pageshadow","theme-dark"],counters:!0,navbars:[{position:"bottom",content:["","","",""]}]})});var sharing=function(){$(document).ready(function(){$("body").floatingSocialShare({buttons:["facebook","twitter","google-plus","linkedin","pinterest"],text:"Share with "})})};