Create three_card_poker-ff66c90c71784cf097804648614eebb9.js

$(document).ready(function(){Table.setup("three_card_poker")}),function(e,t,n){function a(){var e=t("#three_card_poker_table_pairplus_bet"),n=t("#three_card_poker_table_ante_bet");Z.checkAmount(e),Z.checkAmount(n),l=parseInt(e.val(),10);var a=parseInt(e.attr("data-max"),10),i=parseInt(e.attr("data-static_max"),10);u=parseInt(n.val(),10);var r=parseInt(n.attr("data-max"),10),o=parseInt(n.attr("data-static_max"),10),c=Math.min(s-2*u,i);(c!=a||l>c)&&(l=Math.min(l,c),e.attr("data-max",c),e.val(l),e.trigger("change"),n.trigger("change"));var d=Math.min(Math.floor((s-l)/2),o);(d!=r||u>d)&&(u=Math.min(u,d),n.attr("data-max",d),n.val(u),e.trigger("change"),n.trigger("change")),0==u&&0==l?(t("#bet").find("input[type=submit]").attr("disabled","disabled"),t("#bet").addClass("disabled")):(t("#bet").find("input[type=submit]").removeAttr("disabled"),t("#bet").removeClass("disabled"))}function i(){t(".bet_input input[type=text]").change(a)}function r(e){for(var n,a=0;n=e[a];a++)n.each(function(e,n){n=t(n),Z.enqueue(function(){n.removeClass("undealt",3*o/5,null,Z.dequeue)})})}var o,s,l,u;e.animate=function(c,d,f,p,h){o=h,s=f,i(),c&&(a(),window.setTimeout(function(){t("#three_card_poker_table_pairplus_bet").trigger("change"),t("#three_card_poker_table_ante_bet").trigger("change")},0)),Z.enqueue(function(){t(".action").show(),t("#player .kicker").hide(),Z.dequeue()}),d?(r([t("#player .undealt").first(),t("#dealer .undealt").first(),t("#player .undealt").slice(1,2),t("#dealer .undealt").slice(1,2),t("#player .undealt").slice(2),t("#dealer .undealt").slice(2)]),e.flipAllCards(),Z.enqueue(function(){t("#player .hand_title").show(),Z.dequeue()})):(t("#player .hand_title").show(),e.flipCards()),Z.enqueue(function(){t(".payout_row.highlight").addClass("visible"),t(".status,.hand_title,.total_status,.kicker").show(),t("#deal_mask").hide(),e.animateGeneral(n,u+l),Z.dequeue()}),Z.startDequeue()},e.animateOut=function(e){Z.enqueue(function(){t("#deal_mask").show(),e&&(t(".status,.total_status,.action,.hand_title").hide(),t(".payout_row.highlight").removeClass("visible")),Z.dequeue()}),e&&Z.enqueue(function(){t(".card").addClass("discard",o,null,Z.dequeue)},t(".card").size()),Z.startDequeue()}}(window.Table=window.Table||{},jQuery);