$(window).load(function() { // Animations $("#airplane").animate({left: '630px',top: '80px'}, 5000, "linear"); $("#motorcycle").animate({left: '1000px'}, 5000, "linear"); $("#truck").animate({left: '600px'}, 5000, "linear"); $("#bluecar").animate({left: '130px'}, 5000, "linear"); $("#policecar").animate({left: '1300px'}, 5000, "linear"); $("#redcar").animate({left: '50px'}, 5000, "linear"); $("#taxi").animate({left: '359px'}, 5000, "linear"); $("#bus").animate({left: '860px'}, 5000, "linear"); $("#elevator1").animate({top: '360px'}, 5000, "linear"); $("#elevator2").animate({top: '240px'}, 5000, "linear"); var balloon = $("#balloon"); balloon.animate({left: '1090px',top: '180px'}, 3000, "linear"); balloon.animate({left: '1100px',top: '160px'}, 2000, "linear"); $("#cloud-7").animate({left: '1000px'}, 5000, "linear"); $("#cloud-6").animate({left: '900px'}, 5000, "linear"); $("#cloud-5").animate({left: '300px'}, 5000, "linear"); $("#cloud-3").animate({left: '150px'}, 5000, "linear"); $("#cloud-2").animate({left: '135px'}, 5000, "linear"); $("#cloud-4, #cloud-8").animate({left: '-=85px'}, 5000, "linear"); setTimeout(function(){ $("#home-title").css('opacity','1'); },5000) }); $(window).scroll(function() { var elems = $('#sales, #service, #marketing, #community, #app'); if (elems.length){ var scroll = $(window).scrollTop(); var os1 = $('#sales').offset().top; var ht1 = $('#sales').height(); if(scroll > os1 + ht1){ $('.arrow-down').css('left','24.999%'); } var os2 = $('#service').offset().top; var ht2 = $('#service').height(); if(scroll > os2 + ht2){ $('.arrow-down').css('left','41.665%'); } var os3 = $('#marketing').offset().top; var ht3 = $('#marketing').height(); if(scroll > os3 + ht3){ $('.arrow-down').css('left','58.331%'); } var os4 = $('#community').offset().top; var ht4 = $('#community').height(); if(scroll > os4 + ht4){ $('.arrow-down').css('left','74.997%'); } var os5 = $('#app').offset().top; var ht5 = $('#app').height(); if(scroll > os5 + ht5){ $('.arrow-down').css('left','91.663%'); } if(scroll < os1 + ht1){ $('.arrow-down').css('left','8.333%'); } } }); $(document).ready(function() { // Expertise Section $("#expertise-1").not(".active").mouseenter(function(){ $(".expertise-list .expertise-item").removeClass("active"); $(this).addClass("active"); $("#exp-content > h4").fadeOut(200, function() { $(this).text("CRM AND DIGITAL STRATEGY ").fadeIn(200); }); $("#exp-content > p").fadeOut(200, function() { $(this).text("Translate business needs and customer insight into strategic initiatives and solutions to engage your customers smarter, and stay ahead of the game.").fadeIn(200); }); $(".exp-image-bg").fadeOut(200, function() { $(this).css('background-position-y','0').fadeIn(200); }); }); $("#expertise-2").not(".active").mouseenter(function(){ $(".expertise-list .expertise-item").removeClass("active"); $(this).addClass("active"); $("#exp-content > h4").fadeOut(200, function() { $(this).text("SALESFORCE® IMPLEMENTATION ").fadeIn(200); }); $("#exp-content > p").fadeOut(200, function() { $(this).text("Implement with our proven methodology. Over 100 + successful sales, service, and marketing cloud engagements for 20 000 + users across major industries.").fadeIn(200); }); $(".exp-image-bg").fadeOut(200, function() { $(this).css('background-position-y','-235px').fadeIn(200); }); }); $("#expertise-3").not(".active").mouseenter(function(){ $(".expertise-list .expertise-item").removeClass("active"); $(this).addClass("active"); $("#exp-content > h4").fadeOut(200, function() { $(this).text("CUSTOMER AND MOBILE APP DEVELOPMENT").fadeIn(200); }); $("#exp-content > p").fadeOut(200, function() { $(this).text("Meet the specific demands of your business via mobile apps or custom online interfaces to match the way you do your business and equip you with new strategic capabilities.").fadeIn(200); }); $(".exp-image-bg").fadeOut(200, function() { $(this).css('background-position-y','-470px').fadeIn(200); }); }); $("#expertise-4").not(".active").mouseenter(function(){ $(".expertise-list .expertise-item").removeClass("active"); $(this).addClass("active"); $("#exp-content > h4").fadeOut(200, function() { $(this).text("INTEGRATION").fadeIn(200); }); $("#exp-content > p").fadeOut(200, function() { $(this).text("Ensure data integrity across your enterprise by connecting existing legacy systems, ERPs, and databases to each other, as well as to any newly implemented IT infrastructure, seamlessly.").fadeIn(200); }); $(".exp-image-bg").fadeOut(200, function() { $(this).css('background-position-y','-705px').fadeIn(200); }); }); $("#expertise-5").not(".active").mouseenter(function(){ $(".expertise-list .expertise-item").removeClass("active"); $(this).addClass("active"); $("#exp-content > h4").fadeOut(200, function() { $(this).text("SUPPORT").fadeIn(200); }); $("#exp-content > p").fadeOut(200, function() { $(this).text("Access our experts for continued guidance and post go live administrative support to sustain long-term success.").fadeIn(200); }); $(".exp-image-bg").fadeOut(200, function() { $(this).css('background-position-y','-940px').fadeIn(200); }); }); $("#expertise-6").not(".active").mouseenter(function(){ $(".expertise-list .expertise-item").removeClass("active"); $(this).addClass("active"); $("#exp-content > h4").fadeOut(200, function() { $(this).text("SALESFORCE® TRAINING CENTER").fadeIn(200); }); $("#exp-content > p").fadeOut(200, function() { $(this).text("Enable your team with system specific, as well as standard Salesforce® certification trainings, to enhance their technical skill and system know-how.").fadeIn(200); }); $(".exp-image-bg").fadeOut(200, function() { $(this).css('background-position-y','-1175px').fadeIn(200); }); }); $("#expertise-7").not(".active").mouseenter(function(){ $(".expertise-list .expertise-item").removeClass("active"); $(this).addClass("active"); $("#exp-content > h4").fadeOut(200, function() { $(this).text("CHANGE MANAGEMENT").fadeIn(200); }); $("#exp-content > p").fadeOut(200, function() { $(this).text("Support implementation success beyond technology delivery by enabling your organization to embrace change, adopt new practice, and enhance mindset.").fadeIn(200); }); $(".exp-image-bg").fadeOut(200, function() { $(this).css('background-position-y','-1410px').fadeIn(200); }); }); // Solutions Web $(".partner-web-img").mouseenter(function(){ $(".partner-web .partner-web-img").removeClass("active"); $(this).addClass("active"); }); // Mobile menu $(".mobile-menu-button").click(function(){ $(".mobile-menu").css('transform','translateX(0)'); }); $(".mobile-menu-close").click(function(){ $(".mobile-menu").css('transform','translateX(-100%)'); }); // Contact Us box $(".contact-button").click(function(){ $(".contact-screen-1").css('transform','translateX(-100%)'); $(".contact-screen-2").css('transform','translateX(0)'); }); // Animate numbers when in viewport $('#numbers').on('inview.uk.scrollspy', function(){ $(".numb-stack-2").animate({height: '180px'}, 2000, "swing"); $('.count').each(function () { $(this).prop('Counter',0).animate({ Counter: $(this).text() }, { duration: 2000, easing: 'swing', step: function (now) { $(this).text(Math.ceil(now)); } }); }); }); // Animate again when tabs are switched $('.numbers-list').on('show.uk.switcher', function(event, area){ $(".count").finish().each(function () { $(this).prop('Counter',0).animate({ Counter: $(this).text() }, { duration: 2000, easing: 'swing', step: function (now) { $(this).text(Math.ceil(now)); } }); }); $(".numb-stack-2").finish().css('height','5px').animate({height: '180px'}, 2000, "swing"); }); // Animate numbers when in viewport $('#about-mid').on('inview.uk.scrollspy', function(){ $('.count').each(function () { $(this).prop('Counter',0).animate({ Counter: $(this).text() }, { duration: 4000, easing: 'swing', step: function (now) { $(this).text(Math.ceil(now)); } }); }); }); // Upload file /*Brought click function of fileupload button when text field is clicked*/ $("#uploadtextfield").click(function() { $('#fileuploadfield').click() }); /*To bring the selected file value in text field*/ $('#fileuploadfield').change(function() { $('#uploadtextfield').val($(this).val()); }); // Scrolled header $(function(){ var shrinkHeader = 202; $(window).scroll(function() { var scroll = getCurrentScroll(); if ( scroll >= shrinkHeader ) { $('#header').addClass('scrolled'); } else { $('#header').removeClass('scrolled'); } }); function getCurrentScroll() { return window.pageYOffset || document.documentElement.scrollTop; } }); var didScroll; var lastScrollTop = 0; var delta = 5; var navbarHeight = 600; $(window).scroll(function(event){ didScroll = true; }); setInterval(function() { if (didScroll) { hasScrolled(); didScroll = false; } }, 200); function hasScrolled() { var st = $(this).scrollTop(); // Make sure they scroll more than delta if(Math.abs(lastScrollTop - st) <= delta) return; // If they scrolled down and are past the navbar, add class .nav-up. // This is necessary so you never see what is "behind" the navbar. if (st > lastScrollTop && st > navbarHeight){ // Scroll Down $('#header').addClass('nav-up'); } else { // Scroll Up if(st + $(window).height() < $(document).height()) { $('#header').removeClass('nav-up'); } } lastScrollTop = st; } // Parallax only for desktop var pageWidth = $(window).width(); if (pageWidth > 1024) { s = skrollr.init({ smoothScrolling : true, smoothScrollingDuration : 200, forceHeight : false }); }; // Mobile functions $(window).resize(function () { var viewportWidth = $(window).width(); if (viewportWidth < 959) { $(".product-box").addClass("uk-modal"); $(".solutions-modal").addClass("uk-modal"); //$(".career").addClass("uk-modal"); // $("ul.careers-list > li > a").attr( "data-uk-modal", "{center:true}" ); } else { $(".product-box").removeClass("uk-modal"); $(".solutions-modal").removeClass("uk-modal"); //$(".career").removeClass("uk-modal"); // $("ul.careers-list > li > a").removeAttr("data-uk-modal"); } }); var pageWidth = $(window).width(); if (pageWidth < 959) { $(".product-box").addClass("uk-modal"); $(".solutions-modal").addClass("uk-modal"); //$(".career").addClass("uk-modal"); //$("ul.careers-list > li > a").attr( "data-uk-modal", "{center:true}" ); }; // // Contact Form // // TODO: need to set up validation // // Get the form. // var form = $('#beryl-contact'); // // Get the messages div. // var formMessages = $('#form-messages'); // // Set up an event listener for the contact form. // $(form).submit(function(event) { // // Stop the browser from submitting the form. // event.preventDefault(); // // Serialize the form data. // var formData = $(form).serialize(); // // Submit the form using AJAX. // $.ajax({ // type: 'POST', // url: $(form).attr('action'), // data: formData // }) // .done(function(response) { // // Make sure that the formMessages div has the 'success' class. // $(formMessages).removeClass('error'); // $(formMessages).addClass('success'); // // Set the message text. // // $(formMessages).text(response); // // Clear the form. // $('#name').val(''); // $('#email').val(''); // $('#message').val(''); // $(".contact-screen-2").css('transform','translateX(-100%)'); // $(".contact-screen-3").css('transform','translateX(0)'); // }) // .fail(function(data) { // // Make sure that the formMessages div has the 'error' class. // $(formMessages).removeClass('success'); // $(formMessages).addClass('error'); // // Set the message text. // if (data.responseText !== '') { // $(formMessages).text(data.responseText); // } else { // $(formMessages).text('Oops! An error occured and your message could not be sent.'); // } // }); // }); }); /*! skrollr 0.6.9 | Alexander Prinzhorn - https://github.com/Prinzhorn/skrollr | Free to use under terms of MIT license */ (function(e,t,r){"use strict";function n(r){if(o=t.documentElement,a=t.body,Y(),le=this,r=r||{},me=r.constants||{},r.easing)for(var n in r.easing)X[n]=r.easing[n];Te=r.edgeStrategy||"set",fe={beforerender:r.beforerender,render:r.render,keyframe:r.keyframe},ue=r.forceHeight!==!1,ue&&(ze=r.scale||1),pe=r.mobileDeceleration||x,ge=r.smoothScrolling!==!1,ve=r.smoothScrollingDuration||A,he={targetTop:le.getScrollTop()},Ke=(r.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||e.opera)})(),Ke?(ce=t.getElementById(r.skrollrBody||E),ce&&ie(),j(),De(o,[y,S],[T])):De(o,[y,b],[T]),le.refresh(),ke(e,"resize orientationchange",function(){var e=o.clientWidth,t=o.clientHeight;(t!==Be||e!==$e)&&(Be=t,$e=e,_e=!0)});var i=R();return function l(){J(),Se=i(l)}(),le}var o,a,i={get:function(){return le},init:function(e){return le||new n(e)},VERSION:"0.6.30"},l=Object.prototype.hasOwnProperty,s=e.Math,c=e.getComputedStyle,f="touchstart",u="touchmove",m="touchcancel",p="touchend",d="skrollable",g=d+"-before",v=d+"-between",h=d+"-after",y="skrollr",T="no-"+y,b=y+"-desktop",S=y+"-mobile",k="linear",w=1e3,x=.004,E="skrollr-body",A=200,F="start",C="end",H="center",D="bottom",I="___skrollable_id",P=/^(?:input|textarea|button|select)$/i,N=/^\s+|\s+$/g,O=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,V=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,z=/^(@?[a-z\-]+)\[(\w+)\]$/,q=/-([a-z0-9_])/g,L=function(e,t){return t.toUpperCase()},M=/[\-+]?[\d]*\.?[\d]+/g,$=/\{\?\}/g,B=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,_=/[a-z\-]+-gradient/g,G="",K="",Y=function(){var e=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(c){var t=c(a,null);for(var r in t)if(G=r.match(e)||+r==r&&t[r].match(e))break;if(!G)return void(G=K="");G=G[0],"-"===G.slice(0,1)?(K=G,G={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[G]):K="-"+G.toLowerCase()+"-"}},R=function(){var t=e.requestAnimationFrame||e[G.toLowerCase()+"RequestAnimationFrame"],r=Ne();return(Ke||!t)&&(t=function(t){var n=Ne()-r,o=s.max(0,1e3/60-n);return e.setTimeout(function(){r=Ne(),t()},o)}),t},U=function(){var t=e.cancelAnimationFrame||e[G.toLowerCase()+"CancelAnimationFrame"];return(Ke||!t)&&(t=function(t){return e.clearTimeout(t)}),t},X={begin:function(){return 0},end:function(){return 1},linear:function(e){return e},quadratic:function(e){return e*e},cubic:function(e){return e*e*e},swing:function(e){return-s.cos(e*s.PI)/2+.5},sqrt:function(e){return s.sqrt(e)},outCubic:function(e){return s.pow(e-1,3)+1},bounce:function(e){var t;if(.5083>=e)t=3;else if(.8489>=e)t=9;else if(.96208>=e)t=27;else{if(!(.99981>=e))return 1;t=91}return 1-s.abs(3*s.cos(e*t*1.028)/t)}};n.prototype.refresh=function(e){var n,o,a=!1;for(e===r?(a=!0,se=[],Ge=0,e=t.getElementsByTagName("*")):e.length===r&&(e=[e]),n=0,o=e.length;o>n;n++){var i=e[n],l=i,s=[],c=ge,f=Te,u=!1;if(a&&I in i&&delete i[I],i.attributes){for(var m=0,p=i.attributes.length;p>m;m++){var g=i.attributes[m];if("data-anchor-target"!==g.name)if("data-smooth-scrolling"!==g.name)if("data-edge-strategy"!==g.name)if("data-emit-events"!==g.name){var v=g.name.match(O);if(null!==v){var h={props:g.value,element:i,eventType:g.name.replace(q,L)};s.push(h);var y=v[1];y&&(h.constant=y.substr(1));var T=v[2];/p$/.test(T)?(h.isPercentage=!0,h.offset=(0|T.slice(0,-1))/100):h.offset=0|T;var b=v[3],S=v[4]||b;b&&b!==F&&b!==C?(h.mode="relative",h.anchors=[b,S]):(h.mode="absolute",b===C?h.isEnd=!0:h.isPercentage||(h.offset=h.offset*ze))}}else u=!0;else f=g.value;else c="off"!==g.value;else if(l=t.querySelector(g.value),null===l)throw'Unable to find anchor target "'+g.value+'"'}if(s.length){var k,w,x;!a&&I in i?(x=i[I],k=se[x].styleAttr,w=se[x].classAttr):(x=i[I]=Ge++,k=i.style.cssText,w=He(i)),se[x]={element:i,styleAttr:k,classAttr:w,anchorTarget:l,keyFrames:s,smoothScrolling:c,edgeStrategy:f,emitEvents:u,lastFrameIndex:-1},De(i,[d],[])}}}for(Ae(),n=0,o=e.length;o>n;n++){var E=se[e[n][I]];E!==r&&(Q(E),te(E))}return le},n.prototype.relativeToAbsolute=function(e,t,r){var n=o.clientHeight,a=e.getBoundingClientRect(),i=a.top,l=a.bottom-a.top;return t===D?i-=n:t===H&&(i-=n/2),r===D?i+=l:r===H&&(i+=l/2),i+=le.getScrollTop(),i+.5|0},n.prototype.animateTo=function(e,t){t=t||{};var n=Ne(),o=le.getScrollTop(),a=t.duration===r?w:t.duration;return de={startTop:o,topDiff:e-o,targetTop:e,duration:a,startTime:n,endTime:n+a,easing:X[t.easing||k],done:t.done},de.topDiff||(de.done&&de.done.call(le,!1),de=r),le},n.prototype.stopAnimateTo=function(){de&&de.done&&de.done.call(le,!0),de=r},n.prototype.isAnimatingTo=function(){return!!de},n.prototype.isMobile=function(){return Ke},n.prototype.setScrollTop=function(t,r){return ye=r===!0,Ke?Ye=s.min(s.max(t,0),Ve):e.scrollTo(0,t),le},n.prototype.getScrollTop=function(){return Ke?Ye:e.pageYOffset||o.scrollTop||a.scrollTop||0},n.prototype.getMaxScrollTop=function(){return Ve},n.prototype.on=function(e,t){return fe[e]=t,le},n.prototype.off=function(e){return delete fe[e],le},n.prototype.destroy=function(){var e=U();e(Se),xe(),De(o,[T],[y,b,S]);for(var t=0,n=se.length;n>t;t++)ae(se[t].element);o.style.overflow=a.style.overflow="",o.style.height=a.style.height="",ce&&i.setStyle(ce,"transform","none"),le=r,ce=r,fe=r,ue=r,Ve=0,ze=1,me=r,pe=r,qe="down",Le=-1,$e=0,Be=0,_e=!1,de=r,ge=r,ve=r,he=r,ye=r,Ge=0,Te=r,Ke=!1,Ye=0,be=r};var j=function(){var n,i,l,c,d,g,v,h,y,T,b,S;ke(o,[f,u,m,p].join(" "),function(e){var o=e.changedTouches[0];for(c=e.target;3===c.nodeType;)c=c.parentNode;switch(d=o.clientY,g=o.clientX,T=e.timeStamp,P.test(c.tagName)||e.preventDefault(),e.type){case f:n&&n.blur(),le.stopAnimateTo(),n=c,i=v=d,l=g,y=T;break;case u:P.test(c.tagName)&&t.activeElement!==c&&e.preventDefault(),h=d-v,S=T-b,le.setScrollTop(Ye-h,!0),v=d,b=T;break;default:case m:case p:var a=i-d,k=l-g,w=k*k+a*a;if(49>w){if(!P.test(n.tagName)){n.focus();var x=t.createEvent("MouseEvents");x.initMouseEvent("click",!0,!0,e.view,1,o.screenX,o.screenY,o.clientX,o.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null),n.dispatchEvent(x)}return}n=r;var E=h/S;E=s.max(s.min(E,3),-3);var A=s.abs(E/pe),F=E*A+.5*pe*A*A,C=le.getScrollTop()-F,H=0;C>Ve?(H=(Ve-C)/F,C=Ve):0>C&&(H=-C/F,C=0),A*=1-H,le.animateTo(C+.5|0,{easing:"outCubic",duration:A})}}),e.scrollTo(0,0),o.style.overflow=a.style.overflow="hidden"},W=function(){var e,t,r,n,a,i,l,c,f,u,m,p=o.clientHeight,d=Fe();for(c=0,f=se.length;f>c;c++)for(e=se[c],t=e.element,r=e.anchorTarget,n=e.keyFrames,a=0,i=n.length;i>a;a++)l=n[a],u=l.offset,m=d[l.constant]||0,l.frame=u,l.isPercentage&&(u*=p,l.frame=u),"relative"===l.mode&&(ae(t),l.frame=le.relativeToAbsolute(r,l.anchors[0],l.anchors[1])-u,ae(t,!0)),l.frame+=m,ue&&!l.isEnd&&l.frame>Ve&&(Ve=l.frame);for(Ve=s.max(Ve,Ce()),c=0,f=se.length;f>c;c++){for(e=se[c],n=e.keyFrames,a=0,i=n.length;i>a;a++)l=n[a],m=d[l.constant]||0,l.isEnd&&(l.frame=Ve-l.offset+m);e.keyFrames.sort(Oe)}},Z=function(e,t){for(var r=0,n=se.length;n>r;r++){var o,a,s=se[r],c=s.element,f=s.smoothScrolling?e:t,u=s.keyFrames,m=u.length,p=u[0],y=u[u.length-1],T=f<p.frame,b=f>y.frame,S=T?p:y,k=s.emitEvents,w=s.lastFrameIndex;if(T||b){if(T&&-1===s.edge||b&&1===s.edge)continue;switch(T?(De(c,[g],[h,v]),k&&w>-1&&(Ee(c,p.eventType,qe),s.lastFrameIndex=-1)):(De(c,[h],[g,v]),k&&m>w&&(Ee(c,y.eventType,qe),s.lastFrameIndex=m)),s.edge=T?-1:1,s.edgeStrategy){case"reset":ae(c);continue;case"ease":f=S.frame;break;default:case"set":var x=S.props;for(o in x)l.call(x,o)&&(a=oe(x[o].value),0===o.indexOf("@")?c.setAttribute(o.substr(1),a):i.setStyle(c,o,a));continue}}else 0!==s.edge&&(De(c,[d,v],[g,h]),s.edge=0);for(var E=0;m-1>E;E++)if(f>=u[E].frame&&f<=u[E+1].frame){var A=u[E],F=u[E+1];for(o in A.props)if(l.call(A.props,o)){var C=(f-A.frame)/(F.frame-A.frame);C=A.props[o].easing(C),a=ne(A.props[o].value,F.props[o].value,C),a=oe(a),0===o.indexOf("@")?c.setAttribute(o.substr(1),a):i.setStyle(c,o,a)}k&&w!==E&&("down"===qe?Ee(c,A.eventType,qe):Ee(c,F.eventType,qe),s.lastFrameIndex=E);break}}},J=function(){_e&&(_e=!1,Ae());var e,t,n=le.getScrollTop(),o=Ne();if(de)o>=de.endTime?(n=de.targetTop,e=de.done,de=r):(t=de.easing((o-de.startTime)/de.duration),n=de.startTop+t*de.topDiff|0),le.setScrollTop(n,!0);else if(!ye){var a=he.targetTop-n;a&&(he={startTop:Le,topDiff:n-Le,targetTop:n,startTime:Me,endTime:Me+ve}),o<=he.endTime&&(t=X.sqrt((o-he.startTime)/ve),n=he.startTop+t*he.topDiff|0)}if(ye||Le!==n){qe=n>Le?"down":Le>n?"up":qe,ye=!1;var l={curTop:n,lastTop:Le,maxTop:Ve,direction:qe},s=fe.beforerender&&fe.beforerender.call(le,l);s!==!1&&(Z(n,le.getScrollTop()),Ke&&ce&&i.setStyle(ce,"transform","translate(0, "+-Ye+"px) "+be),Le=n,fe.render&&fe.render.call(le,l)),e&&e.call(le,!1)}Me=o},Q=function(e){for(var t=0,r=e.keyFrames.length;r>t;t++){for(var n,o,a,i,l=e.keyFrames[t],s={};null!==(i=V.exec(l.props));)a=i[1],o=i[2],n=a.match(z),null!==n?(a=n[1],n=n[2]):n=k,o=o.indexOf("!")?ee(o):[o.slice(1)],s[a]={value:o,easing:X[n]};l.props=s}},ee=function(e){var t=[];return B.lastIndex=0,e=e.replace(B,function(e){return e.replace(M,function(e){return e/255*100+"%"})}),K&&(_.lastIndex=0,e=e.replace(_,function(e){return K+e})),e=e.replace(M,function(e){return t.push(+e),"{?}"}),t.unshift(e),t},te=function(e){var t,r,n={};for(t=0,r=e.keyFrames.length;r>t;t++)re(e.keyFrames[t],n);for(n={},t=e.keyFrames.length-1;t>=0;t--)re(e.keyFrames[t],n)},re=function(e,t){var r;for(r in t)l.call(e.props,r)||(e.props[r]=t[r]);for(r in e.props)t[r]=e.props[r]},ne=function(e,t,r){var n,o=e.length;if(o!==t.length)throw"Can't interpolate between \""+e[0]+'" and "'+t[0]+'"';var a=[e[0]];for(n=1;o>n;n++)a[n]=e[n]+(t[n]-e[n])*r;return a},oe=function(e){var t=1;return $.lastIndex=0,e[0].replace($,function(){return e[t++]})},ae=function(e,t){e=[].concat(e);for(var r,n,o=0,a=e.length;a>o;o++)n=e[o],r=se[n[I]],r&&(t?(n.style.cssText=r.dirtyStyleAttr,De(n,r.dirtyClassAttr)):(r.dirtyStyleAttr=n.style.cssText,r.dirtyClassAttr=He(n),n.style.cssText=r.styleAttr,De(n,r.classAttr)))},ie=function(){be="translateZ(0)",i.setStyle(ce,"transform",be);var e=c(ce),t=e.getPropertyValue("transform"),r=e.getPropertyValue(K+"transform"),n=t&&"none"!==t||r&&"none"!==r;n||(be="")};i.setStyle=function(e,t,r){var n=e.style;if(t=t.replace(q,L).replace("-",""),"zIndex"===t)isNaN(r)?n[t]=r:n[t]=""+(0|r);else if("float"===t)n.styleFloat=n.cssFloat=r;else try{G&&(n[G+t.slice(0,1).toUpperCase()+t.slice(1)]=r),n[t]=r}catch(o){}};var le,se,ce,fe,ue,me,pe,de,ge,ve,he,ye,Te,be,Se,ke=i.addEvent=function(t,r,n){var o=function(t){return t=t||e.event,t.target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1,t.defaultPrevented=!0}),n.call(this,t)};r=r.split(" ");for(var a,i=0,l=r.length;l>i;i++)a=r[i],t.addEventListener?t.addEventListener(a,n,!1):t.attachEvent("on"+a,o),Re.push({element:t,name:a,listener:n})},we=i.removeEvent=function(e,t,r){t=t.split(" ");for(var n=0,o=t.length;o>n;n++)e.removeEventListener?e.removeEventListener(t[n],r,!1):e.detachEvent("on"+t[n],r)},xe=function(){for(var e,t=0,r=Re.length;r>t;t++)e=Re[t],we(e.element,e.name,e.listener);Re=[]},Ee=function(e,t,r){fe.keyframe&&fe.keyframe.call(le,e,t,r)},Ae=function(){var e=le.getScrollTop();Ve=0,ue&&!Ke&&(a.style.height=""),W(),ue&&!Ke&&(a.style.height=Ve+o.clientHeight+"px"),Ke?le.setScrollTop(s.min(le.getScrollTop(),Ve)):le.setScrollTop(e,!0),ye=!0},Fe=function(){var e,t,r=o.clientHeight,n={};for(e in me)t=me[e],"function"==typeof t?t=t.call(le):/p$/.test(t)&&(t=t.slice(0,-1)/100*r),n[e]=t;return n},Ce=function(){var e,t=0;return ce&&(t=s.max(ce.offsetHeight,ce.scrollHeight)),e=s.max(t,a.scrollHeight,a.offsetHeight,o.scrollHeight,o.offsetHeight,o.clientHeight),e-o.clientHeight},He=function(t){var r="className";return e.SVGElement&&t instanceof e.SVGElement&&(t=t[r],r="baseVal"),t[r]},De=function(t,n,o){var a="className";if(e.SVGElement&&t instanceof e.SVGElement&&(t=t[a],a="baseVal"),o===r)return void(t[a]=n);for(var i=t[a],l=0,s=o.length;s>l;l++)i=Pe(i).replace(Pe(o[l])," ");i=Ie(i);for(var c=0,f=n.length;f>c;c++)-1===Pe(i).indexOf(Pe(n[c]))&&(i+=" "+n[c]);t[a]=Ie(i)},Ie=function(e){return e.replace(N,"")},Pe=function(e){return" "+e+" "},Ne=Date.now||function(){return+new Date},Oe=function(e,t){return e.frame-t.frame},Ve=0,ze=1,qe="down",Le=-1,Me=Ne(),$e=0,Be=0,_e=!1,Ge=0,Ke=!1,Ye=0,Re=[];"function"==typeof define&&define.amd?define([],function(){return i}):"undefined"!=typeof module&&module.exports?module.exports=i:e.skrollr=i})(window,document); // UIKit Slideset /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ !function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-slideset",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";function i(i,e,s,n){var a,o,r,l,h=t.$.Deferred(),u=this.options.delay===!1?Math.floor(this.options.duration/2):this.options.delay,d=this;if(n=n||1,this.element.css("min-height",this.element.height()),s[0]===e[0])return h.resolve(),h.promise();if("object"==typeof i?(a=i[0],o=i[1]||i[0]):(a=i,o=a),r=function(){if(e&&e.length&&e.hide().removeClass(o+" uk-animation-reverse").css({opacity:"","animation-delay":"",animation:""}),!s.length)return h.resolve(),void 0;for(l=0;l<s.length;l++)s.eq(1==n?l:s.length-l-1).css("animation-delay",l*u+"ms");s.addClass(a)[1==n?"last":"first"]().one(t.support.animation.end,function(){s.removeClass(""+a).css({opacity:"",display:"","animation-delay":"",animation:""}),h.resolve(),d.element.css("min-height","")}).end().css("display","")},s.length&&s.css("animation-duration",this.options.duration+"ms"),e&&e.length)for(e.css("animation-duration",this.options.duration+"ms")[1==n?"last":"first"]().one(t.support.animation.end,function(){r()}),l=0;l<e.length;l++)!function(i,e){setTimeout(function(){e.css("display","none").css("display","").css("opacity",0).on(t.support.animation.end,function(){e.removeClass(o)}).addClass(o+" uk-animation-reverse")}.bind(this),l*u)}(l,e.eq(1==n?l:e.length-l-1));else r();return h.promise()}function e(t,i){var e,s=0,n=-1,a=t.length||0,o=[];if(1>i)return null;for(;a>s;)e=s%i,e?o[n][e]=t[s]:o[++n]=[t[s]],s++;for(s=0,a=o.length;a>s;)o[s]=jQuery(o[s]),s++;return o}var s;t.component("slideset",{defaults:{"default":1,animation:"fade",duration:200,filter:"",delay:!1,controls:!1,autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},sets:[],boot:function(){t.ready(function(i){t.$("[data-uk-slideset]",i).each(function(){var i=t.$(this);i.data("slideset")||t.slideset(i,t.Utils.options(i.attr("data-uk-slideset")))})})},init:function(){var i=this;this.activeSet=!1,this.list=this.element.find(".uk-slideset"),this.nav=this.element.find(".uk-slideset-nav"),this.controls=this.options.controls?t.$(this.options.controls):this.element,t.$win.on("resize load",t.Utils.debounce(function(){i.updateSets()},100)),i.list.addClass("uk-grid-width-1-"+i.options.default),["xlarge","large","medium","small"].forEach(function(t){i.options[t]&&i.list.addClass("uk-grid-width-"+t+"-1-"+i.options[t])}),this.on("click.uikit.slideset","[data-uk-slideset-item]",function(e){if(e.preventDefault(),!i.animating){var s=t.$(this).attr("data-uk-slideset-item");if(i.activeSet!==s)switch(s){case"next":case"previous":i["next"==s?"next":"previous"]();break;default:i.show(parseInt(s,10))}}}),this.controls.on("click.uikit.slideset","[data-uk-filter]",function(e){var s=t.$(this);s.parent().hasClass("uk-slideset")||(e.preventDefault(),i.animating||i.currentFilter==s.attr("data-uk-filter")||(i.updateFilter(s.attr("data-uk-filter")),i._hide().then(function(){i.updateSets(!0,!0)})))}),this.on("swipeRight swipeLeft",function(t){i["swipeLeft"==t.type?"next":"previous"]()}),this.updateFilter(this.options.filter),this.updateSets(),this.element.on({mouseenter:function(){i.options.pauseOnHover&&(i.hovering=!0)},mouseleave:function(){i.hovering=!1}}),this.options.autoplay&&this.start()},updateSets:function(t,i){var s,n=this.visible;if(this.visible=this.getVisibleOnCurrenBreakpoint(),n!=this.visible||i){for(this.children=this.list.children().hide(),this.items=this.getItems(),this.sets=e(this.items,this.visible),s=0;s<this.sets.length;s++)this.sets[s].css({display:"none"});if(this.nav.length&&this.nav.empty()){for(s=0;s<this.sets.length;s++)this.nav.append('<li data-uk-slideset-item="'+s+'"><a></a></li>');this.nav[1==this.nav.children().length?"addClass":"removeClass"]("uk-invisible")}this.activeSet=!1,this.show(0,!t)}},updateFilter:function(i){var e,s=this;this.currentFilter=i,this.controls.find("[data-uk-filter]").each(function(){e=t.$(this),e.parent().hasClass("uk-slideset")||(e.attr("data-uk-filter")==s.currentFilter?e.addClass("uk-active"):e.removeClass("uk-active"))})},getVisibleOnCurrenBreakpoint:function(){var i=null,e=t.$('<div style="position:absolute;height:1px;top:-1000px;width:100px"><div></div></div>').appendTo("body"),s=e.children().eq(0),n=this.options;return["xlarge","large","medium","small"].forEach(function(t){n[t]&&!i&&(e.attr("class","uk-grid-width-"+t+"-1-2").width(),50==s.width()&&(i=t))}),e.remove(),this.options[i]||this.options["default"]},getItems:function(){var i,e=[];return this.currentFilter?(i=this.currentFilter||[],"string"==typeof i&&(i=i.split(/,/).map(function(t){return t.trim()})),this.children.each(function(){var s=t.$(this),n=s.attr("data-uk-filter"),a=i.length?!1:!0;n&&(n=n.split(/,/).map(function(t){return t.trim()}),i.forEach(function(t){n.indexOf(t)>-1&&(a=!0)})),a&&e.push(s[0])}),e=t.$(e)):e=this.list.children(),e},show:function(i,e,n){var a=this;if(this.activeSet!==i&&!this.animating){n=n||(i<this.activeSet?-1:1);var o=this.sets[this.activeSet]||[],r=this.sets[i],l=this._getAnimation();(e||!t.support.animation)&&(l=s.none),this.animating=!0,this.nav.length&&this.nav.children().removeClass("uk-active").eq(i).addClass("uk-active"),l.apply(a,[o,r,n]).then(function(){t.Utils.checkDisplay(r,!0),a.children.hide().removeClass("uk-active"),r.addClass("uk-active").css({display:"",opacity:""}),a.animating=!1,a.activeSet=i,t.Utils.checkDisplay(r,!0),a.trigger("show.uk.slideset",[r])})}},_getAnimation:function(){var i=s[this.options.animation]||s.none;return t.support.animation||(i=s.none),i},_hide:function(){var t=this,i=this.sets[this.activeSet]||[],e=this._getAnimation();return this.animating=!0,e.apply(t,[i,[],1]).then(function(){t.animating=!1})},next:function(){this.show(this.sets[this.activeSet+1]?this.activeSet+1:0,!1,1)},previous:function(){this.show(this.sets[this.activeSet-1]?this.activeSet-1:this.sets.length-1,!1,-1)},start:function(){this.stop();var t=this;this.interval=setInterval(function(){t.hovering||t.animating||t.next()},this.options.autoplayInterval)},stop:function(){this.interval&&clearInterval(this.interval)}}),s={none:function(){var i=t.$.Deferred();return i.resolve(),i.promise()},fade:function(t,e){return i.apply(this,["uk-animation-fade",t,e])},"slide-bottom":function(t,e){return i.apply(this,["uk-animation-slide-bottom",t,e])},"slide-top":function(t,e){return i.apply(this,["uk-animation-slide-top",t,e])},"slide-vertical":function(t,e,s){var n=["uk-animation-slide-top","uk-animation-slide-bottom"];return-1==s&&n.reverse(),i.apply(this,[n,t,e])},"slide-horizontal":function(t,e,s){var n=["uk-animation-slide-right","uk-animation-slide-left"];return-1==s&&n.reverse(),i.apply(this,[n,t,e,s])},scale:function(t,e){return i.apply(this,["uk-animation-scale-up",t,e])}},t.slideset.animations=s}); // UiKit Sticky /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ !function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-sticky",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";function i(){var i=arguments.length?arguments:n;if(i.length&&!(e.scrollTop()<0))for(var o,a,r,p,h=e.scrollTop(),c=s.height(),l=e.height(),d=c-l,u=h>d?d-h:0,m=0;m<i.length;m++)if(p=i[m],p.element.is(":visible")&&!p.animate){if(p.check()){if(p.top<0?o=0:(r=p.element.outerHeight(),o=c-r-p.top-p.options.bottom-h-u,o=0>o?o+p.top:p.top),p.boundary&&p.boundary.length){var f=p.boundary.offset().top;a=p.boundtoparent?c-(f+p.boundary.outerHeight())+parseInt(p.boundary.css("padding-bottom")):c-f-parseInt(p.boundary.css("margin-top")),o=h+r>c-a-(p.top<0?0:p.top)?c-a-(h+r):o}if(p.currentTop!=o){if(p.element.css({position:"fixed",top:o,width:p.getWidthFrom.length?p.getWidthFrom.width():p.element.width(),left:p.wrapper.offset().left}),!p.init&&(p.element.addClass(p.options.clsinit),location.hash&&h>0&&p.options.target)){var g=t.$(location.hash);g.length&&setTimeout(function(t,i){return function(){i.element.width();var e=t.offset(),s=e.top+t.outerHeight(),n=i.element.offset(),o=i.element.outerHeight(),a=n.top+o;n.top<s&&e.top<a&&(h=e.top-o-i.options.target,window.scrollTo(0,h))}}(g,p),0)}p.element.addClass(p.options.clsactive).removeClass(p.options.clsinactive),p.element.trigger("active.uk.sticky"),p.element.css("margin",""),p.options.animation&&p.init&&!t.Utils.isInView(p.wrapper)&&p.element.addClass(p.options.animation),p.currentTop=o}}else null!==p.currentTop&&p.reset();p.init=!0}}var e=t.$win,s=t.$doc,n=[],o=1;return t.component("sticky",{defaults:{top:0,bottom:0,animation:"",clsinit:"uk-sticky-init",clsactive:"uk-active",clsinactive:"",getWidthFrom:"",showup:!1,boundary:!1,media:!1,target:!1,disabled:!1},boot:function(){t.$doc.on("scrolling.uk.document",function(t,e){e&&e.dir&&(o=e.dir.y,i())}),t.$win.on("resize orientationchange",t.Utils.debounce(function(){if(n.length){for(var t=0;t<n.length;t++)n[t].reset(!0);i()}},100)),t.ready(function(e){setTimeout(function(){t.$("[data-uk-sticky]",e).each(function(){var i=t.$(this);i.data("sticky")||t.sticky(i,t.Utils.options(i.attr("data-uk-sticky")))}),i()},0)})},init:function(){var i,a=t.$('<div class="uk-sticky-placeholder"></div>'),r=this.options.boundary;this.wrapper=this.element.css("margin",0).wrap(a).parent(),this.computeWrapper(),r&&(r===!0||"!"===r[0]?(r=r===!0?this.wrapper.parent():this.wrapper.closest(r.substr(1)),i=!0):"string"==typeof r&&(r=t.$(r))),this.sticky={self:this,options:this.options,element:this.element,currentTop:null,wrapper:this.wrapper,init:!1,getWidthFrom:t.$(this.options.getWidthFrom||this.wrapper),boundary:r,boundtoparent:i,top:0,calcTop:function(){var i=this.options.top;if(this.options.top&&"string"==typeof this.options.top)if(this.options.top.match(/^(-|)(\d+)vh$/))i=window.innerHeight*parseInt(this.options.top,10)/100;else{var e=t.$(this.options.top).first();e.length&&e.is(":visible")&&(i=-1*(e.offset().top+e.outerHeight()-this.wrapper.offset().top))}this.top=i},reset:function(i){this.calcTop();var e=function(){this.element.css({position:"",top:"",width:"",left:"",margin:"0"}),this.element.removeClass([this.options.animation,"uk-animation-reverse",this.options.clsactive].join(" ")),this.element.addClass(this.options.clsinactive),this.element.trigger("inactive.uk.sticky"),this.currentTop=null,this.animate=!1}.bind(this);!i&&this.options.animation&&t.support.animation&&!t.Utils.isInView(this.wrapper)?(this.animate=!0,this.element.removeClass(this.options.animation).one(t.support.animation.end,function(){e()}).width(),this.element.addClass(this.options.animation+" uk-animation-reverse")):e()},check:function(){if(this.options.disabled)return!1;if(this.options.media)switch(typeof this.options.media){case"number":if(window.innerWidth<this.options.media)return!1;break;case"string":if(window.matchMedia&&!window.matchMedia(this.options.media).matches)return!1}var i=e.scrollTop(),n=s.height(),a=n-window.innerHeight,r=i>a?a-i:0,p=this.wrapper.offset().top,h=p-this.top-r,c=i>=h;return c&&this.options.showup&&(1==o&&(c=!1),-1==o&&!this.element.hasClass(this.options.clsactive)&&t.Utils.isInView(this.wrapper)&&(c=!1)),c}},this.sticky.calcTop(),n.push(this.sticky)},update:function(){i(this.sticky)},enable:function(){this.options.disabled=!1,this.update()},disable:function(t){this.options.disabled=!0,this.sticky.reset(t)},computeWrapper:function(){this.wrapper.css({height:-1==["absolute","fixed"].indexOf(this.element.css("position"))?this.element.outerHeight():"","float":"none"!=this.element.css("float")?this.element.css("float"):"",margin:this.element.css("margin")}),"fixed"==this.element.css("position")&&this.element.css({width:this.sticky.getWidthFrom.length?this.sticky.getWidthFrom.width():this.element.width()})}}),t.sticky}); // Accordion /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ !function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-accordion",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";function i(i){var o=t.$(i),e="auto";if(o.is(":visible"))e=o.outerHeight();else{var a={position:o.css("position"),visibility:o.css("visibility"),display:o.css("display")};e=o.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),o.css(a)}return e}return t.component("accordion",{defaults:{showfirst:!0,collapse:!0,animate:!0,easing:"swing",duration:300,toggle:".uk-accordion-title",containers:".uk-accordion-content",clsactive:"uk-active"},boot:function(){t.ready(function(i){setTimeout(function(){t.$("[data-uk-accordion]",i).each(function(){var i=t.$(this);i.data("accordion")||t.accordion(i,t.Utils.options(i.attr("data-uk-accordion")))})},0)})},init:function(){var i=this;this.element.on("click.uikit.accordion",this.options.toggle,function(o){o.preventDefault(),i.toggleItem(t.$(this).data("wrapper"),i.options.animate,i.options.collapse)}),this.update(),this.options.showfirst&&this.toggleItem(this.toggle.eq(0).data("wrapper"),!1,!1)},toggleItem:function(o,e,a){var n=this;o.data("toggle").toggleClass(this.options.clsactive),o.data("content").toggleClass(this.options.clsactive);var s=o.data("toggle").hasClass(this.options.clsactive);a&&(this.toggle.not(o.data("toggle")).removeClass(this.options.clsactive),this.content.not(o.data("content")).removeClass(this.options.clsactive).parent().stop().css("overflow","hidden").animate({height:0},{easing:this.options.easing,duration:e?this.options.duration:0}).attr("aria-expanded","false")),o.stop().css("overflow","hidden"),e?o.animate({height:s?i(o.data("content")):0},{easing:this.options.easing,duration:this.options.duration,complete:function(){s&&(o.css({overflow:"",height:"auto"}),t.Utils.checkDisplay(o.data("content"))),n.trigger("display.uk.check")}}):(o.height(s?"auto":0),s&&(o.css({overflow:""}),t.Utils.checkDisplay(o.data("content"))),this.trigger("display.uk.check")),o.attr("aria-expanded",s),this.element.trigger("toggle.uk.accordion",[s,o.data("toggle"),o.data("content")])},update:function(){var i,o,e,a=this;this.toggle=this.find(this.options.toggle),this.content=this.find(this.options.containers),this.content.each(function(n){i=t.$(this),i.parent().data("wrapper")?o=i.parent():(o=t.$(this).wrap('<div data-wrapper="true" style="overflow:hidden;height:0;position:relative;"></div>').parent(),o.attr("aria-expanded","false")),e=a.toggle.eq(n),o.data("toggle",e),o.data("content",i),e.data("wrapper",o),i.data("wrapper",o)}),this.element.trigger("update.uk.accordion",[this])}}),t.accordion});