");return n.inlineElement=a,a}return e.updateStatus("ready"),e._parseMarkup(o,{},n),o}}});var _,j="ajax",N=function(){_&&o.removeClass(_)},G=function(){N(),e.req&&e.req.abort()};t.magnificPopup.registerModule(j,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){e.types.push(j),_=e.st.ajax.cursor,x(l+"."+j,G),x("BeforeChange."+j,G)},getAjax:function(n){_&&o.addClass(_),e.updateStatus("loading");var i=t.extend({url:n.src,success:function(o,i,a){var s={data:o,xhr:a};S("ParseAjax",s),e.appendContent(t(s.data),j),n.finished=!0,N(),T(),setTimeout(function(){e.wrap.addClass(v)},16),e.updateStatus("ready"),S("AjaxContentAdded")},error:function(){N(),n.finished=n.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",n.src))}},e.st.ajax.settings);return e.req=t.ajax(i),""}}});var A,K=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var o=e.st.image.titleSrc;if(o){if(t.isFunction(o))return o.call(e,n);if(n.el)return n.el.attr(o)||""}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,n=".image";e.types.push("image"),x(f+n,function(){"image"===e.currItem.type&&t.cursor&&o.addClass(t.cursor)}),x(l+n,function(){t.cursor&&o.removeClass(t.cursor),E.off("resize"+g)}),x("Resize"+n,e.resizeImage),e.isLowIE&&x("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var n=0;e.isLowIE&&(n=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-n)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,A&&clearInterval(A),t.isCheckingImgSize=!1,S("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var n=0,o=t.img[0],i=function(a){A&&clearInterval(A),A=setInterval(function(){return o.naturalWidth>0?void e._onImageHasSize(t):(n>200&&clearInterval(A),n++,void(3===n?i(10):40===n?i(50):100===n&&i(500)))},a)};i(1)},getImage:function(n,o){var i=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,S("ImageLoadComplete")):(i++,200>i?setTimeout(a,100):s()))},s=function(){n&&(n.img.off(".mfploader"),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus("error",r.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},r=e.st.image,l=o.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.img=t(c).on("load.mfploader",a).on("error.mfploader",s),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),n.img[0].naturalWidth>0&&(n.hasSize=!0)}return e._parseMarkup(o,{title:K(n),img_replaceWith:n.img},n),e.resizeImage(),n.hasSize?(A&&clearInterval(A),n.loadError?(o.addClass("mfp-loading"),e.updateStatus("error",r.tError.replace("%url%",n.src))):(o.removeClass("mfp-loading"),e.updateStatus("ready")),o):(e.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,o.addClass("mfp-loading"),e.findImageSize(n)),o)}}});var W,z=function(){return void 0===W&&(W=void 0!==document.createElement("p").style.MozTransform),W};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,n=e.st.zoom,o=".zoom";if(n.enabled&&e.supportsTransition){var i,a,s=n.duration,r=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return i["-webkit-"+a]=i["-moz-"+a]=i["-o-"+a]=i[a]=o,e.css(i),e},d=function(){e.content.css("visibility","visible")};x("BuildControls"+o,function(){if(e._allowZoom()){if(clearTimeout(i),e.content.css("visibility","hidden"),t=e._getItemToZoom(),!t)return void d();a=r(t),a.css(e._getOffset()),e.wrap.append(a),i=setTimeout(function(){a.css(e._getOffset(!0)),i=setTimeout(function(){d(),setTimeout(function(){a.remove(),t=a=null,S("ZoomAnimationEnded")},16)},s)},16)}}),x(c+o,function(){if(e._allowZoom()){if(clearTimeout(i),e.st.removalDelay=s,!t){if(t=e._getItemToZoom(),!t)return;a=r(t)}a.css(e._getOffset(!0)),e.wrap.append(a),e.content.css("visibility","hidden"),setTimeout(function(){a.css(e._getOffset())},16)}}),x(l+o,function(){e._allowZoom()&&(d(),a&&a.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return e.currItem.hasSize?e.currItem.img:!1},_getOffset:function(n){var o;o=n?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var i=o.offset(),a=parseInt(o.css("padding-top"),10),s=parseInt(o.css("padding-bottom"),10);i.top-=t(window).scrollTop()-a;var r={width:o.width(),height:(C?o.innerHeight():o[0].offsetHeight)-s-a};return z()?r["-moz-transform"]=r.transform="translate("+i.left+"px,"+i.top+"px)":(r.left=i.left,r.top=i.top),r}}});var J="iframe",B="//about:blank",R=function(t){if(e.currTemplate[J]){var n=e.currTemplate[J].find("iframe");n.length&&(t||(n[0].src=B),e.isIE8&&n.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(J,{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(J),x("BeforeChange",function(t,e,n){e!==n&&(e===J?R():n===J&&R(!0))}),x(l+"."+J,function(){R()})},getIframe:function(n,o){var i=n.src,a=e.st.iframe;t.each(a.patterns,function(){return i.indexOf(this.index)>-1?(this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1):void 0});var s={};return a.srcAction&&(s[a.srcAction]=i),e._parseMarkup(o,s,n),e.updateStatus("ready"),o}}});var Q=function(t){var n=e.items.length;return t>n-1?t-n:0>t?n+t:t},U=function(t,e,n){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,n)};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 n=e.st.gallery,o=".mfp-gallery",a=Boolean(t.fn.mfpFastClick);return e.direction=!0,n&&n.enabled?(s+=" mfp-gallery",x(f+o,function(){n.navigateByImgClick&&e.wrap.on("click"+o,".mfp-img",function(){return e.items.length>1?(e.next(),!1):void 0}),i.on("keydown"+o,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),x("UpdateStatus"+o,function(t,n){n.text&&(n.text=U(n.text,e.currItem.index,e.items.length))}),x(p+o,function(t,o,i,a){var s=e.items.length;i.counter=s>1?U(n.tCounter,a.index,s):""}),x("BuildControls"+o,function(){if(e.items.length>1&&n.arrows&&!e.arrowLeft){var o=n.arrowMarkup,i=e.arrowLeft=t(o.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),s=e.arrowRight=t(o.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y),r=a?"mfpFastClick":"click";i[r](function(){e.prev()}),s[r](function(){e.next()}),e.isIE7&&(I("b",i[0],!1,!0),I("a",i[0],!1,!0),I("b",s[0],!1,!0),I("a",s[0],!1,!0)),e.container.append(i.add(s))}}),x(h+o,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void x(l+o,function(){i.off(o),e.wrap.off("click"+o),e.arrowLeft&&a&&e.arrowLeft.add(e.arrowRight).destroyMfpFastClick(),e.arrowRight=e.arrowLeft=null})):!1},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,n=e.st.gallery.preload,o=Math.min(n[0],e.items.length),i=Math.min(n[1],e.items.length);for(t=1;(e.direction?i:o)>=t;t++)e._preloadItem(e.index+t);for(t=1;(e.direction?o:i)>=t;t++)e._preloadItem(e.index-t)},_preloadItem:function(n){if(n=Q(n),!e.items[n].preloaded){var o=e.items[n];o.parsed||(o=e.parseEl(n)),S("LazyLoad",o),"image"===o.type&&(o.img=t('
').on("load.mfploader",function(){o.hasSize=!0}).on("error.mfploader",function(){o.hasSize=!0,o.loadError=!0,S("LazyLoadError",o)}).attr("src",o.src)),o.preloaded=!0}}}});var q="retina";t.magnificPopup.registerModule(q,{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,n=t.ratio;n=isNaN(n)?n():n,n>1&&(x("ImageHasSize."+q,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/n,width:"100%"})}),x("ElementParse."+q,function(e,o){o.src=t.replaceSrc(o,n)}))}}}}),function(){var e=1e3,n="ontouchstart"in window,o=function(){E.off("touchmove"+a+" touchend"+a)},i="mfpFastClick",a="."+i;t.fn.mfpFastClick=function(i){return t(this).each(function(){var s,r=t(this);if(n){var l,c,d,u,p,f;r.on("touchstart"+a,function(t){u=!1,f=1,p=t.originalEvent?t.originalEvent.touches[0]:t.touches[0],c=p.clientX,d=p.clientY,E.on("touchmove"+a,function(t){p=t.originalEvent?t.originalEvent.touches:t.touches,f=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-d)>10)&&(u=!0,o())}).on("touchend"+a,function(t){o(),u||f>1||(s=!0,t.preventDefault(),clearTimeout(l),l=setTimeout(function(){s=!1},e),i())})})}r.on("click"+a,function(){s||i()})})},t.fn.destroyMfpFastClick=function(){t(this).off("touchstart"+a+" click"+a),n&&E.off("touchmove"+a+" touchend"+a)}}()}(window.jQuery||window.Zepto),function(){function t(){}function e(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function n(t){return function(){return this[t].apply(this,arguments)}}var o=t.prototype,i=this,a=i.EventEmitter;o.getListeners=function(t){var e,n,o=this._getEvents();if("object"==typeof t){e={};for(n in o)o.hasOwnProperty(n)&&t.test(n)&&(e[n]=o[n])}else e=o[t]||(o[t]=[]);return e},o.flattenListeners=function(t){var e,n=[];for(e=0;t.length>e;e+=1)n.push(t[e].listener);return n},o.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&(e={},e[t]=n),e||n},o.addListener=function(t,n){var o,i=this.getListenersAsObject(t),a="object"==typeof n;for(o in i)i.hasOwnProperty(o)&&-1===e(i[o],n)&&i[o].push(a?n:{listener:n,once:!1});return this},o.on=n("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=n("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,n){var o,i,a=this.getListenersAsObject(t);for(i in a)a.hasOwnProperty(i)&&(o=e(a[i],n),-1!==o&&a[i].splice(o,1));return this},o.off=n("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,n){var o,i,a=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(o=n.length;o--;)a.call(this,e,n[o]);else for(o in e)e.hasOwnProperty(o)&&(i=e[o])&&("function"==typeof i?a.call(this,o,i):s.call(this,o,i));return this},o.removeEvent=function(t){var e,n=typeof t,o=this._getEvents();if("string"===n)delete o[t];else if("object"===n)for(e in o)o.hasOwnProperty(e)&&t.test(e)&&delete o[e];else delete this._events;return this},o.removeAllListeners=n("removeEvent"),o.emitEvent=function(t,e){var n,o,i,a,s=this.getListenersAsObject(t);for(i in s)if(s.hasOwnProperty(i))for(o=s[i].length;o--;)n=s[i][o],n.once===!0&&this.removeListener(t,n.listener),a=n.listener.apply(this,e||[]),a===this._getOnceReturnValue()&&this.removeListener(t,n.listener);return this},o.trigger=n("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},o._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return i.EventEmitter=a,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 n=t.event;return n.target=n.target||n.srcElement||e,n}var n=document.documentElement,o=function(){};n.addEventListener?o=function(t,e,n){t.addEventListener(e,n,!1)}:n.attachEvent&&(o=function(t,n,o){t[n+o]=o.handleEvent?function(){var n=e(t);o.handleEvent.call(o,n)}:function(){var n=e(t);o.call(t,n)},t.attachEvent("on"+n,t[n+o])});var i=function(){};n.removeEventListener?i=function(t,e,n){t.removeEventListener(e,n,!1)}:n.detachEvent&&(i=function(t,e,n){t.detachEvent("on"+e,t[e+n]);try{delete t[e+n]}catch(o){t[e+n]=void 0}});var a={bind:o,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",a):t.eventie=a}(this),function(t,e){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,o){return e(t,n,o)}):"object"==typeof exports?module.exports=e(t,require("eventEmitter"),require("eventie")):t.imagesLoadedn=e(t,t.EventEmitter,t.eventie)}(this,function(t,e,n){function o(t,e){for(var n in e)t[n]=e[n];return t}function i(t){return"[object Array]"===p.call(t)}function a(t){var e=[];if(i(t))e=t;else if("number"==typeof t.length)for(var n=0,o=t.length;o>n;n++)e.push(t[n]);else e.push(t);return e}function s(t,e,n){if(!(this instanceof s))return new s(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=a(t),this.options=o({},this.options),"function"==typeof e?n=e:o(this.options,e),n&&this.on("always",n),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var i=this;setTimeout(function(){i.check()})}function r(t){this.img=t}function l(t){this.src=t,f[t]=this}var c=t.jQuery,d=t.console,u=void 0!==d,p=Object.prototype.toString;s.prototype=new e,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;e>t;t++){var n=this.elements[t];"IMG"===n.nodeName&&this.addImage(n);for(var o=n.querySelectorAll("img"),i=0,a=o.length;a>i;i++){var s=o[i];this.addImage(s)}}},s.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},s.prototype.check=function(){function t(t,i){return e.options.debug&&u&&d.log("confirm",t,i),e.progress(t),n++,n===o&&e.complete(),!0}var e=this,n=0,o=this.images.length;if(this.hasAnyBroken=!1,!o)return void this.complete();for(var i=0;o>i;i++){var a=this.images[i];a.on("confirm",t),a.check()}},s.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)})},s.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 n=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[n](e)}})},c&&(c.fn.imagesLoadedn=function(t,e){var n=new s(this,t,e);return n.jqDeferred.promise(c(this))}),r.prototype=new e,r.prototype.check=function(){var t=f[this.img.src]||new l(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,n){return e.confirm(t.isLoaded,n),!0}),t.check()},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var f={};return l.prototype=new e,l.prototype.check=function(){if(!this.isChecked){var t=new Image;n.bind(t,"load",this),n.bind(t,"error",this),t.src=this.src,this.isChecked=!0}},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},l.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},l.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},l.prototype.unbindProxyEvents=function(t){n.unbind(t.target,"load",this),n.unbind(t.target,"error",this)},s}),function(t){t.fn.hoverIntent=function(e,n,o){var i={interval:30,sensitivity:7,timeout:0};i="object"==typeof e?t.extend(i,e):t.isFunction(n)?t.extend(i,{over:e,out:n,selector:o}):t.extend(i,{over:e,out:e,selector:n});var a,s,r,l,c=function(t){a=t.pageX,s=t.pageY},d=function(e,n){return n.hoverIntent_t=clearTimeout(n.hoverIntent_t),Math.abs(r-a)+Math.abs(l-s)
»'),i=function(){var t=$(this),e=l(t);clearTimeout(e.sfTimer),t.showSuperfishUl().siblings().hideSuperfishUl()},a=function(t){var n=$(this),o=l(n);"click"===t.type||e.ios?$.proxy(s,n,o)():(clearTimeout(o.sfTimer),o.sfTimer=setTimeout($.proxy(s,n,o),o.delay))},s=function(t){t.retainPath=$.inArray(this[0],t.$path)>-1,this.hideSuperfishUl(),this.parents("."+t.hoverClass).length||(t.onIdle.call(r(this)),t.$path.length&&$.proxy(i,t.$path)())},r=function(t){return t.closest("."+n.menuClass)},l=function(t){return r(t).data("sf-options")},c=function(t){t.css("ms-touch-action","none")},d=function(t,n){var o="li:has(ul)";n.useClick||($.fn.hoverIntent&&!n.disableHI?t.hoverIntent(i,a,o):t.on("mouseenter",o,i).on("mouseleave",o,a));var s="MSPointerDown";e.ios||(s+=" touchstart"),e.wp7&&(s+=" mousedown"),t.on("focusin","li",i).on("focusout","li",a).on("click","a",n,p).on(s,"a",u)},u=function(t){var e=$(this),n=e.siblings("ul");return n.length>0&&n.is(":hidden")&&(e.data("follow",!1),"MSPointerDown"===t.type)?(e.trigger("focus"),!1):void 0},p=function(t){var e=$(this),n=t.data,o=e.siblings("ul"),s=e.data("follow")===!1?!1:!0;!o.length||!n.useClick&&s||(t.preventDefault(),o.is(":hidden")?$.proxy(i,e.parent("li"))():n.useClick&&s&&$.proxy(a,e.parent("li"),t)())},f=function(t,e){return t.find("li."+e.pathClass).slice(0,e.pathLevels).addClass(e.hoverClass+" "+n.bcClass).filter(function(){return $(this).children("ul").hide().show().length}).removeClass(e.pathClass)},h=function(t,e){e.autoArrows&&t.children("a").each(function(){m($(this))})},m=function(t){t.addClass(n.anchorClass).append(o.clone())};return e.getOptions=l,this.addClass(n.menuClass).each(function(){var o=$(this),i=$.extend({},e.defaults,t),a=o.find("li:has(ul)");i.$path=f(o,i),o.data("sf-options",i),h(a,i),c(o),d(o,i),a.not("."+n.bcClass).hideSuperfishUl(!0),i.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 n=this,o=t.getOptions(n),i=o.retainPath===!0?o.$path:"",a=n.find("li."+o.hoverClass).add(this).not(i).removeClass(o.hoverClass).children("ul"),s=o.speedOut;e&&(a.show(),s=0),o.retainPath=!1,o.onBeforeHide.call(a),a.stop(!0,!0).animate(o.animationOut,s,function(){o.onHide.call($(this)),o.useClick&&n.children("a").data("follow",!1)})}return this},showSuperfishUl:function(){var e=t.getOptions(this),n=this.addClass(e.hoverClass),o=n.children("ul");return e.onBeforeShow.call(o),o.stop(!0,!0).animate(e.animation,e.speed,function(){e.onShow.call(o),n.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};if(!document.getElementById("fit-vids-style")){
var n=document.createElement("div"),o=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];n.className="fit-vids-style",n.id="fit-vids-style",n.style.display="none",n.innerHTML="",o.parentNode.insertBefore(n,o)}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 n=$(this).find(t.join(","));n=n.not("object object"),n.each(function(){var t=$(this);if(!("embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)){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("id")){var i="fitvid"+Math.floor(999999*Math.random());t.attr("id",i)}t.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*o+"%"),t.removeAttr("height").removeAttr("width")}})})}}(jQuery),/*!
* 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("undefined"==typeof document.body.style.maxHeight)return this;var n={customClass:"customSelect",mapClass:!0,mapStyle:!0},e=t.extend(n,e),o=e.customClass,i=function(e,n){var o=e.find(":selected"),i=n.children(":first"),s=o.html()||" ";i.html(s),o.attr("disabled")?n.addClass(a("DisabledOption")):n.removeClass(a("DisabledOption")),setTimeout(function(){n.removeClass(a("Open")),t(document).off("mouseup."+a("Open"))},60)},a=function(t){return o+t};return this.each(function(){var n=t(this),s=t(" ").addClass(a("Inner")),r=t(" "),l=n.position();n.after(r.append(s)),r.addClass(o),e.mapClass&&r.addClass(n.attr("class")),e.mapStyle&&r.attr("style",n.attr("style")),n.addClass("hasCustomSelect").on("update",function(){i(n,r);var t=parseInt(n.outerWidth(),10)-(parseInt(r.outerWidth(),10)-parseInt(r.width(),10));r.css({display:"inline-block"});var e=r.outerHeight();n.attr("disabled")?r.addClass(a("Disabled")):r.removeClass(a("Disabled")),s.css({width:t,display:"inline-block"}),n.css({"-webkit-appearance":"menulist-button",width:r.outerWidth(),position:"absolute",opacity:0,height:e,fontSize:r.css("font-size"),left:l.left,top:l.top})}).on("change",function(){r.addClass(a("Changed")),i(n,r)}).on("keyup",function(t){r.hasClass(a("Open"))?(13==t.which||27==t.which||9==t.which)&&i(n,r):(n.blur(),n.focus())}).on("mousedown",function(t){r.removeClass(a("Changed"))}).on("mouseup",function(e){r.hasClass(a("Open"))||(t("."+a("Open")).not(r).length>0&&"undefined"!=typeof InstallTrigger?n.focus():(r.addClass(a("Open")),e.stopPropagation(),t(document).one("mouseup."+a("Open"),function(e){e.target!=n.get(0)&&t.inArray(e.target,n.find("*").get())<0?n.blur():i(n,r)})))}).focus(function(){r.removeClass(a("Changed")).addClass(a("Focus"))}).blur(function(){r.removeClass(a("Focus")+" "+a("Open"))}).hover(function(){r.addClass(a("Hover"))},function(){r.removeClass(a("Hover"))}).trigger("update")})}})}(jQuery),function($){var t=$.event,e,n;e=t.special.debouncedresize={setup:function(){$(this).on("resize",e.handler)},teardown:function(){$(this).off("resize",e.handler)},handler:function(o,i){var a=this,s=arguments,r=function(){o.type="debouncedresize",t.dispatch.apply(a,s)};n&&clearTimeout(n),i?r():n=setTimeout(r,e.threshold)},threshold:150}}(jQuery),function(t,e){function n(){O||(O={verbose:!1,queryLimit:{attempt:5,delay:250,random:250},classes:{Map:google.maps.Map,Marker:google.maps.Marker,InfoWindow:google.maps.InfoWindow,Circle:google.maps.Circle,Rectangle:google.maps.Rectangle,OverlayView:google.maps.OverlayView,StreetViewPanorama:google.maps.StreetViewPanorama,KmlLayer:google.maps.KmlLayer,TrafficLayer:google.maps.TrafficLayer,BicyclingLayer:google.maps.BicyclingLayer,GroundOverlay:google.maps.GroundOverlay,StyledMapType:google.maps.StyledMapType,ImageMapType:google.maps.ImageMapType},map:{mapTypeId:google.maps.MapTypeId.ROADMAP,center:[46.578498,2.457275],zoom:2},overlay:{pane:"floatPane",content:"",offset:{x:0,y:0}},geoloc:{getCurrentPosition:{maximumAge:6e4,timeout:5e3}}})}function o(t,n){return t!==e?t:"gmap3_"+(n?H+1:++H)}function i(t){var e=function(t){return parseInt(t,10)},n=google.maps.version.split(".").map(e),o;for(t=t.split(".").map(e),o=0;oi.maxZoom,r=u(),c,p,f,m,C=!1,E,I,S,T,D,k,M;for(v=!1,a>3&&(E=d(),C=E.getSouthWest().lng()1&&M)}else for(p=c;p=0&&(i=a[t][o],!e(s[i].tag));o--);else for(o=0;o=0||!e.length))for(var r in a.clusterer)s[a.clusterer[r]].obj.clear(n,o,i)}}function v(){return _.geocoder||(_.geocoder=new google.maps.Geocoder),_.geocoder}function b(){return _.directionsService||(_.directionsService=new google.maps.DirectionsService),_.directionsService}function y(){return _.elevationService||(_.elevationService=new google.maps.ElevationService),_.elevationService}function w(){return _.maxZoomService||(_.maxZoomService=new google.maps.MaxZoomService),_.maxZoomService}function C(){return _.distanceMatrixService||(_.distanceMatrixService=new google.maps.DistanceMatrixService),_.distanceMatrixService}function E(){if(O.verbose){var t,e=[];if(window.console&&"function"==typeof console.error){for(t=0;t=0)return!0;return!1}return t.inArray(o,n)>=0}):void 0}function T(e,n,o){var i=n?e:null;return e&&"string"!=typeof e?e.latLng?T(e.latLng):e instanceof google.maps.LatLng?e:x(e.lat)?new google.maps.LatLng(e.lat,e.lng):!o&&t.isArray(e)&&x(e[0])&&x(e[1])?new google.maps.LatLng(e[0],e[1]):i:i}function D(e){var n,o;return!e||e instanceof google.maps.LatLngBounds?e||null:(t.isArray(e)?2==e.length?(n=T(e[0]),o=T(e[1])):4==e.length&&(n=T([e[0],e[1]]),o=T([e[2],e[3]])):"ne"in e&&"sw"in e?(n=T(e.ne),o=T(e.sw)):"n"in e&&"e"in e&&"s"in e&&"w"in e&&(n=T([e.n,e.e]),o=T([e.s,e.w])),n&&o?new google.maps.LatLngBounds(o,n):null)}function L(t,e,n,o,i){var a=n?T(o.todo,!1,!0):!1,s=a?{latLng:a}:o.todo.address?"string"==typeof o.todo.address?{address:o.todo.address}:o.todo.address:!1,r=s?j.get(s):!1,l=this;s?(i=i||0,r?(o.latLng=r.results[0].geometry.location,o.results=r.results,o.status=r.status,e.apply(t,[o])):(s.location&&(s.location=T(s.location)),s.bounds&&(s.bounds=D(s.bounds)),v().geocode(s,function(a,r){r===google.maps.GeocoderStatus.OK?(j.store(s,{results:a,status:r}),o.latLng=a[0].geometry.location,o.results=a,o.status=r,e.apply(t,[o])):r===google.maps.GeocoderStatus.OVER_QUERY_LIMIT&&i=e.length?void o.apply(n,[i]):void L(s,function(n){delete n.todo,t.extend(e[r],n),a.apply(s,[])},!0,{todo:e[r]})}var s=this,r=-1;a()}function k(t,e,n){var o=!1;navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(i){o||(o=!0,n.latLng=new google.maps.LatLng(i.coords.latitude,i.coords.longitude),e.apply(t,[n]))},function(){o||(o=!0,n.latLng=!1,e.apply(t,[n]))},n.opts.getCurrentPosition):(n.latLng=!1,e.apply(t,[n]))}function M(n){function l(){!F&&(F=P.get())&&F.run()}function d(){F=null,P.ack(),l.call(L)}function u(e){if(e.todo.callback){var o=Array.prototype.slice.call(arguments,1);"function"==typeof e.todo.callback?e.todo.callback.apply(n,o):t.isArray(e.todo.callback)&&"function"==typeof e.todo.callback[1]&&e.todo.callback[1].apply(e.todo.callback[0],o)}}function f(t,e,o){o&&a(n,t,e,o),u(t,e),F.ack(e)}function v(e,o){if(o=o||{},M)o.todo&&o.todo.options&&(o.todo.options.center&&(o.todo.options.center=T(o.todo.options.center)),M.setOptions(o.todo.options));else{var i=o.opts||t.extend(!0,{},O.map,o.todo&&o.todo.options?o.todo.options:{});i.center=e||T(i.center),M=new O.classes.Map(n.get(0),i)}}function x(e,o,i){var s=[],r="values"in e.todo;return r||(e.todo.values=[{options:e.opts}]),e.todo.values.length?(v(),t.each(e.todo.values,function(r,l){var d,u,p,f,h=c(e,l);if(h.options[i])if(h.options[i][0][0]&&t.isArray(h.options[i][0][0]))for(u=0;ue}),d=s.calculator?function(e){var o=[];return t.each(e,function(t,e){o.push(i.value(e))}),s.calculator.apply(n,[o])}:function(t){return t.length},i.error(function(){E.apply(L,arguments)}),i.display(function(c){var u,p,f,h,m,g=d(c.indexes);if(o.force||g>1)for(u=0;ue.todo.maxZoom&&this.setZoom(e.todo.maxZoom)}),M.fitBounds(n)),f(e,!0)},this.clear=function(e){if("string"==typeof e.todo){if(k.clearById(e.todo)||k.objClearById(e.todo))return void f(e,!0);e.todo={name:e.todo}}e.todo.id?t.each(I(e.todo.id),function(t,e){k.clearById(e)||k.objClearById(e)}):(k.clear(I(e.todo.name),e.todo.last,e.todo.first,e.todo.tag),k.objClear(I(e.todo.name),e.todo.last,e.todo.first,e.todo.tag)),f(e,!0)},this.exec=function(e){var o=this;t.each(I(e.todo.func),function(i,a){t.each(o.get(e.todo,!0,e.todo.hasOwnProperty("full")?e.todo.full:!0),function(t,e){a.call(n,e)})}),f(e,!0)},this.get=function(n,o,i){var a,s,r=o?n:n.todo;return o||(i=r.full),"string"==typeof r?(s=k.getById(r,!1,i)||k.objGetById(r),s===!1&&(a=r,r={})):a=r.name,"map"===a&&(s=M),s||(s=[],r.id?(t.each(I(r.id),function(t,e){s.push(k.getById(e,!1,i)||k.objGetById(e))}),t.isArray(r.id)||(s=s[0])):(t.each(a?I(a):[e],function(e,n){var o;r.first?(o=k.get(n,!1,r.tag,i),o&&s.push(o)):r.all?t.each(k.all(n,r.tag,i),function(t,e){s.push(e)}):(o=k.get(n,!0,r.tag,i),o&&s.push(o))}),r.all||t.isArray(a)||(s=s[0]))),s=t.isArray(s)||!r.all?s:[s],o?s:void f(n,s)},this.getdistance=function(t){var e;for(t.opts.origins=I(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,n=t.scrollTop()+t.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:e+"px",top:n+"px"})},togglecontrol:function(){var t=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed(),this.state.shouldvisible=t>=this.setting.startline?!0:!1,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=$('