/**
* fullPage 2.5.7
* https://github.com/alvarotrigo/fullPage.js
* MIT licensed
*
* Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
*/
(function(c,k,g,l,C){c.fn.fullpage=function(d){function za(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 Aa(){c("body").append('');r=c("#fp-nav");r.addClass(d.navigationPosition);for(var a=0;a',h=d.navigationTooltips[a];"undefined"!==typeof h&&""!=h&&(b+=''+h+"
");b+="";r.find("ul").append(b)}}function Y(){c(".fp-section").each(function(){var a=c(this).find(".fp-slide");a.length?a.each(function(){D(c(this))}):
D(c(this))});c.isFunction(d.afterRender)&&d.afterRender.call(this)}function Z(){var a;if(!d.autoScrolling||d.scrollBar){var b=c(k).scrollTop(),h=0,E=l.abs(b-g.getElementsByClassName("fp-section")[0].offsetTop),e=g.getElementsByClassName("fp-section");for(i=0;i=b[0].scrollHeight:void 0,c)d();else return!0;else d()}}function Ba(a){var b=a.originalEvent;if(!da(a.target)&&ea(b)){d.autoScrolling&&a.preventDefault();a=c(".fp-section.active");var h=ca(a);t&&!w&&(b=fa(b),y=b.y,H=b.x,a.find(".fp-slides").length&&
l.abs(I-H)>l.abs(z-y)?l.abs(I-H)>c(k).width()/100*d.touchSensitivity&&(I>H?n.right&&e.moveSlideRight():n.left&&e.moveSlideLeft()):d.autoScrolling&&l.abs(z-y)>c(k).height()/100*d.touchSensitivity&&(z>y?G("down",h):y>z&&G("up",h)))}}function da(a,b){b=b||0;var h=c(a).parent();return b=e&&
(0>h?G("down",a):G("up",a))}return!1}d.fitToSection&&c("html,body").stop()}function ha(a){var b=c(".fp-section.active").find(".fp-slides");if(b.length&&!w){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")}w=!0;B(b,e)}}function ia(){c(".fp-slide.active").each(function(){S(c(this))})}function q(a,b,h){var e=a.position();if("undefined"!==typeof e&&(b={element:a,
callback:b,isMovementUp:h,dest:e,dtop:e.top,yMovement:Q(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),ia(),b.wrapAroundElements=b.activeSection,b.dest=b.element.position(),b.dtop=b.dest.top,b.yMovement=Q(b.element));a.addClass("active").siblings().removeClass("active");t=!1;R(g,f,b.anchorLink,b.sectionIndex);c.isFunction(d.onLeave)&&
!b.localIsResizing&&d.onLeave.call(b.activeSection,b.leavingSection,b.sectionIndex+1,b.yMovement);Da(b);u=b.anchorLink;F(b.anchorLink,b.sectionIndex)}}function Da(a){if(d.css3&&d.autoScrolling&&!d.scrollBar)ja("translate3d(0px, -"+a.dtop+"px, 0px)",!0),setTimeout(function(){ka(a)},d.scrollingSpeed);else{var b=Ea(a);c(b.element).animate(b.options,d.scrollingSpeed,d.easing).promise().done(function(){ka(a)})}}function Ea(a){var b={};d.autoScrolling&&!d.scrollBar?(b.options={top:-a.dtop},b.element="."+
la):(b.options={scrollTop:a.dtop},b.element="html, body");return b}function Fa(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),ia())}function ka(a){Fa(a);c.isFunction(d.afterLoad)&&!a.localIsResizing&&d.afterLoad.call(a.element,a.anchorLink,a.sectionIndex+1);t=!0;setTimeout(function(){c.isFunction(a.callback)&&a.callback.call(this)},
600)}function ma(){if(!P){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&&!w;(b&&b!==u&&!c||d||!w&&T!=a)&&U(b,a)}}}function Ga(a){t&&(a.pageYJ&&e.moveSectionDown());J=a.pageY}function B(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"),m=g.find(".fp-slidesNav"),n=b.data("anchor"),
p=v;if(d.onSlideLeave){var t=g.find(".fp-slide.active"),q=t.index(),r;r=q==f?"none":q>f?"left":"right";p||"none"===r||c.isFunction(d.onSlideLeave)&&d.onSlideLeave.call(t,l,k+1,q,r)}b.addClass("active").siblings().removeClass("active");"undefined"===typeof n&&(n=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")&&R(f,n,l,k);var u=function(){p||c.isFunction(d.afterSlideLoad)&&d.afterSlideLoad.call(b,
l,k+1,n,f);w=!1};d.css3?(h="translate3d(-"+h.left+"px, 0px, 0px)",na(a.find(".fp-slidesContainer"),020*l.max(V,a)/100&&(e.reBuild(!0),
V=a))}else clearTimeout(ra),ra=setTimeout(function(){e.reBuild(!0)},500)}function qa(){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 F(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 Q(a){var b=c(".fp-section.active").index(".fp-section");a=a.index(".fp-section");return b==a?"none":b>a?"up":"down"}function D(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=m-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})):sa(a);a.css("overflow","")}function sa(a){a.find(".fp-scrollable").children().first().unwrap().unwrap();a.find(".slimScrollBar").remove();a.find(".slimScrollRail").remove()}function ta(a){a.addClass("fp-table").wrapInner('')}function ua(a){var b=m;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=m-a;return b}function ja(a,b){b?na(f):W(f);f.css(oa(a));setTimeout(function(){f.removeClass("fp-notransition")},10)}function U(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")?va(d,b):q(d,function(){va(d,b)})}function va(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&&B(c,d)}}function Ia(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 R(a,b,c,e){var f="";d.anchors.length?
(a?("undefined"!==typeof c&&(f=c),"undefined"===typeof b&&(b=a),T=b,wa(f+"/"+b)):("undefined"!==typeof a&&(T=b),wa(c)),M(location.hash)):"undefined"!==typeof a?M(e+"-"+a):M(String(e))}function wa(a){if(d.recordHistory)location.hash=a;else if(K||X)history.replaceState(C,C,"#"+a);else{var b=k.location.href.split("#")[0];k.location.replace(b+"#"+a)}}function M(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 Ja(){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]!==C&&(a.style[d]="translate3d(1px,1px,1px)",b=k.getComputedStyle(a).getPropertyValue(c[d]));g.body.removeChild(a);return b!==C&&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){N("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){N("recordHistory",a,b)};e.setScrollingSpeed=function(a,b){N("scrollingSpeed",a,b)};e.setFitToSection=function(a,b){N("fitToSection",
a,b)};e.setMouseWheelScrolling=function(a){a?g.addEventListener?(g.addEventListener("mousewheel",x,!1),g.addEventListener("wheel",x,!1)):g.attachEvent("onmousewheel",x):g.addEventListener?(g.removeEventListener("mousewheel",x,!1),g.removeEventListener("wheel",x,!1)):g.detachEvent("onmousewheel",x)};e.setAllowScrolling=function(a,b){"undefined"!=typeof b?(b=b.replace(" ","").split(","),c.each(b,function(b,c){switch(c){case "up":n.up=a;break;case "down":n.down=a;break;case "left":n.left=a;break;case "right":n.right=
a;break;case "all":e.setAllowScrolling(a)}})):a?(e.setMouseWheelScrolling(!0),Ka()):(e.setMouseWheelScrolling(!1),La())};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&&q(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&&q(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?U(a,b):0');e.parent().wrap('');c(this).find(".fp-slidesContainer").css("width",a+"%");d.controlArrows&&za(c(this));d.slidesNavigation&&Ia(c(this),f);e.each(function(a){c(this).css("width",g+"%");d.verticalCentered&&ta(c(this))});b=b.find(".fp-slide.active");b.length?S(b):e.eq(0).addClass("active")}else d.verticalCentered&&ta(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())&&S(a);d.fixedElements&&d.css3&&c(d.fixedElements).appendTo("body");d.navigation&&(r.css("margin-top","-"+r.height()/2+"px"),r.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&&Y(),c(k).on("load",Y)):c.isFunction(d.afterRender)&&d.afterRender.call(f);qa();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),M(a),c("html, body").scrollTop(b.position().top)),F(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&&U(b,a)})});var aa,ba,P=!1;c(k).on("scroll",Z);var z=0,I=0,y=0,H=0;c(k).on("hashchange",ma);c(k).keydown(function(a){clearTimeout(ya);var b=c(g.activeElement);b.is("textarea")||b.is("input")||b.is("select")||!d.keyboardScrolling||!d.autoScrolling||(40!=a.which&&38!=a.which&&32!=a.which||a.preventDefault(),ya=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 37:e.moveSlideLeft();break;case 35:e.moveTo(c(".fp-section").length);break;case 39:e.moveSlideRight()}},150))});var ya;f.mousedown(function(a){2==a.which&&(J=a.pageY,f.on("mousemove",Ga))});f.mouseup(function(a){2==a.which&&f.off("mousemove")});var J=0;c(g).on("click touchstart","#fp-nav a",function(a){a.preventDefault();a=c(this).parent().index();q(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());B(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(pa);var V=m,ra;e.destroy=function(a){e.setAutoScrolling(!1,"internal");e.setAllowScrolling(!1);
e.setKeyboardScrolling(!1);f.addClass("fp-destroyed");c(k).off("scroll",Z).off("hashchange",ma).off("resize",pa);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&&Ma()}}})(jQuery,window,document,Math);