jQuery(document).ready(function(e){var i=e(window),o={vars:{}};function a(){return window.innerWidth<481?1:window.innerWidth<768?2:window.innerWidth<1024?3:4}function n(){return window.innerWidth<481?1:window.innerWidth<768?2:window.innerWidth<1024?3:4}e(".layer-slider").flexslider({animation:magbook_slider_value.magbook_animation_effect,animationLoop:!0,slideshow:!0,slideshowSpeed:magbook_slider_value.magbook_slideshowSpeed,animationSpeed:magbook_slider_value.magbook_animationSpeed,smoothHeight:!0}),e(".multi-slider").flexslider({animation:"slide",animationLoop:!0,slideshow:!0,slideshowSpeed:magbook_slider_value.magbook_slideshowSpeed,animationSpeed:magbook_slider_value.magbook_animationSpeed,smoothHeight:!0,itemWidth:200,itemMargin:1,move:1,minItems:n(),maxItems:n()}),e(".small-slider").flexslider({animation:magbook_slider_value.magbook_animation_effect,animationLoop:!0,slideshow:!0,slideshowSpeed:magbook_slider_value.magbook_slideshowSpeed,animationSpeed:magbook_slider_value.magbook_animationSpeed,smoothHeight:!0}),e(".feature-news-slider").flexslider({animation:"slide",animationLoop:!0,slideshow:!0,controlNav:!1,smoothHeight:!1,slideshowSpeed:5e3,animationSpeed:500,pauseOnHover:!0,itemWidth:200,itemMargin:30,move:1,minItems:a(),maxItems:a()}),e(".breaking-news-slider").flexslider({animation:"slide",animationLoop:!0,direction:"vertical",slideshow:!0,controlNav:!1,directionNav:!0,smoothHeight:!1,slideshowSpeed:3e3,animationSpeed:1e3,pausePlay:!0,pauseText:"Pause",playText:"Play"}),i.resize(function(){var e=a();e=n();o.vars.minItems=e,o.vars.maxItems=e})});