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