(function(n){var t="hpSlider",r="."+t,u="data-transition",l=t+"-transitioning",f=t+"-item",i=t+"-active",e=t+"-in",o=t+"-out",s=t+"-nav",h=function(){for(var n="transition webkitTransition MozTransition OTransition Mstransition".split(" "),t=!1,i;n.length;)if(i=n.shift(),"property"in document.documentElement.style!==undefined&&i in document.documentElement.style!=!1){t=!0;break}return t}(),c={_create:function(){n(this).trigger("beforecreate."+t)[t]("_init")[t]("_addContent").trigger("create."+t)},_init:function(){var r=n(this).attr(u);return r||(h=!1),n(this).addClass(t+" "+(r?t+"-"+r:"")+" ").children().addClass(f).first().addClass(i)},_addContent:function(){return n(this).append("<nav class='"+s+"'><div class='forward'><\/div><div class='back'><\/div><div class='play-pause pause'><\/div><\/nav>")[t]("_bindEventListeners")},update:function(){return n(this).children().not("."+s).addClass(f),n(this).trigger("update."+t)},_bindEventListeners:function(){var i=n(this).bind("click",function(r){var u=n(r.target).closest("div[class='forward'],div[class='back']");u.length&&i[t](u.is("[class='forward']")?"next":"prev")});return this},next:function(){n(this)[t]("goTo","+1")},prev:function(){n(this)[t]("goTo","-1")},goTo:function(e){var s=n(this),p=s.attr(u),c=t+"-"+p+"-reverse",w=t+"-"+p+"-forward",l=n(this).find("."+i),b=l.index(),a=(b<0?0:b)+1,v=typeof e=="number"?e:a+parseFloat(e),o=n(this).find(".hpSlider-item").eq(v-1),y=typeof e=="string"&&!parseFloat(e)||v>=a?w:c;n(r).hasClass(w)||n(r).hasClass(c)||a==v||(o.length||(o=n(this).find("."+f)[y==c?"last":"first"]()),h?s[t]("_transitionStart",l,o,y):s[t]("_legacyTransition",l,o,y),s.trigger("goto."+t,o))},_transitionStart:function(r,u,f){var s=n(this);u.one(navigator.userAgent.indexOf("AppleWebKit")>-1?"webkitTransitionEnd":"transitionend otransitionend",function(){s[t]("_transitionEnd",r,u,f)});s.addClass(f);r.removeClass(i).addClass(o);u.addClass([i,e].join(" "))},_transitionEnd:function(t,i,r){n(this).removeClass(r);i.removeClass(e);t.removeClass(o)},_legacyTransition:function(f,e,o){var c=n(this),s=c.attr(u),l=t+"-"+s+"-reverse",h=t+"-"+s+"-forward";n(r).addClass(o);o==h?(f.animate({left:"-100%"},750,function(){n(this).removeClass(i);n(this).css("left","100%")}),e.animate({left:0},750,function(){n(r).removeClass(h);n(this).addClass(i)})):(e.css("left","-100%"),f.animate({left:"100%"},750,function(){n(this).removeClass(i)}),e.animate({left:0},750,function(){n(r).removeClass(l);e.addClass(i)}))}};n.fn[t]=function(i,r,u,f){return this.each(function(){if(i&&typeof i=="string")return n.fn[t].prototype[i].call(this,r,u,f);if(n(this).data(t+"data"))return n(this);n(this).data(t+"active",!0);n.fn[t].prototype._create.call(this)})};n.extend(n.fn[t].prototype,c);n(function(){n(r)[t]()})})(jQuery),function(n){var t="hpSlider",r="."+t+"[data-paginate]",i=t+"-pagination",f=i+"-container",u=t+"-active-page",e={_createPagination:function(){var e=n(this).find("."+t+"-nav"),h=n(this).find("."+t+"-item"),o=n("<ol class='"+i+"'><\/ol>"),u,r,s;for(e.find("."+i).remove(),r=0,s=h.length;r<s;r++)u=r+1,o.append("<li><a href='#"+u+"' title='Go to slide "+u+"'><\/a><\/li>");e.addClass(t+"-nav-paginated").find("div").first().before(o);n("."+i).wrap("<div class="+f+"/>")},_bindPaginationEvents:function(){n(this).bind("click",function(r){var u=n(r.target).closest("a"),f=u.attr("href");u.closest("."+i).length&&f&&(n(this)[t]("goTo",parseFloat(f.split("#")[1])),r.preventDefault())}).bind("goto."+t,function(t,r){var f=r?n(r).index():0;n(this).find("ol."+i+" li").removeClass(u).eq(f).addClass(u)}).trigger("goto."+t)}};n.extend(n.fn[t].prototype,e);n("html").on("create."+t,function(){n(r)[t]("_createPagination")[t]("_bindPaginationEvents")}).on("update."+t,function(){n(r)[t]("_createPagination")})}(jQuery),function(n){var t="hpSlider",o="."+t,u=t+"-pagination",f=u+"-container",i=".slide-content",r=t+"-nav",e={_createContent:function(){var u=function(){var t=[];return n(i).each(function(){t.push(n(this).clone());n(this).remove()}),t}(),t;for(n("."+r).before("<div class='slide-content-container'><\/div>"),n(".slide-content-container").append("<div class='content'><\/div>"),n("."+r).appendTo(".slide-content-container"),n("."+f).prependTo(".slide-content-container"),n(".l-home-callout").appendTo(".slide-content-container"),t=0;t<u.length;t++)n(".content").append(u[t]);n(i).addClass("hide-content").eq(0).removeClass("hide-content")},_goToContent:function(t,r){var u=r?n(r).index():0;n(".content").children(i).addClass("hide-content").eq(u).removeClass("hide-content")}};n.extend(n.fn[t].prototype,e);n("html").on("create."+t,function(){n(this)[t]("_createContent")}).on("goto."+t,function(i,r){n(this)[t]("_goToContent",i,r)})}(jQuery),function(n,t){var i="hpSlider",r="."+i,u,f=4e3,e=8e3,o={play:function(){console.log("play");var t=n(this),r=parseFloat(t.attr("data-interval"))||e,o=parseFloat(t.attr("data-first-interval"))||f;return t.data("timer",u=setInterval(function(){t[i]("next");clearInterval(u);t.data("timer",setInterval(function(){t[i]("next")},r))},o))},stop:function(){clearTimeout(n(this).data("timer"))},reset:function(){n(".play-pause").hasClass("pause")&&(clearTimeout(n(this).data("timer")),n(r)[i]("play"))},_bindToggle:function(){return n(".play-pause").bind("click",function(){n(".play-pause").hasClass("pause")?n(r)[i]("stop"):n(r)[i]("play");n(".play-pause").toggleClass("pause play")})},_bindStopListener:function(){var t=n(this);return n(".forward, .back").bind("mousedown",function(){t[i]("reset")})},_initAutoPlay:function(){var u=n(r).attr("data-autoplay");u!==t&&u!==!1&&n(r)[i]("_bindStopListener")[i]("_bindToggle")[i]("play")}};n.extend(n.fn[i].prototype,o);n("html").on("create."+i,function(){n(this)[i]("_initAutoPlay")})}(jQuery)