$(function(){new Helpers;Modernizr.svg||new SVGFallback,new FeatureImage,new FeatureVideoPanel,new WayPoints,new Menu,new SubMenuDesktop,new SubMenuMobile,new Truncator,new Article;var e=function(){$("body").removeClass("not-loaded"),$("#preloader").remove()};e(),setTimeout(e,3e3)});var redirectToValue=function(e){var n=$(e).val();n&&(location.href=n)}; !function(t,i,e){"use strict";t.fn.backstretch=function(n,r){return(n===e||0===n.length)&&t.error("No images were supplied for Backstretch"),0===t(i).scrollTop()&&i.scrollTo(0,0),this.each(function(){var i=t(this),e=i.data("backstretch");if(e){if("string"==typeof n&&"function"==typeof e[n])return void e[n](r);r=t.extend(e.options,r),e.destroy(!0)}e=new s(this,n,r),i.data("backstretch",e)})},t.backstretch=function(i,e){return t("body").backstretch(i,e).data("backstretch")},t.expr[":"].backstretch=function(i){return t(i).data("backstretch")!==e},t.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5e3,fade:0};var n={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},img:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxHeight:"none",maxWidth:"none",zIndex:-999999}},s=function(e,s,a){this.options=t.extend({},t.fn.backstretch.defaults,a||{}),this.images=t.isArray(s)?s:[s],t.each(this.images,function(){t("")[0].src=this}),this.isBody=e===document.body,this.$container=t(e),this.$root=this.isBody?t(r?i:document):this.$container;var o=this.$container.children(".backstretch").first();if(this.$wrap=o.length?o:t('
').css(n.wrap).appendTo(this.$container),!this.isBody){var h=this.$container.css("position"),c=this.$container.css("zIndex");this.$container.css({position:"static"===h?"relative":h,zIndex:"auto"===c?0:c,background:"none"}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&r?"fixed":"absolute"}),this.index=0,this.show(this.index),t(i).on("resize.backstretch",t.proxy(this.resize,this)).on("orientationchange.backstretch",t.proxy(function(){this.isBody&&0===i.pageYOffset&&(i.scrollTo(0,1),this.resize())},this))};s.prototype={resize:function(){try{var t,e={left:0,top:0},n=this.isBody?this.$root.width():this.$root.innerWidth(),s=n,r=this.isBody?i.innerHeight?i.innerHeight:this.$root.height():this.$root.innerHeight(),a=s/this.$img.data("ratio");a>=r?(t=(a-r)/2,this.options.centeredY&&(e.top="-"+t+"px")):(a=r,s=a*this.$img.data("ratio"),t=(s-n)/2,this.options.centeredX&&(e.left="-"+t+"px")),this.$wrap.css({width:n,height:r}).find("img:not(.deleteable)").css({width:s,height:a}).css(e)}catch(o){}return this},show:function(i){if(!(Math.abs(i)>this.images.length-1)){var e=this,s=e.$wrap.find("img").addClass("deleteable"),r={relatedTarget:e.$container[0]};return e.$container.trigger(t.Event("backstretch.before",r),[e,i]),this.index=i,clearInterval(e.interval),e.$img=t("").css(n.img).bind("load",function(n){var a=this.width||t(n.target).width(),o=this.height||t(n.target).height();t(this).data("ratio",a/o),t(this).fadeIn(e.options.speed||e.options.fade,function(){s.remove(),e.paused||e.cycle(),t(["after","show"]).each(function(){e.$container.trigger(t.Event("backstretch."+this,r),[e,i])})}),e.resize()}).appendTo(e.$wrap),e.$img.attr("src",e.images[i]),e}},next:function(){return this.show(this.index1&&(clearInterval(this.interval),this.interval=setInterval(t.proxy(function(){this.paused||this.next()},this),this.options.duration)),this},destroy:function(e){t(i).off("resize.backstretch orientationchange.backstretch"),clearInterval(this.interval),e||this.$wrap.remove(),this.$container.removeData("backstretch")}};var r=function(){var t=navigator.userAgent,e=navigator.platform,n=t.match(/AppleWebKit\/([0-9]+)/),s=!!n&&n[1],r=t.match(/Fennec\/([0-9]+)/),a=!!r&&r[1],o=t.match(/Opera Mobi\/([0-9]+)/),h=!!o&&o[1],c=t.match(/MSIE ([0-9]+)/),d=!!c&&c[1];return!((e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1||e.indexOf("iPod")>-1)&&s&&534>s||i.operamini&&"[object OperaMini]"==={}.toString.call(i.operamini)||o&&7458>h||t.indexOf("Android")>-1&&s&&533>s||a&&6>a||"palmGetResource"in i&&s&&534>s||t.indexOf("MeeGo")>-1&&t.indexOf("NokiaBrowser/8.5.0")>-1||d&&6>=d)}()}(jQuery,window); !function(t,e){function n(t,e,n){var r=t.children(),o=!1;t.empty();for(var i=0,d=r.length;d>i;i++){var l=r.eq(i);if(t.append(l),n&&t.append(n),a(t,e)){l.remove(),o=!0;break}n&&n.detach()}return o}function r(e,n,i,d,l){var s=!1,c="table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",u="script";return e.contents().detach().each(function(){var f=this,h=t(f);if("undefined"==typeof f||3==f.nodeType&&0==t.trim(f.data).length)return!0;if(h.is(u))e.append(h);else{if(s)return!0;e.append(h),l&&e[e.is(c)?"after":"append"](l),a(i,d)&&(s=3==f.nodeType?o(h,n,i,d,l):r(h,n,i,d,l),s||(h.detach(),s=!0)),s||l&&l.detach()}}),s}function o(e,n,r,o,d){var c=e[0];if(!c)return!1;var f=s(c),h=-1!==f.indexOf(" ")?" ":" ",p="letter"==o.wrap?"":h,g=f.split(p),v=-1,w=-1,b=0,y=g.length-1;for(o.fallbackToLetter&&0==b&&0==y&&(p="",g=f.split(p),y=g.length-1);y>=b&&(0!=b||0!=y);){var m=Math.floor((b+y)/2);if(m==w)break;w=m,l(c,g.slice(0,w+1).join(p)+o.ellipsis),a(r,o)?(y=w,o.fallbackToLetter&&0==b&&0==y&&(p="",g=g[0].split(p),v=-1,w=-1,b=0,y=g.length-1)):(v=w,b=w)}if(-1==v||1==g.length&&0==g[0].length){var x=e.parent();e.detach();var T=d&&d.closest(x).length?d.length:0;x.contents().length>T?c=u(x.contents().eq(-1-T),n):(c=u(x,n,!0),T||x.detach()),c&&(f=i(s(c),o),l(c,f),T&&d&&t(c).parent().append(d))}else f=i(g.slice(0,v+1).join(p),o),l(c,f);return!0}function a(t,e){return t.innerHeight()>e.maxHeight}function i(e,n){for(;t.inArray(e.slice(-1),n.lastCharacter.remove)>-1;)e=e.slice(0,-1);return t.inArray(e.slice(-1),n.lastCharacter.noEllipsis)<0&&(e+=n.ellipsis),e}function d(t){return{width:t.innerWidth(),height:t.innerHeight()}}function l(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function s(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function c(t){do t=t.previousSibling;while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function u(e,n,r){var o,a=e&&e[0];if(a){if(!r){if(3===a.nodeType)return a;if(t.trim(e.text()))return u(e.contents().last(),n)}for(o=c(a);!o;){if(e=e.parent(),e.is(n)||!e.length)return!1;o=c(e[0])}if(o)return u(t(o),n)}return!1}function f(e,n){return e?"string"==typeof e?(e=t(e,n),e.length?e:!1):e.jquery?e:!1:!1}function h(t){for(var e=t.innerHeight(),n=["paddingTop","paddingBottom"],r=0,o=n.length;o>r;r++){var a=parseInt(t.css(n[r]),10);isNaN(a)&&(a=0),e-=a}return e}if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){t(this).dotdotdot(e)});var o=this;o.data("dotdotdot")&&o.trigger("destroy.dot"),o.data("dotdotdot-style",o.attr("style")||""),o.css("word-wrap","break-word"),"nowrap"===o.css("white-space")&&o.css("white-space","normal"),o.bind_events=function(){return o.bind("update.dot",function(e,d){e.preventDefault(),e.stopPropagation(),l.maxHeight="number"==typeof l.height?l.height:h(o),l.maxHeight+=l.tolerance,"undefined"!=typeof d&&(("string"==typeof d||d instanceof HTMLElement)&&(d=t("
").append(d).contents()),d instanceof t&&(i=d)),g=o.wrapInner('
').children(),g.contents().detach().end().append(i.clone(!0)).find("br").replaceWith("
").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var c=!1,u=!1;return s.afterElement&&(c=s.afterElement.clone(!0),c.show(),s.afterElement.detach()),a(g,l)&&(u="children"==l.wrap?n(g,l,c):r(g,o,g,l,c)),g.replaceWith(g.contents()),g=null,t.isFunction(l.callback)&&l.callback.call(o[0],u,i),s.isTruncated=u,u}).bind("isTruncated.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(o[0],s.isTruncated),s.isTruncated}).bind("originalContent.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(o[0],i),i}).bind("destroy.dot",function(t){t.preventDefault(),t.stopPropagation(),o.unwatch().unbind_events().contents().detach().end().append(i).attr("style",o.data("dotdotdot-style")||"").data("dotdotdot",!1)}),o},o.unbind_events=function(){return o.unbind(".dot"),o},o.watch=function(){if(o.unwatch(),"window"==l.watch){var e=t(window),n=e.width(),r=e.height();e.bind("resize.dot"+s.dotId,function(){n==e.width()&&r==e.height()&&l.windowResizeFix||(n=e.width(),r=e.height(),u&&clearInterval(u),u=setTimeout(function(){o.trigger("update.dot")},100))})}else c=d(o),u=setInterval(function(){if(o.is(":visible")){var t=d(o);(c.width!=t.width||c.height!=t.height)&&(o.trigger("update.dot"),c=t)}},500);return o},o.unwatch=function(){return t(window).unbind("resize.dot"+s.dotId),u&&clearInterval(u),o};var i=o.contents(),l=t.extend(!0,{},t.fn.dotdotdot.defaults,e),s={},c={},u=null,g=null;return l.lastCharacter.remove instanceof Array||(l.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),l.lastCharacter.noEllipsis instanceof Array||(l.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),s.afterElement=f(l.after,o),s.isTruncated=!1,s.dotId=p++,o.data("dotdotdot",!0).bind_events().trigger("update.dot"),l.watch&&o.watch(),o},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" "," ",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(){};var p=1,g=t.fn.html;t.fn.html=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?this.trigger("update",[n]):g.apply(this,arguments)};var v=t.fn.text;t.fn.text=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?(n=t("
").text(n).html(),this.trigger("update",[n])):v.apply(this,arguments)}}}(jQuery); !function(e){function t(){this.isField=!0,this.down=!1,this.inFocus=!1,this.disabled=!1,this.cutOff=!1,this.hasLabel=!1,this.keyboardMode=!1,this.nativeTouch=!0,this.wrapperClass="dropdown",this.onChange=null}t.prototype={constructor:t,instances:{},init:function(t,o){var n=this;e.extend(n,o),n.$select=e(t),n.id=t.id,n.options=[],n.$options=n.$select.find("option"),n.isTouch="ontouchend"in document,n.$select.removeClass(n.wrapperClass+" dropdown"),n.$select.is(":disabled")&&(n.disabled=!0),n.$options.length&&(n.$options.each(function(t){var o=e(this);o.is(":selected")&&(n.selected={index:t,title:o.text()},n.focusIndex=t),o.hasClass("label")&&0==t?(n.hasLabel=!0,n.label=o.text(),o.attr("value","")):n.options.push({domNode:o[0],title:o.text(),value:o.val(),selected:o.is(":selected")})}),n.selected||(n.selected={index:0,title:n.$options.eq(0).text()},n.focusIndex=0),n.render())},render:function(){var t=this,o=t.isTouch&&t.nativeTouch?" touch":"",n=t.disabled?" disabled":"";t.$container=t.$select.wrap('
').parent().parent(),t.$active=e(''+t.selected.title+"").appendTo(t.$container),t.$carat=e('').appendTo(t.$container),t.$scrollWrapper=e("
    ").appendTo(t.$container),t.$dropDown=t.$scrollWrapper.find("ul"),t.$form=t.$container.closest("form"),e.each(t.options,function(){var e=this,o=e.selected?' class="active"':"";t.$dropDown.append(""+e.title+"")}),t.$items=t.$dropDown.find("li"),t.cutOff&&t.$items.length>t.cutOff&&t.$container.addClass("scrollable"),t.getMaxHeight(),t.isTouch&&t.nativeTouch?t.bindTouchHandlers():t.bindHandlers()},getMaxHeight:function(){var e=this;for(e.maxHeight=0,i=0;it.$items.length-1?0:t.focusIndex),t.down||t.open(),t.$items.removeClass("focus").eq(t.focusIndex).addClass("focus"),t.cutOff&&t.scrollToView(),t.query=""),t.down)if(9==o||27==o)t.close();else{if(13==o)return e.preventDefault(),t.select(t.focusIndex),t.close(),!1;if(8==o)return e.preventDefault(),t.query=t.query.slice(0,-1),t.search(),clearTimeout(t.resetQuery),!1;if(38!=o&&40!=o){var n=String.fromCharCode(o);t.query+=n,t.search(),clearTimeout(t.resetQuery)}}}},"keyup.easyDropDown":function(){t.resetQuery=setTimeout(function(){t.query=""},1200)}}),t.$dropDown.on("scroll.easyDropDown",function(){t.$dropDown[0].scrollTop>=t.$dropDown[0].scrollHeight-t.maxHeight?t.$container.addClass("bottom"):t.$container.removeClass("bottom")}),t.$form.length&&t.$form.on("reset.easyDropDown",function(){var e=t.hasLabel?t.label:t.options[0].title;t.$active.text(e)})},unbindHandlers:function(){var t=this;t.$container.add(t.$select).add(t.$items).add(t.$form).add(t.$dropDown).off(".easyDropDown"),e("body").off("."+t.id)},open:function(){var e=this,t=window.scrollY||document.documentElement.scrollTop,o=window.scrollX||document.documentElement.scrollLeft,n=e.notInViewport(t);e.closeAll(),e.getMaxHeight(),e.$select.focus(),window.scrollTo(o,t+n),e.$container.addClass("open"),e.$scrollWrapper.css("height",e.maxHeight+"px"),e.down=!0},close:function(){var e=this;e.$container.removeClass("open"),e.$scrollWrapper.css("height","0px"),e.focusIndex=e.selected.index,e.query="",e.down=!1},closeAll:function(){var e=this,t=Object.getPrototypeOf(e).instances;for(var o in t){var n=t[o];n.close()}},select:function(e){var t=this;"string"==typeof e&&(e=t.$select.find("option[value="+e+"]").index()-1);var o=t.options[e],n=t.hasLabel?e+1:e;t.$items.removeClass("active").eq(e).addClass("active"),t.$active.text(o.title),t.$select.find("option").removeAttr("selected").eq(n).prop("selected",!0).parent().trigger("change"),t.selected={index:e,title:o.title},t.focusIndex=i,"function"==typeof t.onChange&&t.onChange.call(t.$select[0],{title:o.title,value:o.value})},search:function(){var e=this,t=function(t){e.focusIndex=t,e.$items.removeClass("focus").eq(e.focusIndex).addClass("focus"),e.scrollToView()},o=function(t){return e.options[t].title.toUpperCase()};for(i=0;i-1){t(i);break}}},scrollToView:function(){var e=this;if(e.focusIndex>=e.cutOff){var t=e.$items.eq(e.focusIndex),o=t.outerHeight()*(e.focusIndex+1)-e.maxHeight;e.$dropDown.scrollTop(o)}},notInViewport:function(e){var t=this,o={min:e,max:e+(window.innerHeight||document.documentElement.clientHeight)},n=t.$dropDown.offset().top+t.maxHeight;return n>=o.min&&n<=o.max?0:n-o.max+5},destroy:function(){var e=this;e.unbindHandlers(),e.$select.unwrap().siblings().remove(),e.$select.unwrap(),delete Object.getPrototypeOf(e).instances[e.$select[0].id]},disable:function(){var e=this;e.disabled=!0,e.$container.addClass("disabled"),e.$select.attr("disabled",!0),e.down||e.close()},enable:function(){var e=this;e.disabled=!1,e.$container.removeClass("disabled"),e.$select.attr("disabled",!1)}};var o=function(e,o){e.id=e.id?e.id:"EasyDropDown"+n();var s=new t;s.instances[e.id]||(s.instances[e.id]=s,s.init(e,o))},n=function(){return("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase()};e.fn.easyDropDown=function(){var e,n=arguments,s=[];return e=this.each(function(){if(n&&"string"==typeof n[0]){var e=t.prototype.instances[this.id][n[0]](n[1],n[2]);e&&s.push(e)}else o(this,n[0])}),s.length?s.length>1?s:s[0]:e},e(function(){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype}),e("select.dropdown").each(function(){var t=e(this).attr("data-settings");settings=t?e.parseJSON(t):{},o(this,settings)})})}(jQuery); !function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null};if(!document.getElementById("fit-vids-style")){var r=document.createElement("div"),a=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0],o="­";r.className="fit-vids-style",r.id="fit-vids-style",r.style.display="none",r.innerHTML=o,a.parentNode.insertBefore(r,a)}return e&&t.extend(i,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];i.customSelector&&e.push(i.customSelector);var r=t(this).find(e.join(","));r=r.not("object object"),r.each(function(){var e=t(this);if(!("embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),r=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),a=i/r;if(!e.attr("id")){var o="fitvid"+Math.floor(999999*Math.random());e.attr("id",o)}e.wrap('
    ').parent(".fluid-width-video-wrapper").css("padding-top",100*a+"%"),e.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto); !function(i){i.fn.visible=function(t){var n=i(this),o=i(window),e=o.scrollTop(),f=e+o.height(),h=n.offset().top,r=h+n.height(),s=t===!0?r:h,u=t===!0?h:r;return f>=u&&s>=e}}(jQuery); !function(t,o,i){"use strict";var s,n,e;s={activateCurrent:function(t){this.html_element.find("select").val(t)},getHtml:function(){var o,i,s=this,n="";if(this.ln>1){for(n+='",n=t(n).bind("change",function(){s.ViewOnMap(this.value)})}return o=this.o.controls_title,this.o.controls_title&&(o=t('
    ').css(this.o.controls_applycss?{fontWeight:"bold",fontSize:this.o.controls_on_map?"12px":"inherit",padding:"3px 10px 5px 0"}:{}).append(this.o.controls_title)),this.html_element=t('
    ').append(o).append(n),this.html_element}},n={html_a:function(o,i,s){var n=this,e=i||o+1,a=s||this.o.locations[o].title,r=t(''+(a||"#"+(o+1))+"");return r.css(this.o.controls_applycss?{color:"#666",display:"block",padding:"5px",fontSize:this.o.controls_on_map?"12px":"inherit",textDecoration:"none"}:{}),r.on("click",function(o){o.preventDefault();var i=t(this).attr("data-load");n.ViewOnMap(i)}),r},activateCurrent:function(t){this.html_element.find("li").removeClass("active"),this.html_element.find("#ullist_a_"+t).parent().addClass("active")},getHtml:function(){var o,i,s=t("
      ").css(this.o.controls_applycss?{margin:0,padding:0,listStyleType:"none"}:{});for(this.ShowOnMenu(this.view_all_key)&&s.append(t("
    • ").append(n.html_a.call(this,!1,this.view_all_key,this.o.view_all_text))),i=0;i").append(n.html_a.call(this,i)));return o=this.o.controls_title,this.o.controls_title&&(o=t('
      ').css(this.o.controls_applycss?{fontWeight:"bold",padding:"3px 10px 5px 0",fontSize:this.o.controls_on_map?"12px":"inherit"}:{}).append(this.o.controls_title)),this.html_element=t('
      ').append(o).append(s),this.html_element}},e=function(){function o(o){this.VERSION="0.1.2",this.errors=[],this.loaded=!1,this.dev=!0,this.markers=[],this.oMap=!1,this.view_all_key="all",this.infowindow=null,this.ln=0,this.oMap=!1,this.oBounds=null,this.map_div=null,this.canvas_map=null,this.controls_wrapper=null,this.current_control=null,this.current_index=null,this.Polyline=null,this.Polygon=null,this.Fusion=null,this.directionsService=null,this.directionsDisplay=null,this.o={map_div:"#gmap",controls_div:"#controls",generate_controls:!0,controls_type:"dropdown",controls_cssclass:"",controls_title:"",controls_on_map:!0,controls_applycss:!0,controls_position:i.maps.ControlPosition.RIGHT_TOP,type:"marker",view_all:!0,view_all_text:"View All",start:0,locations:[],commons:{},map_options:{mapTypeId:i.maps.MapTypeId.ROADMAP,zoom:1},stroke_options:{strokeColor:"#0000FF",strokeOpacity:.8,strokeWeight:2,fillColor:"#0000FF",fillOpacity:.4},directions_options:{travelMode:i.maps.TravelMode.DRIVING,unitSystem:i.maps.UnitSystem.METRIC,optimizeWaypoints:!1,provideRouteAlternatives:!1,avoidHighways:!1,avoidTolls:!1},styles:{},fusion_options:{},directions_panel:null,draggable:!1,show_infowindows:!0,show_markers:!0,infowindow_type:"bubble",listeners:{},beforeViewAll:function(){},afterViewAll:function(){},beforeShow:function(){},afterShow:function(){},afterCreateMarker:function(){},beforeCloseInfowindow:function(){},afterCloseInfowindow:function(){},beforeOpenInfowindow:function(){},afterOpenInfowindow:function(){},afterRoute:function(){},onPolylineClick:function(){}},this.AddControl("dropdown",s),this.AddControl("list",n),t.extend(!0,this.o,o)}return o.prototype.controls={},o.prototype.create_objMap=function(){var o,s=this,n=0;for(o in this.o.styles)this.o.styles.hasOwnProperty(o)&&(0===n&&(this.o.map_options.mapTypeControlOptions={mapTypeIds:[i.maps.MapTypeId.ROADMAP]}),n++,this.o.map_options.mapTypeControlOptions.mapTypeIds.push("map_style_"+n));if(this.loaded)s.oMap.setOptions(this.o.map_options);else try{this.map_div.css({position:"relative",overflow:"hidden"}),this.canvas_map=t("
      ").addClass("canvas_map").css({width:"100%",height:"100%"}).appendTo(this.map_div),this.oMap=new i.maps.Map(this.canvas_map.get(0),this.o.map_options)}catch(e){this.errors.push(e.toString())}n=0;for(o in this.o.styles)this.o.styles.hasOwnProperty(o)&&(n++,this.oMap.mapTypes.set("map_style_"+n,new i.maps.StyledMapType(this.o.styles[o],{name:o})),this.oMap.setMapTypeId("map_style_"+n));this.debug("01")},o.prototype.add_markers_to_objMap=function(){var t,o=this.o.type||"marker";switch(o){case"marker":for(t=0;to;o++)i+=s.legs[o].distance.value;return i},o.prototype.type_to_open={bubble:function(t){this.infowindow=new i.maps.InfoWindow({content:t.html||""})}},o.prototype.open_infowindow=function(t,o){this.CloseInfoWindow();var i=this.o.locations[t],s=i.type||this.o.infowindow_type;i.html&&this.type_to_open[s]&&(this.o.beforeOpenInfowindow(t,i,o),this.type_to_open[s].call(this,i),this.infowindow.open(this.oMap,o),this.o.afterOpenInfowindow(t,i,o))},o.prototype.get_html_controls=function(){return this.controls[this.o.controls_type]&&this.controls[this.o.controls_type].getHtml?(this.current_control=this.controls[this.o.controls_type],this.current_control.getHtml.apply(this)):""},o.prototype.generate_controls=function(){if(!this.o.controls_on_map)return this.controls_wrapper.empty(),void this.controls_wrapper.append(this.get_html_controls());var o=t('
      ').css(this.o.controls_applycss?{margin:"5px"}:{}),i=t(this.get_html_controls()).css(this.o.controls_applycss?{background:"#fff",padding:"5px",border:"1px solid rgb(113,123,135)",boxShadow:"rgba(0, 0, 0, 0.4) 0px 2px 4px",maxHeight:this.map_div.find(".canvas_map").outerHeight()-80,minWidth:100,overflowY:"auto",overflowX:"hidden"}:{});o.append(i),this.oMap.controls[this.o.controls_position].push(o.get(0))},o.prototype.init_map=function(){var t=this,o=0;if(this.Polyline&&this.Polyline.setMap(null),this.Polygon&&this.Polygon.setMap(null),this.Fusion&&this.Fusion.setMap(null),this.directionsDisplay&&this.directionsDisplay.setMap(null),this.markers){for(o in this.markers)if(this.markers[o])try{this.markers[o].setMap(null)}catch(s){t.errors.push(s)}this.markers.length=0,this.markers=[]}this.o.controls_on_map&&this.oMap.controls&&this.oMap.controls[this.o.controls_position].forEach(function(o,i){try{t.oMap.controls[this.o.controls_position].removeAt(i)}catch(s){t.errors.push(s)}}),this.oBounds=new i.maps.LatLngBounds,this.debug("02")},o.prototype.perform_load=function(){1===this.ln?(this.oMap.setCenter(this.markers[0].getPosition()),this.ViewOnMap(1)):0===this.ln?(this.o.map_options.set_center?this.oMap.setCenter(new i.maps.LatLng(this.o.map_options.set_center[0],this.o.map_options.set_center[1])):this.oMap.fitBounds(this.oBounds),this.oMap.setZoom(this.o.map_options.zoom)):(this.oMap.fitBounds(this.oBounds),this.ViewOnMap("number"==typeof(this.o.start-0)&&this.o.start>0&&this.o.start<=this.ln?this.o.start:this.view_all_key))},o.prototype.debug=function(t){this.dev&&this.errors.length&&console.log(t+": ",this.errors)},o.prototype.AddControl=function(t,o){return t&&o?(this.controls[t]=o,!0):!1},o.prototype.CloseInfoWindow=function(){this.infowindow&&(this.current_index||0===this.current_index)&&(this.o.beforeCloseInfowindow(this.current_index,this.o.locations[this.current_index]),this.infowindow.close(),this.infowindow=null,this.o.afterCloseInfowindow(this.current_index,this.o.locations[this.current_index]))},o.prototype.ShowOnMenu=function(t){if(t===this.view_all_key&&this.o.view_all&&this.ln>1)return!0;if(t=parseInt(t,10),"number"==typeof(t-0)&&t>=0&&t0&&this.o.generate_controls&&this.current_control&&this.current_control.activateCurrent&&this.current_control.activateCurrent.apply(this,[t]),this.oMap.fitBounds(this.oBounds),this.CloseInfoWindow(),this.o.afterViewAll();else if(t=parseInt(t,10),"number"==typeof(t-0)&&t>0&&t<=this.ln)try{i.maps.event.trigger(this.markers[t-1],"click")}catch(o){this.errors.push(o.toString())}this.debug("03")},o.prototype.SetLocations=function(t,o){this.o.locations=t,o&&this.Load()},o.prototype.AddLocations=function(o,i){var s=this;t.isArray(o)&&t.each(o,function(t,o){s.o.locations.push(o)}),t.isPlainObject(o)&&this.o.locations.push(o),i&&this.Load()},o.prototype.AddLocation=function(o,i,s){t.isPlainObject(o)&&this.o.locations.splice(i,0,o),s&&this.Load()},o.prototype.RemoveLocations=function(o,i){var s=this,n=0;t.isArray(o)?t.each(o,function(t,o){o-n1&&this.o.generate_controls||this.o.force_generate_controls?(this.o.generate_controls=!0,this.generate_controls()):this.o.generate_controls=!1;var s=this;if(this.loaded)this.perform_load();else{i.maps.event.addListenerOnce(this.oMap,"idle",function(){s.perform_load()}),i.maps.event.addListener(this.oMap,"resize",function(){s.canvas_map.css({width:s.map_div.width(),height:s.map_div.height()})});var n;for(n in this.o.listeners){var e=this.oMap,a=this.o.listeners[n];this.o.listeners.hasOwnProperty(n)&&i.maps.event.addListener(this.oMap,n,function(t){a(e,t)})}}this.loaded=!0},o}(),"function"==typeof define&&define.amd?define(function(){return e}):o.Maplace=e}(jQuery,this,google); window.Modernizr=function(e,t,n){function r(e){y.cssText=e}function o(e,t){return typeof e===t}function a(e,t){return!!~(""+e).indexOf(t)}function i(e,t){for(var r in e){var o=e[r];if(!a(o,"-")&&y[o]!==n)return"pfx"==t?o:!0}return!1}function c(e,t,r){for(var a in e){var i=t[e[a]];if(i!==n)return r===!1?e[a]:o(i,"function")?i.bind(r||t):i}return!1}function s(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+C.join(r+" ")+r).split(" ");return o(t,"string")||o(t,"undefined")?i(a,t):(a=(e+" "+S.join(r+" ")+r).split(" "),c(a,t,n))}function u(){m.input=function(n){for(var r=0,o=n.length;o>r;r++)N[n[r]]=n[r]in b;return N.list&&(N.list=!!t.createElement("datalist")&&!!e.HTMLDataListElement),N}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "))}var l,f,d="2.8.2",m={},p=!0,h=t.documentElement,g="modernizr",v=t.createElement(g),y=v.style,b=t.createElement("input"),E=({}.toString," -webkit- -moz- -o- -ms- ".split(" ")),w="Webkit Moz O ms",C=w.split(" "),S=w.toLowerCase().split(" "),F={svg:"http://www.w3.org/2000/svg"},k={},N={},j=[],x=j.slice,M={}.hasOwnProperty;f=o(M,"undefined")||o(M.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(e,t){return M.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=x.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=t.prototype;var a=new o,i=t.apply(a,n.concat(x.call(arguments)));return Object(i)===i?i:a}return t.apply(e,n.concat(x.call(arguments)))};return r}),k.rgba=function(){return r("background-color:rgba(150,255,150,.5)"),a(y.backgroundColor,"rgba")},k.cssgradients=function(){var e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";return r((e+"-webkit- ".split(" ").join(t+e)+E.join(n+e)).slice(0,-e.length)),a(y.backgroundImage,"gradient")},k.csstransitions=function(){return s("transition")},k.svg=function(){return!!t.createElementNS&&!!t.createElementNS(F.svg,"svg").createSVGRect};for(var D in k)f(k,D)&&(l=D.toLowerCase(),m[l]=k[D](),j.push((m[l]?"":"no-")+l));return m.input||u(),m.addTest=function(e,t){if("object"==typeof e)for(var r in e)f(e,r)&&m.addTest(r,e[r]);else{if(e=e.toLowerCase(),m[e]!==n)return m;t="function"==typeof t?t():t,"undefined"!=typeof p&&p&&(h.className+=" "+(t?"":"no-")+e),m[e]=t}return m},r(""),v=b=null,function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=y.elements;return"string"==typeof e?e.split(" "):e}function o(e){var t=v[e[h]];return t||(t={},g++,e[h]=g,v[g]=t),t}function a(e,n,r){if(n||(n=t),l)return n.createElement(e);r||(r=o(n));var a;return a=r.cache[e]?r.cache[e].cloneNode():p.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!a.canHaveChildren||m.test(e)||a.tagUrn?a:r.frag.appendChild(a)}function i(e,n){if(e||(e=t),l)return e.createDocumentFragment();n=n||o(e);for(var a=n.frag.cloneNode(),i=0,c=r(),s=c.length;s>i;i++)a.createElement(c[i]);return a}function c(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return y.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(y,t.frag)}function s(e){e||(e=t);var r=o(e);return y.shivCSS&&!u&&!r.hasCSS&&(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||c(e,r),e}var u,l,f="3.7.0",d=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,h="_html5shiv",g=0,v={};!function(){try{var e=t.createElement("a");e.innerHTML="",u="hidden"in e,l=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){u=!0,l=!0}}();var y={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:f,shivCSS:d.shivCSS!==!1,supportsUnknownElements:l,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:s,createElement:a,createDocumentFragment:i};e.html5=y,s(t)}(this,t),m._version=d,m._prefixes=E,m._domPrefixes=S,m._cssomPrefixes=C,m.testProp=function(e){return i([e])},m.testAllProps=s,h.className=h.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(p?" js "+j.join(" "):""),m}(this,this.document); !function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};e=function(){function e(e,s){var o,n,l=this;if(l.defaults={accessibility:!0,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(i,e){return'"},dots:!1,draggable:!0,easing:"linear",fade:!1,infinite:!0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,pauseOnHover:!0,responsive:null,slide:"div",slidesToShow:1,slidesToScroll:1,speed:300,swipe:!0,touchMove:!0,touchThreshold:5,useCSS:!0,vertical:!1},l.initials={animating:!1,autoPlayTimer:null,currentSlide:0,currentLeft:null,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},i.extend(l,l.initials),l.activeBreakpoint=null,l.animType=null,l.animProp=null,l.breakpoints=[],l.breakpointSettings=[],l.cssTransitions=!1,l.paused=!1,l.positionProp=null,l.$slider=i(e),l.$slidesCache=null,l.transformType=null,l.transitionType=null,l.windowWidth=0,l.windowTimer=null,l.options=i.extend({},l.defaults,s),l.originalSettings=l.options,o=l.options.responsive||null,o&&o.length>-1){for(n in o)o.hasOwnProperty(n)&&(l.breakpoints.push(o[n].breakpoint),l.breakpointSettings[o[n].breakpoint]=o[n].settings);l.breakpoints.sort(function(i,e){return e-i})}l.autoPlay=i.proxy(l.autoPlay,l),l.autoPlayClear=i.proxy(l.autoPlayClear,l),l.changeSlide=i.proxy(l.changeSlide,l),l.setPosition=i.proxy(l.setPosition,l),l.swipeHandler=i.proxy(l.swipeHandler,l),l.dragHandler=i.proxy(l.dragHandler,l),l.keyHandler=i.proxy(l.keyHandler,l),l.autoPlayIterator=i.proxy(l.autoPlayIterator,l),l.instanceUid=t++,l.init()}var t=0;return e}(),e.prototype.addSlide=function(e,t,s){var o=this;if("boolean"==typeof t)s=t,t=null;else if(0>t||t>=o.slideCount)return!1;o.unload(),"number"==typeof t?0===t&&0===o.$slides.length?i(e).appendTo(o.$slideTrack):s?i(e).insertBefore(o.$slides.eq(t)):i(e).insertAfter(o.$slides.eq(t)):s===!0?i(e).prependTo(o.$slideTrack):i(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).remove(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.animateSlide=function(e,t){var s={},o=this;o.transformsEnabled===!1?o.options.vertical===!1?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,t):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,t):o.cssTransitions===!1?i({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(i){o.options.vertical===!1?(s[o.animType]="translate("+i+"px, 0px)",o.$slideTrack.css(s)):(s[o.animType]="translate(0px,"+i+"px)",o.$slideTrack.css(s))},complete:function(){t&&t.call()}}):(o.applyTransition(),s[o.animType]=o.options.vertical===!1?"translate3d("+e+"px, 0px, 0px)":"translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(s),t&&setTimeout(function(){o.disableTransition(),t.call()},o.options.speed))},e.prototype.applyTransition=function(i){var e=this,t={};t[e.transitionType]=e.options.fade===!1?e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:"opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer),i.slideCount>i.options.slidesToShow&&i.paused!==!0&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this;i.options.infinite===!1?1===i.direction?(i.currentSlide+1===i.slideCount-1&&(i.direction=0),i.slideHandler(i.currentSlide+i.options.slidesToScroll)):(i.currentSlide-1===0&&(i.direction=1),i.slideHandler(i.currentSlide-i.options.slidesToScroll)):i.slideHandler(i.currentSlide+i.options.slidesToScroll)},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow=i('').appendTo(e.$slider),e.$nextArrow=i('').appendTo(e.$slider),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled"))},e.prototype.buildDots=function(){var e,t,s=this;if(s.options.dots===!0&&s.slideCount>s.options.slidesToShow){for(t='
        ',e=0;e<=s.getDotCount();e+=1)t+="
      • "+s.options.customPaging.call(this,s,e)+"
      • ";t+="
      ",s.$dots=i(t).appendTo(s.$slider),s.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slidesCache=e.$slides,e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('
      ').appendTo(e.$slider):e.$slides.wrapAll('
      ').parent(),e.$list=e.$slideTrack.wrap('
      ').parent(),e.$slideTrack.css("opacity",0),e.options.centerMode===!0&&(e.options.infinite=!0,e.options.slidesToScroll=1,e.options.slidesToShow%2===0&&(e.options.slidesToShow=3)),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.options.accessibility===!0&&e.$list.prop("tabIndex",0),e.setSlideClasses(0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.checkResponsive=function(){var e,t,s=this;if(s.originalSettings.responsive&&s.originalSettings.responsive.length>-1&&null!==s.originalSettings.responsive){t=null;for(e in s.breakpoints)s.breakpoints.hasOwnProperty(e)&&i(window).width()t;)o++,s+=e.options.slidesToScroll,t=s+e.options.slidesToShow;return o},e.prototype.getLeft=function(i){var e,t,s=this,o=0;return s.slideOffset=0,t=s.$slides.first().outerHeight(),s.options.infinite===!0?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,o=t*s.options.slidesToShow*-1),s.slideCount%s.options.slidesToScroll!==0&&i+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideCount%s.options.slidesToShow*s.slideWidth*-1,o=s.slideCount%s.options.slidesToShow*t*-1)):s.slideCount%s.options.slidesToShow!==0&&i+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.options.slidesToShow*s.slideWidth-s.slideCount%s.options.slidesToShow*s.slideWidth,o=s.slideCount%s.options.slidesToShow*t),s.options.centerMode===!0&&(s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth),e=s.options.vertical===!1?i*s.slideWidth*-1+s.slideOffset:i*t*-1+o},e.prototype.init=function(){var e=this;i(e.$slider).hasClass("slick-initialized")||(i(e.$slider).addClass("slick-initialized"),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.checkResponsive()),null!==e.options.onInit&&e.options.onInit.call(this,e)},e.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.on("click.slick",{message:"next"},i.changeSlide))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide)},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.options.pauseOnHover===!0&&e.options.autoplay===!0&&(e.$list.on("mouseenter.slick",e.autoPlayClear),e.$list.on("mouseleave.slick",e.autoPlay)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,function(){e.checkResponsive(),e.setPosition()}),i(window).on("resize.slick.slick-"+e.instanceUid,function(){i(window).width!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.setPosition()},50))}),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show(),i.options.autoplay===!0&&i.autoPlay()},e.prototype.keyHandler=function(i){var e=this;37===i.keyCode?e.changeSlide({data:{message:"previous"}}):39===i.keyCode&&e.changeSlide({data:{message:"next"}})},e.prototype.lazyLoad=function(){var e,t,s,o,n=this;n.options.centerMode===!0||n.options.fade===!0?(s=n.options.slidesToShow+n.currentSlide-1,o=s+n.options.slidesToShow+2):(s=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,o=s+n.options.slidesToShow),e=n.$slider.find(".slick-slide").slice(s,o),i("img[data-lazy]",e).not("[src]").each(function(){i(this).css({opacity:0}).attr("src",i(this).attr("data-lazy")).removeClass("slick-loading").load(function(){i(this).animate({opacity:1},200)})}),n.currentSlide>=n.slideCount-n.options.slidesToShow?(t=n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow),i("img[data-lazy]",t).not("[src]").each(function(){i(this).css({opacity:0}).attr("src",i(this).attr("data-lazy")).removeClass("slick-loading").load(function(){i(this).animate({opacity:1},200)})})):0===n.currentSlide&&(t=n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow),i("img[data-lazy]",t).not("[src]").each(function(){i(this).css({opacity:0}).attr("src",i(this).attr("data-lazy")).removeClass("slick-loading").load(function(){i(this).animate({opacity:1},200)})}))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.postSlide=function(i){var e=this;null!==e.options.onAfterChange&&e.options.onAfterChange.call(this,e,i),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay===!0&&e.paused===!1&&e.autoPlay()},e.prototype.progressiveLazyLoad=function(){var e,t,s=this;e=i("img[data-lazy]").not("[src]").length,e>0&&(t=i(i("img[data-lazy]",s.$slider).not("[src]").get(0)),t.attr("src",t.attr("data-lazy")).removeClass("slick-loading").load(function(){s.progressiveLazyLoad()}))},e.prototype.refresh=function(){var e=this;e.destroy(),i.extend(e,e.initials),e.init()},e.prototype.reinit=function(){var i=this;i.$slides=i.$slideTrack.children(i.options.slide).addClass("slick-slide"),i.slideCount=i.$slides.length,i.currentSlide>=i.slideCount&&0!==i.currentSlide&&(i.currentSlide=i.currentSlide-i.options.slidesToScroll),i.setProps(),i.setupInfinite(),i.buildArrows(),i.updateArrows(),i.initArrowEvents(),i.buildDots(),i.updateDots(),i.initDotEvents(),i.setSlideClasses(0),i.setPosition(),null!==i.options.onReInit&&i.options.onReInit.call(this,i)},e.prototype.removeSlide=function(i,e){var t=this;return"boolean"==typeof i?(e=i,i=e===!0?0:t.slideCount-1):i=e===!0?--i:i,t.slideCount<1||0>i||i>t.slideCount-1?!1:(t.unload(),t.$slideTrack.children(this.options.slide).eq(i).remove(),t.$slides=t.$slideTrack.children(this.options.slide),t.$slideTrack.children(this.options.slide).remove(),t.$slideTrack.append(t.$slides),t.$slidesCache=t.$slides,void t.reinit())},e.prototype.setCSS=function(i){var e,t,s=this,o={};e="left"==s.positionProp?i+"px":"0px",t="top"==s.positionProp?i+"px":"0px",o[s.positionProp]=i,s.transformsEnabled===!1?s.$slideTrack.css(o):(o={},s.cssTransitions===!1?(o[s.animType]="translate("+e+", "+t+")",s.$slideTrack.css(o)):(o[s.animType]="translate3d("+e+", "+t+", 0px)",s.$slideTrack.css(o)))},e.prototype.setDimensions=function(){var i=this;i.$slideTrack.children(".slick-slide").width(i.options.centerMode===!0?i.slideWidth:i.slideWidth),i.options.vertical===!1?(i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length)),i.options.centerMode===!0&&i.$list.css({padding:"0px "+i.options.centerPadding})):(i.$list.height(i.$slides.first().outerHeight()*i.options.slidesToShow),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight()*i.$slideTrack.children(".slick-slide").length)),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+" 0px"}))},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(s,o){e=t.slideWidth*s*-1,i(o).css({position:"relative",left:e,top:0,zIndex:800,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:900,opacity:1})},e.prototype.setPosition=function(){var i=this;i.setValues(),i.setDimensions(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade()},e.prototype.setProps=function(){var i=this;i.positionProp=i.options.vertical===!0?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),(void 0!==document.body.style.WebkitTransition||void 0!==document.body.style.MozTransition||void 0!==document.body.style.msTransition)&&i.options.useCSS===!0&&(i.cssTransitions=!0),void 0!==document.body.style.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition"),void 0!==document.body.style.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition"),void 0!==document.body.style.msTransform&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=null!==i.animType},e.prototype.setValues=function(){var i=this;i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.slideWidth=Math.ceil(i.options.vertical===!1?i.listWidth/i.options.slidesToShow:i.listWidth)},e.prototype.setSlideClasses=function(i){var e,t,s,o=this;o.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center"),t=o.$slider.find(".slick-slide"),o.options.centerMode===!0?(e=Math.floor(o.options.slidesToShow/2),i>=e&&i<=o.slideCount-1-e?o.$slides.slice(i-e,i+e+1).addClass("slick-active"):(s=o.options.slidesToShow+i,t.slice(s-e+1,s+e+2).addClass("slick-active")),0===i?t.eq(t.length-1-o.options.slidesToShow).addClass("slick-center"):i===o.slideCount-1&&t.eq(o.options.slidesToShow).addClass("slick-center"),o.$slides.eq(i).addClass("slick-center")):i>0&&io.options.slidesToShow)){for(s=o.options.centerMode===!0?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-s;e-=1)t=e-1,i(o.$slides[t]).clone().attr("id","").prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;s>e;e+=1)t=e,i(o.$slides[t]).clone().attr("id","").appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.slideHandler=function(i){var e,t,s,o,n=null,l=this;return l.animating===!0?!1:(e=i,n=l.getLeft(e),s=l.getLeft(l.currentSlide),o=l.slideCount%l.options.slidesToScroll!==0?l.options.slidesToScroll:0,l.currentLeft=null===l.swipeLeft?s:l.swipeLeft,l.options.infinite===!1&&(0>i||i>l.slideCount-l.options.slidesToShow+o)?(l.options.fade===!1&&(e=l.currentSlide,l.animateSlide(s,function(){l.postSlide(e)})),!1):(l.options.autoplay===!0&&clearInterval(l.autoPlayTimer),t=0>e?l.slideCount%l.options.slidesToScroll!==0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount-l.options.slidesToScroll:e>l.slideCount-1?0:e,l.animating=!0,null!==l.options.onBeforeChange&&i!==l.currentSlide&&l.options.onBeforeChange.call(this,l,l.currentSlide,t),l.currentSlide=t,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),l.options.fade===!0?(l.fadeSlide(t,function(){l.postSlide(t)}),!1):void l.animateSlide(n,function(){l.postSlide(t)})))},e.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,s,o=this;return i=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,t=Math.atan2(e,i),s=Math.round(180*t/Math.PI),0>s&&(s=360-Math.abs(s)),45>=s&&s>=0?"left":360>=s&&s>=315?"left":s>=135&&225>=s?"right":"vertical"},e.prototype.swipeEnd=function(e){var t=this;if(t.$list.removeClass("dragging"),void 0===t.touchObject.curX)return!1;if(t.touchObject.swipeLength>=t.touchObject.minSwipe)switch(i(e.target).on("click.slick",function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),i(e.target).off("click.slick")}),t.swipeDirection()){case"left":t.slideHandler(t.currentSlide+t.options.slidesToScroll),t.touchObject={};break;case"right":t.slideHandler(t.currentSlide-t.options.slidesToScroll),t.touchObject={}}else t.touchObject.startX!==t.touchObject.curX&&(t.slideHandler(t.currentSlide),t.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if("ontouchend"in document&&e.options.swipe===!1)return!1;if(e.options.draggable===!1&&!i.originalEvent.touches)return!0;switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,s,o,n=this;return o=void 0!==i.originalEvent?i.originalEvent.touches:null,e=n.getLeft(n.currentSlide),!n.$list.hasClass("dragging")||o&&1!==o.length?!1:(n.touchObject.curX=void 0!==o?o[0].pageX:i.clientX,n.touchObject.curY=void 0!==o?o[0].pageY:i.clientY,n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curX-n.touchObject.startX,2))),t=n.swipeDirection(),"vertical"!==t?(void 0!==i.originalEvent&&n.touchObject.swipeLength>4&&i.preventDefault(),s=n.touchObject.curX>n.touchObject.startX?1:-1,n.swipeLeft=n.options.vertical===!1?e+n.touchObject.swipeLength*s:e+n.touchObject.swipeLength*(n.$list.height()/n.listWidth)*s,n.options.fade===!0||n.options.touchMove===!1?!1:n.animating===!0?(n.swipeLeft=null,!1):void n.setCSS(n.swipeLeft)):void 0)},e.prototype.swipeStart=function(i){var e,t=this;return 1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,void t.$list.addClass("dragging"))},e.prototype.unfilterSlides=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).remove(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&(e.$prevArrow.remove(),e.$nextArrow.remove()),e.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style")},e.prototype.updateArrows=function(){var i=this;i.options.arrows===!0&&i.options.infinite!==!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.removeClass("slick-disabled"),i.$nextArrow.removeClass("slick-disabled"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled"),i.$nextArrow.removeClass("slick-disabled")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&(i.$nextArrow.addClass("slick-disabled"),i.$prevArrow.removeClass("slick-disabled")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active"),i.$dots.find("li").eq(i.currentSlide/i.options.slidesToScroll).addClass("slick-active"))},i.fn.slick=function(i){var t=this;return t.each(function(t,s){s.slick=new e(s,i)})},i.fn.slickAdd=function(i,e,t){var s=this;return s.each(function(s,o){o.slick.addSlide(i,e,t)})},i.fn.slickCurrentSlide=function(){var i=this;return i.get(0).slick.getCurrent()},i.fn.slickFilter=function(i){var e=this;return e.each(function(e,t){t.slick.filterSlides(i)})},i.fn.slickGoTo=function(i){var e=this;return e.each(function(e,t){t.slick.slideHandler(i)})},i.fn.slickNext=function(){var i=this;return i.each(function(i,e){e.slick.changeSlide({data:{message:"next"}})})},i.fn.slickPause=function(){var i=this;return i.each(function(i,e){e.slick.autoPlayClear(),e.slick.paused=!0})},i.fn.slickPlay=function(){var i=this;return i.each(function(i,e){e.slick.paused=!1,e.slick.autoPlay()})},i.fn.slickPrev=function(){var i=this;return i.each(function(i,e){e.slick.changeSlide({data:{message:"previous"}})})},i.fn.slickRemove=function(i,e){var t=this;return t.each(function(t,s){s.slick.removeSlide(i,e)})},i.fn.slickSetOption=function(i,e,t){var s=this;return s.each(function(s,o){o.slick.options[i]=e,t===!0&&(o.slick.unload(),o.slick.reinit())})},i.fn.slickUnfilter=function(){var i=this;return i.each(function(i,e){e.slick.unfilterSlides()})},i.fn.unslick=function(){var i=this;return i.each(function(i,e){e.slick.destroy()})}}); !function(n){var u=n({});n.subscribe=function(){u.on.apply(u,arguments)},n.unsubscribe=function(){u.off.apply(u,arguments)},n.publish=function(){u.trigger.apply(u,arguments)}}(jQuery); !function(e,t,a){var n={messages:{required:"The %s field is required.",matches:"The %s field does not match the %s field.","default":"The %s field is still set to default, please change.",valid_email:"The %s field must contain a valid email address.",valid_emails:"The %s field must contain all valid email addresses.",min_length:"The %s field must be at least %s characters in length.",max_length:"The %s field must not exceed %s characters in length.",exact_length:"The %s field must be exactly %s characters in length.",greater_than:"The %s field must contain a number greater than %s.",less_than:"The %s field must contain a number less than %s.",alpha:"The %s field must only contain alphabetical characters.",alpha_numeric:"The %s field must only contain alpha-numeric characters.",alpha_dash:"The %s field must only contain alpha-numeric characters, underscores, and dashes.",numeric:"The %s field must contain only numbers.",integer:"The %s field must contain an integer.",decimal:"The %s field must contain a decimal number.",is_natural:"The %s field must contain only positive numbers.",is_natural_no_zero:"The %s field must contain a number greater than zero.",valid_ip:"The %s field must contain a valid IP.",valid_base64:"The %s field must contain a base64 string.",valid_credit_card:"The %s field must contain a valid credit card number.",is_file_type:"The %s field must contain only %s files.",valid_url:"The %s field must contain a valid URL."},callback:function(){}},i=/^(.+?)\[(.+)\]$/,s=/^[0-9]+$/,r=/^\-?[0-9]+$/,l=/^\-?[0-9]*\.?[0-9]+$/,u=/^[a-zA-Z0-9.!#$%&'*+\-\/=?\^_`{|}~\-]+@[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*$/,o=/^[a-z]+$/i,h=/^[a-z0-9]+$/i,c=/^[a-z0-9_\-]+$/i,d=/^[0-9]+$/i,f=/^[1-9][0-9]*$/i,m=/^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$/i,v=/[^a-zA-Z0-9\/\+=]/i,p=/^[\d\-\s]+$/,_=/^((http|https):\/\/(\w+:{0,1}\w*@)?(\S+)|)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,g=function(e,t,i){this.callback=i||n.callback,this.errors=[],this.fields={},this.form=this._formByNameOrNode(e)||{},this.messages={},this.handlers={};for(var s=0,r=t.length;r>s;s++){var l=t[s];if((l.name||l.names)&&l.rules)if(l.names)for(var u=0;u0)||"radio"!==e[0].type&&"checkbox"!==e[0].type)return e[t];for(a=0;a0?i[0].type:i.type,n.value=y(i,"value"),n.checked=y(i,"checked"),this._validateField(n))}return"function"==typeof this.callback&&this.callback(this.errors,e),this.errors.length>0&&(e&&e.preventDefault?e.preventDefault():event&&(event.returnValue=!1)),!0},g.prototype._validateField=function(e){for(var t=e.rules.split("|"),s=e.rules.indexOf("required"),r=!e.value||""===e.value||e.value===a,l=0,u=t.length;u>l;l++){var o=t[l],h=null,c=!1,d=i.exec(o);if((-1!==s||-1!==o.indexOf("!callback_")||!r)&&(d&&(o=d[1],h=d[2]),"!"===o.charAt(0)&&(o=o.substring(1,o.length)),"function"==typeof this._hooks[o]?this._hooks[o].apply(this,[e,h])||(c=!0):"callback_"===o.substring(0,9)&&(o=o.substring(9,o.length),"function"==typeof this.handlers[o]&&this.handlers[o].apply(this,[e.value,h])===!1&&(c=!0)),c)){var f=this.messages[o]||n.messages[o],m="An error has occurred with the "+e.display+" field.";f&&(m=f.replace("%s",e.display),h&&(m=m.replace("%s",this.fields[h]?this.fields[h].display:h))),this.errors.push({id:e.id,name:e.name,message:m,rule:o});break}}},g.prototype._hooks={required:function(e){var t=e.value;return"checkbox"===e.type||"radio"===e.type?e.checked===!0:null!==t&&""!==t},"default":function(e,t){return e.value!==t},matches:function(e,t){var a=this.form[t];return a?e.value===a.value:!1},valid_email:function(e){return u.test(e.value)},valid_emails:function(e){for(var t=e.value.split(","),a=0;a=parseInt(t,10):!1},max_length:function(e,t){return s.test(t)?e.value.length<=parseInt(t,10):!1},exact_length:function(e,t){return s.test(t)?e.value.length===parseInt(t,10):!1},greater_than:function(e,t){return l.test(e.value)?parseFloat(e.value)>parseFloat(t):!1},less_than:function(e,t){return l.test(e.value)?parseFloat(e.value)=0;s--){var r=i.charAt(s);a=parseInt(r,10),n&&(a*=2)>9&&(a-=9),t+=a,n=!n}return t%10===0},is_file_type:function(e,t){if("file"!==e.type)return!0;var a=e.value.substr(e.value.lastIndexOf(".")+1),n=t.split(","),i=!1,s=0,r=n.length;for(s;r>s;s++)a==n[s]&&(i=!0);return i}},e.FormValidator=g}(window,document); (function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},e=[].slice;!function(t,e){return"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(n){return e(n,t)}):e(t.jQuery,t)}(this,function(n,r){var i,o,l,s,c,u,a,f,h,d,p,v,y,w,g,m;return i=n(r),f=t.call(r,"ontouchstart")>=0,s={horizontal:{},vertical:{}},c=1,a={},u="waypoints-context-id",p="resize.waypoints",v="scroll.waypoints",y=1,w="waypoints-waypoint-ids",g="waypoint",m="waypoints",o=function(){function t(t){var e=this;this.$element=t,this.element=t[0],this.didResize=!1,this.didScroll=!1,this.id="context"+c++,this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[u]=this.id,a[this.id]=this,t.bind(v,function(){var t;return e.didScroll||f?void 0:(e.didScroll=!0,t=function(){return e.doScroll(),e.didScroll=!1},r.setTimeout(t,n[m].settings.scrollThrottle))}),t.bind(p,function(){var t;return e.didResize?void 0:(e.didResize=!0,t=function(){return n[m]("refresh"),e.didResize=!1},r.setTimeout(t,n[m].settings.resizeThrottle))})}return t.prototype.doScroll=function(){var t,e=this;return t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!f||t.vertical.oldScroll&&t.vertical.newScroll||n[m]("refresh"),n.each(t,function(t,r){var i,o,l;return l=[],o=r.newScroll>r.oldScroll,i=o?r.forward:r.backward,n.each(e.waypoints[t],function(t,e){var n,i;return r.oldScroll<(n=e.offset)&&n<=r.newScroll?l.push(e):r.newScroll<(i=e.offset)&&i<=r.oldScroll?l.push(e):void 0}),l.sort(function(t,e){return t.offset-e.offset}),o||l.reverse(),n.each(l,function(t,e){return e.options.continuous||t===l.length-1?e.trigger([i]):void 0})}),this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.refresh=function(){var t,e,r,i=this;return r=n.isWindow(this.element),e=this.$element.offset(),this.doScroll(),t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,c;return i=r.options.offset,l=r.offset,o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp],n.isFunction(i)?i=i.apply(r.element):"string"==typeof i&&(i=parseFloat(i),r.options.offset.indexOf("%")>-1&&(i=Math.ceil(e.contextDimension*i/100))),r.offset=o-e.contextOffset+e.contextScroll-i,r.options.onlyOnScroll&&null!=l||!r.enabled?void 0:null!==l&&l<(s=e.oldScroll)&&s<=r.offset?r.trigger([e.backward]):null!==l&&l>(c=e.oldScroll)&&c>=r.offset?r.trigger([e.forward]):null===l&&e.oldScroll>=r.offset?r.trigger([e.forward]):void 0})})},t.prototype.checkEmpty=function(){return n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([p,v].join(" ")),delete a[this.id]):void 0},t}(),l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r),"bottom-in-view"===r.offset&&(r.offset=function(){var t;return t=n[m]("viewportHeight"),n.isWindow(e.element)||(t=e.$element.height()),t-n(this).outerHeight()}),this.$element=t,this.element=t[0],this.axis=r.horizontal?"horizontal":"vertical",this.callback=r.handler,this.context=e,this.enabled=r.enabled,this.id="waypoints"+y++,this.offset=null,this.options=r,e.waypoints[this.axis][this.id]=this,s[this.axis][this.id]=this,i=null!=(o=this.element[w])?o:[],i.push(this.id),this.element[w]=i}return t.prototype.trigger=function(t){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0):void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},t.prototype.destroy=function(){return delete s[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},t.getWaypointsByElement=function(t){var e,r;return(r=t[w])?(e=n.extend({},s.horizontal,s.vertical),n.map(r,function(t){return e[t]})):[]},t}(),d={init:function(t,e){var r;return null==e&&(e={}),null==(r=e.handler)&&(e.handler=t),this.each(function(){var t,r,i,s;return t=n(this),i=null!=(s=e.context)?s:n.fn[g].defaults.context,n.isWindow(i)||(i=t.closest(i)),i=n(i),r=a[i[0][u]],r||(r=new o(i)),new l(t,r,e)}),n[m]("refresh"),this},disable:function(){return d._invoke.call(this,"disable")},enable:function(){return d._invoke.call(this,"enable")},destroy:function(){return d._invoke.call(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){return e>0?t.push(n[e-1]):void 0})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){return et.oldScroll.y})},left:function(t){return null==t&&(t=r),h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){return null==t&&(t=r),h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;return e=n.extend({},s.vertical,s.horizontal),n.each(e,function(e,n){return n[t](),!0})},_filter:function(t,e,r){var i,o;return(i=a[n(t)[0][u]])?(o=[],n.each(i.waypoints[e],function(t,e){return r(i,e)?o.push(e):void 0}),o.sort(function(t,e){return t.offset-e.offset}),n.map(o,function(t){return t.element})):[]}},n[m]=function(){var t,n;return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],h[n]?h[n].apply(null,t):h.aggregate.call(null,n)},n[m].settings={resizeThrottle:100,scrollThrottle:30},i.load(function(){return n[m]("refresh")})})}).call(this); !function(e,a,n,t,i,s,c){e.GoogleAnalyticsObject=i,e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},e[i].l=1*new Date,s=a.createElement(n),c=a.getElementsByTagName(n)[0],s.async=1,s.src=t,c.parentNode.insertBefore(s,c)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create","UA-29159602-2","auto"),ga("require","displayfeatures"),ga("require","linkid","linkid.js"),ga("send","pageview"); var Article=function(t){"use strict";var c=function(){t(".article-image").exists(function(){i(t(this))})},i=function(c){c.each(function(c,i){var n=t(i),r=n.data("bg");r&&n.backstretch(r)})};return c}(jQuery); !function(e){"use strict";var a=e("#contact-form"),n=e(".form-loading"),s=e("#contact-submit");if(a.length){s.on("click",function(){n.removeClass("is-hidden"),a.submit()});var r=function(r,t){t.preventDefault();var o=e(".form-errors"),i=o.find("ul");if(i.length||(o.append("

      The following error(s) occured:

        "),i=o.find("ul")),a.find(".has-error").removeClass("has-error"),i.empty(),o.toggleClass("is-hidden",!r.length),e.each(r,function(a,n){var s=e("#"+n.id);s[0]&&"select-one"==s[0].type?s.closest(".dropdown").addClass("has-error"):s.addClass("has-error"),i.append("
      • "+n.message+"
      • ")}),0===r.length){var m=e.post("/contact/",l.fields);m.done(function(e){n.addClass("is-hidden"),"success"==e?(s.parent().append('

        Thank you - your message was sent successfully.

        '),s.remove(),ga("send","pageview",{page:"/contact-form-submitted",title:"Contact Form Submitted"})):(i.empty(),o.removeClass("is-hidden"),i.append('
      • Unfortunately your message was not delivered. Please try again or email us directly at info@dynamo6.com.
      • '))})}else n.addClass("is-hidden")},t=[{name:"first-name",rules:"required",display:"first name"},{name:"last-name",rules:"required",display:"last name"},{name:"email",rules:"required|valid_email"},{name:"phone",rules:"max_length[9999]"},{name:"organisation",rules:"max_length[9999]"},{name:"position",rules:"max_length[9999]"},{name:"city",rules:"max_length[9999]"},{name:"country",rules:"max_length[9999]"},{name:"topic",rules:"max_length[9999]"},{name:"message",rules:"required|max_length[9999]"}],l=new FormValidator("contact-form",t,r)}}(jQuery); var FeatureImage=function(t){"use strict";var e=function(){t(".full-background").exists(function(){i(t(this))})},i=function(e){e.each(function(e,i){var a=t(i),n=a.data("bg");n&&t("").one("load",function(){t(".lt-ie9").length?a.append(t(this).addClass("alt-image")):(a.css("background-image","url('"+n+"')").animate({opacity:1}),t(this).remove())})})};return e}(jQuery),FeatureVideoPanel=function(t){"use strict";var e=function(){t(".feature-first").exists(function(){t(this).find(".feature-video-wrapper").length&&(t.subscribe("throttled-resize",i),setTimeout(i,50))})},i=function(){var e=t("html"),i=t(".feature-first"),a=t(".layout-header").height(),n=t(".layout-footer").height(),s=(t(window).width(),t(window).height()),o=t(".layout-footer").offset().top,r="auto",u=i.find("video").height();if(t(".lt-ie9").length&&0==u&&(u=i.find(".full-background").height()),e.hasClass(document.sTabletClass)||e.hasClass(document.sDesktopClass))if(0==o||0==u)r=s-(a+n);else{var f=o-a;r=f>u?u:f}i.height(r)};return e}(jQuery); var Helpers=function(t){"use strict";var e=function(){s(),i(),n(),a(),o(),l()},s=function(){t.fn.exists=function(t){var e=[].slice.call(arguments,1);return this.length&&t.call(this,e),this}},i=function(){var e=function(){t("[data-equalise]").each(function(e,s){var i=t(s),n=i.find(i.data("equalise")),a=0;n.height("auto"),n.each(function(e,s){var i=t(s).height();i>a&&(a=i)}),n.height(a)})};t.subscribe("throttled-resize",e),e()},n=function(){var e;t(window).on("resize",function(){clearTimeout(e),e=setTimeout(function(){t.publish("throttled-resize")},50)})},a=function(){t("iframe").parent().fitVids()},o=function(){if(!Modernizr.input.placeholder){var e=t('input[type="search"], input[type="text"], textarea');t.each(e,function(e,s){var i=t(s);i.val(i.attr("placeholder"))}),e.focus(function(){t(this).val()==t(this).attr("placeholder")&&t(this).val("")}),e.blur(function(){""==t(this).val()&&t(this).val(t(this).attr("placeholder"))})}},l=function(){document.sMiniMobileClass="mini-mobile-size",document.sMobileClass="mobile-size",document.sTabletClass="tablet-size",document.sDesktopClass="desktop-size",t.subscribe("throttled-resize",u),setTimeout(u,10)},u=function(){var e=t(window).width(),s=t("html"),i=480,n=768,a=1024;s.removeClass(document.sMiniMobileClass+" "+document.sMobileClass+" "+document.sTabletClass+" "+document.sDesktopClass),s.addClass(e>a?document.sDesktopClass:e>n?document.sTabletClass:e>i?document.sMobileClass:document.sMiniMobileClass)};return e}(jQuery); !function(a){"use strict";var o=a("#gmap"),l=window.location.protocol+"//"+window.location.host+"/wp-content/themes/sparky/img/map-label-here.png";if(!o.length)return!1;window.locations=[{mapID:1,title:"Auckland",lon:174.7684,lat:-36.84493,address:'

        Auckland

        The Generator, 22-28,
        Customs Street, Auckland CBD

        Ph 09 972 1138

        ',icon:l,zoom:16},{mapID:2,title:"Hamilton",lon:175.281905,lat:-37.787405,address:'

        Hamilton

        Level 2, 24 Garden Place,
        Hamilton CBD

        Ph 07 974 4921

        ',icon:l,zoom:17}];var s=1;new Maplace({controls_position:google.maps.ControlPosition.LEFT_TOP,controls_type:"list",controls_applycss:!1,start:s,view_all:!1,listeners:{idle:function(){var o="active";if(!a(".wrap_controls .wrap-addresses").length){var l="
        ";for(var t in window.locations)l+="
        "+window.locations[t].address+"
        ";l+="
        ",a(".wrap_controls").append(l),a(".controls li:last-child").addClass("last-child"),a("#gmap .gm-style > div:nth-child(2)").addClass("gm-credit"),a("#gmap .gm-style > .gmnoprint:last-child").addClass("gm-scrollbars")}var n=a(".wrap_controls li.active a").attr("data-load"),e=a(".wrap_controls address[data-load="+n+"]");e.hasClass(o)||(a(".wrap_controls address").removeClass(o),e.addClass(o))}},locations:window.locations,map_options:{disableDefaultUI:!0,draggable:!1,mapTypeId:google.maps.MapTypeId.SATELLITE,scrollwheel:!1,tilt:0,zoomControl:!0,zoomControlOptions:{position:google.maps.ControlPosition.RIGHT_TOP}}}).Load()}(jQuery); var Menu=function(n){"use strict";document.iClosedNavWidth=960;var s=function(){var s=n(".menu-toggle"),o=n(".site-navigation");s.on("click",function(){n(this).toggleClass("icon-cross"),o.toggleClass("open"),n("html, body").animate({scrollTop:0},500)}),n.subscribe("throttled-resize",i)},i=function(){n(window).width()>document.iClosedNavWidth&&(n(".site-navigation .sub-menu").css("display","none"),n(".site-navigation").hasClass("open")&&n(window).width()>960&&n(".menu-toggle").click())};return s}(jQuery),SubMenuDesktop=function(n){"use strict";var s=function(){var s=n(".menu-item-has-children"),i=s.find("ul");s.on("mouseenter",function(){n(window).width()>document.iClosedNavWidth&&("none"==i.css("display")&&i.css("display","block"),n(this).data("tmoClose")&&window.clearTimeout(n(this).data("tmoClose")))}),s.on("mouseleave",function(){n(window).width()>document.iClosedNavWidth&&n(this).data("tmoClose",window.setTimeout(o,250))});var o=function(){"block"==i.css("display")&&i.css("display","none")}};return s}(jQuery),SubMenuMobile=function(n){"use strict";var s=function(){var s=n(".menu-item-has-children");s.append(''),n(".sub-menu-toggle").on("click",function(){n(this).toggleClass("sub-menu-open"),n(this).toggleClass("icon-arrow-up"),n(this).toggleClass("icon-arrow-down");var s=n(this).parent().find(".sub-menu");"block"==s.css("display")?s.css("display","none"):s.css("display","block")})};return s}(jQuery); !function(s){"use strict";var i=function(i){i.$nextArrow&&i.$prevArrow&&(s(i.$nextArrow).text(""),s(i.$prevArrow).text(""))},o=function(s,i){i.append(s.$prevArrow).append(s.$nextArrow)},e=function(){var e=s(".solution-selector-slider");if(s(".solution-selector").removeClass("is-hidden"),e.length){var n={infinite:!1,arrows:!1,dots:!1,slidesToShow:6,slidesToScroll:6,responsive:[{breakpoint:768,settings:{infinite:!1,arrows:!0,dots:!1,slidesToShow:3,slidesToScroll:3,onInit:function(e){i(e),o(e,s(".solution-selector"))}}},{breakpoint:480,settings:{infinite:!1,arrows:!0,dots:!1,slidesToShow:2,slidesToScroll:2,onInit:function(e){i(e),o(e,s(".solution-selector"))}}}]},t=e.slick(n),l=s("html"),r=s(".solution-selector-slider").data("active-slide");l.hasClass(document.sMobileClass)&&r>3?t.slickGoTo(3):l.hasClass(document.sMiniMobileClass)&&(r>4?t.slickGoTo(4):r>2&&t.slickGoTo(2))}},n=function(){var i=s(".testimonials-slider");if(s(".testimonials-inner").removeClass("is-hidden"),i.length){var o={arrows:!1,autoplay:!0,autoplaySpeed:i.data("slider-speed"),cssEase:"ease",dots:!1,infinite:!0,slidesToScroll:2,slidesToShow:2,speed:750,responsive:[{breakpoint:768,settings:{arrows:!1,autoplay:!0,dots:!1,infinite:!0,slidesToShow:1,slidesToScroll:1,onInit:function(){s(".swirly").addClass("is-hidden")}}}],onInit:function(){var i=s(".testimonial"),o=0;i.each(function(){var i=s(this).innerHeight();i>o&&(o=i)}),i.innerHeight(o),s(".slick-list").height(o),s(".swirly").addClass("is-hidden")}};i.slick(o)}};s(window).on("load",function(){e(),n()})}(jQuery); var SVGFallback=function(r){"use strict";var t=function(){var t=r("img.svg");t.length&&t.each(function(t,a){var c=r(a),n=c.attr("src").replace(".svg",".png");c.attr("src",n).show()})};return t}(jQuery); var Truncator=function(t){"use strict";var o=function(){t(".truncate").dotdotdot({watch:"window"}),setTimeout(e,500),setTimeout(e,1e3),setTimeout(e,2e3)},e=function(){t(".truncate").dotdotdot()};return o}(jQuery); var WayPoints=function(s){"use strict";var t=function(){s("html");s(".fixed-wrapper").exists(function(){a(s(this)),setTimeout(function(){var t=s(document).scrollTop();t>0&&window.scrollTo(0,t+1)},10)}),s(".site-navigation").exists(function(){a(s(this))}),s(".section-partners .partner").exists(function(){n(s(this),"fade-in",!1)}),s(".button-hexagon .hex-dots").exists(function(){n(s(this),"move-in",!1)}),s(".numbered-copy").exists(function(){n(s(this),"move-down",!0)}),s(".feature-solution-header-overlay-mask").exists(function(){o(s(this),"opacity",.7)}),s(".icon-arrow-down").exists(function(){e(s(this),500)}),s(".parallax .full-background").exists(function(){c(s(this))}),s(".feature-content").exists(function(){i(s(this),s(".feature-solution-content").length>0)})},a=function(t){var a=s("html"),n=s(document),o=parseInt(t.css("top").replace("px","")),e=parseInt(t.data("trigger-point").replace("px","")),c=t.data("class")?t.data("class"):"",i=function(){if(a.hasClass(document.sTabletClass)||a.hasClass(document.sDesktopClass)){var s=n.scrollTop(),i=o+e-s;s>=e?(c.length&&t.addClass(c),i>=0?t.css("top",i.toString()+"px"):t.css("top","0px")):(t.css("top",o+"px"),c.length&&t.removeClass(c))}};s(window).scroll(function(){i()})},n=function(t,a,n){var o=s("html");s(window).scroll(function(){(o.hasClass(document.sTabletClass)||o.hasClass(document.sDesktopClass))&&t.each(function(t,o){var e=s(o);e.visible(!0)&&(n?e.parent().addClass(a):e.addClass(a))})})},o=function(t,a,n){t.each(function(t,n){s(n).data("initial-value",s(n).css(a))});var o=s(document),e=s(".layout-header");s(window).scroll(function(){t.each(function(t,c){var i=s(c),l=o.scrollTop()>0?o.scrollTop():1,r=l/(i.height()+e.height()),u=r*n;u>i.data("initial-value")&&n>u&&i.css(a,u)})})},e=function(t,a){t.each(function(t,n){var o=s(n),e=o.attr("href");o.attr("href","javascript:void(0);"),o.on("click",function(){s("html, body").animate({scrollTop:s(e).offset().top},a,"easeInQuad")})})},c=function(t){var a=s("html"),n=s(window);t.each(function(t,o){var e=s(o);e.data("para-speed")&&n.scroll(function(){if(a.hasClass(document.sTabletClass)||a.hasClass(document.sDesktopClass)){var s=-(n.scrollTop()/e.data("para-speed"));e.css({backgroundPosition:"50% "+s+"px"})}})})},i=function(t,a){var n=s("html"),o=s(document),e=s(window),c=1;if(a){var i=t.data("scroll-opacity"),c=1.5;e.scroll(function(){(n.hasClass(document.sTabletClass)||n.hasClass(document.sDesktopClass))&&o.scrollTop()>0?t.css("opacity",1-o.scrollTop()/i):t.css("opacity",1)})}e.scroll(function(){n.hasClass(document.sTabletClass)||n.hasClass(document.sDesktopClass)?t.css("transform","matrix(1, 0, 0, 1, 1, -"+o.scrollTop()/c+")"):t.css("transform","matrix(1, 0, 0, 1, 0, 0)")})};return s.extend(s.easing,{easeInQuad:function(s,t,a,n,o){return n*(t/=o)*t+a},easeOutQuad:function(s,t,a,n,o){return-n*(t/=o)*(t-2)+a}}),t}(jQuery);