var ltv_red_anly_loaded=1;document.addEventListener('DOMContentLoaded',function(){document.addEventListener('click',function(e){if(e.target.tagName==='A'||e.target.parentElement&&e.target.parentElement.tagName==='A'){var target=e.target.tagName==='A'?e.target:e.target.parentElement;if(target.href.startsWith(window.location.origin+'/go/')||target.href.startsWith(window.location.origin+ltv_red_anly.lang+'/go/')||target.href.startsWith('https://bestgmblchoice.com/')){console.log('Click on the partner link detected');if(typeof ltv_check_ab_popup==='function'&&ltv_check_ab_popup(target.href)){return;}
if(typeof gtag!=='undefined'){e.preventDefault();console.log('Preventing default actions...');var url=new URL(target.href),params=new URLSearchParams(url.search),gtag_exec=false;gtag('get',ltv_red_anly.g_id,'client_id',function(cid){gtag_exec=true;console.log('Executing a GTAG event...');params.append('cid',cid);params.append('source',window.location.href);url.search=params.toString();console.log('Opening url');if(target.target=='_blank'){if(typeof ltv_adblock_detect_js==='function'){ltv_adblock_detect_js(e,url.href);}else{window.open(url.href,'_blank');}}else{window.open(url.href);}});setTimeout(function(){if(!gtag_exec){console.log('GTAG event was not executed, opening origin url');if(target.target=='_blank'){if(typeof ltv_adblock_detect_js==='function'){ltv_adblock_detect_js(e,url.href);}else{window.open(url.href,'_blank');}}else{window.open(url.href);}}},200);}}}});});
var ab_used='no';function slideUp(element,duration,removeAttr){var start=performance.now();var initialHeight=element.offsetHeight;var targetHeight=0;function animate(time){var currentTime=time-start;var progress=currentTime/duration;var height=initialHeight*(1-progress);if(height<=targetHeight){element.style.height=targetHeight+'px';element.style.display='none';element.style.overflow=null;if(removeAttr){element.removeAttribute('style');}
return;}
element.style.height=height+'px';requestAnimationFrame(animate);}
element.style.display='block';element.style.overflow='hidden';requestAnimationFrame(animate);}
function slideDown(element,duration,removeAttr){var start=performance.now();var targetHeight=element.scrollHeight;var initialHeight=0;function animate(time){var currentTime=time-start;var progress=currentTime/duration;var height=targetHeight*progress;if(height>=targetHeight){element.style.height=null;element.style.overflow=null;if(removeAttr){element.removeAttribute('style');}
return;}
element.style.height=height+'px';requestAnimationFrame(animate);}
element.style.display='block';element.style.overflow='hidden';element.style.height=initialHeight+'px';requestAnimationFrame(animate);}
function fadeOut(el,removeAttr){el.style.opacity=1;(function fade(){el.style.display="block";if((el.style.opacity-=.1)<=0){el.style.display="none";if(removeAttr){el.removeAttribute('style');}}else{requestAnimationFrame(fade);}})();};function fadeIn(el,removeAttr){el.style.opacity=0;el.style.display="block";(function fade(){var val=parseFloat(el.style.opacity);if(!((val+=.1)>1)){el.style.opacity=val;requestAnimationFrame(fade);}else if(removeAttr){el.removeAttribute('style');}})();};function encodeDataAB(data){return Object.keys(data).map(function(key){return[key,data[key]].map(encodeURIComponent).join("=");}).join("&");}
function ltv_perfmon_log_adblock(status,url=''){if(url===''){url=window.location.pathname}
var data={'action':'ltv_perfmon_adblock_ajax','url':url,'status':status,};var XHRAdBlockLog=new XMLHttpRequest();XHRAdBlockLog.open('POST',ezf_var.ajaxurl,true);XHRAdBlockLog.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');XHRAdBlockLog.send(encodeDataAB(data));}
function ltv_adblock_detect_js(e,url=''){var tOut=800;given_url=url?url:e.target.href;if(given_url.includes('target=proxy')){tOut=4000;}
var tab=window.open(given_url,'_blank');setTimeout(function(){if(tab.closed){var the_url=new URL(given_url).pathname+new URL(given_url).search;if(tab.window&&tab.was_redirected){console.log('Redirect was blocked by an ad blocker.');ltv_perfmon_log_adblock(1,the_url);}else if(tab.window&&typeof tab.was_redirected==='undefined'){console.log('The link was likely blocked by an ad blocker.');ltv_perfmon_log_adblock(1,the_url);}}},tOut);}
function ltv_check_ab_popup(url=''){if(typeof ltv_ab_pop_vars=='undefined'){return false;}
if(typeof ab_popup_load!=='undefined'&&ab_used==='yes'&&url.includes('target=proxy')){if(ltv_ab_pop_vars.blist.some(function(str){return url.includes(str);})){return true;}}
return false;}
document.addEventListener('DOMContentLoaded',function(){var $body=document.body,$headerArea=$body.querySelector('.ltv-header-main'),$headerSpacing=$body.querySelector('.ltv-header-spacing'),$searchFrm=document.getElementById('h-search-frm'),$searchBtn=$headerArea.querySelector('.h-search-btn'),$searchInput=$headerArea.querySelector('.h-search-input'),$searchInputTxt=document.getElementById('search-input-txt'),$mainNav=$headerArea.querySelector('.ltv-nav-main'),$langSwitcherDesk=$headerArea.querySelector('.ltv-lang-switcher.desk'),$langSwitcherMob=$headerArea.querySelector('.ltv-lang-switcher.mob'),$navOverlay=$body.querySelector('.ltv-nav-overlay'),$navMainOverlay=$body.querySelector('.ltv-nav-main-overlay'),$searchCloseBtn=$headerArea.querySelector('.h-search-close-btn'),$mobileMenuBtn=$headerArea.querySelector('.h-mobile-nav-btn'),$mobileMenuBtnClickable=$mobileMenuBtn.querySelector('button'),$ScrollTop=$body.querySelector('.ltv-scroll-top'),$SecMenuBtn=$headerArea.querySelector('.ltv-sm-ham'),$SecMenuMob=$headerArea.querySelector('.ltv-sm-menu.mob'),$SecMenu=$body.querySelector('.ltv-secondary-menu'),$HeaderBonus=$headerArea.querySelector('.h-bonus');$body.addEventListener('click',function(e){if(e.target.tagName==='A'||e.target.parentElement&&e.target.parentElement.tagName==='A'){var target=e.target.tagName==='A'?e.target:e.target.parentElement;if(target.target=='_blank'&&target.href.includes('/go/')){if(ltv_check_ab_popup(target.href)){e.preventDefault();document.querySelector('html').classList.add('ltv_adblock_pop_active');ab_popup_last_link=target.href;if(typeof gtag!=='undefined'){gtag('event','Viewed',{'event_category':'AdBlock Popup'});}}else{if(typeof ltv_red_anly_loaded=='undefined'){e.preventDefault();ltv_adblock_detect_js(e,target.href);}}}}});var $splitView=$body.querySelector('.ltv-split-view'),$sideContainer=$body.querySelector('.side-container');function get_height(el){if(el){return parseFloat(getComputedStyle(el,null).height.replace('px',''));}else{return 0;}}
function ltv_search_action(){if($searchInputTxt.value!==''&&$searchInputTxt.value.length>=3){location.replace(LTV.search_link+encodeURI($searchInputTxt.value.toLowerCase())+'/');}else{$searchInputTxt.focus();}}
function check_ltv_scroll_top(){if(window.scrollY>200){$ScrollTop.classList.add('show');}else{$ScrollTop.classList.remove('show');}}
function ltv_reposition(){var sec_menu=$body.querySelector('.ltv-secondary-menu'),Head_banner=$body.querySelector('.ltv-head-banner.mode-sticky'),Main_nav_inner=$mainNav.querySelector('.ltv-nav-main-inner');if(window.scrollY>1){var do_scroll=false;$headerArea.classList.add('sticky');var head_h=70;if(sec_menu){sec_menu.classList.add('sticky');if($SecMenuBtn.classList.contains('cross')){head_h+=40;}}
if(Head_banner&&screen.height>=500){var head_banner_height=parseInt(get_height(Head_banner));if($body.classList.contains('admin-bar')&&!Head_banner.classList.contains('sticky')){if(sec_menu&&window.innerWidth>600){head_banner_height+=32;}}
if(!Head_banner.classList.contains('sticky')){if(window.scrollY<10){do_scroll=true;}
Head_banner.classList.add('sticky');}
head_h+=head_banner_height;$headerArea.style.top=head_banner_height+'px';if(window.innerWidth>=1200){if(sec_menu){sec_menu.style.top=head_banner_height+70+'px';}
$mainNav.removeAttribute('style');Main_nav_inner.removeAttribute('style');}else{$mainNav.style.top=head_banner_height+70+'px';Main_nav_inner.style.paddingBottom=head_banner_height+70+'px';}
if($body.classList.contains('admin-bar')){head_h-=32;}}else if(Head_banner){Head_banner.classList.remove('sticky');$headerArea.removeAttribute('style');$mainNav.removeAttribute('style');Main_nav_inner.removeAttribute('style');}
$headerSpacing.style.height=head_h+'px';if(do_scroll){document.scrollingElement.scrollTop=2;}}else{$headerArea.classList.remove('sticky');$headerSpacing.removeAttribute('style');if(sec_menu){sec_menu.classList.remove('sticky');}
if(Head_banner){Head_banner.classList.remove('sticky');$headerArea.removeAttribute('style');$mainNav.removeAttribute('style');Main_nav_inner.removeAttribute('style');}}}
function outerHeight(el){var height=el.offsetHeight;var style=getComputedStyle(el);height+=parseFloat(style.marginTop)+parseFloat(style.marginBottom);return height;}
function ltv_maybe_close_mobile_menu(){if(window.innerWidth>1199){if($mobileMenuBtn.classList.contains('opened')){$mobileMenuBtnClickable.click();}}else{if($SecMenuBtn&&$SecMenuBtn.classList.contains('cross')){$SecMenuBtn.classList.remove('cross');var sec_menu=$body.querySelector('.ltv-secondary-menu');if(sec_menu){sec_menu.style.display='none';}}}
if(window.innerWidth>767&&$langSwitcherDesk){if($langSwitcherDesk.classList.contains('hidden')&&!$searchFrm.classList.contains('expanded')){$langSwitcherDesk.classList.remove('hidden')
$langSwitcherDesk.removeAttribute('style');}}}
function ltv_check_side_container(){if(window.innerWidth>1199&&$splitView){var side_wrap=$splitView.querySelector('.side-container .wrap');if(side_wrap){var totalHeight=get_height(side_wrap);if(totalHeight==0){child_el=side_wrap.children;Array.prototype.forEach.call(child_el,function(el,i){totalHeight=totalHeight+outerHeight(el);});}else{totalHeight=totalHeight+parseInt(getComputedStyle($splitView.querySelector('.side-container'))['top'],10);}
if(totalHeight>get_height($splitView)){$splitView.style.minHeight=totalHeight+parseInt(getComputedStyle($splitView.querySelector('.side-container'))['top'],10)+55+'px';}}}}
function scrollToTop(duration){if(document.scrollingElement.scrollTop===0)return;const cosParameter=document.scrollingElement.scrollTop/2;let scrollCount=0,oldTimestamp=null;function step(newTimestamp){if(oldTimestamp!==null){scrollCount+=Math.PI*(newTimestamp-oldTimestamp)/duration;if(scrollCount>=Math.PI)return document.scrollingElement.scrollTop=0;document.scrollingElement.scrollTop=cosParameter+cosParameter*Math.cos(scrollCount);}
oldTimestamp=newTimestamp;window.requestAnimationFrame(step);}
window.requestAnimationFrame(step);}
if($splitView&&$sideContainer){var $sideContainerWrap=$sideContainer.querySelector('.wrap .ltv-floating-partners'),$sideContainerParentWrap=$splitView.querySelector('.fp-parent'),sideContainerTopOffset=getComputedStyle($sideContainer)['top']?parseInt(getComputedStyle($sideContainer)['top']):0;if((get_height($sideContainerWrap)+sideContainerTopOffset+get_height($sideContainerParentWrap)+40)>get_height($splitView)){$splitView.style.minHeight=(get_height($sideContainerWrap)+get_height($sideContainerParentWrap)+110)+'px';}}
$mobileMenuBtnClickable.addEventListener('click',function(e){e.preventDefault();var Head_banner=$body.querySelector('.ltv-head-banner.mode-sticky');if($mobileMenuBtn.classList.contains('opened')){$mobileMenuBtn.classList.remove('opened');$mainNav.classList.remove('opened');var openend_menus=$mainNav.querySelectorAll('.submenu-opened');if(openend_menus){openend_menus.forEach((item)=>{item.classList.remove('submenu-opened');});}
$body.classList.remove('mobile-nav-opened');fadeOut($navOverlay,true);$navOverlay.classList.remove('visible');if(Head_banner){ltv_reposition();}}else{$mobileMenuBtn.classList.add('opened');$mainNav.classList.add('opened');$body.classList.add('mobile-nav-opened');fadeIn($navOverlay,true);$navOverlay.classList.add('visible');if(Head_banner){ltv_reposition();}}
if($langSwitcherMob&&$langSwitcherMob.classList.contains('opened')){$langSwitcherMob.classList.remove('opened');}
$headerArea.classList.remove('lang-sw-mob-opened');});if($langSwitcherMob){var reg_switcher=$langSwitcherMob.querySelector('.ltv-ls-switch');if(reg_switcher){reg_switcher.addEventListener('click',function(e){e.preventDefault();if($langSwitcherMob.classList.contains('opened')){$langSwitcherMob.classList.remove('opened');$headerArea.classList.remove('lang-sw-mob-opened');}else{$langSwitcherMob.classList.add('opened');$headerArea.classList.add('lang-sw-mob-opened');$mainNav.scroll({top:0,left:0,behavior:'smooth'});}});}
$langSwitcherMob.querySelector('.back').addEventListener('click',function(e){e.preventDefault();if($langSwitcherMob.classList.contains('opened')){$langSwitcherMob.classList.remove('opened');$headerArea.classList.remove('lang-sw-mob-opened');}});}
function ltv_submenu_expand(e){if(window.innerWidth<1200){if(e.target.classList.contains('ltv-submenu-expand-btn')||e.target.classList.contains('ltv-menu-link')){var $thisBtn=e.target,$navItem=$thisBtn.parentNode.parentNode;if($thisBtn.getAttribute('href')=='javascript:'){e.preventDefault();if($navItem.classList.contains('submenu-opened')){slideUp($navItem.querySelector('.sub-menu'),300,true);$navItem.classList.remove('submenu-opened');var child_sub_menu=$navItem.querySelector('.submenu-opened');if(child_sub_menu){child_sub_menu.classList.remove('submenu-opened');}}else{$navItem.classList.add('submenu-opened');slideDown($navItem.querySelector('.sub-menu'),300,true);}}}}}
$mainNav.querySelector('div > ul').addEventListener('click',ltv_submenu_expand);if($SecMenuMob)$SecMenuMob.querySelector('div > ul').addEventListener('click',ltv_submenu_expand);$searchBtn.addEventListener('click',function(e){e.preventDefault();$mainNav.removeAttribute('style');if($searchInput.classList.contains('hidden')){if($HeaderBonus&&$HeaderBonus.classList.contains('active')){var HeaderBannerClose_x=$HeaderBonus.querySelector('.close-x');if(HeaderBannerClose_x){HeaderBannerClose_x.click();}}
$searchFrm.classList.add('expanded');$searchBtn.classList.add('opened');$searchInput.classList.remove('hidden');if(window.innerWidth>1199){fadeOut($mainNav,true);}
$mainNav.classList.add('hidden');if($langSwitcherDesk){$langSwitcherDesk.classList.add('hidden');if(window.innerWidth>767){fadeOut($langSwitcherDesk,true);}}
if(navigator.userAgent.indexOf('iPhone')>-1){$searchInputTxt.classList.add('large');}
$searchInputTxt.focus();$searchInputTxt.setAttribute('value','');}else{$searchFrm.requestSubmit();}});$navMainOverlay.addEventListener('click',function(e){if($mobileMenuBtn.classList.contains('opened')){$mobileMenuBtnClickable.click();}});$searchFrm.addEventListener('submit',function(e){e.preventDefault();ltv_search_action();});function Search_input_validate(e){e.target.setCustomValidity('');if($searchInputTxt.value!==''&&$searchInputTxt.value.length<3){$searchInputTxt.setCustomValidity(LTV.search_too_short.replace('%s',3));}}
$searchInputTxt.addEventListener('invalid',function(e){Search_input_validate(e);});$searchInputTxt.addEventListener('input',function(e){Search_input_validate(e);});$searchCloseBtn.addEventListener('click',function(e){$mainNav.removeAttribute('style');if(!$searchInput.classList.contains('hidden')){$searchInput.classList.add('hidden');$searchBtn.classList.remove('opened');$searchFrm.classList.remove('expanded');if(window.innerWidth>1199){fadeIn($mainNav,true);}
$mainNav.classList.remove('hidden');if($langSwitcherDesk&&window.innerWidth>767){$langSwitcherDesk.classList.remove('hidden');fadeIn($langSwitcherDesk,true);}
$searchInputTxt.value='';}});if(window.scrollY>1){ltv_reposition();$headerArea.classList.add('sticky');if($SecMenu){$SecMenu.classList.add('sticky');}}else{$headerArea.classList.remove('sticky');if($SecMenu){$SecMenu.classList.remove('sticky');}}
check_ltv_scroll_top();$ScrollTop.addEventListener('click',function(e){e.preventDefault();scrollToTop(500);});var waitForFinalEvent=(function(){var timers={};return function(callback,ms,uniqueId){if(!uniqueId){uniqueId="Don't call this twice without a uniqueId";}
if(timers[uniqueId]){clearTimeout(timers[uniqueId]);}
timers[uniqueId]=setTimeout(callback,ms);};})();if($SecMenuBtn){$SecMenuBtn.addEventListener('click',function(e){var sec_menu=$body.querySelector('.ltv-secondary-menu');if(this.classList.contains('cross')&&sec_menu.style.overflow!=='hidden'){this.classList.remove('cross');slideUp(sec_menu,200);}else if(sec_menu.style.display==='none'||sec_menu.style.display===''){this.classList.add('cross');var Head_banner=$body.querySelector('.ltv-head-banner');if(Head_banner&&Head_banner.classList.contains('sticky')){var head_banner_height=parseInt(get_height(Head_banner));sec_menu.style.top=head_banner_height+70+'px';}else{sec_menu.style.top='';}
sec_menu.style.display='block';slideDown(sec_menu,200);}});}
ltv_check_side_container();var yt_vid_wrappers=$body.querySelectorAll('.ltv-video-wrapper.yt');if(yt_vid_wrappers){yt_vid_wrappers.forEach((vid)=>{var a_tag=vid.querySelector('A'),img=document.createElement('img');img.alt='';img.src='https://img.youtube.com/vi/'+a_tag.getAttribute('data-ytid')+'/maxresdefault.jpg';img.width='1280';img.height='720';a_tag.appendChild(img);img.addEventListener('load',function(){if(img.naturalWidth===120&&img.naturalHeight===90){img.src='https://img.youtube.com/vi/'+a_tag.getAttribute('data-ytid')+'/mqdefault.jpg';img.width='320';img.height='180';}});vid.addEventListener('click',function(e){e.preventDefault();var frame=vid.querySelector('iframe');frame.setAttribute('src',frame.getAttribute('data-ytsrc'));a_tag.remove();});});}
var ltv_third_party_allowed=null;function ltv_check_third_party_cookie(){function wb_check_destroy(){ltv_lazy_load_iframe();document.getElementById('wb_set_cookie').remove();document.getElementById('wb_check_cookie').remove();clearInterval(window.cookie_check_interval);}
function ltv_check_cookies(){WIMB.detect.cookies_third_party.trigger_set_cookie();window.cookie_check_interval=setInterval(function(){if(WIMB.detect.cookies_third_party.enabled()==true){ltv_third_party_allowed=true;wb_check_destroy();}
else if(WIMB.detect.cookies_third_party.enabled()==false){ltv_third_party_allowed=false;wb_check_destroy();}},50);setTimeout(function(){if(ltv_third_party_allowed===2){ltv_third_party_allowed=false;}
clearInterval(window.cookie_check_interval);},5000);}
if(ltv_third_party_allowed===null){ltv_third_party_allowed=2;var js=document.createElement('script');js.type='text/javascript';js.src=window.location.origin+'/wp-content/themes/ltv/assets/lib/whatismybrowser/whatismybrowser.js';js.onload=ltv_check_cookies;$body.appendChild(js);}}
function ltv_lazy_load_iframe(){ltv_iframes.forEach((frame)=>{if(!frame.classList.contains('lazyloaded')&&frame.getAttribute('data-src')){var position=frame.getBoundingClientRect();if(position.top-100<window.innerHeight&&position.bottom+100>=0){if(frame.getAttribute('data-src').startsWith('https://www.sofascore')){if(ltv_third_party_allowed===null){ltv_check_third_party_cookie();return;}else if(ltv_third_party_allowed===false){frame.remove();return;}else if(ltv_third_party_allowed!==true){return;}}
frame.setAttribute('src',frame.getAttribute('data-src'));frame.removeAttribute('data-src');frame.classList.add('lazyloaded');}}});}
var ltv_iframes=$body.querySelectorAll('iframe');if(ltv_iframes.length>0){ltv_lazy_load_iframe();}
if(document.getElementById('URWvqovRQVAi8')){}else{ab_used='yes';ltv_perfmon_log_adblock(1);}
if(typeof gtag!=='undefined'){gtag('event','Blocking Ads',{'event_category':'Blocking Ads','event_label':ab_used});}
window.addEventListener('scroll',function(){ltv_reposition();check_ltv_scroll_top();if(ltv_iframes.length>0){ltv_lazy_load_iframe();}});window.addEventListener('resize',function(){ltv_reposition();check_ltv_scroll_top();waitForFinalEvent(function(){ltv_maybe_close_mobile_menu();ltv_check_side_container();},50,"ltv-after-resize");if(ltv_iframes.length>0){ltv_lazy_load_iframe();}});});if(LTV&&LTV.sw&&LTV.sw==='1'){if('serviceWorker'in navigator&&'PushManager'in window){navigator.serviceWorker.register('/sw.js').then(function(swReg){swRegistration=swReg;}).catch(function(error){console.error('Service Worker Error',error);});}else{console.warn('Push messaging is not supported');}};
var ab_popup_load=1,ab_popup_last_link='';document.addEventListener('DOMContentLoaded',function(){Array.prototype.forEach.call(document.querySelectorAll('.ltv_adblock_pop .btns div'),function(item){item.addEventListener('click',function(){if(this.className==='try'){var this_btn=this,try_btn_txt=this_btn.textContent;this_btn.textContent=this_btn.dataset.check;reload_ezf_script();setTimeout(function(){this_btn.textContent=try_btn_txt;if(document.getElementById('URWvqovRQVAi8')){document.querySelector('html').classList.remove('ltv_adblock_pop_active');ab_used='no';if(typeof gtag!=='undefined'){gtag('event','AdBlock turned off',{'event_category':'AdBlock Popup'});}
if(ab_popup_last_link!==''){window.open(ab_popup_last_link,'_blank');ab_popup_last_link='';}}else{if(ab_popup_last_link!==''){document.querySelector('html').classList.remove('ltv_adblock_pop_active');window.open(ab_popup_last_link,'_blank');ab_popup_last_link='';}}},1000);if(typeof gtag!=='undefined'){gtag('event','Try again',{'event_category':'AdBlock Popup'});}}else{document.querySelector('html').classList.remove('ltv_adblock_pop_active');if(typeof gtag!=='undefined'){gtag('event','Close',{'event_category':'AdBlock Popup'});}}},false);});function reload_ezf_script(){var oldScript=document.getElementById('ezf-min-js'),newScript=document.createElement('script');if(oldScript){newScript.src=oldScript.src;newScript.id='ezf-min-js';oldScript.parentNode.replaceChild(newScript,oldScript);}}},false);
document.addEventListener('DOMContentLoaded',function(){var ltv_cookie_pop=document.getElementById('ltv-pop-cookie');function set_ltv_cookie_pop_cookie(value){var d=new Date;d.setTime(d.getTime()+24*60*60*1000*ltv_cookie_pop_vars.cookie_time);document.cookie="ltv_pop_cookie_notice"+"="+value+";path=/;expires="+d.toGMTString();}
function get_ltv_cookie_pop_cookie(){var v=document.cookie.match('(^|;) ?'+"ltv_pop_cookie_notice"+'=([^;]*)(;|$)');return v?v[2]:null;}
function ltv_cookie_grant_set(value){var d=new Date;d.setTime(d.getTime()+24*60*60*1000*ltv_cookie_pop_vars.cookie_time);value=JSON.stringify(value);document.cookie="cookie_consentGranted"+"="+value+";path=/;expires="+d.toGMTString();}
if(!get_ltv_cookie_pop_cookie()){ltv_cookie_pop.classList.add('active');document.body.classList.add('ltv-pop-cookie-active');if(typeof gtag!=='undefined'){gtag('event','Viewed',{'event_category':'Cookies Notice'});}
ltv_cookie_pop.querySelector('.accept').addEventListener('click',function(){set_ltv_cookie_pop_cookie(true);ltv_cookie_pop.classList.remove('active');document.body.classList.remove('ltv-pop-cookie-active');var grants={'security_storage':'granted','ad_user_data':'granted','ad_personalization':'granted','ad_storage':'granted','analytics_storage':'granted','functionality_storage':'granted','personalization_storage':'granted',};ltv_cookie_grant_set(grants);if(typeof gtag!=='undefined'){gtag('consent','update',grants);gtag('event','Accepted',{'event_category':'Cookies Notice'});}
if(typeof Position_Footer_Banner==='function'){Position_Footer_Banner(0);}},false);var more_btn=ltv_cookie_pop.querySelector('.more');if(more_btn){more_btn.addEventListener('click',function(){if(typeof gtag!=='undefined'){gtag('event','Read more',{'event_category':'Cookies Notice'});}},false);}
ltv_cookie_pop.querySelector('.close').addEventListener('click',function(){set_ltv_cookie_pop_cookie(true);ltv_cookie_pop.classList.remove('active');document.body.classList.remove('ltv-pop-cookie-active');if(typeof gtag!=='undefined'){gtag('event','Closed',{'event_category':'Cookies Notice'});}
if(typeof Position_Footer_Banner==='function'){Position_Footer_Banner(0);}},false);}},false);
document.addEventListener('DOMContentLoaded',function(){var age_check_pop=document.querySelector('.ltv_pop_age_check');function set_ltv_entry_pop_cookie(value){var d=new Date;d.setTime(d.getTime()+24*60*60*1000*ltv_entry_pop_vars.cookie_time);document.cookie="ltv_pop_site_entry_"+ltv_entry_pop_vars.last_mod+"="+value+";path=/;expires="+d.toGMTString();}
function get_ltv_pop_cookie(name){var v=document.cookie.match('(^|;) ?'+name+'=([^;]*)(;|$)');return v?v[2]:null;}
function ltv_site_entry_close(html_tag,type){html_tag.classList.remove('ltv-pop-entry-active');set_ltv_entry_pop_cookie(type);if(typeof gtag!=='undefined'){gtag('event','Closed',{'event_category':'Entry Popup'});}}
if(!age_check_pop||(age_check_pop&&(get_ltv_pop_cookie('ltv_pop_age_check')&&get_ltv_pop_cookie('ltv_pop_age_check')!=='no'))){if(document.getElementById('ltv-cookie-banner')&&!get_ltv_pop_cookie('cookie_consentGranted')){return;}
if(!get_ltv_pop_cookie('ltv_pop_site_entry_'+ltv_entry_pop_vars.last_mod)){var LTVSite_entry_auto_opened=false;['click','scroll','mousemove','touchstart'].forEach(function(e){window.addEventListener(e,function(){if(!LTVSite_entry_auto_opened){LTVSite_entry_auto_opened=true;setTimeout(function(){var html_tag=document.querySelector('html');if(html_tag.classList.contains('ltv_adblock_pop_active')){LTVSite_entry_auto_opened=false;return;}
document.querySelector('.ltv_pop_site_entry .close-x').addEventListener('click',function(){ltv_site_entry_close(html_tag,'closed-x');},false);document.querySelector('.ltv_pop_site_entry_overlay').addEventListener('click',function(e){if(e.target.classList.contains('ltv_pop_site_entry_overlay')){ltv_site_entry_close(html_tag,'closed-overlay');}},false);document.querySelector('.ltv_pop_site_entry_overlay').addEventListener('touchend',function(e){if(e.target.classList.contains('ltv_pop_site_entry_overlay')){ltv_site_entry_close(html_tag,'closed-overlay-swiped');}},false);Array.prototype.forEach.call(document.querySelectorAll('.ltv_pop_site_entry a'),function(item){item.addEventListener('click',function(){set_ltv_entry_pop_cookie('clicked-link');if(typeof gtag!=='undefined'){gtag('event','Affiliate Click',{'event_category':'Entry Popup'});}},false);});html_tag.classList.add('ltv-pop-entry-active');document.activeElement.blur();if(typeof gtag!=='undefined'){gtag('event','Viewed',{'event_category':'Entry Popup'});}},ltv_entry_pop_vars.seconds*1000);}},{once:true});});}}},false);
document.addEventListener('DOMContentLoaded',function(){var h_bonus_main=document.querySelector('.h-bonus'),h_bonus_i=h_bonus_main.querySelector('.h-bonus > button'),h_pop_cont=h_bonus_main.querySelector('.h-bonus-popup'),h_bonus_cross=h_pop_cont.querySelector('.close-x'),h_bonus_aut_opened=0,event_cat_mod='',h_bonus_active=0;if(h_bonus_main.dataset.auto){event_cat_mod=' - Auto Open';}
function set_ltv_h_bonus_pop_cookie(value){var d=new Date;d.setTime(d.getTime()+24*60*60*1000*1);document.cookie="ltv_pop_h_bonus"+"="+value+";path=/;expires="+d.toGMTString();}
function get_ltv_pop_cookie(name){var v=document.cookie.match('(^|;) ?'+name+'=([^;]*)(;|$)');return v?v[2]:null;}
function h_bonus_close(){h_bonus_main.classList.remove('active');h_bonus_active=0;if(typeof gtag!=='undefined'){gtag('event','Closed',{'event_category':'Gift Icon'+event_cat_mod,'event_label':h_bonus_main.dataset.label});}}
function h_bonus_opener(){if(typeof gtag!=='undefined'){gtag('event','Click',{'event_category':'Gift Icon'+event_cat_mod,'event_label':h_bonus_main.dataset.label});}
if(h_bonus_active){h_bonus_close();}else{h_bonus_main.classList.add('active');h_bonus_main.classList.remove('anim');h_bonus_active=1;if(typeof gtag!=='undefined'){gtag('event','Viewed',{'event_category':'Gift Icon'+event_cat_mod,'event_label':h_bonus_main.dataset.label});}}}
h_pop_cont.addEventListener('click',function(e){if(e.target.tagName==='A'&&typeof gtag!=='undefined'){gtag('event','Affiliate Click',{'event_category':'Gift Icon'+event_cat_mod,'event_label':h_bonus_main.dataset.label});}});h_bonus_main.addEventListener('click',function(e){if(e.target!==this)return;h_bonus_opener();});h_bonus_i.addEventListener('click',function(){h_bonus_opener();});h_bonus_cross.addEventListener('click',function(){set_ltv_h_bonus_pop_cookie(true);h_bonus_close();});var h_bonus_cookie=get_ltv_pop_cookie('ltv_pop_h_bonus');if((!h_bonus_cookie||h_bonus_cookie==0)){h_bonus_main.classList.add('anim');if(h_bonus_main.dataset.auto){var go_on=true;if(document.querySelector('.ltv_pop_age_check')&&get_ltv_pop_cookie('ltv_pop_age_check')!=='yes'){go_on=false;}
if(document.getElementById('ltv-cookie-banner')&&!get_ltv_pop_cookie('cookie_consentGranted')){go_on=false;}
if(typeof ltv_entry_pop_vars!=='undefined'&&!get_ltv_pop_cookie('ltv_pop_site_entry_'+ltv_entry_pop_vars.last_mod)){go_on=false;}
if(h_bonus_main.dataset.auto==2){if(h_bonus_cookie===null){go_on=false;set_ltv_h_bonus_pop_cookie(0);}}
if(go_on){var LTVGift_auto_opened=false;['click','scroll','mousemove','touchstart'].forEach(function(e){window.addEventListener(e,function(){if(!LTVGift_auto_opened){LTVGift_auto_opened=true;setTimeout(function(){var HeaderSearchBtn=document.body.querySelector('.ltv-header-main .h-search-btn');if(HeaderSearchBtn&&HeaderSearchBtn.classList.contains('opened')){return;}
if(!h_bonus_active){h_bonus_main.classList.add('active');h_bonus_main.classList.remove('anim');h_bonus_active=1;h_bonus_aut_opened=1;if(typeof gtag!=='undefined'){gtag('event','Viewed',{'event_category':'Gift Icon'+event_cat_mod,'event_label':h_bonus_main.dataset.label});}}},1*1000);}},{once:true});});}}}});
document.addEventListener('DOMContentLoaded',function(){var $body=document.querySelector('body'),sticky_banner=$body.querySelector('.hdsb-stickybanner'),f_cationbar=$body.querySelector('.f-actionbar');function set_sb_cookie(value){var d=new Date;d.setTime(d.getTime()+24*60*60*1000*hdsb_sb_vars.sb_cookie_exp);document.cookie="sticky-banner"+"="+value+";path=/;expires="+d.toGMTString();}
function get_sb_cookie(name){var v=document.cookie.match('(^|;) ?'+name+'=([^;]*)(;|$)');return v?v[2]:null;}
if(sticky_banner&&!get_sb_cookie('sticky-banner')&&!f_cationbar){if(document.getElementById('ltv-cookie-banner')&&!get_sb_cookie('cookie_consentGranted')){return;}
var StickyBanner_auto_opened=false;['click','scroll','mousemove','touchstart'].forEach(function(e){window.addEventListener(e,function(){if(!StickyBanner_auto_opened){StickyBanner_auto_opened=true;Position_Footer_Banner();sticky_banner.classList.add('is-active');window.addEventListener('resize',function(){Position_Footer_Banner();});if(sticky_banner.classList.contains('hdsb-stickybanner-bottom')){$body.classList.add('hdsb-b-active');}
sticky_banner.querySelector('.hdsb-stickybanner-close').addEventListener('click',function(){sticky_banner.classList.add('is-inactive');sticky_banner.classList.remove('is-active');$body.classList.remove('hdsb-b-active');if(typeof gtag!=='undefined'){gtag('event','Closed',{'event_category':'Sticky Banner'});}
set_sb_cookie(true);});sticky_banner.querySelector('.hdsb-stickybanner-btn').addEventListener('click',function(){if(typeof gtag!=='undefined'){gtag('event','Affiliate Click',{'event_category':'Sticky Banner'});}});}},{once:true});});}});function Position_Footer_Banner(height=null){var body=document.querySelector('body'),sticky_banner=body.querySelector('.hdsb-stickybanner');if(!sticky_banner){return;}else if(sticky_banner.classList.contains('is-inactive')){return;}
if(height!==null){sticky_banner.style.bottom=height+'px';return;}
if(body.classList.contains('ltv-pop-cookie-active')){var the_cookie_banner=body.querySelector('aside.ltv-pop-cookie.dark-wide');if(the_cookie_banner){var cookie_height=the_cookie_banner.offsetHeight;sticky_banner.style.bottom=cookie_height+'px';}}};
function encodeData(data){return Object.keys(data).map(function(key){return[key,data[key]].map(encodeURIComponent).join("=");}).join("&");}
document.addEventListener('DOMContentLoaded',InitReviewsTableLoader);function InitReviewsTableLoader(){var reviews_table=document.querySelector('.reviews-table'),load_more=0,page=2;if(reviews_table){load_more=reviews_table.querySelector('.ltv-post-loader-btn');}
if(load_more){load_more.addEventListener('click',function(e){e.preventDefault();if(!load_more.classList.contains('loading')){load_more.classList.add('loading');if(!ltv_revt_var.content_types){ltv_revt_var.content_types='bookies';}
if(!ltv_revt_var.post_ids){ltv_revt_var.post_ids=[];}
var data={'action':'ltv_load_reviews_table','per_page':ltv_revt_var.per_page,'content_types':ltv_revt_var.content_types,'show_features':ltv_revt_var.show_features,'post_ids':ltv_revt_var.post_ids,'taxonomy':ltv_revt_var.taxonomy,'terms':ltv_revt_var.terms,'page':page,'hash':Math.floor(Math.random()*9e9),'lang':ltv_revt_var.lang,'hide_rating':ltv_revt_var.hide_rating,'specific_tax':ltv_revt_var.specific_tax,'tax_terms':ltv_revt_var.tax_terms,'show_short_desc':ltv_revt_var.show_short_desc,'by_country':ltv_revt_var.by_country,'worldwide_bottom':ltv_revt_var.worldwide_bottom,'via_ajax':ltv_revt_var.via_ajax,};var ReviewsTableLoadXHR=new XMLHttpRequest();ReviewsTableLoadXHR.open('POST',ltv_revt_var.ajaxurl,true);ReviewsTableLoadXHR.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');ReviewsTableLoadXHR.onload=function(){if(ReviewsTableLoadXHR.status>=200&&ReviewsTableLoadXHR.status<400){var response=JSON.parse(ReviewsTableLoadXHR.responseText);if(response&&response.result){if(response.result==='ok'){var cont='',rank_cache=0;for(var key in response.posts){if(response.posts.hasOwnProperty(key)){var post=response.posts[key];cont+='<tr data-name="'+post.name+'" class="review_snip_item">';if(!rank_cache){var lastrow=reviews_table.querySelector('tbody').rows[reviews_table.querySelector('tbody').rows.length-1];var rank_cache=parseInt(lastrow.querySelector('.rank').innerHTML)+1;}else{rank_cache++;}
cont+='<td class="rank">'+rank_cache+'</td>';cont+='<td class="logo"><a href="'+post.permalink+'">'+post.logo;cont+='<div class="short">'+post.short_name+'</div>';cont+='</a></td>';if(post.overall_rating_visible){cont+='<td class="rating'+post.rating_class+'"><div class="score"><strong>'+post.overall_rating_visible+'</strong>/5</div>'+post.stars+'</td>';}
cont+='<td class="details">';cont+='<div class="bonus">';if(post.bonus){if(ltv_revt_var.bonus_label){cont+='<strong>'+ltv_revt_var.bonus_label+':</strong>';}
cont+=post.bonus;}
cont+='</div>';if(post.bonus_tc){cont+='<div class="bonus-tc">';cont+=post.bonus_tc;cont+='</div>';}
cont+='</td>';if(ltv_revt_var.show_features){cont+='<td class="features"><div class="pros">';if(post.features){cont+='<ul>';for(var key in post.features){if(post.features.hasOwnProperty(key)){cont+='<li>'+'<i class="ltv ltv-check"></i>'+post.features[key]+'</li>';}}
cont+='</ul>';}
cont+='</div></td>';}
cont+='<td class="buttons">';cont+='<a href="'+post.play_url+'" target="_blank" class="btn btn-primary ltv-bet-btn" data-partner="'+post.data_partner+'" data-type="'+post.data_type+'" data-id="'+post.data_id+'">'+ltv_revt_var.play+'</a>';if(post.permalink){cont+='<a href="'+post.permalink+'" class="read-review">'+ltv_revt_var.review+'</a>';}
cont+='</td>';cont+='</tr>';}}
reviews_table.querySelector('tbody').insertAdjacentHTML('beforeend',cont);if(typeof positionFloatingWidget==='function'){positionFloatingWidget();}
if(typeof ltv_review_snippet_add_events==='function'){ltv_review_snippet_add_events();}
if(response.last_page){load_more.style.display='none';}
page++;}}}
load_more.classList.remove('loading');};ReviewsTableLoadXHR.onerror=function(){load_more.classList.remove('loading');};ReviewsTableLoadXHR.send(encodeData(data));}});}};
function ltv_review_snippet_add_events(){var review_snips=document.querySelectorAll('.review_snip_item');if(review_snips){review_snips.forEach((rs)=>{rs.addEventListener('click',function(e){if(typeof gtag!=='undefined'){if(e.target.tagName==='A'||rs.tagName==='A'||e.target.parentElement.tagName==='A'){var name=rs.dataset.name,type='List',event='Review Click';if(e.target.classList.contains('no-log')){return;}
if(e.target.closest('.widget.reviews-slider')){type='Slider';}else if(e.target.closest('.widget.reviews-table')){type='Table';}else if(e.target.closest('.widget.reviews-list-with-ratings')){type='List with ratings';}else if(e.target.closest('.widget_single_review_widget')){type='Single Review';}
if(e.target.dataset.partner=='yes'){event='Affiliate Click';}
gtag('event',event,{'event_category':'Review Snippets - '+type,'event_label':name});}}});});}}
document.addEventListener('DOMContentLoaded',function(){ltv_review_snippet_add_events();});
function ltv_scroll_to_id_from_a_tag(el,e){var href=el.getAttribute('href');if(href.indexOf('#')>-1&&href.length>1&&href.startsWith('#')){e.preventDefault();var element=document.querySelector(href);if(element){var elementPosition=element.getBoundingClientRect().top,offsetPosition=elementPosition+window.pageYOffset-120;window.scrollTo({top:offsetPosition,behavior:"smooth"});}}}
document.addEventListener('DOMContentLoaded',function(){var quick_links=document.querySelectorAll('.quick-access .c-links a');if(quick_links){quick_links.forEach((link)=>{link.addEventListener('click',function(e){ltv_scroll_to_id_from_a_tag(this,e);});});}});
document.addEventListener("DOMContentLoaded",function(){var accordionTitles=document.querySelectorAll('.widget_accordion_menu_widget .sec-title');for(var i=0;i<accordionTitles.length;i++){var arrow=accordionTitles[i].querySelector('i'),ul=accordionTitles[i].closest('.widget_accordion_menu_widget').querySelector('ul'),timeout=0;accordionTitles[i].addEventListener('click',function(){var time=ul.children.length*20;if(time<200){time=200;}
if(timeout===0){timeout=1;if(arrow.classList.contains('up')){slideUp(ul,time);}else{ul.style.display='block';slideDown(ul,time);}
arrow.classList.toggle('up');if(typeof positionFloatingWidget==='function'){positionFloatingWidget();}
setTimeout(function(){timeout=0;},time);}});}
var links=document.querySelectorAll('div.widget_accordion_menu_widget ul li a');for(var j=0;j<links.length;j++){links[j].addEventListener('click',function(e){ltv_scroll_to_id_from_a_tag(this,e);});}});
document.addEventListener('DOMContentLoaded',function(){var faqQuestions=document.querySelector('.ltv-faq-questions');if(faqQuestions){faqQuestions.addEventListener('click',function(e){if(e.target.classList.contains('ltv-faq-question')){var thisQuestion=e.target;questionIndex=thisQuestion.dataset.index,answerBlock=document.querySelector('.ltv-faq-answer-'+questionIndex);if(thisQuestion.classList.contains('opened')){thisQuestion.classList.remove('opened');answerBlock.classList.remove('opened');}else{thisQuestion.classList.add('opened');answerBlock.classList.add('opened');}}});}});
function encodeData(data){return Object.keys(data).map(function(key){return[key,data[key]].map(encodeURIComponent).join("=");}).join("&");}
function ltv_set_stars(rating,article_rating){var strs=article_rating.querySelectorAll('.stars i'),count=0;for(var i=0;i<rating;i++){strs[i].setAttribute('class','ltv ltv-star-regular');count++;}
for(var i=0;i<5-rating;i++){strs[count].setAttribute('class','ltv ltv-star-empty');count++;}}
document.addEventListener('DOMContentLoaded',function(){var article_rating=document.querySelector('.article-rating'),votes_el=article_rating.querySelector('.votes'),votes_cont='',already_voted=0,rating_seen=0,ar_timeout=0;function get_ab_pb_widget_id(data){var author_block=article_rating.closest('.section.author-block');if(author_block){var dataIndex=author_block.getAttribute('data-index');if(dataIndex){data.pb_widget_id=dataIndex;}}}
article_rating.querySelector('.stars').addEventListener('mouseenter',function(){votes_cont=votes_el.innerHTML;if(!already_voted){votes_el.innerHTML=rating_vars.select;}else{votes_el.innerHTML=rating_vars.voted;}});article_rating.querySelector('.stars').addEventListener('mouseleave',function(){votes_el.innerHTML=votes_cont;});var stars=article_rating.querySelectorAll('.stars i');stars.forEach(function(star){star.addEventListener('click',function(){if(!already_voted&&!ar_timeout){ar_timeout=1;var new_rating=[...star.parentElement.children].indexOf(star)+1;var unique_id=document.cookie.match('(^|;) ?'+"_rid"+'=([^;]*)(;|$)');unique_id=unique_id?unique_id[2]:'';unique_id?unique_id:'';var data={'action':'ltv_update_article_votes','post_id':parseInt(rating_vars.id),'type':rating_vars.type,'rating':new_rating,'u_id':unique_id,'hash':Math.floor(Math.random()*9e9),'nonce':rating_vars.nonce,};get_ab_pb_widget_id(data);var updateVotesXHR=new XMLHttpRequest();updateVotesXHR.open('POST',rating_vars.ajaxurl,true);updateVotesXHR.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');updateVotesXHR.onload=function(){if(updateVotesXHR.status>=200&&updateVotesXHR.status<400){var response=JSON.parse(updateVotesXHR.responseText);if(response&&response.result&&response.result==='ok'){votes_el.innerHTML=rating_vars.thanks;votes_cont=rating_vars.thanks;ltv_set_stars(new_rating,article_rating);article_rating.querySelector('.score strong').innerHTML=new_rating;already_voted=1;article_rating.classList.remove('voting');if(response.unique_id){var d=new Date;d.setTime(d.getTime()+24*60*60*1000*180);document.cookie="_rid"+"="+response.unique_id+";path=/;expires="+d.toGMTString();}}else if(response&&response.result&&response.result==='already-voted'){already_voted=1;votes_el.innerHTML=rating_vars.voted;article_rating.classList.remove('voting');}else{votes_el.innerHTML=rating_vars.failed;}}else{votes_el.innerHTML=rating_vars.failed;}
ar_timeout=0;};updateVotesXHR.onerror=function(){votes_el.innerHTML=rating_vars.failed;ar_timeout=0;};updateVotesXHR.send(encodeData(data));}});});window.addEventListener('scroll',function(){if(!rating_seen&&(window.pageYOffset+window.innerHeight>article_rating.offsetTop)){rating_seen=1;var data={'action':'ltv_get_article_votes','post_id':parseInt(rating_vars.id),'type':rating_vars.type,'hash':Math.floor(Math.random()*9e9),};get_ab_pb_widget_id(data);var getVotesXHR=new XMLHttpRequest();getVotesXHR.open('POST',rating_vars.ajaxurl,true);getVotesXHR.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');getVotesXHR.onload=function(){if(getVotesXHR.status>=200&&getVotesXHR.status<400){var response=JSON.parse(getVotesXHR.responseText);if(response&&response.result&&response.result==='ok'){if(response.votes==1){vote_txt=rating_vars.vote_single;}else{vote_txt=rating_vars.vote_multi;}
votes_el.innerHTML='<span>'+response.votes+'</span> '+vote_txt;if(response.rating===0){response.rating_mod='<span>-</span>';}else{response.rating_mod=response.rating;}
article_rating.querySelector('.rating .score strong').innerHTML=response.rating_mod;ltv_set_stars(Math.round(response.rating),article_rating);}}};getVotesXHR.send(encodeData(data));}});});
var TopPosition='none';function positionFloatingWidget(){var splitViewBlock=document.querySelector('.ltv-split-view'),Head_banner=document.querySelector('.ltv-head-banner.mode-sticky'),floatingWidgetContainer=0,floatingPartners='';if(splitViewBlock){floatingWidgetContainer=splitViewBlock.querySelector('.side-container')
if(floatingWidgetContainer){floatingPartners=floatingWidgetContainer.querySelector('.ltv-floating-partners');floatingWidgetContainer.classList.remove('hidden');}
if(window.innerWidth>1199){if(floatingPartners&&floatingPartners.classList.contains('floating')&&!floatingWidgetContainer.classList.contains('static')){var head_banner_height=null;if(Head_banner&&Head_banner.classList.contains('sticky')){head_banner_height=parseInt(getComputedStyle(Head_banner,null).height.replace('px',''));}
if(window.innerHeight>floatingPartners.offsetHeight+130+head_banner_height){var splitViewBlockHeight=splitViewBlock.offsetHeight,elementTop=splitViewBlock.offsetTop,elementBottom=elementTop+splitViewBlockHeight,viewportTop=window.scrollY,fromBottom=elementBottom-viewportTop,force_top=true;var children=floatingWidgetContainer.querySelector('.wrap').children;for(let i=0;i<children.length;i++){if(children[i]&&!children[i].classList.contains('ltv-floating-partners')){var styles=window.getComputedStyle(children[i]);elementTop=elementTop+children[i].offsetHeight;elementTop=elementTop+parseInt(styles['marginBottom']);}else if(children[i]&&children.length==(i+1)&&children[i].classList.contains('ltv-floating-partners')){force_top=false;}}
if(TopPosition==='none'&&floatingWidgetContainer.classList.contains('top')){var styles=window.getComputedStyle(floatingWidgetContainer);if(parseInt(styles['top'])==70){TopPosition=1;}else if(parseInt(styles['top'])==0){TopPosition=0;}}else if(TopPosition===0){elementTop=elementTop-70;}
if(head_banner_height){elementTop=elementTop-head_banner_height;}
var widgetPosition='bottom';if(!force_top&&elementTop-35<viewportTop&&(fromBottom>floatingPartners.offsetHeight+150+15+head_banner_height)){widgetPosition='yes';}else if(force_top||(fromBottom>floatingPartners.offsetHeight+150+15+head_banner_height)){widgetPosition='top';}
floatingWidgetContainer.classList.remove('top');floatingWidgetContainer.classList.remove('bottom');if(floatingPartners.offsetHeight+200>splitViewBlockHeight){floatingWidgetContainer.classList.add('static');}else{if(widgetPosition!=='yes'){floatingWidgetContainer.classList.add(widgetPosition);floatingPartners.removeAttribute('style');}else{if(head_banner_height){floatingPartners.style.top=102+head_banner_height+'px';}}}}else{floatingWidgetContainer.classList.add('top');floatingWidgetContainer.classList.remove('bottom');if(Head_banner){floatingPartners.removeAttribute('style');}}}}else{floatingWidgetContainer.classList.remove('top');floatingWidgetContainer.classList.remove('bottom');if(floatingPartners){floatingPartners.removeAttribute('style');}}}}
document.onreadystatechange=function(){if(document.readyState==='complete'){window.addEventListener('resize',positionFloatingWidget);window.addEventListener('scroll',positionFloatingWidget);}};
document.addEventListener('DOMContentLoaded',function(){var floating_partners=document.querySelector('.ltv-floating-partners');if(floating_partners){floating_partners.addEventListener('click',function(e){if(typeof gtag!=='undefined'){if(e.target.tagName==='A'||e.target.parentElement.tagName==='A'){var li_el=e.target.closest('li'),name='',event='Review Click';if(li_el){name=li_el.dataset.name;}
if(e.target.classList.contains('btn-primary')){event='Affiliate Click';}
gtag('event',event,{'event_category':'Floating Widget','event_label':name});}}});}});