var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
jQuery(document).ready(function(a){a(".ray-menu-button, .ray-navbar-mobile-menu-button span, .nmb-open-menu").click(function(){a(".ray-navbar-menu-wrapper").css({display:"block"}).hide().fadeIn(300),a(".ray-navbar-menu").animate({"margin-left":"0"})}),a(".ray-navbar-menu-close").click(function(){a(".ray-navbar-menu-wrapper").css({display:"none"}).show().fadeOut(300),a(".ray-navbar-menu").animate({"margin-left":"-100%"})}),a(".ray-network-button, .ray-network-mobile").click(function(){a(".ray-network-wrapper").fadeIn(400)}),a(".ray-network-close").click(function(){a(".ray-network-wrapper").fadeOut(400)}),a(".ray-search-button, .ray-navbar-mobile-search-button span").click(function(){a(".ray-search-wrapper").fadeIn(400)}),a(".ray-search-close").click(function(){a(".ray-search-wrapper").fadeOut(400)}),a(".ray-main-menu-container .menu-item-has-children").hover(function(){a("> ul",this).first().slideToggle(200)}),a(".widget_nav_menu .menu-item-has-children").click(function(){event.stopPropagation(),a("> ul",this).first().slideToggle(200)}),a(".ray-floating-ads-close").click(function(){a(".ray-floating-ads-container").fadeOut()}),a(".back-to-top").click(function(){a("html, body").animate({scrollTop:0},1e3)}),a(".ray-toc-btnHidden").click(function(){a(".ray-toc-list").hide(),a(".ray-toc-btnHidden").hide(),a(".ray-toc-btnShow").show()}),a(".ray-toc-btnShow").click(function(){a(".ray-toc-list").show(),a(".ray-toc-btnShow").hide(),a(".ray-toc-btnHidden").show()}),a(".ray-nav-right-dark, .ray-dark-button-mobile").click(function(){a(".ray-nav-right-dark, .ray-dark-button-mobile").toggleClass("active"),a(".ray-nav-right-dark, .ray-dark-button-mobile").hasClass("active")?(a("body").addClass("dark-mode"),a(".ray-nav-right-dark i").removeClass("fa-moon"),a(".ray-nav-right-dark i").addClass("fa-lightbulb"),localStorage.setItem("darkMode",!0)):(a("body").removeClass("dark-mode"),a(".ray-nav-right-dark i").addClass("fa-moon"),a(".ray-nav-right-dark i").removeClass("fa-lightbulb"),localStorage.removeItem("darkMode"))}),localStorage.getItem("darkMode")?(a("body").addClass("dark-mode"),a(".ray-nav-right-dark, .ray-dark-button-mobile").addClass("active"),a(".ray-nav-right-dark i").removeClass("fa-moon"),a(".ray-nav-right-dark i").addClass("fa-lightbulb")):(a(".ray-nav-right-dark i").addClass("fa-moon"),a(".ray-nav-right-dark i").removeClass("fa-lightbulb")),a(".ads-fixed-bottom-close").click(function(){a(".ads-fixed-bottom-wrapper").fadeOut()}),mediumZoom(document.querySelectorAll(".ray-main-single-content img"),{margin:25}),a(".lazy").Lazy({scrollDirection:"vertical",effect:"fadeIn",visibleOnly:!1,threshold:1,onError:function(a){console.log("error loading "+a.data("src"))}})});const newsSingleAll=document.querySelectorAll(".newsticker-container .newsticker-single");let currentActive=0,totalNews=newsSingleAll.length,duration=3e3;const removeAllActive=()=>{newsSingleAll.forEach(a=>{a.classList.remove("active")})},changeNews=()=>{currentActive>=totalNews-1?currentActive=0:currentActive+=1,removeAllActive(),newsSingleAll[currentActive].classList.add("active")};setInterval(changeNews,duration);
}