/* Minification failed. Returning unminified contents.
(1,1): run-time error CSS1019: Unexpected token, found '('
(1,11): run-time error CSS1031: Expected selector, found '('
(1,11): run-time error CSS1025: Expected comma or open brace, found '('
(27,2): run-time error CSS1019: Unexpected token, found ')'
(27,3): run-time error CSS1019: Unexpected token, found '('
(27,10): run-time error CSS1031: Expected selector, found ')'
(27,10): run-time error CSS1025: Expected comma or open brace, found ')'
 */
(function ($) {
    $("legend").click(function () {
        $(this).nextAll(".row").toggle();
    });

    $("#GameTableTimeout, #GameTableTimeoutRemaining").keyup(function (e) {
        var $gameTableTimeout = $("#GameTableTimeout");
        var $gameTableTimeoutRemaining = $("#GameTableTimeoutRemaining");

        var gameTableTimeoutVal = +$gameTableTimeout.val();
        var gameTableTimeoutRemainingVal = +$gameTableTimeoutRemaining.val();

        if(gameTableTimeoutVal == null || gameTableTimeoutVal == NaN)
        {
            gameTableTimeoutVal = 0;
        }

        if (gameTableTimeoutRemainingVal == null || gameTableTimeoutRemainingVal == NaN) {
            gameTableTimeoutRemainingVal = 0;
        }

        if (gameTableTimeoutRemainingVal > gameTableTimeoutVal)
        {
            $gameTableTimeoutRemaining.val(gameTableTimeoutVal);
        }
    });
})(jQuery);
