/*!
* fullpage 2.7.4
* https://github.com/alvarotrigo/fullpage.js
* @license mit licensed
*
* copyright (c) 2015 alvarotrigo.com - a project by alvaro trigo
*/
(function(c,k){"function"===typeof define&&define.amd?define(["jquery"],function(m){return k(m,c,c.document,c.math)}):"undefined"!==typeof exports?module.exports=k(require("jquery"),c,c.document,c.math):k(jquery,c,c.document,c.math)})("undefined"!==typeof window?window:this,function(c,k,m,p,d){var n=c(k),t=c(m);c.fn.fullpage=function(d){function la(){d.css3&&(d.css3=ma());d.anchors.length||(d.anchors=c("[data-anchor]").map(function(){return c(this).data("anchor").tostring()}).get());na();e.setallowscrolling(!0);
q=n.height();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);ja();ka();n.on("load",function(){var a=k.location.hash.replace("#","").split("/"),c=a[0],a=a[1];c&&(d.animateanchor?u(c,a):e.silentmoveto(c,a))})}function na(){h.css({height:"100%",position:"relative"});h.addclass("fullpage-wrapper");c("html").addclass("fp-enabled");
h.removeclass("fp-destroyed");oa();c(".fp-section").each(function(a){var b=c(this),g=b.find(".fp-slide"),f=g.length;a||0!==c(".fp-section.active").length||b.addclass("active2");b.css("height",q+"px");d.paddingtop&&b.css("padding-top",d.paddingtop);d.paddingbottom&&b.css("padding-bottom",d.paddingbottom);"undefined"!==typeof d.sectionscolor[a]&&b.css("background-color",d.sectionscolor[a]);"undefined"!==typeof d.anchors[a]&&b.attr("data-anchor",d.anchors[a]);"undefined"!==typeof d.anchors[a]&&b.hasclass("active")&&
v(d.anchors[a],a);d.menu&&d.css3&&c(d.menu).closest(".fullpage-wrapper").length&&c(d.menu).appendto(r);0');b.parent().wrap('
');a.find(".fp-slidescontainer").css("width",f+"%");1');
"#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 qa(){r.append('');var a=c("#fp-nav");a.addclass(function(){return d.showactivetooltip?"fp-show-active "+d.navigationposition:d.navigationposition});
for(var b=0;b',f=d.navigationtooltips[b];"undefined"!==typeof f&&""!==f&&(g+=''+f+"
");g+="";a.find("ul").append(g)}c("#fp-nav").css("margin-top","-"+c("#fp-nav").height()/2+"px");c("#fp-nav").find("li").eq(c(".fp-section.active").index(".fp-section")).find("a").addclass("active")}function ma(){c(".fp-section").each(function(){var a=
c(this).find(".fp-slide");a.length?a.each(function(){i(c(this))}):i(c(this))});na()}function na(){var a=c(".fp-section.active"),b=a.find("slides_wrapper"),g=a.find(".fp-scrollable");b.length&&(g=b.find(".fp-slide.active"));g.mouseover();j(a);oa(a);c.isfunction(d.afterload)&&d.afterload.call(a,a.data("anchor"),a.index(".fp-section")+1);c.isfunction(d.afterrender)&&d.afterrender.call(h)}function pa(){var a;if(!d.autoscrolling||d.scrollbar){for(var b=n.scrolltop(),g=0,f=p.abs(b-m.queryselectorall(".fp-section")[0].offsettop),
e=m.queryselectorall(".fp-section"),h=0;h=b[0].scrollheight:void 0,d)c();else return!0;else c()}}function ta(a){var b=a.originalevent;if(!ra(a.target)&&ba(b)){d.autoscrolling&&a.preventdefault();a=c(".fp-section.active");var g=qa(a);u&&!w&&(b=sa(b),e=b.y,l=b.x,a.find(".fp-slides").length&&p.abs(m-l)>p.abs(f-e)?p.abs(m-l)>n.width()/100*d.touchsensitivity&&(m>l?l.m.right&&e.moveslideright():l.m.left&&e.moveslideleft()):d.autoscrolling&&
p.abs(f-e)>n.height()/100*d.touchsensitivity&&(f>e?k("down",g):e>f&&k("up",g)))}}function ra(a,b){b=b||0;var g=c(a).parent();return b=g&&e&&(0>f?k("down",a):k("up",a)));return!1}d.fittosection&&x.stop()}function va(a){var b=c(".fp-section.active").find(".fp-slides"),g=b.find(".fp-slide").length;if(!(!b.length||w||2>g)){var g=b.find(".fp-slide.active"),f=null,f="prev"===a?g.prev(".fp-slide"):g.next(".fp-slide");if(!f.length){if(!d.loophorizontal)return;f="prev"===a?g.siblings(":last"):g.siblings(":first")}w=!0;g(b,f)}}function wa(){c(".fp-slide.active").each(function(){t(c(this),"internal")})}function z(a,b,g){requestanimframe(function(){var f=
a.position();if("undefined"!==typeof f){var e=a.hasclass("fp-auto-height")?f.top-q+a.height():f.top,f={element:a,callback:b,ismovementup:g,dest:f,dtop:e,ymovement:x(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};if(!(f.activesection.is(a)&&!v||d.scrollbar&&n.scrolltop()===f.dtop&&!a.hasclass("fp-auto-height"))){if(f.activeslide.length)var h=
f.activeslide.data("anchor"),k=f.activeslide.index();d.autoscrolling&&d.continuousvertical&&"undefined"!==typeof f.ismovementup&&(!f.ismovementup&&"up"==f.ymovement||f.ismovementup&&"down"==f.ymovement)&&(f.ismovementup?c(".fp-section.active").before(f.activesection.nextall(".fp-section")):c(".fp-section.active").after(f.activesection.prevall(".fp-section").get().reverse()),h(c(".fp-section.active").position().top),wa(),f.wraparoundelements=f.activesection,f.dest=f.element.position(),f.dtop=f.dest.top,
f.ymovement=x(f.element));if(c.isfunction(d.onleave)&&!f.localisresizing){if(!1===d.onleave.call(f.activesection,f.leavingsection,f.sectionindex+1,f.ymovement))return;va(f.activesection)}a.addclass("active").siblings().removeclass("active");j(a);u=!1;y(k,h,f.anchorlink,f.sectionindex);wa(f);y=f.anchorlink;v(f.anchorlink,f.sectionindex)}}})}function wa(a){if(d.css3&&d.autoscrolling&&!d.scrollbar)xa("translate3d(0px, -"+a.dtop+"px, 0px)",!0),d.scrollingspeed?ca=settimeout(function(){da(a)},d.scrollingspeed):
da(a);else{var b=xa(a);c(b.element).animate(b.options,d.scrollingspeed,d.easing).promise().done(function(){da(a)})}}function xa(a){var b={};d.autoscrolling&&!d.scrollbar?(b.options={top:-a.dtop},b.element=".fullpage-wrapper"):(b.options={scrolltop:a.dtop},b.element="html, body");return b}function da(a){a.wraparoundelements&&a.wraparoundelements.length&&(a.ismovementup?c(".fp-section:first").before(a.wraparoundelements):c(".fp-section:last").after(a.wraparoundelements),h(c(".fp-section.active").position().top),
wa());a.element.find(".fp-scrollable").mouseover();c.isfunction(d.afterload)&&!a.localisresizing&&d.afterload.call(a.element,a.anchorlink,a.sectionindex+1);oa(a.element);u=!0;c.isfunction(a.callback)&&a.callback.call(this)}function j(a){var b=a.find(".fp-slide.active");b.length&&(a=c(b));a.find("img[data-src], source[data-src], audio[data-src]").each(function(){c(this).attr("src",c(this).data("src"));c(this).removeattr("data-src");c(this).is("source")&&c(this).closest("video").get(0).load()})}function oa(a){a.find("video, audio").each(function(){var a=
c(this).get(0);a.hasattribute("autoplay")&&"function"===typeof a.play&&a.play()})}function va(a){a.find("video, audio").each(function(){var a=c(this).get(0);a.hasattribute("data-ignore")||"function"!==typeof a.pause||a.pause()})}function ya(){if(!w&&!d.lockanchors){var a=k.location.hash.replace("#","").split("/"),b=a[0],a=a[1],c="undefined"===typeof y,f="undefined"===typeof y&&"undefined"===typeof a&&!w;b.length&&(b&&b!==y&&!c||f||!w&&ea!=a)&&u(b,a)}}function ya(a){u&&(a.pageyo&&e.movesectiondown());o=a.pagey}function g(a,b){var g=b.position(),f=b.index(),e=a.closest(".fp-section"),h=e.index(".fp-section"),k=e.data("anchor"),l=e.find(".fp-slidesnav"),m=fa(b),n=v;if(d.onslideleave){var q=e.find(".fp-slide.active"),r=q.index(),t;t=r==f?"none":r>f?"left":"right";if(!n&&"none"!==t&&c.isfunction(d.onslideleave)&&!1===d.onslideleave.call(q,k,h+1,r,t,f)){w=!1;return}}b.addclass("active").siblings().removeclass("active");n||j(b);!d.loophorizontal&&d.controlarrows&&(e.find(".fp-controlarrow.fp-prev").toggle(0!==
f),e.find(".fp-controlarrow.fp-next").toggle(!b.is(":last-child")));e.hasclass("active")&&y(f,m,k,h);var u=function(){n||c.isfunction(d.afterslideload)&&d.afterslideload.call(b,k,h+1,m,f);w=!1};d.css3?(g="translate3d(-"+p.round(g.left)+"px, 0px, 0px)",za(a.find(".fp-slidescontainer"),020*p.max(ha,a)/100&&(e.rebuild(!0),ha=a))}else cleartimeout(ia),ia=settimeout(function(){e.rebuild(!0)},350)}function ja(){var a=d.responsive||d.responsivewidth,b=d.responsiveheight,c=a&&n.width()a||900>b){var c=p.min(100*a/825,100*b/900).tofixed(2);r.css("font-size",c+"%")}else r.css("font-size","100%")}function v(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 x(a){var b=c(".fp-section.active").index(".fp-section");a=a.index(".fp-section");return b==a?"none":b>a?"up":"down"}function i(a){a.css("overflow","hidden");var b=a.closest(".fp-section"),c=a.find(".fp-scrollable"),f;c.length?f=c.get(0).scrollheight:(f=a.get(0).scrollheight,d.verticalcentered&&(f=a.find(".fp-tablecell").get(0).scrollheight));b=q-parseint(b.css("padding-bottom"))-parseint(b.css("padding-top"));f>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})):ca(a);a.css("overflow","")}function ca(a){a.find(".fp-scrollable").children().first().unwrap().unwrap();a.find(".slimscrollbar").remove();a.find(".slimscrollrail").remove()}function la(a){a.addclass("fp-table").wrapinner('')}function da(a){var b=
q;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=q-a;return b}function xa(a,b){b?za(h):h.addclass("fp-notransition");h.css(aa(a));settimeout(function(){h.removeclass("fp-notransition")},10)}function ea(a){var b=c('.fp-section[data-anchor="'+a+'"]');b.length||(b=c(".fp-section").eq(a-1));return b}function u(a,b){var c=ea(a);"undefined"===typeof b&&(b=0);a===y||c.hasclass("active")?fa(c,
b):z(c,function(){fa(c,b)})}function fa(a,b){if("undefined"!==typeof b){var c=a.find(".fp-slides"),d;d=a.find(".fp-slides");var e=d.find('.fp-slide[data-anchor="'+b+'"]');e.length||(e=d.find(".fp-slide").eq(b));d=e;d.length&&g(c,d)}}function sa(a,b){a.append('');var c=a.find(".fp-slidesnav");c.addclass(d.slidesnavposition);for(var f=0;f');c.css("margin-left","-"+c.width()/2+"px");c.find("li").first().find("a").addclass("active")}
function y(a,b,c,f){f="";d.anchors.length&&!d.lockanchors&&(a?("undefined"!==typeof c&&(f=c),"undefined"===typeof b&&(b=a),ea=b,ga(f+"/"+b)):("undefined"!==typeof a&&(ea=b),ga(c)));ka()}function ga(a){if(d.recordhistory)location.hash=a;else if(p||q)history.replacestate(d,d,"#"+a);else{var b=k.location.href.split("#")[0];k.location.replace(b+"#"+a)}}function fa(a){var b=a.data("anchor");a=a.index();"undefined"===typeof b&&(b=a);return b}function ka(){var a=c(".fp-section.active"),b=a.find(".fp-slide.active"),
d=fa(a),f=fa(b);a.index(".fp-section");a=string(d);b.length&&(a=a+"-"+f);a=a.replace("/","-").replace("#","");r[0].classname=r[0].classname.replace(regexp("\\b\\s?fp-viewing-[^\\s]+\\b","g"),"");r.addclass("fp-viewing-"+a)}function ma(){var a=m.createelement("p"),b,c={webkittransform:"-webkit-transform",otransform:"-o-transform",mstransform:"-ms-transform",moztransform:"-moz-transform",transform:"transform"};m.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]));m.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){r("autoscrolling",a,b);var g=c(".fp-section.active");d.autoscrolling&&!d.scrollbar?(x.css({overflow:"hidden",height:"100%"}),e.setrecordhistory(c.recordhistory,"internal"),h.css({"-ms-touch-action":"none","touch-action":"none"}),g.length&&h(g.position().top)):(x.css({overflow:"visible",height:"initial"}),e.setrecordhistory(!1,"internal"),h.css({"-ms-touch-action":"","touch-action":""}),h(0),g.length&&x.scrolltop(g.position().top))};e.setrecordhistory=function(a,b){r("recordhistory",
a,b)};e.setscrollingspeed=function(a,b){r("scrollingspeed",a,b)};e.setfittosection=function(a,b){r("fittosection",a,b)};e.setlockanchors=function(a){d.lockanchors=a};e.setmousewheelscrolling=function(a){if(a){a="";var b;k.addeventlistener?b="addeventlistener":(b="attachevent",a="on");var c="onwheel"in m.createelement("div")?"wheel":m.onmousewheel!==d?"mousewheel":"dommousescroll";if("dommousescroll"==c)m[b](a+"mozmousepixelscroll",a,!1);else m[b](a+c,a,!1)}else m.addeventlistener?(m.removeeventlistener("mousewheel",
a,!1),m.removeeventlistener("wheel",a,!1),m.removeeventlistener("mozmousepixelscroll",a,!1)):m.detachevent("onmousewheel",a)};e.setallowscrolling=function(a,b){"undefined"!==typeof b?(b=b.replace(/ /g,"").split(","),c.each(b,function(b,c){ia(a,c,"m")})):a?(e.setmousewheelscrolling(!0),$a()):(e.setmousewheelscrolling(!1),ab())};e.setkeyboardscrolling=function(a,b){"undefined"!==typeof b?(b=b.replace(/ /g,"").split(","),c.each(b,function(b,c){ia(a,c,"k")})):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&&z(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&&z(a,null,!1)};e.silentmoveto=function(a,b){requestanimframe(function(){e.setscrollingspeed(0,"internal")});e.moveto(a,b);requestanimframe(function(){e.setscrollingspeed(c.scrollingspeed,"internal")})};
e.moveto=function(a,b){var c=ea(a);"undefined"!==typeof b?u(a,b):0