(function(n,t,i,r,u){"use strict";n.fn.fullpage=function(f){function sr(n){n.find(".fp-slides").after('<div class="fp-controlArrow fp-prev"><\/div><div class="fp-controlArrow fp-next"><\/div>'),f.controlArrowColor!="@white"&&(n.find(".fp-controlArrow.fp-next").css("border-color","transparent transparent transparent "+f.controlArrowColor),n.find(".fp-controlArrow.fp-prev").css("border-color","transparent "+f.controlArrowColor+" transparent transparent")),f.loopHorizontal||n.find(".fp-controlArrow.fp-prev").hide()}function hr(){var u,t,e,i,r;for(n("body").append('<nav id="fp-nav" class="inpage-nav"><div class="btns"><ul><\/ul><\/div><\/nav>'),w=n("#fp-nav"),w.addClass(f.navigationPosition),u=f.anchors.length,t=0;t<u;t++)e="",f.anchors.length&&(e=f.anchors[t]),i="<li>",r=f.navigationTooltips[t],typeof r!="undefined"&&r!==""&&(i+='<a class="fp-tooltip '+f.navigationPosition+'"  href="#'+f.anchors[t]+'" ><img alt="" src="'+r+'"><\/a>'),i+="<\/li>",w.find("ul").append(i)}function ri(){n(".fp-section").each(function(){var t=n(this).find(".fp-slide");t.length?t.each(function(){lt(n(this))}):lt(n(this))}),n.isFunction(f.afterRender)&&f.afterRender.call(this)}function ei(){var u,e,d,v,nt,tt;if(!f.autoScrolling||f.scrollBar){var w=n(t).scrollTop(),b=0,k=r.abs(w-i.getElementsByClassName("fp-section")[0].offsetTop),l=i.getElementsByClassName("fp-section");for(e=0;e<l.length;++e)d=l[e],v=r.abs(w-d.offsetTop),v<k&&(b=e,k=v);u=n(l).eq(b)}if(!f.autoScrolling||f.scrollBar){if(!u.hasClass("active")){ft=!0;var g=n(".fp-section.active"),it=g.index(".fp-section")+1,rt=kt(u),o=u.data("anchor"),s=u.index(".fp-section")+1,y=u.find(".fp-slide.active");y.length&&(nt=y.data("anchor"),tt=y.index()),c&&(u.addClass("active").siblings().removeClass("active"),n.isFunction(f.onLeave)&&f.onLeave.call(g,it,s,rt),n.isFunction(f.afterLoad)&&f.afterLoad.call(u,o,s),ct(o,s-1),f.anchors.length&&(p=o,gt(tt,nt,o,s))),clearTimeout(ui),ui=setTimeout(function(){ft=!1},100)}f.fitToSection&&(clearTimeout(fi),fi=setTimeout(function(){c&&(n(".fp-section.active").is(u)&&(h=!0),a(u),h=!1)},1e3))}}function oi(n){return n.find(".fp-slides").length?n.find(".fp-slide.active").find(".fp-scrollable"):n.find(".fp-scrollable")}function et(n,t){if(l[n]){var r,i;if(n=="down"?(r="bottom",i=e.moveSectionDown):(r="top",i=e.moveSectionUp),t.length>0)if(iu(r,t))i();else return!0;else i()}}function cr(i){var h=i.originalEvent,u,o,s;!si(i.target)&&pt(h)&&(f.autoScrolling&&i.preventDefault(),u=n(".fp-section.active"),o=oi(u),c&&!y&&(s=er(h),g=s.y,st=s.x,u.find(".fp-slides").length&&r.abs(ot-st)>r.abs(d-g)?r.abs(ot-st)>n(t).width()/100*f.touchSensitivity&&(ot>st?l.right&&e.moveSlideRight():l.left&&e.moveSlideLeft()):f.autoScrolling&&r.abs(d-g)>n(t).height()/100*f.touchSensitivity&&(d>g?et("down",o):g>d&&et("up",o))))}function si(t,i){i=i||0;var r=n(t).parent();return i<f.normalScrollElementTouchThreshold&&r.is(f.normalScrollElements)?!0:i==f.normalScrollElementTouchThreshold?!1:si(r,++i)}function pt(n){return typeof n.pointerType=="undefined"||n.pointerType!="mouse"}function lr(t){var r=t.originalEvent,i;f.fitToSection&&n("html,body").stop(),pt(r)&&(i=er(r),d=i.y,ot=i.x)}function hi(n,t){for(var u=0,f=n.slice(r.max(n.length-t,1)),i=0;i<f.length;i++)u=u+f[i];return r.ceil(u/t)}function b(i){var e=(new Date).getTime(),u,o;if(f.autoScrolling){i=t.event||i,u=i.wheelDelta||-i.deltaY||-i.detail,o=r.max(-1,r.min(1,u)),k.length>149&&k.shift(),k.push(r.abs(u)),f.scrollBar&&(i.preventDefault?i.preventDefault():i.returnValue=!1);var l=n(".fp-section.active"),s=oi(l),a=e-wt;if(wt=e,c){var v=hi(k,10),y=hi(k,70),p=v>=y,h=a<=30;(p&&h||!h)&&(o<0?et("down",s):et("up",s))}return!1}f.fitToSection&&n("html,body").stop()}function ci(t){var e=n(".fp-section.active"),u=e.find(".fp-slides"),i,r;if(u.length&&!y){if(i=u.find(".fp-slide.active"),r=null,r=t==="prev"?i.prev(".fp-slide"):i.next(".fp-slide"),!r.length){if(!f.loopHorizontal)return;r=t==="prev"?i.siblings(":last"):i.siblings(":first")}y=!0,tt(u,r)}}function li(){n(".fp-slide.active").each(function(){ti(n(this))})}function a(i,r,u){var o=i.position(),e,s,l;typeof o!="undefined"&&((e={element:i,callback:r,isMovementUp:u,dest:o,dtop:o.top,yMovement:kt(i),anchorLink:i.data("anchor"),sectionIndex:i.index(".fp-section"),activeSlide:i.find(".fp-slide.active"),activeSection:n(".fp-section.active"),leavingSection:n(".fp-section.active").index(".fp-section")+1,localIsResizing:h},e.activeSection.is(i)&&!h||f.scrollBar&&n(t).scrollTop()===e.dtop)||(e.activeSlide.length&&(s=e.activeSlide.data("anchor"),l=e.activeSlide.index()),f.autoScrolling&&f.continuousVertical&&typeof e.isMovementUp!="undefined"&&(!e.isMovementUp&&e.yMovement=="up"||e.isMovementUp&&e.yMovement=="down")&&(e=yr(e)),i.addClass("active").siblings().removeClass("active"),c=!1,gt(l,s,e.anchorLink,e.sectionIndex),n.isFunction(f.onLeave)&&!e.localIsResizing&&f.onLeave.call(e.activeSection,e.leavingSection,e.sectionIndex+1,e.yMovement),ar(e),p=e.anchorLink,ct(e.anchorLink,e.sectionIndex)))}function ar(t){var r,i;f.css3&&f.autoScrolling&&!f.scrollBar?(r="translate3d(0px, -"+t.dtop+"px, 0px)",tr(r,!0),setTimeout(function(){ai(t)},f.scrollingSpeed)):(i=vr(t),n(i.element).animate(i.options,f.scrollingSpeed,f.easing).promise().done(function(){ai(t)}))}function vr(n){var t={};return f.autoScrolling&&!f.scrollBar?(t.options={top:-n.dtop},t.element="."+ii):(t.options={scrollTop:n.dtop},t.element="html, body"),t}function yr(t){return t.isMovementUp?n(".fp-section.active").before(t.activeSection.nextAll(".fp-section")):n(".fp-section.active").after(t.activeSection.prevAll(".fp-section").get().reverse()),v(n(".fp-section.active").position().top),li(),t.wrapAroundElements=t.activeSection,t.dest=t.element.position(),t.dtop=t.dest.top,t.yMovement=kt(t.element),t}function pr(t){t.wrapAroundElements&&t.wrapAroundElements.length&&(t.isMovementUp?n(".fp-section:first").before(t.wrapAroundElements):n(".fp-section:last").after(t.wrapAroundElements),v(n(".fp-section.active").position().top),li())}function ai(t){pr(t),n.isFunction(f.afterLoad)&&!t.localIsResizing&&f.afterLoad.call(t.element,t.anchorLink,t.sectionIndex+1),c=!0,setTimeout(function(){n.isFunction(t.callback)&&t.callback.call(this)},600)}function wr(){var n=t.location.hash.replace("#","").split("/"),i=n[0],r=n[1];i&&dt(i,r)}function vi(){var u,f;if(!ft){var r=t.location.hash.replace("#","").split("/"),n=r[0],i=r[1];n.length&&(u=typeof p=="undefined",f=typeof p=="undefined"&&typeof i=="undefined"&&!y,(n&&n!==p&&!u||f||!y&&yt!=i)&&dt(n,i))}}function br(t){var r,u,e;clearTimeout(yi),r=n(i.activeElement),r.is("textarea")||r.is("input")||r.is("select")||!f.keyboardScrolling||!f.autoScrolling||(u=t.which,e=[40,38,32,33,34],e.indexOf(u)>-1&&t.preventDefault(),yi=setTimeout(function(){kr(t)},150))}function kr(t){var i=t.shiftKey;switch(t.which){case 38:case 33:e.moveSectionUp();break;case 32:if(i){e.moveSectionUp();break}case 40:case 34:e.moveSectionDown();break;case 36:e.moveTo(1);break;case 35:e.moveTo(n(".fp-section").length);break;case 37:e.moveSlideLeft();break;case 39:e.moveSlideRight();break;default:return}}function dr(n){c&&(n.pageY<nt?e.moveSectionUp():n.pageY>nt&&e.moveSectionDown()),nt=n.pageY}function tt(t,i){var c=i.position(),d=t.find(".fp-slidesContainer").parent(),u=i.index(),r=t.closest(".fp-section"),e=r.index(".fp-section"),o=r.data("anchor"),l=r.find(".fp-slidesNav"),a=rr(i),v=h,s,k;if(f.onSlideLeave){var p=r.find(".fp-slide.active"),w=p.index(),b=ru(w,u);v||b==="none"||n.isFunction(f.onSlideLeave)&&f.onSlideLeave.call(p,o,e+1,w,b)}i.addClass("active").siblings().removeClass("active"),!f.loopHorizontal&&f.controlArrows&&(r.find(".fp-controlArrow.fp-prev").toggle(u!==0),r.find(".fp-controlArrow.fp-next").toggle(!i.is(":last-child"))),r.hasClass("active")&&gt(u,a,o,e),s=function(){v||n.isFunction(f.afterSlideLoad)&&f.afterSlideLoad.call(i,o,e+1,a,u),y=!1},f.css3?(k="translate3d(-"+c.left+"px, 0px, 0px)",ki(t.find(".fp-slidesContainer"),f.scrollingSpeed>0).css(or(k)),setTimeout(function(){s()},f.scrollingSpeed,f.easing)):d.animate({scrollLeft:c.left},f.scrollingSpeed,f.easing,function(){s()}),l.find(".active").removeClass("active"),l.find("li").eq(u).find("a").addClass("active")}function wi(){var u,f;bi(),it?(u=n(i.activeElement),u.is("textarea")||u.is("input")||u.is("select")||(f=n(t).height(),r.abs(f-ht)>r.max(ht,f)/5&&(e.reBuild(!0),ht=f))):(clearTimeout(pi),pi=setTimeout(function(){e.reBuild(!0)},500))}function bi(){if(f.responsive){var i=o.hasClass("fp-responsive");n(t).width()<f.responsive?i||(e.setAutoScrolling(!1,"internal"),e.setFitToSection(!1,"internal"),n("#fp-nav").hide(),o.addClass("fp-responsive")):i&&(e.setAutoScrolling(ut.autoScrolling,"internal"),e.setFitToSection(ut.autoScrolling,"internal"),n("#fp-nav").show(),o.removeClass("fp-responsive"))}}function ki(n){var t="all "+f.scrollingSpeed+"ms "+f.easingcss3;return n.removeClass("fp-notransition"),n.css({"-webkit-transition":t,transition:t})}function bt(n){return n.addClass("fp-notransition")}function gr(t,i){var u=825,f=900;if(t<u||i<f){var e=t*100/u,o=i*100/f,s=r.min(e,o),h=s.toFixed(2);n("body").css("font-size",h+"%")}else n("body").css("font-size","100%")}function nu(t,i){f.navigation&&(n("#fp-nav").find(".active").removeClass("active"),t?n("#fp-nav").find('a[href="#'+t+'"]').addClass("active"):n("#fp-nav").find("li").eq(i).find("a").addClass("active"))}function tu(t){f.menu&&(n(f.menu).find(".active").removeClass("active"),n(f.menu).find('[data-menuanchor="'+t+'"]').addClass("active"))}function ct(n,t){tu(n),nu(n,t)}function iu(n,t){return n==="top"?!t.scrollTop():n==="bottom"?t.scrollTop()+1+t.innerHeight()>=t[0].scrollHeight:void 0}function kt(t){var i=n(".fp-section.active").index(".fp-section"),r=t.index(".fp-section");return i==r?"none":i>r?"up":"down"}function ru(n,t){return n==t?"none":n>t?"left":"right"}function lt(n){var u,t,r,i;n.css("overflow","hidden"),u=n.closest(".fp-section"),t=n.find(".fp-scrollable"),t.length?r=t.get(0).scrollHeight:(r=n.get(0).scrollHeight,f.verticalCentered&&(r=n.find(".fp-tableCell").get(0).scrollHeight)),i=s-parseInt(u.css("padding-bottom"))-parseInt(u.css("padding-top")),r>i?t.length?t.css("height",i+"px").parent().css("height",i+"px"):(f.verticalCentered?n.find(".fp-tableCell").wrapInner('<div class="fp-scrollable" />'):n.wrapInner('<div class="fp-scrollable" />'),n.find(".fp-scrollable").slimScroll({allowPageScroll:!0,height:i+"px",size:"10px",alwaysVisible:!0})):di(n),n.css("overflow","")}function di(n){n.find(".fp-scrollable").children().first().unwrap().unwrap(),n.find(".slimScrollBar").remove(),n.find(".slimScrollRail").remove()}function gi(n){n.addClass("fp-table").wrapInner('<div class="fp-tableCell" style="height:'+nr(n)+'px;" />')}function nr(n){var i=s,t,r;return(f.paddingTop||f.paddingBottom)&&(t=n,t.hasClass("fp-section")||(t=n.closest(".fp-section")),r=parseInt(t.css("padding-top"))+parseInt(t.css("padding-bottom")),i=s-r),i}function tr(n,t){t?ki(o):bt(o),o.css(or(n)),setTimeout(function(){o.removeClass("fp-notransition")},10)}function dt(t,i){var r;typeof i=="undefined"&&(i=0),r=isNaN(t)?n('[data-anchor="'+t+'"]'):n(".fp-section").eq(t-1),t===p||r.hasClass("active")?ir(r,i):a(r,function(){ir(r,i)})}function ir(n,t){if(typeof t!="undefined"){var r=n.find(".fp-slides"),i=r.find('[data-anchor="'+t+'"]');i.length||(i=r.find(".fp-slide").eq(t)),i.length&&tt(r,i)}}function uu(n,t){var i,r;for(n.append('<div class="fp-slidesNav"><ul><\/ul><\/div>'),i=n.find(".fp-slidesNav"),i.addClass(f.slidesNavPosition),r=0;r<t;r++)i.find("ul").append('<li><a href="#"><span><\/span><\/a><\/li>');i.css("margin-left","-"+i.width()/2+"px"),i.find("li").first().find("a").addClass("active")}function gt(n,t,i){var r="";f.anchors.length&&(n?(typeof i!="undefined"&&(r=i),typeof t=="undefined"&&(t=n),yt=t,ni(r+"/"+t)):typeof n!="undefined"?(yt=t,ni(i)):ni(i)),ur()}function ni(n){if(f.recordHistory)location.hash=n;else if(it||rt)history.replaceState(u,u,"#"+n);else{var i=t.location.href.split("#")[0];t.location.replace(i+"#"+n)}}function rr(n){var t=n.data("anchor"),i=n.index(".fp-slide");return typeof t=="undefined"&&(t=i),t}function ur(){var i=n(".fp-section.active"),r=i.find(".fp-slide.active"),u=i.data("anchor"),e=rr(r),o=i.index(".fp-section"),t=String(o);f.anchors.length&&(t=u),r.length&&(t=t+"-"+e),t=t.replace("/","-").replace("#",""),n("body")[0].className=n("body")[0].className.replace(/\b\s?fp-viewing-[^\s]+\b/g,""),n("body").addClass("fp-viewing-"+t)}function fu(){var n=i.createElement("p"),r,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"},f;i.body.insertBefore(n,null);for(f in e)n.style[f]!==u&&(n.style[f]="translate3d(1px,1px,1px)",r=t.getComputedStyle(n).getPropertyValue(e[f]));return i.body.removeChild(n),r!==u&&r.length>0&&r!=="none"}function eu(){i.addEventListener?(i.removeEventListener("mousewheel",b,!1),i.removeEventListener("wheel",b,!1)):i.detachEvent("onmousewheel",b)}function ou(){i.addEventListener?(i.addEventListener("mousewheel",b,!1),i.addEventListener("wheel",b,!1)):i.attachEvent("onmousewheel",b)}function su(){if(it||rt){var t=fr();n(i).off("touchstart "+t.down).on("touchstart "+t.down,lr);n(i).off("touchmove "+t.move).on("touchmove "+t.move,cr)}}function hu(){if(it||rt){var t=fr();n(i).off("touchstart "+t.down),n(i).off("touchmove "+t.move)}}function fr(){return t.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function er(n){var t=[];return t.y=typeof n.pageY!="undefined"&&(n.pageY||n.pageX)?n.pageY:n.touches[0].pageY,t.x=typeof n.pageX!="undefined"&&(n.pageY||n.pageX)?n.pageX:n.touches[0].pageX,rt&&pt(n)&&(t.y=n.touches[0].pageY,t.x=n.touches[0].pageX),t}function ti(n){e.setScrollingSpeed(0,"internal"),tt(n.closest(".fp-slides"),n),e.setScrollingSpeed(ut.scrollingSpeed,"internal")}function v(n){if(f.scrollBar)o.scrollTop(n);else if(f.css3){var t="translate3d(0px, -"+n+"px, 0px)";tr(t,!1)}else o.css("top",-n)}function or(n){return{"-webkit-transform":n,"-moz-transform":n,"-ms-transform":n,transform:n}}function cu(n,t){switch(t){case"up":l.up=n;break;case"down":l.down=n;break;case"left":l.left=n;break;case"right":l.right=n;break;case"all":e.setAllowScrolling(n)}}function lu(){v(0),n("#fp-nav, .fp-slidesNav, .fp-controlArrow").remove(),n(".fp-section").css({height:"","background-color":"",padding:""}),n(".fp-slide").css({width:""}),o.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),n(".fp-section, .fp-slide").each(function(){di(n(this)),n(this).removeClass("fp-table active")}),bt(o),bt(o.find(".fp-easing")),o.find(".fp-tableCell, .fp-slidesContainer, .fp-slides").each(function(){n(this).replaceWith(this.childNodes)}),n("html, body").scrollTop(0)}function at(n,t,i){f[n]=t,i!=="internal"&&(ut[n]=t)}function au(){f.continuousVertical&&(f.loopTop||f.loopBottom)&&(f.continuousVertical=!1,vt("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),f.continuousVertical&&f.scrollBar&&(f.continuousVertical=!1,vt("warn","Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),n.each(f.anchors,function(t,i){(n("#"+i).length||n('[name="'+i+'"]').length)&&vt("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE).")})}function vt(n,t){console&&console[n]&&console[n]("fullPage: "+t)}var e=n.fn.fullpage,ui,fi,ft,wt,yi,nt,ht,pi;f=n.extend({menu:!1,anchors:[],navigation:!1,navigationPosition:"right",navigationTooltips:[],slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,normalScrollElements:null,scrollOverflow:!1,touchSensitivity:5,normalScrollElementTouchThreshold:5,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"@white",verticalCentered:!0,resize:!1,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,sectionSelector:".section",slideSelector:".slide",afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null},f),au(),n.extend(n.easing,{easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i}}),n.extend(n.easing,{easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i}}),e.setAutoScrolling=function(t,i){at("autoScrolling",t,i);var r=n(".fp-section.active");f.autoScrolling&&!f.scrollBar?(n("html, body").css({overflow:"hidden",height:"100%"}),e.setRecordHistory(f.recordHistory,"internal"),o.css({"-ms-touch-action":"none","touch-action":"none"}),r.length&&v(r.position().top)):(n("html, body").css({overflow:"visible",height:"100%"}),e.setRecordHistory(!1,"internal"),o.css({"-ms-touch-action":"","touch-action":""}),v(0),r.length&&n("html, body").scrollTop(r.position().top))},e.setRecordHistory=function(n,t){at("recordHistory",n,t)},e.setScrollingSpeed=function(n,t){at("scrollingSpeed",n,t)},e.setFitToSection=function(n,t){at("fitToSection",n,t)},e.setMouseWheelScrolling=function(n){n?ou():eu()},e.setAllowScrolling=function(t,i){typeof i!="undefined"?(i=i.replace(" ","").split(","),n.each(i,function(n,i){cu(t,i)})):t?(e.setMouseWheelScrolling(!0),su()):(e.setMouseWheelScrolling(!1),hu())},e.setKeyboardScrolling=function(n){f.keyboardScrolling=n},e.moveSectionUp=function(){var t=n(".fp-section.active").prev(".fp-section");!t.length&&(f.loopTop||f.continuousVertical)&&(t=n(".fp-section").last()),t.length&&a(t,null,!0)},e.moveSectionDown=function(){var t=n(".fp-section.active").next(".fp-section");!t.length&&(f.loopBottom||f.continuousVertical)&&(t=n(".fp-section").first()),t.length&&a(t,null,!1)},e.moveTo=function(t,i){var r="";r=isNaN(t)?n('[data-anchor="'+t+'"]'):n(".fp-section").eq(t-1),typeof i!="undefined"?dt(t,i):r.length>0&&a(r)},e.moveSlideRight=function(){ci("next")},e.moveSlideLeft=function(){ci("prev")},e.reBuild=function(i){var u,r;o.hasClass("fp-destroyed")||(h=!0,u=n(t).width(),s=n(t).height()-n("#galaxy-bar").height(),f.resize&&gr(s,u),n(".fp-section").each(function(){var i=n(this).find(".fp-slides"),t=n(this).find(".fp-slide");f.verticalCentered&&n(this).find(".fp-tableCell").css("height",nr(n(this))+"px"),n(this).css("height",s+"px"),f.scrollOverflow&&(t.length?t.each(function(){lt(n(this))}):lt(n(this))),t.length&&tt(i,i.find(".fp-slide.active"))}),r=n(".fp-section.active"),r.index(".fp-section")&&a(r),h=!1,n.isFunction(f.afterResize)&&i&&f.afterResize.call(o),n.isFunction(f.afterReBuild)&&!i&&f.afterReBuild.call(o))};var y=!1,it=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),rt="ontouchstart"in t||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,o=n(this),s=n(t).height(),h=!1,p,yt,c=!0,k=[],w,ii="fullpage-wrapper",l={up:!0,down:!0,left:!0,right:!0},ut=n.extend(!0,{},f);e.setAllowScrolling(!0),o.removeClass("fp-destroyed"),f.css3&&(f.css3=fu()),n(this).length?(o.css({height:"100%",position:"relative"}),o.addClass(ii)):vt("error","Error! Fullpage.js needs to be initialized with a selector. For example: $('#myContainer').fullpage();"),n(f.sectionSelector).each(function(){n(this).addClass("fp-section")}),n(f.slideSelector).each(function(){n(this).addClass("fp-slide")}),f.navigation&&hr(),n(".fp-section").each(function(t){var h=n(this),i=n(this).find(".fp-slide"),r=i.length,e,o,u;t||n(".fp-section.active").length!==0||n(this).addClass("active"),n(this).css("height",s+"px"),(f.paddingTop||f.paddingBottom)&&n(this).css("padding",f.paddingTop+" 0 "+f.paddingBottom+" 0"),typeof f.sectionsColor[t]!="undefined"&&n(this).css("background-color",f.sectionsColor[t]),typeof f.anchors[t]!="undefined"&&(n(this).attr("data-anchor",f.anchors[t]),n(this).hasClass("active")&&ct(f.anchors[t],t)),r>1?(e=r*100,o=100/r,i.wrapAll('<div class="fp-slidesContainer" />'),i.parent().wrap('<div class="fp-slides" />'),n(this).find(".fp-slidesContainer").css("width",e+"%"),f.controlArrows&&sr(n(this)),f.slidesNavigation&&uu(n(this),r),i.each(function(){n(this).css("width",o+"%"),f.verticalCentered&&gi(n(this))}),u=h.find(".fp-slide.active"),u.length?ti(u):i.eq(0).addClass("active")):f.verticalCentered&&gi(n(this))}).promise().done(function(){var s,h,u,r;if(e.setAutoScrolling(f.autoScrolling,"internal"),s=n(".fp-section.active").find(".fp-slide.active"),s.length&&(n(".fp-section.active").index(".fp-section")!==0||n(".fp-section.active").index(".fp-section")===0&&s.index()!==0)&&ti(s),f.fixedElements&&f.css3&&n(f.fixedElements).appendTo("body"),f.navigation&&(w.css("margin-top","-"+w.height()/2+"px"),w.find("li").eq(n(".fp-section.active").index(".fp-section")).find("a").addClass("active")),f.menu&&f.css3&&n(f.menu).closest(".fullpage-wrapper").length&&n(f.menu).appendTo("body"),f.scrollOverflow){i.readyState==="complete"&&ri();n(t).on("load",ri)}else n.isFunction(f.afterRender)&&f.afterRender.call(o);bi(),f.animateAnchor||(h=t.location.hash.replace("#","").split("/"),u=h[0],u.length&&(r=n('[data-anchor="'+u+'"]'),r.length&&(f.autoScrolling?v(r.position().top):(v(0),n("html, body").scrollTop(r.position().top)),ct(u,null),n.isFunction(f.afterLoad)&&f.afterLoad.call(r,u,r.index(".fp-section")+1),r.addClass("active").siblings().removeClass("active")))),ur();n(t).on("load",function(){wr()})}),ft=!1;n(t).on("scroll",ei);var d=0,ot=0,g=0,st=0;wt=(new Date).getTime();n(t).on("hashchange",vi);n(t).keydown(br),o.mousedown(function(n){if(n.which==2){nt=n.pageY;o.on("mousemove",dr)}}),o.mouseup(function(n){n.which==2&&o.off("mousemove")}),nt=0;n(i).on("click touchstart","#fp-nav a",function(t){t.preventDefault();var i=n(this).parent().index();a(n(".fp-section").eq(i))});n(i).on("click touchstart",".fp-slidesNav a",function(t){t.preventDefault();var i=n(this).closest(".fp-section").find(".fp-slides"),r=i.find(".fp-slide").eq(n(this).closest("li").index());tt(i,r)});if(f.normalScrollElements){n(i).on("mouseenter",f.normalScrollElements,function(){e.setMouseWheelScrolling(!1)});n(i).on("mouseleave",f.normalScrollElements,function(){e.setMouseWheelScrolling(!0)})}n(".fp-section").on("click touchstart",".fp-controlArrow",function(){n(this).hasClass("fp-prev")?e.moveSlideLeft():e.moveSlideRight()});n(t).resize(wi),ht=s,e.destroy=function(r){e.setAutoScrolling(!1,"internal"),e.setAllowScrolling(!1),e.setKeyboardScrolling(!1),o.addClass("fp-destroyed"),n(t).off("scroll",ei).off("hashchange",vi).off("resize",wi),n(i).off("click","#fp-nav a").off("mouseenter","#fp-nav li").off("mouseleave","#fp-nav li").off("click",".fp-slidesNav a").off("mouseover",f.normalScrollElements).off("mouseout",f.normalScrollElements),n(".fp-section").off("click",".fp-controlArrow"),r&&lu()}}})(jQuery,window,document,Math);
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Version: 1.3.2 (modified for fullpage.js)
 *
 */
(function(n){jQuery.fn.extend({slimScroll:function(i){var r=n.extend({width:"auto",height:"250px",size:"7px",color:"@black",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},i);return this.each(function(){function y(t){t=t||window.event;var i=0;t.wheelDelta&&(i=-t.wheelDelta/120),t.detail&&(i=t.detail/3),n(t.target||t.srcTarget||t.srcElement).closest("."+r.wrapperClass).is(u.parent())&&h(i,!0),t.preventDefault&&!o&&t.preventDefault(),o||(t.returnValue=!1)}function h(n,t,i){o=!1;var s=n,h=u.outerHeight()-f.outerHeight();t&&(s=parseInt(f.css("top"))+n*parseInt(r.wheelStep)/100*f.outerHeight(),s=Math.min(Math.max(s,0),h),s=0<n?Math.ceil(s):Math.floor(s),f.css({top:s+"px"})),e=parseInt(f.css("top"))/(u.outerHeight()-f.outerHeight()),s=e*(u[0].scrollHeight-u.outerHeight()),i&&(s=n,n=s/u[0].scrollHeight*u.outerHeight(),n=Math.min(Math.max(n,0),h),f.css({top:n+"px"})),u.scrollTop(s),u.trigger("slimscrolling",~~s),w(),l()}function it(){window.addEventListener?(this.addEventListener("DOMMouseScroll",y,!1),this.addEventListener("mousewheel",y,!1)):document.attachEvent("onmousewheel",y)}function p(){v=Math.max(u.outerHeight()/u[0].scrollHeight*u.outerHeight(),rt),f.css({height:v+"px"});var n=v==u.outerHeight()?"none":"block";f.css({display:n})}function w(){p(),clearTimeout(nt),e==~~e?(o=r.allowPageScroll,tt!=e&&u.trigger("slimscroll",0==~~e?"top":"bottom")):o=!1,tt=e,v>=u.outerHeight()?o=!0:(f.stop(!0,!0).fadeIn("fast"),r.railVisible&&s.stop(!0,!0).fadeIn("fast"))}function l(){r.alwaysVisible||(nt=setTimeout(function(){r.disableFadeOut&&b||k||d||(f.fadeOut("slow"),s.fadeOut("slow"))},1e3))}var b,k,d,nt,g,v,e,tt,rt=30,o=!1,u=n(this),c;if(u.parent().hasClass(r.wrapperClass)){var a=u.scrollTop(),f=u.parent().find("."+r.barClass),s=u.parent().find("."+r.railClass);if(p(),n.isPlainObject(i)){if("height"in i&&"auto"==i.height&&(u.parent().css("height","auto"),u.css("height","auto"),c=u.parent().parent().height(),u.parent().css("height",c),u.css("height",c)),"scrollTo"in i)a=parseInt(r.scrollTo);else if("scrollBy"in i)a+=parseInt(r.scrollBy);else if("destroy"in i){f.remove(),s.remove(),u.unwrap();return}h(a,!1,!0)}}else{r.height="auto"==i.height?u.parent().height():i.height,a=n("<div><\/div>").addClass(r.wrapperClass).css({position:"relative",overflow:"hidden",width:r.width,height:r.height}),u.css({overflow:"hidden",width:r.width,height:r.height});var s=n("<div><\/div>").addClass(r.railClass).css({width:r.size,height:"100%",position:"absolute",top:0,display:r.alwaysVisible&&r.railVisible?"block":"none","border-radius":r.railBorderRadius,background:r.railColor,opacity:r.railOpacity,zIndex:90}),f=n("<div><\/div>").addClass(r.barClass).css({background:r.color,width:r.size,position:"absolute",top:0,opacity:r.opacity,display:r.alwaysVisible?"block":"none","border-radius":r.borderRadius,BorderRadius:r.borderRadius,MozBorderRadius:r.borderRadius,WebkitBorderRadius:r.borderRadius,zIndex:99}),c="right"==r.position?{right:r.distance}:{left:r.distance};s.css(c),f.css(c),u.wrap(a),u.parent().append(f),u.parent().append(s),r.railDraggable&&f.bind("mousedown",function(i){var r=n(document);return d=!0,t=parseFloat(f.css("top")),pageY=i.pageY,r.bind("mousemove.slimscroll",function(n){currTop=t+n.pageY-pageY,f.css("top",currTop),h(0,f.position().top,!1)}),r.bind("mouseup.slimscroll",function(){d=!1,l(),r.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(n){return n.stopPropagation(),n.preventDefault(),!1}),s.hover(function(){w()},function(){l()}),f.hover(function(){k=!0},function(){k=!1}),u.hover(function(){b=!0,w(),l()},function(){b=!1,l()}),u.bind("touchstart",function(n){n.originalEvent.touches.length&&(g=n.originalEvent.touches[0].pageY)}),u.bind("touchmove",function(n){o||n.originalEvent.preventDefault(),n.originalEvent.touches.length&&(h((g-n.originalEvent.touches[0].pageY)/r.touchScrollStep,!0),g=n.originalEvent.touches[0].pageY)}),p(),"bottom"===r.start?(f.css({top:u.outerHeight()-f.outerHeight()}),h(0,!0)):"top"!==r.start&&(h(n(r.start).position().top,null,!0),r.alwaysVisible||f.hide()),it()}}),this}}),jQuery.fn.extend({slimscroll:jQuery.fn.slimScroll})})(jQuery),$(function(){inpage_nav.init(),section_box.init(),$(".video-block").find("a").fancybox({scrollOutside:!1})});var section_box={$elms:null,$galaxyBar:null,init:function(){section_box.$elms=$(".section-box"),section_box.$galaxyBar=$("#galaxy-bar"),$(".news-carousel").bxSlider({slideSelector:".news-slide",adaptiveHeight:!1,auto:!1}),$(".news-carousel .news-slide").each(function(){$(this).css({"background-image":"url("+$(this).data("background")+")"})}),enquire.register("all and (min-width: 641px)",{match:function(){section_box.setHeight();$(window).on("resize",function(){section_box.boxesContentResizing(),section_box.setHeight()})}}),enquire.register("all and (max-width: 641px)",{match:function(){section_box.boxesContentAutoResizing();$(window).on("resize",function(){section_box.boxesContentAutoResizing()})}}),enquire.register("all and (min-width: 320px)",{setup:function(){section_box.loadBck("desktop"),section_box.boxesContentAutoResizing()},deferSetup:!0}),this.navigation(),this.setupClicks()},setHeight:function(n){var r=$(window).height(),t=section_box.$elms.find(".modules"),i=0;n?section_box.$elms.find(".top").css({height:"80%"}):(i=r-(t.height()+$("#galaxy-bar").height()),section_box.$elms.find(".top,.news-carousel").css({height:i}),section_box.$elms.find(".fp-slidesNav.bottom").css({bottom:t.height()+20}))},loadBck:function(n){n=="desktop"?section_box.$elms.each(function(){$(this).find(".top").css("background-image","url("+$(this).data(n)+")"),$(this).css("background-image","none")}):n=="phone"&&section_box.$elms.each(function(){$(this).find(".top").prepend('<img class="backgroundImg" src="'+$(this).data(n)+'" />'),$(this).css("background-image","none")})},navigation:function(){this.$elms.find(".navigation .lbl").on("click","a",function(n){n.preventDefault(),$(this).parent().toggleClass("open")})},setupClicks:function(){$(document).on("click",".clickablecta",function(n){var t=$(this).find(".btnBlue");t.length>0&&(n=n||window.event,n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation(),window.location.href=t.first().attr("href"))})},boxesContentResizing:function(){var n=0,t=section_box.$elms.find(".box header"),i=section_box.$elms.find(".box h3");i.height("auto"),t.height("auto"),i.each(function(){n=Math.max(n,$(this).height())}),i.height(n),n=0,t.each(function(){n=Math.max(n,$(this).height())}),t.height(n)},boxesContentAutoResizing:function(){var n=section_box.$elms.find(".box header"),t=section_box.$elms.find(".box h3");t.height("auto"),n.height("auto")}},inpage_nav={$nav:null,$sectionBoxes:null,lastPosY:0,fullPage:null,init:function(){inpage_nav.$nav=$(".inpage-nav"),inpage_nav.$sectionBoxes=$(".section-box");var n=[],t=[];$("section.magnetic").each(function(){var i=$(this).attr("data-section"),r=i.substring(i.indexOf("#")+1);n.push(r),t.push($(this).attr("data-navicon"))}),$(".content-wrapper").fullpage({anchors:n,sectionSelector:"section.magnetic",navigation:!1,slidesNavigation:!1,navigationTooltips:t,scrollOverflow:!0,paddingTop:40}),window.location.hash!=""&&setTimeout(function(){var n=window.location.hash;$.fn.fullpage.moveTo(n.substring(n.indexOf("#")+1))},400);$("a.scrollTo").on("click",function(n){this.hash[0]=="#"&&(n.preventDefault(),$.fn.fullpage.moveTo(this.hash.substring(this.hash.indexOf("#")+1)))})}}