/*====================================================*/ /*------- [jquery.meanmenu.min] ----------------------*/ /*====================================================*/ !function($){"use strict";$.fn.meanmenu=function(e){var n={meanmenutarget:jquery(this),meanmenucontainer:"body",meanmenuclose:"x",meanmenuclosesize:"18px",meanmenuopen:"",meanrevealposition:"right",meanrevealpositiondistance:"0",meanrevealcolour:"",meanscreenwidth:"991",meannavpush:"",meanshowchildren:!0,meanexpandablechildren:!0,meanexpand:"+",meancontract:"-",meanremoveattrs:!1,onepage:!1,meandisplay:"block",removeelements:""};e=$.extend(n,e);var a=window.innerwidth||document.documentelement.clientwidth;return this.each(function(){var n=e.meanmenutarget,t=e.meanmenucontainer,r=e.meanmenuclose,i=e.meanmenuclosesize,s=e.meanmenuopen,u=e.meanrevealposition,m=e.meanrevealpositiondistance,l=e.meanrevealcolour,o=e.meanscreenwidth,c=e.meannavpush,v=".meanmenu-reveal",h=e.meanshowchildren,d=e.meanexpandablechildren,y=e.meanexpand,j=e.meancontract,q=e.meanremoveattrs,f=e.onepage,g=e.meandisplay,p=e.removeelements,c=!1;(navigator.useragent.match(/iphone/i)||navigator.useragent.match(/ipod/i)||navigator.useragent.match(/ipad/i)||navigator.useragent.match(/android/i)||navigator.useragent.match(/blackberry/i)||navigator.useragent.match(/windows phone/i))&&(c=!0),(navigator.useragent.match(/msie 8/i)||navigator.useragent.match(/msie 7/i))&&jquery("html").css("overflow-y","scroll");var w="",x=function(){if("center"===u){var e=window.innerwidth||document.documentelement.clientwidth,n=e/2-22+"px";w="left:"+n+";right:auto;",c?jquery(".meanmenu-reveal").animate({left:n}):jquery(".meanmenu-reveal").css("left",n)}},a=!1,e=!1;"right"===u&&(w="right:"+m+";left:auto;"),"left"===u&&(w="left:"+m+";right:auto;"),x();var m="",p=function(){m.html(jquery(m).is(".meanmenu-reveal.meanclose")?r:s)},w=function(){jquery(".mean-bar,.mean-push").remove(),jquery(t).removeclass("mean-container"),jquery(n).css("display",g),a=!1,e=!1,jquery(p).removeclass("mean-remove")},b=function(){var e="background:"+l+";color:"+l+";"+w;if(o>=a){jquery(p).addclass("mean-remove"),e=!0,jquery(t).addclass("mean-container"),jquery(".mean-container").prepend('');var r=jquery(n).html();jquery(".mean-nav").html(r),q&&jquery("nav.mean-nav ul, nav.mean-nav ul *").each(function(){jquery(this).is(".mean-remove")?jquery(this).attr("class","mean-remove"):jquery(this).removeattr("class"),jquery(this).removeattr("id")}),jquery(n).before('
'),jquery(".mean-push").css("margin-top",c),jquery(n).hide(),jquery(".meanmenu-reveal").show(),jquery(v).html(s),m=jquery(v),jquery(".mean-nav ul").hide(),h?d?(jquery(".mean-nav ul ul").each(function(){jquery(this).children().length&&jquery(this,"li:first").parent().append(''+y+"")}),jquery(".mean-expand").on("click",function(e){e.preventdefault(),jquery(this).hasclass("mean-clicked")?(jquery(this).text(y),jquery(this).prev("ul").slideup(300,function(){})):(jquery(this).text(j),jquery(this).prev("ul").slidedown(300,function(){})),jquery(this).toggleclass("mean-clicked")})):jquery(".mean-nav ul ul").show():jquery(".mean-nav ul ul").hide(),jquery(".mean-nav ul li").last().addclass("mean-last"),m.removeclass("meanclose"),jquery(m).click(function(e){e.preventdefault(),a===!1?(m.css("text-align","center"),m.css("text-indent","0"),m.css("font-size",i),jquery(".mean-nav ul:first").slidedown(),a=!0):(jquery(".mean-nav ul:first").slideup(),a=!1),m.toggleclass("meanclose"),p(),jquery(p).addclass("mean-remove")}),f&&jquery(".mean-nav ul > li > a:first-child").on("click",function(){jquery(".mean-nav ul:first").slideup(),a=!1,jquery(m).toggleclass("meanclose").html(s)})}else w()};c||jquery(window).resize(function(){a=window.innerwidth||document.documentelement.clientwidth,a>o,w(),o>=a?(b(),x()):w()}),jquery(window).resize(function(){a=window.innerwidth||document.documentelement.clientwidth,c?(x(),o>=a?e===!1&&b():w()):(w(),o>=a&&(b(),x()))}),b()})}}(jquery); /*====================================================*/ /*------- [jquery.inview.min.js] ---------------------*/ /*====================================================*/ (function(d){var p={},e,a,h=document,i=window,f=h.documentelement,j=d.expando;d.event.special.inview={add:function(a){p[a.guid+"-"+this[j]]={data:a,$element:d(this)}},remove:function(a){try{delete p[a.guid+"-"+this[j]]}catch(d){}}};d(i).bind("scroll resize",function(){e=a=null});!f.addeventlistener&&f.attachevent&&f.attachevent("onfocusin",function(){a=null});setinterval(function(){var k=d(),j,n=0;d.each(p,function(a,b){var c=b.data.selector,d=b.$element;k=k.add(c?d.find(c):d)});if(j=k.length){var b; if(!(b=e)){var g={height:i.innerheight,width:i.innerwidth};if(!g.height&&((b=h.compatmode)||!d.support.boxmodel))b="css1compat"===b?f:h.body,g={height:b.clientheight,width:b.clientwidth};b=g}e=b;for(a=a||{top:i.pageyoffset||f.scrolltop||h.body.scrolltop,left:i.pagexoffset||f.scrollleft||h.body.scrollleft};na.top&&c.topa.left&&c.leftc.left?"right":a.left+e.widthc.top?"bottom":a.top+e.height=1;f--){var l=parseint(i/n*f);u&&(l=parsefloat(i/n*f).tofixed(a));if(s)while(/(\d+)(\d{3})/.test(l.tostring()))l=l.tostring().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(l)}t.data("counterup-nums",e);t.text("0");var c=function(){t.text(t.data("counterup-nums").shift());if(t.data("counterup-nums").length)settimeout(t.data("counterup-func"),r.delay);else{delete t.data("counterup-nums");t.data("counterup-nums",null);t.data("counterup-func",null)}};t.data("counterup-func",c);settimeout(t.data("counterup-func"),r.delay)};t.waypoint(i,{offset:"100%",triggeronce:!0})})}})(jquery); /*====================================================*/ /*------- [waypoints.min.js] -------------------------*/ /*====================================================*/ // generated by coffeescript 1.6.2 /* jquery waypoints - v2.0.3 copyright (c) 2011-2013 caleb troughton dual licensed under the mit license and gpl license. https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt */ (function(){var t=[].indexof||function(t){for(var e=0,n=this.length;e=0;s={horizontal:{},vertical:{}};f=1;a={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=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=false;this.didscroll=false;this.id="context"+f++;this.oldscroll={x:t.scrollleft(),y:t.scrolltop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didscroll||c)){e.didscroll=true;t=function(){e.doscroll();return e.didscroll=false};return r.settimeout(t,n[m].settings.scrollthrottle)}});t.bind(p,function(){var t;if(!e.didresize){e.didresize=true;t=function(){n[m]("refresh");return e.didresize=false};return r.settimeout(t,n[m].settings.resizethrottle)}})}t.prototype.doscroll=function(){var t,e=this;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"}};if(c&&(!t.vertical.oldscroll||!t.vertical.newscroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newscroll>r.oldscroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldscroll<(n=e.offset)&&n<=r.newscroll){return l.push(e)}else if(r.newscroll<(i=e.offset)&&i<=r.oldscroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldscroll={x:t.horizontal.newscroll,y:t.vertical.newscroll}};t.prototype.refresh=function(){var t,e,r,i=this;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"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.iswindow(r.element)?0:r.$element.offset()[e.offsetprop];if(n.isfunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parsefloat(i);if(r.options.offset.indexof("%")>-1){i=math.ceil(e.contextdimension*i/100)}}r.offset=o-e.contextoffset+e.contextscroll-i;if(r.options.onlyonscroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldscroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldscroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldscroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkempty=function(){if(n.isemptyobject(this.waypoints.horizontal)&&n.isemptyobject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportheight");if(!n.iswindow(e.element)){t=e.$element.height()}return 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"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggeronce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkempty()};t.getwaypointsbyelement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.iswindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldscroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldscroll.x})},right:function(t){if(t==null){t=r}return 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;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizethrottle:100,scrollthrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this); /*====================================================*/ /*------- [parallax.min.js] --------------------------*/ /*====================================================*/ !function(e){e.fn.parallaxie=function(o){o=e.extend({speed:.2,repeat:"no-repeat",size:"cover",pos_x:"center",offset:0},o);return this.each(function(){var a=e(this),t=a.data("parallaxie");"object"!=typeof t&&(t={}),t=e.extend({},o,t);var s=a.data("image");if(void 0===s){if(!(s=a.css("background-image")))return;var n=t.offset+(a.offset().top-e(window).scrolltop())*(1-t.speed);a.css({"background-image":s,"background-size":t.size,"background-repeat":t.repeat,"background-attachment":"fixed","background-position":t.pos_x+" "+n+"px"}),e(window).scroll(function(){var o=t.offset+(a.offset().top-e(window).scrolltop())*(1-t.speed);a.data("pos_y",o),a.css("background-position",t.pos_x+" "+o+"px")})}}),this}}(jquery); /*====================================================*/ /*------- [imagesloaded.pkgd.min.js] -----------------*/ /*====================================================*/ /*! * imagesloaded packaged v4.1.4 * javascript is all like "you images are done yet or what?" * mit license */ !function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.evemitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexof(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceevents=this._onceevents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexof(t);return n!=-1&&i.splice(n,1),this}},t.emitevent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceevents&&this._onceevents[e],o=0;o