Number.prototype.DHBPG=String.prototype.DHBPG=function(b){if($(PSQCC+"_decimal")==null&&(b==null||typeof(b)!="number")){b=2}if(b!=null&&typeof(b)=="number"){return parseFloat(this).toFixed(b)}return parseFloat(this).toFixed($(PSQCC+"_decimal").options[$(PSQCC+"_decimal").selectedIndex].value)};String.prototype.XTAMN=function(){return this.replace(/^\s+|\s+$/gm,"")};String.prototype.CCTSV=function(){return this.replace(/^\s+|\s+$/g,"").replace(/\s+/g," ")};Number.prototype.COPCX=String.prototype.COPCX=function(){return(String(this).XTAMN().match(/^(0.0[1-9]|0.[1-9][0-9]?|[1-9][0-9]*(\.\d{1,2})?)$/)==null?false:true)};Number.prototype.WURWE=String.prototype.WURWE=function(){return(String(this).XTAMN().match(/^[1-9][0-9]*(\.\d{1,2})?$/)==null?false:(parseFloat(this)>1?parseFloat(this):false))};Number.prototype.JTVJX=String.prototype.JTVJX=function(){return(String(this).XTAMN().match(/^[1-9][0-9]*(\.\d{1,3})?$/)==null?false:(parseFloat(this)>1?parseFloat(this):false))};Number.prototype.CCZNW=String.prototype.CCZNW=function(){if((m=String(this).XTAMN().match(/^(-|\+)[1-9][0-9]*$/))!=null){if(m[1]=="+"){return((parseInt(m[0])/100)+1).DHBPG(2)}else{if(m[1]=="-"){return(1-(100/parseInt(m[0]))).DHBPG(2)}}}return false};Number.prototype.OZUUO=String.prototype.OZUUO=function(){if((m=String(this).XTAMN().match(/^([1-9][0-9]*)(\/|-)([1-9][0-9]*)$/))!=null){return parseFloat(((parseFloat(m[1])/parseFloat(m[3]))+1).DHBPG(2))}return false};Number.prototype.UUDXL=String.prototype.UUDXL=function(){if(String(this).XTAMN().match(/^(evens|even|evs|ev)$/i)!=null){return parseFloat(2)}return false};Number.prototype.EOYJA=String.prototype.EOYJA=function(){if((d=this.WURWE())!=false){return d}if((f=this.OZUUO())!=false){return f}if((a=this.CCZNW())!=false){return a}if((l=this.JTVJX())!=false){return l}if((e=this.UUDXL())!=false){return e}return false};Number.prototype.IONWD=String.prototype.IONWD=function(){return(String(this).match(/^[0-9]+(\.\d+)?$/)==null?false:true)};Number.prototype.BKWFH=String.prototype.BKWFH=function(){return(String(this).match(/^-?[0-9]+(\.\d+)?$/)==null?false:true)};Number.prototype.ZOHQS=String.prototype.ZOHQS=function(){var b=2;if($(PSQCC+"_decimal")!=null){b=$(PSQCC+"_decimal").options[$(PSQCC+"_decimal").selectedIndex].value}switch(b){case"0":if(String(this).XTAMN().match(/^(0|-?[1-9][0-9]*)$/)!=null){return true}break;case"1":if(String(this).XTAMN().match(/^(0\.0|-?0.[1-9]|-?[1-9][0-9]*(\.[0-9])?)$/)!=null){return true}break;default:if(String(this).XTAMN().match(/^(-0\.0[1-9]|-0\.[1-9][0-9]?|-[1-9][0-9]*(\.\d{1,2})?|\d+(\.\d{1,2})?)$/)!=null){return true}break}return false};Number.prototype.COXOB=String.prototype.COXOB=function(){if((d=String(this).match(/\.(\d+)$/))!=null){return d[1].length}return 0};Number.prototype.SKZMA=String.prototype.SKZMA=function(c,b){if(typeof(c)!="undefined"){if(typeof(b)=="undefined"||(typeof(b)!="undefined"&&b<=0)){b=0}return String(this+(new Array(b+1).join(c)))}return false};Number.prototype.BZBFE=String.prototype.BZBFE=function(){return(String(this).replace(/^\s+|\s+$/g,"")==""?true:false)};Number.prototype.AUMOB=String.prototype.AUMOB=function(){return(String(this).match(/^-?(0|[1-9][0-9]*)$/)==null?false:true)};var PSQCC="dutch_1";var BBUGE="&pound;";var SQPTY=".idutch.co.uk";var VERSION_TIMESTAMP="28-01-2010 01:01:00";var VERSION="1.0.0";var INQOS={OEMPJ:function(g,c){var b=new Date();b.setTime(b.getTime()+((365*2)*24*60*60*1000));var h=g+"="+c+";expires="+b.toGMTString()+";path=/;domain="+SQPTY;document.cookie=h},OVPKG:function(c){var b=document.cookie.match(new RegExp(c.toString()+"=(.*?)(;|$)","i"));if(b!=null&&typeof(b[1])!="undefined"){return b[1]}return false}};var HAZMN={SWDTZ:0,LITSI:1,WWLPW:2,ACVDM:3,DCWDO:4,BTHVU:5,AVXWJ:6,CGJCW:7,WXVOE:8};var PWAFZ={VNJFA:PSQCC+"_wager",ZQVER:PSQCC+"_process",NZKNY:PSQCC+"_decimal",FNULQ:PSQCC+"_balancer",SKXWS:PSQCC+"_probability",QVYRJ:PSQCC+"_mynotes",ENKYL:document.domain.replace(/(http:\/\/)?(www\.)?/,"").replace(/(\.|\/).*$/,""),RCEPZ:PSQCC+"_actual_stake",LLCNR:PSQCC+"_actual_stake_notice",OXYNX:PSQCC+"_potential_profit",MHFHU:PSQCC+"_adjustments",ELBIS:PSQCC+"_stake",KCBLW:PSQCC+"_return",SLNAT:PSQCC+"_profit"};var LMQON={LVZRB:new Array(),LJJIP:new Array(),OOWAX:new Array(),SVAFU:new Array(),TFWHS:document.domain.replace(/(http:\/\/)?(www\.)?/,"").replace(/(\.|\/).*$/,""),WSDJR:function(g){var c=false;if(/^\d+$/.test(g)&&$("\x64\x75\x74\x63\x68\x5f"+g)!=null){this.LVZRB["dutch_"+g]=this.LVZRB[PSQCC];this.SVAFU["dutch_"+g]=this.SVAFU[PSQCC];if(XUDSD.TTODO.match(/^\x69d\x75\x74\x63h.*/)!=null){PSQCC="dutch_"+g}PWAFZ.VNJFA=PSQCC+"_wager";PWAFZ.ZQVER=PSQCC+"_process";PWAFZ.NZKNY=PSQCC+"_decimal";PWAFZ.FNULQ=PSQCC+"_balancer";PWAFZ.QVYRJ=PSQCC+"_mynotes";PWAFZ.RCEPZ=PSQCC+"_actual_stake";PWAFZ.LLCNR=PSQCC+"_actual_stake_notice";PWAFZ.OXYNX=PSQCC+"_potential_profit";PWAFZ.SKXWS=PSQCC+"_probability";PWAFZ.MHFHU=PSQCC+"_adjustments";PWAFZ.ELBIS=PSQCC+"_stake";PWAFZ.KCBLW=PSQCC+"_return";PWAFZ.SLNAT=PSQCC+"_profit";if(typeof($(PSQCC).getElementsByTagName("\x74\x61\x62\x6c\x65")[0])=="undefined"){PIAJQ.GWLPC();PIAJQ.DGFLB(5)}PIAJQ.YPDFC=$(PSQCC).getElementsByTagName("\x74\x62\x6f\x64\x79")[0];if(BXKBV.HJEAC.match(/^.{5}\x68$/)!=null&&XUDSD.TTODO.indexOf("\x64\x75")==1){for(var b=1;b<=10;b++){$("\x64\x75\x74\x63\x68\x5f"+b).hide();$("\x74\x61\x62\x5f\x64\x75\x74\x63\x68\x5f"+b).parentNode.className=""}}jQuery("\x23\x64\x75\x74\x63\x68\x5f"+g).fadeIn("fast");$("\x74\x61\x62\x5f\x64\x75\x74\x63\x68\x5f"+g).parentNode.className="\x61\x63\x74\x69\x76\x65"}},JNEFE:function(){if(typeof(this.OOWAX[PSQCC])=="undefined"){this.OOWAX[PSQCC]=0}else{this.OOWAX[PSQCC]}return this.OOWAX[PSQCC]},NCZIM:function(){if(typeof(this.OOWAX[PSQCC])=="undefined"){this.OOWAX[PSQCC]=0}else{this.OOWAX[PSQCC]++}},AINBT:function(){if(typeof(this.LVZRB[PSQCC])=="undefined"){return this.LVZRB[PSQCC]="40.00"}else{return this.LVZRB[PSQCC]}},UYXJV:function(){if(typeof(this.LVZRB[PSQCC])=="undefined"){return this.LVZRB[PSQCC]="40.00"}else{return this.LVZRB[PSQCC]=$(PWAFZ.VNJFA).value}},SKWQC:function(){if(typeof(this.SVAFU[PSQCC])=="undefined"){return this.SVAFU[PSQCC]=""}else{return this.SVAFU[PSQCC]=""}},MIPHC:function(){if(typeof(this.SVAFU[PSQCC])=="undefined"){return this.SVAFU[PSQCC]=""}else{return this.SVAFU[PSQCC]}}};var PIAJQ={YPDFC:null,PCLAU:location.href.replace(/(http:\/\/)?(www\.)?/,"").replace(/(\.|\/).*$/,""),GWLPC:function(){if(typeof($(PSQCC).getElementsByTagName("\x74\x61\x62\x6c\x65")[0])=="undefined"){this.PKPXQ();this.LSQFL();this.CNPYO();$(PSQCC).insert(new Element("\x70",{id:"dutching_help"}).update("<strong>Need Help?</strong> Place your cursor over a feature, after <strong>2 seconds</strong> helpful information will appear."))}this.YPDFC=$(PSQCC).getElementsByTagName("\x74\x62\x6f\x64\x79")[0]},ACVKA:function(c){var b=new Array();b["\x70\x6f\x74\x65\x6e\x74\x69\x61\x6c\x5f\x70\x72\x6f\x66\x69\x74"]="<p>Displays the potential profit you could earn as a single amount or as a range. A range, such as &quot;<b><em>&pound;60.67</b> to <b>&pound;63.26</em></b>&quot; indicates your <em>lowest</em> &amp; <em>highest</em> potential profit.</p>";return b[c]},PKPXQ:function(){var h=new Element("\x73\x65\x6c\x65\x63\x74",{id:PWAFZ.ZQVER});h.observe("change",function(j){YXGPU.JDXJA()});h.insert(new Element("\x6f\x70\x74\x69\x6f\x6e",{value:"wager"}).update("Stake"));h.insert(new Element("\x6f\x70\x74\x69\x6f\x6e",{value:"profit"}).update("Profit"));h.insert(new Element("\x6f\x70\x74\x69\x6f\x6e",{value:"return"}).update("Return"));jQuery(h).tooltip({title:"Type of Spread Bet",cursor:"help",description:"<table><tr><th>Stake:</th><td>The <em>amount</em> to spread over the entire bet.</td></tr><tr><th>Profit:</th><td>The <em>profit</em> you desire for each selection.</td></tr><tr><th>Return:</th><td>The <em>return</em> you desire for each selection.</td></tr></table>"});var g=new Element("\x69\x6e\x70\x75\x74",{type:"text",id:PWAFZ.VNJFA,size:8,maxlength:10,className:"stake_input",value:LMQON.AINBT()});g.observe("keyup",function(j){this.className=(!this.value.COPCX()?"stake_invalid":"stake_input");PIAJQ.SWGXR()});jQuery(g).tooltip({title:"Valid Format",title:"Amount",description:"<p>A number with a maximum of 2 decimal places.</p><p>eg. <b>156.29</b>, &nbsp;<b>78.4</b>, &nbsp;<b>87</b></p><hr /><p><b>NOTE:</b> You can only edit this field while in &quot;<b><em>Normal Spread</em></b>&quot; mode, if you're in &quot;<b><em>Balance Spread</em></b>&quot; mode then this field will be disabled.</p>"});$(PSQCC).insert(new Element("\x70",{className:"settings"}).insert(h).insert("&nbsp;of "+BBUGE).insert(g));var b=new Element("\x73\x65\x6c\x65\x63\x74",{id:PWAFZ.FNULQ});b.observe("change",function(j){PIAJQ.EEBFQ()});b.insert(new Element("\x6f\x70\x74\x69\x6f\x6e",{value:"n",selected:true}).update("Normal Spread"));b.insert(new Element("\x6f\x70\x74\x69\x6f\x6e",{value:"y"}).update("Balanced Spread"));jQuery(b).tooltip({title:"Spread Bet Mode",description:"<table><tr><th>Normal:</th><td>The application will attempt to produce the <b>same profit</b> for each selection. If you add any <b>stake adjustments</b> (<em>&quot;Adj. Stake&quot; column</em>) then the &quot;<em><b>Total Stake</b></em>&quot; will fluctuate accordingly.</td></tr><tr><th>Balanced:</th><td>This option will <b>lock</b> your &quot;<em><b>Total Stake</b></em>&quot; and attempt to maintain that amount throughout all changes you make to <b>stake adjustments</b>.</td></tr></table>",max_width:480,hide_delay:20000});$(PSQCC).insert(new Element("\x70",{className:"settings"}).insert(b));var i=new Element("\x73\x65\x6c\x65\x63\x74",{id:PWAFZ.NZKNY});i.observe("change",function(j){PIAJQ.EEBFQ()});i.insert(new Element("\x6f\x70\x74\x69\x6f\x6e",{value:"2",selected:true}).update("1.23"));i.insert(new Element("\x6f\x70\x74\x69\x6f\x6e",{value:"1"}).update("1.2"));i.insert(new Element("\x6f\x70\x74\x69\x6f\x6e",{value:"0"}).update("1"));jQuery(i).tooltip({title:"Format/Decimal places",description:"<p>When using <b>2 decimal places (&quot;1.23&quot;)</b> the profit for each selection will be the same, or differ by only a few pence. (This option is <b>recommended</b> for beginners)</p><hr /><p><b>Whole numbers (&quot;1&quot;)</b> are best used when applying a <em>large stake</em> against your entire spread bet, because the difference in profit for each selection will be larger.</p>",max_delay:15000,left:true});$(PSQCC).insert(new Element("\x70",{className:"settings"}).insert("Format:&nbsp;").insert(i));var c=new Element("\x69\x6e\x70\x75\x74",{type:"input",id:PWAFZ.QVYRJ,size:25,maxlength:255,className:"input",value:LMQON.MIPHC()});c.observe("keyup",function(j){$(PSQCC+"_summary").childNodes[4].innerHTML=this.value;LMQON.SKWQC()});jQuery(c).tooltip({title:"Your Notes",description:"<p>Enter any information for your own reference.</p><p><b>Examples:</b></p><p>&bull; <em>Labrokes: 3:30 at Chepstow</em></p><p>&bull; <em>Man Utd v Real Madrid: Correct Scores (William Hill)</em></p><p>&bull; <em>Man Utd v Real Madrid: First Scorer (888sports)</em></p><p>&bull; <em>Grand National (Bet Fred)</em></p>",max_delay:15000,left:true});$(PSQCC).insert(new Element("\x70",{className:"settings"}).insert("Notes:&nbsp;").insert(c))},LSQFL:function(){var g=new Element("\x70",{className:"info_bar_notice",id:PWAFZ.LLCNR});jQuery(g).tooltip({title:"Over original stake, why?",description:"<p>All calculations are <b>rounded up</b> to the nearest penny for accuracy and real-world use. <b>Hence</b>, the total stake could be a few pence either side of your originally defined stake. (If so, you can add <b>stake adjustments</b> to rectify this)</p><hr /><p><b>However</b>, if you have added any <b>stake adjustments</b> (<em>&quot;Adj. Stake&quot; column</em>) then your &quot;<em>Total Stake</em>&quot; will have increased. You can select &quot;<em><b>Balanced Spread</b></em>&quot; in the settings above, it will balance all calculations and restore your &quot;<em>Total Stake</em>&quot; to the nearest decimal place.</p>",delay:0});var c=new Element("\x70",{className:"info_bar_left",id:PWAFZ.RCEPZ}).insert("Total Stake: <strong>&pound;0.00</strong>");jQuery(c).tooltip({title:"Total Stake",description:"<p>The total amount you will need to wager for a potential win.</p>",delay:0});var b=new Element("\x70",{className:"info_bar_right",id:PWAFZ.OXYNX}).insert("Potential Profit: <strong>&pound;0.00</strong>");jQuery(b).tooltip({title:"Potential Profit",description:PIAJQ.ACVKA("potential_profit"),left:true,delay:0});$(PSQCC).insert(new Element("\x64\x69\x76",{className:"info_bar"}).insert(c).insert(g).insert(b))},CNPYO:function(){var c=new Element("\x74\x72");var b=new Element("\x73\x70\x61\x6e").update("?");jQuery(b).tooltip({title:"Disable/Enable Selection",description:"<p>Toggle the status of a selection by clicking an icon.</p><p><b>Enabled</b> (<em>tick</em>) or <b>Disabled</b> (<em>square</em>).</p>"});c.insert(new Element("\x74\x68",{scope:"col",className:"header_0"}).update(b));var b=new Element("\x73\x70\x61\x6e").update("Selection");jQuery(b).tooltip({title:"Selection/Description",description:"<p>Relevant information about a selection such as it's name.</p><p>eg. <em><b>Horse 3 - Black Beauty</b></em>.</p>"});c.insert(new Element("\x74\x68",{scope:"col",className:"header_1"}).update(b));var b=new Element("\x73\x70\x61\x6e").update("Odd");jQuery(b).tooltip({title:"Valid Odds",description:"<table><tr><th>Fractions:</th><td>7/1, &nbsp;7-1</td></tr><tr><th>Decimals:</th><td> 2.875, &nbsp;8.50, &nbsp;7.6, &nbsp;9</td></tr><tr><th>American:</th><td> +400, &nbsp;-350</td></tr><tr><th>Evens:</th><td> evens, &nbsp;even, &nbsp;evs, &nbsp;ev</td></tr></table>"});c.insert(new Element("\x74\x68",{scope:"col",className:"header_2"}).update(b));var b=new Element("\x73\x70\x61\x6e").update("Adj. Stake");jQuery(b).tooltip({title:"Stake Adjustment",description:"<table><tr><th>Q:</th><td>Do you want to gain <b>more profit</b> from this selection?<br />Perhaps it's the <em><b>favourite</b></em> in a horse race?</td></tr><tr><th>A:</th><td>Simply type in a negative or positive number to <b>increase</b> or <b>decrease</b> the <em>profit</em>.</td></tr></table><hr /><p><b>Note:</b> Decimal places correspond to the &quot;<em>Format</em>&quot; setting above.</p>",left:false});c.insert(new Element("\x74\x68",{scope:"col",className:"header_3",colSpan:2}).update(b));var b=new Element("\x73\x70\x61\x6e").update("Stake");jQuery(b).tooltip({title:"Stake",description:"<p>The stake to place on each selection.</p>",left:true});c.insert(new Element("\x74\x68",{scope:"col",className:"header_4"}).update(b));var b=new Element("\x73\x70\x61\x6e").update("Return");jQuery(b).tooltip({title:"Return",description:"<p>The full amount you would receive if a selection won.</p><p>ie. <b>Total Stake + Profit</b></p>",left:true});c.insert(new Element("\x74\x68",{scope:"col",className:"header_5"}).update(b));var b=new Element("\x73\x70\x61\x6e").update("Profit");jQuery(b).tooltip({title:"Profit",description:"<p>The profit you would earn if a selection won.</p><p>ie. <b>Return - Total Stake</b></p>",left:true});c.insert(new Element("\x74\x68",{scope:"col",className:"header_6"}).update(b));var b=new Element("\x73\x70\x61\x6e").update("?");jQuery(b).tooltip({title:"Delete",description:"<p>Click an icon to delete a selection (row).</p>",left:true});c.insert(new Element("\x74\x68",{scope:"col",className:"header_7"}).update(b));var g=new Element("\x74\x72");var b=new Element("\x73\x70\x61\x6e",{id:PWAFZ.SKXWS,className:"probability"}).update("Probability: <b>0.00%</b> (Selections: <b>0</b> of <b>0</b>)");jQuery(b).tooltip({title:"Probability of a Win",description:"<p><b>100%</b> represents the <b>maximum</b> number of selections that you can cover, with the <b>potential of still earning profit</b>. If you <b>exceed</b> 100% then all calculations will produce <em>negative profit</em>.</p><hr /><p><b>Examples:</b></p><table><tr><th>&bull;</th><td>If you bet on <b>1</b> horse in a race then the probabilty of winning is quite <em>low</em> (eg. <b>15%</b>).</td></tr><tr><th>&bull;</th><td>If you cover the <b>maximum</b> number of horses then the probabilty of winning is <em>much higher</em> (eg. <b>98%</b>).</td></tr><tr><th>&bull;</th><td>If you cover all selections (eg. <b>167%</b>) then you will <em>never make any profit</em>.</td></tr></table>",up:true});g.insert(new Element("\x74\x64",{colSpan:"3"}).update(b));var b=new Element("\x73\x70\x61\x6e",{id:PWAFZ.MHFHU,className:"total_adjustments"}).update(BBUGE+this.VLBHA());jQuery(b).tooltip({title:"Sum of all Stake-Adjustments",description:"<p>The sum of all stake-adjustments that are in use.</p>",left:true,up:true});g.insert(new Element("\x74\x64",{colSpan:"2"}).update(b));var b=new Element("\x73\x70\x61\x6e",{id:PWAFZ.ELBIS,className:"total_stake"}).update(BBUGE+this.VLBHA());jQuery(b).tooltip({title:"Total Stake",description:"<p>The total stake required for this spread bet.</p>",left:true,up:true});g.insert(new Element("\x74\x64").update(b));g.insert(new Element("\x74\x64").update("&nbsp;"));g.insert(new Element("\x74\x64").update("&nbsp;"));g.insert(new Element("\x74\x64").update("&nbsp;"));$(PSQCC).insert(new Element("\x74\x61\x62\x6c\x65",{border:"0",cellSpacing:"0",cellPadding:"0"}).insert(new Element("\x74\x68\x65\x61\x64").insert(c)).insert(new Element("\x74\x62\x6f\x64\x79")).insert(new Element("\x74\x66\x6f\x6f\x74").insert(g)))},EEBFQ:function(){YXGPU.FVDUM();if($(PWAFZ.FNULQ).value=="y"&&BXKBV.HJEAC.match(/^\x69d.*$/)!=null&&XUDSD.TTODO.indexOf("\x74\x63")==3){$(PWAFZ.VNJFA).disabled=true;if(YXGPU.WVCGQ()>=0&&YXGPU.WVCGQ()<=LMQON.AINBT()){$(PWAFZ.VNJFA).value=parseFloat(LMQON.AINBT()-YXGPU.WVCGQ()).DHBPG();$(PWAFZ.VNJFA).className="\x73\x74\x61\x6b\x65\x5f\x69\x6e\x70\x75\x74"}else{$(PWAFZ.VNJFA).value=LMQON.AINBT();$(PWAFZ.VNJFA).className="\x73\x74\x61\x6b\x65\x5f\x69\x6e\x70\x75\x74"}}else{$(PWAFZ.VNJFA).disabled=false;$(PWAFZ.VNJFA).className="\x73\x74\x61\x6b\x65\x5f\x69\x6e\x70\x75\x74";$(PWAFZ.VNJFA).value=LMQON.AINBT()}YXGPU.JDXJA()},XDVAN:function(p,h,o,c,k){LMQON.NCZIM();var q=new Element("\x74\x72",{id:PSQCC+"_row_"+LMQON.JNEFE()});q.className=(typeof(o)!="undefined"&&o!=null&&o===true?"disabled":"enabled");for(var j=0;j<=8;j++){var b=new Element("\x74\x64");switch(j){case HAZMN.SWDTZ:b.setAttribute("width","3%");if(typeof(o)!="undefined"&&o!=null&&o===true){var s=new Element("\x69\x6d\x67",{src:"_assets/images/calculator/disabled.gif",id:PSQCC+"_disable_"+LMQON.JNEFE()})}else{var s=new Element("\x69\x6d\x67",{src:"_assets/images/calculator/enabled.gif",id:PSQCC+"_disable_"+LMQON.JNEFE()})}s.observe("click",function(i){XUDSD.EYNXW(this,true)});b.insert(s);break;case HAZMN.LITSI:b.className="\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e";b.setAttribute("width","34%");p=(typeof(p)=="string"&&p!=null?p.XTAMN():null);var n=new Element("\x69\x6e\x70\x75\x74",{type:"text",id:PSQCC+"_notes_"+LMQON.JNEFE(),size:35,value:p,className:"input"});n.observe("keydown",function(t){var i=t.keyCode||window.event||t.which;switch(i){case Event.KEY_DOWN:if(this.parentNode.parentNode.nextSibling==null){PIAJQ.XDVAN()}if(this.parentNode.parentNode.nextSibling!=null){this.parentNode.parentNode.nextSibling.childNodes[HAZMN.LITSI].firstChild.select();this.parentNode.parentNode.nextSibling.childNodes[HAZMN.LITSI].firstChild.focus()}return false;break;case Event.KEY_UP:if(this.parentNode.parentNode.previousSibling!=null&&this.parentNode.parentNode.previousSibling.childNodes[HAZMN.LITSI]!=null){this.parentNode.parentNode.previousSibling.childNodes[HAZMN.LITSI].firstChild.select();this.parentNode.parentNode.previousSibling.childNodes[HAZMN.LITSI].firstChild.focus()}return false;break;case Event.KEY_RIGHT:if(XUDSD.LEYLN(this)==this.value.length&&this.parentNode.parentNode.childNodes[HAZMN.WWLPW]!=null){this.parentNode.parentNode.childNodes[HAZMN.WWLPW].firstChild.select();this.parentNode.parentNode.childNodes[HAZMN.WWLPW].firstChild.focus();return false}break}});b.insert(n);break;case HAZMN.WWLPW:b.className="\x6f\x64\x64\x73";b.setAttribute("width","15%");h=(typeof(h)=="string"&&h!=null?h.XTAMN():null);var n=new Element("\x69\x6e\x70\x75\x74",{type:"text",id:PSQCC+"_odds_"+LMQON.JNEFE(),size:6,maxlength:8,className:"input",value:h});n.observe("keydown",function(t){var i=t.keyCode||window.event||t.which;return XUDSD.ISLFM(this,i)});n.observe("keyup",function(t){var i=t.keyCode||window.event||t.which;if(this.value.BZBFE()){this.parentNode.parentNode.className=this.parentNode.parentNode.className.replace(/(hot\s*)+$/,"");YXGPU.JDXJA();this.className="\x69\x6e\x70\x75\x74"}if(i!=Event.KEY_TAB&&i!=Event.KEY_RETURN&&i!=Event.KEY_LEFT&&i!=Event.KEY_UP&&i!=Event.KEY_RIGHT&&i!=Event.KEY_DOWN){if(this.value.EOYJA()){this.className="\x69\x6e\x70\x75\x74";YXGPU.JDXJA()}else{this.parentNode.parentNode.childNodes[HAZMN.AVXWJ].innerHTML=this.parentNode.parentNode.childNodes[HAZMN.CGJCW].innerHTML=BBUGE+"0.00";YXGPU.VVNWT(this.parentNode.parentNode,PIAJQ.VLBHA());YXGPU.JDXJA();if(!this.value.BZBFE()){this.className="\x69\x6e\x76\x61\x6c\x69\x64"}}}});b.appendChild(n);break;case HAZMN.ACVDM:b.className="\x61\x64\x6a\x75\x73\x74\x6d\x65\x6e\x74\x73";b.setAttribute("width","12%");c=(typeof(c)=="string"&&c!=null?c.XTAMN():null);var n=new Element("\x69\x6e\x70\x75\x74",{type:"text",id:PSQCC+"_adjustment_"+LMQON.JNEFE(),size:5,maxlength:8,className:"input",value:c});n.observe("keydown",function(t){var i=t.keyCode||window.event||t.which;switch(i){case Event.KEY_TAB:if(this.parentNode.parentNode.nextSibling==null){PIAJQ.XDVAN()}break;case Event.KEY_DOWN:if(this.parentNode.parentNode.nextSibling==null){PIAJQ.XDVAN()}if(this.parentNode.parentNode.nextSibling!=null){this.parentNode.parentNode.nextSibling.childNodes[3].firstChild.select();this.parentNode.parentNode.nextSibling.childNodes[3].firstChild.focus()}return false;break;case Event.KEY_UP:if(this.parentNode.parentNode.previousSibling!=null&&this.parentNode.parentNode.previousSibling.childNodes[3]!=null){this.parentNode.parentNode.previousSibling.childNodes[3].firstChild.select();this.parentNode.parentNode.previousSibling.childNodes[3].firstChild.focus()}return false;break;case Event.KEY_LEFT:if(XUDSD.LEYLN(this)<=0&&this.parentNode.parentNode.childNodes[2]!=null&&this.parentNode.parentNode.childNodes[2].firstChild!=null){this.parentNode.parentNode.childNodes[2].firstChild.select();this.parentNode.parentNode.childNodes[2].firstChild.focus();return false}break}});n.observe("keyup",function(t){var i=(t.keyCode||window.event||t.which);if(this.value.ZOHQS()||this.value.BZBFE()){this.className="\x69\x6e\x70\x75\x74";PIAJQ.EEBFQ()}else{if(!this.value.BZBFE()&&!this.value.ZOHQS()){PIAJQ.EEBFQ();this.className="\x69\x6e\x76\x61\x6c\x69\x64"}else{this.className="\x69\x6e\x70\x75\x74"}}});b.insert(n);break;case HAZMN.DCWDO:b.className="\x61\x64\x6a\x75\x73\x74\x6d\x65\x6e\x74\x5f\x62\x75\x74\x74\x6f\x6e\x73";b.setAttribute("width","3%");var s=new Element("\x69\x6d\x67",{src:"_assets/images/calculator/inc_button_up.gif"});s.observe("mouseover",function(i){this.src="_assets/images/calculator/inc_button_up_active.gif"});s.observe("mouseout",function(i){this.src="_assets/images/calculator/inc_button_up.gif"});s.observe("click",function(u){var t=this.parentNode.parentNode.childNodes[HAZMN.ACVDM].firstChild;if(t.value.BZBFE()){t.value=PIAJQ.RZFXC();t.className="\x69\x6e\x70\x75\x74"}else{if(t.value.ZOHQS()){var i=t.value.COXOB();t.className="\x69\x6e\x70\x75\x74";t.value=(parseFloat(t.value)+parseFloat((100/parseInt("100".SKZMA("0",i))))).DHBPG(i)}}PIAJQ.EEBFQ()});b.insert(s);var s=new Element("\x69\x6d\x67",{src:"_assets/images/calculator/inc_button_down.gif"});s.observe("mouseover",function(i){this.src="_assets/images/calculator/inc_button_down_active.gif"});s.observe("mouseout",function(i){this.src="_assets/images/calculator/inc_button_down.gif"});s.observe("click",function(u){var t=this.parentNode.parentNode.childNodes[HAZMN.ACVDM].firstChild;if(t.value.BZBFE()){t.value="-"+PIAJQ.RZFXC();t.className="\x69\x6e\x70\x75\x74"}else{if(t.value.ZOHQS()){var i=t.value.COXOB();t.className="\x69\x6e\x70\x75\x74";t.value=(parseFloat(t.value)-parseFloat((100/parseInt("100".SKZMA("0",i))))).DHBPG(i)}}PIAJQ.EEBFQ()});b.insert(s);break;case HAZMN.BTHVU:b.className="\x73\x74\x61\x6b\x65";b.setAttribute("width","10%");var g=new Element("\x73\x70\x61\x6e",{title:"Double-Click for easy to copy field."}).update(BBUGE+PIAJQ.VLBHA());g.observe("dblclick",function(i){PIAJQ.VPKKX(this)});b.insert(g);break;case HAZMN.AVXWJ:b.className="\x72\x65\x74\x75\x72\x6e";b.setAttribute("width","10%");b.update(BBUGE+PIAJQ.VLBHA());break;case HAZMN.CGJCW:b.className="\x70\x72\x6f\x66\x69\x74";b.setAttribute("width","10%");b.update(BBUGE+PIAJQ.VLBHA());break;case HAZMN.WXVOE:b.className="\x66\x75\x6e\x63\x74\x69\x6f\x6e\x73";b.setAttribute("width","3%");var s=new Element("\x69\x6d\x67",{src:"_assets/images/calculator/btn_delete.gif"});s.observe("mouseover",function(i){this.src="_assets/images/calculator/btn_delete_over.gif"});s.observe("mouseout",function(i){this.src="_assets/images/calculator/btn_delete.gif"});s.observe("click",function(i){XUDSD.HYBBR(this);YXGPU.JDXJA();XUDSD.VDUCJ()});b.insert(s);break}q.insert(b)}if(LMQON.TFWHS.match(/^\x69\x64\x75\x74\x63\x68$/)!=null){this.YPDFC.appendChild(q)}},DGFLB:function(b){if(b.AUMOB()&&b>0){for(var c=1;c<=b;c++){this.XDVAN()}}},SWGXR:function(){if($(PWAFZ.VNJFA).value.COPCX()){LMQON.UYXJV();$(PWAFZ.VNJFA).className="\x73\x74\x61\x6b\x65\x5f\x69\x6e\x70\x75\x74"}else{$(PWAFZ.VNJFA).className="\x73\x74\x61\x6b\x65\x5f\x69\x6e\x76\x61\x6c\x69\x64"}YXGPU.JDXJA()},RGVLN:function(h,b){switch(h){case"all":var k=this.YPDFC.parentNode;k.removeChild(this.YPDFC);k.appendChild(document.createElement("tbody"));this.YPDFC=k.getElementsByTagName("\x74\x62\x6f\x64\x79")[0];YXGPU.JDXJA();break;case"empty":var j=this.YPDFC.getElementsByTagName("\x74\x72");if(j.length>0){for(var g=(j.length-1);g>=0;g--){if(j[g].childNodes[HAZMN.LITSI].firstChild.value.BZBFE()&&j[g].childNodes[HAZMN.WWLPW].firstChild.value.BZBFE()){this.YPDFC.removeChild(j[g])}}}YXGPU.JDXJA();break;case"enabled":case"disabled":var j=this.YPDFC.getElementsByTagName("\x74\x72");if(j.length>0){for(var g=(j.length-1);g>=0;g--){if(typeof j[g].className!="undefined"&&j[g].className==h){this.YPDFC.removeChild(j[g]);XUDSD.VDUCJ()}}}YXGPU.JDXJA();break;case"invalid":var j=this.YPDFC.getElementsByTagName("\x74\x72");if(j.length>0){for(var g=(j.length-1);g>=0;g--){if(typeof(j[g].childNodes[HAZMN.WWLPW].firstChild.value)!="undefined"){var c=j[g].childNodes[HAZMN.WWLPW].firstChild.value;if(!c.EOYJA()&&c!=""){this.YPDFC.removeChild(j[g])}}}}YXGPU.JDXJA();break}XUDSD.VDUCJ(b)},QSFXS:function(c,b){c=c[0].EOYJA();b=b[0].EOYJA();return c-b},UXAGN:function(h){switch(h){case"lowest":case"highest":var j=this.YPDFC.getElementsByTagName("\x74\x72");var c=new Array();var b=0;for(var g=0;g<=(j.length-1);g++){if(j[g].className!="disabled"&&(odd=j[g].childNodes[HAZMN.WWLPW].firstChild.value.EOYJA())){c[b]=new Array();c[b][0]=odd;c[b][1]=j[g];b++}}if(c.length>0){c=c.sort(this.QSFXS);if(h=="lowest"){c[0][1].className="\x64\x69\x73\x61\x62\x6c\x65\x64";c[0][1].childNodes[HAZMN.SWDTZ].firstChild.src="_assets/images/calculator/disabled.gif"}else{c[c.length-1][1].className="\x64\x69\x73\x61\x62\x6c\x65\x64";c[c.length-1][1].childNodes[HAZMN.SWDTZ].firstChild.src="_assets/images/calculator/disabled.gif"}}break;case"all":var j=this.YPDFC.getElementsByTagName("\x74\x72");for(var g=j.length-1;g>=0;g--){j[g].className="\x64\x69\x73\x61\x62\x6c\x65\x64";j[g].childNodes[HAZMN.SWDTZ].firstChild.src="_assets/images/calculator/disabled.gif"}break}YXGPU.JDXJA()},JEQUT:function(h){switch(h){case"highest":case"lowest":var j=this.YPDFC.getElementsByTagName("\x74\x72");var c=new Array();var b=0;for(var g=0;g<=(j.length-1);g++){if(j[g].className=="disabled"&&(odd=j[g].childNodes[HAZMN.WWLPW].firstChild.value.EOYJA())){c[b]=new Array();c[b][0]=odd;c[b][1]=j[g];b++}}if(c.length>0){c=c.sort(this.QSFXS);if(h=="lowest"){c[0][1].className="\x65\x6e\x61\x62\x6c\x65\x64";c[0][1].childNodes[HAZMN.SWDTZ].firstChild.src="_assets/images/calculator/enabled.gif"}else{c[c.length-1][1].className="\x65\x6e\x61\x62\x6c\x65\x64";c[c.length-1][1].childNodes[HAZMN.SWDTZ].firstChild.src="_assets/images/calculator/enabled.gif"}}break;case"all":var j=this.YPDFC.getElementsByTagName("\x74\x72");for(var g=j.length-1;g>=0;g--){j[g].className="\x65\x6e\x61\x62\x6c\x65\x64";j[g].childNodes[HAZMN.SWDTZ].firstChild.src="_assets/images/calculator/enabled.gif"}break}YXGPU.JDXJA()},VPKKX:function(g){if(g.nodeName.toLowerCase()=="span"){var c=new Element("\x69\x6e\x70\x75\x74",{readonly:true,value:g.innerHTML.replace(/[^0-9\.]+/,""),size:g.innerHTML.length,title:"Double-Click to display as Plain Text.",className:"input"});c.observe("dblclick",function(h){PIAJQ.VPKKX(c)});c.observe("click",function(h){this.focus();this.select()});g.parentNode.appendChild(c);g.parentNode.getElementsByTagName("\x69\x6e\x70\x75\x74")[0].select();g.parentNode.removeChild(g)}else{var b=new Element("\x73\x70\x61\x6e",{title:"Double-Click for easy to copy field."}).update(BBUGE+g.value);b.observe("dblclick",function(h){PIAJQ.VPKKX(b)});g.parentNode.appendChild(b);g.parentNode.removeChild(g)}},BIYVL:function(){},RZFXC:function(c){if($(PWAFZ.NZKNY)!=null){var b=0;if(typeof(c)!="undefined"){b=c}else{b=parseFloat($(PWAFZ.NZKNY).options[$(PWAFZ.NZKNY).selectedIndex].value)}switch(b){case 0:return 1;break;case 1:return 0.1;break;default:return 0.01;break}}return false},ISAUZ:function(){if($(PWAFZ.NZKNY)!=null){return parseFloat($(PWAFZ.NZKNY).options[$(PWAFZ.NZKNY).selectedIndex].value)}return false},VLBHA:function(){if($(PWAFZ.NZKNY)!=null){var b=parseInt($(PWAFZ.NZKNY).options[$(PWAFZ.NZKNY).selectedIndex].value);switch(b){case 0:return"0";break;case 1:return"0.0";break}}return"0.00"}};var XUDSD={TTODO:location.href.replace(/(http:\/\/)?(www\.)?/,"").replace(/(\.|\/).*$/,""),HYBBR:function(c){if(c.parentNode.parentNode.nextSibling!=null){c.parentNode.parentNode.nextSibling.childNodes[2].firstChild.focus();c.parentNode.parentNode.nextSibling.childNodes[2].firstChild.select()}else{if(c.parentNode.parentNode.previousSibling!=null){c.parentNode.parentNode.previousSibling.childNodes[2].firstChild.focus();c.parentNode.parentNode.previousSibling.childNodes[2].firstChild.select()}}var b=c.parentNode.parentNode.parentNode;b.removeChild(c.parentNode.parentNode);return true},MWMQL:function(b){b.parentNode.parentNode.childNodes[0].firstChild.src="_assets/images/calculator/disabled.gif";b.parentNode.parentNode.className="\x64\x69\x73\x61\x62\x6c\x65\x64"},NLQKG:function(b){b.parentNode.parentNode.childNodes[0].firstChild.src="_assets/images/calculator/enabled.gif";b.parentNode.parentNode.className="\x65\x6e\x61\x62\x6c\x65\x64"},EYNXW:function(c,b){if(/^enabled/.test(c.parentNode.parentNode.className)){c.parentNode.parentNode.childNodes[0].firstChild.src="_assets/images/calculator/disabled.gif";c.parentNode.parentNode.className="\x64\x69\x73\x61\x62\x6c\x65\x64"}else{c.parentNode.parentNode.childNodes[0].firstChild.src="_assets/images/calculator/enabled.gif";c.parentNode.parentNode.className="\x65\x6e\x61\x62\x6c\x65\x64"}if(typeof(b)!="undefined"&&b!=false){YXGPU.JDXJA()}},VDUCJ:function(b){var c=$(PSQCC).getElementsByTagName("\x74\x62\x6f\x64\x79")[0];if(c.getElementsByTagName("\x74\x72").length==0&&typeof(b)=="undefined"){PIAJQ.XDVAN()}},LEYLN:function(c){if(c.createTextRange){c.focus();var b=document.selection.createRange().duplicate();b.moveEnd("character",c.value.length);if(r.text==""){return c.value.length}return c.value.lastIndexOf(b.text)}else{return c.selectionStart}},ISLFM:function(c,b){switch(b){case 40:if(c.parentNode.parentNode.nextSibling==null){PIAJQ.XDVAN()}if(c.parentNode.parentNode.nextSibling!=null){c.parentNode.parentNode.nextSibling.childNodes[2].firstChild.select();c.parentNode.parentNode.nextSibling.childNodes[2].firstChild.focus()}return false;break;case 38:if(c.parentNode.parentNode.previousSibling!=null&&c.parentNode.parentNode.previousSibling.childNodes[2]!=null){c.parentNode.parentNode.previousSibling.childNodes[2].firstChild.select();c.parentNode.parentNode.previousSibling.childNodes[2].firstChild.focus()}return false;break;case 37:if(this.LEYLN(c)<=0&&c.parentNode.parentNode.childNodes[1]!=null&&c.parentNode.parentNode.childNodes[1].firstChild!=null){c.parentNode.parentNode.childNodes[1].firstChild.select();c.parentNode.parentNode.childNodes[1].firstChild.focus();return false}break;case 39:if(this.LEYLN(c)>=c.value.length&&c.parentNode.parentNode.childNodes[3]!=null&&c.parentNode.parentNode.childNodes[3].firstChild!=null){c.parentNode.parentNode.childNodes[3].firstChild.select();c.parentNode.parentNode.childNodes[3].firstChild.focus();return false}break}}};var YXGPU={EVEUZ:new Array(),FNFDK:new Array(),FSZXI:new Array(),NKQNK:new Array(),TBVOU:0,FVRYM:new Array(),RZAXY:0,FIXSP:false,UMOVS:0,BPEYQ:new Array(),LGUSE:false,KEFJG:0,IPDBF:0,WBNCM:new Array(),GWWKH:document.domain.replace(/(http:\/\/)?(www\.)?/,"").replace(/(\.|\/).*$/,""),WVCGQ:function(){return this.TBVOU},PBPBS:function(){this.FIXSP=$(PWAFZ.VNJFA).value;if(!this.FIXSP.COPCX()){this.FIXSP=false}return this.FIXSP},FVDUM:function(){var c=$(PSQCC).getElementsByTagName("\x74\x62\x6f\x64\x79")[0].getElementsByTagName("\x74\x72");this.NKQNK=new Array();this.TBVOU=0;if(c!=""&&c.length>0){for(var b=0;b<=c.length-1;b++){if(c[b].className!="disabled"&&c[b].childNodes[HAZMN.WWLPW].firstChild.value.EOYJA()){if(c[b].childNodes[HAZMN.ACVDM].childNodes[0].value.ZOHQS()){c[b].childNodes[HAZMN.ACVDM].childNodes[0].className="\x69\x6e\x70\x75\x74";this.NKQNK[b]=c[b].childNodes[HAZMN.ACVDM].childNodes[0].value;this.TBVOU+=parseFloat(this.NKQNK[b])}else{if(!c[b].childNodes[HAZMN.ACVDM].childNodes[0].value.ZOHQS()&&!c[b].childNodes[HAZMN.ACVDM].childNodes[0].value.BZBFE()){c[b].childNodes[HAZMN.ACVDM].childNodes[0].className="\x69\x6e\x76\x61\x6c\x69\x64"}else{c[b].childNodes[HAZMN.ACVDM].childNodes[0].className="\x69\x6e\x70\x75\x74"}}}else{if(!c[b].childNodes[HAZMN.ACVDM].childNodes[0].value.ZOHQS()&&!c[b].childNodes[HAZMN.ACVDM].childNodes[0].value.BZBFE()){c[b].childNodes[HAZMN.ACVDM].childNodes[0].className="\x69\x6e\x76\x61\x6c\x69\x64"}else{c[b].childNodes[HAZMN.ACVDM].childNodes[0].className="\x69\x6e\x70\x75\x74"}}}$(PWAFZ.MHFHU).innerHTML=BBUGE+this.TBVOU.DHBPG();return this.TBVOU}},LWMGT:function(c,b){c=c[0].EOYJA();b=b[0].EOYJA();return c-b},BXKDH:function(){this.PBPBS();var c=$(PSQCC).getElementsByTagName("\x74\x62\x6f\x64\x79")[0].getElementsByTagName("\x74\x72");var g=false;this.KEFJG=0;this.IPDBF=0;if(c.length>0){for(var b=0;b<=c.length-1;b++){if(c[b].childNodes[HAZMN.WWLPW].firstChild.value.EOYJA()!==false){this.IPDBF++}if(c[b].className!="disabled"&&(g=c[b].childNodes[HAZMN.WWLPW].firstChild.value.EOYJA())!==false){this.KEFJG++;this.EVEUZ[b]=g;this.RZAXY+=parseFloat((100/this.EVEUZ[b]).DHBPG());if(c[b].childNodes[HAZMN.ACVDM].childNodes[0].value.ZOHQS()){this.NKQNK[b]=c[b].childNodes[HAZMN.ACVDM].childNodes[0].value;this.TBVOU+=parseFloat(this.NKQNK[b])}}else{this.VVNWT(c[b],PIAJQ.VLBHA());c[b].childNodes[HAZMN.AVXWJ].innerHTML=c[b].childNodes[HAZMN.CGJCW].innerHTML=BBUGE+PIAJQ.VLBHA()}}this.RZAXY=this.RZAXY.DHBPG();$(PWAFZ.SKXWS).innerHTML="Probability: <b>"+this.RZAXY+"%</b> (Selections: <b>"+this.KEFJG+"</b> of <b>"+this.IPDBF+"</b>)";$(PWAFZ.MHFHU).innerHTML=BBUGE+this.TBVOU.DHBPG()}},UTQHU:function(){this.PBPBS();var n=$(PSQCC).getElementsByTagName("\x74\x62\x6f\x64\x79")[0].getElementsByTagName("\x74\x72");var k=false;var j=new Array();this.KEFJG=0;this.IPDBF=0;for(var h=0;h<=n.length-1;h++){j[h]=new Array(n[h].childNodes[HAZMN.WWLPW].firstChild.value,n[h],h)}n=j.sort(this.LWMGT);var b=null;var g=0;$(PWAFZ.FNULQ).checked=false;$(PWAFZ.VNJFA).value=LMQON.AINBT();if(n.length>0){for(var c=0;c<=n.length-1;c++){b=null;XUDSD.NLQKG(n[c][1].firstChild.firstChild);if(k==true){XUDSD.MWMQL(n[c][1].firstChild.firstChild)}if((b=n[c][0].EOYJA())!==false){this.IPDBF++}if(n[c][1].className!="disabled"&&(b=n[c][0].EOYJA())!==false){this.KEFJG++;g+=parseFloat((100/b).DHBPG());n[c][1].childNodes[HAZMN.ACVDM].childNodes[0].value="";if(g>=100){XUDSD.MWMQL(n[c][1].firstChild.firstChild);this.VVNWT(n[c][1],PIAJQ.VLBHA());n[c][1].childNodes[HAZMN.AVXWJ].innerHTML=n[c][1].childNodes[HAZMN.CGJCW].innerHTML=BBUGE+PIAJQ.VLBHA();this.KEFJG--;k=true}else{this.EVEUZ[n[c][2]]=b;this.RZAXY=g;this.TBVOU=0}}else{this.VVNWT(n[c][1],PIAJQ.VLBHA());n[c][1].childNodes[HAZMN.AVXWJ].innerHTML=n[c][1].childNodes[HAZMN.CGJCW].innerHTML=BBUGE+PIAJQ.VLBHA()}}this.RZAXY=this.RZAXY.DHBPG();$(PWAFZ.SKXWS).innerHTML="Probability: <b>"+this.RZAXY+"%</b> (Selections: <b>"+this.KEFJG+"</b> of <b>"+this.IPDBF+"</b>)";$(PWAFZ.MHFHU).innerHTML=BBUGE+this.TBVOU.DHBPG()}},JDXJA:function(b){this.EVEUZ=new Array();this.FSZXI=new Array();this.NKQNK=new Array();this.TBVOU=0;this.FVRYM["\x6f\x75\x74\x6c\x61\x79"]=0;this.FVRYM["\x72\x65\x74\x75\x72\x6e"]=0;this.FVRYM["\x70\x72\x6f\x66\x69\x74"]=0;this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]=null;this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"]=null;this.RZAXY=0;this.LGUSE=false;this.FNFDK=$(PSQCC).getElementsByTagName("\x74\x62\x6f\x64\x79")[0].getElementsByTagName("\x74\x72");if(typeof(b)!="undefined"){this.UTQHU();this.LGUSE=true}else{this.BXKDH()}var g=$(PWAFZ.ZQVER).options[$(PWAFZ.ZQVER).selectedIndex].value;switch(g){case"return":this.BGRAD();break;case"profit":this.NAILR();break;default:case"wager":if(PIAJQ.PCLAU.replace(/^\x69|\x75|\x74|\x68$/g,"").match(/^d\x63$/)!=null){this.JUNHM()}break}if($(PWAFZ.VNJFA).value.COPCX()){$(PWAFZ.VNJFA).className="\x73\x74\x61\x6b\x65\x5f\x69\x6e\x70\x75\x74"}for(var c=0;c<=(this.EVEUZ.length-1);c++){if(typeof(this.EVEUZ[c])!="undefined"){var h=(this.FSZXI[c]-this.FVRYM["\x6f\x75\x74\x6c\x61\x79"]).DHBPG();if(PWAFZ.ENKYL.match(/^.{5}\x68$/)!=null&&PWAFZ.ENKYL.indexOf("\x64\x75")==1){this.DKPKT(h,this.FNFDK[c])}if(h.BKWFH()){this.FNFDK[c].childNodes[HAZMN.CGJCW].innerHTML=BBUGE+h}else{this.FNFDK[c].childNodes[HAZMN.CGJCW].innerHTML=BBUGE+PIAJQ.VLBHA()}}}if(this.UMOVS>0&&this.LGUSE==true){this.LGUSE=false;PIAJQ.UXAGN("highest")}$(PWAFZ.ELBIS).innerHTML=BBUGE+(this.FVRYM["\x6f\x75\x74\x6c\x61\x79"].toString().BKWFH()?parseFloat(this.FVRYM["\x6f\x75\x74\x6c\x61\x79"]).DHBPG():PIAJQ.VLBHA());if(this.FVRYM["\x6f\x75\x74\x6c\x61\x79"].BKWFH()&&parseFloat(this.FVRYM["\x6f\x75\x74\x6c\x61\x79"].DHBPG())>parseFloat(LMQON.AINBT().DHBPG())&&g=="wager"){$(PWAFZ.LLCNR).update("<em>("+BBUGE+(this.FVRYM["\x6f\x75\x74\x6c\x61\x79"]-LMQON.AINBT()).DHBPG()+" over original stake, <b>why?</b>)</em>");$(PWAFZ.LLCNR).show()}else{$(PWAFZ.LLCNR).hide()}$(PWAFZ.RCEPZ).innerHTML="Total Stake: <strong>"+BBUGE+(this.FVRYM["\x6f\x75\x74\x6c\x61\x79"].BKWFH()?parseFloat(this.FVRYM["\x6f\x75\x74\x6c\x61\x79"]).DHBPG():PIAJQ.VLBHA())+"</strong>";if(parseFloat(this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"])<0.01||parseFloat(this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"])<0.01){$(PWAFZ.OXYNX).className+=" red";$(PWAFZ.OXYNX).innerHTML="No Profit";$(PSQCC+"_summary").childNodes[1].innerHTML="<acroynm title='Not Applicable'>n/a</acroynm>";$(PSQCC+"_summary").childNodes[2].innerHTML="No Profit";$(PSQCC+"_summary").childNodes[3].innerHTML="<acroynm title='Not Applicable'>n/a</acroynm>";this.OTZDU(0);jQuery("#"+PWAFZ.OXYNX).tooltip({title:"No Profit",description:"<p>Negative profit has been calculated, please <b><em>disable a selection</em></b> or click <em><b>Optimize</b></em> to produce positive profit. It's also worth changing the &quot;<em>Format</em>&quot; setting to a higher decimal place setting.</p><hr /><p><b>Tip:</b> Your probability must be <em>100% or below</em> for positive profit. <em>(See bottom-left of table)</em></p>",left:true,delay:0})}else{$(PWAFZ.OXYNX).className=$(PWAFZ.OXYNX).className.replace(/(\s*red\s*)+/,"");$(PWAFZ.OXYNX).innerHTML="Potential Profit: <strong>"+BBUGE+(this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]!=null&&this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"].BKWFH()?this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]:"0.00")+"</strong>"+(this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]!=this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"]&&this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"].BKWFH()?" to <strong>&pound;"+this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"]+"</strong>":"");if(this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]!=null&&this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"].BKWFH()){$(PSQCC+"_summary").firstChild.className="\x64\x73\x5f\x74\x61\x62";$(PSQCC+"_summary").childNodes[2].innerHTML=BBUGE+"<strong>"+(this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]!=null&&this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"].BKWFH()?this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]:"0.00")+"</strong>"+(this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]!=this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"]&&this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"].BKWFH()?" to &pound;<strong>"+this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"]+"</strong>":"");$(PSQCC+"_summary").childNodes[1].innerHTML=BBUGE+"<strong>"+(this.FVRYM["\x6f\x75\x74\x6c\x61\x79"].BKWFH()?parseFloat(this.FVRYM["\x6f\x75\x74\x6c\x61\x79"]).DHBPG():PIAJQ.VLBHA())+"</strong>";$(PSQCC+"_summary").childNodes[3].innerHTML=this.RZAXY+"% ("+this.KEFJG+" of "+this.IPDBF+")";if(this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]!=null&&this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"].BKWFH()){this.OTZDU(this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"])}else{this.OTZDU(0)}}else{$(PSQCC+"_summary").firstChild.className="\x64\x73\x5f\x74\x61\x62\x5f\x65\x6d\x70\x74\x79";$(PSQCC+"_summary").childNodes[1].innerHTML=$(PSQCC+"_summary").childNodes[2].innerHTML=$(PSQCC+"_summary").childNodes[3].innerHTML="&nbsp;";this.OTZDU(0)}jQuery("#"+PWAFZ.OXYNX).tooltip({title:"Potential Profit",description:PIAJQ.ACVKA("potential_profit"),left:true,delay:0})}if(this.LGUSE==true&&BXKBV.HJEAC.replace(/^\x69|\x75|\x74|\x68$/g,"").match(/^d\x63$/)!=null){$("\x63\x6f\x6e\x66\x69\x72\x6d\x61\x74\x69\x6f\x6e").update("Optimized");jQuery("\x23\x63\x6f\x6e\x66\x69\x72\x6d\x61\x74\x69\x6f\x6e").show().animate({opacity:1},3000).fadeOut(1000)}this.UMOVS=0;this.LGUSE=false},OTZDU:function(b){var g=PSQCC.replace(/[^0-9]/gi,"");this.WBNCM[g]=b;var h=new Array(g,b);for(var c=1;c<=9;c++){if(typeof(this.WBNCM[c])!="undefined"&&parseFloat(this.WBNCM[c])>parseFloat(h[1])){h=new Array(c,this.WBNCM[c])}}for(var j=1;j<=10;j++){$("\x64\x75\x74\x63\x68\x5f"+j+"_summary").className=""}if(h[0]>0&&parseFloat(h[1])>0){$("\x64\x75\x74\x63\x68\x5f"+h[0]+"_summary").className="\x68\x69\x67\x68\x65\x73\x74"}else{if(parseFloat(b)>0){$(PSQCC+"_summary").className="\x68\x69\x67\x68\x65\x73\x74"}}},DKPKT:function(b,c){if(parseFloat(b)<this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]||this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]==null){this.BPEYQ["\x6c\x6f\x77\x65\x73\x74"]=b}if(parseFloat(b)>this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"]||this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"]==null){this.BPEYQ["\x68\x69\x67\x68\x65\x73\x74"]=b}var g=$(PSQCC).getElementsByTagName("\x74\x61\x62\x6c\x65")[0];if(parseFloat(b)<0.01||!b.IONWD()){g.className="\x68\x6f\x74";if(!c.className.match(/hot$/)){c.className+=" hot"}this.UMOVS++}else{c.className=c.className.replace(/(\s+hot)+$/g,"")}return g},VVNWT:function(c,b){b=(b.toString().IONWD()?parseFloat(b).DHBPG():PIAJQ.VLBHA());if(c.childNodes[HAZMN.BTHVU].firstChild.nodeName.toLowerCase()=="span"){c.childNodes[HAZMN.BTHVU].firstChild.innerHTML=BBUGE+b}else{c.childNodes[HAZMN.BTHVU].firstChild.value=b;c.childNodes[HAZMN.BTHVU].firstChild.setAttribute("size",b.length)}},JUNHM:function(){if(this.PBPBS()!=false){for(var h=0;h<=(this.EVEUZ.length)-1;h++){if(typeof(this.EVEUZ[h])!="undefined"){var g=XUDSD.TTODO;if(g.match(/^\x69d.*$/)!=null&&g.indexOf("\x74\x63")==3){var c=parseFloat(((100/this.EVEUZ[h])/this.RZAXY)*this.FIXSP).DHBPG()}if(c<PIAJQ.RZFXC()){c=PIAJQ.RZFXC()}if(typeof(this.NKQNK[h])!="undefined"){c=parseFloat(c)+parseFloat(this.NKQNK[h])}this.VVNWT(this.FNFDK[h],c);var b=parseFloat((c*this.EVEUZ[h])).DHBPG();this.FNFDK[h].childNodes[HAZMN.AVXWJ].innerHTML=BBUGE+b;this.FSZXI[h]=b;this.FVRYM["\x6f\x75\x74\x6c\x61\x79"]+=parseFloat(c)}}}},NAILR:function(){if(this.PBPBS()!=false){var b=0;var i=0;var c=new Array();var h=new Array();for(var k=0;k<=(this.EVEUZ.length)-1;k++){if(typeof(this.EVEUZ[k])!="undefined"){b+=(1/this.EVEUZ[k])}}var j=PIAJQ.PCLAU;b=((1-b)/b);b=(1/b);i=(this.FIXSP*(b+1));for(var k=0;k<=(this.EVEUZ.length)-1;k++){if(typeof(this.EVEUZ[k])!="undefined"&&j.match(/^.{5}\x68$/)!=null&&j.indexOf("\x64\x75")==1){if((i/this.EVEUZ[k])<PIAJQ.RZFXC()){c[k]=PIAJQ.RZFXC()+parseFloat(this.NKQNK[k])}else{if(typeof(this.NKQNK[k])!="undefined"){c[k]=(i/this.EVEUZ[k])+parseFloat(this.NKQNK[k])}else{c[k]=(i/this.EVEUZ[k])}}this.VVNWT(this.FNFDK[k],c[k]);this.FVRYM["\x6f\x75\x74\x6c\x61\x79"]+=parseFloat(c[k].DHBPG());if(BXKBV.HJEAC.match(/^\x69\x64\x75\x74\x63\x68$/)!=null){h[k]=c[k].DHBPG()*this.EVEUZ[k]}this.FSZXI[k]=h[k];var g=(h[k].toString().BKWFH()?parseFloat(h[k]).DHBPG():PIAJQ.VLBHA());this.FNFDK[k].childNodes[HAZMN.AVXWJ].innerHTML=BBUGE+g}}}},BGRAD:function(){if(this.PBPBS()!=false){var b=new Array();var c=new Array();for(var g=0;g<=(this.EVEUZ.length)-1;g++){if(typeof(this.EVEUZ[g])!="undefined"){if(typeof(this.NKQNK[g])!="undefined"){b[g]=(this.FIXSP/this.EVEUZ[g])+parseFloat(this.NKQNK[g])}else{b[g]=(this.FIXSP/this.EVEUZ[g])}if(b[g]<PIAJQ.RZFXC()){b[g]=PIAJQ.RZFXC()}this.VVNWT(this.FNFDK[g],b[g]);this.FSZXI[g]=c[g]=(b[g].DHBPG()*this.EVEUZ[g]);this.FVRYM["\x6f\x75\x74\x6c\x61\x79"]+=parseFloat(b[g].DHBPG());this.FNFDK[g].childNodes[HAZMN.AVXWJ].innerHTML=BBUGE+parseFloat(c[g]).DHBPG()}}}}};var BXKBV={EEWCI:115,ZDUZN:"",HJEAC:document.domain.replace(/(http:\/\/)?(www\.)?/,"").replace(/(\.|\/).*$/,""),VNEXP:function(){$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x74\x65\x78\x74").value="";this.AGKIY()},MEDOW:function(){this.AGKIY();var x=new Array("cras ornare leo at congue fringilla, mauris est sagittis est iaculis fringilla lorem massa vitae neque praesent est leo pharetra in aliquam in viverra ac neque quisque aliquam viverra","vel tempus mi sagittis nec in ultricies placerat justo ut porta velit tristique nec sed vitae enim at dolor posuere ullamcorper ut at lorem pellentesque quam odio imperdiet eu semper at","sagittis ut diam aenean in velit magna vel consequat turpis nam cursus ante in libero viverra varius pellentesque pharetra orci eu velit viverra a convallis erat interdum proin a diam","vestibulum a lorem mi in ornare metus donec consequat scelerisque varius suspendisse felis eros eleifend ac pharetra a egestas sit amet mi fusce a eros leo eget luctus metus","donec auctor neque in risus condimentum condimentum nulla massa elit mollis et scelerisque vitae aliquet aliquam augue etiam sit amet lectus tellus nullam vel nibh non dui pharetrau");var o=new Array(20,60,35);var b=new Array();b["\x64\x65\x63\x69\x6d\x61\x6c"]=new Array("26.00","21.00","17.00","15.00","12.00","10.00","8.00","6.50","4.00","3.50");b["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x6c\x61\x72\x67\x65"]=new Array("26.000","21.500","17.678","15.560","12.050","10.333","8.600","6.750","4.300","3.250");b["\x66\x72\x61\x63\x74\x69\x6f\x6e\x61\x6c"]=new Array("25/1","20/1","16/1","14/1","11/1","9/1","7/1","11/2","3/1","5/2");b["\x66\x72\x61\x63\x74\x69\x6f\x6e\x61\x6c\x5f\x68\x79\x70\x65\x6e"]=new Array("25-1","20-1","16-1","14-1","11-1","9-1","7-1","11-2","3-1","5-2");b["\x61\x6d\x65\x72\x69\x63\x61\x6e"]=new Array("+2500","+2000","+1600","+1400","+1100","+900","+700","+550","+300","+250");var v=$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x74\x72\x61\x63\x74").options[$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x74\x72\x61\x63\x74").selectedIndex].value;var h=$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x66\x72\x6f\x6d").options[$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x66\x72\x6f\x6d").selectedIndex].value;if(v=="auto"){v="decimal"}var u=0;var w=-1;var t=true;var g="<p>"+x[0].substring(0,this.EEWCI)+"</p>";for(var s=0;s<=3;s++){var c="";if(s<3){if(h=="anywhere"){u=2}else{u=9-(s*2)}if(h=="both"){c+=" <span><b>"+b[v][0]+"</b> <b>Selection "+(s+1)+"</b> <b>"+b[v][0]+"</b></span> "}else{if(h.match(/pos_\d+/)!=null){w=h.replace(/pos_/,"");h="position"}if(w!=-1&&(w-1)>u){c+=" Selection "+(s+1);t=false}else{c+=" <span><b>Selection "+(s+1)+"</b>";t=true}for(var p=0;p<=u;p++){switch(h){case"end":if(p==(9-(s*2))){c+=" &nbsp;<b>"+b[v][p]+"</b>"}else{c+=" &nbsp;"+b[v][p]}break;case"start":if(p==0){c+=" <b>"+b[v][p]+"</b>"}else{c+=" &nbsp;"+b[v][p]}break;case"anywhere":c+=" <b>"+b[v][p]+"</b>";break;case"position":if(p==(w-1)){c+=(p==0?"":" ")+"&nbsp;<b>"+b[v][p]+"</b>"}else{c+=" &nbsp;"+b[v][p]}break}}}var q=c.replace(/&nbsp;/g," ").replace(/<\/?(b|span)>/g,"").length;if(t==true){c+=" </span> "}var k=Math.round(((this.EEWCI-q)/100)*o[s]);var j=(this.EEWCI-q)-k;c=x[s].substring(0,k)+" "+c+" "+x[s].substring(0,j);g+='<p class="less">'+c+"</p>"}}g+="<p>"+x[4].substring(0,this.EEWCI)+"</p>";$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x61\x6d\x70\x6c\x65").update(g);jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x61\x6d\x70\x6c\x65").hide().fadeIn("normal")},EFUQJ:function(){if(!this.ZDUZN.BZBFE()){$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x74\x65\x78\x74").value=this.ZDUZN}},AGKIY:function(){var b=$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x74\x65\x78\x74").value;var c=$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x74\x72\x61\x63\x74").options[$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x74\x72\x61\x63\x74").selectedIndex].value;if(b.length>2000&&c=="auto"){$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6c\x61\x72\x67\x65\x5f\x74\x65\x78\x74").update("Just so you know, the <b>extraction will take a few seconds longer.</b><br />Larger quantities of text require a few extra seconds of processing time when using &quot;Auto-Extract&quot;.");jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6c\x61\x72\x67\x65\x5f\x74\x65\x78\x74").fadeIn("normal")}else{jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6c\x61\x72\x67\x65\x5f\x74\x65\x78\x74").fadeOut("normal")}},MXPRN:function(b){return b.replace(/\n+/g,"\n").replace(/\r+/g,"\r").replace(/ +/g," ").replace(/\t+/g,"\t")},VCJUB:function(c,b){c=c[0].EOYJA();b=b[0].EOYJA();return c-b},GLKFC:function(c,b){c=c[0].EOYJA();b=b[0].EOYJA();return b-c},EINXX:function(c,b){if(c.XTAMN().length==b.XTAMN().length){return 0}return((c.XTAMN().length<b.XTAMN().length)?-1:1)},NGOWQ:function(c,b){return(b[1]-c[1])},WCXCU:function(b){b=b.replace(/\+?\d+\s*(more)?\s+bets?\s+((\*|o)\s.+?[\n\r]+\s*)+/gim,"");b=b.replace(/\*\s+o\s+.+?([\n\r]+\s*|$)+/gim,"");b=b.replace(/(more\s+bets|stats|\+\s*\d+\s+bets|all\s+bets|add\s+to\s+betslip|bet|spotlights?|sp|last\s+run\s+details?\s+>|)\b/gim,"");b=b.replace(/(show|hide)\s+all\s*\|?/gim,"");b=b.replace(/\+\d+\s+\[\s*View\s*\]/im,"");b=b.replace(/[\n\r]+/im,"\n");return b},VHTWF:function(b){b=b.replace(/\s+/gm," ");b=b.replace(/\s*\(\s*\)\s*/gim," ");b=b.replace(/(\s*\*\s*)+/gim," * ");return b},ECCEM:function(b){var w=$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x74\x65\x78\x74").value;var t=$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x74\x72\x61\x63\x74").options[$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x74\x72\x61\x63\x74").selectedIndex].value;var y=$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x66\x72\x6f\x6d").options[$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x66\x72\x6f\x6d").selectedIndex].value;var x=$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6f\x72\x64\x65\x72").options[$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6f\x72\x64\x65\x72").selectedIndex].value;var C=$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6f\x75\x74\x70\x75\x74").options[$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6f\x75\x74\x70\x75\x74").selectedIndex].value;var q=new Array();var E=new Array();var s=new Array();var p=0;if(!w.BZBFE()){var g=new Array();g["\x64\x65\x63\x69\x6d\x61\x6c"]=/((.|[\n\r])+?)\s+(([1-9][0-9]*\.[0-9]{2}|\bevens\b|\beven\b|\bevs\b|\bev\b)(\s+|$))+/gim;g["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x73\x74\x61\x72\x74"]=/^(([1-9][0-9]*\.[0-9]{2}|\bevens\b|\beven\b|\bevs\b|\bev\b)\s*)+/gim;g["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x65\x6e\x64"]=/(^|\s)(([1-9][0-9]*\.[0-9]{2}|\bevens\b|\beven\b|\bevs\b|\bev\b)\s*)+$/gim;g["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x62\x6f\x74\x68"]=/([1-9][0-9]*\.[0-9]{2}|\bevens\b|\beven\b|\bevs\b|\bev\b)((.|[\n\r])+?)([1-9][0-9]*\.[0-9]{2}|\bevens\b|\beven\b|\bevs\b|\bev\b)/gim;g["\x64\x65\x63\x69\x6d\x61\x6c"]=/((.|[\n\r])+?)\s+(([1-9][0-9]*\.[0-9]{2})(\s+|$))+/gim;g["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x73\x74\x61\x72\x74"]=/^(([1-9][0-9]*\.[0-9]{2})\s*)+/gim;g["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x65\x6e\x64"]=/(^|\s)(([1-9][0-9]*\.[0-9]{2})\s*)+$/gim;g["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x62\x6f\x74\x68"]=/([1-9][0-9]*\.[0-9]{2})((.|[\n\r])+?)([1-9][0-9]*\.[0-9]{2})/gim;g["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x6c\x61\x72\x67\x65"]=/((.|[\n\r])+?)\s+(([1-9][0-9]*\.[0-9]{3}|\bevens\b|\beven\b|\bevs\b|\bev\b)(\s+|$))+/gim;g["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x6c\x61\x72\x67\x65\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x73\x74\x61\x72\x74"]=/^(([1-9][0-9]*\.[0-9]{3}|\bevens\b|\beven\b|\bevs\b|\bev\b)\s*)+/gim;g["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x6c\x61\x72\x67\x65\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x65\x6e\x64"]=/(^|\s)(([1-9][0-9]*\.[0-9]{3}|\bevens\b|\beven\b|\bevs\b|\bev\b)\s*)+$/gim;g["\x64\x65\x63\x69\x6d\x61\x6c\x5f\x6c\x61\x72\x67\x65\x5f\x62\x6f\x74\x68"]=/([1-9][0-9]*\.[0-9]{3}|\bevens\b|\beven\b|\bevs\b|\bev\b)((.|[\n\r])+?)([1-9][0-9]*\.[0-9]{3}|\bevens\b|\beven\b|\bevs\b|\bev\b)/gim;g["\x66\x72\x61\x63\x74\x69\x6f\x6e\x61\x6c"]=/((.|[\n\r])+?)\s+(([1-9][0-9]*\/[1-9][0-9]*|\bevens\b|\beven\b|\bevs\b|\bev\b)(\s+|$))+/gim;g["\x66\x72\x61\x63\x74\x69\x6f\x6e\x61\x6c\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x73\x74\x61\x72\x74"]=/^(([1-9][0-9]*\/[1-9][0-9]*|\bevens\b|\beven\b|\bevs\b|\bev\b)\s*)+/gim;g["\x66\x72\x61\x63\x74\x69\x6f\x6e\x61\x6c\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x65\x6e\x64"]=/(^|\s)(([1-9][0-9]*\/[1-9][0-9]*|\bevens\b|\beven\b|\bevs\b|\bev\b)\s*)+$/gim;g["\x66\x72\x61\x63\x74\x69\x6f\x6e\x61\x6c\x5f\x62\x6f\x74\x68"]=/([1-9][0-9]*\/[1-9][0-9]*|\bevens\b|\beven\b|\bevs\b|\bev\b)((.|[\n\r])+?)([1-9][0-9]*\/[1-9][0-9]*|\bevens\b|\beven\b|\bevs\b|\bev\b)/gim;g["\x66\x72\x61\x63\x74\x69\x6f\x6e\x61\x6c\x5f\x68\x79\x70\x65\x6e"]=/((.|[\n\r])+?)\s+(([1-9][0-9]* ?- ?[1-9][0-9]*|\bevens\b|\beven\b|\bevs\b|\bev\b)(\s+|$))+/gim;g["\x66\x72\x61\x63\x74\x69\x6f\x6e\x61\x6c\x5f\x68\x79\x70\x65\x6e\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x73\x74\x61\x72\x74"]=/^(([1-9][0-9]* ?- ?[1-9][0-9]*|\bevens\b|\beven\b|\bevs\b|\bev\b)\s*)+/gim;g["\x66\x72\x61\x63\x74\x69\x6f\x6e\x61\x6c\x5f\x68\x79\x70\x65\x6e\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x65\x6e\x64"]=/(^|\s)(([1-9][0-9]* ?- ?[1-9][0-9]*|\bevens\b|\beven\b|\bevs\b|\bev\b)\s*)+$/gim;g["\x66\x72\x61\x63\x74\x69\x6f\x6e\x61\x6c\x5f\x68\x79\x70\x65\x6e\x5f\x62\x6f\x74\x68"]=/([1-9][0-9]* ?- ?[1-9][0-9]*|\bevens\b|\beven\b|\bevs\b|\bev\b)((.|[\n\r])+?)([1-9][0-9]* ?- ?[1-9][0-9]*|\bevens\b|\beven\b|\bevs\b|\bev\b)/gim;g["\x61\x6d\x65\x72\x69\x63\x61\x6e"]=/(.|[\r\n])+?\s+(((-|\+)[1-9][0-9]+|\bevens\b|\beven\b|\bevs\b|\bev\b)(\s+|$))+/gim;g["\x61\x6d\x65\x72\x69\x63\x61\x6e\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x73\x74\x61\x72\x74"]=/^(((-|\+)[1-9][0-9]+|\bevens\b|\beven\b|\bevs\b|\bev\b)\s*)+/gim;g["\x61\x6d\x65\x72\x69\x63\x61\x6e\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x65\x6e\x64"]=/(^|\s)(((-|\+)[1-9][0-9]+|\bevens\b|\beven\b|\bevs\b|\bev\b)\s*)+$/gim;g["\x61\x6d\x65\x72\x69\x63\x61\x6e\x5f\x62\x6f\x74\x68"]=/((-|\+)[1-9][0-9]+|\bevens\b|\beven\b|\bevs\b|\bev\b)((.|[\n\r])+?)((-|\+)[1-9][0-9]+|\bevens\b|\beven\b|\bevs\b|\bev\b)/gim;w=this.MXPRN(w);w=this.WCXCU(w);if(t=="auto"){var o=new Array("decimal","fractional","american","decimal_large","fractional_hypen");var c=new Array();var n=0;for(var B=0;B<=(o.length-1);B++){t=o[B];c[B]=w.match(g[(y=="both"?t+"_both":t)]);if(c[B]!=null){if(c[n]!=null){if(c[B].length>c[n].length){n=B}}else{if(c[B].length>0){n=B}}}}if(n==4){var v=new Array();for(var B=0;B<=(o.length-1);B++){if(c[B]==null){v[B]=new Array(B,0)}else{v[B]=new Array(B,((100/c[n].length)*c[B].length).DHBPG(0))}}v.sort(this.NGOWQ);if((v[0][1]-v[1][1])<80){n=v[1][0]}}q=c[n];c=new Array();t=o[n]}else{q=w.match(g[(y=="both"?t+"_both":t)])}if(q!=null&&q.length>0){for(var B=0;B<=q.length-1;B++){if(PIAJQ.PCLAU.replace(/^\x69|\x75|\x74|\x68$/g,"").length==2){var j=q[B].match(g[t+"_extract_start"]);var z=q[B].match(g[t+"_extract_end"])}E[B]=new Array();if(j!=null){j=j[0].XTAMN().split(/\s+/gm)}z=z[0].XTAMN().split(/\s+/gm);if(j!=null){E[B]["\x6f\x64\x64\x73"]=j.concat(z)}else{E[B]["\x6f\x64\x64\x73"]=z}var D=q[B].replace(g[t+"_extract_end"],"").replace(g[t+"_extract_start"],"");var u=D.split(/[\n\r]+/im);u.sort(this.EINXX);E[B]["\x73\x65\x6c\x65\x63\x74\x69\x6f\x6e"]=this.VHTWF(u.join(" "))}if(E!=null&&E.length>0){for(var F=0;F<=(E.length-1);F++){var h=E[F]["\x6f\x64\x64\x73"];if(/^pos_\d+$/.test(y)){pos=parseInt(y.replace(/^pos_/,""))-1;y="pos"}if(h!=null&&h.length>0){switch(y){case"end":s[p]=new Array(h[h.length-1],E[F]["\x73\x65\x6c\x65\x63\x74\x69\x6f\x6e"]);break;case"both":case"anywhere":if(h.length>0){for(var A=0;A<=(h.length-1);A++){s[p]=new Array(h[A],E[F]["\x73\x65\x6c\x65\x63\x74\x69\x6f\x6e"]);p++}}break;case"start":s[p]=new Array(h[0],E[F]["\x73\x65\x6c\x65\x63\x74\x69\x6f\x6e"]);break;case"pos":if(typeof(h[pos])!="undefined"){s[p]=new Array(h[pos],E[F]["\x73\x65\x6c\x65\x63\x74\x69\x6f\x6e"])}break}}p++}E=new Array();if(s.length>0){if(x=="ascending"){s.sort(this.VCJUB)}else{if(x=="descending"){s.sort(this.GLKFC)}}if(C=="replace"){PIAJQ.RGVLN("all",false)}s.each(function(i){PIAJQ.XDVAN(i[1],i[0],false,null,false)});if(typeof(b)!="undefined"&&b==true){jQuery.modal_close("#importer")}if(C=="replace"){YXGPU.JDXJA(true)}else{YXGPU.JDXJA()}this.ZDUZN=$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x74\x65\x78\x74").value;$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x74\x65\x78\x74").value="";if(this.ZDUZN.BZBFE()){$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x72\x65\x73\x74\x6f\x72\x65").hide()}else{$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x72\x65\x73\x74\x6f\x72\x65").show()}}else{$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6e\x6f\x74\x69\x63\x65").update("We found some odds, but your &quot;<em>Match:</em>&quot; setting may be incorrect.");jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6e\x6f\x74\x69\x63\x65").hide().fadeIn("normal")}}}else{$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6e\x6f\x74\x69\x63\x65").update("Sorry, no matches were found. Your &quot;<em>Odds:</em>&quot; setting may be incorrect.");jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6e\x6f\x74\x69\x63\x65").hide().fadeIn("normal")}}else{$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6e\x6f\x74\x69\x63\x65").update("Please enter a bet into the text field below before extracting.");jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6e\x6f\x74\x69\x63\x65").hide().fadeIn("normal")}}};jQuery(document).ready(function(){if((io=INQOS.OVPKG("io"))!=false&&io.AUMOB()){$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x74\x72\x61\x63\x74").selectedIndex=io}if((ifr=INQOS.OVPKG("ifr"))!=false&&ifr.AUMOB()){$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x66\x72\x6f\x6d").selectedIndex=ifr}if(BXKBV.HJEAC.match(/^\x69d.*$/)!=null&&BXKBV.HJEAC.indexOf("\x74\x63")==3){LMQON.UYXJV();LMQON.SKWQC();LMQON.WSDJR(1);BXKBV.MEDOW()}$("\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e").hide();jQuery("#dutching_description_more,#dutching_title").click(function(){if($("\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e\x5f\x6d\x6f\x72\x65").innerHTML.match(/^read/i)!=null){$("\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e\x5f\x6d\x6f\x72\x65").innerHTML="&laquo; Less"}else{$("\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e\x5f\x6d\x6f\x72\x65").innerHTML="Read More &raquo;"}jQuery("\x23\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e").slideToggle("normal")});jQuery("#dutching_show_summary a").click(function(){if($("\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x73\x68\x6f\x77\x5f\x73\x75\x6d\x6d\x61\x72\x79").firstChild.innerHTML.match(/^summary/i)!=null){$("\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x73\x68\x6f\x77\x5f\x73\x75\x6d\x6d\x61\x72\x79").firstChild.innerHTML="&laquo; Hide Summary";jQuery("\x23\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x73\x75\x6d\x6d\x61\x72\x79").fadeIn("normal")}else{$("\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x73\x68\x6f\x77\x5f\x73\x75\x6d\x6d\x61\x72\x79").firstChild.innerHTML="Summary &raquo;";jQuery("\x23\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x73\x75\x6d\x6d\x61\x72\x79").fadeOut("fast")}}).tooltip({title:"Summary",description:"<p>A collation of the <b>essential information</b> from each tab, such as the &quot;<b>Total Stake</b>&quot; and the &quot;<b>Potential Profit</b>&quot;.</p><hr /><p><b>Tip:</b> The row(s) <b>highlighted in green</b> indicate the highest potential profit.</p>",left:true});for(var i=1;i<=10;i++){eval('$("tab_dutch_'+i+'").observe("click", function(e) { LMQON.WSDJR('+i+"); return false; });")}$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x74\x72\x61\x63\x74").observe("change",function(e){INQOS.OEMPJ("io",this.selectedIndex);BXKBV.MEDOW()});$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x66\x72\x6f\x6d").observe("change",function(e){INQOS.OEMPJ("ifr",this.selectedIndex);BXKBV.MEDOW()});$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x62\x75\x74\x74\x6f\x6e\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x63\x6c\x6f\x73\x65").observe("click",function(e){BXKBV.ECCEM(true);e.preventDefault();return false});$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x62\x75\x74\x74\x6f\x6e\x5f\x63\x6c\x6f\x73\x65").observe("click",function(e){jQuery.modal_close("#importer")});$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x62\x75\x74\x74\x6f\x6e\x5f\x63\x6c\x6f\x73\x65\x32").observe("click",function(e){jQuery.modal_close("#importer")});$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x74\x72\x61\x63\x74\x5f\x63\x6c\x65\x61\x72").observe("click",function(e){BXKBV.VNEXP();e.preventDefault();return false});$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x74\x65\x78\x74").observe("dblclick",function(e){this.select()});$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x74\x65\x78\x74").observe("keyup",function(e){BXKBV.AGKIY()});$("\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x72\x65\x73\x74\x6f\x72\x65").observe("click",function(e){BXKBV.EFUQJ()});jQuery("#importer_button_close,#importer_button_close2").tooltip({title:"Click to Close",left:true,description:"<p>You can also click on the <b>faded grey background</b> to close this dialog box.</p>"});jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x72\x65\x73\x74\x6f\x72\x65").tooltip({title:"Restore Previous Text",left:true,description:"<p>If you would like to <b>restore the text</b> from your <b>latest successful extraction</b> then click this button.</p>",max_width:350});jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x74\x65\x78\x74").tooltip({title:"Paste your text here...",description:"<p><b>1.</b> Go to your <b>online betting website</b>.</p><p><b>2.</b> <b>Find a bet</b> that you would like to turn into a spread bet.</p><p><b>3.</b> Highlight the text, then <b>copy the text to your clipboard</b>.</p><p><b>4.</b> Now, <b>paste</b> the contents of your clipboard into this field.</p>",max_width:500});jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x74\x72\x61\x63\x74").tooltip({title:"Odds to look for...",description:"<table><tr><th>Decimal:</th><td>2.00,&nbsp; 6.00,&nbsp; 2.875</td></tr><tr><th>Fractional:</th><td>7/1,&nbsp; 7/2,&nbsp; 7-1</td></tr><tr><th>American:</th><td>+400,&nbsp; +150,&nbsp; -350</td></tr></table>",hide_delay:18000,max_width:500});jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x66\x72\x6f\x6d").tooltip({title:"Pattern to match...",description:"<p>Each pattern listed has an example - simply select an item from this list and see the <em>Example</em> appear below.</p><hr /><p><b>Note:</b> The patterns and layouts are more for the benefit of the odds, our extraction engine can handle selection text quite easily by prizes the words together into a neat sentence ready for the table..</p>"});jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6f\x72\x64\x65\x72").tooltip({title:"Sort odds by...",description:"<table><tr><th>No Sort:</th><td>Current order. <em>(Default)</em></td></tr><tr><th>Ascending:</th><td>Lowest first. eg. <em>1.50, 3.00, 7.00</em></td></tr><tr><th>Descending:</th><td>Highest first. eg. <em>7.00, 3.00, 1.50</em></td></tr></table>",left:true});jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6f\x75\x74\x70\x75\x74").tooltip({title:"Output of results...",description:"<table><tr><th>Replace:</th><td>The current tab will be emptied. The results will be inserted then optimized.</td></tr><tr><th>Append:</th><td>The results will be appended to the current tab without optimization.</td></tr></table>",left:true});jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x65\x78\x61\x6d\x70\x6c\x65").tooltip({title:"Example...",description:"<p>This gives you a generalised idea of what will be extracted based on the settings above.</p><hr /><p>These examples correspond to the general layout of <em>selections &amp; odds</em> found on betting websites.</p>"});$("\x74\x6f\x6f\x6c\x74\x69\x70\x5f\x6f\x70\x74\x69\x6d\x69\x7a\x65").observe("click",function(e){YXGPU.JDXJA(true);e.preventDefault();return false});$$("\x23\x64\x75\x74\x63\x68\x69\x6e\x67\x5f\x63\x6f\x6e\x74\x72\x6f\x6c\x73\x20\x61").each(function(e){if(e.id.match(/^(r|d|e).\w+$/)!=null){if(e.id.match(/^r_\w+$/)!=null){var s=e.id.split(/_/);eval('$(e).observe("click", function(e) { PIAJQ.RGVLN("'+s[1]+'"); e.preventDefault(); return false; });')}if(e.id.match(/^d_\w+$/)!=null){var s=e.id.split(/_/);eval('$(e).observe("click", function(e) { PIAJQ.UXAGN("'+s[1]+'"); e.preventDefault(); return false; });')}if(e.id.match(/^e_\w+$/)!=null&&PIAJQ.PCLAU.replace(/^\x69|\x75|\x74|\x68$/g,"").length==2){var s=e.id.split(/_/);eval('$(e).observe("click", function(e) { PIAJQ.JEQUT("'+s[1]+'"); e.preventDefault(); return false; });')}}else{if(e.rel.match(/^addmultiple_\d+$/)!=null){var s=e.rel.split(/_/);eval('$(e).observe("click", function(e) { PIAJQ.DGFLB("'+s[1]+'"); e.preventDefault(); return false; });')}}});$("\x74\x6f\x6f\x6c\x74\x69\x70\x5f\x69\x6d\x70\x6f\x72\x74\x65\x72").observe("click",function(e){jQuery("\x23\x69\x6d\x70\x6f\x72\x74\x65\x72\x5f\x6e\x6f\x74\x69\x63\x65").hide()});jQuery("\x23\x74\x6f\x6f\x6c\x74\x69\x70\x5f\x69\x6d\x70\x6f\x72\x74\x65\x72").modal();jQuery("\x23\x74\x6f\x6f\x6c\x74\x69\x70\x5f\x69\x6d\x70\x6f\x72\x74\x65\x72").tooltip({title:"Import Odds",description:"This feature gives you a quick way to get odds into our spread betting application in seconds.",left:true});jQuery("\x23\x74\x6f\x6f\x6c\x74\x69\x70\x5f\x6f\x70\x74\x69\x6d\x69\x7a\x65").tooltip({title:"Optimize your Spread Bet",description:"<p>The <b><em>optimum</em></b> is to cover as many selections as possible and still see a profit. This can be calculated instantly by clicking this button.</p><hr /><p><b>Note:</b> All <b><em>stake adjustments</em></b> (<em>&quot;Adj. Stake&quot; column</em>) will be cleared automatically in order to calculate the full optimization.</p>",left:true});jQuery("#dutching_menu li a").tooltip({title:"Create a separate dutching bet in each Tab",description:"<table><tr><th>Q:</th><td><b>Why do you need multiple tabs?</b></td></tr><tr><th>A:</th><td>There are many reasons, for one, you might want to analyze different bets from different betting websites.<hr />Another reason is to create a dutching bet of the <b>same event from different betting websites</b> - you will soon find out which betting website offers you <b><em>more profit</em></b>. (<em>See our list to the right</em>)</td></tr></table>"})});
