SIA.BettingHighlightsCentre=function(){if($("liveBettingResultsToDisplay")){var A=new SIA.LiveBetting()}var C=new SIA.NextUp();var B=new SIA.MostPopular()};SIA.BettingHighlightsCentre.prototype.stopEventPropagation=function(A){Event.stop(A)};SIA.NextUp=function(){this.events="";this.eventsPage="/sportsbook/index.cfm?section=events&";this.cfcName="com.betworld.EventsGateway";this.cfcFunctionToCall="getNextUpEvents";this.isFirstTime=true;this.currentSport=$("nextUpInitialSport").value;this.totalNumberOfEvents=parseInt($("totalNumberOfEvents").value);this.numEventsPerPage=parseInt($("nextUpResultsToDisplay").value);this.numPages=Math.ceil(this.totalNumberOfEvents/this.numEventsPerPage);this.currentTimeZone=$("nextUpTimeZone").value;this.textStrings=new SIA.NextUpStrings();this.attachEventHandlers();Event.observe("nextUpSportDropDown","click",this.fireSportClickEvent.bindAsEventListener(this))};SIA.NextUp.prototype.getNextUpEvents=function(A){if(this.isFirstTime){A=true;this.isFirstTime=false}if(A){this.doEventsRequest()}else{this.displayNextUpEvents()}};SIA.NextUp.prototype.doEventsRequest=function(){var B=(this.currentSport==null)?"":this.currentSport;var A=$("nextUpClientEventCategories").value;var C="format=json&cfcName="+this.cfcName+"&functionName="+this.cfcFunctionToCall+"&eventCategoryID="+B+"&clientEventCategoryIDs="+A;this.ajaxRequest=new Ajax.Request(SIA.facadeURL,{method:"get",parameters:C,onComplete:this.handleEventsRequestResponse.bindAsEventListener(this)})};SIA.NextUp.prototype.handleEventsRequestResponse=function(request){this.events=eval("("+request.responseText+")");this.totalNumberOfEvents=this.events.length;this.numPages=Math.ceil(this.totalNumberOfEvents/this.numEventsPerPage);this.displayNextUpEvents()};SIA.NextUp.prototype.displayNextUpEvents=function(){if($("nextUpPagination")){$("nextUpPagination").innerHTML=""}$("nextUpEventsContainer").innerHTML="";if(this.events.length>0){var F=0;var K=0+F+this.numEventsPerPage;if(K>=this.totalNumberOfEvents){K=this.totalNumberOfEvents}var J=this.events.slice(F,K);$("nextUpEventsContainer").innerHTML="";var O=document.createElement("ul");O.id="nextUpEvents";if(J.length>0){for(var M=0;M<J.length;M++){var G=document.createElement("li");G.className="nextUpEvent";var H=document.createElement("span");var I=document.createElement("span");var B=document.createElement("span");var E=document.createElement("span");H.className="sport icon_"+J[M]["eventcategoryid"];I.className="time";B.className="event";E.className="arrowIcon";I.appendChild(document.createTextNode(this.formatMinutesTo(J[M]["minstostart"])));B.appendChild(document.createTextNode(J[M]["eventname"]));G.appendChild(H);G.appendChild(I);G.appendChild(B);G.appendChild(E);G.onmouseover=function(){this.className="nextUpEvent highlight"};G.onmouseout=function(){this.className="nextUpEvent"};G.eventLink=this.eventsPage+"eventtypeid="+J[M]["eventtypeid"]+"&gameid="+J[M]["gameid"]+"&morebets=true";var A=function(){window.location=this.eventLink};G.onclick=A;O.appendChild(G);if(M==this.numEventsPerPage-1){break}}$("nextUpEventsContainer").appendChild(O);var N=document.createElement("div");N.className="btn_holder";$("nextUpEventsContainer").appendChild(N)}if(this.totalNumberOfEvents>this.numEventsPerPage){var L=document.createElement("a");L.href="/sportsbook/index.cfm?section=nextUpEvents";var D=document.createElement("img");D.className="hasOverState";D.src="/inc/imgs/common/buttons/sia/en/more-standard-small60.png";D.id="btn_more";L.appendChild(D);N.appendChild(L);new SIA.ImageSwapper()}}else{var C=document.createElement("p");C.id="noEventsToDisplay";C.appendChild(document.createTextNode(this.textStrings.noEvents));$("nextUpEventsContainer").appendChild(C)}};SIA.NextUp.prototype.attachEventHandlers=function(C){if($("nextLink")){$("nextLink").onclick=this.nextPage.bindAsEventListener(this)}if($("backLink")){$("backLink").onclick=this.previousPage.bindAsEventListener(this)}var D=$$(".pageLink");for(var A=0;A<D.length;A++){D[A].onclick=this.jumpToPage.bindAsEventListener(this)}var B=$$(".nextUpEvent",".nextUpEvents");for(var A=0;A<B.length;A++){B[A].onmouseover=function(){this.addClassName("highlight")};B[A].onmouseout=function(){this.removeClassName("highlight")}}};SIA.NextUp.prototype.formatEventDate=function(A){var B="";B=A.substring(10,A.length);B=B.substring(0,6);return B};SIA.NextUp.prototype.formatMinutesTo=function(D){var B="";if(D<60){B=D+" "+this.textStrings.mins}else{if(D<(60*24)){var A=Math.floor(D/60);var C=D-(A*60);B=A+this.textStrings.hours;if(C!=0){B=B+" "+C+" "+this.textStrings.mins}}else{if(D<(60*24*7)){var E=Math.floor(D/(60*24));var A=Math.floor((D-(E*24*60))/60);var C=D-(E*24*60)-(A*60);B=E+" "+this.textStrings.days;if(A!=0){B=B+" "+A+this.textStrings.hours}if(C!=0){B=B+" "+C+" "+this.textStrings.mins}}}}return B};SIA.NextUp.prototype.fireSportClickEvent=function(B){var A=(Prototype.Browser.IE)?"none":"block";if($("nextUpSportLinks").style.display==A){var C=Event.findElement(B,"a");if(C){theEventID=Event.findElement(B,"a").getAttribute("id");if(theEventID){theEventID=theEventID.substring(5)}listItems=$("nextUpSportDropDown").getElementsByTagName("li");Element.removeClassName(listItems[0],"sfhover");firstlink=listItems[0].getElementsByTagName("a");firstlink[0].innerHTML=Event.findElement(B,"a").innerHTML;firstlink[0].id=theEventID;this.currentSport=theEventID;this.getNextUpEvents(true)}}};var lastEvent;SIA.MostPopular=function(){this.createGraphs();var C=$$(".top5Event");if(C.length){for(var B=0;B<C.length;B++){C[B].observe("mouseover",this.showTop5Graph.bindAsEventListener(this,B+1,C[B]))}}var A=$("addTop5Bets");if(A){A.observe("click",this.addTop5BetsToBetcard.bind(this))}};SIA.MostPopular.prototype.createGraphs=function(G){try{var E=$("mostPopularBetsGraph");var B;var C="";var H="#000000";var A=E.getElementsByClassName("Source",E)[0].innerHTML;var I=E.getElementsByClassName("Width",E)[0].innerHTML;var D=E.getElementsByClassName("Height",E)[0].innerHTML;if(E.getElementsByClassName("id",E)[0]){var C=E.getElementsByClassName("id",E)[0].innerHTML}if(E.getElementsByClassName("bgColor",E)[0]){var H=E.getElementsByClassName("bgColor",E)[0].innerHTML}if(E.getElementsByClassName("flashVars",E)[0]){var F=E.getElementsByClassName("flashVars",E)[0].innerHTML}B=new SWFObject(A,C,I,D,"8",H);if(F){B.addParam("flashVars",F)}B.write(E.id)}catch(G){}};SIA.MostPopular.prototype.showTop5Graph=function(E,C,A){if(A!=lastEvent){var H=0;var F=0;var G=0;$$(".top5InnerGraph").invoke("hide");$("top5InnerGraph"+C).show();var B=$("top5InnerGraph"+C).getElementsByClassName("high")[0];if(B){H=B.getElementsByClassName("percentage")[0].innerHTML}var D=$("top5InnerGraph"+C).getElementsByClassName("low")[0];if(D){F=D.getElementsByClassName("percentage")[0].innerHTML}var I=$("top5InnerGraph"+C).getElementsByClassName("low")[1];if(I){G=I.getElementsByClassName("percentage")[0].innerHTML}$("mostPopularBetsGraph1").animateGrafs(H,F,G);E.stop();lastEvent=A}};SIA.MostPopular.prototype.addTop5BetsToBetcard=function(){var A=$("top5BetAmount").className.substring(13,$("top5BetAmount").className.length);if($("betAmount").value==""||$("betAmount").value==0){if(SIA.betcard.bets.length>0){$("betAmount").value=0;SIA.betcard.betAmount=0;SIA.betcard.setBetPayout()}else{$("betAmount").value=A;SIA.betcard.betAmount=A}}else{if(SIA.betcard.bets.length>0){$("betAmount").value=0;SIA.betcard.betAmount=0;SIA.betcard.Amount=0;SIA.betcard.setBetPayout()}else{$("betAmount").value=A;SIA.betcard.betAmount=A}}SIA.betcard.addBetBatch.apply(SIA.betcard,$("addTop5Bets").className.split("_"))};SIA.LiveBetting=function(){this.events="";this.liveBettingPage="/sportsbook/index.cfm?section=liveBetting&";this.cfcName="com.betworld.EventsGateway";this.cfcFunctionToCall="getLiveBetData";this.isFirstTime=true;this.currentPageNum=1;this.totalNumberOfEvents=parseInt($("totalNumberOfLiveEvents").value);this.numEventsPerPage=parseInt($("liveBettingResultsToDisplay").value);this.numPages=Math.ceil(this.totalNumberOfEvents/this.numEventsPerPage);this.currentTimeZone=$("liveBettingTimeZone").value;this.liveBetButton="/inc/imgs/common/sia/en/live-button.png";this.textStrings=new SIA.LiveBettingStrings();this.attachEventHandlers()};SIA.LiveBetting.prototype.getLiveBettingEvents=function(A){if(this.isFirstTime){A=true;this.isFirstTime=false}if(A){this.doEventsRequest()}else{this.displayLiveBettingEvents()}};SIA.LiveBetting.prototype.doEventsRequest=function(){var A="format=json&cfcName="+this.cfcName+"&functionName="+this.cfcFunctionToCall;this.ajaxRequest=new Ajax.Request(SIA.facadeURL,{method:"get",parameters:A,onComplete:this.handleEventsRequestResponse.bindAsEventListener(this)})};SIA.LiveBetting.prototype.handleEventsRequestResponse=function(request){this.events=eval("("+request.responseText+")");this.totalNumberOfEvents=this.events.length;this.numPages=Math.ceil(this.totalNumberOfEvents/this.numEventsPerPage);this.displayLiveBettingEvents()};SIA.LiveBetting.prototype.displayLiveBettingEvents=function(){if($("liveBettingPagination")){$("liveBettingPagination").innerHTML=""}$("liveBettingEventsContainer").innerHTML="";if(this.events.length>0){var S=$("liveBettingTimeZone").value;var F=0+(this.currentPageNum*this.numEventsPerPage)-this.numEventsPerPage;var D=0+F+this.numEventsPerPage;if(D>=this.totalNumberOfEvents){D=this.totalNumberOfEvents}var K=this.events.slice(F,D);var M=document.createElement("div");M.className="betHighlightsHeader";var I=document.createElement("span");var E=document.createElement("span");var C=document.createElement("span");I.appendChild(document.createTextNode(this.textStrings.eventHeading));E.appendChild(document.createTextNode(this.textStrings.gameStatus1Heading));C.appendChild(document.createTextNode(this.textStrings.gameStatus2Heading));I.setAttribute("id","liveBettingHeaderEvents");E.setAttribute("id","liveBettingHeaderGameStatus1");C.setAttribute("id","liveBettingHeaderGameStatus2");M.appendChild(I);M.appendChild(E);M.appendChild(C);$("liveBettingEventsContainer").appendChild(M);var H=document.createElement("ul");H.id="liveBets";if(K.length>0){for(var N=0;N<K.length;N++){var Q=0;var T="";var U=document.createElement("li");U.className="liveBet";if(N%2==1){U.className=U.className+" even"}else{U.className=U.className+" odd"}if(K[N]["minstostart"]>0){Q=this.textStrings.beginsIn;T=this.formatMinutesTo(K[N]["minstostart"])}else{Q=K[N]["livescore"];T=K[N]["matchstatus"]}var L=document.createElement("span");var O=document.createElement("span");var P=document.createElement("span");var A=document.createElement("span");var B=document.createElement("img");L.className="event";O.className="score";P.className="period";A.className="live";B.src=this.liveBetButton;L.appendChild(document.createTextNode(K[N]["name"]));O.appendChild(document.createTextNode(Q));P.appendChild(document.createTextNode(T));if(K[N]["minstostart"]<=0){A.appendChild(B)}U.appendChild(L);U.appendChild(O);U.appendChild(P);U.appendChild(A);U.onmouseover=function(){this.addClassName("highlight")};U.onmouseout=function(){this.removeClassName("highlight")};U.liveBettingLink=this.liveBettingPage+"gameId="+K[N]["gameid"];var J=function(){window.location=this.liveBettingLink};U.onclick=J;H.appendChild(U)}$("liveBettingEventsContainer").appendChild(H)}if(this.totalNumberOfEvents>this.numEventsPerPage){var G='<input type="button" class="stdArrowBtnPrevious" id="backLinkBetLive" /> ';for(var N=1;N<=this.numPages;N++){if(N==this.currentPageNum){G+="<strong>"+N+"</strong> "}else{G+='<a href="javascript:void(0);" class="pageLinkBetLive">'+N+"</a> "}}G+='<input type="button" class="stdArrowBtnNext" id="nextLinkBetLive" />  ( '+(F+1)+" - "+D+" ) "+this.textStrings.of+" "+this.totalNumberOfEvents;$("liveBettingPagination").innerHTML=G;this.attachEventHandlers()}}else{var R=document.createElement("p");R.id="noEventsToDisplay";R.appendChild(document.createTextNode(this.textStrings.noEvents));$("liveBettingEventsContainer").appendChild(R)}};SIA.LiveBetting.prototype.attachEventHandlers=function(C){var A=$$(".liveBets",".liveBet");for(var B=0;B<A.length;B++){A[B].onmouseover=function(){this.addClassName("highlight")};A[B].onmouseout=function(){this.removeClassName("highlight")}}};SIA.LiveBetting.prototype.formatEventDate=function(A){var B="";B=A.substring(10,A.length);B=B.substring(0,6);return B};SIA.LiveBetting.prototype.formatMinutesTo=function(D){var B="";if(D<60){B=D+" "+this.textStrings.mins}else{if(D<(60*24)){var A=Math.floor(D/60);var C=D-(A*60);B=A+this.textStrings.hours;if(C!=0){B=B+" "+C+" "+this.textStrings.mins}}else{if(D<(60*24*14)){var E=Math.floor(D/(60*24));var A=Math.floor((D-(E*24*60))/60);var C=D-(E*24*60)-(A*60);B=E+" "+this.textStrings.days;if(A!=0){B=B+" "+A+this.textStrings.hours}if(C!=0){B=B+" "+C+" "+this.textStrings.mins}}}}return B};SIA.BetBannerItem=function(){showBetBannerLinks=$$(".showBetBannerItemLink");if(showBetBannerLinks.length){for(var A=0;A<showBetBannerLinks.length;A++){Event.observe(showBetBannerLinks[A],"click",this.showBetBannerItem.bindAsEventListener(this,A+1))}if($("nextBetBannerItemLink")){$("nextBetBannerItemLink").onclick=this.changeBetBannerItem.bind(this,"increment","manual")}if($("prevBetBannerItemLink")){$("prevBetBannerItemLink").onclick=this.changeBetBannerItem.bind(this,"decrement","manual")}Prototype.Browser.IE6=Prototype.Browser.IE&&parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5))==6;Prototype.Browser.IE7=Prototype.Browser.IE&&parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5))==7;if($("flashVid")&&(Prototype.Browser.IE6||Prototype.Browser.IE7)){intervalID=null}else{intervalID=setInterval(this.changeBetBannerItem.bind(this,"increment","auto"),9000)}}};SIA.BetBannerItem.prototype.showBetBannerItem=function(B,A){if(intervalID){clearInterval(intervalID)}$$(".betBannerItemContent").invoke("hide");$("betBannerItem"+A).show();$$(".showBetBannerItemLink").each(function(C){C.removeClassName("betBannerItemLinkSelected")});Event.findElement(B,"li").addClassName("betBannerItemLinkSelected")};SIA.BetBannerItem.prototype.changeBetBannerItem=function(F,A){if(A=="manual"){if(intervalID){clearInterval(intervalID)}}var C=$$(".betBannerItemLinkSelected")[0].id;var E=C.toString();var B=E.substring(E.length-1,E.length);if(F=="increment"){var D=parseInt(B)+1}else{var D=parseInt(B)-1}if(D>showBetBannerLinks.length){D=1}else{if(D<1){D=showBetBannerLinks.length}}$$(".betBannerItemContent").invoke("hide");$("betBannerItem"+D).show();$$(".showBetBannerItemLink").each(function(G){G.removeClassName("betBannerItemLinkSelected")});$("showBetBannerItemLink"+D).addClassName("betBannerItemLinkSelected")};SIA.ImagePreLoader=function(){this.imagesLoaded=new Array();this.loadedImages=new Array();this.numToLoad=0;this.numImagesLoaded=0;this.callBack=""};SIA.ImagePreLoader.prototype.load=function(B){this.numToLoad=B.length;for(var A=0;A<B.length;A++){var C=new Image();this.loadedImages[A]=C;this.loadedImages[A].onload=this.checkFinished.bind(this);this.loadedImages[A].src=B[A]}};SIA.ImagePreLoader.prototype.checkFinished=function(){this.numImagesLoaded+=1;if(this.numImagesLoaded==this.numToLoad){this.fireFinish()}};SIA.ImagePreLoader.prototype.onFinish=function(A){this.callBack=A};SIA.ImagePreLoader.prototype.fireFinish=function(){this.callBack()};SIA.SnippetAnimator=function(){var F=snippetImageHash.get("snippetImages");for(var D=0;D<F.length;D++){$("ss_content_"+(D+1)).setStyle({backgroundImage:"url("+F[D].toString()+")"})}var E=snippetImageHash.get("snippetThumbnails");for(var D=0;D<E.length;D++){$("ss_thumb_"+(D+1)).src=E[D].toString()}this.numSnippetFrames=F.length;this.frameNumber=1;this.previousFrameNumber=1;this.firstTime=true;this.skippedToFrame=false;this.progressPaused=false;this.animationInProgress=false;this.hasRunners=false;this.progressBarMovieName="progBar";var A="other";if(this.isIE6x()){A="IE"}$$(".ss_contentHeading").each(function(G){G.addClassName("ss_contentHeading_bg_"+A)});$$(".ss_contentLeft").each(function(G){G.addClassName("ss_contentLeft_bg_"+A)});$$(".ss_contentRight").each(function(G){G.addClassName("ss_contentRight_bg_"+A)});Event.observe($("ss_container"),"mouseover",this.ssMouseOver.bindAsEventListener(this));Event.observe($("ss_container"),"mouseout",this.ssMouseOut.bindAsEventListener(this));var B=$$(".ss_thumb");for(var D=0;D<B.length;D++){Event.observe(B[D],"mouseover",this.thumbMouseOver.bindAsEventListener(this));Event.observe(B[D],"mouseout",this.thumbMouseOut.bindAsEventListener(this));Event.observe(B[D],"click",this.skipToFrame.bind(this,(D+1)));if($("ss_headlineText_"+(D+1)).firstDescendant()){altText=$("ss_headlineText_"+(D+1)).firstDescendant().innerHTML}else{altText=$("ss_headlineText_"+(D+1)).innerHTML}B[D].setAttribute("alt",altText)}var C=$$(".runnerItem");if(C.length>0){this.hasRunners=true;for(var D=0;D<C.length;D++){C[D].addClassName("runnerItem_"+A);Event.observe(C[D],"mouseover",function(){this.addClassName("highlightRunnerItem_"+A);this.removeClassName("runnerItem_"+A)});Event.observe(C[D],"mouseout",function(){this.addClassName("runnerItem_"+A);this.removeClassName("highlightRunnerItem_"+A)})}}this.startNextFrame()};SIA.SnippetAnimator.prototype.ssMouseOver=function(A){if(!this.progressPaused){this.progressPaused=true;this.pauseProgress()}};SIA.SnippetAnimator.prototype.ssMouseOut=function(A){if(this.progressPaused){this.progressPaused=false;this.startProgress()}};SIA.SnippetAnimator.prototype.thumbMouseOver=function(A){if(!Event.element(A).hasClassName("highlightedThumb")){Event.element(A).setStyle({opacity:"1",cursor:"pointer"});Event.element(A).addClassName("ss_thumb_highlight")}};SIA.SnippetAnimator.prototype.thumbMouseOut=function(A){if(!Event.element(A).hasClassName("highlightedThumb")){Event.element(A).setStyle({opacity:".9"});Event.element(A).removeClassName("ss_thumb_highlight")}};SIA.SnippetAnimator.prototype.skipToFrame=function(A){if(this.frameNumber!=A&&!this.animationInProgress){this.previousFrameNumber=this.frameNumber;this.frameNumber=A;this.skippedToFrame=true;this.startNextFrame()}};SIA.SnippetAnimator.prototype.animateFrame=function(B,A,C){this.animationInProgress=true;this.progressPaused=false;this.resetContent(B,A);if(!C){toAdd=0;this.hideBottomPanel(A);setTimeout(this.showMainImage.bind(this,B,A),500);setTimeout(this.highlightThumb.bind(this,B),500)}else{toAdd=this.numSnippetFrames*250;this.showMainImage(B,A);setTimeout(this.showThumbs.bind(this),1000)}setTimeout(this.showBottomPanel.bind(this,B),(2000+toAdd));setTimeout(this.highlightThumb.bind(this,B),(3000+toAdd));setTimeout(this.setAnimationComplete.bind(this),(3200+toAdd))};SIA.SnippetAnimator.prototype.showMainImage=function(B,A){if(this.firstTime){$("ss_content_"+B).hide();$("ss_content_"+B).setStyle({opacity:"1",height:"230px",right:"0px",width:"568px"});$("ss_content_"+B).show()}else{new Effect.Parallel([new Effect.Morph($("ss_content_"+A),{sync:true,style:{height:"230px",width:"0px",right:"0px",left:"568px"}}),new Effect.Morph($("ss_content_"+B),{sync:true,style:{opacity:"1",height:"230px",right:"0px",width:"568px"}})],{duration:0.7})}};SIA.SnippetAnimator.prototype.showBottomPanel=function(A){Effect.BlindDown($("ss_content_container_"+A),{duration:0.2,queue:{position:"end",scope:"ss_scope"}})};SIA.SnippetAnimator.prototype.hideBottomPanel=function(A){Effect.BlindUp($("ss_content_container_"+A),{duration:0.2,queue:{position:"end",scope:"ss_scope"}})};SIA.SnippetAnimator.prototype.showThumbs=function(){var E=$$(".ss_thumb");var D=0;var C=42;var D=$("ss_container").getWidth()-((C*E.length)+(11*E.length));for(var B=0,A=E.length;B<A;++B){this.slideThumb(E[B],D)}};SIA.SnippetAnimator.prototype.slideThumb=function(A,B){new Effect.Parallel([new Effect.Move(A,{sync:true,x:B,y:0,mode:"relative"}),new Effect.Opacity(A,{sync:true,from:0,to:0.9})],{duration:0.5,queue:{position:"end",scope:"ss_scope"}})};SIA.SnippetAnimator.prototype.highlightThumb=function(A){$$(".ss_thumb").each(function(B){B.removeClassName("highlightedThumb");B.removeClassName("ss_thumb_highlight");B.setStyle({opacity:".75"})});$("ss_thumb_"+A).setStyle({opacity:"1"});$("ss_thumb_"+A).addClassName("highlightedThumb");$("ss_thumb_"+A).addClassName("ss_thumb_highlight")};SIA.SnippetAnimator.prototype.resetContent=function(B,A){$("ss_content_"+B).setStyle({position:"absolute",left:"0px",top:"0px",height:"230px",width:"0px"})};SIA.SnippetAnimator.prototype.startNextFrame=function(A){if(this.firstTime){$("snippetLoading").hide()}if(!this.skippedToFrame){this.previousFrameNumber=this.frameNumber;if(this.frameNumber==this.numSnippetFrames){this.frameNumber=1}else{if(!this.firstTime){this.frameNumber+=1}}}if(!this.firstTime){this.resetProgress(this.previousFrameNumber)}this.animateFrame(this.frameNumber,this.previousFrameNumber,this.firstTime);this.firstTime=false;this.skippedToFrame=false};SIA.SnippetAnimator.prototype.pauseProgress=function(){try{if(!this.animationInProgress){var A=$("progressBar_"+this.frameNumber);A.TStopPlay(this.progressBarMovieName)}}catch(B){}};SIA.SnippetAnimator.prototype.startProgress=function(){try{if(!this.animationInProgress){var A=$("progressBar_"+this.frameNumber);A.TPlay(this.progressBarMovieName)}}catch(B){}};SIA.SnippetAnimator.prototype.resetProgress=function(A){try{var B=$("progressBar_"+A);B.TGotoFrame(this.progressBarMovieName,0)}catch(C){}};SIA.SnippetAnimator.prototype.setAnimationComplete=function(A){this.animationInProgress=false;setTimeout(this.startProgress.bind(this),(1000))};SIA.SnippetAnimator.prototype.isIE6x=function(){var B=navigator.userAgent.toLowerCase();var C=(B.indexOf("msie")!=-1&&!this.isOpera&&(B.indexOf("webtv")==-1));var D=0;var A=parseFloat(navigator.appVersion);if(C&&A>=4){A=parseFloat(B.substring(B.indexOf("msie ")+5));D=parseInt(A)}isIE6x=(C&&D==6);return isIE6x};SIA.MiniGamesLoader=function(){var A=$("dummyMiniGames");if(A){var B=new SWFObject("/inc/flash/miniGames/dummyMiniGames.swf","dummyMiniGames","247","250","8","#869CA7");B.write("dummyMiniGames")}};SIA.MiniGamesLoader.prototype.load=function(){$("dummyMiniGames").remove();var A=$$(".reqParam");var B=new SWFObject(A[0].innerHTML,A[1].innerHTML,A[2].innerHTML,A[3].innerHTML,"8",A[4].innerHTML);$$(".optParam").each(function(C){B.addParam(C.getAttribute("name"),C.innerHTML)});$$(".flashVar").each(function(C){B.addVariable(C.getAttribute("name"),C.innerHTML)});B.write("miniGames")};var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var A;var B;var C;try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");A=B.GetVariable("$version")}catch(C){}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");A="WIN 6,0,21,0";B.AllowScriptAccess="always";A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A="WIN 3,0,18,0"}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");A="WIN 2,0,0,11"}catch(C){A=-1}}return A}function GetSwfVer(){var G=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var F=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var A=navigator.plugins["Shockwave Flash"+F].description;var E=A.split(" ");var C=E[2].split(".");var H=C[0];var B=C[1];var D=E[3];if(D==""){D=E[4]}if(D[0]=="d"){D=D.substring(1)}else{if(D[0]=="r"){D=D.substring(1);if(D.indexOf("d")>0){D=D.substring(0,D.indexOf("d"))}}}var G=H+"."+B+"."+D}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){G=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){G=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){G=2}else{if(isIE&&isWin&&!isOpera){G=ControlVersion()}}}}}return G}function DetectFlashVer(F,D,C){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var E=versionArray[0];var A=versionArray[1];var B=versionArray[2];if(E>parseFloat(F)){return true}else{if(E==parseFloat(F)){if(A>parseFloat(D)){return true}else{if(A==parseFloat(D)){if(B>=parseFloat(C)){return true}}}}}return false}}}function AC_AddExtension(B,A){if(B.indexOf("?")!=-1){return B.replace(/\?/,A+"?")}else{return B+A}}function AC_Generateobj(E,D,A){var C="";if(isIE&&isWin&&!isOpera){C+="<object ";for(var B in E){C+=B+'="'+E[B]+'" '}C+=">";for(var B in D){C+='<param name="'+B+'" value="'+D[B]+'" /> '}C+="</object>"}else{C+="<embed ";for(var B in A){C+=B+'="'+A[B]+'" '}C+="> </embed>"}document.write(C)}function AC_FL_RunContent(){var A=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)}function AC_GetArgs(B,E,G,D,H){var A=new Object();A.embedAttrs=new Object();A.params=new Object();A.objAttrs=new Object();for(var C=0;C<B.length;C=C+2){var F=B[C].toLowerCase();switch(F){case"classid":break;case"pluginspage":A.embedAttrs[B[C]]=B[C+1];break;case"src":case"movie":B[C+1]=AC_AddExtension(B[C+1],E);A.embedAttrs.src=B[C+1];A.params[G]=B[C+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":A.objAttrs[B[C]]=B[C+1];break;case"id":case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":A.embedAttrs[B[C]]=A.objAttrs[B[C]]=B[C+1];break;default:A.embedAttrs[B[C]]=A.params[B[C]]=B[C+1]}}A.objAttrs.classid=D;if(H){A.embedAttrs.type=H}return A}SIA.PTMiniGames=function(){this.fimSetupComplete=false;this.loadDummySWF("dummyPTMiniGames","/inc/flash/miniGames/pt/dummyMiniGames.swf");this.dummySWFsLoaded=[];$("ptMiniGamesLoginForm").observe("submit",this.submitWithActiveGame.bind(this))};SIA.PTMiniGames.prototype.loadDummySWF=function(B,A){var C=new SWFObject(A,B,245,245,8,"#ffffff");C.write(B)};SIA.PTMiniGames.prototype.setPageVars=function(A){this.pageVars=A};SIA.PTMiniGames.prototype.setupFIM=function(){this.fim=$("fim");var A=this.fim.initClient("casino_mini",this.pageVars.flashCasinoURL,"ptMiniGamesFrame");if(A!=0){alert("Error initialising mini games. Error code = "+A)}if(!this.pageVars.offlineMode){A=this.fim.initUser(this.pageVars.clientHash);if(A!=0){alert("Error initialising user. Error code = "+A)}}A=this.fim.setCallout("playforreal","SIA.ptMiniGames.calloutPlayForReal");if(A!=0){alert("retCode setCallout() playforreal = "+A)}A=this.fim.setCallout("cashier","SIA.ptMiniGames.calloutCashier");if(A!=0){alert("retCode setCallout() cashier = "+A)}$("launchPTMiniGame_mbj").observe("click",this.launchMiniGame.bind(this,"mbj"));$("launchPTMiniGame_mcm").observe("click",this.launchMiniGame.bind(this,"mcm"));$("closePTMiniGames").observe("click",this.closeMiniGame.bind(this));this.fimSetupComplete=true;if(typeof this.pageVars.initialGameCode!="undefined"){this.launchMiniGame(this.pageVars.initialGameCode)}};SIA.PTMiniGames.prototype.launchMiniGame=function(A){if(!this.fimSetupComplete){return }$("ptMiniGamesFrame").show();$$(".ptDummySWF").each(function(C){C.hide()});$("ptMiniGamesLogin").hide();$("closePTMiniGames").show();var B;if(this.pageVars.offlineMode){B=this.fim.launchClient("casino_mini",A,"offline")}else{B=this.fim.launchClient("casino_mini",A)}if(B!=0){alert("Error launching game. Error code = "+B+", offlineMode = "+offlineMode)}$$("#ptMiniGameLinks li a").each(function(C){C.removeClassName("selected")});$("launchPTMiniGame_"+A).addClassName("selected");this.activeGameCode=A};SIA.PTMiniGames.prototype.calloutPlayForReal=function(B,A){if(this.pageVars.offlineMode){$("ptMiniGamesLogin").show()}};SIA.PTMiniGames.prototype.calloutCashier=function(B,A){window.open("/index.cfm?section=displaywithdrawalmethod&SelectedWithdrawalMethod=TransferToSportsbook&PaymentSystem=Sportsbook","depositWindow","width=1024,height=700,location=1,toolbar=1,menubar=1,resizable=1,status=1,scrollbars=1")};SIA.PTMiniGames.prototype.submitWithActiveGame=function(){var A=$("ptMiniGamesLoginForm");if(A.action.indexOf("?")==-1){A.action+="?"}else{A.action+="&"}A.action+="miniGameCode="+this.activeGameCode};SIA.PTMiniGames.prototype.closeMiniGame=function(){$("ptMiniGamesFrame").hide();$("closePTMiniGames").hide();$("ptMiniGamesLogin").hide();$("dummyPTInProgress_"+this.activeGameCode).show();if(typeof this.dummySWFsLoaded[this.activeGameCode]=="undefined"){this.loadDummySWF("dummyPTInProgress_"+this.activeGameCode,"/inc/flash/miniGames/pt/dummyMiniGamesInProgress_"+this.activeGameCode+".swf");this.dummySWFsLoaded[this.activeGameCode]=true}};Utilities=function(){};Utilities.prototype.loadFlashBanners=function(){try{var I=document.getElementsByClassName("FlashBanner");var B;var C="";var G="#000000";for(var D=0;D<I.length;D++){var A=document.getElementsByClassName("Source",I[D])[0].innerHTML;var H=document.getElementsByClassName("Width",I[D])[0].innerHTML;var E=document.getElementsByClassName("Height",I[D])[0].innerHTML;if(document.getElementsByClassName("id",I[D])[0]){var C=document.getElementsByClassName("id",I[D])[0].innerHTML}if(document.getElementsByClassName("bgColor",I[D])[0]){var G=document.getElementsByClassName("bgColor",I[D])[0].innerHTML}B=new SWFObject(A,C,H,E,"8",G);B.write(I[D].id)}}catch(F){}};function openNewWindow(C,B,A){newWindow=window.open(C,B,A)}function DoReadMore(C,B,A){document.getElementById(C).style.display="none";document.getElementById(B).style.display="";document.getElementById(A).style.display=""}function AbandonReadMore(C,B,A){document.getElementById(C).style.display="none";document.getElementById(B).style.display="none";document.getElementById(A).style.display=""}SIA.initHook=function(){var D=new SIA.BettingHighlightsCentre();if($("betInfoBanner")){var M=new SIA.BetBannerItem()}if($("ss_container")){var N=snippetImageHash.get("snippetImages").concat(snippetImageHash.get("snippetThumbnails"));var C=new SIA.ImagePreLoader();C.onFinish(function(){SIA.snippetAnimator=new SIA.SnippetAnimator()});C.load(N)}var F=document.getElementsByClassName("addRunner","contentWrapper");for(var E=0;E<F.length;E++){F[E].onmouseover=function(){this.addClassName("highlight")};F[E].onmouseout=function(){this.removeClassName("highlight")}}var G=document.getElementsByClassName("addRunnerEW","contentWrapper");for(var E=0;E<G.length;E++){G[E].onmouseover=function(){this.addClassName("highlight")};G[E].onmouseout=function(){this.removeClassName("highlight")}}try{var K=$("homepageCentreBanner");var L=K.className;var H;if(L.substr(0,21)=="DynamicSnippetsBanner"){H="/inc/flash/supersnippet/"}else{H="/inc/imgs/promo/banners/homepage/"}var B=new SWFObject(H+""+L,"newbie ban holder",K.getWidth(),K.getHeight(),"8","#ffffff");B.write("homepageCentreBanner")}catch(I){}var J=new Utilities();J.loadFlashBanners();var A=$("nextUpSportDropDown");if(A!=null){A.onclick=function(){toggleMySelect("nextUpSportLinks")};A.onmouseout=function(){startTimeout("nextUpSportLinks",1)};A.onmouseover=function(){stopTimeout(1)}}SIA.miniGamesLoader=new SIA.MiniGamesLoader();if($("ptMiniGamesContainer")){SIA.ptMiniGames=new SIA.PTMiniGames()}document.observe("load",SIA.flashVideoHelper.displayCheck("inline","homepage/trish-homepage.swf","homepage","https://secure.sportsinteraction.com/sportsbook/open-account/?sourcePageID=65",568,230))};

			SIA.LiveBettingStrings = function () {
	
				this.timeHeading = 'Time';
				this.eventHeading = 'Events';
				this.gameStatus1Heading = 'Game';
				this.gameStatus2Heading = 'Status';
				this.liveHeading = 'Price';
				this.previousButtonText = '<<Previous Events';
			  	this.nextButtonText = 'More Events >>';
				this.noEvents = 'There are no events listed in the next seven days.';
				this.more = 'More';
				this.previous = 'Previous';
				this.refresh = 'Refresh';
				this.of = 'of';
				this.viewAll = 'View All';
				this.mins = 'min';
				this.hours = 'h';
				this.days = 'day';
				this.beginsIn = 'Begins In';
				
				return this;
			}
		

			SIA.NextUpStrings = function(){
			
				this.timeHeading = 'Begins In';
			  	this.sportHeading = 'Sport';
			  	this.eventHeading = 'Events';
				this.previousButtonText = '<<Previous Events';
			  	this.nextButtonText = 'More Events >>';
				this.noEvents = 'There are no events listed in the next seven days.';
				this.of = 'of';
				this.viewAll = 'View All';
				this.mins = 'min';
				this.hours = 'h';
				this.days = 'day';		
				this._RBK_AMERICANFOOTBALL_ = 'American Football';
				this._RBK_AUSSIERULES_ = 'Aussie Rules';
				this._RBK_BASEBALL_ = 'Baseball';
				this._RBK_BASKETBALL_ = 'Basketball';
				this._RBK_BOXING_ = 'Boxing / MMA';
				this._RBK_CRICKET_ = 'Cricket';
				this._RBK_GAELICGAMES_ = 'Gaelic Games';
				this._RBK_GOLF_ = 'Golf';
				this._RBK_HOCKEY_ = 'Hockey';
				this._RBK_HORSERACING_ = 'Horse Racing';
				this._RBK_LACROSSE_ = 'Lacrosse';
				this._RBK_MOTORRACING_ = 'Motor Racing';
				this._RBK_OLYMPICS_ = 'Olympics';
				this._RBK_OTHER_ = 'Other Sports';
				this._RBK_RUGBY_ = 'Rugby';
				this._RBK_SNOOKER_ = 'Snooker';
				this._RBK_SOCCER_ = 'Soccer';
				this._RBK_SPECIALS_ = 'Specials';
				this._RBK_TENNIS_ = 'Tennis';

				return this;	
			}
		

