function setSlider(){hpSlider=jQuery(".homepage .hpSlider .swiper-container").swiper({mode:"horizontal",loop:!0,preventLinks:!0,onInit:function(){formatSlider(),setTimeout(function(){hpSliderInterval=setInterval("formatSlider()",500)},2e3)},autoplay:5e3})}function formatSlider(){var t=$(".homepage .hpSlider").css("width").replace("px",""),i,n;t!=hpSliderWidth&&(hpSliderWidth=t,i=parseInt(hpSliderWidth)/746,n=Math.floor(555*i),$(".homepage .swiper-container").css({width:hpSliderWidth,height:n}),hpSlider.resizeFix(),console.log("Reset slider width to "+hpSliderWidth+" x "+n))}var hpSlider,hpSliderInterval,hpSliderWidth=0;$(document).ready(function(){setSlider(),$(".hpSlider .arrows.left, .hpSlider .arrows.right").mouseover(function(){$(this).fadeTo(0,1)}),$(".hpSlider .arrows.left, .hpSlider .arrows.right").mouseout(function(){$(this).fadeTo(0,.5)}),$(".hpSlider .arrows.left a, .hpSlider .arrows.right a").click(function(){hpSlider.stopAutoplay(),$(this).parent().hasClass("right")?hpSlider.swipeNext():hpSlider.swipePrev(),ga("send","pageview",location.pathname)})})