(function(){function t(t,i){n[i]=t}function i(t){return n[t]}HC.SmoothAccordion=function(n,i){function o(){u=n.find('[data-accordion="content"]');u=u.length===0?n.find('[data-section="content"]'):u;u.css({overflow:"hidden","min-height":"0","max-height":"0"});i=i||{};n.on("click.smoothinital",'[data-accordion="toggle"]',f);i.name&&t(e,i.name)}function f(){s(u);r=!r;n[r?"removeClass":"addClass"]("hc_active");!r&&i.show&&i.show();r&&i.hide&&i.hide()}function s(n){n.css({overflow:"auto","min-height":"","max-height":""});n[r?"transitionSlideDown":"transitionSlideUp"]()}function h(){r&&f()}function c(){return n}var r=!0,e=this,u;o();$.extend(this,{show:h,getHolder:c})};var n={};$.extend(HC.SmoothAccordion,{findInstance:i})})();HC.namespace("HC.PriceAlertLanding"),function(n){function o(n){h(n.find("[data-pricealert-hottip]"));s(n.find("[data-faq-holder]").children())}function s(n){n.each(function(n){var t=new HC.SmoothAccordion($(this),{name:$(this).data("faq-name"),show:function(){r("PriceAlertFAQ",""+(n+1),"open")},hide:function(){r("PriceAlertFAQ",""+(n+1),"close")}})})}function h(n){var t=n.find("[data-pricealert-hottips]"),r=n.find("[data-pricealert-hottipswrapper]");i=t.find("li");t.css("position","relative");i.each(function(n,t){n>0&&$(t).hide();$(t).css({left:0,top:0})});n.processAction({processMap:{hotTipForward:c,hotTipBack:l}});$(window).resize(function(){u(r)});u(r)}function u(n){var t=0;i.each(function(n,i){var r=$(i).outerHeight();r>t&&(t=r)});n.height(t)}function c(){var n=t===i.length-1?0:t+1;f(t,n);t=n;r("PriceAlertHotTip","next")}function l(){var n=t===0?i.length-1:t-1;f(t,n);t=n;r("PriceAlertHotTip","previous")}function f(n,t){var r=i.eq(n),u=i.eq(t);r.fadeOut(0);u.fadeIn(200)}function a(){var n=HC.SmoothAccordion.findInstance("howworks");e(n.show)}function v(){var n=HC.SmoothAccordion.findInstance("appledevicenotifications");e(n.show)}function e(n){$("html, body").animate({scrollTop:$("[data-faq]").offset().top},1e3,n)}function r(){var t=arguments;setTimeout(function(){n.trackEvent.apply(window,t)},500)}function y(){HC.MainNavigation.showRegistration();HC.Common.logExperimentEvent("PriceAlertLandingSignUp")}var i,t=0;$.extend(HC.PriceAlertLanding,{init:o,showHowAlertsWork:a,signUp:y,showEnableNotifications:v})}(HC.GoogleUA);