jsRoot=[jsRoot,"/"].join("");function userAgentManager(){function v(w){return h.indexOf(w)!=-1}function f(w){return(r&&(t==4)&&(h.indexOf("msie "+w)!=-1))}var h=navigator.userAgent.toLowerCase(),q=v("safari"),u=v("opera"),e=v("mac"),t=parseInt(navigator.appVersion),b=parseFloat(navigator.appVersion),r=v("msie")&&(h.indexOf("opera")==-1),p=r&&(t<4),o=f("4"),a=(r&&(t>=4)),m=f("5.0"),n=f("5.5"),l=f("6."),c=(r&&!p&&!o&&!m&&!n),j=f("7."),s=(r&&!p&&!o&&!m&&!n&&!l),i=f("8."),g=(r&&!p&&!o&&!m&&!n&&!l&&!j),k={saf:q,opera:u,mac:e,major:t,minor:b,ie:r,ie3:p,ie4:o,ie4up:a,ie5:m,ie5_5:n,ie6:l,ie6up:c,ie7:j,ie7up:s,ie8:i,ie8up:g};this.is=function(w){w=w.replace(".","_").replace("+","up");return typeof k[w]=="boolean"?k[w]:false}}var userBrowser=new userAgentManager();function SkyTicker(t,u){var j=sky.id,w=j(t),m="mq-"+t,e="mq2-"+t,h="mq3-"+t,i=this,q,f,o,k=0,c=0,n=0,v=false,r=3,g=0,b=0,l=0;function s(){v=true}function a(){v=false}function p(){if(v){return}n=(n-r);if(n<b){n=l}sky.css.addInline(f,"left",n+"px")}function x(y){o.innerHTML=y}this.scroll=p;this.update=x;sky.addClass(w,"ticker");q=document.createElement("div");q.id=m;sky.addClass(q,"ticker-mq");f=document.createElement("div");f.id=e;sky.addClass(f,"ticker-mq2");o=document.createElement("div");o.id=h;sky.addClass(o,"ticker-mq3");x(w.innerHTML);w.innerHTML="";f.appendChild(o);q.appendChild(f);w.appendChild(q);k=o.offsetWidth;c=w.offsetWidth;b=(-10-k);n=l=(c+10);sky.css.addInline(f,"left",n+"px");o.onmouseover=s;o.onmouseout=a;if(userBrowser.is("ie")){sky.css.addInline(f,"width",c+"px");sky.css.addInline(q,"width",c+"px")}g=setInterval(function(){i.scroll()},70);if(typeof u=="function"){u()}}function skyTooltips(){var C=true,y,s=userBrowser.is("ie")&&!userBrowser.is("ie7+"),D='<div class="ttip" id="tipdiv"><div class="ttiptxt" id="tipTxt"></div></div>'+(s?'<iframe src="'+jsRoot+'empty.htm" id="tipIE" frameborder="0" height="0"></iframe>':""),A="",q,u,w,h,v,j="",c="title",n=null,o=sky.id("jscont"),r,f,z=document.documentElement,i=sky.attr,b=sky.css.replaceInline,p=userBrowser.is("ie"),e,x="Opens in new window",m=" ("+x+")";function B(J){if(p&&!J){var J=window.event}var L=sky.getProperty.mouseX(J),I=sky.getProperty.mouseY(J),H=L<w/2?120:0,K=I<h/2?q+25:-10,E=L+H-(u-14),G=(I+K-q)-4,F="left:"+E+"px;top:"+G+"px;width:"+u+"px;";b(r,F);if(s){b(f,F+j)}}function g(F,E,H){var G=i(E,c);if(G===""){return}C=true;i(E,c,"");w=p?z.clientWidth:window.innerWidth;h=p?z.clientHeight:window.innerHeight;G=G.split("\\n").join("<br />");sky.id("tipTxt").innerHTML=G;u=sky.getProperty.width(r);if(u>166){sky.css.addInline(r,"width",166+"px");u=166}q=sky.getProperty.height(r);if(s){j="width:"+u+"px;height:"+q+"px;"}B(F);sky.addEvent(E,"mousemove",B);sky.addEvent(E,"mouseout",(function(I){return function(J){l(J,I)}})(E,G))}function l(F,E){sky.css.addInline(r,"top","-500px");if(s){sky.css.addInline(f,"top","-500px")}i(E,c,sky.id("tipTxt").innerHTML)}function a(H){var F=H.length;for(var I=F;I--;){curr=H[I];var J=sky.attr(curr,"rel"),G=sky.attr(curr,"title"),E=G&&G.length>0;if(J&&J.indexOf("external")!==-1){if(E){G=[G," (opens in new window)"].join("");sky.attr(curr,"title",G)}else{G="Opens in new window";sky.attr(curr,"title",G)}sky.addEvent(curr,"mouseover",(function(K,L){return function(M){sky.tooltips.show(M,K)}})(curr,G))}if(E){sky.addEvent(curr,"mouseover",(function(K,L){return function(M){sky.tooltips.show(M,K)}})(curr,G))}}}function t(H){var G=H.length,I;for(var F=G;F--;){I=H[F];var E=sky.attr(I,"title");if(E&&E.length>0){sky.addEvent(I,"mouseover",(function(J){return function(K){sky.tooltips.show(K,J)}})(I))}}}if(sky.id("skytooltips")!==null){y=sky.id("skytooltips");return}y=document.createElement("div");y.id="skytooltips";y.innerHTML=D;o.appendChild(y);r=sky.id("tipdiv");f=sky.id("tipIE");if(document.images){var k=[new Image(),new Image()];k[0].src='http://st1.skybet.com/bet/img/site/bg_tiptop.png';k[1].src='http://st1.skybet.com/bet/img/site/bg_tipbot.png'}return{show:g,hide:l,position:B,addLinks:a,addElements:t}}function skyOverlayLibrary(){var k=0,A="string",z="undefined",F="function",i="number",e="px",r="style",h="div",H="display",O="block",N="none",w="visibility",E="visible",C="hidden",t="top",q="right",l="bottom",B="left",y="width",o="height",s="overflow",f="title",m="external",b="rel",v=sky.css.addInline,x=sky.id,p=sky.addClass,g=sky.removeClass,G=null;function I(R,Q){return"<h3>"+R+'</h3><div id="alrt_msg">'+Q+"</div>"}function j(Q){if(typeof Q==F){Q()}}function J(R,U,W){var V=x("overlays"),Q="";if(V==null){V=document.createElement("div");sky.attr(V,"id","overlays");x("jscont").appendChild(V)}var S=document.createElement("div");p(S,"overlay");var T='<div class="fixedCanvas"><div class="fixedContent"><div class="transbg"></div></div></div>';if(R&&R.match(/transparent|crop/i)){T=""}if(R&&R.match(/middle/i)){U='<div class="vcentre1"><div class="vcentre2"><div class="vcentre3">'+U+"</div></div></div>"}if(R.match(/top|right|bottom|left/i)){if(R.match(/top|bottom/i)){Q+="height:auto;"}if(R.match(/left|right/i)){Q+="width:auto;"}if(R.match(/bottom/i)){Q+="bottom:0px;top:auto;"}if(R.match(/right/i)){Q+="right:0px;left:auto;"}}S.innerHTML=T+'<div class="fixedCanvas" style="'+Q+'"><div class="fixedContent">'+U+"</div></div>";V.appendChild(S);G=S;j(W)}function D(){if(G==null){return}G.parentNode.removeChild(G);if(k==0){return}do{sky.grabEvent.removeBehaviour("click","skyoverlaybutton"+k)}while(--k)}function u(){clearInterval(window.tickerTimer);var R=x("ticker"),Q=sky.getAncestorAt(R,3);Q.parentNode.removeChild(Q)}function c(){var S=x("alrt_btns");if(S===null){return null}var V=sky.elems(h,S);var U=V.length;if(U==0){return null}var T;var R="hide";var Q="disabled";do{T=U-1;if(typeof V[T].enable==F){continue}else{V[T].isEnabled=!sky.hasClass(this,Q);V[T].setLabel=function(W){this.firstChild.innerHTML=W};V[T].enable=function(){g(this,Q);this.isEnabled=false};V[T].disable=function(){p(this,Q);this.isEnabled=true};V[T].isVisible=!sky.hasClass(this,R);V[T].show=function(){g(this,R);this.isVisible=false};V[T].hide=function(){p(this,R);this.isVisible=true}}}while(--U);return V}function P(aa,S,U,R,W){R=typeof R==A&&R.length>0?R:"";var T='<div class="btn1"><a href="#"';if(typeof U==F){buttonAction=typeof S==F?function Z(){if(U()){D()}S()}:function Y(){if(U()){D()}}}else{buttonAction=typeof S==F?function X(){D();S()}:function V(){D()}}k++;var Q="skyoverlaybutton"+k;R+=(" "+Q);sky.grabEvent.addBehaviour(buttonAction,"click",function(ab){return sky.hasClass(ab,Q)&&ab.parentNode.isEnabled},true,true,Q);if(R){T+=' class="'+R+'"'}if(W){T+=' id="'+W+'"'}T+=">"+aa+"</a></div>";return T}function n(S,R,Q,T){if(x("dialog")!==null){j(T);return false}if(!Q){Q=""}J("middle",'<div class="'+Q+'" id="dialog">'+S+(R?'<div id="alrt_btns" class="clearfix">'+R.toString().replace(/,/g,"")+"</div>":"")+"</div>",T);sky.overlay.getButtons();return true}function M(T,R,Q,S){return n(I(T,R),[P("OK")],Q,S)}function L(U,S,R,Q,T){return n(I(U,S),[P("OK",R),P("Cancel")],Q,T)}function a(U,S,R,Q,T){return n(I(U,S),R,Q,T)}function K(Z,T){clearInterval(window.tickerTimer);if(x("ticker")===null){J("top right transparent crop",'<div id="ticker"><div id="mq"><div id="mq2"><span id="mq3" title="Click to hide message">'+Z+"</span></div></div></div>")}else{x("mq3").innerHTML=Z}var Y=x("ticker"),ab=x("mq"),U=x("mq2"),V=x("mq3"),Q=V.offsetWidth,R=Y.offsetWidth,X,aa=false,S=2;this.scroll=function(){if(aa||!Y||!ab){return}X=(X-S);v(U,B,X+e);if(X<(-10-Q)){X=R+10;v(U,B,X+e)}};X=(R+10);v(U,B,X+e);v(Y,q,sky.getProperty.x(x("loginarea"))+e);Y.onclick=u;Y.onmouseover=function(){aa=true};Y.onmouseout=function(){aa=false};v(Y,w,E);if(userBrowser.is("ie")){v(Y,y,R+e);v(ab,y,R+e)}var W=this;window.tickerTimer=setInterval(function(){W.scroll()},50);j(T)}return{create:J,destroy:D,destroyTicker:u,button:P,dialog:n,doAlert:M,doConfirm:L,getChoice:a,ticker:K,getButtons:c}}function skyFlashManager(){var g,b="undefined",f="string",a="number";function e(){if(typeof g==b){g={}}if(typeof g.SWFObjectUtil==b){g.SWFObjectUtil={}}g.SWFObjectUtil.getPlayerVersion=function(){var l=new g.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var h=navigator.plugins["Shockwave Flash"];if(h&&h.description){l=new g.PlayerVersion(h.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var i=1;var j=3;while(i){try{j++;i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+j);l=new g.PlayerVersion([j,0,0])}catch(k){i=null}}}else{try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(k){try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");l=new g.PlayerVersion([6,0,21]);i.AllowScriptAccess="always"}catch(k){if(l.major==6){return l}}try{i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(k){}}if(i!=null){l=new g.PlayerVersion(i.GetVariable("$version").split(" ")[1].split(","))}}}return l};g.PlayerVersion=function(h){this.major=h[0]!=null?parseInt(h[0]):0;this.minor=h[1]!=null?parseInt(h[1]):0;this.rev=h[2]!=null?parseInt(h[2]):0};g.PlayerVersion.prototype.versionIsValid=function(h){if(this.major<h.major){return false}if(this.major>h.major){return true}if(this.minor<h.minor){return false}if(this.minor>h.minor){return true}if(this.rev<h.rev){return false}return true}}function c(o,k,s,n,r,j,l,i){if(typeof g==b){e()}o=(typeof o==f)?sky.id(o):o;var h=6,u;if(i){u=i}else{u="swf"+Math.random()}if(typeof l==a&&typeof g=="object"){var t=new g.PlayerVersion(l.toString().split("."));var m=g.SWFObjectUtil.getPlayerVersion();if(!m.versionIsValid(t)){o.innerHTML='<div class="error"><p>Sorry, to view this movie you will need version '+t.major+"."+t.minor+"."+t.rev+" of Adobe Flash Player (You have version "+m.major+"."+m.minor+"."+m.rev+').</p><p>Please <a href="http://www.adobe.com/go/getflashplayer">Download Adobe Flash Player</a>, it only takes 2 minutes on a 56k modem.</p></div>';return}h=m.major+","+m.minor+","+m.rev}if(!r){var r={}}if(!r.scale){r.scale="exactfit"}if(!r.wmode){r.wmode="transparent"}if(!r.quality){r.quality="autohigh"}if(!r.menu){r.menu="false"}if(typeof j=="object"){r.flashvars=sky.objToStr(j,"","=","&amp;",true)}else{if(typeof j==f){r.flashvars=j}}var q=' width="'+k+'" height="'+s+'"',p;if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){p=sky.objToStr(r," ",'="','"',false).replace(" id="," name=");o.innerHTML='<embed src="'+n+'" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"'+q+p+"></embed>"}else{p=sky.objToStr(r,'<param name="','" value="','" />',false);o.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id='+u+' codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+h+'"'+q+'><param name="movie" value="'+n+'" />'+p+"</object>"}}return{embed:c}}function skyStylesheetSwitcher(){var b=sky.id,j=this,h="hicon",k="hc",e=b("con_link"),c="High Contrast",g="Disable "+c;function i(){var l=sky.cookie.get(h);return !(l===null||l=="false")}function a(){if(!i()){sky.overlay.doConfirm("Enable High Contrast?","Alter the appearance to large text on a black background, with no columns?<br /><br />This feature is intended for low vision users, please Cancel if you are unsure.",f)}else{f()}}function f(){if(i()){b(k).disabled=true;sky.cookie.set(h,false);e.innerHTML=c}else{enableCSS(k);sky.cookie.set(h,true);e.innerHTML=g}}return{isEnabled:i,doConfirm:a,handle:f}}function skyBalanceManager(){var h,b="";function g(){var k=sky.cookie.get("sky_BalanceVisible");return k==null||k==="true"}function i(l,k,m){if(m){sky.tooltips.hide(m,h,h.title)}h.removeAttribute("title");b=sky.id("bal-value").innerHTML;h.innerHTML="Show Balance";sky.cookie.set("sky_BalanceVisible",false,sky.cookie.nextYear(),"/")}function c(l,k,m){h.title="Hide Balance";if(m){sky.tooltips.show(m,h,h.title)}h.innerHTML=b;sky.cookie.set("sky_BalanceVisible",true,sky.cookie.nextYear(),"/")}function e(m,l,n){var k=g();if(k){i(m,l,n)}else{c(m,l,n)}}function a(l){var k=b;b=l;sky.grabEvent.broadcast("balanceChange",{previous:k,current:l});if(sky.balance.isVisible()){sky.id("bal-value").innerHTML=b}}function f(){if(sky.balance.isVisible()){sky.balance.toggle()}h.title="When you play a game your live balance is transferred and displayed in the game window. When you close the game window and navigate around SkyBet.com your balance will automatically reappear.";h.innerHTML="Balance Hidden";h.href="#";h.rel="";sky.grabEvent.removeBehaviour("click","balanceToggle")}function j(){h=sky.id("bal-value");if(!h){return}b=h.innerHTML;h.title="Show/Hide Balance";sky.addEvent(h,"click",sky.balance.toggle);sky.css.addInline(h,"visibility","visible");if(sky.cookie.get("sky_BalanceVisible")=="false"){i()}}return{set:a,init:j,disable:f,toggle:e,value:b,isVisible:g}}function skyAnimationLibrary(){var String_string="string",String_undefined="undefined",String_function="function",String_number="number",String_px="px",String_style="style",String_div="div",String_display="display",String_block="block",String_none="none",String_visibility="visibility",String_visible="visible",String_hidden="hidden",String_top="top",String_right="right",String_bottom="bottom",String_left="left",String_width="width",String_height="height",String_overflow="overflow",String_title="title",String_external="external",String_rel="rel",roundNumberToClosestWhole=Math.round,parseInteger=parseInt,addInlineStyle=sky.css.addInline,removeInlineStyle=sky.css.removeInline,getPropertyOfElement=sky.getProperty,getWidthOfElement=getPropertyOfElement.width,getHeightOfElement=getPropertyOfElement.height,getXCoordinateOfElement=getPropertyOfElement.x,getYCoordinateOfElement=getPropertyOfElement.y;function _animationEngineSetTimeoutClosure(el,currentX,newX,fLeft,currentY,newY,fTop,currentWidth,newWidth,fWidth,currentHeight,newHeight,fHeight,callback){return(function skyAnimAnon1(){_animationEngine(el,currentX,newX,fLeft,currentY,newY,fTop,currentWidth,newWidth,fWidth,currentHeight,newHeight,fHeight,callback)})}function _animationEngineDoMovement(currentVal,finalVal,frameAmt){if(frameAmt===0||currentVal==finalVal){return finalVal}currentVal+=frameAmt;if((frameAmt>0&&currentVal>=finalVal)||(frameAmt<0&&currentVal<=finalVal)){return finalVal}return currentVal}function _animationEngine(el,currentX,newX,xChange,currentY,newY,yChange,currentWidth,newWidth,widthChange,currentHeight,newHeight,heightChange,callback){if(el==null){return}if(heightChange!==0){currentHeight=_animationEngineDoMovement(currentHeight,newHeight,heightChange);addInlineStyle(el,String_height,roundNumberToClosestWhole(currentHeight)+String_px)}if(xChange!==0){currentX=_animationEngineDoMovement(currentX,newX,xChange);addInlineStyle(el,String_left,roundNumberToClosestWhole(currentX)+String_px)}if(widthChange!==0){currentWidth=_animationEngineDoMovement(currentWidth,newWidth,widthChange);addInlineStyle(el,String_width,roundNumberToClosestWhole(currentWidth)+String_px)}if(yChange!==0){currentY=_animationEngineDoMovement(currentY,newY,yChange);addInlineStyle(el,String_top,roundNumberToClosestWhole(currentY)+String_px)}if(currentX===newX&&currentY===newY&&currentHeight===newHeight&&currentWidth===newWidth){if(typeof callback==String_function){callback()}return}var functRef=_animationEngineSetTimeoutClosure(el,currentX,newX,xChange,currentY,newY,yChange,currentWidth,newWidth,widthChange,currentHeight,newHeight,heightChange,callback);setTimeout(functRef,70)}function SkyAnimateCustom(el,newX,newY,newWidth,newHeight,timeInMilliseconds,callback){if(el==null){return}var currentX=0,currentY=0,currentWidth=0,currentHeight=0,totalFrames=1,xChange=0,yChange=0,widthChange=0,heightChange=0;if(timeInMilliseconds>0){totalFrames=timeInMilliseconds/50}addInlineStyle(el,String_visibility,String_hidden);removeInlineStyle(el,String_display);if(newX!==null){currentX=getXCoordinateOfElement(el);xChange=newX-currentX;if(xChange!=0){xChange/=totalFrames}}else{newX=0}if(newY!==null){currentY=getYCoordinateOfElement(el);yChange=newY-currentY;if(yChange!==0){yChange/=totalFrames}}else{newY=0}if(newWidth!==null){currentWidth=getWidthOfElement(el);widthChange=newWidth-currentWidth;if(widthChange!==0){widthChange/=totalFrames}}else{newWidth=0}if(newHeight!==null){currentHeight=getHeightOfElement(el);heightChange=newHeight-currentHeight;if(heightChange!==0){heightChange/=totalFrames}}else{newHeight=0}addInlineStyle(el,String_visibility,String_visible);addInlineStyle(el,String_display,String_block);_animationEngine(el,currentX,newX,xChange,currentY,newY,yChange,currentWidth,newWidth,widthChange,currentHeight,newHeight,heightChange,callback)}function SkyAnimateSlideUp(el,timeInMilliseconds,callback){if(el==null){return}addInlineStyle(el,String_overflow,String_hidden);var _internalCallback=function skyAnimAnon2(){addInlineStyle(el,String_display,String_none)};SkyAnimateCustom(el,null,null,null,0,timeInMilliseconds,function skyAnimAnon3(el){_internalCallback();if(typeof callback==String_function){callback()}})}function SkyAnimateSlideDown(el,timeInMilliseconds,callback){if(el==null){return}var currentHeight=getHeightOfElement(el)-(_getComputedStyleOfElement(el,"padding-top",true)+_getComputedStyleOfElement(el,"padding-bottom",true));addInlineStyle(el,String_visibility,String_hidden);removeInlineStyle(el,String_height);removeInlineStyle(el,String_display);var heightOnceOpened=getHeightOfElement(el)-(_getComputedStyleOfElement(el,"padding-top",true)+_getComputedStyleOfElement(el,"padding-bottom",true));addInlineStyle(el,String_height,currentHeight+String_px);addInlineStyle(el,String_visibility,String_visible);addInlineStyle(el,String_overflow,String_hidden);var _internalCallback=function skyAnimAnon4(){removeInlineStyle(el,String_overflow)};SkyAnimateCustom(el,null,null,null,heightOnceOpened,timeInMilliseconds,function skyAnimAnon5(){_internalCallback();if(typeof callback==String_function){callback()}})}function _allArgumentsAreStrings(s){for(var i=0;i<arguments.length;++i){if(typeof(arguments[i])!=String_string){return false}}return true}function _convertNumberToHexadecimal(n,digits,prefix){var p="",n=Math.ceil(n);if(prefix){p=prefix}n=n.toString(16);for(var i=0;i<digits-n.length;++i){p+="0"}return p+n}function _getComputedStyleOfElement(el,p,i){var s,v=String_undefined,dv=document.defaultView;if(dv&&dv.getComputedStyle){s=dv.getComputedStyle(el,"");if(s){v=s.getPropertyValue(p)}}else{if(el.currentStyle){v=el.currentStyle[_convertDashSeperatedToCamelcase(p)]}else{return null}}return i?(parseInteger(v)||0):v}function _convertRGBToHexadecimal(r,g,b){return _convertNumberToHexadecimal((r<<16)|(g<<8)|b,6,"#")}function _convertDashSeperatedToCamelcase(cssPropStr){var i,c,a=cssPropStr.split("-");var s=a[0];for(i=1;i<a.length;++i){c=a[i].charAt(0);s+=a[i].replace(c,c.toUpperCase())}return s}function _parseColour(c){var o={};if(_allArgumentsAreStrings(c)){if(c.indexOf("rgb")!=-1){var a=c.match(/(\d*)\s*,\s*(\d*)\s*,\s*(\d*)/);o.r=parseInteger(a[1])||0;o.g=parseInteger(a[2])||0;o.b=parseInteger(a[3])||0;o.n=(o.r<<16)|(o.g<<8)|o.b}else{pn(parseInteger(c.substr(1),16))}}else{pn(c)}o.s=_convertNumberToHexadecimal(o.n,6,"#");return o;function pn(n){o.n=n||0;o.r=(o.n&16711680)>>16;o.g=(o.n&65280)>>8;o.b=o.n&255}}function animateRGB(el,sCssProp,targetColor,uTotalTime,callback){callback=typeof callback==String_function?callback:function(){};var startC=_parseColour(_getComputedStyleOfElement(el,sCssProp)),targetC=_parseColour(targetColor),startRed=startC.r,startGreen=startC.g,startBlue=startC.b,displayRed=targetC.r-startRed,displayGreen=targetC.g-startGreen,displayBlue=targetC.b-startBlue,elementStyle=el.style,freq=Math.PI/(2*uTotalTime),startTime=new Date().getTime(),tmr,sCssPropConvertedToCamelcase=_convertDashSeperatedToCamelcase(sCssProp);tmr=setInterval(function skyAnimAnon6(){var elapsedTime=new Date().getTime()-startTime;if(elapsedTime<uTotalTime){var f=Math.abs(Math.sin(elapsedTime*freq));elementStyle[sCssPropConvertedToCamelcase]="rgb("+roundNumberToClosestWhole(f*displayRed+startRed)+","+roundNumberToClosestWhole(f*displayGreen+startGreen)+","+roundNumberToClosestWhole(f*displayBlue+startBlue)+")"}else{clearInterval(tmr);elementStyle[sCssPropConvertedToCamelcase]=targetC.s;callback()}},150)}function xGetElementById(e){if(typeof(e)=="string"){if(document.getElementById){e=document.getElementById(e)}else{if(document.all){e=document.all[e]}else{e=null}}}return e}function xScrollLeft(e,bWin){var w,offset=0;if(!xDef(e)||bWin||e==document||e.tagName.toLowerCase()=="html"||e.tagName.toLowerCase()=="body"){w=window;if(bWin&&e){w=e}if(w.document.documentElement&&w.document.documentElement.scrollLeft){offset=w.document.documentElement.scrollLeft}else{if(w.document.body&&xDef(w.document.body.scrollLeft)){offset=w.document.body.scrollLeft}}}else{e=xGetElementById(e);if(e&&xNum(e.scrollLeft)){offset=e.scrollLeft}}return offset}function xScrollTop(e,bWin){var w,offset=0;if(!xDef(e)||bWin||e==document||e.tagName.toLowerCase()=="html"||e.tagName.toLowerCase()=="body"){w=window;if(bWin&&e){w=e}if(w.document.documentElement&&w.document.documentElement.scrollTop){offset=w.document.documentElement.scrollTop}else{if(w.document.body&&xDef(w.document.body.scrollTop)){offset=w.document.body.scrollTop}}}else{e=xGetElementById(e);if(e&&xNum(e.scrollTop)){offset=e.scrollTop}}return offset}function xDef(){for(var a=0;a<arguments.length;++a){if(typeof(arguments[a])=="undefined"){return false}}return true}function xNum(){for(var a=0;a<arguments.length;++a){if(isNaN(arguments[a])||typeof(arguments[a])!="number"){return false}}return true}function xAnimation(r){var self=this;self.res=r||10;self.init=function(e,t,or,ot,oe,a,b){var i=self;i.e=xGetElementById(e);i.t=t;i.or=or;i.ot=ot;i.oe=oe;i.a=a||0;i.v=self.vf[i.a];i.qc=1+(b||0);i.fq=1/i.t;if(i.a){i.fq*=i.qc*Math.PI;if(i.a==1||i.a==2){i.fq/=2}}else{i.qc=1}i.xd=i.x2-i.x1;i.yd=i.y2-i.y1;i.zd=i.z2-i.z1};self.run=function(r){var i=self;if(!r){i.t1=new Date().getTime()}if(!i.tmr){i.tmr=setInterval(function(){i.et=new Date().getTime()-i.t1;if(i.et<i.t){i.f=i.v(i.et*i.fq);i.x=i.xd*i.f+i.x1;i.y=i.yd*i.f+i.y1;i.z=i.zd*i.f+i.z1;i.or(i)}else{clearInterval(i.tmr);i.tmr=null;if(i.qc%2){i.x=i.x2;i.y=i.y2;i.z=i.z2}else{i.x=i.x1;i.y=i.y1;i.z=i.z1}i.ot(i);var rep=false;if(typeof i.oe=="function"){rep=i.oe(i)}else{if(typeof i.oe=="string"){rep=eval(i.oe)}}if(rep){i.resume(1)}}},i.res)}};self.vf=[function(r){return r},function(r){return Math.abs(Math.sin(r))},function(r){return 1-Math.abs(Math.cos(r))},function(r){return(1-Math.cos(r))/2}];self.pause=function(){clearInterval(self.tmr);self.tmr=null};self.resume=function(fs){if(typeof self.tmr!="undefined"&&!self.tmr){self.t1=new Date().getTime();if(!fs){self.t1-=self.et}self.run(!fs)}};self.scroll=function(e,x,y,t,a,b,oe){var i=self;i.init(e);i.win=i.e.nodeType==1?false:true;i.x1=xScrollLeft(i.e,i.win);i.y1=xScrollTop(i.e,i.win);i.x2=Math.round(x);i.y2=Math.round(y);i.init(e,t,h,h,oe,a,b);i.run();function h(i){var x=Math.round(i.x),y=Math.round(i.y);if(i.win){i.e.scrollTo(x,y)}else{i.e.scrollLeft=x;i.e.scrollTop=y}}};self.css=function(e,p,v,t,a,b,oe){var i=self;i.x1=_getComputedStyleOfElement(e,p,true);i.x2=v;i.prop=_convertDashSeperatedToCamelcase(p);i.init(e,t,h,h,oe,a,b);i.run();function h(i){i.e.style[i.prop]=Math.round(i.x)+"px"}}}var xa=new xAnimation();function glowElementBackground(el,_animateToColour,callback){var selectionAnimDuration_mSecs=2000,backgroundColourProperty_CSS="background-color",backgroundColourProperty_JS="backgroundColor",highlightColour="#FDF2AB",animateToColour=_animateToColour||"#FBFDFF";sky.css.addInline(el,backgroundColourProperty_JS,highlightColour);setTimeout(function(){sky.animate.rgb(el,backgroundColourProperty_CSS,animateToColour,selectionAnimDuration_mSecs,function(){sky.css.removeInline(el,userBrowser.is("ie")?backgroundColourProperty_JS:backgroundColourProperty_CSS);typeof callback=="function"?callback(el):false})},600)}if(userBrowser.is("ie")&&!userBrowser.is("ie7+")){return{custom:function customIE6(el,newX,newY,newWidth,newHeight,timeInMilliseconds,callback){if(typeof newX=="number"){el.style.left=newX+"px"}if(typeof newY=="number"){el.style.top=newY+"px"}if(typeof newWidth=="number"){el.style.width=newWidth+"px"}if(typeof newHeight=="number"){el.style.height=newHeight+"px"}if(typeof callback=="function"){callback()}},slideUp:function slideUpIE6(el,timeInMilliseconds,callback){addInlineStyle(el,String_display,String_none);if(typeof callback=="function"){callback()}},slideDown:function slideDownIE6(el,timeInMilliseconds,callback){removeInlineStyle(el,String_display);if(typeof callback=="function"){callback()}},rgb:function rgbIE6(el,sCssProp,targetColor,uTotalTime,callback){el.style[_convertDashSeperatedToCamelcase(sCssProp)]=targetColor;if(typeof callback=="function"){callback()}},glow:glowElementBackground,scroll:function(el,x,y,time,acceleration,bounce,callback){el.scrollTop=y;if(typeof callback=="function"){callback()}},css:function(el,property,value,time,acceleration,bounce,callback){el.style[_convertDashSeperatedToCamelcase(property)]=value;if(typeof callback=="function"){callback()}}}}else{return{custom:SkyAnimateCustom,glow:glowElementBackground,slideUp:SkyAnimateSlideUp,slideDown:SkyAnimateSlideDown,rgb:animateRGB,scroll:xa.scroll,css:xa.css}}}function skyWindowManager(e){var h="undefined",j="function",n="string",k=[],o=0;function f(s,r){if(!s){var t=sky.cookie.get("popupwarning"),q=1;t=t===null?0:t;if(t<q){r();sky.cookie.set("popupwarning",++t)}}else{s.focus()}}function p(s,t,v,q){if(!s){return}var r=typeof v!=h?v:"Sky"+Math.floor(Math.random()*20),u=(window.location+"").match(/\/\/([^\/\?\\]+)/)[1],x=typeof q==j?q:function(){sky.overlay.doAlert("Could not open popup window","Please update your Web Browser settings to allow popups for "+u,"warning popupwarning")},w=window.open(s,r,(typeof t==n?t:"status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,width=800,height=600"));setTimeout(function(){f(w,x)},100)}function b(r,q,s){return q.search(this.u)!==-1}function l(r,q){return sky.hasClass(r,this.c)}function g(q){var s=q.length;for(var r=0;r<s;r++){a(q[r])}}function a(t){if(arguments.length>1){g(arguments);return}function q(v){return typeof v==="boolean"}function s(v){return v?"yes":"no"}var r=t.p,u="";t.p=["width="+(r.w?r.w:990),"height="+(r.h?r.h:730),"scrollbars="+(q(r.s)?s(r.s):"yes"),"toolbar="+(q(r.t)?s(r.t):"no"),"resizable="+(q(r.r)?s(r.r):"yes"),"location="+(q(r.l)?s(r.l):"no"),"status="+(q(r.st)?s(r.st):"no"),"menubar="+(q(r.m)?s(r.m):"no")].join(",");t.check=t.u?b:t.c?l:false;if(!t.check){return}k[o++]=t}function i(u,s){var r=o,q=s.href,t;sky.grabEvent.stopDefault(u);do{t=k[r-1];if(!t.check(s,q,t)){continue}p(q,t.p,typeof t.n==="string"?t.n:null);if(typeof t.cb=="function"){t.cb()}return}while(--r);p(q,null)}function c(r){var w=r.length,s,y=window.location.host.split("."),v=y[y.length-2],q,x=/^.+\/\/|\/.+/g,u;y=y.join(".");for(var t=w;t--;){curr=r[t];s=sky.attr(curr,"rel");q=curr.href;if(s&&s.indexOf("external")!==-1){sky.addEvent(curr,"click",(function(z){return function(A){i(A,z)}})(curr))}if(q.indexOf("http")===-1||typeof changeDomain!=="function"){continue}u=q.split(x).join("").split("/").join("");if(y!==u&&u.search(/skybet|skybingo|skyvegas|skypoker/i)!==-1){curr.href=changeDomain(q)}}}if(e&&e.length>0){for(var m=0;m<e.length;m++){a(e[m])}}return{add:a,addLinks:c,getNew:p,handleLink:i}}function skyUI(){this.viewStack=function b(e){if(!e||!e.nodeName){return false}var c,g=sky.children(e),h=[],f;this.addNavigator=function(i){h.push(i);i.reflectViewState(f)};this.getActiveView=function(){var i=g.length;do{if(sky.hasClass(g[i-1],"actv")){f=g[i-1].id;return f}}while(--i)};this.broadcastState=function(){var i=h.length;if(i==0){return}do{h[i-1].reflectViewState(f)}while(--i)};this.showView=function(n){var k=sky.id(n);if(k.innerHTML.indexOf("v_replace")!=-1){var l=sky.elems("a",k)[0],i=l.getAttribute("href");ob.ajax({global:false,type:"GET",url:i,params:"",dataType:"html",asynchronous:"true",success:function(o){k.innerHTML=o;sky.tooltips.addElements(sky.elems("span",k));sky.tooltips.addElements(sky.elems("div",k));sky.tooltips.addLinks(sky.elems("a",k))},error:function(){}})}var j=g.length,m="actv";do{sky.removeClass(g[j-1],m)}while(--j);sky.addClass(k,m);f=n;this.broadcastState()};this.getActiveView()};this.buttonBar=function a(h,e){var g=[],j,c,i=0,k="actv",f=this;this.reflectViewState=function(l){i=g.length;var m;do{m=g[i-1];if(sky.hasClass(m,"vs_btn")&&m.getAttribute("href").search(new RegExp("#"+l+"$"))!=-1){sky.addClass(m,k)}else{sky.removeClass(m,k)}}while(--i);sky.addClass(sky.id(l),k)};this.showView=function(){var l=this.getAttribute("href").split("#")[1];c.showView(l);return false};if(!e||!e.addNavigator){return false}g=sky.elems("a",h);i=g.length;do{g[i-1].onclick=f.showView}while(--i);c=e;c.addNavigator(this)}}function skyJSLibrary(){var ap="string",q="click",g="boolean",s="undefined",aS="function",r="number",E="px",aB="style",n="div",aG="display",p="block",e="none",o="visibility",a="visible",w="hidden",au="top",U="right",T="bottom",ac="left",ax="width",X="height",v="overflow",i="title",af="external",N="rel",al="nodeName",an="className",aB="style",am="innerHTML",C="parentNode",ad="appendChild",ae="nodeType",Y="split",m="join",aJ="length",aK="indexOf",D="cookie",f="nextSibling",l,at;function c(aY,aX,aW,aV){if(!aY){return}aX=aX.toLowerCase();var aU=["on",aX].join("");if(aY.addEventListener){aY.addEventListener(aX,aW,aV||false)}else{if(aY.attachEvent){aY.attachEvent(aU,aW)}else{var aZ=aY[aU];aY[aU]=typeof aZ=="function"?function(a0){aZ(a0);aW(a0)}:aW}}}function aq(a1){var bm={},bn={},ba=this,aY,aV,bc=false,a8=/^(click|dblclick|key(up|down|press)|mouse(down|up|move|over|out)|change)$/i,aW=/^DOMLoaded$/i,bg=/^load$/i,aX=/^unload$/i;function be(bs){var br=aV(bs);return br&&br===2||br===3}function bq(br){br.cancelBubble=true}function a3(br){br.stopPropagation()}function bl(br){br.preventDefault()}function bk(br){br.returnValue=false}function bp(br){return br.button}function bi(br){return br.which}function a2(br){return br[ae]===3||A(br,"img")?br[C]:br}function a7(br){return a2(br.srcElement)}function aZ(br){return a2(br.target)}function bo(br){return br.type}var a6=["onload","onunload"];function aU(br,bs){var bu=a6[br],bt=window[bu];if(typeof bt!==aS){window[bu]=bs}else{window[bu]=function(){if(bt){bt()}bs()}}}(function(){var bt=window.DomReady={};var bw=navigator.userAgent.toLowerCase();var br={version:(bw.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(bw),opera:/opera/.test(bw),msie:(/msie/.test(bw))&&(!/opera/.test(bw)),mozilla:(/mozilla/.test(bw))&&(!/(compatible|webkit)/.test(bw))};var by=false;var bv=false;var bx=[];function bs(){if(!bv){bv=true;if(bx){for(var bz=0;bz<bx[aJ];bz++){bx[bz].call(window,[])}bx=[]}}}function bu(){if(by){return}by=true;if(document.addEventListener&&!br.opera){document.addEventListener("DOMContentLoaded",bs,false)}if(br.msie&&window==top){(function(){if(bv){return}try{document.documentElement.doScroll("left")}catch(bA){setTimeout(arguments.callee,0);return}bs()})()}if(br.opera){document.addEventListener("DOMContentLoaded",function(){if(bv){return}for(var bA=0;bA<document.styleSheets[aJ];bA++){if(document.styleSheets[bA].disabled){setTimeout(arguments.callee,0);return}}bs()},false)}if(br.safari){var bz;(function(){if(bv){return}if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return}if(bz===undefined){var bA=document.getElementsByTagName("link");for(var bB=0;bB<bA[aJ];bB++){if(bA[bB].getAttribute(N)=="stylesheet"){bz++}}var bC=document.getElementsByTagName("style");bz+=bC[aJ]}if(document.styleSheets[aJ]!=bz){setTimeout(arguments.callee,0);return}bs()})()}aU(0,bs)}bt.ready=function(bA,bz){bu();if(bv){bA.call(window,[])}else{bx.push(function(){return bA.call(window,[])})}};bu()})();function bb(br){if(bc){return}ba.stopBubble=typeof br.cancelBubble!==s?bq:typeof br.stopPropagation!==s?a3:function(){return null};ba.stopDefault=typeof br.preventDefault!==s?bl:bk;aV=typeof br.button!==s?bp:typeof br.which!==s?bi:function(){return null};aY=typeof br.srcElement!==s?a7:typeof br.target!==s?aZ:function(){return null};bc=true}function bh(bv){var bs,br,bu,bz,bw,by,bt,bx;if(!bv){bv=window.event}br=bo(bv);if(!bc&&br.search(/click|mouse|key/i)!==-1){bb(bv)}bs=aY(bv);if(!bs||!bm[br]||typeof bs[al]!==ap){return}bw=bs[al];by=bs[an];bt=bs.id;if(be(bv)){return}bx=bm[br];for(bz in bx){if(bx.hasOwnProperty(bz)){bu=bx[bz];if(!bu.condition(bs,br,bv,bw,by,bt)){continue}bu.behaviour(bs,br,bv,bw,by,bt);if(bu.stopBubble){ba.stopBubble(bv)}if(bu.stopDefault){ba.stopDefault(bv)}}}}function bf(br){var bt,bs=br.length;if(bs<1){return}do{bt=br[bs-1];if(!bt.i||!bt.f||!bt.c){continue}sky.grabEvent.addBehaviour(bt.f,bt.e?bt.e:q,bt.c,typeof bt.b===g?bt.b:true,typeof bt.d===g?bt.d:true,bt.i)}while(--bs)}function a9(bs,bu,br,bt){this.behaviour=bs;this.condition=bu;this.stopBubble=br;this.stopDefault=bt}this.add=function a5(bx,bs,bw,bu,br,bz){if(arguments.length===1){bf(bx.f?[bx]:bx);return}var bA=bx,bC=false,bt=false,by=false,bv=false,bB=false;bs.search(a8)!==-1?(bC=true):bs.search(aW)!==-1?(bt=true):bs.search(bg)!==-1?(by=true):bs.search(aX)!==-1?(bv=true):(bB=true);if(typeof bz!==ap){return false}if(bt){DomReady.ready(bA);return true}if(bC){if(!bm[bs]){bm[bs]={};document["on"+bs]=bh}bm[bs][bz]=new a9(bA,bw,bu,br);return true}if(by){aU(0,bA);return true}if(bv){aU(1,bA);return true}if(bB){if(!bn[bs]){bn[bs]={}}bn[bs][bz]=new a9(bA,bw,bu,br);return true}return false};this.remove=function bd(br,bs){bm[br]=[];bm[br][bs]=null;delete bm[br][bs]};function bj(br,bt){var bs=bn[br];for(var bu in bs){if(bs.hasOwnProperty(bu)){bs[bu].behaviour(bt)}}}this.broadcast=function a4(bs,br){bj(bs,br)};ba.add(function(br,bs,bt){bb(bt);ba.remove("mouseover","eInit")},"mouseover",function(){return true},true,true,"eInit");ba.add(function a0(){for(var bu in bm){if(bm.hasOwnProperty(bu)){document["on"+bu]=null}}var br=sky.elems("script"),bs,bt=br[aJ];do{bs=br[bt-1];if(!bs.onreadystatechange){continue}bs.onreadystatechange=null}while(--bt)},"unload",true,true,true,"SkyGC")}l=new aq();at=l.add;function S(aU){return document.getElementById(aU)}function H(aW,aV){var aU=(aV?aV:document).getElementsByTagName(aW);if(aU[aJ]>0){aU.last=aU[aU[aJ]-1]}return aU}function R(aU,aV){while(aU[C]&&!A(aU,aV)){aU=aU[C]}return A(aU,aV)?aU:null}function aH(aW,aV){var aU=aW[C],aX=1;do{if(aX==aV){return aU}aU=aU[C];aX++}while(parent);return false}function aA(aX){var aW=aX.childNodes,aY=[],aV=aW[aJ];for(var aU=0;aU<aV;aU++){if(aW[aU][ae]==1){aY.push(aW[aU])}}return aY}function V(aU){return !aU||!aU[f]?false:aU[f][ae]==1?aU[f]:V(aU[f])}var W=typeof document.documentElement.getAttribute=="function"?function aE(aV,aU,aW){return typeof aW==s?aV.getAttribute(aU):aU!=aB?aV.setAttribute(aU,aW):aV[aB].cssText=aW}:function aF(aV,aU,aW){return typeof aW==s?aV[aU]:aU!=aB?aV[aU]=aW:aV[aB].cssText=aW};function ah(aV,aU){L(aV,ac,[aU,E].join(""))}function ag(aU,aV){L(aU,au,[aV,E].join(""))}function A(aU,aW){var aV=typeof aU==ap?aU:aU[al];return aV.toLowerCase()===aW.toLowerCase()}function aT(aU,aV){var aW=typeof aU==ap?aU:aU[an];if(!aW){return false}aW=[" ",aW," "].join("");return aW[aK]([" ",aV," "].join(""))!=-1}function aM(aV,aU){if(aT(aV,aU)){return}aV[an]=aV[an][Y](/ +/g).concat(aU)[m](" ").replace(/^ | $/g,"")}function aQ(aV,aU){if(!aT(aV,aU)){return}else{aV[an]=aV[an][Y](aU)[m]("")}}function B(aW,aU){var aV=aT(aW,aU);aV?aQ(aW,aU):aM(aW,aU);return !aV}function z(aU){return(aU.x)?aU.x:aa(aU,"Left")}function y(aU){return(aU.y)?aU.y:aa(aU,"Top")}function aa(aU,aW){var aX=0,aV=["offset",aW].join("");while(aU!==null){aX+=aU[aV];aU=aU.offsetParent}return aX}function b(aU){return aU.offsetWidth}function aN(aU){return aU.offsetHeight}var M,K;function az(aU){return aU.pageX}function aP(aU){return aU.clientX+document.documentElement.scrollLeft}function ay(aU){return aU.pageY}function u(aU){return aU.clientY+document.documentElement.scrollTop}function aL(aU,aV){this.x=z(aU);this.y=y(aU);this.width=b(aU);this.height=aN(aU);this.mouseX=M(aV);this.mouseY=K(aV)}function av(aU,aV){return new aL(aU,aV)}function j(aV,aU){if(typeof aV.pageX==r){sky.getProperty.mouseX=M=az;sky.getProperty.mouseY=K=ay}else{sky.getProperty.mouseX=M=aP;sky.getProperty.mouseY=K=u}_mouseEventFirstTimeRun=false;return aU==="x"?sky.getProperty.mouseX(aV):sky.getProperty.mouseY(aV)}function Z(){var aU=new Date();aU.setFullYear(aU.getFullYear()+1);return aU}function t(aZ){var aX=null,aW=[aZ,"="].join(""),aV=document[D];if(aV[aJ]>0){var aY=aV[aK](aW);if(aY!=-1){aY+=aW[aJ];var aU=aV[aK](";",aY);if(aU==-1){aU=aV[aJ]}aX=unescape(aV.substring(aY,aU))}}return aX}function aC(aX,aV,aU,aW){document[D]=[aX,"=",escape(aV),(!aU?"":"; expires="+aU.toGMTString()),"; path=",(!aW?"/":aW)].join("")}function Q(aV,aU){if(t(aV)){document[D]=[aV,"=","; path=",(!aU?"/":aU),"; expires=",new Date(0).toGMTString()].join("")}}var aw=false,aR=false,ar=false,aI=false,aj=false,ai;function k(){ai=document.createElement(aB);ai.id="skycssinsertrule";sky.id("jscont")[ad](ai);ai=ai.sheet?ai.sheet:ai.styleSheet;ai.insertRule?(aR=true):ai.addRule?(ar=true):userBrowser.is("saf")?(aI=true):(aj=true);aw=true}function aO(aX){if(!aw){k()}if(aj){return}if(aI){ai[ad](document.createTextNode(aX));return}var aU=true,aY=aX[Y](/}/),aW;while(aY[aJ]){aW=aY.shift()[Y](/{/);if(aW==""){break}CSSStyleSelector=aW[0];allPropertyValuePairs=aW[1];if(aR){ai.insertRule([CSSStyleSelector,"{",allPropertyValuePairs,"}"].join(""),ai.cssRules[aJ])}if(ar){var aZ=CSSStyleSelector.split(",");for(var aV=0;aV<aZ.length;aV++){ai.addRule(aZ[aV],allPropertyValuePairs)}}}}function L(aU,aW,aV){aU[aB][aW]=aV}function h(aU,aV){aU[aB].cssText=aV}function ak(aX,aZ){var aW=aX.getAttribute(aB);if(aW==null){return}if(userBrowser.is("ie")){L(aX,aZ,"");return}var aV=new RegExp(aZ+" *: *[^;}]+[;}]","i"),aU=aW.match(aV),aY=aW.replace(aU,"");aX.setAttribute(aB,aY)}function G(aW,a0,aZ,aY,aX){var aV="";for(var aU in aW){if(aW.hasOwnProperty(aU)){aV+=a0+aU+aZ+aW[aU]+aY}}if(aX){aV=aV.replace(new RegExp(aY+"$","gm"),"")}return aV}function J(aW){var aU=[];for(var aV in aW){if(aW.hasOwnProperty(aV)){aU.push(aW[aV])}}return aU}function x(aV){for(var aU=0;aU<node.childNodes[aJ];aU++){var aW=node.childNodes[aU];if(aW[ae]===3&&!/\S/.test(aW.nodeValue)){node.removeChild(node.childNodes[aU]);aU--}if(aW[ae]===1){cleanwhitespace(aW)}}}var F={init:function(){at({i:"SkyFOGManager",e:"FOGLaunched",f:sky.balance.disable,c:true})}};function aD(aV,aX){var aW,aU;aW=aV.replace(/[^a-z0-9]/i,"");if(S(aW)&&S(aW).isLoaded){aX();return}aU=document.createElement("script");aU.type="text/javascript";aU.id=aW;aU.isLoaded=false;if(aU.readyState){aU.onreadystatechange=function(){if(aU.readyState=="loaded"||aU.readyState=="complete"){aU.onreadystatechange=null;aU.isLoaded=true;if(typeof aX==="function"){aX()}}}}else{aU.onload=function(){aU.isLoaded=true;if(typeof aX==="function"){aX()}}}aU.src=aV;document.getElementsByTagName("head")[0][ad](aU)}function ab(aU,aV,aX,aW){aD(aU,function(){(function(){var aY=sky[aV][aX];return aY?aY:function(){}})().apply(sky,aW)})}function ao(){var aV=S("con_link"),aU="High Contrast",aW=["Disable ",aU].join("");if(!aV||typeof hiContEnabled!=="boolean"){return}var aX=new skyStylesheetSwitcher();c(aV,"click",aX.doConfirm);aV[am]=hiContEnabled?aW:aU}function I(aV){if(!userBrowser.is("ie")){return aV.selectionStart?aV.selectionStart:false}else{var aX=aV,aY,a0,a4,a1,aZ,aU,a3,aW,a2;aX.focus();if(aX.value[aJ]>=(aX.maxLength-3)){return false}if(!document.selection){return}aY=document.selection.createRange();if(aY.parentElement()!==aX){return false}a0=aX.value.replace(/rn/g,"n");a4="QJ";aY.text=a4;aW=aX.value.replace(/rn/g,"n");a2=aW;for(a1=0;a1<a0[aJ];a1++){if(a0.charAt(a1)!==a2.charAt(a1)){break}}for(aZ=0,aU=0;aW.match(a4)&&(aW=aW.replace(a4,""))&&aZ<=a1;aZ=aU+a4[aJ]){aU=a2[aK](a4,aZ)}aX.value=aX.value.replace(a4,"");a3=aX.createTextRange();a3.move("character",aU);a3.select();return aU}}function O(aW,aV,a3){var a5=window.event?a3.keyCode:a3.which,a1=String.fromCharCode(a5),aX=new RegExp(),a4=false,a0=false,aZ,aU,a2,aY;if(a3.metaKey||a3.ctrlKey||window.event&&window.event.CONTROL_MASK){return}if(a5===13&&aT(aW,"val_submit")){aZ=sky.getAncestorByNodeName(aW,"form");if(aZ){aZ.submit();return}}if(/^(0|13|8){1}$/.test(a5)){return}if(aT(aW,"val_float")){aX=/[^0-9\.]/i;a4=true;a0=true}else{if(aT(aW,"val_userid")){aX=/[^a-z0-9_]/i}else{if(aT(aW,"val_integer")){aX=/[^0-9]/i}}}if(aX.test(a1)){sky.grabEvent.stopDefault(a3)}if(!(a4||a0)){return}aU=aW.value;if(aU[aK](".")===-1){return}if(a1==="."){sky.grabEvent.stopDefault(a3);return}a2=I(aW);if(typeof a2!=="number"){return}aY=aU.substr(0,a2);if(aY[aK](".")===-1){return}if(aU.search(/\.[0-9]{2}/)!==-1){sky.grabEvent.stopDefault(a3)}}function P(){var aY=sky.id("jscont"),aX=sky.children(aY),aU=aX[aJ],aV,aW=S("beforeload");if(aW){aQ(aW,"hide")}if(aU>0){do{aV=aX[aU-1];if(aV.nodeName[aK](/style/i)!==-1){aV[am]=""}aY.removeChild(aV)}while(--aU)}}at(function(){if(userBrowser.is("ie6")){sky.elems("body")[0][ad](sky.id("jscont"));sky.css.addInline(sky.id("jscont"),"display","block")}sky.balance.init();ao();F.init();sky.wndow.addLinks(sky.elems("a"));sky.tooltips.addLinks(sky.elems("a"));sky.tooltips.addElements(sky.elems("span"));sky.tooltips.addElements(sky.elems("div"));_omnitureLinkCapture();var aU=sky.id("beforeload");if(aU){sky.addClass(aU,"hide")}at(O,"keypress",function(aY,aW,a0,aX,aZ){return aZ[aK]("val_")!==-1},false,false,"validateHandle");var aV=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");sky.load.js(unescape(aV+"google-analytics.com/ga.js"),function(){try{var aW=_gat._getTracker("UA-7410998-10");aW._setDomainName("www.skybet.com");aW._trackPageview()}catch(aX){}});at(P,"unload",true,true,true,"SkyGarbageCollector")},"DOMLoaded",true,false,false,"SkyDOMReady");return{id:S,elems:H,getAncestorByNodeName:R,getAncestorAt:aH,children:aA,nextSibling:V,attr:W,set:{x:ah,y:ag},hasNodeName:A,hasClass:aT,addClass:aM,removeClass:aQ,toggleClass:B,getProperty:{x:z,y:y,width:b,height:aN,mouseX:function(aU){return j(aU,"x")},mouseY:function(aU){return j(aU,"y")},all:av},load:{js:aD},cookie:{nextYear:Z,get:t,set:aC,kill:Q},addEvent:c,grabEvent:{addBehaviour:l.add,removeBehaviour:l.remove,stopBubble:function(aU){return l.stopBubble(aU)},stopDefault:function(aU){return l.stopDefault(aU)},broadcast:l.broadcast},css:{insertRule:aO,addInline:L,removeInline:ak,replaceInline:h},cleanWhitespace:x,objToArr:J,objToStr:G,omniture:{},bet:{},bingo:{},casino:{},poker:{},accounts:{}}}var sky=typeof window.sky!=="undefined"?window.sky:new skyJSLibrary();sky.tooltips=new skyTooltips();sky.ui=new skyUI();sky.overlay=new skyOverlayLibrary();sky.animate=new skyAnimationLibrary();sky.flash=new skyFlashManager();sky.balance=new skyBalanceManager();sky.wndow=new skyWindowManager();sky.newWindow=sky.wndow.getNew;sky.wndow.add({u:"/cms/chat.shtm",p:{w:1005,h:735,s:true,t:true,r:true}},{u:"seal.verisign",p:{w:535,h:445}},{u:/\/Skybet_Radio/i,p:{w:530,h:370}},{u:/GoRacingUKVideoFeed/i,p:{w:550,h:580}},{u:/GoVideoFeed/i,p:{w:570,h:550}},{u:"GoAcctBetDetails",p:{w:1010,h:735}},{u:"help.skybet",p:{w:1005,h:735}},{u:/txn_type=PRINT/i,p:{w:950,h:600}},{u:/bet_live_popup_sky_sports/i,p:{w:300,h:640}},{u:/action(=|~|%7E)GoGame(\\|&|$|@)/i,p:{w:750,h:580},cb:function(a){sky.grabEvent.broadcast("FOGLaunched",{el:a})}});sky.wndow.add({u:"Skybet_Popup_Home",p:{w:700,h:700}},{u:"skybet/radio",p:{w:830,h:503}},{u:"Audio_Centre",p:{w:700,h:600}},{u:"/refer",p:{w:1055,h:730}},{u:"/calculator",p:{w:700,h:600}},{u:"skysports.stats.football365",p:{w:787,h:600}},{u:"super6.skysports",p:{w:1055,h:730}},{u:"/liveracing",p:{w:1055,h:730}},{u:"GoMediaHome",p:{w:1055,h:730}},{u:"mobile_betting",p:{w:1055,h:730}},{u:"GoManageCards",p:{w:1055,h:730}},{u:"GoContactForm",n:"skyContactForm",p:{w:800,h:600,s:true,t:true,r:true,l:true,st:true,m:true}},{u:"ScoreCentre",p:{w:1024,h:685,s:false,st:false,r:false}},{u:"itunes.apple.com",p:{w:1020,h:650}});function SkyBetJSLibrary(){function DividendBetTemplateManager(){var marketIdFromButtonClassRegExp=/_id\-([^\-]+)\-/,castTypeFromButtonClassRegExp=/cst_type\-([^\-]+)\-/;function handleButtonClick(marketId,dividendTypes){var current_mkt=Sportsbook.getMktById(marketId),done=false,i;for(var i in dividendTypes){if(addCasts(dividendTypes[i],current_mkt,1)){done=true;clearCasts(HR.casts[dividendTypes[i]].details[dividendTypes[i]+"any"].rules,current_mkt)}}if(done){removeDividendButtons(marketId)}}function removeDividendButtons(marketId){var dividendTBody=sky.id(marketId+"_addsels"),marketTemplate=dividendTBody.parentNode;if(marketTemplate!==null){marketTemplate.removeChild(dividendTBody);sky.removeClass(marketTemplate,"js_dividendAnyColHasRun")}}function drawDividendButtons(dividendMarketId,arrayOfTypes){var forecastTricastOrExactaTrifectaTBody=sky.id("mkt_id_"+dividendMarketId+"-cst"),superfectaTBody=sky.id("mkt_id_"+dividendMarketId+"-spr"),marketTemplate,dividendTBody,firstMarketType=arrayOfTypes[0],isForecastTricast=firstMarketType=="fc",isExactaTrifecta=firstMarketType=="exa",isToteExactaTrifecta=firstMarketType=="uexa",isSuperfecta=firstMarketType=="spr",buttonRowHTML,temporaryContainerOfHTMLTableUsedToCreateAndAccessTheNewTBody,newTBodyContainingOurButtons,newTBodyContainingOurButtons_firstColumn,numberOfColumnsInTheMarketTemplate,lastOfTheTBodiesAlreadyInTheMarketTemplate,clickStr="sky.bet.dividendBtns.handle('"+dividendMarketId+"',"+(isForecastTricast?"['fc','tc']":isExactaTrifecta?"['exa','tri']":isToteExactaTrifecta?"['uexa','utri']":"['spr']")+")";if(isForecastTricast||isExactaTrifecta||isToteExactaTrifecta&&(forecastTricastOrExactaTrifectaTBody!==null)){dividendTBody=forecastTricastOrExactaTrifectaTBody;marketTemplate=dividendTBody.parentNode;buttonRowHTML='<table><tbody class="addsels" id="##ID##_addsels"><tr><th class="tc1" scope="row" colspan="'+(sky.hasClass(marketTemplate,"mkt8")?4:sky.hasClass(marketTemplate,"mkt10")||sky.hasClass(marketTemplate,"mkt19")?3:sky.hasClass(marketTemplate,"mkt25")?2:4)+'">&nbsp;</th><td class="tc4" colspan="7"><a href="#" onclick="'+clickStr+'" class="oc oc_addsels"><img alt="Add to Bet Slip" src="http://st1.skybet.com/bet/img/mkt/btn_addsels.png" /></a></td></tr></tbody></table>'}else{if(isSuperfecta&&superfectaTBody!==null){dividendTBody=superfectaTBody;marketTemplate=dividendTBody.parentNode;buttonRowHTML='<table><tbody class="addsels" id="##ID##_addsels"><tr><th class="tc1" scope="row" colspan="2">&nbsp;</th><td class="tc3" colspan="5"><a href="#" onclick="'+clickStr+'" class="oc oc_addsels addcst"><img alt="Add to Bet Slip" src="http://st1.skybet.com/bet/img/mkt/btn_addsels.png"/></a></td></tr></tbody></table>'}}if(sky.hasClass(marketTemplate,"js_dividendAnyColHasRun")){return}temporaryContainerOfHTMLTableUsedToCreateAndAccessTheNewTBody=document.createElement("div");temporaryContainerOfHTMLTableUsedToCreateAndAccessTheNewTBody.innerHTML=buttonRowHTML.split("##ID##").join(dividendMarketId);newTBodyContainingOurButtons=temporaryContainerOfHTMLTableUsedToCreateAndAccessTheNewTBody.firstChild.firstChild;newTBodyContainingOurButtons_firstColumn=newTBodyContainingOurButtons.firstChild.firstChild;marketTemplate.appendChild(newTBodyContainingOurButtons);sky.addClass(marketTemplate,"js_dividendAnyColHasRun")}return{add:drawDividendButtons,remove:removeDividendButtons,handle:handleButtonClick}}var dividendBtns=new DividendBetTemplateManager();function revealHiddenBodies(e,el){if(el.parentNode.parentNode.nodeName=="OL"){var table=el.parentNode.parentNode}else{var table=el.parentNode.parentNode.parentNode.parentNode}if(!sky.hasClass(el,"expmkt_open")){for(var i in table.childNodes){tbody=table.childNodes[i];if(sky.hasClass(tbody,"hiddenBody")){sky.toggleClass(tbody,"hiddenBody");sky.toggleClass(tbody,"revealedBody")}}el.parentNode.appendChild(document.createComment(el.innerHTML));el.innerHTML=Util.xl.tmpl_hide}else{for(var i in table.childNodes){tbody=table.childNodes[i];if(sky.hasClass(tbody,"revealedBody")){sky.toggleClass(tbody,"revealedBody");sky.toggleClass(tbody,"hiddenBody")}}el.innerHTML=el.parentNode.lastChild.nodeValue;el.parentNode.removeChild(el.parentNode.lastChild)}sky.toggleClass(el,"expmkt_open")}function private_trimString(str){return str.replace(/^\s+|\s+$/g,"")}function cropText(textContainer,numberOfCharsToShowInitially,revealLinkText){var entireString=private_trimString(textContainer.innerHTML),visiblePortion="",hiddenPortion="",ellipsis,moreLink;entireString=entireString.replace(/<br>/g," ");if(entireString.length<numberOfCharsToShowInitially){return}visiblePortion=entireString.substring(0,numberOfCharsToShowInitially);hiddenPortion=entireString.substring(numberOfCharsToShowInitially);textContainer.innerHTML=visiblePortion;ellipsis=document.createElement("span");ellipsis.innerHTML="...";moreLink=document.createElement("a");moreLink.innerHTML=revealLinkText;sky.attr(moreLink,"href","#");moreLink.onclick=function(){sky.css.addInline(ellipsis,"display","none");textContainer.innerHTML+=hiddenPortion;return false};ellipsis.appendChild(moreLink);textContainer.appendChild(ellipsis)}function extrasMenu(e,el){sky.toggleClass(el.parentNode,"open")}function toggleBIRTable(e,el){sky.toggleClass(sky.getAncestorByNodeName(el,"div"),"exptbl-open")}function swfJSONConstructor(){var viewingLiveBetCIP=false;var temporaryStore=[];function private_getSelectionsByMarketId(jsonObj,marketId){var liveCIPMarket,ev,eventId,eventName,eventStatus,start_time,allMarketsForCIPEvent,numberOfMarkets,marketName,marketStatus,selectionsForThatMarket=[],mkt_marketId="mkt_"+marketId;Sportsbook.createDrilldown(jsonObj);liveCIPMarket=Sportsbook.getMktById(marketId);ev=liveCIPMarket.getEv();eventId=ev.id;eventName=ev.desc;eventStatus=ev.status;start_time=ev.start_time;numberOfMarkets=ev.mkt_weight;marketName=liveCIPMarket.desc;marketStatus=liveCIPMarket.status;selectionsForThatMarket=liveCIPMarket.getOcs();return{evId:eventId,evName:eventName,evStatus:eventStatus,stTime:start_time,numMarkets:numberOfMarkets,mktName:marketName,mktStatus:marketStatus,sels:selectionsForThatMarket}}function add(substringOfTheJsonObjectBeingPassedFromTheSwf){temporaryStore.push(substringOfTheJsonObjectBeingPassedFromTheSwf)}function clear(){temporaryStore=[]}function process(marketId){var t=temporaryStore.join("");temporaryStore=eval("("+t+"\n)");temporaryStore=private_getSelectionsByMarketId(t,marketId);getSWF("CIP").goGet()}function setViewingLiveBetCIP(m){viewingLiveBetCIP=m}function newprocess(marketId){if(viewingLiveBetCIP==marketId){var t=temporaryStore.join("");temporaryStore=eval("("+t+")");temporaryStore=private_getSelectionsByMarketId(t,marketId)}}function getSWF(movieName){if(navigator.appName.indexOf("Microsoft")!=-1){return window[movieName]}else{if(document[movieName].length!=undefined){return document[movieName][1]}return document[movieName]}}function get(){var selsArray=[];var allReturn=new Object();var comp;var allStatus;if(temporaryStore.evStatus=="S"||temporaryStore.mktStatus=="S"){allStatus="S"}for(var k=0;k<temporaryStore.sels.length;k++){var n=new Object();n.desc=temporaryStore.sels[k].desc;n.price=temporaryStore.sels[k].price;n.id=temporaryStore.sels[k].id;if(allStatus=="S"){n.status="S"}else{n.status=temporaryStore.sels[k].status}if(temporaryStore.sels[k].id!=""){selsArray.push(n);comp=temporaryStore.sels[k].getType().desc}}allReturn.evId=temporaryStore.evId;allReturn.evName=temporaryStore.evName;allReturn.comp=comp;allReturn.stTime=temporaryStore.stTime;allReturn.numMarkets=temporaryStore.numMarkets;allReturn.mktStatus=temporaryStore.mktStatus;allReturn.mktName=temporaryStore.mktName;allReturn.sels=selsArray;return allReturn}return{add:add,clear:clear,process:process,get:get,setViewingLiveBetCIP:setViewingLiveBetCIP,newprocess:newprocess,temporaryStore:temporaryStore}}var swfJSON=new swfJSONConstructor();function createTealeafUIEvent(eventName,eventDetails){if(!eventName||!eventDetails){return}var myEvent=new TeaLeaf.Event(eventName),tlArray=eventDetails;myEvent.tlAddData(tlArray);myEvent.tlSend()}function swfTealeafConstructor(){function sendTealeaf(str){var varHolder=str.split("::"),myEvent=new TeaLeaf.Event("CIP"),tlArray=new Array("buttonName",varHolder[1]);myEvent.tlAddData(tlArray);myEvent.tlSend()}return{sendTealeaf:sendTealeaf}}var swfTealeaf=new swfTealeafConstructor();function scrollToAndGlow(e,el){var anchorRef=(typeof el.nodeName=="string"?el:document.location).href.split("#")[1],originalAnchorNode=sky.id(anchorRef),anchorNode,marketTemplate,isMarketAnchor=anchorRef.indexOf("dd_mkt_caption")!==-1,scrollingContainer=sky.id("w1"),scrollingContainerEntireHeight=scrollingContainer.scrollHeight,scrollingContainerViewportHeight=sky.getProperty.height(scrollingContainer),yPosOfJumpToPoint,newYPosOfViewportBottom;function scrollToAndGlowCallBack(){if(sky.hasNodeName(marketTemplate,"table")||sky.hasNodeName(marketTemplate,"ol")||sky.hasNodeName(marketTemplate,"ul")){if(sky.hasClass(marketTemplate,"mkt4")){var columnNumberClass=originalAnchorNode.className;sky.css.insertRule(".mkt4 td."+columnNumberClass+"{background:#FDF2AB}");setTimeout(function(){sky.css.insertRule(".mkt4 td."+columnNumberClass+"{background:#FFFFFF}")},2000)}else{if(sky.hasClass(marketTemplate,"mkt6")){sky.css.insertRule("#"+originalAnchorNode.parentNode.id+" td,#"+originalAnchorNode.parentNode.id+" th{background:#FDF2AB}");setTimeout(function(){sky.css.insertRule("#"+originalAnchorNode.parentNode.id+" td,#"+originalAnchorNode.parentNode.id+" th{background:#FFFFFF}")},2000)}else{sky.animate.glow(marketTemplate,"#FFFFFF")}}}}if(originalAnchorNode){anchorNode=originalAnchorNode;if(isMarketAnchor){var anchorNodeName=anchorNode.nodeName;if(sky.hasNodeName(anchorNodeName,"table")){marketTemplate=anchorNode}else{if(sky.hasNodeName(anchorNodeName,"th")||sky.hasNodeName(anchorNodeName,"thead")){marketTemplate=sky.getAncestorByNodeName(anchorNode,"table")}else{marketTemplate=sky.nextSibling(anchorNode);if(!sky.hasClass(marketTemplate,"mkt")){marketTemplate=sky.nextSibling(marketTemplate)}}}anchorNode=marketTemplate}if(!anchorNode){return}yPosOfJumpToPoint=sky.getProperty.y(anchorNode);newYPosOfViewportBottom=(yPosOfJumpToPoint+scrollingContainerViewportHeight);differenceBetweenNewYPosOfViewportBottomAndScrollingContainerEntireHeight=newYPosOfViewportBottom-scrollingContainerEntireHeight;if(differenceBetweenNewYPosOfViewportBottomAndScrollingContainerEntireHeight>0){yPosOfJumpToPoint=scrollingContainerEntireHeight-differenceBetweenNewYPosOfViewportBottomAndScrollingContainerEntireHeight}sky.animate.scroll(scrollingContainer,0,(yPosOfJumpToPoint-70),500,1,0,isMarketAnchor?scrollToAndGlowCallBack:null);if(e){sky.grabEvent.stopDefault(e)}}}function toggleMarketGroup(e,el){var grp_id=el.parentNode.parentNode.id.split("-")[0];if(!sky.toggleClass(el.parentNode.parentNode,"navgrp1_susp")){sky.id(grp_id+"-group").style.display="block"}else{sky.id(grp_id+"-group").style.display="none"}return true}function menuEod(e,el){if(sky.toggleClass(el.parentNode,"open")){ob.nav.loadList(el.className,sky.nextSibling(el))}}function initTogglingMarketDisplayOnSingleEventView(){var mktCaptions=sky.elems("h4",sky.id("cntnt")),mktCaptionsLength=mktCaptions.length,curr,currHTML,toggLink=document.createElement("a"),toggLinkClone,toggContainer=document.createElement("div"),toggText=document.createElement("div"),toggContainerClone,toggTextClone,table;function onLinkTogg(id){sky.toggleClass(sky.getAncestorByNodeName(this,"div"),"mktshut");return false}toggLink.href="#";sky.addClass(toggLink,"togg");sky.addClass(toggContainer,"toggmkt");var toggText=document.createElement("div");sky.addClass(toggText,"togtxt");for(var i=0;i<mktCaptionsLength;i++){curr=mktCaptions[i];if(!(curr.id&&curr.id.indexOf("dd_mkt")!==-1)){continue}curr.onclick=onLinkTogg;toggContainerClone=toggContainer.cloneNode(true);curr.parentNode.insertBefore(toggContainerClone,curr);table=sky.nextSibling(curr);toggTextClone=toggText.cloneNode(true);toggContainerClone.appendChild(curr);toggContainerClone.appendChild(table);curr.appendChild(toggTextClone)}}function loadVSPlayer(streamer,streamURL,target){if(!target){var vsMainArea=sky.id("vsMainNav").parentNode.parentNode,i;for(i=0;i<vsMainArea.childNodes.length;i++){if(sky.hasClass(vsMainArea.childNodes[i],"c1")){var embeds={quality:"autohigh",wmode:"opaque",scale:"noorder",allowscriptaccess:"always",allowfullscreen:true};var fv={activeColor:"0x0066ff",nonActiveColor:"0xffffff",stretching:"uniform",controlbar:"over",autostart:true,provider:"rtmp",file:streamURL,streamer:streamer};if(is_ie&&!userBrowser.is("ie8up")){var link=document.createElement("a");link.href="/cms/virtual_sports_player.shtm?stream="+virtual_stream;link.innerHTML='<img src="/img/virtualsport/launch/'+virtual_stream+'.jpg" />';link.rel="external";link.id="launchVSPlayer";vsMainArea.childNodes[i].innerHTML="";vsMainArea.childNodes[i].appendChild(link);sky.wndow.addLinks([sky.id("launchVSPlayer")]);sky.wndow.add({u:/virtual_sports_player/i,p:{w:560,h:315,s:false,t:false,r:false,l:false,st:false,m:false},n:"vsplayer"})}else{if(window.location.href.indexOf("oldPlayer")==-1){sky.flash.embed(vsMainArea.childNodes[i],"560","315","/img/swf/livestream.swf",embeds,fv,10,"vsPlayer")}else{sky.flash.embed(vsMainArea.childNodes[i],"560","315","/img/swf/jwplayer.swf",embeds,fv,10,"vsPlayer")}}return}}}}(function(){var url=document.location.href,jsContVis=sky.id("jscont").style.visibility;if(url.search("#")!==-1){sky.id("jscont").style.visibility="hidden";var arseAboutOnLoad=setInterval(function(){window.scrollTo(0,0)},250);sky.grabEvent.addBehaviour(function(e){setTimeout(function(){clearInterval(arseAboutOnLoad);sky.id("jscont").style.visibility="visible"},3000);if(url.search(/#(cntn|dd)/i)!==-1){scrollToAndGlow(e,{href:url})}},"load",true,true,true,"loadGlow")}})();function pixelTracking(){if(document.location.href.indexOf("new_reg=1")!=-1){ob.ajax({global:false,type:"GET",url:"/cms/regend-bet.shtm",params:"",dataType:"html",asynchronous:"true",success:function(data){sky.id("jscont").innerHTML=sky.id("jscont").innerHTML+data},error:function(){}});var mm_script=document.createElement("script");mm_script.type="text/javascript";mm_script.src="//maxymiser.hs.llnwd.net/o36/skybet/js/mmcore_async.js";document.getElementById("jscont").appendChild(mm_script);if(!sky.id("bal-value")){return}var bal=sky.id("bal-value").innerHTML;if(bal&&(bal.charAt(bal.length-5)!="0"||!isNaN(parseInt(bal.charAt(bal.length-6))))){ob.ajax({global:false,type:"GET",url:"/cms/depend-bet.shtm",params:"",dataType:"html",asynchronous:"true",success:function(data){sky.id("jscont").innerHTML=sky.id("jscont").innerHTML+data},error:function(){}})}}}function CipManager(obj){_this=this;this.num=0;this.t=0;this.currentTime=new Date(ob.clock.date);var p=sky.id("cipHolder").childNodes.length;this.cipAds=[];this.cipAdsTemp=[];for(var i=0;i<p;i++){if(sky.id("cipHolder").childNodes[i].className=="cipAd"){this.cipAdsTemp.push(sky.id("cipHolder").childNodes[i])}}var buttstr="",buttonHolder=sky.id("cipCarousel"),i,cipob;for(i=0;i<this.cipAdsTemp.length;i++){cipob=new Object();cipob.mc=this.cipAdsTemp[i];for(var k=0;k<cipob.mc.childNodes.length;k++){if(cipob.mc.childNodes[k].nodeType=="8"){var b=cipob.mc.childNodes[k].nodeValue.split("::");if(b.length>1){cipob.buttonName=b[0];cipob.buttonMC="<li>"+cipob.buttonName+"</li>";cipob.startDate=b[1];cipob.endDate=b[2];cipob.image=b[4];cipob.viewed=false}}else{if(this.cipAdsTemp[i].childNodes[k].className=="cipBlockArea"){var t=this.cipAdsTemp[i].childNodes[k];var tag=t.getElementsByTagName("h2");tag[0].innerHTML=tag[0].innerHTML.toUpperCase();if(t.innerHTML.indexOf("%%")!=-1){var p=t.innerHTML.split("%%");t.innerHTML=p[0]+"<img style='vertical-align:middle;margin-top:-2px' src='/img/cms/tvicons_"+p[1]+".png'/>"+p[2]}cipob.blockArea=t}}}if(cipob.side=="R"){sky.addClass(cipob.blockArea,"blockRight")}else{if(cipob.side=="N"){sky.addClass(cipob.blockArea,"blockNoDisplay")}}var t=checkBetween(createDate(cipob.startDate),createDate(cipob.endDate));if(t&&this.cipAds.length<3){buttstr+=cipob.buttonMC;this.cipAds.push(cipob)}}buttonHolder.innerHTML=buttstr;this.butts=sky.id("cipCarousel").getElementsByTagName("li");for(var k=0;k<this.butts.length;k++){this.butts[k].name="butt"+k;if(this.butts[k].addEventListener){this.butts[k].addEventListener("click",clickPressed,false)}else{this.butts[k].attachEvent("onclick",clickPressed,false)}}sky.id("cipCarousel").style.width=this.butts.length*186+"px";addImage();sky.addClass(this.butts[0],"sel");sky.addClass(this.cipAds[0].mc,"show");setTimerGoing();function checkBetween(st,end){var t=true;if(_this.currentTime<st){t=false}if(_this.currentTime>end){t=false}return t}function createDate(date){var yr=date.substring(0,4);var mnth=Number(date.substring(5,7))-1;var day=date.substring(8,10);var hr=date.substring(11,13);var min=date.substring(14,16);var _date=new Date(yr,mnth,day,hr,min);return _date}function clickPressed(k){if(!k.target){k.target=k.srcElement}_this.num=String(k.target.name).split("butt")[1];nextCIP()}function nextCIP(){addImage();for(var i=0;i<_this.butts.length;i++){sky.removeClass(_this.butts[i],"sel");sky.removeClass(_this.cipAds[i].mc,"show")}sky.addClass(_this.butts[_this.num],"sel");sky.addClass(_this.cipAds[_this.num].mc,"show");setTimerGoing()}function setTimerGoing(){clearTimeout(_this.t);_this.t=setTimeout(function(){move()},15000)}function move(){if(_this.num<_this.cipAds.length-1){_this.num++}else{_this.num=0}nextCIP()}function addImage(){if(!_this.cipAds[_this.num].viewed){_this.cipAds[_this.num].viewed=true;var d=_this.cipAds[_this.num].mc.childNodes.length;for(var i=0;i<d;i++){if(_this.cipAds[_this.num].mc.childNodes[i].className=="imageHolder"){_this.cipAds[_this.num].mc.childNodes[i].innerHTML="<img src='"+_this.cipAds[_this.num].image+"'/>";break}}}}}sky.grabEvent.addBehaviour(function(){var scrollingWrapperW1=sky.id("w1");scrollingWrapperW1.focus();if(userBrowser.is("opera")){window.onmousewheel=function(){if((scrollingWrapperW1.scrollTop+scrollingWrapperW1.offsetHeight)==scrollingWrapperW1.scrollHeight){scrollingWrapperW1.scrollTop--;return false}}}var viewStackOnHomepageHighlightsPanel=sky.id("ixhighs-vs");if(viewStackOnHomepageHighlightsPanel!=null){var homePageHighlightsPanel=new sky.ui.viewStack(viewStackOnHomepageHighlightsPanel),homePageHighlightsPanelButtonBar=new sky.ui.buttonBar(sky.id("ixhighs-btns"),homePageHighlightsPanel)}var pageEndHelpSearchFormButton=sky.id("KBsearchBn");if(pageEndHelpSearchFormButton!=null){sky.grabEvent.addBehaviour(function(el,evType,e){sky.newWindow("about:blank","status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,width=1005,height=735","KBsearchWin")},"click",function(el){return el===sky.id("KBsearchBn")},false,false,"pageEndSrch")}var liveBettingEventsElsewhereTickerContainer=sky.id("birevs-scrl");if(liveBettingEventsElsewhereTickerContainer!=null&&liveBettingEventsElsewhereTickerContainer.innerHTML.replace(/<[^>]+>/g,"").length>115){var liveBettingEventsElsewhereTicker=new SkyTicker("birevs-scrl")}var racingOverviewTextFromSportingLife=sky.id("raceovrw");if(racingOverviewTextFromSportingLife!=null){cropText(racingOverviewTextFromSportingLife,350,"more");sky.css.insertRule("#raceovrw{height:auto;overflow:visible}")}var leftNav=sky.id("betnav");if(document.location.href.search(/GoEvEv|GoLastEvent/g)!==-1&&leftNav&&typeof virtual_stream!=="string"){initTogglingMarketDisplayOnSingleEventView()}sky.grabEvent.addBehaviour(function(el,evType,e){revealHiddenBodies(e,el)},"click",function(el){return sky.hasClass(el,"expmkt")},true,true,"expandMkts");var elements_a=sky.elems("a"),elements_a_length=elements_a.length,curr,currClassName;for(var i=elements_a_length;i--;){curr=elements_a[i];if(sky.hasClass(curr,"exptbl-togg")){sky.addEvent(curr,"click",(function(el){return function(e){toggleBIRTable(e,el)}})(curr))}if(sky.hasClass(curr,"navextr")){sky.addEvent(curr,"click",(function(el){return function(e){extrasMenu(e,el)}})(curr))}if(curr.href.search(/#(dd|cntn)/i)!==-1){sky.addEvent(curr,"click",(function(el){return function(e){scrollToAndGlow(e,el)}})(curr))}if(sky.hasClass(curr,"grp1togg")){sky.addEvent(curr,"click",(function(el){return function(e){toggleMarketGroup(e,el)}})(curr))}if(sky.hasClass(curr,"eod")){sky.addEvent(curr,"click",(function(el){return function(e){menuEod(e,el)}})(curr))}}var boolabusSwfDivContainer=sky.id("skybetFootball");if(boolabusSwfDivContainer){sky.load.js(jsRoot+"boolabus.js","boolabusjs")}var streamer="rtmp://skybetlivefs.fplive.net/skybetlive-live/";if(typeof virtual_stream==="string"){switch(virtual_stream){case"horses":loadVSPlayer(streamer,"skybet-vs-horses1");break;case"dogs":loadVSPlayer(streamer,"skybet-vs-dogs1");break;case"football":loadVSPlayer(streamer,"skybet-vs-football1");break;case"speedway":loadVSPlayer(streamer,"skybet-vs-speedway1");break;case"motor":loadVSPlayer(streamer,"skybet-vs-motor1");break;case"sports":loadVSPlayer(streamer,"skybet-vs-horses1");break}}pixelTracking();if(typeof Util.url.vf_js_url!="undefined"){sky.load.js(Util.url.vf_js_url,"vfJSapi")}if(sky.id("classPageCIP")){var cipm=new CipManager(sky.id("classPageCIP"))}},"DOMLoaded",true,false,false,"SkyBetDOMReady");return{revealHiddenBodies:revealHiddenBodies,cropText:cropText,extrasMenu:extrasMenu,swfJSON:swfJSON,swfTealeaf:swfTealeaf,tealeafUIEvent:createTealeafUIEvent,dividendBtns:dividendBtns,loadVSPlayer:loadVSPlayer,openShutMkts:initTogglingMarketDisplayOnSingleEventView}}sky.bet=new SkyBetJSLibrary();function SkyBingoJSLibrary(){function a(c,e){openSizedGameWindow(unescape(c),get_cookie(Util.cookie.cust_login_cookie_name),"","",765,560,e)}function b(c,e){if(!e){e=""}if(!c){c="Bingo"}window.openFullscreenGameWindow(unescape(c),get_cookie(Util.cookie.cust_login_cookie_name),"",unescape(e))}return{launch:b,launchminigame:a}}sky.bingo=new SkyBingoJSLibrary();function MyAccountJSLibrary(){proactive={localProp:[],jsLoaded:false,addProp:function(a){this.localProp.push(a);talCustProp=this.localProp.join("#:Prop!")},removeProp:function(b){var a;for(a=this.localProp.length-1;a>=0;a--){if(this.localProp[a]==b){this.localProp.splice(a,1)}}if(b.indexOf("=")==-1){for(a=this.localProp.length-1;a>=0;a--){if(this.localProp[a].split("=")[0]==b){this.localProp.splice(a,1)}}}talCustProp=this.localProp.join("#:Prop!")},matchString:function(a,b){return(a.toLowerCase().indexOf(b.toLowerCase())!=-1)},setupProps:function(){var c=document.domain,a=document.title,b=document.location.href;if(sky.id("loginarea")){if(this.matchString(sky.id("loginarea").innerHTML,"User ID or PIN you entered is incorrect")){this.addProp("loginError=incorrectUserIDorPIN")}if(this.matchString(sky.id("loginarea").innerHTML,"Your Account is suspended")){this.addProp("loginError=accountSuspended")}if(this.matchString(sky.id("loginarea").innerHTML,"Your Account is closed")){this.addProp("loginError=accountClosed")}if(this.matchString(sky.id("loginarea").innerHTML,"Account has been locked")){this.addProp("loginError=accountLocked")}}},setupDomain:function(){var a=document.domain;if(this.matchString(a,"skybet")){this.addProp("website=skybet")}else{if(this.matchString(a,"skypoker")){this.addProp("website=skypoker")}else{if(this.matchString(a,"skyvegas")){this.addProp("website=skyvegas")}else{if(this.matchString(a,"skybingo")){this.addProp("website=skybingo")}}}}},load:function(){this.setupProps();if(this.localProp.length>0&&!this.jsLoaded){this.setupDomain();var a=document.createElement("script");a.type="text/javascript";a.src="//proactive.skybet.com/netagent/proactive/proactive.aspx";sky.id("jscont").appendChild(a);this.jsLoaded=true}}};helptweets={display:function(){var b=document.createElement("script");b.type="text/javascript";b.src=unescape("//twitter.com/statuses/user_timeline/SkyBetHelp.json?callback=twitterCallback2&count=1");var a=function(){};b.onreadystatechange=a;sky.id("tweet").appendChild(b)},load:function(){var b=document.createElement("script");b.type="text/javascript";b.src=unescape("//twitter.com/javascripts/blogger.js");var a=function(){if(this.readyState=="complete"||this.readyState=="loaded"){sky.accounts.helptweets.display()}};b.onreadystatechange=a;b.onload=this.display;sky.id("tweet").appendChild(b)}};return{proactive:proactive,helptweets:helptweets}}sky.accounts=new MyAccountJSLibrary();sky.grabEvent.addBehaviour(function(){sky.accounts.proactive.load();if(sky.id("tweet")){sky.accounts.helptweets.load()}},"DOMLoaded",true,false,false,"SkyLoadTweets");function setHelpSearchAction(a){if(a.action.indexOf("?")>-1){a.action="http://help.skybet.com/searchresultpage.aspx"}a.action+="?stext="+a.stext.value}
var redEye;(function(){function a(f,d){var e=typeof login==="object"&&login.cookie?login.cookie.split("|")[0]:"GUEST",c=encodeURI(["https://reporting.skybet.com/cgi-bin/rr.cgi/images/blank.gif?nourl=",[hbxVars.mlc,hbxVars.pn].join("/"),"&bet-",d,"=yes&bet-",d,"-sport=unknown","&bet-",d,"-competition=",f.getDesc("%T"),"&bet-",d,"-event=",f.getDesc("%E"),"&bet-",d,"-market=",f.getDesc("%M"),"&bet-",d,"-selection=",f.getDesc("%S"),"&custrefid=",e].join("")),b=new Image();b.src=c}redEye={add:function(b){a(b,"added")},place:function(b){a(b,"placed")},error:function(c){c=c.replace(/<[^>]+>/gi," ").replace(/\s+/g," ");var e=typeof login==="object"&&login.cookie?login.cookie.split("|")[0]:"GUEST",d=encodeURI(["https://reporting.skybet.com/cgi-bin/rr.cgi/images/blank.gif?nourl=",[hbxVars.mlc,hbxVars.pn].join("/"),"&bet-error=yes&bet-error-code=",c,"&custrefid=",e].join("")),b=new Image();b.src=d}}})();function BetSlipView(ck,ar){var L='<a href="#" class="sel_ico sel_remove" id="sel_##ID##-remove"><span>Remove ##DESC##</span></a> <span class="sel_ico sel_detail" id="sel_##ID##-info"></span> <span class="min_main" id="min_main-##ID##">##DESC##</span> <span class="min_odds" id="min_odds-##ID##">##PRICE##</span>',aL='<a href="#" class="sel_ico sel_remove" id="sel_##ID##-remove"><span>Remove ##MARKET##</span></a> <span class="sel_ico sel_detail" id="sel_##ID##-info"></span> <span class="min_main" id="min_main-##ID##">##MARKET##</span> <span class="min_odds" id="min_odds-##ID##">##PRICE##</span>',bb='<table class="selslip"><tr><td class="inmulti"><input name="sel_##ID##-inmulti" id="sel_##ID##-inmulti" type="checkbox" value="1" ##ISINMULTI## class="sel_toggmulti" /></td><td class="a"><a href="#" class="sel_ico sel_remove" id="sel_##ID##-remove"><span>Remove ##DESC##</span></a> <span class="sel_ico sel_detail" id="sel_##ID##-info"></span></td><td class="b">##RUNNERIMG##<strong class="sel_main" id="sel_##ID##-desc">##DESC##</strong> <span class="sel_sub">##MARKET##</span></td><td class="c num" id="sel_##ID##-oddscol"><span id="sel_##ID##-prevodds" class="prevodds"></span><span class="odds" id="sel_##ID##-odds">##PRICE##</span></td><td class="d num"><span class="b" id="sel_##ID##-lines"></span> <span class="perktxt" id="sel_##ID##-perk"></span></td><td class="e num"><label for="sel_##ID##-stake">##CCY_CODE##</label> <input name="sel_##ID##-stake" id="sel_##ID##-stake" type="text" class="val_float sel_stake" size="9" maxlength="12" /></td><td class="f" id="sel_##ID##-ewcol"><label><input name="sel_##ID##-is_ew" id="sel_##ID##-is_ew" type="checkbox" value="1" class="sel_isew checkbox" /> <acronym title="Each Way">EW</acronym></label></td><td class="g num" id="sel_##ID##-returns">&nbsp;</td></tr></table>',bS='<div class="sel"><table class="selmulti"><tr><td class="a"><span class="sel_ico sel_detail" id="sel_##ID##-info"></span></td><td class="b"><strong id="sel_##ID##-desc">##DESC##</strong></td><td class="c num" id="sel_##ID##-odds">##PRICE##</td><td class="d num"><span class="b" id="sel_##ID##-lines"></span> <span class="perktxt" id="sel_##ID##-perk"></span></td><td class="e num"><label for="sel_##ID##-stake">##CCY_CODE##</label> <input name="sel_##ID##-stake" id="sel_##ID##-stake" type="text" class="val_float sel_stake" size="9" maxlength="12" /></td><td class="f" id="sel_##ID##-ewcol"><label><input name="sel_##ID##-is_ew" id="sel_##ID##-is_ew" type="checkbox" value="1" class="sel_isew checkbox" /> <acronym title="Each Way">EW</acronym></label></td><td class="g num" id="sel_##ID##-returns">&nbsp;</td></tr></table></div>',ag='<table class="selslip"><tr><td class="inmulti"><input name="sel_##ID##-inmulti" id="sel_##ID##-inmulti" type="checkbox" value="1" ##ISINMULTI## class="sel_toggmulti" /></td><td class="a"><a href="#" class="sel_ico sel_remove" id="sel_##ID##-remove"><span>Remove ##DESC##</span></a> <span class="sel_ico sel_detail" id="sel_##ID##-info"></span></td><td class="b">##RUNNERIMG##<strong class="sel_main"><span id="dividend_name_##ID##">##DESC##</span></strong> <span class="sel_sub">##SUBSECTION##</span></td><td class="c num" id="sel_##ID##-oddscol"><span id="sel_##ID##-prevodds" class="prevodds"></span><span class="odds" id="sel_##ID##-odds">##PRICE##</span></td><td class="d num"><span class="b" id="sel_##ID##-lines">##LINES##</span> <span class="perktxt" id="sel_##ID##-perk"></span></td><td class="e num"><label for="sel_##ID##-stake">##CCY_CODE##</label> <input name="sel_##ID##-stake" id="sel_##ID##-stake" type="text" class="val_float sel_stake" size="9" maxlength="12" /></td><td class="f" id="sel_##ID##-ewcol"><label><input name="sel_##ID##-is_ew" id="sel_##ID##-is_ew" type="checkbox" value="1" class="sel_isew checkbox" /> <acronym title="Each Way">EW</acronym></label></td><td class="g num" id="sel_##ID##-returns">&nbsp;</td></tr></table>',aN='<img src="##IMGURL##" class="sel_silk" alt="" />',n='<select id="sel_##ID##-priceopts" class="sel_priceopts">##PRICEOPTIONS##</select>',bQ='<option id="sel_##ID##-legopt_##LEGTYPE####MINIMISED##" value="##LEGTYPE##"##ISSELECTED##>##PRICE##</option>',bL='<a href="#" id="dividend_toggle_##ID##" class="sel_legsort">Change to ##NEXTLEG##</a> |',ak="##MARKET## - ##EVENT## ",bA="##MARKET## - ##TYPE## - ##EVENT## ",aO="##TYPE## - ##EVENT## <a href=\"#\" onclick=\"alert(BetSlip.getSelectionById('##ID##').getDesc('%S').split(/amp;|;/).join(''));return false;\">Show selections</a>",W="##TYPE##: ##TOGGLE## <a href=\"#\" onclick=\"alert(BetSlip.getSelectionById('##ID##').getDesc('%S').split(/amp;|;/).join(''));return false;\">Show selections</a>",a5="##EVENT##: ##TOGGLE## <a href=\"#\" onclick=\"alert(BetSlip.getSelectionById('##ID##').getDesc('%S').split(/amp;|;/).join(''));return false;\">Show selections</a>",cI='<div class="sel_msgs" id="sel_##ID##-msgcont"><div id="sel_##ID##-msglist"></div><div class="arw"></div></div>',aD='<div class="error"><h2>##MESSAGE##</h2></div>',ay='<div class="nmaxb"><h2>Your stake is over the ##CCY_CODE####MAXSTAKE## maximum for this selection, if you continue;</h2><table class="sel_nmaxb"><tr><td class="a"><div class="p p1"><span>Part 1</span></div> Will be placed as normal, as it is within the maximum stake.</td><td class="b num" id="sel_##ID##-nmaxb1-stake">##CCY_CODE####PART1STAKE##</td><td class="c num" id="sel_##ID##-nmaxb1-returns">##CCY_CODE####PART1RETURN##</td></tr><tr><td class="a"><div class="p p2"><span>Part 2</span></div> Will be approved or declined within 1 minute of placing. <a href="#" rel="external" class="help">What\'s this?</a></td><td class="b num" id="sel_##ID##-nmaxb2-stake">##CCY_CODE####PART2STAKE##</td><td class="c num" id="sel_##ID##-nmaxb2-returns">##CCY_CODE####PART2RETURN##</td></tr></table></div>',am='<div class="perk"><div class="perk_msg">Your ##AMOUNT## Free Bet is ready to use <span class="perksub">until ##EXPIRES##</span> <span class="conf0">[ <a href="#" class="bindperk" id="perk_##PERKID##-bind">Use Free Bet</a> ]</span></div> <div class="perk_sel">Your ##AMOUNT## Free Bet will be used <span class="perksub">on</span> <span id="perk_##PERKID##-sel" class="perksub"></span> <span class="conf0">[ <a href="#" class="unbindperk" id="perk_##PERKID##-unbind">Cancel</a> ]</span></div></div>',aY='<form action="#" method="get" id="pickPerk"><div class="dialog perkdialog"><h2 class="msg">Use ##AMOUNT## Free Bet</h2><ol class="radiolist" id="perk_attach-scrl">##SELECTIONS##<li class="null"><label><a href="#" class="sel"><input type="radio" name="perkopts" value="none" checked="checked" /> <strong class="sel_main">Save for later</strong> <span class="sel_sub">Available until ##EXPIRES##</span></a></label></li></ol><div><a href="#" class="btndone btn_bindperk" id="perk_##PERKID##-bindbtn"><span>I\'m Done</span></a></div></div></form>',a4='<li><label><a href="#" class="sel"><input type="radio" name="perkopts" value="perk-##ID##-assign" /> ##RUNNERIMG## <strong class="sel_main">##DESC##</strong> <span class="sel_sub">##MARKET##</span></a></label></li>',G='<div class="perk"><div class="perk_msg">Bet ##AMOUNT## or more on ##SELECTIONS## to <a href="##URL##" rel="external nofollow">watch ##EVENT##</a> live online</div><div class="perk_sel">You <strong>will qualify</strong> to <a href="##URL##" rel="external nofollow">watch ##EVENT##</a> live online, a link to watch will be on your Bet Receipt</div><div class="perk_got">You <strong>have qualified</strong> to <a href="##URL##" rel="external nofollow">watch ##EVENT##</a> live online</div></div>',D='<div id="secsuite" class="detpanel"><h2 class="hs2">Added Payment Protection</h2><div class="c1"><iframe src="##3DS_URL##" id="secsuiteframe" scrolling="auto"></iframe></div><div class="c2"><strong>Details you enter here will be sent to your bank to confirm your identity</strong><h3 class="hs6">What is this?</h3><p>To deter card fraud, your bank has given you an extra layer of security in the form of a Login Name and Password to authorise payments.</p><h3 class="hs6">What do I do?</h3><p>You\'ll need to enroll if you haven\'t already. Otherwise enter your Password (Visa) or SecureCode (MasterCard) to authorise the payment.</p><h3 class="hs6">Keeping you protected</h3><p>Find us in <a href="http://www.visaeurope.com/personal/onlineshopping/verifiedbyvisa/vbvretailers/miscellaneous.jsp" rel="external nofollow">Visa\'s list of retailers offering Verified By Visa</a> and <a href="#" rel="external nofollow">Mastercard\'s list of participating Merchants and retailers</a>.</p><h3 class="hs6">Learn More</h3><div class="secimgs"><a href="http://www.mastercard.com/securecode/" rel="external"><img src="/img/site/3d_mastercard.gif" alt="Mastercard" /></a> <a href="http://www.visaeurope.com/merchant/handlingvisapayments/cardnotpresent/verifiedbyvisa.jsp" rel="external"><img src="/img/site/3d_visa.gif" alt="Visa" /></a> <a href="https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=www.skybet.com&lang=en" rel="external"><img src="/img/site/3d_verisign.gif" alt="Verisign" /></a></div></div></div>',bX='<table class="sel_conf"><tr><td class="a"><span class="sel_ico sel_detail" id="conf_##ID##-info"></span></td><td class="b">##RUNNERIMG##<strong class="sel_main">##DESC##</strong> <span class="sel_sub">##MARKET##</span></td><td class="c num">##PRICE##</td><td class="d num"><span class="perktxt">##PERK##</span> <span>##STAKE##</span> <span class="sel_ew"##ISEACHWAY##>##EACHWAY##</span></td><td class="e num">##RETURNS##</td></tr></table>',bf='<div class="sel hdrs"><table class="selslip"><tr><td class="a">Deposit</td><td class="b">Amount</td><td class="c num">&nbsp;</td></tr></table></div><table class="sel_depos"><tr><td class="a"><strong class="sel_main">##NAME##</strong> <span class="sel_sub">##NUMBER##</span></td><td class="b">##AMOUNT##</td><td class="c">&nbsp;</td></tr></table>',bJ='<a rel="external nofollow" href="##URL##" class="ico ico-pc" title="##CHANNELS##"><span>Watch Online</span></a>',ai='<div class="ico ico-tv" title="##CHANNELS##"><span>Televised</span></div>',bq='<a rel="external nofollow" title="Listen live" href="##URL##" class="ico ico-audio"><span>Listen live</span></a>',bU='<div class="ico ico-inplay" title="Live Betting will be available"><span>Bet In-Play</span></div>',cs='<a rel="external nofollow" title="View stats" href="##URL##" class="ico ico-stats"><span>View stats</span></a>',cg='<div class="ico ico-no-tv"><span>Not Televised</span></div>',cA='<div class="ico ico-no-audio"><span>No Live Commentary</span></div>',bs='<div class="ico ico-no-inplay"><span>Live Betting unavailable</span></div>',af='<div class="ico ico-no-stats"><span>No results or stats available</span></div>',bE='<table class="sel_receipt"><tbody><tr><td class="a"><span class="sel_ico sel_detail" id="rec_##ID##-info"></span></td><td class="b"><strong class="sel_main">##MAIN##</strong> <span class="sel_sub">##SUB##</span></td><td class="c num">##PRICE##</td><td class="d num">##STAKE## <span class="sel_ew"##ISEACHWAY##>##EACHWAY##</span></td><td class="e num">##RETURNS##</td><td class="f"><a rel="external" href="##RECEIPT_URL##" id="rec_##ID##-rcpt">##RECEIPT##</a></td><td class="g" id="rec-##ID##-icons"><div class="ico ico-tv"><span>Not Televised</span></div><div class="ico ico-no-audio"><span>No Live Commentary</span></div><div class="ico ico-no-inplay"><span>Live Betting unavailable</span></div><div class="ico ico-no-stats"><span>No results or stats available</span></div></td></tr></tbody></table>',a8='<div class="sel"><table class="err_receipt"><tbody><tr><td class="a"><strong class="sel_main">##DESC##</strong></td><td class="b">##REASON##</td><td class="c"><a href="#" class="bs_goback">##ACTION##</a></td></tr></tbody></table></div>',an='<div class="clk"><div id="birTimeDisplay"></div><div><h3>Please Wait...</h3><p>All live bets are subject to a short delay.</p></div></div>',a9="function",bd="number",y="hide",aW="px",aX="style",aj="div",bH="display",aA="block",bk="none",cF="visibility",d="visible",a2="hidden",bN="top",cd="right",b2="bottom",ce="left",cG="width",cn="height",u="overflow",aB="title",au="external",bc="rel",w="click",bV="keyup",aQ="innerHTML",ad="parentNode",a6="appendChild",ca="removeChild",T="length",aK="indexOf",aS="split",bM="join",cq="getId",a3=screen.height>=768?"220px":"125px",aP=screen.height>=768?3:2,ba=1,cb,cz=false,cD=sky.id,bh=sky.hasClass,be=sky.addClass,M=sky.removeClass,aI=sky.hasNodeName,bo=sky.css.removeInline,cE=sky.css.addInline,aG=sky.css.replaceInline,at=sky.bet.tealeafUIEvent,z=function(cJ){return document.createElement(cJ)},b4=cD("dock"),a1=cD("betslip"),i=cD("bsSubmit"),cC=cD("bsperks"),Z=cD("sels_singles"),J=cD("mini_singles"),m=cD("sels_multiples"),v=cD("sels_autoaccumulators"),ae=cD("toggmultis"),a7=cD("gomulti"),br=cD("bsTotStake"),K=cD("bsTotFreeStake"),cr=cD("bsAfterBalanceTxt"),b6=cD("bsAfterBalanceVal"),bG=cD("bsAfterBalance"),R=cD("bstopup"),B=cD("dotopup"),b9=cD("maxheight1"),b8=cD("maxheight2"),b3=cD("w1"),Y=cD("dockbg"),j=cD("bslogin"),x=sky.elems("body")[0],aC=[],aH=[],c,aU=userBrowser.is("ie6"),aq,b0=true,cx=/_id\-([^\-]+)\-/;var bg,E;function bP(){if(aU){sky.id("w1").focus();aG(aq,"height:"+sky.getProperty.height(b4)+"px;bottom:"+bg.style.bottom);clearInterval(E);E=setTimeout(function(){sky.id("jscont").style.visibility="visible"},100)}}function cp(cK){var cJ="sel_"+cK;return{rootNode:cD(cJ),includeInMultipleControl:cD(cJ+"-inmulti"),desc:cD(cJ+"-desc"),oddsContainer:cD(cJ+"-oddscol"),previousOddsNode:cD(cJ+"-prevodds"),oddsNode:cD(cJ+"-odds"),numLinesNode:cD(cJ+"-lines"),perkSpendNode:cD(cJ+"-perk"),stakeInput:cD(cJ+"-stake"),EWContainer:cD(cJ+"-ewcol"),takeEWControl:cD(cJ+"-is_ew"),returnsNode:cD(cJ+"-returns"),removeButton:cD(cJ+"-remove"),priceOptions:cD(cJ+"-priceopts"),infoIcon:cD(cJ+"-info"),dividendToggle:cD("dividend_toggle_"+cK),listViewNode:cD(cJ+"-min")}}function O(){var cN=[];this.getById=function cM(cO){var cP=cN["sel_"+cO];return typeof cP!=="undefined"?cP:null};this.add=function cL(cP){var cO="sel_"+cP;cN[cO]=new cp(cP)};this.remove=function cJ(cP){var cO="sel_"+cP;cN[cO]=null;delete cN[cO];cN.splice(cO,1)};this.empty=function cK(){Z[aQ]="";J[aQ]="";m[aQ]="";v[aQ]="";cN=[]}}c=new O();function ac(cJ){return typeof cJ===a9?cJ():false}function al(){var cJ=ch();return !userBrowser.is("ie6")&&(cJ||(!cJ))}function ci(){var cK=(BetSlip.getNumberOfSingles()<=aP),cL=a3,cJ="toobig";if(cz||ch()){return}if(bI()||!cK){be(b9,cJ);be(b8,cJ);cE(b9,cn,cL);cE(b8,cn,cL);if(aU){b9.style.overflow="auto";cE(aq,cn,sky.getProperty.height(a1))}}else{if(cK){bo(b9,cn);bo(b8,cn);M(b9,cJ);M(b8,cJ);if(aU){b9.style.overflow="visible";cE(aq,cn,"0px")}}}bP()}function cw(cM){var cJ="com-skybet-dock",cL="bottom:0px",cK=300;if(aU){aq=z("div");aq[aQ]='<iframe src="'+jsRoot+'jsLoader.htm" id="dockIE" frameborder="0" height="0"></iframe>'}this.open=function(cP){function cN(){ac(cP);if(aU){bP()}}function cO(){cE(bg,"display","block");cE(bg,"bottom","0px");cN()}if(al()){cE(bg,"display","block");sky.animate.css(bg,"bottom",0,cK,2,0,cN)}else{cO()}};this.close=function(cP){var cO=500;function cN(cQ){cE(bg,"bottom",-cO+"px");ac(cQ);if(aU){bP()}}if(al()){sky.animate.css(bg,"bottom",-cO,cK,2,0,(function(cQ){return function(){cN(cQ)}})(cP))}else{cE(bg,"bottom",-cO+"px");if(aU){bP()}cN()}};bg=sky.id("holdDock");if(aU){cD("jscont")[a6](aq);aq=cD("dockIE");bP()}cM()}function ch(){return bh(a1,"isminim")}function b(cJ){return cJ?be(a1,"iswaiting"):M(a1,"iswaiting")}function b5(cJ){C(Customer.isLoggedIn());if(typeof cJ=="function"&&BetSlip.getNumberOfSelections()===1){M(a1,"isminim")}ac(cJ);ci();cb.open()}function bi(cJ){cb.close();c.empty();ac(cJ)}function bO(){if(bh(a1,"isreceipt")){BetSlip.restart();return}function cJ(){be(a1,"isminim");if(aU){bP()}c.empty();aZ(BetSlip.getSingles(),true,true);F();b5()}if(al()){cb.close(cJ)}else{cJ()}}function az(){M(a1,"isminim");if(aU){bP()}A();F()}function bI(){return bh(a1,"showmultis")}function bY(){if(!bI()){return}bt(BetSlip.getMultiples(),m,false)}function by(cJ){be(a1,"showmultis");bY();bj(true,cJ)}function U(cJ){M(a1,"showmultis");bj(false,cJ)}function bj(cK,cN){if(userBrowser.is("ie")){var cM=cK?aA:bk,cJ=sky.elems("tr",Z),cL=cJ[T];if(cL>0){do{cJ[cL-1].firstChild.style.display=cM}while(--cL)}}ci();if(cN===true){if(cK){sky.cookie.set("fullMultiplesViewOpen",cK)}else{sky.cookie.kill("fullMultiplesViewOpen")}}}function f(cJ,cK){if(typeof cJ!=="boolean"){cJ=!bh(a1,"showmultis")}return cJ?by(cK):U(cK)}function bn(cK,cN){if(!Customer.isLoggedIn()){return}var cS=cN[T],cL,cO,cV="",cR=false,cP=cD("bsattntxt"),cQ="isinvalid",cM="iswarning",cT,cU,cJ=[];if(cK==="valid"){M(a1,cQ);M(a1,cM)}else{if(cK==="warning"){M(a1,cQ);be(a1,cM)}else{if(cK==="invalid"){be(a1,cQ);M(a1,cM)}}}cP[aQ]="Some issues need your attention";if(cS===0){return}at("BetSlipUsage",["Message",'Bet Slip shows "Some issues need your attention"']);if(cS===1){cO=cN[0].desc;cT=cO.match(/<a.*>(.*)<\/a>/);cU=0;if(cT){cU=cT[0][T]-cT[1][T]}if(!cO.noredraw&&(cO[T]-cU)<35){cP[aQ]=(cO=cO.replace("Errors on betslip","Please review changes"));redEye.error(cO);return}else{cV='<li class="errmsg"><span>'+cO+"</span></li>";redEye.error(cO)}}else{do{cL=cN[cS-1].desc;cV+='<li class="errmsg"><span>'+cL+"</span></li>";cJ.push(cL);redEye.error(cL)}while(--cS)}if(cV[T]>0){sky.overlay.doAlert("Information on your Bet Slip","<ol>"+cV+'</ol><div class="gochat">Please check <a href="http://help.skybet.com/article.aspx?article=2742&amp;p=5" rel="external nofollow" onclick="registerTealeafUIEvent(\'BetSlipUsage\', [\'Message\', \'Assistance sought from error overlay\']);">Help &amp; Support</a> if you need any assistance.</div>',"bserr");at("BetSlipUsage",["Message","Bet Slip shows error overlay: "+cJ.join("|")])}BetSlip.goToEditBetsStep()}function a0(cM,cN,cK){var cJ=cD(cN),cL=cJ!==null;if(cL){return cJ}cJ=z(aj);cJ.id=cN;cJ[aQ]+=cI[aS]("##MESSAGES##")[bM]("")[aS]("##ID##")[bM](cM);cK[a6](cJ);return cJ}function ao(cK){var cJ=cD("sel_"+cK+"-msgs");cJ[aQ]="";cJ[ad][ca](cJ)}function bR(cJ,cK){return aD[aS]("##MESSAGE##")[bM]([cK.desc,cK.action].join(" "))}function bC(cL,cJ){var cN=cD("sel_"+cL[cq]()+"-msg-"+cJ),cM=cD("sel_"+cL[cq]()+"-msgs"),cK=cD("sel_"+cL[cq]()+"-msglist");if(cN===null){return}cN[ad][ca](cN);if(sky.children(cK)[T]===0){cM[ad][ca](cM);at("BetSlipUsage",["Message","Customer resolves all selection messages"])}TeaLeaf.Client.tlProcessNode(cN[ad])}function aT(cO,cS){if(ch()){return}var cQ=cO[cq](),cL=c.getById(cQ),cM="sel_"+cQ+"-msglist",cJ=cD(cM),cR=cJ!==null,cK,cP,cN;if(!cL){return}if(!cR){cJ=a0(cQ,"sel_"+cQ+"-msgs",cL.rootNode)}cN="sel_"+cQ+"-msg-"+cS.id;cK=cD(cN);if(cK===null){cP=z(aj);cP.id=cN;cP[aQ]=bR(cQ,cS);cD(cM)[a6](cP);at("BetSlipMessage",["Message",cS.desc]);redEye.error(cS.desc)}TeaLeaf.Client.tlProcessNode(cD(cM))}function aJ(cL,cK){var cJ=cD("betsteps");cL=cL?true:false;i.className="bsactn";if(cL){M(cJ,"skipconf");be(i,cj()?"bsactn4":"bsactn2")}else{be(cJ,"skipconf");be(i,cj()?"bsactn10":"bsactn9")}}function aa(cJ){aJ(cJ,Deposit.isSet());Customer.setPreference("confirmBets",cJ)}function F(){ba=1;be(b4,"bs_step1");M(b4,"bs_step2");M(b4,"bs_step3");M(a1,"isconf");M(a1,"isreceipt");if(!ch()){c.empty();aZ(BetSlip.getSingles(),true);av(BetSlip.getMultiples());bu(BetSlip.getAccumulators());A()}}function r(cM,c2){at("BetSlipUsage",["Message","Uses confirm step"]);ba=2;var cV,cS,cO,cW,cX,cY,c1,cJ,cT,cZ,c0,cP=0,cK=0,cL=0,cN=0,cR=0,cU=0,c3;be(b4,"bs_step2");M(b4,"bs_step1");M(b4,"bs_step3");cD("sels_conf")[aQ]="";for(cY in cM){if(cM.hasOwnProperty(cY)){cX=cM[cY];c1=cX.getOc();cJ=cX.getPerksTotalValue();cT="";cZ=cX.getDesc();c0=cX.getDesc("%M: %E");c3=cX.getId();if(!cX.isValid()){continue}if(cJ>0){cT=g(cJ)+" free +"}cV=z(aj);cV.id="conf_"+c3;be(cV,"sel");if(!cX.isSingle()){be(cV,"conf_mult")}cS=bX[aS]("##ID##")[bM](c3)[aS]("##DESC##")[bM](cZ)[aS]("##PRICE##")[bM](cX.getSelectedPrice())[aS]("##MARKET##")[bM](!cX.isDividend()?c0!==cZ?c0:"":cX.getDesc("%E: %S"))[aS]("##STAKE##")[bM](g(cX.getStake(),cX.getCCYCode()))[aS]("##RETURNS##")[bM](g(cX.getReturns(),cX.getCCYCode()))[aS]("##PERK##")[bM](cT);if(cX.getNumLines()>1){cS=cS[aS]("##ISEACHWAY##")[bM]("")[aS]("##EACHWAY##")[bM]("("+g(cX.getPerksValuePerLine()+cX.getStakePerLine(),cX.getCCYCode())+(cX.isEW()?" each way)":" per line)"));if(cX.isSingle()){cX.isEW()?cL++:cN++}else{cU++}}else{cS=cS[aS]("##ISEACHWAY##")[bM](' style="display:none"');cX.isSingle()?cP++:cR++}cS=cS[aS]("##RUNNERIMG##")[bM](V(c1));cV[aQ]=cS;cD("sels_conf")[a6](cV);var cQ=cD("conf_"+c3+"-info");sky.addEvent(cQ,"mouseover",(function(c4,c5){return function(c6){at("BetSlipUsage",["Message","Uses [i] icon on confirm step selection"]);cc(c6,c4,c5)}})(cQ,cX));sky.addEvent(cQ,"mouseout",h)}}if(c2&&c2.getAmount()>0){cO=z(aj);cO.id="conf_deposit";be(cO,"sel");cW=bf[aS]("##NAME##")[bM](c2.getCardNickname())[aS]("##NUMBER##")[bM](c2.getCardNumber())[aS]("##AMOUNT##")[bM](g(c2.getAmount()));cO[aQ]=cW;cD("sels_conf")[a6](cO);cK++}be(a1,"isconf");aJ(Customer.confirmsBets(),Deposit.isSet());ci();if(aU){bP()}}function t(cK){var cM=cK[T],cR,cJ,cP="",cL="",cQ="",cO="",cN=false;if(cM>0){do{cR=cK[cM-1];if(!cR.classIcon){continue}cJ=cR.classIcon;if(cJ==="audio"){cL=bq[aS]("##URL##")[bM](cR.url);continue}if(cJ==="inplay"){cQ=bU;cN=cR.isLive;continue}if(cJ==="stats"){cO=cs[aS]("##URL##")[bM](cR.url);continue}if(cJ==="tv"){cP=ai[aS]("##CHANNELS##")[bM](cR.tooltip);continue}if(cJ==="pc"){cP=bJ[aS]("##URL##")[bM](cR.url)[aS]("##CHANNELS##")[bM](cR.tooltip);continue}}while(--cM)}if(cP[T]===0){cP=cg}if(cL[T]===0){cL=cA}if(cQ[T]===0){cQ=bs}if(cO[T]===0){cO=af}if(cN){cP=cP[aS]('class="ico ico-')[bM]('class="ico ico-recbir-');cL=cL[aS]('class="ico ico-')[bM]('class="ico ico-recbir-');cQ=cQ[aS]('class="ico ico-')[bM]('class="ico ico-recbir-');cO=cO[aS]('class="ico ico-')[bM]('class="ico ico-recbir-')}return(cP+cL+cQ+cO)}function S(db){ba=3;var c5,c8,cV=cD("recTotStake"),cL=cD("recAfterBalanceVal"),cW=cD("recTotFreeStake"),c6=cD("rec_sels-singles"),c2=cD("rec_sels-multiples"),de=cD("rec_sels-deposits"),dl=cD("rec_ok"),cS=cD("rec_err"),dk=cD("rec_sels-failed"),cN,cJ,cT,dn,cU,c0,cK,c7,dm,dj,cR,c3,dg,c1,di,cY,cO,cQ=0,cX=0,da=0,c9=0,df=0,cM=0,c4=0;be(b4,"bs_step3");M(b4,"bs_step1");M(b4,"bs_step2");bo(dl,bH);c6[aQ]="";c2[aQ]="";dk[aQ]="";bo(cS,bH);bo(de,bH);cE(c2,bH,bk);if(db.success){at("BetSlipUsage",["Message","Bet Placed Successfully"]);if(sky.tracking){sky.tracking.actionTracking({events:"BetPlacedSuccessfully",account:SKY_TRACKING.account},"o","skybet",this)}else{setTimeout(function(){sky.tracking.actionTracking({events:"BetPlacedSuccessfully",account:SKY_TRACKING.account},"o","skybet",this)},2000)}cT=bE;dn=db.success.singles;cU=db.success.multiples;c0=db.success.deposit;cK=db.success.total_tok;cW[aQ]=cK>0?'<span class="perktxt">'+(g(cK)+" free +</span>"):"";cV[aQ]=g(db.success.total);cL[aQ]=g(Customer.getBalance());for(dm in dn){if(dn.hasOwnProperty(dm)&&dn[dm].receipt){selReceipt=dn[dm].receipt;selIcons=dn[dm].more;c8=selReceipt.ev_oc_id;c7=BetSlip.getSelectionById(c8);cN=z(aj);be(cN,"sel");cN.id="rec_sel-"+c8;var dc="oc_price_"+c8,cP=sky.id(dc);if(cP){sky.removeClass(cP,"oc_slip")}cJ=cT[aS]("##ID##")[bM](c8)[aS]("##MAIN##")[bM](!c7.isDividend()?selReceipt.desc:c7.getDesc())[aS]("##SUB##")[bM](!c7.isDividend()?selReceipt.ev_desc+": "+selReceipt.mkt_desc:c7.getDesc("%E: %S"))[aS]("##PRICE##")[bM](selReceipt.price)[aS]("##STAKE##")[bM]((selReceipt.token_stake>0?'<span class="perktxt">'+g(selReceipt.token_stake)+" free +</span>":"")+g(selReceipt.stake,c7.getCCYCode()))[aS]("##RETURNS##")[bM](g(selReceipt.returns,c7.getCCYCode()))[aS]("##RECEIPT_URL##")[bM](selReceipt.receipt_url)[aS]("##RECEIPT##")[bM](selReceipt.receipt);if(c7.getNumLines()>1){var cZ=0;if(!isNaN(parseInt(selReceipt.token_stake))&&parseFloat(selReceipt.token_stake)>0){cZ=selReceipt.token_stake/c7.getNumLines()}cJ=cJ[aS]("##ISEACHWAY##")[bM]("")[aS]("##EACHWAY##")[bM]("("+g(cZ+c7.getStakePerLine(),c7.getCCYCode())+(c7.isEW()?" each way)":" per line)"));c7.isEW()?da++:c9++}else{cJ=cJ[aS]("##ISEACHWAY##")[bM](' style="display:none"');cQ++}cN[aQ]=cJ;c6[a6](cN);var dd=cD("rec-"+c8+"-icons");dd[aQ]=t(selIcons);var dh=cD("rec_"+c8+"-info");sky.addEvent(dh,"mouseover",(function(dp,dq){return function(dr){at("BetSlipUsage",["Message","Uses [i] icon for a selection on the receipt"]);cc(dr,dp,dq)}})(dh,c7));cO=cD("rec_"+c8+"-rcpt");sky.addEvent(cO,"click",(function(dp){return function(dq){at("BetSlipUsage",["Message","Views full bet receipt for a selection"]);sky.wndow.handleLink(dq,dp)}})(cO));sky.wndow.addLinks(sky.elems("a",dd));sky.tooltips.addLinks(sky.elems("a",dd));sky.tooltips.addElements(sky.elems("div",dd));sky.addEvent(dh,"mouseout",h);redEye.place(c7)}}for(dj in cU){if(cU.hasOwnProperty(dj)){c5=cU[dj];c8=c5.id;cN=z(aj);be(cN,"sel");cN.id="rec_sel-"+c8;c7=BetSlip.getSelectionById(c8);thereAreMultiplesToDisplay=true;cJ=cT[aS]("##ID##")[bM](c8)[aS]("##MAIN##")[bM](c5.desc)[aS]("##SUB##")[bM]("")[aS]("##PRICE##")[bM](c5.price)[aS]("##STAKE##")[bM]((c5.token_stake>0?'<span class="perktxt">'+g(c5.token_stake)+" free +</span>":"")+g(c5.stake,c7.getCCYCode()))[aS]("##RETURNS##")[bM](g(c5.returns,c7.getCCYCode()))[aS]("##RECEIPT_URL##")[bM](c5.receipt_url)[aS]("##RECEIPT##")[bM](c5.receipt);if(c5.num_lines>1){cJ=cJ[aS]("##ISEACHWAY##")[bM]("")[aS]("##EACHWAY##")[bM]("("+g(c5.spl,c7.getCCYCode())+" per line)");cM++}else{cJ=cJ[aS]("##ISEACHWAY##")[bM](' style="display:none"');df++}at("BetSlipUsage",["Message",c5.desc+" placed successfully"]);cN[aQ]=cJ;c2[a6](cN);cD("rec-"+c8+"-icons")[aQ]="";var dh=cD("rec_"+c8+"-info");sky.addEvent(dh,"mouseover",(function(dp,dq){return function(dr){at("BetSlipUsage",["Message","Uses [i] icon on a multiple on the receipt"]);cc(dr,dp,dq)}})(dh,c7));sky.addEvent(dh,"mouseout",h);cO=cD("rec_"+c8+"-rcpt");sky.addEvent(cO,"click",(function(dp){return function(dq){at("BetSlipUsage",["Message","Views bet receipt for a multiple"]);sky.wndow.handleLink(dq,dp)}})(cO))}if(thereAreMultiplesToDisplay){cE(c2,bH,aA)}}if(c0){cD("rec_deptype")[aQ]=c0.card_nickname;cD("rec_depcnum")[aQ]=c0.card_number;cD("rec_depamt")[aQ]=g(c0.amount);cE(de,bH,aA);cX++}cE(dl,bH,aA)}cY=db.errors;if(cY!==null){dg=false;c1=a8;for(di in cY){if(cY.hasOwnProperty(di)){c5=cY[di];if(c5.reason[aK]("No stake")!==-1){continue}at("BetReceiptMessage",["Message",c5.reason]);c4++;dg=true;cR=z(aj);cR.id="rec_fail-"+di;c3=c1;c3=c3[aS]("##DESC##")[bM](c5.desc)[aS]("##REASON##")[bM](c5.reason)[aS]("##ACTION##")[bM](c5.action);cR[aQ]=c3;dk[a6](cR)}}if(dg){cE(cS,bH,aA)}}M(a1,"isconf");be(a1,"isreceipt");ci();if(aU){bP()}if(Customer.confirmsBets()===false){at("BetSlipUsage",["Message","Bet placed with confirmation skipped"])}if(cQ){at("BetSlipUsage",["Message",cQ+" successful singles"])}if(da){at("BetSlipUsage",["Message",da+" successful EW bets"])}if(c9){at("BetSlipUsage",["Message",c9+" successful dividends"])}if(df){at("BetSlipUsage",["Message",df+" successful accumulators"])}if(cM){at("BetSlipUsage",["Message",cM+" successful multiples"])}if(cX){at("BetSlipUsage",["Message","Successful deposit and bet"])}if(c4){at("BetSlipUsage",["Message",c4+" errors on receipt"])}if(cK){at("BetSlipUsage",["Message",cK+" free bets used"])}else{if(Customer.getPerks().length){at("BetSlipUsage",["Message","Customer had free bets but did not use them"])}}TeaLeaf.Client.tlProcessNode(cD("betslip"))}function bT(){be(j,"bslogin1")}function q(){M(j,"bslogin1")}function C(cJ){cJ?be(x,"islogin"):M(x,"islogin")}function k(cJ){cJ=isNaN(cJ)?Number(cJ.toString().match(/[0-9.]+/)):Math.round(cJ*100)/100;if(isNaN(cJ)){return"-"}cJ=(cJ+0.001)+"";return cJ.substring(0,cJ[aK](".")+3)}function g(cL,cM){var cJ,cK;if(cL==="N/A"){return cL}cL=cL===""?0:cL;cL=k(Number(cL));for(cK=cL[aK](".")-3;cK>0;cK-=3){cL=cL.substring(0,cK)+","+cL.substring(cK)}cJ=Customer.getCCYCode();if(cJ===""){cJ="&pound;"}return(cM?cM:cJ)+""+cL}function bW(cL,cO,cK,cJ,cN){var cM=false;cz=true;if(cL&&cL[T]>0){cM=true;if(Util.betslipDisplayState&&Util.betslipDisplayState!=="maximised"){be(a1,"isminim")}aZ(cL,true)}if(cO&&cO[T]>0){av(cO)}if(cK&&cK[T]>0){bu(cK)}if(cJ&&cJ[T]>0){bp(cJ)}if(cN&&cN[T]>0){cB(cN);aE(cN)}C(Customer.isLoggedIn());if(cM){b5()}cz=false;ci()}function bt(cN,cK){var cL=cN[T],cO=0,cT,cS,cU,cR,cQ,cM=document.createDocumentFragment(),cP=[],cJ;if(cL<1){return}do{cU=cN[cO];cO++;cS=cU[cq]();if(c.getById(cS)){P(cS);continue}cQ=cU.getCCYCode();cR=z(aj);cR.id="sel_"+cS;cR[aQ]=bS[aS]("##ID##")[bM](cS)[aS]("##DESC##")[bM](cU.getDesc())[aS]("##CCY_CODE##")[bM](cQ!==""?cQ:"&pound;")[aS]("##PRICE##")[bM](cU.getSelectedPrice());cK[a6](cR);c.add(cS);P(cS);cJ=c.getById(cS);sky.tooltips.addElements(sky.elems("span",sky.id("sel_"+cS+"-odds")));sky.addEvent(cJ.takeEWControl,"click",(function(cV){return function(){at("BetSlipUsage",["Message","Sets/unsets a multiple as EW"]);cV.setLegOpt("E");bK(Customer.getPerks())}})(cU));sky.addEvent(cJ.stakeInput,"keyup",(function(cW,cV){return function(){sky.addClass(cW,"has_focus");cV.setStake(cW.value);at("BetSlipDebug",["Message","onkeyup multiple setStake("+cW.value+")"])}})(cJ.stakeInput,cU));sky.addEvent(cJ.stakeInput,"blur",(function(cW,cV){return function(){cV.setStake(cW.value);at("BetSlipDebug",["Message","onblur multiple setStake("+cW.value+")"]);sky.removeClass(cW,"has_focus")}})(cJ.stakeInput,cU));sky.addEvent(cJ.infoIcon,"mouseover",(function(cW,cV){return function(cX){at("BetSlipUsage",["Message","Uses [i] icon on a multiple"]);cc(cX,cW,cV)}})(cJ.infoIcon,cU));sky.addEvent(cJ.infoIcon,"mouseout",h)}while(cO<cL);ci()}function P(cK){var cJ=BetSlip.getSelectionById(cK),cL;aV(cJ);Q(cJ);cH(cJ);cL=c.getById(cK).stakeInput;if(cL===null){return}cL.value=cJ.getStakePerLine()}function aZ(cQ,cV){var cX=cQ[T],c3=0,cS,cW,cY,c2,c1,cJ=document.createDocumentFragment(),c4=[],cZ,cM,c0,cP,cN,cL,cU,cK,cT;if(cX<1){return}cN=ch();if(!cN){cZ=bm;cM=Z;c0="rootNode";if(ba!==1){F()}}else{cZ=p;cM=J;c0="listViewNode"}do{c2=cQ[c3];c3++;cY=c2[cq]();cP=c.getById(cY);c1=cP&&cP[c0];if(!c1){cJ[a6](cZ(c2));c4.push(cY);var c5="oc_price_"+cY,cO=sky.id(c5);if(!cO){c5="oc_price_"+cY+"-sp";cO=sky.id(c5)}if(cO){var cR=sky.getAncestorByNodeName(cO,"table");if(!cR||cR&&!sky.hasClass(cR,"racemkt")){sky.addClass(cO,"oc_slip")}}at("BetSlipUsage",["Message","Adds new selection"]);if(sky.tracking){sky.tracking.actionTracking({events:"AddsNewSelection",account:SKY_TRACKING.account},"o","skybet",this)}redEye.add(c2);continue}else{ax(c2,cY,cN)}cP=null}while(c3<cX);cM[a6](cJ);cS=c4[T];if(cS<1){return}do{cY=c4[cS-1];c.add(cY);c2=BetSlip.getSelectionById(cY);cT=c.getById(cY);if(!cN){aV(c2);Q(c2);cH(c2);cu(c2,c2.getStakePerLine());a(cY,c2.isInMulti(),c2.isCombinable());if(userBrowser.is("ie")&&!c2.isSuspended()){cT.stakeInput.focus()}cL=c2.getMessages();cW=cL[T];if(cW>0){do{aT(c2,cL[cW-1])}while(--cW)}}sky.addEvent(cT.infoIcon,"mouseover",(function(c6,c7){return function(c8){at("BetSlipUsage",["Message","Uses [i] icon on a selection"]);cc(c8,c6,c7)}})(cT.infoIcon,c2));sky.addEvent(cT.infoIcon,"mouseout",h);sky.addEvent(cT.removeButton,"click",(function(c6){return function(){at("BetSlipUsage",["Message","Removes a selection"]);BetSlip.removeSelection(c6)}})(c2));sky.addEvent(cT.includeInMultipleControl,"click",(function(c6,c7){return function(){at("BetSlipUsage",["Message","Includes/excludes a selection from their multiples"]);c7.toggleMulti(c6.checked)}})(cT.includeInMultipleControl,c2));sky.addEvent(cT.takeEWControl,"click",(function(c6){return function(){at("BetSlipUsage",["Message","Sets/unsets a selection as EW"]);c6.setLegOpt("E");bK(Customer.getPerks())}})(c2));sky.addEvent(cT.priceOptions,"change",(function(c6,c7){return function(){at("BetSlipUsage",["Message","Changes price type on a selection"]);c7.setPriceType(c6.value)}})(cT.priceOptions,c2));sky.addEvent(cT.dividendToggle,"click",(function(c6){return function(){at("BetSlipUsage",["Message","Changes leg sort on a selection"]);c6.setLegSort()}})(c2));sky.addEvent(cT.stakeInput,"keyup",(function(c6,c7){return function(){sky.addClass(c6,"has_focus");c7.setStake(c6.value);at("BetSlipDebug",["Message","onkeyup single setStake("+c6.value+")"])}})(cT.stakeInput,c2));sky.addEvent(cT.stakeInput,"blur",(function(c6,c7){return function(){c7.setStake(c6.value);at("BetSlipDebug",["Message","onblur single setStake("+c6.value+")"]);sky.removeClass(c6,"has_focus")}})(cT.stakeInput,c2));if(cV!==true){b7(cY,cN)}}while(--cS);bK(Customer.getPerks());TeaLeaf.Client.tlProcessNode(cM)}function bm(cN){var cK=cN[cq](),cM,cO=cN.isDividend(),cL,cJ;cL=z(aj);cL.id="sel_"+cK;be(cL,"sel");if(cO||cN.isScorecast()){cJ=cv(cN)}else{cJ=aF(cN)}if(cN.isSuspended()){be(cL,"sel_susp")}cL[aQ]=cJ;return cL}function aF(cN){var cL=cN[cq](),cM=bb,cO=cN.getDesc(),cK=cN.getCCYCode(),cJ;cJ=cO.search(/Draw|Unnamed/i)===-1?"%M":"%M: %E";return cM[aS]("##ID##")[bM](cL)[aS]("##DESC##")[bM](cO)[aS]("##CCY_CODE##")[bM](cK!==""?cK:"&pound;")[aS]("##PRICE##")[bM](cl(cN)[aS]("##MINIMISED##")[bM](""))[aS]("##MARKET##")[bM](cN.getDesc(cJ))[aS]("##RUNNERIMG##")[bM](V(cN.getOc()))[aS]("##ISINMULTI##")[bM](!cN.isCombinable()?' style="display:none"':cN.isInMulti()?' checked="checked"':"")}function cv(cM){var cK=cM[cq](),cJ=cM.getCCYCode(),cL=ag;return cL[aS]("##SUBSECTION##")[bM](cM.isMultiEvPot()?W:!cM.isSingleRunner()?cM.isUSRacing()?aO:a5:cM.isUSRacing()?bA:ak)[aS]("##ID##")[bM](cK)[aS]("##TOGGLE##")[bM](cM.getNumberOfLegSorts()>1?bL[aS]("##ID##")[bM](cK)[aS]("##NEXTLEG##")[bM](cM.getNextLegSortDesc()):"")[aS]("##PRICE##")[bM](cl(cM)[aS]("##MINIMISED##")[bM](""))[aS]("##CCY_CODE##")[bM](cJ!==""?cJ:"&pound;")[aS]("##DESC##")[bM](cM.getDesc())[aS]("##MARKET##")[bM](cM.getDesc("%M"))[aS]("##LINES##")[bM](cM.getNumLines())[aS]("##EVENT##")[bM](cM.getDesc("%E"))[aS]("##TYPE##")[bM](cM.getDesc("%T"))[aS]("##RUNNERIMG##")[bM]("")[aS]("##ISINMULTI##")[bM](!cM.isCombinable()?' style="display:none"':cM.isInMulti()?'style="" checked="checked"':"")}function p(cN){var cK=cN[cq](),cM,cO=cN.isDividend(),cL,cJ;cL=z("li");cL.id="sel_"+cK+"-min";be(cL,"sel");if(!cO){cJ=o(cN)}else{cJ=l(cN)}if(cN.isSuspended()){be(cL,"sel_susp")}cL[aQ]=cJ;return cL}function o(cL){var cJ=cL[cq](),cK=L,cM=cL.getDesc();cM=cM.length>18?cM.substring(0,18)+"...":cM;return cK[aS]("##ID##")[bM](cJ)[aS]("##DESC##")[bM](cM)[aS]("##PRICE##")[bM](cl(cL)[aS]("##MINIMISED##")[bM]("-min"))}function l(cL){var cJ=cL[cq](),cK=aL,cM=cL.getDesc();cM=cM.length>18?cM.substring(0,18)+"...":cM;return cK[aS]("##ID##")[bM](cJ)[aS]("##MARKET##")[bM](cM)[aS]("##PRICE##")[bM](cl(cL)[aS]("##MINIMISED##")[bM]("-min"))}function V(cJ){return cJ.isRunner()?aN[aS]("##IMGURL##")[bM](Util.url.silk_url+"/"+cJ.getSilk()+".GIF"):""}function cl(cL){var cN=cL.getAvailablePrices(),cO=cN[T],cP,cR,cK,cM="",cJ,cQ;if(cO===1){return cN[0].legPrice}cP=cL[cq]();cR=n[aS]("##ID##")[bM](cP);cK=bQ[aS]("##ID##")[bM](cP);cJ=cO;if(cJ>1){do{cQ=cN[cJ-1];cM+=cK[aS]("##PRICE##")[bM](cQ.legPrice)[aS]("##LEGTYPE##")[bM](cQ.legType)[aS]("##ISSELECTED##")[bM]((cQ.isSelected?' selected="selected"':""))}while(--cJ)}return cR[aS]("##PRICEOPTIONS##")[bM](cM)}function bF(cR){var cQ,cJ,cM,cN,cS,cO;cN=!ch()?"rootNode":"listViewNode";cS=!ch()?bv:I;for(var cL in cR){cO=cR[cL][cq]();cM=c.getById(cO);if(cM){cS(cM[cN],cO)}var cK="oc_price_"+cO,cP=sky.id(cK);if(!cP){cK="oc_price_"+cO+"-sp";cP=sky.id(cK)}if(cP){sky.removeClass(cP,"oc_slip")}}if(bh(a1,"isreceipt")){return}if(BetSlip.getNumberOfSelections()===0){cb.close();bx();cy()}A();h()}function I(cK,cJ){if(!cK[ad]){c.remove(cJ);return}cK[ad][ca](cK);c.remove(cJ);if(aU){bP()}TeaLeaf.Client.tlProcessNode(cK[ad])}function bv(cK,cJ){sky.animate.slideUp(cK,250,function(){I(cK,cJ)})}function N(){BetSlip.removeAllSelections();A();h()}function cc(cR,cL,cS){var cM=cD("jscont"),cQ="itip",cP=cD(cQ),cN='<div class="wrap">##INFO##</div><div class="foot"></div>',cK,cT="",cO,cJ="";if(!cS){return}cK=cS.getSelectionInfo();if(cK.info[T]>0){cK.info.reverse();for(cO=cK.info[T]-1;cO>=0;cO--){if(cK.notes[T]==0&&cK.promos[T]==0&&cO==0){cJ=' class="no-border"'}cT+="<dl"+cJ+"><dt>"+cK.info[cO].title+"</dt><dd>"+cK.info[cO].desc[bM]("<br />")+"</dd></dl>"}}if(cK.notes[T]>0){for(cO=cK.notes[T]-1;cO>=0;cO--){cT+='<div class="itip-note">'+cK.notes[cO].title+": "+cK.notes[cO].desc[bM]("<br />")+"</div>"}}if(cK.promos[T]>0){for(cO=cK.promos[T]-1;cO>=0;cO--){cT+='<div class="itip-note itip-perk">'+cK.promos[cO].title+": "+cK.promos[cO].desc[bM]("<br />")+"</div>"}}if(!cP){cP=z(aj);cP.id=cQ;sky.addClass(cP,"itip");cM[a6](cP)}cP[aQ]=cN.replace("##INFO##",cT);M(cP,y);sky.set.x(cP,sky.getProperty.mouseX(cR)-7);sky.set.y(cP,sky.getProperty.mouseY(cR)-(sky.getProperty.height(cP)+5));TeaLeaf.Client.tlProcessNode(cP)}function h(){var cJ=cD("itip");if(cJ!==null){be(cD("itip"),y)}}function bl(cM){var cJ=cM[cq](),cO=c.getById(cJ),cN=cM.getOc().getDesc(),cL=cD("sel_"+cJ+"-desc"),cK=cD("min_main-"+cJ);if(cL&&cL.innerHTML!==cN){cL.innerHTML=cN;TeaLeaf.Client.tlProcessNode(cL)}if(cK&&cK.innerHTML!==cN){cK.innerHTML=cN;TeaLeaf.Client.tlProcessNode(cK)}}function aV(cL){var cM=c.getById(cL[cq]()),cK,cJ;if(cM===null||cM.EWContainer===null){return false}cK=cD("sel_"+cL[cq]()+"-ewcol");cJ=cD("sel_"+cL[cq]()+"-is_ew");if(!cL.hasEW()){cE(cK,"visibility","hidden");cJ.checked=false}else{bo(cK,"visibility");cJ.checked=cL.isEW()}}function Q(cK){var cJ=cK.getNumLines(),cL=c.getById(cK[cq]());if(cL===null){return}HTMLElement=c.getById(cK[cq]()).numLinesNode;HTMLElement[aQ]=cJ>1?cJ+"x":"";TeaLeaf.Client.tlProcessNode(HTMLElement)}function a(cK,cM,cL){var cJ=cD("sel_"+cK+"-inmulti");if(cJ){if(cM){cJ.checked=true}else{cJ.checked=false}if(cL){bo(cJ,"display")}else{cE(cJ,"display","none")}}}function ax(cO,cR,cK){var cQ=c.getById(cR),cL=!cK?cQ.rootNode:cQ.listViewNode,cP="sel_susp",cJ,cM,cN;if(cL===null){c.remove(cR);return}if(cO.isSuspended()){be(cL,cP);redEye.error("Bet Suspended: "+cO.getDesc())}M(cL,cP);if(cK){return}bl(cO);aV(cO);Q(cO);cH(cO);cu(cO,cO.getStakePerLine());ab(cO);a(cR,cO.isInMulti(),cO.isCombinable());if(cO.isDividend()){cJ=cD("dividend_name_"+cR);cN=cD("dividend_toggle_"+cR);if(cJ){cJ[aQ]=cO.getDesc()}if(cN){cN[aQ]="Change to "+cO.getNextLegSortDesc()}}}function cu(cK,cJ){var cL=c.getById(cK[cq]()).stakeInput;if(!sky.hasClass(cL,"has_focus")){cL.value=cJ}}function b7(cJ,cK,cL){sky.animate.glow(!cK?c.getById(cJ).rootNode:c.getById(cJ).listViewNode,"#FBFDFF",cL)}function ab(cO){var cK=cO[cq](),cM=cO.getPriceType(),cP="sel_"+cK+"-legopt_"+cM,cN=cP+"-min",cL=cD(cP),cJ=cD(cN);if(cL===null){return}cL.selected=true;if(cJ===null){return}cD(cJ).selected=true}function cH(cJ){var cK=c.getById(cJ[cq]());if(!cK||cK.returnsNode===null){return}cK.returnsNode[aQ]=g(cJ.getReturns())}function bz(cJ){var cK=c.getById(cJ[cq]()),cL;if(cK===null){return}cL=cK.rootNode;if(cL===null){return}cL[aQ]="";cL[ad][ca](cL);c.remove(cJ[cq]());A();TeaLeaf.Client.tlProcessNode(cL[ad])}function av(cJ){A();if(ch()||!ch()&&!bI()){return}bt(cJ,m,false)}function bu(cJ){bt(cJ,v,true)}function aR(){cE(a7,bH,bk)}function s(){bo(a7,bH)}function H(){bo(ae,bH)}function bZ(){cE(ae,bH,aA)}function A(){var cN=BetSlip.getNumberOfMultiples(),cL=cN>0,cJ=BetSlip.hasMoreMultiples(),cK=sky.cookie.get("fullMultiplesViewOpen"),cM=cK!==null;if(cJ){bZ();by();aR();return true}else{s()}if(!cL){U();H();return false}if(cM){bZ();by();return true}if(!cM){U();bZ();return false}}function aw(cM,cO){var cJ,cK,cN;sky.overlay.create("middle",an);cJ=cD("birTimeDisplay");cK=cM/1000;cJ[aQ]=cK;function cL(cP){if(cJ===null||cP<0){clearInterval(cN);return}cJ[aQ]=cP;cP--;return setTimeout(function(){cL(cP)},1000)}cN=cL(cK);at("BetSlipUsage",["Message","BIR Timer appears"]);return setTimeout(function(){at("BetSlipUsage",["Message","BIR Timer closes"]);sky.overlay.destroy();ac(cO)},cM)}function aM(cK,cJ,cL,cM){var cN=c.getById(cK);if(ch()||!cN){return}cN.oddsNode[aQ]=cl(BetSlip.getSelectionById(cK));if(userBrowser.is("ie")){ie_multiPriceDropdown=cD("sel_"+cK+"-priceopts");if(ie_multiPriceDropdown!==null){ie_multiPriceDropdown.onchange=function(){BetSlip.getSelectionById(this.className.match(cx)[1]).setPriceType(this.value)}}}}function b1(cJ){cJ?ct():bD()}function cj(){return B!==null&&B.type==="checkbox"?B.checked:false}function ct(){if(B===null){return}if(!B.checked){B.checked=true}cE(R,bH,aA);aJ(Customer.confirmsBets(),Deposit.isSet())}function bD(){if(B===null){return}if(B.checked){B.checked=false}bo(R,bH);aJ(Customer.confirmsBets(),Deposit.isSet())}function ap(cJ){at("BetSlipUsage",["Message","3-D Secure opens"]);return sky.overlay.create("middle",D[aS]("##3DS_URL##")[bM](cJ))}function cf(cJ){var cL=cJ[T],cM,cK=aH[T]+aC[T];if(cL<1||typeof cJ.push!=="function"){return}do{cM=cJ[cL-1];cM[aQ]="";cM[ad][ca](cM);cJ.pop()}while(--cL);if(cK===0){be(cC,y)}}function bx(){cf(aC);aC=[];TeaLeaf.Client.tlProcessNode(cC)}function cy(){cf(aH);aH=[];TeaLeaf.Client.tlProcessNode(cC)}function bp(cO){var cL=cO[T],cK,cN,cM=document.createDocumentFragment(),cJ;if(cL<1||typeof cO.push!=="function"){return}do{cN=cO[cL-1];cK=z(aj);be(cK,"bsperk");cJ=cN[cq]();cK.id="perk_"+cJ;cK[aQ]=am[aS]("##PERKID##")[bM](cJ)[aS]("##AMOUNT##")[bM](g(cN.getAmount()))[aS]("##EXPIRES##")[bM](cN.getExpiresAt());cC[a6](cK);sky.addEvent(sky.id("perk_"+cJ+"-bind"),"click",(function(cP){return function(){at("BetSlipUsage",["Message","Customer binds a Perk with a Selection: "+g(cN.getAmount())]);BetSlip.selectPerk(cP)}})(cJ));sky.addEvent(sky.id("perk_"+cJ+"-unbind"),"click",(function(cP){return function(){at("BetSlipUsage",["Message","Customer unbinds a Perk with a Selection: "+g(cP.getAmount())]);BetSlip.unbindPerk(cP)}})(cN));aC.push(cK)}while(--cL);M(cC,y);TeaLeaf.Client.tlProcessNode(cC)}function cB(cJ){var cL=cJ[T],cQ,cR,cN,cK,cO=document.createDocumentFragment(),cM=G,cP;if(cL<1||typeof cJ.push!=="function"){return}do{cR=cJ[cL-1];cP=cR[cq]();cQ=z(aj);be(cQ,"bsstream");cQ.id="stream_"+cP;cK=cR.getEvDesc();cN=cK&&cK[T]&&cK[T]===1?cK[0].getDesc("%S"):cR.getEvDesc();cQ[aQ]=cM[aS]("##ID##")[bM](cP)[aS]("##AMOUNT##")[bM](g(cR.getAmount()))[aS]("##EVENT##")[bM](cR.getEvDesc())[aS]("##SELECTIONS##")[bM](cN)[aS]("##URL##")[bM](cR.getURL());cO[a6](cQ);aH.push(cQ)}while(--cL);cC[a6](cO);sky.wndow.addLinks(sky.elems("a",cC));M(cC,y);TeaLeaf.Client.tlProcessNode(cC)}function aE(cK){var cO=cK[T],cL,cP,cN,cJ,cM,cR,cQ;if(cO<1){return}do{cR=cK[cO-1];cL="stream_"+cR[cq]();cQ=cD(cL);cP=cD(cL+"-no");cN=cD(cL+"-yes");cJ=cD(cL+"-will");cM=cR.getState();if(cM==="N"){M(cQ,"perk_yes");M(cQ,"perk_has");continue}if(cM==="W"){be(cQ,"perk_yes");M(cQ,"perk_has");continue}if(cM==="Y"){be(cQ,"perk_has");M(cQ,"perk_yes");continue}}while(--cO)}function bK(cQ){if(!cQ){return}var cP=cQ[T],cN,cL,cO,cJ,cT,cR,cM,cK,cS;if(cP<1||ch()){return}do{cT=cQ[cP-1];cN=cT.getSelection();if(!cN){continue}cL="perk_"+cT[cq]();cS=cD(cL);cO=cD(cL+"-sel");cM=cD("sel_"+cN[cq]()+"-perk");cK=cN.getPerksValuePerLine();cM[aQ]=cK>0?g(cK)+" free +":"";if(cT.isRedeemed()){cO[aQ]=cN.getDesc(!cN.isDividend()?"%S (%M: %E)":"%D");be(cS,"perk_yes")}else{cO[aQ]="";M(cS,"perk_yes")}}while(--cP)}function ah(cO,cJ){var cN,cK="",cP="",cQ=a4,cM,cL;for(cM in cJ){if(cJ.hasOwnProperty(cM)){selectionObject=cJ[cM];cN=selectionObject.getOc();cK=cQ[aS]("##ID##")[bM](cN[cq]())[aS]("##DESC##")[bM](selectionObject.getDesc())[aS]("##MARKET##")[bM](selectionObject.getDesc("%M: %E"))[aS]("##RUNNERIMG##")[bM](V(cN));cP+=cK}}cL=aY[aS]("##AMOUNT##")[bM](g(cO.getAmount()))[aS]("##PERKID##")[bM](cO[cq]())[aS]("##EXPIRES##")[bM](cO.getExpiresAt())[aS]("##SELECTIONS##")[bM](cP);sky.overlay.create("middle",cL,function(){sky.addEvent(sky.id("perk_"+cO[cq]()+"-bindbtn"),"click",function(){e(sky.id("pickPerk").perkopts,cO[cq]())});if(BetSlip.getNumberOfSelections()>6){be(cD("perk_attach-scrl"),"toobig")}TeaLeaf.Client.tlProcessNode(sky.id("pickPerk"))});at("BetSlipUsage",["Message","Perk overlay opens"])}function e(cJ,cK){var cM;function cL(cP){var cO=cP[T],cN;if(cO){for(cN=0;cN<cO;cN++){if(cP[cN].checked){return cP[cN].value}}}else{if(cP.checked){return cP.value}}return null}cM=cL(cJ)[aS](/perk-|-assign/g)[bM]("");sky.overlay.destroy();if(cM==="none"){at("BetSlipUsage",["Message","Perk overlay saved for later"]);return}at("BetSlipUsage",["Message","Perk overlay bound with a selection"]);BetSlip.bindPerkWithSelection(Customer.getPerkById(cK),BetSlip.getSelectionById(cM))}function X(cJ){if(!b0){be(bG,"ok");M(bG,"notok");cr[aQ]="Balance After Bet";at("BetSlipUsage",["Message","Corrects Bet Slip exceeding current funds"])}b6[aQ]=g(cJ);b0=true}function bw(cJ){if(b0){be(bG,"notok");M(bG,"ok");cr[aQ]="Funds Needed";at("BetSlipUsage",["Message","Bet Slip shows it exceeds current funds"])}b6[aQ]=g(cJ);ct();b0=false}function bB(cJ){K[aQ]=cJ>0?g(cJ)+"&nbsp;Free&nbsp;+":""}function cm(cJ){br[aQ]=g(cJ)}cb=new cw(function co(){be(b4,"bs_step1");sky.addEvent(cD("bs_goback"),"click",function(){BetSlip.goToEditBetsStep();at("BetSlipUsage",["Message","Goes back and make changes"])});sky.addEvent(cD("closebslogin"),"click",function(){q();at("BetSlipUsage",["Message","Closes Bet Slip login form"])});sky.addEvent(cD("openbslogin"),"click",function(){bT();at("BetSlipUsage",["Message","Opens Bet Slip login form"])});sky.addEvent(cD("bsplace"),"click",function(){BetSlip.submit();at("BetSlipUsage",["Message","Confirms or Places bet"])});sky.addEvent(cD("dockmax"),"click",function(){az();at("BetSlipUsage",["Message","Maximises Bet Slip"])});sky.addEvent(cD("dockmin"),"click",function(){bO();at("BetSlipUsage",["Message","Minimises Bet Slip"])});sky.addEvent(cD("clrslip"),"click",function(){N();at("BetSlipUsage",["Message","Empties Bet Slip"])});sky.addEvent(cD("gomulti"),"click",function(){f(null,true);at("BetSlipUsage",["Message","Shows more multiples"])});sky.addEvent(cD("confbet"),"click",function(){aa(cD("confbet").checked);at("BetSlipUsage",["Message","Toggles confirmation step"])});sky.addEvent(cD("dotopup"),"click",function(){BetSlip.toggleDeposit(cD("dotopup").checked);at("BetSlipUsage",["Message","Toggles adding deposit to bet"])});TeaLeaf.Client.tlProcessNode(b4);ac(ar)});return{open:b5,close:bi,minimise:bO,maximise:az,rebuild:bW,isMinimised:ch,toggleMultis:f,showAllMultiples:by,hideAllMultiples:U,reflectValidState:bn,reflectWaitingState:b,goToEditBetsStep:F,goToConfirmationStep:r,goToReceiptStep:S,toggleConfirmation:aa,showLoginForm:bT,hideLoginForm:q,reflectLoginState:C,formatCurrency:g,drawSelection:aZ,removeSelection:bF,drawReturns:cH,drawBetLines:Q,drawStakeOnSelection:cu,drawSelectionMessages:aT,removeSelectionMessages:bC,removeMultiple:bz,drawAccumulator:bu,drawMultiple:av,displayTimer:aw,drawPriceChangeOnSelection:aM,toggleDeposit:b1,addDeposit:ct,removeDeposit:bD,draw3dSecure:ap,undrawPerks:bx,drawNewPerk:bp,reflectPerkRedeemedState:bK,drawPerkAttacher:ah,handlePerkAttacher:e,drawNewStream:cB,reflectStreamQualifiedState:aE,undrawStreams:cy,drawBalanceAfterBet:X,drawDeficitAfterBet:bw,drawTotalRedeemedCredits:bB,drawTotalStake:cm}};
sky.confirmContactDetails={set:function(h,a,b){var g,e="Your Details",c,f;if(a!=false){c='<a href="#" onclick="sky.confirmContactDetails.remove();return false;" class="ovrlyclose">Close</a>'}else{c=""}if(b!=false){f="auto"}else{f="no"}g='<div class="ovrlywrp" id="dtlcnfrmovrly0"><div class="ovrlycntnt0"><div class="cntntwrp"><div class="ovrly_ttl">'+c+'</div><div class="c1"><iframe src="'+h.url+'" name="dtlcnfrm0" scrolling="'+f+'" frameborder="0" class="dtlcnfrm0" id="dtlcnfrm0" /></div></div></div></div>';sky.overlay.create("middle",g)},remove:function(){sky.overlay.destroy()}};sky.grabEvent.addBehaviour(function(){if(typeof confirmDetails==="object"&&typeof confirmDetails.required==="boolean"&&confirmDetails.required===true){sky.confirmContactDetails.set(confirmDetails,false,false)}},"DOMLoaded",true,false,false,"SkyConfirmDetails");var SKY_TRACKING={};sky.omnitureTracking={setupData:function(){
var env;if(window.location.href.indexOf("www.skybet")!==-1){env="bskybnetworkglobal,bskybskybetprod"}else{env="bskybskybetdev"}var loggedIn=false;var cookie=sky.cookie.get("IBS_Check_Login");if(cookie!==null&&cookie.split("|")[0]!=="GUEST"){loggedIn=true}var tempObj={site:"sky/sbandg/sky bet",account:env,section:"",headline:"",contentType:"",LoggedIn:loggedIn};var tempHeadline=[];if(sky.id("page_title")){if(sky.id("page_title").innerText){tempHeadline.push(sky.id("page_title").innerText.toLowerCase())}else{if(sky.id("page_title").textContent){tempHeadline.push(sky.id("page_title").textContent.toLowerCase())}}}if(sky.id("page_sub_title")){if(sky.id("page_sub_title").innerText){tempHeadline.push(sky.id("page_sub_title").innerText.toLowerCase())}else{if(sky.id("page_sub_title").textContent){tempHeadline.push(sky.id("page_sub_title").textContent.toLowerCase())}}}tempObj.headline=tempHeadline.join(" - ");if(hbxVars&&hbxVars.mlc&&hbxVars.pn){if(hbxVars.mlc.substr(0,3).toLowerCase()=="bet"){hbxVars.mlc=hbxVars.mlc.substr(4)}if(hbxVars.mlc==""){hbxVars.mlc="home"}tempObj.section=hbxVars.mlc.toLowerCase();tempObj.contentType=hbxVars.pn.toLowerCase()}SKY_TRACKING=tempObj;this.load();
},load:function(){sky.load.js(jsRoot+"omniture/s_code_v4.5.js","skyOmniture")},passOmnitureLink:function(b){var f=false,e="linkClick";d=b.parentNode;if(hbxVars.mlc==="home"){str=b.innerHTML;f=true}var a=sky.attr(b,"id");if(a!==null&&a.indexOf("oc_price")!==-1){str=a;f=true;if(BetSlip.getSingles().length===0){e="betSlip,linkClick"}}var c=sky.attr(d,"id");if(c!==null&&c.indexOf("oc_price")!==-1){str=c;f=true;if(BetSlip.getSingles().length===0){e="betSlip,linkClick"}}if(f){str=sky.getXPath.getElementXPath(b)+"|"+str;sky.omnitureTracking.trackLink(e,str)}},trackLink:function(c,b){var a;if(window.location.href.indexOf("www.skybet")!==-1){a="bskybnetworkglobal,bskybskybetprod"}else{a="bskybskybetdev"}sky.tracking.actionTracking({events:c,linkDetails:b,account:a},"o","skybet",this)}};sky.grabEvent.addBehaviour(function(){sky.omnitureTracking.setupData()},"load",true,false,false,"SkyOmnitureTracking");function _omnitureLinkCapture(){sky.grabEvent.addBehaviour(sky.omnitureTracking.passOmnitureLink,"mousedown",function(a){if(sky.hasNodeName(a,"a")||sky.hasNodeName(a.parentNode,"a")){return true}else{return false}},true,true,"linkClick")}sky.getXPath={getElementXPath:function(a){var b="";for(;a&&a.nodeType===1;a=a.parentNode){idx=this.getElementIdx(a);xname=a.tagName;if(idx>1){xname+="["+idx+"]"}if(xname!=="STRONG"&&xname!=="SPAN"){if(a.id!==undefined&&a.id!==""){b="<-("+a.id+")"+b}b="/"+xname+b}}return b},getElementIdx:function(b){var c=1,a;for(a=b.previousSibling;a;a=a.previousSibling){if(a.nodeType===1&&a.tagName===b.tagName){c++}}return c}};setTimeout(function(){var c=typeof login==="object"&&login.cookie?login.cookie.split("|")[0]:"GUEST",e="https://reporting.skybet.com/cgi-bin/rr.cgi/images/blank.gif?nourl=",a,b;if(c!=="GUEST"){b=encodeURI([e,[hbxVars.mlc,hbxVars.pn].join("/"),"&logon=yes","&custrefid=",c].join(""));a=new Image();a.src=b;if(document.location.href.indexOf("barclays-premier-league")!==-1){b=encodeURI([e,[hbxVars.mlc,hbxVars.pn].join("/"),"&premier_league_page=yes","&custrefid=",c].join(""));a=new Image();a.src=b}}},1500);sky.appendHTMLToElement=function(b,e,a,c){if(!sky.id(b)){return}var e=document.createElement(e);e.id=a;e.innerHTML=c;sky.id(b).appendChild(e)};sky.grabEvent.addBehaviour(function(){var a=function(){var b=document.createElement("li"),c=document.getElementById("tabs").getElementsByTagName("li");sky.addClass(b,"a2");b.innerHTML='<a href="/skybet?action=GoStatic&name=2011_mobile_home"><span>Mobile</span></a>';if(document.location.href.match(/name=2011_mobile_/i)){sky.addClass(b,"selected");sky.addClass(c[0],"deselected")}c[0].parentNode.insertBefore(b,c[0])}();sky.appendHTMLToElement("aids","li","hd-follow",'Follow us: <a href="http://twitter.com/skybet" target="_blank" class="hd-twitter"><span>Twitter</span></a><a href="http://www.facebook.com/#!/pages/Sky-Bet/144126855607425?ref=ts" target="_blank" class="hd-facebook"><span>Facebook</span></a>');if(Util&&Util.url){sky.appendHTMLToElement("header","div","loyalty_stamp",'<a href="http://www.skybet.com/loyalty"><span>&pound;20 Off<br />your Sky Bill<br />or Free Bets</span></a>')}},"DOMLoaded",true,false,false,"SkySetupSocialLinks");
