jQuery(document).ready(function(){executeAll();});jQuery(window).scroll(function(){executeAll();});jQuery(window).resize(function(){executeAll();}); function executeAll(){var goToTop=jQuery("#go_top");var distFromTop=jQuery(window).scrollTop();var windowHeight=jQuery(window).height();var bottomBarHeight=jQuery(".bottom_bar").height();if(4){var topBarMode="allways";var topBarHeight=40;var mobModeWidth=1130;var showHeadMob=0;var realMobHeadHeight=80;var floatHeadMobScale=showHeadMob&&0;var windowWidth=window.innerWidth;var siteHeader=jQuery(".site-header");var mobMenu=jQuery(".mobile-menu");var mobMenuSiteHead=jQuery(".mobile-menu,.site-header");var mobBut=jQuery(".menu-toggle");var siteContent=jQuery("html");var wpAdminbar=jQuery("#wpadminbar");var wpAdminbarHeight=wpAdminbar.length>0?wpAdminbar.outerHeight():0;var wpAdminbarAbs=wpAdminbarHeight>0&&wpAdminbar.css("position")==="absolute";var mobMode=false;var topVal=wpAdminbarHeight;var scrollVal=wpAdminbarAbs?wpAdminbarHeight:0;if(windowWidth<=mobModeWidth){mobMode=true;}if(topBarMode!=="never"&&!mobMode||topBarMode==="allways"){topVal+=topBarHeight;scrollVal+=topBarHeight;}var siteContentHeight=siteContent.height()-topVal;var scrolled=false;if(distFromTop>scrollVal&&windowHeightwindowHeight){goToTop.css("opacity","0.5");}else{goToTop.css("opacity", "0");}var visibleBottomBarHeight=inViewportHeight(".bottom_bar");if(distFromTop+windowHeight+bottomBarHeight>=jQuery(document).height()){goToTop.css("bottom",(visibleBottomBarHeight+10)+"px");jQuery("#cart").css("bottom",(visibleBottomBarHeight+60)+"px");}else{jQuery("#cart").css("bottom","60px");goToTop.css("bottom","10px");}if(mobMode){var menuTop=scrolled&&floatHeadMobScale?realMobHeadHeight*0.8:realMobHeadHeight;if(distFromTop===0){menuTop+=topVal;}else if(wpAdminbarAbs&&topVal>=distFromTop){menuTop+=topVal-distFromTop;}else if(topBarMode==="allways"&&!wpAdminbarAbs&&topBarHeight>=distFromTop){menuTop+=(topBarMode==="allways"?topVal:wpAdminbarHeight)-distFromTop;}if(!wpAdminbarAbs&&scrolled){menuTop+=wpAdminbarHeight;}mobMenu.css({"max-height":(windowHeight-menuTop)+"px",top:menuTop+"px"});}}