/**
* fullPage 2.5.9
* https://github.com/alvarotrigo/fullPage.js
* MIT licensed
*
* Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
*/
(function(c,k,g,l,D){c.fn.fullpage=function(d){function Aa(a){a.find(".fp-slides").after('
');"#fff"!=d.controlArrowColor&&(a.find(".fp-controlArrow.fp-next").css("border-color","transparent transparent transparent "+d.controlArrowColor),a.find(".fp-controlArrow.fp-prev").css("border-color","transparent "+d.controlArrowColor+" transparent transparent"));d.loopHorizontal||a.find(".fp-controlArrow.fp-prev").hide()}
function Ba(){c("body").append('');q=c("#fp-nav");q.addClass(d.navigationPosition);for(var a=0;a',h=d.navigationTooltips[a];"undefined"!==typeof h&&""!==h&&(b+=''+h+"
");b+="";q.find("ul").append(b)}}function Z(){c(".fp-section").each(function(){var a=c(this).find(".fp-slide");a.length?a.each(function(){E(c(this))}):
E(c(this))});c.isFunction(d.afterRender)&&d.afterRender.call(this)}function aa(){var a;if(!d.autoScrolling||d.scrollBar){for(var b=c(k).scrollTop(),h=0,F=l.abs(b-g.getElementsByClassName("fp-section")[0].offsetTop),e=g.getElementsByClassName("fp-section"),f=0;f=b[0].scrollHeight:void 0,c)d();else return!0;else d()}}function Ca(a){var b=a.originalEvent;if(!ea(a.target)&&fa(b)){d.autoScrolling&&a.preventDefault();a=c(".fp-section.active");var h=da(a);r&&!x&&(b=ga(b),z=b.y,I=b.x,a.find(".fp-slides").length&&
l.abs(J-I)>l.abs(A-z)?l.abs(J-I)>c(k).width()/100*d.touchSensitivity&&(J>I?m.right&&e.moveSlideRight():m.left&&e.moveSlideLeft()):d.autoScrolling&&l.abs(A-z)>c(k).height()/100*d.touchSensitivity&&(A>z?H("down",h):z>A&&H("up",h)))}}function ea(a,b){b=b||0;var h=c(a).parent();return b=e&&(0>h?H("down",a):H("up",
a))}return!1}d.fitToSection&&c("html,body").stop()}function ia(a){var b=c(".fp-section.active").find(".fp-slides");if(b.length&&!x){var h=b.find(".fp-slide.active"),e=null,e="prev"===a?h.prev(".fp-slide"):h.next(".fp-slide");if(!e.length){if(!d.loopHorizontal)return;e="prev"===a?h.siblings(":last"):h.siblings(":first")}x=!0;C(b,e)}}function ja(){c(".fp-slide.active").each(function(){T(c(this))})}function t(a,b,h){var e=a.position();if("undefined"!==typeof e&&(b={element:a,callback:b,isMovementUp:h,
dest:e,dtop:e.top,yMovement:R(a),anchorLink:a.data("anchor"),sectionIndex:a.index(".fp-section"),activeSlide:a.find(".fp-slide.active"),activeSection:c(".fp-section.active"),leavingSection:c(".fp-section.active").index(".fp-section")+1,localIsResizing:v},!(b.activeSection.is(a)&&!v||d.scrollBar&&c(k).scrollTop()===b.dtop))){if(b.activeSlide.length)var f=b.activeSlide.data("anchor"),g=b.activeSlide.index();d.autoScrolling&&d.continuousVertical&&"undefined"!==typeof b.isMovementUp&&(!b.isMovementUp&&
"up"==b.yMovement||b.isMovementUp&&"down"==b.yMovement)&&(b.isMovementUp?c(".fp-section.active").before(b.activeSection.nextAll(".fp-section")):c(".fp-section.active").after(b.activeSection.prevAll(".fp-section").get().reverse()),p(c(".fp-section.active").position().top),ja(),b.wrapAroundElements=b.activeSection,b.dest=b.element.position(),b.dtop=b.dest.top,b.yMovement=R(b.element));a.addClass("active").siblings().removeClass("active");r=!1;S(g,f,b.anchorLink,b.sectionIndex);c.isFunction(d.onLeave)&&
!b.localIsResizing&&d.onLeave.call(b.activeSection,b.leavingSection,b.sectionIndex+1,b.yMovement);Ea(b);u=b.anchorLink;G(b.anchorLink,b.sectionIndex)}}function Ea(a){if(d.css3&&d.autoScrolling&&!d.scrollBar)ka("translate3d(0px, -"+a.dtop+"px, 0px)",!0),setTimeout(function(){la(a)},d.scrollingSpeed);else{var b=Fa(a);c(b.element).animate(b.options,d.scrollingSpeed,d.easing).promise().done(function(){la(a)})}}function Fa(a){var b={};d.autoScrolling&&!d.scrollBar?(b.options={top:-a.dtop},b.element="."+
ma):(b.options={scrollTop:a.dtop},b.element="html, body");return b}function Ga(a){a.wrapAroundElements&&a.wrapAroundElements.length&&(a.isMovementUp?c(".fp-section:first").before(a.wrapAroundElements):c(".fp-section:last").after(a.wrapAroundElements),p(c(".fp-section.active").position().top),ja())}function la(a){Ga(a);c.isFunction(d.afterLoad)&&!a.localIsResizing&&d.afterLoad.call(a.element,a.anchorLink,a.sectionIndex+1);r=!0;setTimeout(function(){c.isFunction(a.callback)&&a.callback.call(this)},
600)}function na(){if(!Q){var a=k.location.hash.replace("#","").split("/"),b=a[0],a=a[1];if(b.length){var c="undefined"===typeof u,d="undefined"===typeof u&&"undefined"===typeof a&&!x;(b&&b!==u&&!c||d||!x&&U!=a)&&V(b,a)}}}function Ha(a){r&&(a.pageYK&&e.moveSectionDown());K=a.pageY}function C(a,b){var h=b.position(),e=a.find(".fp-slidesContainer").parent(),f=b.index(),g=a.closest(".fp-section"),k=g.index(".fp-section"),l=g.data("anchor"),n=g.find(".fp-slidesNav"),m=b.data("anchor"),
r=v;if(d.onSlideLeave){var t=g.find(".fp-slide.active"),p=t.index(),q;q=p==f?"none":p>f?"left":"right";r||"none"===q||c.isFunction(d.onSlideLeave)&&d.onSlideLeave.call(t,l,k+1,p,q)}b.addClass("active").siblings().removeClass("active");"undefined"===typeof m&&(m=f);!d.loopHorizontal&&d.controlArrows&&(g.find(".fp-controlArrow.fp-prev").toggle(0!==f),g.find(".fp-controlArrow.fp-next").toggle(!b.is(":last-child")));g.hasClass("active")&&S(f,m,l,k);var u=function(){r||c.isFunction(d.afterSlideLoad)&&
d.afterSlideLoad.call(b,l,k+1,m,f);x=!1};d.css3?(h="translate3d(-"+h.left+"px, 0px, 0px)",oa(a.find(".fp-slidesContainer"),020*l.max(W,
a)/100&&(e.reBuild(!0),W=a))}else clearTimeout(sa),sa=setTimeout(function(){e.reBuild(!0)},500)}function ra(){if(d.responsive){var a=f.hasClass("fp-responsive");c(k).width()a||900>b){var d=l.min(100*a/825,100*b/900).toFixed(2);c("body").css("font-size",d+"%")}else c("body").css("font-size","100%")}function G(a,b){d.menu&&(c(d.menu).find(".active").removeClass("active"),c(d.menu).find('[data-menuanchor="'+a+'"]').addClass("active"));d.navigation&&(c("#fp-nav").find(".active").removeClass("active"),
a?c("#fp-nav").find('a[href="#'+a+'"]').addClass("active"):c("#fp-nav").find("li").eq(b).find("a").addClass("active"))}function R(a){var b=c(".fp-section.active").index(".fp-section");a=a.index(".fp-section");return b==a?"none":b>a?"up":"down"}function E(a){a.css("overflow","hidden");var b=a.closest(".fp-section"),c=a.find(".fp-scrollable"),e;c.length?e=c.get(0).scrollHeight:(e=a.get(0).scrollHeight,d.verticalCentered&&(e=a.find(".fp-tableCell").get(0).scrollHeight));b=n-parseInt(b.css("padding-bottom"))-
parseInt(b.css("padding-top"));e>b?c.length?c.css("height",b+"px").parent().css("height",b+"px"):(d.verticalCentered?a.find(".fp-tableCell").wrapInner(''):a.wrapInner(''),a.find(".fp-scrollable").slimScroll({allowPageScroll:!0,height:b+"px",size:"10px",alwaysVisible:!0})):ta(a);a.css("overflow","")}function ta(a){a.find(".fp-scrollable").children().first().unwrap().unwrap();a.find(".slimScrollBar").remove();a.find(".slimScrollRail").remove()}
function ua(a){a.addClass("fp-table").wrapInner('')}function va(a){var b=n;if(d.paddingTop||d.paddingBottom)b=a,b.hasClass("fp-section")||(b=a.closest(".fp-section")),a=parseInt(b.css("padding-top"))+parseInt(b.css("padding-bottom")),b=n-a;return b}function ka(a,b){b?oa(f):X(f);f.css(pa(a));setTimeout(function(){f.removeClass("fp-notransition")},10)}function V(a,b){var d;"undefined"===typeof b&&(b=0);d=isNaN(a)?c('[data-anchor="'+a+'"]'):c(".fp-section").eq(a-
1);a===u||d.hasClass("active")?wa(d,b):t(d,function(){wa(d,b)})}function wa(a,b){if("undefined"!=typeof b){var c=a.find(".fp-slides"),d=c.find('[data-anchor="'+b+'"]');d.length||(d=c.find(".fp-slide").eq(b));d.length&&C(c,d)}}function Ja(a,b){a.append('');var c=a.find(".fp-slidesNav");c.addClass(d.slidesNavPosition);for(var e=0;e');c.css("margin-left","-"+c.width()/2+"px");c.find("li").first().find("a").addClass("active")}
function S(a,b,c,e){var f="";d.anchors.length?(a?("undefined"!==typeof c&&(f=c),"undefined"===typeof b&&(b=a),U=b,xa(f+"/"+b)):("undefined"!==typeof a&&(U=b),xa(c)),N(location.hash)):"undefined"!==typeof a?N(e+"-"+a):N(String(e))}function xa(a){if(d.recordHistory)location.hash=a;else if(L||Y)history.replaceState(D,D,"#"+a);else{var b=k.location.href.split("#")[0];k.location.replace(b+"#"+a)}}function N(a){a=a.replace("/","-").replace("#","");c("body")[0].className=c("body")[0].className.replace(/\b\s?fp-viewing-[^\s]+\b/g,
"");c("body").addClass("fp-viewing-"+a)}function Ka(){var a=g.createElement("p"),b,c={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};g.body.insertBefore(a,null);for(var d in c)a.style[d]!==D&&(a.style[d]="translate3d(1px,1px,1px)",b=k.getComputedStyle(a).getPropertyValue(c[d]));g.body.removeChild(a);return b!==D&&0(b/=e/2)?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c}});c.extend(c.easing,{easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c}});e.setAutoScrolling=function(a,b){O("autoScrolling",a,b);var h=c(".fp-section.active");d.autoScrolling&&!d.scrollBar?
(c("html, body").css({overflow:"hidden",height:"100%"}),e.setRecordHistory(d.recordHistory,"internal"),f.css({"-ms-touch-action":"none","touch-action":"none"}),h.length&&p(h.position().top)):(c("html, body").css({overflow:"visible",height:"initial"}),e.setRecordHistory(!1,"internal"),f.css({"-ms-touch-action":"","touch-action":""}),p(0),h.length&&c("html, body").scrollTop(h.position().top))};e.setRecordHistory=function(a,b){O("recordHistory",a,b)};e.setScrollingSpeed=function(a,b){O("scrollingSpeed",
a,b)};e.setFitToSection=function(a,b){O("fitToSection",a,b)};e.setMouseWheelScrolling=function(a){a?g.addEventListener?(g.addEventListener("mousewheel",y,!1),g.addEventListener("wheel",y,!1)):g.attachEvent("onmousewheel",y):g.addEventListener?(g.removeEventListener("mousewheel",y,!1),g.removeEventListener("wheel",y,!1)):g.detachEvent("onmousewheel",y)};e.setAllowScrolling=function(a,b){"undefined"!=typeof b?(b=b.replace(" ","").split(","),c.each(b,function(b,c){switch(c){case "up":m.up=a;break;case "down":m.down=
a;break;case "left":m.left=a;break;case "right":m.right=a;break;case "all":e.setAllowScrolling(a)}})):a?(e.setMouseWheelScrolling(!0),La()):(e.setMouseWheelScrolling(!1),Ma())};e.setKeyboardScrolling=function(a){d.keyboardScrolling=a};e.moveSectionUp=function(){var a=c(".fp-section.active").prev(".fp-section");a.length||!d.loopTop&&!d.continuousVertical||(a=c(".fp-section").last());a.length&&t(a,null,!0)};e.moveSectionDown=function(){var a=c(".fp-section.active").next(".fp-section");a.length||!d.loopBottom&&
!d.continuousVertical||(a=c(".fp-section").first());a.length&&t(a,null,!1)};e.moveTo=function(a,b){var d="",d=isNaN(a)?c('[data-anchor="'+a+'"]'):c(".fp-section").eq(a-1);"undefined"!==typeof b?V(a,b):0');e.parent().wrap('');c(this).find(".fp-slidesContainer").css("width",a+"%");d.controlArrows&&Aa(c(this));d.slidesNavigation&&Ja(c(this),f);e.each(function(a){c(this).css("width",g+"%");d.verticalCentered&&ua(c(this))});b=b.find(".fp-slide.active");b.length?T(b):e.eq(0).addClass("active")}else d.verticalCentered&&ua(c(this))}).promise().done(function(){e.setAutoScrolling(d.autoScrolling,
"internal");var a=c(".fp-section.active").find(".fp-slide.active");a.length&&(0!==c(".fp-section.active").index(".fp-section")||0===c(".fp-section.active").index(".fp-section")&&0!==a.index())&&T(a);d.fixedElements&&d.css3&&c(d.fixedElements).appendTo("body");d.navigation&&(q.css("margin-top","-"+q.height()/2+"px"),q.find("li").eq(c(".fp-section.active").index(".fp-section")).find("a").addClass("active"));d.menu&&d.css3&&c(d.menu).closest(".fullpage-wrapper").length&&c(d.menu).appendTo("body");d.scrollOverflow?
("complete"===g.readyState&&Z(),c(k).on("load",Z)):c.isFunction(d.afterRender)&&d.afterRender.call(f);ra();a=k.location.hash.replace("#","").split("/")[0];if(a.length){var b=c('[data-anchor="'+a+'"]');!d.animateAnchor&&b.length&&(d.autoScrolling?p(b.position().top):(p(0),N(a),c("html, body").scrollTop(b.position().top)),G(a,null),c.isFunction(d.afterLoad)&&d.afterLoad.call(b,a,b.index(".fp-section")+1),b.addClass("active").siblings().removeClass("active"))}c(k).on("load",function(){var a=k.location.hash.replace("#",
"").split("/"),b=a[0],a=a[1];b&&V(b,a)})});var ba,ca,Q=!1;c(k).on("scroll",aa);var A=0,J=0,z=0,I=0;c(k).on("hashchange",na);c(k).keydown(function(a){clearTimeout(za);var b=c(g.activeElement);b.is("textarea")||b.is("input")||b.is("select")||!d.keyboardScrolling||!d.autoScrolling||(-1<[40,38,32,33,34].indexOf(a.which)&&a.preventDefault(),za=setTimeout(function(){var b=a.shiftKey;switch(a.which){case 38:case 33:e.moveSectionUp();break;case 32:if(b){e.moveSectionUp();break}case 40:case 34:e.moveSectionDown();
break;case 36:e.moveTo(1);break;case 35:e.moveTo(c(".fp-section").length);break;case 37:e.moveSlideLeft();break;case 39:e.moveSlideRight()}},150))});var za;f.mousedown(function(a){2==a.which&&(K=a.pageY,f.on("mousemove",Ha))});f.mouseup(function(a){2==a.which&&f.off("mousemove")});var K=0;c(g).on("click touchstart","#fp-nav a",function(a){a.preventDefault();a=c(this).parent().index();t(c(".fp-section").eq(a))});c(g).on("click touchstart",".fp-slidesNav a",function(a){a.preventDefault();a=c(this).closest(".fp-section").find(".fp-slides");
var b=a.find(".fp-slide").eq(c(this).closest("li").index());C(a,b)});d.normalScrollElements&&(c(g).on("mouseenter",d.normalScrollElements,function(){e.setMouseWheelScrolling(!1)}),c(g).on("mouseleave",d.normalScrollElements,function(){e.setMouseWheelScrolling(!0)}));c(".fp-section").on("click touchstart",".fp-controlArrow",function(){c(this).hasClass("fp-prev")?e.moveSlideLeft():e.moveSlideRight()});c(k).resize(qa);var W=n,sa;e.destroy=function(a){e.setAutoScrolling(!1,"internal");e.setAllowScrolling(!1);
e.setKeyboardScrolling(!1);f.addClass("fp-destroyed");c(k).off("scroll",aa).off("hashchange",na).off("resize",qa);c(g).off("click","#fp-nav a").off("mouseenter","#fp-nav li").off("mouseleave","#fp-nav li").off("click",".fp-slidesNav a").off("mouseover",d.normalScrollElements).off("mouseout",d.normalScrollElements);c(".fp-section").off("click",".fp-controlArrow");a&&Na()}}})(jQuery,window,document,Math);