function menuActivate(n){$(".topNavigation .rootMenu").removeClass("active").parent().removeClass("active");$(this).addClass("active");n.preventDefault()}function menuDeactivate(){$(this).removeClass("active")}function validateQuickSearch(n){return n.length>0&&KeyPressCounter>0&&(window.location.href=searchUrl+escape(n)),!1}function SignIn(n){var t="";t=n!=""&&n!=undefined?signInUrl:signInUrl;OpenRadWindowOverlay(t,826,340)}function AddToCart(n){OpenOverlay(n,800,620,OnAddToCartClientClose);HideUpdateProgress()}function OnAddToCartClientClose(n){n!=null&&LoadCartItemCount()}function UpdateCartItem(n,t){if(n!=null){var i=t.get_argument();$find(currentPageId).ajaxRequest()}return!1}function LoadCartItemCount(){var n=addToCartServiceUrl,t=randNoDups(1e10);n=String.format(n,t);SendJsonCall(n,"",onLoadCartItemCountSuccess,onLoadCartItemCountFail)}function onLoadCartItemCountSuccess(n){n!=null&&(document.getElementById("CartItemCount").innerHTML=n)}function onLoadCartItemCountFail(){}function RedirectCart(){window.location.href=cartRedirectUrl}$(function(){function i(){var n=!0;typeof usePartialStickyMenu!="undefined"&&(n=usePartialStickyMenu);n&&($(window).scrollTop()>=t?($(".menuBottomRow").addClass("sticky"),$(".content").addClass("menu-padding")):($(".menuBottomRow").removeClass("sticky"),$(".content").removeClass("menu-padding")))}$(".topNavigation .rootMenu").click(menuActivate).parent().mouseover(menuActivate).mouseout(menuDeactivate);$("#SearchBox").keypress(function(n){if(n.which==13){n.preventDefault();var t=jQuery.trim($(this).val());KeyPressCounter=t.length;validateQuickSearch(t)}});$("#SearchBox").change(function(){var n=jQuery.trim($(this).val());KeyPressCounter=n.length});var n=$(".menuBottomRow"),t=n.offset().top;document.onscroll=i});LoadCartItemCount()