/** * fullpage 2.2.2 * https://github.com/alvarotrigo/fullpage.js * mit licensed * * copyright (c) 2013 alvarotrigo.com - a project by alvaro trigo */ (function(a){a.fn.fullpage=function(c){function n(){a(".fp-section").each(function(){var b=a(this).find(".fp-slide");b.length?b.each(function(){a(a(this))}):a(a(this))});a.isfunction(c.afterrender)&&c.afterrender.call(this)}function o(){if(!c.autoscrolling){var b=a(window).scrolltop(),d=a(".fp-section").map(function(){if(a(this).offset().topmath.abs(z-y))math.abs(c-b)> a(window).width()/100*c.touchsensitivity&&(c>b?a.fn.fullpage.moveslideright():a.fn.fullpage.moveslideleft());else if(c.autoscrolling&&(d=b.find(".fp-slides").length?b.find(".fp-slide.active").find(".fp-scrollable"):b.find(".fp-scrollable"),math.abs(z-y)>a(window).height()/100*c.touchsensitivity))if(z>y)if(0z)if(0b)if(0g?"left":"right";l||a.isfunction(c.onslideleave)&&c.onslideleave.call(this, r,h+1,n,p)}d.addclass("active").siblings().removeclass("active");"undefined"===typeof s&&(s=g);c.loophorizontal||(m.find(".fp-controlarrow.fp-prev").toggle(0!=g),m.find(".fp-controlarrow.fp-next").toggle(!d.is(":last-child")));m.hasclass("active")&&t(g,s,r);c.css3?(e="translate3d(-"+e.left+"px, 0px, 0px)",b.find(".fp-slidescontainer").toggleclass("fp-easing",0b||900>d?(900>d&&(f=d,c=900),c=(100*f/c).tofixed(2),a("body").css("font-size",c+"%")):a("body").css("font-size","100%")}function j(b,d){c.navigation&&(a("#fp-nav").find(".active").removeclass("active"),b?a("#fp-nav").find('a[href="#'+ b+'"]').addclass("active"):a("#fp-nav").find("li").eq(d).find("a").addclass("active"))}function i(b){c.menu&&(a(c.menu).find(".active").removeclass("active"),a(c.menu).find('[data-menuanchor="'+b+'"]').addclass("active"))}function d(b,a){if("top"===b)return!a.scrolltop();if("bottom"===b)return a.scrolltop()+1+a.innerheight()>=a[0].scrollheight}function h(b){var c=a(".fp-section.active").index(".fp-section");b=b.index(".fp-section");return c>b?"up":"down"}function a(b){b.css("overflow","hidden");var a= b.closest(".fp-section"),e=b.find(".fp-scrollable");if(e.length)var f=e.get(0).scrollheight;else f=b.get(0).scrollheight,c.verticalcentered&&(f=b.find(".fp-tablecell").get(0).scrollheight);a=n-parseint(a.css("padding-bottom"))-parseint(a.css("padding-top"));f>a?e.length?e.css("height",a+"px").parent().css("height",a+"px"):(c.verticalcentered?b.find(".fp-tablecell").wrapinner('
'):b.wrapinner('
'),b.find(".fp-scrollable").slimscroll({allowpagescroll:!0, height:a+"px",size:"10px",alwaysvisible:!0})):x(b);b.css("overflow","")}function x(a){a.find(".fp-scrollable").children().first().unwrap().unwrap();a.find(".slimscrollbar").remove();a.find(".slimscrollrail").remove()}function y(a){a.addclass("fp-table").wrapinner('
')}function z(a){var d=n;if(c.paddingtop||c.paddingbottom)d=a,d.hasclass("fp-section")||(d=a.closest(".fp-section")),a=parseint(d.css("padding-top"))+parseint(d.css("padding-bottom")), d=n-a;return d}function u(a,c){h.toggleclass("fp-easing",c);h.css(w(a))}function l(b,c){"undefined"===typeof c&&(c=0);var e=isnan(b)?a('[data-anchor="'+b+'"]'):a(".fp-section").eq(b-1);b===w||e.hasclass("active")?$(e,c):l(e,function(){$(e,c)})}function $(a,c){if("undefined"!=typeof c){var e=a.find(".fp-slides"),f=e.find('[data-anchor="'+c+'"]');f.length||(f=e.find(".fp-slide").eq(c));f.length&&k(e,f)}}function ha(a,d){a.append('
    ');var e=a.find(".fp-slidesnav"); e.addclass(c.slidesnavposition);for(var f=0;f');e.css("margin-left","-"+e.width()/2+"px");e.find("li").first().find("a").addclass("active")}function t(a,d,e){var f="";c.anchors.length&&(a?("undefined"!==typeof e&&(f=e),"undefined"===typeof d&&(d=a),k=d,location.hash=f+"/"+d):("undefined"!==typeof a&&(k=d),location.hash=e))}function ia(){var a=document.createelement("p"),c,e={webkittransform:"-webkit-transform",otransform:"-o-transform", mstransform:"-ms-transform",moztransform:"-moz-transform",transform:"transform"};document.body.insertbefore(a,null);for(var f in e)void 0!==a.style[f]&&(a.style[f]="translate3d(1px,1px,1px)",c=window.getcomputedstyle(a).getpropertyvalue(e[f]));document.body.removechild(a);return void 0!==c&&0
      ');var x=a("#fp-nav");x.css("color",c.navigationcolor);x.addclass(c.navigationposition)}a(".fp-section").each(function(b){var d=a(this),e=a(this).find(".fp-slide"),f=e.length;b||0!==a(".fp-section.active").length||a(this).addclass("active");a(this).css("height",n+"px");(c.paddingtop||c.paddingbottom)&&a(this).css("padding",c.paddingtop+" 0 "+c.paddingbottom+" 0");"undefined"!==typeof c.sectionscolor[b]&&a(this).css("background-color", c.sectionscolor[b]);"undefined"!==typeof c.anchors[b]&&a(this).attr("data-anchor",c.anchors[b]);if(c.navigation){var g="";c.anchors.length&&(g=c.anchors[b]);b=c.navigationtooltips[b];"undefined"===typeof b&&(b="");x.find("ul").append('
    • ')}if(1');e.parent().wrap('
      ');a(this).find(".fp-slidescontainer").css("width",g+"%");a(this).find(".fp-slides").after('
      '); "#fff"!=c.controlarrowcolor&&(a(this).find(".fp-controlarrow.fp-next").css("border-color","transparent transparent transparent "+c.controlarrowcolor),a(this).find(".fp-controlarrow.fp-prev").css("border-color","transparent "+c.controlarrowcolor+" transparent transparent"));c.loophorizontal||a(this).find(".fp-controlarrow.fp-prev").hide();c.slidesnavigation&&ha(a(this),f);e.each(function(b){var e=d.find(".fp-slide.active");b||0!=e.length?ba(e):a(this).addclass("active");a(this).css("width",h+"%"); c.verticalcentered&&y(a(this))})}else c.verticalcentered&&y(a(this))}).promise().done(function(){a.fn.fullpage.setautoscrolling(c.autoscrolling);var b=a(".fp-section.active").find(".fp-slide.active");b.length&&(0!=a(".fp-section.active").index(".fp-section")||0==a(".fp-section.active").index(".fp-section")&&0!=b.index())&&ba(b);c.fixedelements&&c.css3&&a(c.fixedelements).appendto("body");c.navigation&&(x.css("margin-top","-"+x.height()/2+"px"),x.find("li").eq(a(".fp-section.active").index(".fp-section")).find("a").addclass("active")); c.menu&&c.css3&&a(c.menu).closest(".fullpage-wrapper").length&&a(c.menu).appendto("body");c.scrolloverflow?(h.hasclass("fullpage-used")&&n(),a(window).on("load",n)):a.isfunction(c.afterrender)&&c.afterrender.call(this);b=window.location.hash.replace("#","").split("/")[0];if(b.length){var d=a('[data-anchor="'+b+'"]');!c.animateanchor&&d.length&&(c.autoscrolling?v(d.position().top):(v(0),a("html, body").scrolltop(d.position().top)),i(b),j(b,null),a.isfunction(c.afterload)&&c.afterload.call(this,b,d.index(".fp-section")+ 1),d.addclass("active").siblings().removeclass("active"))}a(window).on("load",function(){var a=window.location.hash.replace("#","").split("/"),b=a[0],a=a[1];b&&l(b,a)})});var p,g=!1;a(window).on("scroll",o);var z=0,c=0,y=0,b=0;a.fn.fullpage.movesectionup=function(){var b=a(".fp-section.active").prev(".fp-section");b.length||!c.looptop&&!c.continuousvertical||(b=a(".fp-section").last());b.length&&l(b,null,!0)};a.fn.fullpage.movesectiondown=function(){var b=a(".fp-section.active").next(".fp-section"); b.length||!c.loopbottom&&!c.continuousvertical||(b=a(".fp-section").first());b.length&&l(b,null,!1)};a.fn.fullpage.moveto=function(b,c){var e="",e=isnan(b)?a('[data-anchor="'+b+'"]'):a(".fp-section").eq(b-1);"undefined"!==typeof c?l(b,c):0'+b+"
      ").hide().appendto(a(this)).fadein(200)}, mouseleave:function(){a(this).find(".fp-tooltip").fadeout().remove()}},"#fp-nav li");c.normalscrollelements&&(a(document).on("mouseenter",c.normalscrollelements,function(){a.fn.fullpage.setmousewheelscrolling(!1)}),a(document).on("mouseleave",c.normalscrollelements,function(){a.fn.fullpage.setmousewheelscrolling(!0)}));a(".fp-section").on("click",".fp-controlarrow",function(){a(this).hasclass("fp-prev")?a.fn.fullpage.moveslideleft():a.fn.fullpage.moveslideright()});a(".fp-section").on("click",".toslide", function(b){b.preventdefault();b=a(this).closest(".fp-section").find(".fp-slides");b.find(".fp-slide.active");var c=null,c=b.find(".fp-slide").eq(a(this).data("index")-1);0