/*=======================================================================*\
|| ###################################################################### ||
|| # vBulletin 5.4.0 Release Candidate 1
|| # ------------------------------------------------------------------ # ||
|| # Copyright 2000-2018 vBulletin Solutions Inc. All Rights Reserved.  # ||
|| # This file may not be redistributed in whole or significant part.   # ||
|| # ----------------- VBULLETIN IS NOT FREE SOFTWARE ----------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html   # ||
|| ###################################################################### ||
\*========================================================================*/
window.vBulletin=window.vBulletin||{};window.vBulletin.phrase=window.vBulletin.phrase||{};window.vBulletin.phrase.precache=window.vBulletin.phrase.precache||[];window.vBulletin.phrase.precache=$.merge(window.vBulletin.phrase.precache,[]);window.vBulletin.options=window.vBulletin.options||{};window.vBulletin.options.precache=window.vBulletin.options.precache||[];window.vBulletin.options.precache=$.merge(window.vBulletin.options.precache,[]);window.vBulletin=window.vBulletin||{};window.vBulletin.contentslider=window.vBulletin.contentslider||{};(function(E){var C={};function H(R){var Q=R.closest(".js-content-slider-wrapper").innerWidth();R.width(Q);R.find(".js-content-slider__slides").width(Q);var M=R.data("config-height");M=parseInt(M,10);if(M>0){R.height(M);R.find(".js-content-slider__slides").height(M);R.closest(".js-content-slider-wrapper").height(M);var O=R.find(".js-content-slider__slide-caption-background").outerHeight();if(M>O){var L=parseInt(M*0.15,10)}else{var L=0}var K=L+5,N=L,P=L+2;R.find(".js-content-slider__slide-caption").css("bottom",K+"px");R.find(".js-content-slider__slide-caption-background").css("bottom",N+"px");R.find(".js-content-slider__arrow").css("bottom",P+"px")}}function I(O){var K=O.data("config-height");K=parseInt(K,10);if(K>0&&K<120){var P=O.find(".js-content-slider__arrow--right"),M=vBulletin.isRtl()?"left":"right",L=parseInt(P.css(M),10),N=O.find(".js-content-slider__bullets").outerWidth();P.css(M,(N+(L*2)))}}function D(){E(".js-content-slider").each(function(){var N=E(this),M=N.closest(".js-content-slider-wrapper");var L=M.innerWidth();M.find("> .js-content-slider > div").width(L);N.width(L);N.find(".js-content-slider__slides").width(L);N.find(".b-content-slider__slide").width(L);var K=N.attr("id");if(C&&typeof C[K]!="undefined"){C[K].$ScaleWidth(L)}})}function G(N){var L=E(N.target);if(L.is(".b-content-slider__slide, .b-content-slider__title, .ellipsis")){var M=L.closest(".b-content-slider__slide"),K=M.find(".js-content-slider__link");document.location.href=K.attr("href")}}function A(K){var N=E("#"+K),L=N.data("config-interval");L=(E.isNumeric(L)?Math.floor(L*1000):3000);var M={$AutoPlay:true,$AutoPlayInterval:L,$Idle:L,$SlideDuration:650,$ArrowKeyNavigation:true,$PauseOnHover:1,$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$,$ChanceToShow:2,$ActionMode:1,$AutoCenter:0,$Orientation:1},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2,$AutoCenter:0,$Steps:1}};C[K]=new $JssorSlider$(K,M)}function B(K){H(K);A(K.attr("id"));I(K);E(".js-content-slider__slide",K).off("click",G).on("click",G);vBulletin.Responsive.Debounce.registerCallback(D);K.closest(".js-content-slider-wrapper").hide().removeClass("b-content-slider__wrapper--hidden").fadeIn("slow")}function F(){E(".js-content-slider").each(function(){B(E(this))})}function J(){E(F);vBulletin.contentslider.handleWindowResize=D}J()})(jQuery);