
(function($){var ctx=window.pinnacle={};ctx.onload=function(){var time=arguments[0],func=arguments[1],t=$.type(time);if(t==='number'){$(function(){setTimeout(func,time);});}else if(t==='function'){$(time);}};ctx.onload(function(){$('.block.sports-menu .trigger').click(function(){$(this).parent().toggleClass('active');});$('#J_BannerSlider').bxSlider({auto:true,autoControls:true,autoHover:true,controls:false,mode:'fade',pagerCustom:'#J_BannerSliderPager',pause:8000,speed:800});$('.J_ImageSlider').bxSlider({auto:true,autoHover:true,controls:false,pager:false,pause:4000});});ctx.onload(256,function(){$('#departmentsDropdown').dropdownButton({onItemSelected:function(){$('#departmentsContactInfo').empty().html(($(this).siblings('div').html()));}});$('.block.tabs').tabs({create:function(){var tabLength=$(this).find('.ui-tabs-nav li').length;$(this).find('.ui-tabs-nav li').css('width',100/tabLength +'%');}});(function menu(){var fnPlaceMarker=function(element){var marker=element.find('a.active .marker');if(marker.length>0){var parentHeight=marker.parent().parent().height();var markerHeight=marker.height();marker.css("top",(((parentHeight -markerHeight)/2)-1)+"px");}}
var menu=$('.block.sports-menu');var deepLevels=menu.find('.level-2 ul');deepLevels.hide();deepLevels.parent().addClass('collapse');var active=menu.find('a.active');if(active.length>0){active.parents('.block.sports-menu li').removeClass('collapse');active.parents('.block.sports-menu .level-2 ul').show();}
menu.find('.level-2 .text').click(function(){$(this).parent().toggleClass('collapse');$(this).siblings('ul').slideToggle(function(){fnPlaceMarker($(this));});});fnPlaceMarker(menu);})();$('.block.sports-menu .trigger').click(function(){$(this).parent().toggleClass('active');});});$.fn.extend({popupWindow:function(title,width,height){var $self=$(this);var left=(screen.width/2)-(width/2);var top=(screen.height/2)-(height/2);window.open($self.attr('href'),title,"height="+ height +",width="+ width +",top="+ top +", left="+ left +", resizable=1");},pinnacleSlider:function(){var $self=$(this);var pause=eval($self.data('pause-times')),ix=0,tid;var fnStartBannerSlider=function(slider){if(!!slider&&!!slider.getSlideCount){var maxIx=slider.getSlideCount()- 1;var slideTot=slider.getSlideCount();if((maxIx>=0)&&(slideTot>1)){tid=setTimeout(function loop(){slider.goToNextSlide();if((ix++)>maxIx){ix=0;}
tid=setTimeout(loop,pause[ix]);},pause[ix]);}}}
var slider=$self.bxSlider({auto:false,autoHover:true,controls:false,pager:false,pause:4000,speed:800}).hover(function(){clearTimeout(tid);},function(){fnStartBannerSlider(slider);});fnStartBannerSlider(slider);return $self;}});}(jQuery));;(function($)
{function deparam(params){var o={};if(!params)return o;var a=params.split('&');for(var i=0;i<a.length;i++){var pair=a[i].split('=');o[decodeURIComponent(pair[0])]=decodeURIComponent(pair[1]);}
return o;};function getCookieField(cookieName,fieldName){var result=null;var value=$.cookie(cookieName);if(value){var obj=deparam(value);result=obj[fieldName];}
return result;};function getCookieDomain(){var topDomainPart=".com.";var hostName=window.location.hostname;var topLevelSeparator=hostName.toLowerCase().indexOf(topDomainPart)>=0?hostName.lastIndexOf(topDomainPart):hostName.lastIndexOf(".");if(topLevelSeparator==-1){return hostName;}
var secondLevelSeparator=hostName.substring(0,hostName.length -(hostName.length - topLevelSeparator)).lastIndexOf(".");if(secondLevelSeparator==-1){return hostName;}
return hostName.substring(secondLevelSeparator + 1);}
function initUserPrefsCookie(languageId,linesTypeView,languageGroup,days){if(!!!$.cookie('UserPrefsCookie')){var value={languageId:languageId,priceStyle:'decimal',linesTypeView:linesTypeView,device:'d',languageGroup:languageGroup};var date=new Date();date.setTime(date.getTime()+ days*86400000);$.cookie.raw=true;$.cookie('UserPrefsCookie',$.param(value),{expires:date,domain:getCookieDomain(),path:'/'});}
window.pinnacle.CookiesConfiguration.UserPrefsCookieExpiryInDays=days;}
function getUserPrefsCookie(segmentName){if($.cookie('UserPrefsCookie')!=null){var userPrefsCookie=$.cookie('UserPrefsCookie').split('&');for(var i=0;i<userPrefsCookie.length;i++){if(userPrefsCookie[i].indexOf(segmentName)>-1){return userPrefsCookie[i].split('=')[1];}}}
return null;}
function setUserPrefsCookie(segmentName,segmentValue){if($.cookie('UserPrefsCookie')!=null){var userPrefsCookie=$.cookie('UserPrefsCookie').split('&');var newUserPrefsCookie="";for(var i=0;i<userPrefsCookie.length;i++){if(userPrefsCookie[i].indexOf(segmentName)>-1){newUserPrefsCookie +=segmentName +"="+ segmentValue +"&";}
else{newUserPrefsCookie +=(userPrefsCookie[i]!="")?userPrefsCookie[i]+"&":"";}}
var valLength=newUserPrefsCookie.length;if(newUserPrefsCookie.substring(valLength - 1,valLength)=="&"){newUserPrefsCookie=newUserPrefsCookie.substring(0,valLength - 1);}
var hostName=window.location.hostname;var domain=hostName.substring(hostName.lastIndexOf(".",hostName.lastIndexOf(".")- 1)+ 1);var date=new Date();var days=(window.pinnacle.CookiesConfiguration!=undefined)?window.pinnacle.CookiesConfiguration.UserPrefsCookieExpiryInDays:30;date.setTime(date.getTime()+ days*86400000);$.cookie.raw=true;$.cookie('UserPrefsCookie',newUserPrefsCookie,{expires:date,domain:domain,path:'/'});}}
function setPctrCookie(years){if(!!!$.cookie('PCTR')){var date=new Date();date.setFullYear(date.getFullYear()+ years);$.cookie('PCTR',date.valueOf().toString(),{expires:date,domain:getCookieDomain(),path:'/'});}}
function setPsCdnCookie(years){if(!!!$.cookie('psCDN')){var date=new Date();date.setFullYear(date.getFullYear()+ years);$.cookie('psCDN','CDN1',{expires:date,domain:getCookieDomain(),path:'/'});}}
function getCustomerLicenseType(){if($.cookie('CustomerLicenseType')!=null){return $.cookie('CustomerLicenseType');}
return null;}
function getUserName(){return getCookieField("custid","id");};window.pinnacle=window.pinnacle||{};window.pinnacle.CookiesConfiguration={};window.pinnacle.initUserPrefsCookie=initUserPrefsCookie;window.pinnacle.setPctrCookie=setPctrCookie;window.pinnacle.setPsCdnCookie=setPsCdnCookie;window.pinnacle.setUserPrefsCookie=setUserPrefsCookie;window.pinnacle.getUserPrefsCookie=getUserPrefsCookie;window.pinnacle.getCustomerLicenseType=getCustomerLicenseType;window.pinnacle.getUserName=getUserName;}(jQuery));;var PAYMENTOPTIONSMODULE;$(document).ready(function()
{if($.cookie('UserPrefsCookie')==null){$('body').append('<iframe src="/en/Redirect" style="display:none" height="1" width="1"></iframe>')}
(function($)
{$.extend({getUrlVars:function()
{var vars=[],hash;var hashes=window.location.href.slice(window.location.href.indexOf('?')+ 1).split('&');for(var i=0;i<hashes.length;i++)
{hash=hashes[i].toLowerCase().split('=');vars.push(hash[0]);vars[hash[0]]=hash[1];}
return vars;},getUrlVar:function(name)
{return $.getUrlVars()[name.toLowerCase()];}});$('.language-selector').dropdownButton({animated:!window.isArcadiaLayout,selectedItem:'.text .flag',onItemSelected:function()
{window.pinnacle.setUserPrefsCookie("languageId",$(this).data('value'));}});$('#forgotPasswordPopup').on('click',function(e)
{e.preventDefault();var hostName=window.location.hostname;var domain=hostName.substring(hostName.lastIndexOf(".",hostName.lastIndexOf(".")- 1)+ 1);var subdomain="www1.";if(hostName.indexOf("wwwqa3.")>-1)
{subdomain="www1qa3.";}
var url="https://"+ subdomain + domain + $(this).attr('href');window.open(url,'Forgot_Password','height=500,width=400,resizable=1,left=300,top=200');});$('#forgotClientIdPopup').on('click',function(e)
{e.preventDefault();var hostName=window.location.hostname;var domain=hostName.substring(hostName.lastIndexOf(".",hostName.lastIndexOf(".")- 1)+ 1);var subdomain="www.";if(hostName.indexOf("wwwqa3.")>-1)
{subdomain="wwwqa3.";}
var url="https://"+ subdomain + domain + $(this).attr('href');window.open(url,'Forgot_ClientId','height=410,width=500,resizable=1,left=300,top=200');});var flinks=[];flinks.push($("#mediafooter"));flinks.push($("#rulesfooter"));flinks.push($("#privacyfooter"));flinks.push($("#responsiblefooter"));flinks.push($("#offeredfooter"));flinks.push($("#termsfooter"));flinks.push($("#apifooter"));flinks.push($("#privacytextfooter"));flinks.push($("[data-popup]"));flinks.push($("#cookiefooter"));$.each(flinks,function(i,l)
{$(l).click(function(event)
{event.preventDefault();try
{var target=$(event.currentTarget);var link=target.is("a")?target:target.find("a");var w=window.open(link.attr("href"),"Help","width=1000,height=600,toolbar=no,titlebar=no,status=no,menubar=no,scrollbars=yes");w.focus();}catch(e){}});});}(jQuery));if(PAYMENTOPTIONSMODULE)
{PAYMENTOPTIONSMODULE.init();}});;function irs(s,f,r){var p=s.indexOf(f);while(p>=0){s=s.substring(0,p)+ r + s.substring(p + f.length,s.length);p=s.indexOf(f)}return s}
function cesc(s){if(s.length>0)return irs(irs(irs(irs(irs(s,'+','%2B'),'.','%2E'),'/','%2F'),'=','%3D'),'&','%26');else return s;}
function iesc(s){return cesc(escape(s));}
function gpr()
{var pr='',ipw=window,ipr='window',iwL='',ipL='';while(ipL==iwL)
{iw=ipw;pr=iw.document.referrer;if(intp)break;if((''+ iw.parent.location)=='')break;iwL=(iw.document.location.protocol +'\/\/'+ iw.document.location.hostname).toLowerCase();ipL=pr.substring(0,iwL.length).toLowerCase();ipr=ipr +'.parent';ipw=eval(ipr);if(iw==ipw)break;}return pr;}
function itrc()
{var nw=new Date(),ce=2,iul='';if(dt.cookie)ce=1;else{var ex=new Date(nw.getTime()+ 1000);dt.cookie="itc=3; EXPIRES="+ ex.toGMTString()+"; path=/";if(dt.cookie)ce=1;}
if(inavi>=4)iul=iesc(iie>0&&nr.userLanguage?nr.userLanguage:nr.language);var un=Math.round(Math.random()*2100000000);il=isl + un +"&"+ iesc(gpr())+"%20&"+ cesc(pqry)+"%20&"+ cesc(rqry)+"%20&"
+ cesc(sqry)+"%20&"+ ce +"&"+ sr +"&"+ px +"&"+ je +"&"+ sv +"&"+ iul +"%20&"+ nw.getTimezoneOffset()+"&"+ iesc(idl)+"%20";if(iie>0&&il.length>2045)il=il.substring(0,2045);var iin='itr'+ itrMId,iwri=true;if(dt.images)
{if(!dt.images[iin])dt.write('<div style="display:none"><i'+'mg name="'+ iin +'" height="1" width="1" alt="IntelliTracker"/></div>');if(dt.images[iin]){dt.images[iin].src=il +'&0';iwri=false;}}
if(iwri)dt.write('<i'+'mg sr'+'c="'+ il +'&0" height="1" width="1">');};var ns_rum={};var t_pagestart=new Date().getTime(),t_pageend;ns_rum.init=function()
{t_pageend=new Date().getTime();var s=document.createElement('script');s.id='rum';s.type='text/javascript';s.src=('https:'===document.location.protocol?'https://':'http://')+'d2lo2tipcl3aii.cloudfront.net/56A8F463DEF1455683B3042C9180C564/neustar.beacon.js';document.getElementsByTagName('head')[0].appendChild(s);};window.addEventListener?window.addEventListener('load',ns_rum.init,false):window.attachEvent?window.attachEvent('onload',ns_rum.init):false;ns_rum.errors=[];ns_rum.ogErrorHandler=window.onerror;window.onerror=function rumErrorHandler(msg,url,line)
{ns_rum.errors.push({'url':url,'line':line,'msg':msg});if(ns_rum.ogErrorHandler){return ns_rum.ogErrorHandler(msg,url,line);}
return false;};ns_rum.onPerceivedLoad=function(description)
{if(typeof(ns_rum.perceivedLoadTimeEnd)==="undefined")
{ns_rum.perceivedLoadTimeEnd=new Date().getTime();if(typeof(description)!=="undefined")
{ns_rum.perceivedLoadTimeDescription=description;}}};if(ns_rum){ns_rum.onPerceivedLoad();};(function($){var fnAssignForgotHandlers=function(){var fnSetSrc=function(iframe,src){if(-1==navigator.userAgent.indexOf("MSIE")||$('html').is('.lt-ie8')){iframe.src=src;}
else{iframe.location=src;}};$("#forgotClientId").click(function(e){e.preventDefault();var iframe=$("#forgotClientIDIFrame");fnSetSrc(iframe[0],iframe.data("src"));$("#forgotClientIdContent").modal();});$("#forgotPassword").click(function(e){e.preventDefault();var iframe=$("#forgotPasswordIFrame");fnSetSrc(iframe[0],iframe.data("src"));$("#forgotPasswordContent").modal();});};window.pinnacle.AssignForgotHandlers=fnAssignForgotHandlers;})(jQuery);;(function($,pinnacle){'use strict';$(function(){var customerLicenseType=pinnacle.getCustomerLicenseType();if(!customerLicenseType){customerLicenseType='Guest';}
var footerWarningTerms=$("div[licenses], li[licenses], div[blocked-licenses], li[blocked-licenses], h6[blocked-licenses]");displayElements(footerWarningTerms);function displayElements(elements){if(!elements)return;$.each(elements,function(){var self=this;var fnProcessLicenseLinks=function(attrName,isBlocked){var licenses=$(self).attr(attrName);if(!!licenses&&licenses.length>0){var fnIsShow=function(){var licenseArray=licenses.split(",");var inArray=$.inArray(customerLicenseType,licenseArray);return isBlocked?inArray<=-1:inArray>-1;};if(fnIsShow()){$(self).removeAttr(attrName);}else{$(self).hide();}}};fnProcessLicenseLinks('licenses',false);fnProcessLicenseLinks('blocked-licenses',true);});}});})(jQuery,window.pinnacle);;(function($){'use strict';$(function(){var footerWarningTerms=$("div[blocked-domains], li[blocked-domains], h6[blocked-domains]");var endsWidth=!!String.prototype.endsWith?function(str,search){return str.endsWith(search);}:endsWidthPolyfill;displayElements(footerWarningTerms);function endsWidthPolyfill(str,search,this_len){if(this_len==null||this_len>str.length){this_len=str.length;}
return str.substring(this_len - search.length,this_len)===search;}
function displayElements(elements){if(!elements)return;$.each(elements,function(){var self=this;var fnProcessDomainLinks=function(attrName,isBlocked){var domains=$(self).attr(attrName);if(!!domains){var fnIsShow=function(){var domainsArray=domains.split(",");var host=window.location.hostname;var inArray=false;for(var i=0;i<domainsArray.length;i++){if(endsWidth(host.toLowerCase(),domainsArray[i].toLowerCase())){inArray=true;break;}}
return isBlocked?!inArray:inArray;};if(fnIsShow()){$(self).removeAttr(attrName);}else{$(self).hide();}}};fnProcessDomainLinks('blocked-domains',true);});}});})(jQuery);;(function($){$(function(){var custId=window.pinnacle.getUserName();$("a.custid-url").each(function(){var template=$(this).attr("url");var url=template.replace("{customerId}",custId||"");$(this).attr("href",url);});});})(jQuery);;(function(k,$){var isMember=fnGetCustomerId();var isSessionValid=isMember&&fnIsSessionValid();$("ul.tabs a.casino-link").each(function(){$(this).attr("href",$(this).data((isSessionValid?"members":"guest")+"-href"));});function fnGetCustomerId(){var id;var custidCookie=$.cookie('custid');if(!!custidCookie){id=deparam(custidCookie)['id'];}
return id;}
function fnIsSessionValid(){var result=false;var options={type:"GET",async:false,url:k.authenticationUrl,success:function(response){result=response.authenticated;},}
$.ajax(options);return result;}
function deparam(params){var o={};if(!params)return o;var a=params.split('&');for(var i=0;i<a.length;i++){var pair=a[i].split('=');o[decodeURIComponent(pair[0])]=decodeURIComponent(pair[1]);}
return o;};})(kooboo,jQuery);;(function($){'use strict';$(function(){var betToolsSpan=$(".betting-tools-dropdown-holder span"),betToolsDropDown=$(".betting-tools-dropdown");betToolsSpan.click(function(event){event.stopPropagation();if(betToolsDropDown.is(':visible')){betToolsDropDown.slideUp();betToolsDropDown.parent("li").removeClass("open");}else{betToolsDropDown.slideDown();betToolsDropDown.parent("li").addClass("open");}})
$(document).mouseup(function(e){if(!betToolsDropDown.is(e.target)&&betToolsDropDown.has(e.target).length===0){betToolsDropDown.slideUp();betToolsDropDown.parent("li").removeClass("open");}});});})(jQuery);;$(function(){$(".footer-back-to-top").click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$("#header").offset().top},750);})});;(function($){var sportsBtn=$(".block.sports-menu .title");var leftMenu=$("#sidebar.left");var currentWidth=$(window).width();if(currentWidth<=990){$(leftMenu).addClass("mobile closed");}
$(window).resize(function(){var leftMenuAlt=$("#sidebar.left");var currentWidthAlt=$(window).width();if(currentWidthAlt<=990){$(leftMenuAlt).addClass("mobile closed");}else if(currentWidthAlt>990){$(leftMenuAlt).removeClass("mobile");if($("#sidebar").hasClass("closed")){$("#sidebar").removeClass("closed");$("#sidebar").addClass("opened");}}});$(sportsBtn).click(function(){if(($(this).parents("#sidebar").hasClass("closed"))&&($(this).parents("#sidebar").hasClass("mobile"))){$(this).parents("#sidebar").removeClass("closed");$(this).parents("#sidebar").addClass("opened");}else if(($(this).parents("#sidebar").hasClass("opened"))&&($(this).parents("#sidebar").hasClass("mobile"))){$(this).parents("#sidebar").removeClass("opened");$(this).parents("#sidebar").addClass("closed");}});}(jQuery));;(function($){'use strict';$(function(){var oddsFormatContainer=$(".odds-format-container");var oddsFormatWrapper=$(".odds-format-wrapper");oddsFormatWrapper.click(function(event){event.stopPropagation();if(oddsFormatContainer.is(':visible')){oddsFormatWrapper.removeClass("open");oddsFormatContainer.slideUp();oddsFormatContainer.parent("li").removeClass("open");}else{oddsFormatWrapper.addClass("open");oddsFormatContainer.slideDown();oddsFormatContainer.parent("li").addClass("open");}})
$(document).mouseup(function(e){if(!oddsFormatContainer.is(e.target)&&oddsFormatContainer.has(e.target).length===0){oddsFormatContainer.slideUp();oddsFormatContainer.parent("li").removeClass("open");oddsFormatWrapper.removeClass('open');}});});})(jQuery);;(function($){$(function(){var modalLink=$("a.click-modal");var openWindow=function(event){var element=$(this);var width=element.attr('width');var height=element.attr('height');var url=element.attr('url');var x;var y;event.preventDefault();var args='toolbar=no,titlebar=no,status=no,menubar=no,scrollbars=yes';if(typeof(width)!=="undefined"){x=window.screen.width/2 - width/2;args='width='+ width +',left='+ x +','+ args;}
if(typeof(height)!=="undefined"){y=window.screen.height/2 - height/2;args='height='+ height +',top='+ y +','+ args;}
var w=window.open(url,'',args);};modalLink.click(openWindow);});})(jQuery);;;
