");return i.inlineElement=s,s}return e.updateStatus("ready"),e._parseMarkup(n,{},i),n}}});var A,z="ajax",D=function(){A&&n.removeClass(A)},H=function(){D(),e.req&&e.req.abort()};t.magnificPopup.registerModule(z,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){e.types.push(z),A=e.st.ajax.cursor,x(c+"."+z,H),x("BeforeChange."+z,H)},getAjax:function(i){A&&n.addClass(A),e.updateStatus("loading");var o=t.extend({url:i.src,success:function(n,o,s){var r={data:n,xhr:s};T("ParseAjax",r),e.appendContent(t(r.data),z),i.finished=!0,D(),P(),setTimeout(function(){e.wrap.addClass(v)},16),e.updateStatus("ready"),T("AjaxContentAdded")},error:function(){D(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(o),""}}});var B,F=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=e.st.image.titleSrc;if(n){if(t.isFunction(n))return n.call(e,i);if(i.el)return i.el.attr(n)||""}return""};t.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 t=e.st.image,i=".image";e.types.push("image"),x(f+i,function(){"image"===e.currItem.type&&t.cursor&&n.addClass(t.cursor)}),x(c+i,function(){t.cursor&&n.removeClass(t.cursor),C.off("resize"+m)}),x("Resize"+i,e.resizeImage),e.isLowIE&&x("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,B&&clearInterval(B),t.isCheckingImgSize=!1,T("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,n=t.img[0],o=function(s){B&&clearInterval(B),B=setInterval(function(){return n.naturalWidth>0?void e._onImageHasSize(t):(i>200&&clearInterval(B),i++,void(3===i?o(10):40===i?o(50):100===i&&o(500)))},s)};o(1)},getImage:function(i,n){var o=0,s=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,T("ImageLoadComplete")):(o++,200>o?setTimeout(s,100):r()))},r=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,c=n.find(".mfp-img");if(c.length){var l=document.createElement("img");l.className="mfp-img",i.img=t(l).on("load.mfploader",s).on("error.mfploader",r),l.src=i.src,c.is("img")&&(i.img=i.img.clone()),i.img[0].naturalWidth>0&&(i.hasSize=!0)}return e._parseMarkup(n,{title:F(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(B&&clearInterval(B),i.loadError?(n.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),e.updateStatus("ready")),n):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),e.findImageSize(i)),n)}}});var q,W=function(){return void 0===q&&(q=void 0!==document.createElement("p").style.MozTransform),q};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,n=".zoom";if(i.enabled&&e.supportsTransition){var o,s,r=i.duration,a=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return o["-webkit-"+s]=o["-moz-"+s]=o["-o-"+s]=o[s]=n,e.css(o),e},u=function(){e.content.css("visibility","visible")};x("BuildControls"+n,function(){if(e._allowZoom()){if(clearTimeout(o),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void u();s=a(t),s.css(e._getOffset()),e.wrap.append(s),o=setTimeout(function(){s.css(e._getOffset(!0)),o=setTimeout(function(){u(),setTimeout(function(){s.remove(),t=s=null,T("ZoomAnimationEnded")},16)},r)},16)}}),x(l+n,function(){if(e._allowZoom()){if(clearTimeout(o),e.st.removalDelay=r,!t){if(!(t=e._getItemToZoom()))return;s=a(t)}s.css(e._getOffset(!0)),e.wrap.append(s),e.content.css("visibility","hidden"),setTimeout(function(){s.css(e._getOffset())},16)}}),x(c+n,function(){e._allowZoom()&&(u(),s&&s.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var n;n=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var o=n.offset(),s=parseInt(n.css("padding-top"),10),r=parseInt(n.css("padding-bottom"),10);o.top-=t(window).scrollTop()-s;var a={width:n.width(),height:(_?n.innerHeight():n[0].offsetHeight)-r-s};return W()?a["-moz-transform"]=a.transform="translate("+o.left+"px,"+o.top+"px)":(a.left=o.left,a.top=o.top),a}}});var R="iframe",U="//about:blank",V=function(t){if(e.currTemplate[R]){var i=e.currTemplate[R].find("iframe");i.length&&(t||(i[0].src="//about:blank"),e.isIE8&&i.css("display",t?"block":"none"))}};t.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(){e.types.push(R),x("BeforeChange",function(t,e,i){e!==i&&(e===R?V():i===R&&V(!0))}),x(c+"."+R,function(){V()})},getIframe:function(i,n){var o=i.src,s=e.st.iframe;t.each(s.patterns,function(){return o.indexOf(this.index)>-1?(this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1):void 0});var r={};return s.srcAction&&(r[s.srcAction]=o),e._parseMarkup(n,r,i),e.updateStatus("ready"),n}}});var Q=function(t){var i=e.items.length;return t>i-1?t-i:0>t?i+t:t},Z=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.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 i=e.st.gallery,n=".mfp-gallery",s=Boolean(t.fn.mfpFastClick);return e.direction=!0,!(!i||!i.enabled)&&(r+=" mfp-gallery",x(f+n,function(){i.navigateByImgClick&&e.wrap.on("click"+n,".mfp-img",function(){return e.items.length>1?(e.next(),!1):void 0}),o.on("keydown"+n,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),x("UpdateStatus"+n,function(t,i){i.text&&(i.text=Z(i.text,e.currItem.index,e.items.length))}),x(d+n,function(t,n,o,s){var r=e.items.length;o.counter=r>1?Z(i.tCounter,s.index,r):""}),x("BuildControls"+n,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var n=i.arrowMarkup,o=e.arrowLeft=t(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(y),r=e.arrowRight=t(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(y),a=s?"mfpFastClick":"click";o[a](function(){e.prev()}),r[a](function(){e.next()}),e.isIE7&&(S("b",o[0],!1,!0),S("a",o[0],!1,!0),S("b",r[0],!1,!0),S("a",r[0],!1,!0)),e.container.append(o.add(r))}}),x(h+n,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void x(c+n,function(){o.off(n),e.wrap.off("click"+n),e.arrowLeft&&s&&e.arrowLeft.add(e.arrowRight).destroyMfpFastClick(),e.arrowRight=e.arrowLeft=null}))},next:function(){e.direction=!0,e.index=Q(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=Q(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,n=Math.min(i[0],e.items.length),o=Math.min(i[1],e.items.length);for(t=1;(e.direction?o:n)>=t;t++)e._preloadItem(e.index+t);for(t=1;(e.direction?n:o)>=t;t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=Q(i),!e.items[i].preloaded){var n=e.items[i];n.parsed||(n=e.parseEl(i)),T("LazyLoad",n),"image"===n.type&&(n.img=t('
').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,T("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0}}}});var G="retina";t.magnificPopup.registerModule(G,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;(i=isNaN(i)?i():i)>1&&(x("ImageHasSize."+G,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),x("ElementParse."+G,function(e,n){n.src=t.replaceSrc(n,i)}))}}}}),function(){var e=1e3,i="ontouchstart"in window,n=function(){C.off("touchmove"+s+" touchend"+s)},o="mfpFastClick",s=".mfpFastClick";t.fn.mfpFastClick=function(e){return t(this).each(function(){var o,r=t(this);if(i){var a,c,l,u,p,d;r.on("touchstart"+s,function(t){u=!1,d=1,p=t.originalEvent?t.originalEvent.touches[0]:t.touches[0],c=p.clientX,l=p.clientY,C.on("touchmove"+s,function(t){p=t.originalEvent?t.originalEvent.touches:t.touches,d=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-l)>10)&&(u=!0,n())}).on("touchend"+s,function(t){n(),u||d>1||(o=!0,t.preventDefault(),clearTimeout(a),a=setTimeout(function(){o=!1},1e3),e())})})}r.on("click"+s,function(){o||e()})})},t.fn.destroyMfpFastClick=function(){t(this).off("touchstart"+s+" click"+s),i&&C.off("touchmove"+s+" touchend"+s)}}()}(window.jQuery||window.Zepto),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,o=this,s=o.EventEmitter;n.getListeners=function(t){var e,i,n=this._getEvents();if("object"==typeof t){e={};for(i in n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i])}else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,i=[];for(e=0;t.length>e;e+=1)i.push(t[e].listener);return i},n.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},n.addListener=function(t,i){var n,o=this.getListenersAsObject(t),s="object"==typeof i;for(n in o)o.hasOwnProperty(n)&&-1===e(o[n],i)&&o[n].push(s?i:{listener:i,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,i){var n,o,s=this.getListenersAsObject(t);for(o in s)s.hasOwnProperty(o)&&-1!==(n=e(s[o],i))&&s[o].splice(n,1);return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,i){var n,o,s=t?this.removeListener:this.addListener,r=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)s.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(o=e[n])&&("function"==typeof o?s.call(this,n,o):r.call(this,n,o));return this},n.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if("object"===i)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var i,n,o,s,r=this.getListenersAsObject(t);for(o in r)if(r.hasOwnProperty(o))for(n=r[o].length;n--;)i=r[o][n],i.once===!0&&this.removeListener(t,i.listener),(s=i.listener.apply(this,e||[]))===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return o.EventEmitter=s,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,n=function(){};i.addEventListener?n=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(n=function(t,i,n){t[i+n]=n.handleEvent?function(){var i=e(t);n.handleEvent.call(n,i)}:function(){var i=e(t);n.call(t,i)},t.attachEvent("on"+i,t[i+n])});var o=function(){};i.removeEventListener?o=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(o=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var s={bind:n,unbind:o};"function"==typeof define&&define.amd?define("eventie/eventie",s):t.eventie=s}(this),function(t,e){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(i,n){return e(t,i,n)}):"object"==typeof exports?module.exports=e(t,require("eventEmitter"),require("eventie")):t.imagesLoadedn=e(t,t.EventEmitter,t.eventie)}(this,function(t,e,i){function n(t,e){
for(var i in e)t[i]=e[i];return t}function o(t){return"[object Array]"===d.call(t)}function s(t){var e=[];if(o(t))e=t;else if("number"==typeof t.length)for(var i=0,n=t.length;n>i;i++)e.push(t[i]);else e.push(t);return e}function r(t,e,i){if(!(this instanceof r))return new r(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=s(t),this.options=n({},this.options),"function"==typeof e?i=e:n(this.options,e),i&&this.on("always",i),this.getImages(),l&&(this.jqDeferred=new l.Deferred);var o=this;setTimeout(function(){o.check()})}function a(t){this.img=t}function c(t){this.src=t,f[t]=this}var l=t.jQuery,u=t.console,p=void 0!==u,d=Object.prototype.toString;r.prototype=new e,r.prototype.options={},r.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;e>t;t++){var i=this.elements[t];"IMG"===i.nodeName&&this.addImage(i);for(var n=i.querySelectorAll("img"),o=0,s=n.length;s>o;o++){var r=n[o];this.addImage(r)}}},r.prototype.addImage=function(t){var e=new a(t);this.images.push(e)},r.prototype.check=function(){function t(t,o){return e.options.debug&&p&&u.log("confirm",t,o),e.progress(t),i++,i===n&&e.complete(),!0}var e=this,i=0,n=this.images.length;if(this.hasAnyBroken=!1,!n)return void this.complete();for(var o=0;n>o;o++){var s=this.images[o];s.on("confirm",t),s.check()}},r.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify&&e.jqDeferred.notify(e,t)})},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var e=this;setTimeout(function(){if(e.emit(t,e),e.emit("always",e),e.jqDeferred){var i=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[i](e)}})},l&&(l.fn.imagesLoadedn=function(t,e){return new r(this,t,e).jqDeferred.promise(l(this))}),a.prototype=new e,a.prototype.check=function(){var t=f[this.img.src]||new c(this.img.src);if(t.isConfirmed)return void this.confirm(t.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var e=this;t.on("confirm",function(t,i){return e.confirm(t.isLoaded,i),!0}),t.check()},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var f={};return c.prototype=new e,c.prototype.check=function(){if(!this.isChecked){var t=new Image;i.bind(t,"load",this),i.bind(t,"error",this),t.src=this.src,this.isChecked=!0}},c.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},c.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},c.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},c.prototype.unbindProxyEvents=function(t){i.unbind(t.target,"load",this),i.unbind(t.target,"error",this)},r}),function($){$.fn.hoverIntent=function(t,e,i){var n={interval:30,sensitivity:7,timeout:0};n="object"==typeof t?$.extend(n,t):$.isFunction(e)?$.extend(n,{over:t,out:e,selector:i}):$.extend(n,{over:t,out:t,selector:e});var o,s,r,a,c=function(t){o=t.pageX,s=t.pageY},l=function(t,e){if(e.hoverIntent_t=clearTimeout(e.hoverIntent_t),Math.abs(r-o)+Math.abs(a-s)
»'),o=function(){var t=$(this),e=c(t);clearTimeout(e.sfTimer),t.showSuperfishUl().siblings().hideSuperfishUl()},s=function(t){var i=$(this),n=c(i);"click"===t.type||e.ios?$.proxy(r,i,n)():(clearTimeout(n.sfTimer),n.sfTimer=setTimeout($.proxy(r,i,n),n.delay))},r=function(t){t.retainPath=$.inArray(this[0],t.$path)>-1,this.hideSuperfishUl(),this.parents("."+t.hoverClass).length||(t.onIdle.call(a(this)),t.$path.length&&$.proxy(o,t.$path)())},a=function(t){return t.closest("."+i.menuClass)},c=function(t){return a(t).data("sf-options")},l=function(t){t.css("ms-touch-action","none")},u=function(t,i){var n="li:has(ul)";i.useClick||($.fn.hoverIntent&&!i.disableHI?t.hoverIntent(o,s,"li:has(ul)"):t.on("mouseenter","li:has(ul)",o).on("mouseleave","li:has(ul)",s));var r="MSPointerDown";e.ios||(r+=" touchstart"),e.wp7&&(r+=" mousedown"),t.on("focusin","li",o).on("focusout","li",s).on("click","a",i,d).on(r,"a",p)},p=function(t){var e=$(this),i=e.siblings("ul");if(i.length>0&&i.is(":hidden")&&(e.data("follow",!1),"MSPointerDown"===t.type))return e.trigger("focus"),!1},d=function(t){var e=$(this),i=t.data,n=e.siblings("ul"),r=e.data("follow")!==!1;!n.length||!i.useClick&&r||(t.preventDefault(),n.is(":hidden")?$.proxy(o,e.parent("li"))():i.useClick&&r&&$.proxy(s,e.parent("li"),t)())},f=function(t,e){return t.find("li."+e.pathClass).slice(0,e.pathLevels).addClass(e.hoverClass+" "+i.bcClass).filter(function(){return $(this).children("ul").hide().show().length}).removeClass(e.pathClass)},h=function(t,e){e.autoArrows&&t.children("a").each(function(){g($(this))})},g=function(t){t.addClass(i.anchorClass).append(n.clone())};return e.getOptions=c,this.addClass(i.menuClass).each(function(){var n=$(this),o=$.extend({},e.defaults,t),s=n.find("li:has(ul)");o.$path=f(n,o),n.data("sf-options",o),h(s,o),l(n),u(n,o),s.not("."+i.bcClass).hideSuperfishUl(!0),o.onInit.call(this)})};var t=$.fn.superfish;t.o=[],t.op={},t.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator"},t.defaults={hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",autoArrows:!0,disableHI:!1,useClick:!1,onInit:$.noop,onBeforeShow:$.noop,onShow:$.noop,onBeforeHide:$.noop,onHide:$.noop,onIdle:$.noop},t.ios=/iPhone|iPad|iPod/i.test(navigator.userAgent),t.wp7=function(){var t=document.documentElement.style;return"behavior"in t&&"fill"in t&&/iemobile/i.test(navigator.userAgent)}(),$.fn.extend({hideSuperfishUl:function(e){if(this.length){var i=this,n=t.getOptions(i),o=n.retainPath===!0?n.$path:"",s=i.find("li."+n.hoverClass).add(this).not(o).removeClass(n.hoverClass).children("ul"),r=n.speedOut;e&&(s.show(),r=0),n.retainPath=!1,n.onBeforeHide.call(s),s.stop(!0,!0).animate(n.animationOut,r,function(){n.onHide.call($(this)),n.useClick&&i.children("a").data("follow",!1)})}return this},showSuperfishUl:function(){var e=t.getOptions(this),i=this.addClass(e.hoverClass),n=i.children("ul");return e.onBeforeShow.call(n),n.stop(!0,!0).animate(e.animation,e.speed,function(){e.onShow.call(n),i.children("a").data("follow",!0)}),this}}),t.ios&&$(window).load(function(){$("body").children().on("click",$.noop)})}(jQuery),function($){"use strict";$.fn.fitVids=function(t){var e={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var i=document.head||document.getElementsByTagName("head")[0],n=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",o=document.createElement("div");o.innerHTML='x
',i.appendChild(o.childNodes[1])}return t&&$.extend(e,t),this.each(function(){var t=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];e.customSelector&&t.push(e.customSelector);var i=".fitvidsignore";e.ignore&&(i=i+", "+e.ignore);var n=$(this).find(t.join(","));n=n.not("object object"),n=n.not(i),n.each(function(){var t=$(this);if(!(t.parents(i).length>0||"embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)){t.css("height")||t.css("width")||!isNaN(t.attr("height"))&&!isNaN(t.attr("width"))||(t.attr("height",9),t.attr("width",16));var e="object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),n=isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10),o=e/n;if(!t.attr("name")){var s="fitvid"+$.fn.fitVids._count;t.attr("name",s),$.fn.fitVids._count++}t.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*o+"%"),t.removeAttr("height").removeAttr("width")}})})},$.fn.fitVids._count=0}(window.jQuery||window.Zepto),/*!
* jquery.customSelect() - v0.4.2
* http://adam.co/lab/jquery/customselect/
* 2013-05-22
*
* Copyright 2013 Adam Coulombe
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @license http://www.gnu.org/licenses/gpl.html GPL2 License
*/
function(t){t.fn.extend({customSelect:function(e){if(void 0===document.body.style.maxHeight)return this;var i={customClass:"customSelect",mapClass:!0,mapStyle:!0},e=t.extend(i,e),n=e.customClass,o=function(e,i){var n=e.find(":selected"),o=i.children(":first"),r=n.html()||" ";o.html(r),n.attr("disabled")?i.addClass(s("DisabledOption")):i.removeClass(s("DisabledOption")),setTimeout(function(){i.removeClass(s("Open")),t(document).off("mouseup."+s("Open"))},60)},s=function(t){return n+t};return this.each(function(){var i=t(this),r=t(" ").addClass(s("Inner")),a=t(" "),c=i.position();i.after(a.append(r)),a.addClass(n),e.mapClass&&a.addClass(i.attr("class")),e.mapStyle&&a.attr("style",i.attr("style")),i.addClass("hasCustomSelect").on("update",function(){o(i,a);var t=parseInt(i.outerWidth(),10)-(parseInt(a.outerWidth(),10)-parseInt(a.width(),10));a.css({display:"inline-block"});var e=a.outerHeight();i.attr("disabled")?a.addClass(s("Disabled")):a.removeClass(s("Disabled")),r.css({width:t,display:"inline-block"}),i.css({"-webkit-appearance":"menulist-button",width:a.outerWidth(),position:"absolute",opacity:0,height:e,fontSize:a.css("font-size"),left:c.left,top:c.top})}).on("change",function(){a.addClass(s("Changed")),o(i,a)}).on("keyup",function(t){a.hasClass(s("Open"))?13!=t.which&&27!=t.which&&9!=t.which||o(i,a):(i.blur(),i.focus())}).on("mousedown",function(t){a.removeClass(s("Changed"))}).on("mouseup",function(e){a.hasClass(s("Open"))||(t("."+s("Open")).not(a).length>0&&"undefined"!=typeof InstallTrigger?i.focus():(a.addClass(s("Open")),e.stopPropagation(),t(document).one("mouseup."+s("Open"),function(e){e.target!=i.get(0)&&t.inArray(e.target,i.find("*").get())<0?i.blur():o(i,a)})))}).focus(function(){a.removeClass(s("Changed")).addClass(s("Focus"))}).blur(function(){a.removeClass(s("Focus")+" "+s("Open"))}).hover(function(){a.addClass(s("Hover"))},function(){a.removeClass(s("Hover"))}).trigger("update")})}})}(jQuery),function(t){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],t):t(jQuery)}(function(t){function e(e){return!e||void 0!==e.allowPageScroll||void 0===e.tswipe&&void 0===e.tswipeStatus||(e.allowPageScroll=l),void 0!==e.click&&void 0===e.tap&&(e.tap=e.click),e||(e={}),e=t.extend({},t.fn.tswipe.defaults,e),this.each(function(){var n=t(this),o=n.data(T);o||(o=new i(this,e),n.data(T,o))})}function i(e,i){function P(e){if(!(ct()||t(e.target).closest(i.excludedElements,Wt).length>0)){var n=e.originalEvent?e.originalEvent:e,o,s=S?n.touches[0]:n;return Rt=w,S?Ut=n.touches.length:e.preventDefault(),jt=0,Nt=null,Ft=null,At=0,zt=0,Dt=0,Ht=1,Bt=0,Vt=ft(),qt=mt(),rt(),!S||Ut===i.fingers||i.fingers===b||q()?(ut(0,s),Qt=St(),2==Ut&&(ut(1,n.touches[1]),zt=Dt=yt(Vt[0].start,Vt[1].start)),(i.tswipeStatus||i.pinchStatus)&&(o=j(n,Rt))):o=!1,o===!1?(Rt=x,j(n,Rt),o):(lt(!0),null)}}function I(t){var e=t.originalEvent?t.originalEvent:t;if(Rt!==C&&Rt!==x&&!at()){var n,o=S?e.touches[0]:e,s=pt(o);if(Zt=St(),S&&(Ut=e.touches.length),Rt=_,2==Ut&&(0==zt?(ut(1,e.touches[1]),zt=Dt=yt(Vt[0].start,Vt[1].start)):(pt(e.touches[1]),Dt=yt(Vt[0].end,Vt[1].end),Ft=_t(Vt[0].end,Vt[1].end)),Ht=wt(zt,Dt),Bt=Math.abs(zt-Dt)),Ut===i.fingers||i.fingers===b||!S||q()){if(Nt=$t(s.start,s.end),B(t,Nt),jt=Ct(s.start,s.end),At=bt(),ht(Nt,jt),(i.tswipeStatus||i.pinchStatus)&&(n=j(e,Rt)),!i.triggerOnTouchEnd||i.triggerOnTouchLeave){var r=!0;if(i.triggerOnTouchLeave){var a=Tt(this);r=Pt(s.end,a)}!i.triggerOnTouchEnd&&r?Rt=L(_):i.triggerOnTouchLeave&&!r&&(Rt=L(C)),Rt!=x&&Rt!=C||j(e,Rt)}}else Rt=x,j(e,Rt);n===!1&&(Rt=x,j(e,Rt))}}function k(t){var e=t.originalEvent;return S&&e.touches.length>0?(st(),!0):(at()&&(Ut=Kt),t.preventDefault(),Zt=St(),At=bt(),z()?(Rt=x,j(e,Rt)):i.triggerOnTouchEnd||0==i.triggerOnTouchEnd&&Rt===_?(Rt=C,j(e,Rt)):!i.triggerOnTouchEnd&&G()?(Rt=C,N(e,Rt,f)):Rt===_&&(Rt=x,j(e,Rt)),lt(!1),null)}function E(){Ut=0,Zt=0,Qt=0,zt=0,Dt=0,Ht=1,rt(),lt(!1)}function M(t){var e=t.originalEvent;i.triggerOnTouchLeave&&(Rt=L(C),j(e,Rt))}function O(){Wt.unbind(kt,P),Wt.unbind(Lt,E),Wt.unbind(Et,I),Wt.unbind(Mt,k),Ot&&Wt.unbind(Ot,M),lt(!1)}function L(t){var e=t,n=H(),o=A(),s=z();return!n||s?e=x:!o||t!=_||i.triggerOnTouchEnd&&!i.triggerOnTouchLeave?!o&&t==C&&i.triggerOnTouchLeave&&(e=x):e=C,e}function j(t,e){var i=void 0;return V()||U()?i=N(t,e,p):(W()||q())&&i!==!1&&(i=N(t,e,d)),nt()&&i!==!1?i=N(t,e,h):ot()&&i!==!1?i=N(t,e,g):it()&&i!==!1&&(i=N(t,e,f)),e===x&&E(t),e===C&&(S?0==t.touches.length&&E(t):E(t)),i}function N(e,l,u){var m=void 0;if(u==p){if(Wt.trigger("tswipeStatus",[l,Nt||null,jt||0,At||0,Ut]),i.tswipeStatus&&(m=i.tswipeStatus.call(Wt,e,l,Nt||null,jt||0,At||0,Ut))===!1)return!1;if(l==C&&R()){if(Wt.trigger("tswipe",[Nt,jt,At,Ut]),i.tswipe&&(m=i.tswipe.call(Wt,e,Nt,jt,At,Ut))===!1)return!1;switch(Nt){case n:Wt.trigger("tswipeLeft",[Nt,jt,At,Ut]),i.tswipeLeft&&(m=i.tswipeLeft.call(Wt,e,Nt,jt,At,Ut));break;case o:Wt.trigger("tswipeRight",[Nt,jt,At,Ut]),i.tswipeRight&&(m=i.tswipeRight.call(Wt,e,Nt,jt,At,Ut));break;case s:Wt.trigger("tswipeUp",[Nt,jt,At,Ut]),i.tswipeUp&&(m=i.tswipeUp.call(Wt,e,Nt,jt,At,Ut));break;case r:Wt.trigger("tswipeDown",[Nt,jt,At,Ut]),i.tswipeDown&&(m=i.tswipeDown.call(Wt,e,Nt,jt,At,Ut))}}}if(u==d){if(Wt.trigger("pinchStatus",[l,Ft||null,Bt||0,At||0,Ut,Ht]),i.pinchStatus&&(m=i.pinchStatus.call(Wt,e,l,Ft||null,Bt||0,At||0,Ut,Ht))===!1)return!1;if(l==C&&F())switch(Ft){case a:Wt.trigger("pinchIn",[Ft||null,Bt||0,At||0,Ut,Ht]),i.pinchIn&&(m=i.pinchIn.call(Wt,e,Ft||null,Bt||0,At||0,Ut,Ht));break;case c:Wt.trigger("pinchOut",[Ft||null,Bt||0,At||0,Ut,Ht]),i.pinchOut&&(m=i.pinchOut.call(Wt,e,Ft||null,Bt||0,At||0,Ut,Ht))}}return u==f?l!==x&&l!==C||(clearTimeout(Xt),K()&&!J()?(Yt=St(),Xt=setTimeout(t.proxy(function(){Yt=null,Wt.trigger("tap",[e.target]),i.tap&&(m=i.tap.call(Wt,e,e.target))},this),i.doubleTapThreshold)):(Yt=null,Wt.trigger("tap",[e.target]),i.tap&&(m=i.tap.call(Wt,e,e.target)))):u==h?l!==x&&l!==C||(clearTimeout(Xt),Yt=null,Wt.trigger("doubletap",[e.target]),i.doubleTap&&(m=i.doubleTap.call(Wt,e,e.target))):u==g&&(l!==x&&l!==C||(clearTimeout(Xt),Yt=null,Wt.trigger("longtap",[e.target]),i.longTap&&(m=i.longTap.call(Wt,e,e.target)))),m}function A(){var t=!0;return null!==i.threshold&&(t=jt>=i.threshold),t}function z(){var t=!1;return null!==i.cancelThreshold&&null!==Nt&&(t=gt(Nt)-jt>=i.cancelThreshold),t}function D(){return null===i.pinchThreshold||Bt>=i.pinchThreshold}function H(){var t;return t=!i.maxTimeThreshold||!(At>=i.maxTimeThreshold)}function B(t,e){if(i.allowPageScroll===l||q())t.preventDefault();else{var a=i.allowPageScroll===u;switch(e){case n:(i.tswipeLeft&&a||!a&&i.allowPageScroll!=m)&&t.preventDefault();break;case o:(i.tswipeRight&&a||!a&&i.allowPageScroll!=m)&&t.preventDefault();break;case s:(i.tswipeUp&&a||!a&&i.allowPageScroll!=v)&&t.preventDefault();break;case r:(i.tswipeDown&&a||!a&&i.allowPageScroll!=v)&&t.preventDefault()}}}function F(){var t=Q(),e=Z(),i=D();return t&&e&&i}function q(){return!!(i.pinchStatus||i.pinchIn||i.pinchOut)}function W(){return!(!F()||!q())}function R(){var t=H(),e=A(),i=Q(),n=Z();return!z()&&n&&i&&e&&t}function U(){return!!(i.tswipe||i.tswipeStatus||i.tswipeLeft||i.tswipeRight||i.tswipeUp||i.tswipeDown)}function V(){return!(!R()||!U())}function Q(){return Ut===i.fingers||i.fingers===b||!S}function Z(){return 0!==Vt[0].end.x}function G(){return!!i.tap}function K(){return!!i.doubleTap}function Y(){return!!i.longTap}function X(){if(null==Yt)return!1;var t=St();return K()&&t-Yt<=i.doubleTapThreshold}function J(){return X()}function tt(){return(1===Ut||!S)&&(isNaN(jt)||0===jt)}function et(){return At>i.longTapThreshold&&jt=0?n:i<=360&&i>=315?n:i>=135&&i<=225?o:i>45&&i<135?r:s}function St(){return(new Date).getTime()}function Tt(e){e=t(e);var i=e.offset();return{left:i.left,right:i.left+e.outerWidth(),top:i.top,bottom:i.top+e.outerHeight()}}function Pt(t,e){return t.x>e.left&&t.xe.top&&t.yo.maxZoom,a=p(),l,d,f,g,_=!1,C,S,T,P,I,M,O;for(v=!1,s>3&&(C=u(),_=C.getSouthWest().lng()1&&O)}else for(d=l;d=0&&(o=s[t][n],!e(r[o].tag));n--);else for(n=0;n=0||!e.length))for(var a in s.clusterer)r[s.clusterer[a]].obj.clear(i,n,o)}}function v(){return A.geocoder||(A.geocoder=new google.maps.Geocoder),A.geocoder}function b(){return A.directionsService||(A.directionsService=new google.maps.DirectionsService),A.directionsService}function y(){return A.elevationService||(A.elevationService=new google.maps.ElevationService),A.elevationService}function w(){return A.maxZoomService||(A.maxZoomService=new google.maps.MaxZoomService),A.maxZoomService}function _(){return A.distanceMatrixService||(A.distanceMatrixService=new google.maps.DistanceMatrixService),A.distanceMatrixService}function C(){if(j.verbose){var t,e=[];if(window.console&&"function"==typeof console.error){for(t=0;t=0)return!0;return!1}return t.inArray(n,i)>=0})}function P(e,i,n){var o=i?e:null;return e&&"string"!=typeof e?e.latLng?P(e.latLng):e instanceof google.maps.LatLng?e:x(e.lat)?new google.maps.LatLng(e.lat,e.lng):!n&&t.isArray(e)&&x(e[0])&&x(e[1])?new google.maps.LatLng(e[0],e[1]):o:o}function I(e){var i,n;return!e||e instanceof google.maps.LatLngBounds?e||null:(t.isArray(e)?2==e.length?(i=P(e[0]),n=P(e[1])):4==e.length&&(i=P([e[0],e[1]]),n=P([e[2],e[3]])):"ne"in e&&"sw"in e?(i=P(e.ne),n=P(e.sw)):"n"in e&&"e"in e&&"s"in e&&"w"in e&&(i=P([e.n,e.e]),n=P([e.s,e.w])),i&&n?new google.maps.LatLngBounds(n,i):null)}function k(t,e,i,n,o){var s=!!i&&P(n.todo,!1,!0),r=s?{latLng:s}:!!n.todo.address&&("string"==typeof n.todo.address?{address:n.todo.address}:n.todo.address),a=!!r&&z.get(r),c=this;r?(o=o||0,a?(n.latLng=a.results[0].geometry.location,n.results=a.results,n.status=a.status,e.apply(t,[n])):(r.location&&(r.location=P(r.location)),r.bounds&&(r.bounds=I(r.bounds)),v().geocode(r,function(s,a){a===google.maps.GeocoderStatus.OK?(z.store(r,{results:s,status:a}),n.latLng=s[0].geometry.location,n.results=s,n.status=a,e.apply(t,[n])):a===google.maps.GeocoderStatus.OVER_QUERY_LIMIT&&o=e.length)return void n.apply(i,[o]);k(r,function(i){delete i.todo,t.extend(e[a],i),s.apply(r,[])},!0,{todo:e[a]})}var r=this,a=-1;s()}function M(t,e,i){var n=!1;navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(o){n||(n=!0,i.latLng=new google.maps.LatLng(o.coords.latitude,o.coords.longitude),e.apply(t,[i]))},function(){n||(n=!0,i.latLng=!1,e.apply(t,[i]))},i.opts.getCurrentPosition):(i.latLng=!1,e.apply(t,[i]))}function O(i){function c(){!L&&(L=E.get())&&L.run()}function u(){L=null,E.ack(),c.call(k)}function p(e){if(e.todo.callback){var n=Array.prototype.slice.call(arguments,1);"function"==typeof e.todo.callback?e.todo.callback.apply(i,n):t.isArray(e.todo.callback)&&"function"==typeof e.todo.callback[1]&&e.todo.callback[1].apply(e.todo.callback[0],n)}}function f(t,e,n){n&&s(i,t,e,n),p(t,e),L.ack(e)}function v(e,n){if(n=n||{},O)n.todo&&n.todo.options&&(n.todo.options.center&&(n.todo.options.center=P(n.todo.options.center)),O.setOptions(n.todo.options));else{var o=n.opts||t.extend(!0,{},j.map,n.todo&&n.todo.options?n.todo.options:{});o.center=e||P(o.center),O=new j.classes.Map(i.get(0),o)}}function x(e,n,o){var r=[],a="values"in e.todo;if(a||(e.todo.values=[{options:e.opts}]),!e.todo.values.length)return void f(e,!1);v(),t.each(e.todo.values,function(a,c){var u,p,d,f,h=l(e,c);if(h.options[o])if(h.options[o][0][0]&&t.isArray(h.options[o][0][0]))for(p=0;pe}),u=r.calculator?function(e){var n=[];return t.each(e,function(t,e){n.push(o.value(e))}),r.calculator.apply(i,[n])}:function(t){return t.length},o.error(function(){C.apply(k,arguments)}),o.display(function(l){var p,d,f,h,g,m=u(l.indexes);if(n.force||m>1)for(p=0;pe.todo.maxZoom&&this.setZoom(e.todo.maxZoom)}),O.fitBounds(i)),f(e,!0)},this.clear=function(e){if("string"==typeof e.todo){if(M.clearById(e.todo)||M.objClearById(e.todo))return void f(e,!0);e.todo={name:e.todo}}e.todo.id?t.each(S(e.todo.id),function(t,e){M.clearById(e)||M.objClearById(e)}):(M.clear(S(e.todo.name),e.todo.last,e.todo.first,e.todo.tag),M.objClear(S(e.todo.name),e.todo.last,e.todo.first,e.todo.tag)),f(e,!0)},this.exec=function(e){var n=this;t.each(S(e.todo.func),function(o,s){t.each(n.get(e.todo,!0,!e.todo.hasOwnProperty("full")||e.todo.full),function(t,e){s.call(i,e)})}),f(e,!0)},this.get=function(i,n,o){var s,r,a=n?i:i.todo;if(n||(o=a.full),"string"==typeof a?(r=M.getById(a,!1,o)||M.objGetById(a))===!1&&(s=a,a={}):s=a.name,"map"===s&&(r=O),r||(r=[],a.id?(t.each(S(a.id),function(t,e){r.push(M.getById(e,!1,o)||M.objGetById(e))}),t.isArray(a.id)||(r=r[0])):(t.each(s?S(s):[e],function(e,i){var n;a.first?(n=M.get(i,!1,a.tag,o))&&r.push(n):a.all?t.each(M.all(i,a.tag,o),function(t,e){r.push(e)}):(n=M.get(i,!0,a.tag,o))&&r.push(n)}),a.all||t.isArray(s)||(r=r[0]))),r=t.isArray(r)||!a.all?r:[r],n)return r;f(i,r)},this.getdistance=function(t){var e;for(t.opts.origins=S(t.opts.origins),e=0;e
',controlattrs:{offsetx:0,offsety:52},anchorkeyword:"#top",state:{isvisible:!1,shouldvisible:!1},scrollup:function(){this.cssfixedsupport||this.$control.css({opacity:0});var t=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);t="string"==typeof t&&1==jQuery("#"+t).length?jQuery("#"+t).offset().top:0,this.$body.animate({scrollTop:t},this.setting.scrollduration)},keepfixed:function(){var t=jQuery(window),e=t.scrollLeft()+t.width()-this.$control.width()-this.controlattrs.offsetx,i=t.scrollTop()+t.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:e+"px",top:i+"px"})},togglecontrol:function(){var t=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed(),this.state.shouldvisible=t>=this.setting.startline,this.state.shouldvisible&&!this.state.isvisible?(this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]),this.state.isvisible=!0):0==this.state.shouldvisible&&this.state.isvisible&&(this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]),this.state.isvisible=!1)},init:function(){jQuery(document).ready(function($){var t=scrolltotop,e=document.all;t.cssfixedsupport=!e||e&&"CSS1Compat"==document.compatMode&&window.XMLHttpRequest,t.$body=$(window.opera?"CSS1Compat"==document.compatMode?"html":"body":"html,body"),t.$control=$('