var homeCustomersTimer,homeCustomersPauseTimer=!1;function homeResize(){jqDefer(function(){window.matchMedia&&window.matchMedia("(max-width: 639px)").matches?$("#hm .bnr li[data-imageurl-resp]").each(function(){$("img",this).attr("src",$(this).data("imageurl-resp"))}):$("#hm .bnr li[data-imageurl-resp]").each(function(){$("img",this).attr("src",$(this).data("imageurl"))}),window.matchMedia&&window.matchMedia("(max-width: 680px)").matches?$(".static img").attr("src",$(".static img").data("imageurl-resp")):$(".static img").attr("src",$(".static img").data("imageurl"))})}function homeCustomersScroll(){homeCustomersPauseTimer||$(".scroller .list").animate({top:parseInt($(".scroller .list").css("top"))-(isDesktop?76:152)},600,function(){$(".scroller ul:last").after($(".scroller ul:first")),$(".scroller ul:last").after($(".scroller ul:first")),$(".scroller .list").css({top:0})})}function homeInit(){jqDefer(function(){homeResize(),$("#hm .bnr.rotate").jqRotator({autoScroll:!1,parentElementType:"ul",childElementType:"li"}),homeCustomersTimer=setInterval(homeCustomersScroll,5e3),$(".scroller").hover(function(){homeCustomersPauseTimer=!0},function(){homeCustomersPauseTimer=!1}),$("#hm .fs.carousel .itmLst").carouselH({pageSize:3,stepSize:3,autoStepSize:!1,responsive:[{breakpoint:760,settings:{pageSize:6,stepSize:5}},{breakpoint:640,settings:{pageSize:5,stepSize:4}},{breakpoint:480,settings:{pageSize:4,stepSize:3}}]})})}document.addEventListener("DOMContentLoaded",function(){homeInit(),Sys.WebForms.PageRequestManager.getInstance().add_endRequest(homeInit)}),window.addEventListener("resize",homeResize);