jQuery.ajaxSetup({timeout:600000});function hp_htmlEncode(a){return !a?a:String(a).replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/\"/g,"&quot;")}function HP_Hash(){this.length=0;this.items=new Array();for(var a=0;a<arguments.length;a+=2){if(typeof(arguments[a+1])!="undefined"){this.items[arguments[a]]=arguments[a+1];this.length++}}this.getItems=function(){return this.items};this.removeItem=function(b){var c;if(typeof(this.items[b])!="undefined"){this.length--;var c=this.items[b];delete this.items[b]}return c};this.getItem=function(b){return this.items[b]};this.setItem=function(b,c){var d;if(typeof(c)!="undefined"){if(typeof(this.items[b])=="undefined"){this.length++}else{d=this.items[b]}this.items[b]=c}return d};this.hasItem=function(b){return typeof(this.items[b])!="undefined"};this.clear=function(){for(var b in this.items){delete this.items[b]}this.length=0}}function CreatePreflopTypeToCardsMap(){var c=[];var b=["A","K","Q","J","T","9","8","7","6","5","4","3","2"];var a="s";var d="o";var e=0;for(i=0;i<13;i++){c[e++]={Card1:b[i],Card2:b[i],Suited:""};for(j=i+1;j<13;j++){c[e++]={Card1:b[i],Card2:b[j],Suited:a}}for(j=i+1;j<13;j++){c[e++]={Card1:b[i],Card2:b[j],Suited:d}}}return c}var PreflopTypeToCardsMap=CreatePreflopTypeToCardsMap();var PreflopPostions=["Under the Gun","Early","Early","Middle","Middle","Middle",null,null,null,null,"Cutoff","Button","Small Blind","Big Blind"];var FinalHands=["na","Royal Flush","Straight Flush","Four of a Kind","Full House","Flush","Straight","Three of a Kind","Two Pairs","OnePair","HighCard"];function CloneObject(a){return jQuery.extend({},a)}function ShowSelectPlayerDialog(c,a,b){c.dialog("option","showaliases",a);c.one("dialogclose",function(e,d){if(jQuery.isFunction(b)){b(c.dialog("option","dialogresult"),c.dialog("option","playername"),c.dialog("option","site"),parseInt(c.dialog("option","playerid")),Math.floor((parseInt(c.dialog("option","playerid")))/4294967295),parseInt(c.dialog("option","playerid"))&4294967295)}});c.dialog("open")}function SelectPlayer(b,c,d,f,e){var g=jQuery("#"+c);var a=new Object();if(b!==undefined&&b!=null&&b.length>0){a.formname=b}if(c!==undefined&&c!=null&&c.length>0){a.controlid=c}if(g.length==0){jQuery.blockUI({fadeIn:0,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});if(jQuery("#"+c+"_container").length==0){jQuery('<div style="display: none" id="'+c+'_container" />').appendTo("body")}jQuery("#"+c+"_container").load("/UI/PlayersDialog",a,function(h,l,k){jQuery.unblockUI({fadeOut:0});if(l==="success"||l==="notmodified"){g=jQuery("#"+c);ShowSelectPlayerDialog(g,d,f)}else{if(jQuery.isFunction(e)){e(k.statusText)}}})}else{ShowSelectPlayerDialog(g,d,f)}}function ShowHandsFilterDialog(c,b,a){c.dialog("option","name",b);c.one("dialogclose",function(e,d){if(jQuery.isFunction(a)){a(c.dialog("option","dialogresult"),c.dialog("option","name"),c.dialog("option","filterid"))}});c.dialog("open")}function EditHandsFilter(b,c,g,e,d){var f=jQuery("#"+c);var a=new Object();if(b!==undefined&&b!=null&&b.length>0){a.formname=b}if(c!==undefined&&c!=null&&c.length>0){a.controlid=c}if(f.length==0){jQuery.blockUI({fadeIn:0,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});if(jQuery("#"+c+"_container").length==0){jQuery('<div style="display: none" id="'+c+'_container" />').appendTo("body")}jQuery("#"+c+"_container").load("/UI/FiltersDialog",a,function(h,l,k){jQuery.unblockUI({fadeOut:0});if(l==="success"||l==="notmodified"){f=jQuery("#"+c);ShowHandsFilterDialog(f,g,e)}else{if(jQuery.isFunction(d)){d(k.statusText)}}})}else{ShowHandsFilterDialog(f,g,e)}}function ShowPlayerTypeRulesDialog(c,b,a){c.dialog("option","name",b);c.one("dialogclose",function(e,d){if(jQuery.isFunction(a)){a(c.dialog("option","dialogresult"),c.dialog("option","name"),c.dialog("option","playertyperulesid"))}});c.dialog("open")}function EditPlayerTypeRules(b,c,g,e,d){var f=jQuery("#"+c);var a=new Object();if(b!==undefined&&b!=null&&b.length>0){a.formname=b}if(c!==undefined&&c!=null&&c.length>0){a.controlid=c}if(f.length==0){jQuery.blockUI({fadeIn:0,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});if(jQuery("#"+c+"_container").length==0){jQuery('<div style="display: none" id="'+c+'_container" />').appendTo("body")}jQuery("#"+c+"_container").load("/UI/PlayerTypeRulesDialog",a,function(h,l,k){jQuery.unblockUI({fadeOut:0});if(l==="success"||l==="notmodified"){f=jQuery("#"+c);ShowPlayerTypeRulesDialog(f,g,e)}else{if(jQuery.isFunction(d)){d(k.statusText)}}})}else{ShowPlayerTypeRulesDialog(f,g,e)}}function ShowDateFilterDialog(c,a,b){c.dialog("option","datefilter",a);c.one("dialogclose",function(e,d){if(jQuery.isFunction(b)){b(c.dialog("option","dialogresult"),a)}});c.dialog("open")}function SelectFilterDate(b,c,d,f,e){var g=jQuery("#"+c);var a=new Object();if(b!==undefined&&b!=null&&b.length>0){a.formname=b}if(c!==undefined&&c!=null&&c.length>0){a.controlid=c}if(g.length==0){jQuery.blockUI({fadeIn:0,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});if(jQuery("#"+c+"_container").length==0){jQuery('<div style="display: none" id="'+c+'_container" />').appendTo("body")}jQuery("#"+c+"_container").load("/UI/DateFilterDialog",a,function(h,l,k){jQuery.unblockUI({fadeOut:0});if(l==="success"||l==="notmodified"){g=jQuery("#"+c);ShowDateFilterDialog(g,d,f)}else{if(jQuery.isFunction(e)){e(k.statusText)}}})}else{ShowDateFilterDialog(g,d,f)}}function ShowManageAliasesDialog(a,b){a.one("dialogclose",function(d,c){if(jQuery.isFunction(b)){b(a.dialog("option","dialogresult"))}});a.dialog("open")}function ManageAliases(f,c,e,d){var b=jQuery("#"+c);var a=new Object();if(f!==undefined&&f!=null&&f.length>0){a.formname=f}if(c!==undefined&&c!=null&&c.length>0){a.controlid=c}if(b.length==0){jQuery.blockUI({fadeIn:0,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});if(jQuery("#"+c+"_container").length==0){jQuery('<div style="display: none" id="'+c+'_container" />').appendTo("body")}jQuery("#"+c+"_container").load("/UI/AliasesDialog",a,function(g,k,h){jQuery.unblockUI({fadeOut:0});if(k==="success"||k==="notmodified"){b=jQuery("#"+c);ShowManageAliasesDialog(b,e)}else{if(jQuery.isFunction(d)){d(h.statusText)}}})}else{ShowManageAliasesDialog(b,e)}}function UpdateHandsStatus(ids,add,remove,success,error){if(ids.length>0){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});jQuery.ajax({url:"/UI/UpdateHandsStatus",type:"POST",data:{ids:ids.join(","),add:add,remove:remove,nd:new Date().getTime()},global:false,dataType:"json",complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?"Request error. "+data.statusText:" "+obj.errorMessage)}}else{if(jQuery.isFunction(success)){success()}}}})}}function JSONreplacer(a,b){if(this[a] instanceof Date){return"\\/Date("+this[a].getTime()+")\\/"}return b}function SaveSettings(type,parentid,formname,controlid,name,historylength,settings,success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});var pdata=new Object();pdata.type=type;pdata.historylength=historylength;if(formname!==undefined&&formname!=null&&formname.length>0){pdata.formname=formname}if(controlid!==undefined&&controlid!=null&&controlid.length>0){pdata.controlid=controlid}if(name!==undefined&&name!=null){pdata.name=encodeURIComponent(name)}if(parentid!==undefined&&parentid!=null){pdata.parentid=parentid}pdata.settings=encodeURIComponent(JSON2.stringify(settings,JSONreplacer,"\t").replace(/"\\\\\/Date\(([\d]+)\)\\\\\/.{0}"/gi,'"\\/Date($1)\\/"'));pdata.nd=new Date().getTime();jQuery.ajax({url:"/UI/SaveSettings",type:"POST",data:pdata,dataType:"json",global:false,complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success(obj.id)}}}})}function GetHandFilters(success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});var pdata=new Object();pdata.nd=new Date().getTime();jQuery.ajax({url:"/UI/GetHandFilters",type:"POST",dataType:"json",data:pdata,global:false,complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success(obj)}}}})}function GetPlayerTypeRules(success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});var pdata=new Object();pdata.nd=new Date().getTime();jQuery.ajax({url:"/UI/GetPlayerTypeRules",type:"POST",dataType:"json",data:pdata,global:false,complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success(obj)}}}})}function GetPlayerFilter(playerid,isalias,success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});var pdata=new Object();pdata.nd=new Date().getTime();pdata.playerid=playerid;pdata.isalias=isalias;jQuery.ajax({url:"/UI/PlayerFilter",type:"POST",dataType:"json",data:pdata,global:false,complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success(obj)}}}})}function GetActiveTables(success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});var pdata=new Object();pdata.nd=new Date().getTime();jQuery.ajax({url:"/UI/ActiveTables?nd="+new Date().getTime(),type:"POST",dataType:"json",global:false,complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success(obj)}}}})}function GetBlinds(success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});var pdata=new Object();pdata.nd=new Date().getTime();jQuery.ajax({url:"/UI/BlindsData?nd="+new Date().getTime(),type:"POST",dataType:"json",global:false,complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success(obj)}}}})}function GetSettingsId(type,parentid,formname,controlid,name,success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});var pdata=new Object();pdata.type=type;pdata.nd=new Date().getTime();if(formname!==undefined&&formname!=null&&formname.length>0){pdata.formname=formname}if(controlid!==undefined&&controlid!=null&&controlid.length>0){pdata.controlid=controlid}if(name!==undefined&&name!=null){pdata.name=encodeURIComponent(name)}if(parentid!==undefined&&parentid!=null){pdata.parentid=parentid}jQuery.ajax({url:"/UI/GetSettingsId",type:"POST",data:pdata,dataType:"json",global:false,complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success(obj.id)}}}})}function LoadSettings(type,parentid,formname,controlid,name,success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});var pdata=new Object();pdata.type=type;pdata.nd=new Date().getTime();if(formname!==undefined&&formname!=null&&formname.length>0){pdata.formname=formname}if(controlid!==undefined&&controlid!=null&&controlid.length>0){pdata.controlid=controlid}if(name!==undefined&&name!=null){pdata.name=encodeURIComponent(name)}if(parentid!==undefined&&parentid!=null){pdata.parentid=parentid}jQuery.ajax({url:"/UI/LoadSettings",type:"POST",global:false,data:pdata,dataType:"json",complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText.replace(/"\\\/Date\(([\d]+)\)\\\/.{0}"/gi,"new Date($1)")+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success(obj)}}}})}function showHandHistory(a,b){jQuery("#"+a).html("<img style='vertical-align: middle;' src='/images/ajax-loader.gif' /><span>Loading...</span>");jQuery.ajax({url:"/HandHistory/Hand",type:"GET",data:{id:b&4294967295,heroseat:Math.floor(b/4294967295),tzo:new Date().getTimezoneOffset()},global:false,dataType:"html",complete:function(c,d){if(d==="success"||d==="notmodified"){jQuery("#"+a).html(c.responseText)}else{jQuery("#"+a).html("Request error. "+c.statusText)}}})}function AddAlias(alias,success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000000",opacity:0.1,cursor:"wait"},message:null});jQuery.ajax({url:"/UI/AddAlias",type:"POST",global:false,data:{name:encodeURIComponent(alias),nd:new Date().getTime()},dataType:"json",complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)&&obj.id!=-1){success(obj.id)}}}})}function AddAliasPlayer(aliasid,playerid,success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000000",opacity:0.1,cursor:"wait"},message:null});jQuery.ajax({url:"/UI/AddAliasPlayer",type:"POST",data:{aliasid:aliasid,playerid:playerid,nd:new Date().getTime()},global:false,dataType:"json",complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success()}}}})}function DeleteAliasPlayer(aliasid,playerid,success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000000",opacity:0.1,cursor:"wait"},message:null});jQuery.ajax({url:"/UI/DeleteAliasPlayer",type:"POST",data:{aliasid:aliasid,playerid:playerid,nd:new Date().getTime()},global:false,dataType:"json",complete:function(data,stat){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success()}}}})}function DeleteAlias(alias,success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000000",opacity:0.1,cursor:"wait"},message:null});jQuery.ajax({url:"/UI/DeleteAlias",type:"POST",data:{id:alias,nd:new Date().getTime()},global:false,dataType:"json",complete:function(data,stat,req){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success()}}}})}function UpdateTournamentsResults(success,error){jQuery.blockUI({fadeIn:0,baseZ:2000,overlayCSS:{backgroundColor:"#000000",opacity:0.1,cursor:"wait"},message:null});jQuery.ajax({url:"/UI/UpdateTournamentsResults",type:"POST",data:{nd:new Date().getTime()},global:false,dataType:"json",complete:function(data,stat,req){jQuery.unblockUI({fadeOut:0});var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")")}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}else{if(jQuery.isFunction(success)){success()}}}})}function GetOptionToSelect(b){var a=-1;var c=b.children("option").length;if(c>1){a=b.children("option").index(b.children("option:selected"));if(a>=c-1){a=c-2}}return a}function FillAliasPlayersListbox(listbox,aliasid,curid,error){listbox.children("option").remove();listbox.change();jQuery('<option value="-1">Loading...</option>').appendTo(listbox);var nd=new Date().getTime();listbox.attr("nd",nd);jQuery.ajax({url:"/UI/AliasPlayersData",type:"POST",data:{id:aliasid,nd:nd},global:false,dataType:"json",complete:function(data,stat){if(listbox.attr("nd")==nd){var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")");listbox.children("option").remove();if(obj.errorMessage===undefined||obj.errorMessage==null){jQuery.each(obj.Players,function(){jQuery("<option value='"+this.Id+"'>"+hp_htmlEncode(this.Name)+" ("+hp_htmlEncode(this.Site)+")</option>").appendTo(listbox)});if(curid!=-1){listbox.val(curid)}else{if(listbox.children("option").length>0){listbox.children("option:first-child").attr("selected","selected")}}listbox.change()}}else{listbox.children("option").remove()}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}}}})}function FillAliasesListbox(listbox,curid,error){listbox.children("option").remove();listbox.change();jQuery('<option value="-1">Loading...</option>').appendTo(listbox);var nd=new Date().getTime();listbox.attr("nd",nd);jQuery.ajax({url:"/UI/AliasesData",type:"POST",data:{nd:nd},global:false,dataType:"json",complete:function(data,stat){if(listbox.attr("nd")==nd){var obj=null;if(stat==="success"||stat==="notmodified"){obj=eval("("+data.responseText+")");listbox.children("option").remove();if((obj.errorMessage===undefined||obj.errorMessage==null)){jQuery.each(obj.Aliases,function(){jQuery("<option value='"+this.Id+"'>"+hp_htmlEncode(this.Name)+"</option>").appendTo(listbox)});if(curid!=-1){listbox.val(curid)}else{if(listbox.children("option").length>0){listbox.children("option:first-child").attr("selected","selected")}}listbox.change()}}else{listbox.children("option").remove()}if((stat!=="success"&&stat!=="notmodified")||(obj.errorMessage!==undefined&&obj.errorMessage!=null)){if(jQuery.isFunction(error)){error((stat!=="success"&&stat!=="notmodified")?data.statusText:obj.errorMessage)}}}}})}function ShowNewAliasDialog(a,b){a.one("dialogclose",function(d,c){if(jQuery.isFunction(b)){b(a.dialog("option","dialogresult"),a.dialog("option","aliasname"))}});a.dialog("open")}function ShowNewFilterDialog(a,b){a.one("dialogclose",function(d,c){if(jQuery.isFunction(b)){b(a.dialog("option","dialogresult"),a.dialog("option","filtername"))}});a.dialog("open")}function ShowNewPlayerTypeRulesDialog(a,b){a.one("dialogclose",function(d,c){if(jQuery.isFunction(b)){b(a.dialog("option","dialogresult"),a.dialog("option","playertyperulesname"))}});a.dialog("open")}function ShowLoadFilterDialog(a,b){a.one("dialogclose",function(d,c){if(jQuery.isFunction(b)){b(a.dialog("option","dialogresult"),a.dialog("option","filtername"))}});a.dialog("open")}function ShowLoadPlayerTypeRulesDialog(a,b){a.one("dialogclose",function(d,c){if(jQuery.isFunction(b)){b(a.dialog("option","dialogresult"),a.dialog("option","playertyperulesname"))}});a.dialog("open")}function ShowConfirmationDialog(a,c,e,f,b,d){a.dialog("option","title",c);a.dialog("option","width",f);a.dialog("option","height",b);jQuery("#"+a.attr("id")+"_message").text(e);a.one("dialogclose",function(h,g){if(jQuery.isFunction(d)){d(a.dialog("option","dialogresult"))}});a.dialog("open")}function ConfirmationDialog(b,d,e,k,l,c,g,f){var h=jQuery("#"+d);var a=new Object();if(b!==undefined&&b!=null&&b.length>0){a.formname=b}if(d!==undefined&&d!=null&&d.length>0){a.controlid=d}if(h.length==0){jQuery.blockUI({fadeIn:0,overlayCSS:{backgroundColor:"#000",opacity:0.1,cursor:"wait"},message:null});if(jQuery("#"+d+"_container").length==0){jQuery('<div style="display: none" id="'+d+'_container" />').appendTo("body")}jQuery("#"+d+"_container").load("/UI/ConfirmationDialog",a,function(m,o,n){jQuery.unblockUI({fadeOut:0});if(o==="success"||o==="notmodified"){h=jQuery("#"+d);ShowConfirmationDialog(h,e,k,l,c,g)}else{if(jQuery.isFunction(f)){f(n.statusText)}}})}else{ShowConfirmationDialog(h,e,k,l,c,g)}}function DateFilterDialogDisableControls(a){jQuery("#"+a+" [id*='_datepicker_']").datepicker("disable");jQuery("#"+a+" select").attr("disabled","disabled");jQuery("#"+a+" input:text").attr("disabled","disabled")}(function(a){a.fn.hp_combobox=function(b){b=a.extend({},a.fn.hp_combobox.defaults,b);return this.each(function(){var d=null;var c=a(this);c.bind("mousemove.hp_combobox",function(k){var g=a(this);var f=g.offset();var h=g.height();d=(k.pageX>f.left+g.width()-b.buttonWidth);g.toggleClass(b.hoverClass,d)}).bind("mouseout.hp_combobox",function(){a(this).removeClass([b.hoverClass,b.downClass].join(" "));d=null}).bind("mousedown.hp_combobox",function(f){if(d){a(this).toggleClass(b.downClass,d);if(a.isFunction(b.dropdown)){b.dropdown.call()}}}).bind("mouseup.hp_combobox",function(f){a(this).removeClass(b.downClass)})})};a.fn.hp_combobox.defaults={downClass:"datepicker-button-down",hoverClass:"datepicker-button-hover",buttonWidth:20,dropdown:null}})(jQuery);function RefreshTrigger(){this._onrefreshevent=[];this._state=-1;this.AddListener=function(a){this._onrefreshevent.push(a)};this.SetState=function(a){var b=this._state;this._state=a;return b};this.Trigger=function(c,b){var a=this;jQuery.each(this._onrefreshevent,function(){return this(c&a._state,b)})}}var gRefreshTrigger=new RefreshTrigger();function HighlightItem(b,a){if(a){jQuery(b).parent("ul:first").children("li").css({"background-color":"",color:""});jQuery(b).css({"background-color":"highlight",color:"highlighttext"})}else{jQuery(b).css({"background-color":"",color:""})}}function getXmlData(a){var b=document.getElementById("xmlData_"+a);if(b){var c=/\<\!--(.*)--\>/ig;var d=c.exec(b.innerHTML);if(d!=null){return d[1]}}return null}function onSilverlightError(d,f){var b="";if(d!=null&&d!=0){b=d.getHost().Source}var a=f.ErrorType;var e=f.ErrorCode;if(a=="ImageError"||a=="MediaError"){return}var c="Unhandled Error in Silverlight Application "+b+"\n";c+="Code: "+e+"    \n";c+="Category: "+a+"       \n";c+="Message: "+f.ErrorMessage+"     \n";if(a=="ParserError"){c+="File: "+f.xamlFile+"     \n";c+="Line: "+f.lineNumber+"     \n";c+="Position: "+f.charPosition+"     \n"}else{if(a=="RuntimeError"){if(f.lineNumber!=0){c+="Line: "+f.lineNumber+"     \n";c+="Position: "+f.charPosition+"     \n"}c+="MethodName: "+f.methodName+"     \n"}}throw new Error(c)}function faqwindow(a){if(document.body.clientHeight){var c=screen.availHeight;var b=screen.availWidth;rightwidth=440;leftwidth=screen.availWidth-rightwidth-11;AFMwindow=window.open(a,"xlaAFM","width="+rightwidth+",height="+c+",screenX="+leftwidth+",screenY=0,top=0,left="+leftwidth+",toolbar=0,location=0,status=1,menubar=0,resizable=1");AFMwindow.focus();top.resizeTo(leftwidth,c);top.moveTo(0,0);top.focus()}else{AFMwindow=window.open(a,"","width=440,height=480,toolbar=0,location=0,status=1,menubar=0,resizable=1")}}function forumwindow(a){window.open(a)}var flophands=["No Pair/Royal Flush","No Pair/Straight Flush","No Pair/Nut Flush","No Pair/Non Nut Flush","No Pair/Nut Straight","No Pair/Nut Straight (2 cards flush on board)","No Pair/Nut Straight (3 cards flush on board)","No Pair/Non Nut Straight","No Pair/Non Nut Straight (2 cards flush on board)","No Pair/Non Nut Straight (3 cards flush on board)","No Pair/Top Set","No Pair/Top Set (2 cards flush or straight on board)","No Pair/Top Set (3 cards flush or straight on board)","No Pair/Middle Set","No Pair/Middle Set (2 cards flush or straight on board)","No Pair/Middle Set (3 cards flush or straight on board)","No Pair/Low Set","No Pair/Low Set (2 cards flush or straight on board)","No Pair/Low Set (3 cards flush or straight on board)","No Pair/Top Two Pairs","No Pair/Top Two Pairs (2 cards flush or straight on board)","No Pair/Top Two Pairs (3 cards flush or straight on board)","No Pair/Bottom Two Pairs","No Pair/Bottom Two Pairs (2 cards flush or straight on board)","No Pair/Bottom Two Pairs (3 cards flush or straight on board)","No Pair/Top and Bottom Two Pairs","No Pair/Top and Bottom Two Pairs (2 cards flush or straight on board)","No Pair/Top and Bottom Two Pairs (3 cards flush or straight on board)","No Pair/Top Overpair AA","No Pair/Top Overpair AA (2 cards flush or straight on board)","No Pair/Top Overpair AA (3 cards flush or straight on board)","No Pair/Top Overpair KK","No Pair/Top Overpair KK (2 cards flush or straight on board)","No Pair/Top Overpair KK (3 cards flush or straight on board)","No Pair/Top Overpair QQ","No Pair/Top Overpair QQ (2 cards flush or straight on board)","No Pair/Top Overpair QQ (3 cards flush or straight on board)","No Pair/Top Overpair JJ","No Pair/Top Overpair JJ (2 cards flush or straight on board)","No Pair/Top Overpair JJ (3 cards flush or straight on board)","No Pair/Top Overpair TT","No Pair/Top Overpair TT (2 cards flush or straight on board)","No Pair/Top Overpair TT (3 cards flush or straight on board)","No Pair/Middle Overpair 9-2","No Pair/Middle Overpair 9-2 (2 cards flush or straight on board)","No Pair/Middle Overpair 9-2 (3 cards flush or straight on board)","No Pair/Top Pair with Ace Kicker","No Pair/Top Pair with Ace Kicker (2 cards flush or straight on board)","No Pair/Top Pair with Ace Kicker (3 cards flush or straight on board)","No Pair/Top Pair with King Kicker","No Pair/Top Pair with King Kicker (2 cards flush or straight on board)","No Pair/Top Pair with King Kicker (3 cards flush or straight on board)","No Pair/Top Pair with Queen Kicker","No Pair/Top Pair with Queen Kicker (2 cards flush or straight on board)","No Pair/Top Pair with Queen Kicker (3 cards flush or straight on board)","No Pair/Top Pair with Jack Kicker","No Pair/Top Pair with Jack Kicker (2 cards flush or straight on board)","No Pair/Top Pair with Jack Kicker (3 cards flush or straight on board)","No Pair/Top Pair with T-2 Kicker","No Pair/Top Pair with T-2 Kicker (2 cards flush or straight on board)","No Pair/Top Pair with T-2 Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with Ace Kicker","No Pair/Middle Pair with Ace Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with Ace Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with King Kicker","No Pair/Middle Pair with King Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with King Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with Queen Kicker","No Pair/Middle Pair with Queen Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with Queen Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with Jack Kicker","No Pair/Middle Pair with Jack Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with Jack Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with T-2 Kicker","No Pair/Middle Pair with T-2 Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with T-2 Kicker (3 cards flush or straight on board)","No Pair/Middle Pair","No Pair/Middle Pair (2 cards flush or straight on board)","No Pair/Middle Pair (3 cards flush or straight on board)","No Pair/Low Pair","No Pair/Low Pair (2 cards flush or straight on board)","No Pair/Low Pair (3 cards flush or straight on board)","No Pair/Two Overcards Ace with King Kicker","No Pair/Two Overcards Ace with Queen Kicker","No Pair/Two Overcards Ace with Jack Kicker","No Pair/Two Overcards King with Queen Kicker","No Pair/Two Overcards King with Jack Kicker","No Pair/Two Overcards Queen with Jack Kicker","No Pair/Two Overcards","No Pair/One Overcard Ace with Queen Kicker","No Pair/One Overcard Ace with Jack Kicker","No Pair/One Overcard King with Jack Kicker","No Pair/One Overcard","No Pair/Open-ended Straight Flush Draw with Top Pair","No Pair/Open-ended Straight Flush Draw with Middle Pair","No Pair/Open-ended Straight Flush Draw with Low Pair","No Pair/Open-ended Straight Flush Draw with Two Overcards","No Pair/Open-ended Straight Flush Draw with Two Cards","No Pair/Inside Straight Flush Draw with Top Pair","No Pair/Inside Straight Flush Draw with Middle Pair","No Pair/Inside Straight Flush Draw with Low Pair","No Pair/Inside Straight Flush Draw with Two Overcards","No Pair/Inside Straight Flush Draw with Two Cards","No Pair/Bottom-ended Straight Flush Draw with Top Pair","No Pair/Bottom-ended Straight Flush Draw with Middle Pair","No Pair/Bottom-ended Straight Flush Draw with Low Pair","No Pair/Bottom-ended Straight Flush Draw with Two Overcards","No Pair/Bottom-ended Straight Flush Draw with Two Cards","No Pair/Nut Flush Draw with Top Pair","No Pair/Nut Flush Draw with Middle Pair","No Pair/Nut Flush Draw with Low Pair","No Pair/Nut Flush Draw with Two Overcards","No Pair/Nut Flush Draw with Two Cards","No Pair/Nut Flush Draw with One Card","No Pair/Second Nut Flush Draw with Top Pair","No Pair/Second Nut Flush Draw with Middle Pair","No Pair/Second Nut Flush Draw with Low Pair","No Pair/Second Nut Flush Draw with Two Overcards","No Pair/Second Nut Flush Draw with Two Cards","No Pair/Second Nut Flush Draw with One Card","No Pair/Non Nut Flush Draw with Top Pair","No Pair/Non Nut Flush Draw with Middle Pair","No Pair/Non Nut Flush Draw with Low Pair","No Pair/Non Nut Flush Draw with Two Overcards","No Pair/Non Nut Flush Draw with Two Cards","No Pair/Non Nut Flush Draw with One Card","No Pair/Open-ended Straight Draw with Top Pair","No Pair/Open-ended Straight Draw with Middle Pair","No Pair/Open-ended Straight Draw with Low Pair","No Pair/Open-ended Straight Draw with Two Overcards","No Pair/Open-ended Straight Draw with Two Cards","No Pair/Open-ended Straight Draw with One Card","No Pair/Open-ended Straight Draw with One Card (2 cards flush on board)","No Pair/Open-ended Straight Draw with One Card (3 cards flush on board)","No Pair/Inside Straight Draw with Top Pair","No Pair/Inside Straight Draw with Middle Pair","No Pair/Inside Straight Draw with Low Pair","No Pair/Inside Straight Draw with Two Overcards","No Pair/Inside Straight Draw with Two Cards","No Pair/Inside Straight Draw with One Card","No Pair/Inside Straight Draw with One Card (2 cards flush on board)","No Pair/Inside Straight Draw with One Card (3 cards flush on board)","No Pair/Bottom-ended Straight Draw with Top Pair","No Pair/Bottom-ended Straight Draw with Middle Pair","No Pair/Bottom-ended Straight Draw with Low Pair","No Pair/Bottom-ended Straight Draw with Two Cards","No Pair/Bottom-ended Straight Draw with One Card","No Pair/High Card A-2","One Pair/Four of a Kind","One Pair/Nut Full House","One Pair/Trips","One Pair/Trips (2 cards flush or straight on board)","One Pair/Top Two Pairs","One Pair/Top Two Pairs (2 cards flush or straight on board)","One Pair/Bottom Two Pairs","One Pair/Bottom Two Pairs (2 cards flush or straight on board)","One Pair/Pair with Two Overcards Ace with King Kicker","One Pair/Pair with Two Overcards Ace with Queen Kicker","One Pair/Pair with Two Overcards Ace with Jack Kicker","One Pair/Pair with Two Overcards King with Queen Kicker","One Pair/Pair with Two Overcards King with Jack Kicker","One Pair/Pair with Two Overcards Queen with Jack Kicker","One Pair/Pair with Two Overcards","One Pair/Pair with One Overcard Ace with Queen Kicker","One Pair/Pair with One Overcard Ace with Jack Kicker","One Pair/Pair with One Overcard King with Jack Kicker","One Pair/Pair with One Overcard","One Pair/Open-ended Straight Flush Draw with Top Pair","One Pair/Open-ended Straight Flush Draw with Middle Pair","One Pair/Inside Straight Flush Draw with Top Pair","One Pair/Inside Straight Flush Draw with Middle Pair","One Pair/Nut Flush Draw with Top Pair","One Pair/Nut Flush Draw with Middle Pair","One Pair/Second Nut Flush Draw with Top Pair","One Pair/Second Nut Flush Draw with Middle Pair","One Pair/Non Nut Flush Draw with Top Pair","One Pair/Non Nut Flush Draw with Middle Pair","One Pair/Open-ended Straight Draw with Top Pair","One Pair/Open-ended Straight Draw with Middle Pair","One Pair/Inside Straight Draw with Top Pair","One Pair/Inside Straight Draw with Middle Pair","One Pair/Bottom-ended Straight Draw with Top Pair","One Pair/Bottom-ended Straight Draw with Middle Pair","One Pair/Top Pair","One Pair/Middle Pair","Three of a Kind/Four of a Kind","Three of a Kind/Top Full House","Three of a Kind/Middle Full House","Three of a Kind/Low Full House","Three of a Kind/Trips with Two Overcards Ace with King Kicker","Three of a Kind/Trips with Two Overcards Ace with Queen Kicker","Three of a Kind/Trips with Two Overcards Ace with Jack Kicker","Three of a Kind/Trips with Two Overcards King with Queen Kicker","Three of a Kind/Trips with Two Overcards King with Jack Kicker","Three of a Kind/Trips with Two Overcards Queen with Jack Kicker","Three of a Kind/Trips with Two Overcards","Three of a Kind/Trips with One Overcard Ace with Queen Kicker","Three of a Kind/Trips with One Overcard Ace with Jack Kicker","Three of a Kind/Trips with One Overcard King with Jack Kicker","Three of a Kind/Trips with One Overcard","Three of a Kind/Trips"];var turnhands=["No Pair/Royal Flush","No Pair/Straight Flush","No Pair/Nut Flush","No Pair/Non Nut Flush","No Pair/Nut Straight","No Pair/Nut Straight (2 cards flush on board)","No Pair/Nut Straight (3 cards flush on board)","No Pair/Nut Straight (4 cards flush on board)","No Pair/Non Nut Straight","No Pair/Non Nut Straight (2 cards flush on board)","No Pair/Non Nut Straight (3 cards flush on board)","No Pair/Non Nut Straight (4 cards flush on board)","No Pair/Top Set","No Pair/Top Set (2 cards flush or straight on board)","No Pair/Top Set (3 cards flush or straight on board)","No Pair/Top Set (4 cards flush or straight on board)","No Pair/Middle Set","No Pair/Middle Set (2 cards flush or straight on board)","No Pair/Middle Set (3 cards flush or straight on board)","No Pair/Middle Set (4 cards flush or straight on board)","No Pair/Low Set","No Pair/Low Set (2 cards flush or straight on board)","No Pair/Low Set (3 cards flush or straight on board)","No Pair/Low Set (4 cards flush or straight on board)","No Pair/Top Two Pairs","No Pair/Top Two Pairs (2 cards flush or straight on board)","No Pair/Top Two Pairs (3 cards flush or straight on board)","No Pair/Top Two Pairs (4 cards flush or straight on board)","No Pair/Bottom Two Pairs","No Pair/Bottom Two Pairs (2 cards flush or straight on board)","No Pair/Bottom Two Pairs (3 cards flush or straight on board)","No Pair/Bottom Two Pairs (4 cards flush or straight on board)","No Pair/Top and Bottom Two Pairs","No Pair/Top and Bottom Two Pairs (2 cards flush or straight on board)","No Pair/Top and Bottom Two Pairs (3 cards flush or straight on board)","No Pair/Top and Bottom Two Pairs (4 cards flush or straight on board)","No Pair/Top Overpair AA","No Pair/Top Overpair AA (2 cards flush or straight on board)","No Pair/Top Overpair AA (3 cards flush or straight on board)","No Pair/Top Overpair KK","No Pair/Top Overpair KK (2 cards flush or straight on board)","No Pair/Top Overpair KK (3 cards flush or straight on board)","No Pair/Top Overpair QQ","No Pair/Top Overpair QQ (2 cards flush or straight on board)","No Pair/Top Overpair QQ (3 cards flush or straight on board)","No Pair/Top Overpair JJ","No Pair/Top Overpair JJ (2 cards flush or straight on board)","No Pair/Top Overpair JJ (3 cards flush or straight on board)","No Pair/Top Overpair TT","No Pair/Top Overpair TT (2 cards flush or straight on board)","No Pair/Top Overpair TT (3 cards flush or straight on board)","No Pair/Middle Overpair 9-2","No Pair/Middle Overpair 9-2 (2 cards flush or straight on board)","No Pair/Middle Overpair 9-2 (3 cards flush or straight on board)","No Pair/Top Pair with Ace Kicker","No Pair/Top Pair with Ace Kicker (2 cards flush or straight on board)","No Pair/Top Pair with Ace Kicker (3 cards flush or straight on board)","No Pair/Top Pair with King Kicker","No Pair/Top Pair with King Kicker (2 cards flush or straight on board)","No Pair/Top Pair with King Kicker (3 cards flush or straight on board)","No Pair/Top Pair with Queen Kicker","No Pair/Top Pair with Queen Kicker (2 cards flush or straight on board)","No Pair/Top Pair with Queen Kicker (3 cards flush or straight on board)","No Pair/Top Pair with Jack Kicker","No Pair/Top Pair with Jack Kicker (2 cards flush or straight on board)","No Pair/Top Pair with Jack Kicker (3 cards flush or straight on board)","No Pair/Top Pair with T-2 Kicker","No Pair/Top Pair with T-2 Kicker (2 cards flush or straight on board)","No Pair/Top Pair with T-2 Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with Ace Kicker","No Pair/Middle Pair with Ace Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with Ace Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with King Kicker","No Pair/Middle Pair with King Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with King Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with Queen Kicker","No Pair/Middle Pair with Queen Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with Queen Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with Jack Kicker","No Pair/Middle Pair with Jack Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with Jack Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with T-2 Kicker","No Pair/Middle Pair with T-2 Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with T-2 Kicker (3 cards flush or straight on board)","No Pair/Middle Pair","No Pair/Middle Pair (2 cards flush or straight on board)","No Pair/Middle Pair (3 cards flush or straight on board)","No Pair/Low Pair","No Pair/Low Pair (2 cards flush or straight on board)","No Pair/Low Pair (3 cards flush or straight on board)","No Pair/Two Overcards Ace with King Kicker","No Pair/Two Overcards Ace with Queen Kicker","No Pair/Two Overcards Ace with Jack Kicker","No Pair/Two Overcards King with Queen Kicker","No Pair/Two Overcards King with Jack Kicker","No Pair/Two Overcards Queen with Jack Kicker","No Pair/Two Overcards","No Pair/One Overcard Ace with Queen Kicker","No Pair/One Overcard Ace with Jack Kicker","No Pair/One Overcard King with Jack Kicker","No Pair/One Overcard","No Pair/Open-ended Straight Flush Draw with Top Pair","No Pair/Open-ended Straight Flush Draw with Middle Pair","No Pair/Open-ended Straight Flush Draw with Low Pair","No Pair/Open-ended Straight Flush Draw with Two Overcards","No Pair/Open-ended Straight Flush Draw with Two Cards","No Pair/Inside Straight Flush Draw with Top Pair","No Pair/Inside Straight Flush Draw with Middle Pair","No Pair/Inside Straight Flush Draw with Low Pair","No Pair/Inside Straight Flush Draw with Two Overcards","No Pair/Inside Straight Flush Draw with Two Cards","No Pair/Bottom-ended Straight Flush Draw with Top Pair","No Pair/Bottom-ended Straight Flush Draw with Middle Pair","No Pair/Bottom-ended Straight Flush Draw with Low Pair","No Pair/Bottom-ended Straight Flush Draw with Two Overcards","No Pair/Bottom-ended Straight Flush Draw with Two Cards","No Pair/Nut Flush Draw with Top Pair","No Pair/Nut Flush Draw with Middle Pair","No Pair/Nut Flush Draw with Low Pair","No Pair/Nut Flush Draw with Two Overcards","No Pair/Nut Flush Draw with Two Cards","No Pair/Nut Flush Draw with One Card","No Pair/Second Nut Flush Draw with Top Pair","No Pair/Second Nut Flush Draw with Middle Pair","No Pair/Second Nut Flush Draw with Low Pair","No Pair/Second Nut Flush Draw with Two Overcards","No Pair/Second Nut Flush Draw with Two Cards","No Pair/Second Nut Flush Draw with One Card","No Pair/Non Nut Flush Draw with Top Pair","No Pair/Non Nut Flush Draw with Middle Pair","No Pair/Non Nut Flush Draw with Low Pair","No Pair/Non Nut Flush Draw with Two Overcards","No Pair/Non Nut Flush Draw with Two Cards","No Pair/Non Nut Flush Draw with One Card","No Pair/Open-ended Straight Draw with Top Pair","No Pair/Open-ended Straight Draw with Middle Pair","No Pair/Open-ended Straight Draw with Low Pair","No Pair/Open-ended Straight Draw with Two Overcards","No Pair/Open-ended Straight Draw with Two Cards","No Pair/Open-ended Straight Draw with One Card","No Pair/Open-ended Straight Draw with One Card (2 cards flush on board)","No Pair/Open-ended Straight Draw with One Card (3 cards flush on board)","No Pair/Inside Straight Draw with Top Pair","No Pair/Inside Straight Draw with Middle Pair","No Pair/Inside Straight Draw with Low Pair","No Pair/Inside Straight Draw with Two Overcards","No Pair/Inside Straight Draw with Two Cards","No Pair/Inside Straight Draw with One Card","No Pair/Inside Straight Draw with One Card (2 cards flush on board)","No Pair/Inside Straight Draw with One Card (3 cards flush on board)","No Pair/Bottom-ended Straight Draw with Top Pair","No Pair/Bottom-ended Straight Draw with Middle Pair","No Pair/Bottom-ended Straight Draw with Low Pair","No Pair/Bottom-ended Straight Draw with Two Cards","No Pair/Bottom-ended Straight Draw with One Card","No Pair/High Card A-2","No Pair/Four Cards Board Flush","One Pair/Royal Flush","One Pair/Straight Flush","One Pair/Four of a Kind","One Pair/Nut Full House","One Pair/Non Nut Full House","One Pair/Nut Flush","One Pair/Non Nut Flush","One Pair/Nut Straight","One Pair/Nut Straight (2 cards flush on board)","One Pair/Nut Straight (3 cards flush on board)","One Pair/Non Nut Straight","One Pair/Non Nut Straight (2 cards flush on board)","One Pair/Non Nut Straight (3 cards flush on board)","One Pair/Trips","One Pair/Trips (2 cards flush or straight on board)","One Pair/Trips (3 cards flush or straight on board)","One Pair/Top Two Pairs","One Pair/Top Two Pairs (2 cards flush or straight on board)","One Pair/Top Two Pairs (3 cards flush or straight on board)","One Pair/Bottom Two Pairs","One Pair/Bottom Two Pairs (2 cards flush or straight on board)","One Pair/Bottom Two Pairs (3 cards flush or straight on board)","One Pair/Pair with Two Overcards Ace with King Kicker","One Pair/Pair with Two Overcards Ace with Queen Kicker","One Pair/Pair with Two Overcards Ace with Jack Kicker","One Pair/Pair with Two Overcards King with Queen Kicker","One Pair/Pair with Two Overcards King with Jack Kicker","One Pair/Pair with Two Overcards Queen with Jack Kicker","One Pair/Pair with Two Overcards","One Pair/Pair with One Overcard Ace with Queen Kicker","One Pair/Pair with One Overcard Ace with Jack Kicker","One Pair/Pair with One Overcard King with Jack Kicker","One Pair/Pair with One Overcard","One Pair/Open-ended Straight Flush Draw with Top Pair","One Pair/Open-ended Straight Flush Draw with Middle Pair","One Pair/Open-ended Straight Flush Draw with Low Pair","One Pair/Inside Straight Flush Draw with Top Pair","One Pair/Inside Straight Flush Draw with Middle Pair","One Pair/Inside Straight Flush Draw with Low Pair","One Pair/Nut Flush Draw with Top Pair","One Pair/Nut Flush Draw with Middle Pair","One Pair/Nut Flush Draw with Low Pair","One Pair/Second Nut Flush Draw with Top Pair","One Pair/Second Nut Flush Draw with Middle Pair","One Pair/Second Nut Flush Draw with Low Pair","One Pair/Non Nut Flush Draw with Top Pair","One Pair/Non Nut Flush Draw with Middle Pair","One Pair/Non Nut Flush Draw with Low Pair","One Pair/Open-ended Straight Draw with Top Pair","One Pair/Open-ended Straight Draw with Middle Pair","One Pair/Open-ended Straight Draw with Low Pair","One Pair/Inside Straight Draw with Top Pair","One Pair/Inside Straight Draw with Middle Pair","One Pair/Inside Straight Draw with Low Pair","One Pair/Bottom-ended Straight Draw with Top Pair","One Pair/Bottom-ended Straight Draw with Middle Pair","One Pair/Bottom-ended Straight Draw with Low Pair","One Pair/Top Pair","One Pair/Middle Pair","One Pair/Low Pair","Two Pairs/Four of a Kind","Two Pairs/Nut Full House","Two Pairs/Non Nut Full House","Two Pairs/Top Overpair AA","Two Pairs/Top Overpair KK","Two Pairs/Top Overpair QQ","Two Pairs/Top Overpair JJ","Two Pairs/Top Overpair TT","Two Pairs/Middle Overpair 9-2","Two Pairs/Midpair or better two pairs","Two Pairs/Underpair","Two Pairs/Two Pairs with Two Overcards Ace with King Kicker","Two Pairs/Two Pairs with Two Overcards Ace with Queen Kicker","Two Pairs/Two Pairs with Two Overcards Ace with Jack Kicker","Two Pairs/Two Pairs with Two Overcards King with Queen Kicker","Two Pairs/Two Pairs with Two Overcards King with Jack Kicker","Two Pairs/Two Pairs with Two Overcards Queen with Jack Kicker","Two Pairs/Two Pairs with Two Overcards","Two Pairs/Two Pairs with One Overcard Ace with Queen Kicker","Two Pairs/Two Pairs with One Overcard Ace with Jack Kicker","Two Pairs/Two Pairs with One Overcard King with Jack Kicker","Two Pairs/Two Pairs with One Overcard","Two Pairs/Two Pairs","Three of a Kind/Four of a Kind","Three of a Kind/Top Full House","Three of a Kind/Middle Full House","Three of a Kind/Low Full House","Three of a Kind/Trips with Two Overcards Ace with King Kicker","Three of a Kind/Trips with Two Overcards Ace with Queen Kicker","Three of a Kind/Trips with Two Overcards Ace with Jack Kicker","Three of a Kind/Trips with Two Overcards King with Queen Kicker","Three of a Kind/Trips with Two Overcards King with Jack Kicker","Three of a Kind/Trips with Two Overcards Queen with Jack Kicker","Three of a Kind/Trips with Two Overcards","Three of a Kind/Trips with One Overcard Ace with Queen Kicker","Three of a Kind/Trips with One Overcard Ace with Jack Kicker","Three of a Kind/Trips with One Overcard King with Jack Kicker","Three of a Kind/Trips with One Overcard","Three of a Kind/Trips","Four of a Kind/Four of a Kind with Nut Kicker","Four of a Kind/Four of a Kind with Second Nut Kicker","Four of a Kind/Four of a Kind with Low Kicker"];var riverhands=["No Pair/Royal Flush","No Pair/Straight Flush","No Pair/Nut Flush","No Pair/Non Nut Flush","No Pair/Nut Straight (2 cards flush on board)","No Pair/Nut Straight (3 cards flush on board)","No Pair/Nut Straight (back door flush on board)","No Pair/Nut Straight (4 cards flush on board)","No Pair/Non Nut Straight (2 cards flush on board)","No Pair/Non Nut Straight (3 cards flush on board)","No Pair/Non Nut Straight (back door flush on board)","No Pair/Non Nut Straight (4 cards flush on board)","No Pair/Top Set (2 cards flush or straight on board)","No Pair/Top Set (3 cards flush or straight on board)","No Pair/Top Set (back door flush or straight on board)","No Pair/Top Set (4 cards flush or straight on board)","No Pair/Middle Set (2 cards flush or straight on board)","No Pair/Middle Set (3 cards flush or straight on board)","No Pair/Middle Set (back door flush or straight on board)","No Pair/Middle Set (4 cards flush or straight on board)","No Pair/Low Set (2 cards flush or straight on board)","No Pair/Low Set (3 cards flush or straight on board)","No Pair/Low Set (back door flush or straight on board)","No Pair/Low Set (4 cards flush or straight on board)","No Pair/Top Two Pairs (2 cards flush or straight on board)","No Pair/Top Two Pairs (3 cards flush or straight on board)","No Pair/Top Two Pairs (back door flush or straight on board)","No Pair/Top Two Pairs (4 cards flush or straight on board)","No Pair/Bottom Two Pairs (2 cards flush or straight on board)","No Pair/Bottom Two Pairs (3 cards flush or straight on board)","No Pair/Bottom Two Pairs (back door flush or straight on board)","No Pair/Bottom Two Pairs (4 cards flush or straight on board)","No Pair/Top and Bottom Two Pairs (2 cards flush or straight on board)","No Pair/Top and Bottom Two Pairs (3 cards flush or straight on board)","No Pair/Top and Bottom Two Pairs (back door flush or straight on board)","No Pair/Top and Bottom Two Pairs (4 cards flush or straight on board)","No Pair/Top Overpair AA (2 cards flush or straight on board)","No Pair/Top Overpair AA (3 cards flush or straight on board)","No Pair/Top Overpair AA (back door flush or straight on board)","No Pair/Top Overpair AA (4 cards flush or straight on board)","No Pair/Top Overpair KK (2 cards flush or straight on board)","No Pair/Top Overpair KK (3 cards flush or straight on board)","No Pair/Top Overpair KK (back door flush or straight on board)","No Pair/Top Overpair KK (4 cards flush or straight on board)","No Pair/Top Overpair QQ (2 cards flush or straight on board)","No Pair/Top Overpair QQ (3 cards flush or straight on board)","No Pair/Top Overpair QQ (back door flush or straight on board)","No Pair/Top Overpair QQ (4 cards flush or straight on board)","No Pair/Top Overpair JJ (2 cards flush or straight on board)","No Pair/Top Overpair JJ (3 cards flush or straight on board)","No Pair/Top Overpair JJ (back door flush or straight on board)","No Pair/Top Overpair JJ (4 cards flush or straight on board)","No Pair/Top Overpair TT (2 cards flush or straight on board)","No Pair/Top Overpair TT (3 cards flush or straight on board)","No Pair/Top Overpair TT (back door flush or straight on board)","No Pair/Top Overpair TT (4 cards flush or straight on board)","No Pair/Middle Overpair 9-2 (3 cards flush or straight on board)","No Pair/Middle Overpair 9-2 (back door flush or straight on board)","No Pair/Middle Overpair 9-2 (4 cards flush or straight on board)","No Pair/Top Pair with Ace Kicker (2 cards flush or straight on board)","No Pair/Top Pair with Ace Kicker (3 cards flush or straight on board)","No Pair/Top Pair with Ace Kicker (back door flush or straight on board)","No Pair/Top Pair with Ace Kicker (4 cards flush or straight on board)","No Pair/Top Pair with King Kicker (2 cards flush or straight on board)","No Pair/Top Pair with King Kicker (3 cards flush or straight on board)","No Pair/Top Pair with King Kicker (back door flush or straight on board)","No Pair/Top Pair with King Kicker (4 cards flush or straight on board)","No Pair/Top Pair with Queen Kicker (2 cards flush or straight on board)","No Pair/Top Pair with Queen Kicker (3 cards flush or straight on board)","No Pair/Top Pair with Queen Kicker (back door flush or straight on board)","No Pair/Top Pair with Queen Kicker (4 cards flush or straight on board)","No Pair/Top Pair with Jack Kicker (2 cards flush or straight on board)","No Pair/Top Pair with Jack Kicker (3 cards flush or straight on board)","No Pair/Top Pair with Jack Kicker (back door flush or straight on board)","No Pair/Top Pair with Jack Kicker (4 cards flush or straight on board)","No Pair/Top Pair with T-2 Kicker (2 cards flush or straight on board)","No Pair/Top Pair with T-2 Kicker (3 cards flush or straight on board)","No Pair/Top Pair with T-2 Kicker (back door flush or straight on board)","No Pair/Top Pair with T-2 Kicker (4 cards flush or straight on board)","No Pair/Middle Pair with Ace Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with Ace Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with Ace Kicker (back door flush or straight on board)","No Pair/Middle Pair with Ace Kicker (4 cards flush or straight on board)","No Pair/Middle Pair with King Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with King Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with King Kicker (back door flush or straight on board)","No Pair/Middle Pair with King Kicker (4 cards flush or straight on board)","No Pair/Middle Pair with Queen Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with Queen Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with Queen Kicker (back door flush or straight on board)","No Pair/Middle Pair with Queen Kicker (4 cards flush or straight on board)","No Pair/Middle Pair with Jack Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with Jack Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with Jack Kicker (back door flush or straight on board)","No Pair/Middle Pair with Jack Kicker (4 cards flush or straight on board)","No Pair/Middle Pair with T-2 Kicker (2 cards flush or straight on board)","No Pair/Middle Pair with T-2 Kicker (3 cards flush or straight on board)","No Pair/Middle Pair with T-2 Kicker (4 cards flush or straight on board)","No Pair/Middle Pair (2 cards flush or straight on board)","No Pair/Middle Pair (3 cards flush or straight on board)","No Pair/Middle Pair (back door flush or straight on board)","No Pair/Middle Pair (4 cards flush or straight on board)","No Pair/Low Pair (2 cards flush or straight on board)","No Pair/Low Pair (3 cards flush or straight on board)","No Pair/Low Pair (back door flush or straight on board)","No Pair/Low Pair (4 cards flush or straight on board)","No Pair/Two Overcards Ace with King Kicker","No Pair/Two Overcards Ace with Queen Kicker","No Pair/Two Overcards Ace with Jack Kicker","No Pair/Two Overcards King with Queen Kicker","No Pair/Two Overcards King with Jack Kicker","No Pair/Two Overcards Queen with Jack Kicker","No Pair/Two Overcards","No Pair/One Overcard Ace with Queen Kicker","No Pair/One Overcard Ace with Jack Kicker","No Pair/One Overcard King with Jack Kicker","No Pair/One Overcard","No Pair/High Card A-2","No Pair/Four Cards Board Flush","One Pair/Royal Flush","One Pair/Straight Flush","One Pair/Four of a Kind","One Pair/Nut Full House","One Pair/Non Nut Full House","One Pair/Nut Flush","One Pair/Non Nut Flush","One Pair/Back Door Flush","One Pair/Nut Straight (2 cards flush on board)","One Pair/Nut Straight (3 cards flush on board)","One Pair/Nut Straight (back door flush on board)","One Pair/Nut Straight (4 cards flush on board)","One Pair/Non Nut Straight (2 cards flush on board)","One Pair/Non Nut Straight (3 cards flush on board)","One Pair/Non Nut Straight (back door flush on board)","One Pair/Non Nut Straight (4 cards flush on board)","One Pair/Back Door Straight","One Pair/Trips (2 cards flush or straight on board)","One Pair/Trips (3 cards flush or straight on board)","One Pair/Trips (back door flush or straight on board)","One Pair/Trips (4 cards flush or straight on board)","One Pair/Top Two Pairs (2 cards flush or straight on board)","One Pair/Top Two Pairs (3 cards flush or straight on board)","One Pair/Top Two Pairs (back door flush or straight on board)","One Pair/Top Two Pairs (4 cards flush or straight on board)","One Pair/Bottom Two Pairs (2 cards flush or straight on board)","One Pair/Bottom Two Pairs (3 cards flush or straight on board)","One Pair/Bottom Two Pairs (back door flush or straight on board)","One Pair/Bottom Two Pairs (4 cards flush or straight on board)","One Pair/Pair with Two Overcards Ace with King Kicker","One Pair/Pair with Two Overcards Ace with Queen Kicker","One Pair/Pair with Two Overcards Ace with Jack Kicker","One Pair/Pair with Two Overcards King with Queen Kicker","One Pair/Pair with Two Overcards King with Jack Kicker","One Pair/Pair with Two Overcards Queen with Jack Kicker","One Pair/Pair with Two Overcards","One Pair/Pair with One Overcard Ace with Queen Kicker","One Pair/Pair with One Overcard Ace with Jack Kicker","One Pair/Pair with One Overcard King with Jack Kicker","One Pair/Pair with One Overcard","One Pair/Pair (4 cards flush on board)","One Pair/Top Pair","One Pair/Middle Pair","One Pair/Low Pair","Two Pairs/Four of a Kind","Two Pairs/Nut Full House","Two Pairs/Non Nut Full House","Two Pairs/Nut Flush","Two Pairs/Non Nut Flush","Two Pairs/Nut Straight (2 cards flush on board)","Two Pairs/Nut Straight (3 cards flush on board)","Two Pairs/Nut Straight (back door flush on board)","Two Pairs/Non Nut Straight (2 cards flush on board)","Two Pairs/Non Nut Straight (3 cards flush on board)","Two Pairs/Non Nut Straight (back door flush on board)","Two Pairs/Top Overpair AA","Two Pairs/Top Overpair KK","Two Pairs/Top Overpair QQ","Two Pairs/Top Overpair JJ","Two Pairs/Top Overpair TT","Two Pairs/Middle Overpair 9-2","Two Pairs/Midpair or better two pairs","Two Pairs/Underpair","Two Pairs/Two Pairs with Two Overcards Ace with King Kicker","Two Pairs/Two Pairs with Two Overcards Ace with Queen Kicker","Two Pairs/Two Pairs with Two Overcards Ace with Jack Kicker","Two Pairs/Two Pairs with Two Overcards King with Queen Kicker","Two Pairs/Two Pairs with Two Overcards King with Jack Kicker","Two Pairs/Two Pairs with Two Overcards Queen with Jack Kicker","Two Pairs/Two Pairs with Two Overcards","Two Pairs/Two Pairs with One Overcard Ace with Queen Kicker","Two Pairs/Two Pairs with One Overcard Ace with Jack Kicker","Two Pairs/Two Pairs with One Overcard King with Jack Kicker","Two Pairs/Two Pairs with One Overcard","Two Pairs/Two Pairs","Three of a Kind/Four of a Kind","Three of a Kind/Top Full House","Three of a Kind/Middle Full House","Three of a Kind/Low Full House","Three of a Kind/Trips with Two Overcards Ace with King Kicker","Three of a Kind/Trips with Two Overcards Ace with Queen Kicker","Three of a Kind/Trips with Two Overcards Ace with Jack Kicker","Three of a Kind/Trips with Two Overcards King with Queen Kicker","Three of a Kind/Trips with Two Overcards King with Jack Kicker","Three of a Kind/Trips with Two Overcards Queen with Jack Kicker","Three of a Kind/Trips with Two Overcards","Three of a Kind/Trips with One Overcard Ace with Queen Kicker","Three of a Kind/Trips with One Overcard Ace with Jack Kicker","Three of a Kind/Trips with One Overcard King with Jack Kicker","Three of a Kind/Trips with One Overcard","Three of a Kind/Trips","Straight/Royal Flush","Straight/Straight Flush","Straight/Nut Flush","Straight/Non Nut Flush","Straight/Nut Straight (2 cards flush on board)","Straight/Nut Straight (3 cards flush on board)","Straight/Nut Straight (back door flush on board)","Straight/Nut Straight (4 cards flush on board)","Straight/Non Nut Straight (2 cards flush on board)","Straight/Non Nut Straight (3 cards flush on board)","Straight/Non Nut Straight (back door flush on board)","Straight/Non Nut Straight (4 cards flush on board)","Flush/Royal Flush","Flush/Nut Flush","Flush/Five Cards Board Flush","Full House/Four of a Kind","Full House/Nut Full House","Full House/Non Nut Full House","Four of a Kind/Four of a Kind with Nut Kicker","Four of a Kind/Four of a Kind with Second Nut Kicker","Four of a Kind/Four of a Kind with Low Kicker","Straight Flush/Royal Flush","Straight Flush/Nut Straight Flush","Straight Flush/Non Nut Straight Flush","Royal Flush/Board Royal Flush"];
