var indexJs=function(){var e=!0;return{indexUI:function(){$(document).ready(function(){$(".jQ_sliderSwitch li").on("click",function(){var i=$(this).index();return $("#img-slider").roundabout("animateToChild",i),!1}),$("body").on("keyup",function(i){var n=i.which||i.keyCode;return 37==n?($("#img-slider").roundabout("animateToPreviousChild"),i.preventDefault(),!1):39==n?($("#img-slider").roundabout("animateToNextChild"),i.preventDefault(),!1):void 0}),$(".lunbo").on("mousewheel DOMMouseScroll",function(i){var n=i.originalEvent.wheelDelta&&(0<i.originalEvent.wheelDelta?1:-1)||i.originalEvent.detail&&(0<i.originalEvent.detail?-1:1);if(0<n){if(e)return e=!1,$("#img-slider").roundabout("animateToPreviousChild").bind({animationEnd:function(i){e=!0}}),!1}else if(n<0&&e)return e=!1,$("#img-slider").roundabout("animateToNextChild").bind({animationEnd:function(i){e=!0}}),!1;return i&&i.preventDefault?i.preventDefault():window.event.returnValue=!1,!1}),$("#img-slider").roundabout({minScale:.8,minOpacity:.8,maxOpacity:1,responsive:!0,enableDrag:!0}).bind({animationEnd:function(i){var n=$("#img-slider").roundabout("getChildInFocus");$(".jQ_sliderSwitch li").removeClass("active"),$(".jQ_sliderSwitch li").eq(n).addClass("active")}})});var n=new Swiper(".swiper-container",{pagination:".pagination",loop:!0,grabCursor:!0,paginationClickable:!0,autoplay:3e3,autoplayDisableOnInteraction:!1});$(".arrow-left").on("click",function(i){i.preventDefault(),n.swipePrev()}),$(".arrow-right").on("click",function(i){i.preventDefault(),n.swipeNext()})}}}();$(function(){indexJs.indexUI()});