/*!
* parallax.js v1.5.0 (http://pixelcog.github.io/parallax.js/)
* @copyright 2016 pixelcog, inc.
* @license mit (https://github.com/pixelcog/parallax.js/blob/master/license)
*/
!function(t,i,e,s){function o(i,e){var h=this;"object"==typeof e&&(delete e.refresh,delete e.render,t.extend(this,e)),this.$element=t(i),!this.imagesrc&&this.$element.is("img")&&(this.imagesrc=this.$element.attr("src"));var r=(this.position+"").tolowercase().match(/\s+/g)||[];if(r.length<1&&r.push("center"),1==r.length&&r.push(r[0]),"top"!=r[0]&&"bottom"!=r[0]&&"left"!=r[1]&&"right"!=r[1]||(r=[r[1],r[0]]),this.positionx!==s&&(r[0]=this.positionx.tolowercase()),this.positiony!==s&&(r[1]=this.positiony.tolowercase()),h.positionx=r[0],h.positiony=r[1],"left"!=this.positionx&&"right"!=this.positionx&&(isnan(parseint(this.positionx))?this.positionx="center":this.positionx=parseint(this.positionx)),"top"!=this.positiony&&"bottom"!=this.positiony&&(isnan(parseint(this.positiony))?this.positiony="center":this.positiony=parseint(this.positiony)),this.position=this.positionx+(isnan(this.positionx)?"":"px")+" "+this.positiony+(isnan(this.positiony)?"":"px"),navigator.useragent.match(/(ipod|iphone|ipad)/))return this.imagesrc&&this.iosfix&&!this.$element.is("img")&&this.$element.css({backgroundimage:"url("+this.imagesrc+")",backgroundsize:"cover",backgroundposition:this.position}),this;if(navigator.useragent.match(/(android)/))return this.imagesrc&&this.androidfix&&!this.$element.is("img")&&this.$element.css({backgroundimage:"url("+this.imagesrc+")",backgroundsize:"cover",backgroundposition:this.position}),this;this.$mirror=t("
").prependto(this.mirrorcontainer);var a=this.$element.find(">.parallax-slider"),n=!1;0==a.length?this.$slider=t("").prependto(this.$mirror):(this.$slider=a.prependto(this.$mirror),n=!0),this.$mirror.addclass("parallax-mirror").css({visibility:"hidden",zindex:this.zindex,position:"fixed",top:0,left:0,overflow:"hidden"}),this.$slider.addclass("parallax-slider").one("load",function(){h.naturalheight&&h.naturalwidth||(h.naturalheight=this.naturalheight||this.height||1,h.naturalwidth=this.naturalwidth||this.width||1),h.aspectratio=h.naturalwidth/h.naturalheight,o.issetup||o.setup(),o.sliders.push(h),o.isfresh=!1,o.requestrender()}),n||(this.$slider[0].src=this.imagesrc),(this.naturalheight&&this.naturalwidth||this.$slider[0].complete||a.length>0)&&this.$slider.trigger("load")}!function(){for(var t=0,e=["ms","moz","webkit","o"],s=0;s=this.boxwidth?(this.imagewidth=r*this.aspectratio|0,this.imageheight=r,this.offsetbasetop=a,t=this.imagewidth-this.boxwidth,"left"==this.positionx?this.offsetleft=0:"right"==this.positionx?this.offsetleft=-t:isnan(this.positionx)?this.offsetleft=-t/2|0:this.offsetleft=math.max(this.positionx,-t)):(this.imagewidth=this.boxwidth,this.imageheight=this.boxwidth/this.aspectratio|0,this.offsetleft=0,t=this.imageheight-r,"top"==this.positiony?this.offsetbasetop=a:"bottom"==this.positiony?this.offsetbasetop=a-t:isnan(this.positiony)?this.offsetbasetop=a-t/2|0:this.offsetbasetop=a+math.max(this.positiony,-t))},render:function(){var t=o.scrolltop,i=o.scrollleft,e=this.overscrollfix?o.overscroll:0,s=t+o.winheight;this.boxoffsetbottom>t&&this.boxoffsettop<=s?(this.visibility="visible",this.mirrortop=this.boxoffsettop-t,this.mirrorleft=this.boxoffsetleft-i,this.offsettop=this.offsetbasetop-this.mirrortop*(1-this.speed)):this.visibility="hidden",this.$mirror.css({transform:"translate3d("+this.mirrorleft+"px, "+(this.mirrortop-e)+"px, 0px)",visibility:this.visibility,height:this.boxheight,width:this.boxwidth}),this.$slider.css({transform:"translate3d("+this.offsetleft+"px, "+this.offsettop+"px, 0px)",position:"absolute",height:this.imageheight,width:this.imagewidth,maxwidth:"none"})}}),t.extend(o,{scrolltop:0,scrollleft:0,winheight:0,winwidth:0,docheight:1<<30,docwidth:1<<30,sliders:[],isready:!1,isfresh:!1,isbusy:!1,setup:function(){function s(){if(p==i.pageyoffset)return i.requestanimationframe(s),!1;p=i.pageyoffset,h.render(),i.requestanimationframe(s)}if(!this.isready){var h=this,r=t(e),a=t(i),n=function(){o.winheight=a.height(),o.winwidth=a.width(),o.docheight=r.height(),o.docwidth=r.width()},l=function(){var t=a.scrolltop(),i=o.docheight-o.winheight,e=o.docwidth-o.winwidth;o.scrolltop=math.max(0,math.min(i,t)),o.scrollleft=math.max(0,math.min(e,a.scrollleft())),o.overscroll=math.max(t-i,math.min(t,0))};a.on("resize.px.parallax load.px.parallax",function(){n(),h.refresh(),o.isfresh=!1,o.requestrender()}).on("scroll.px.parallax load.px.parallax",function(){l(),o.requestrender()}),n(),l(),this.isready=!0;var p=-1;s()}},configure:function(i){"object"==typeof i&&(delete i.refresh,delete i.render,t.extend(this.prototype,i))},refresh:function(){t.each(this.sliders,function(){this.refresh()}),this.isfresh=!0},render:function(){this.isfresh||this.refresh(),t.each(this.sliders,function(){this.render()})},requestrender:function(){var t=this;t.render(),t.isbusy=!1},destroy:function(e){var s,h=t(e).data("px.parallax");for(h.$mirror.remove(),s=0;s