$(document).ready(function () {
    $(".table_data tbody tr:even").addClass('stripe');

    $(".table_finance tbody tr:odd").addClass('stripe');

    //$(".table_finance tbody tr:nth-child(4n-1) td, .table_finance tbody tr:nth-child(4n) td"
	//).addClass('stripe');

    $(".table_finance tbody tr:odd td"
	).addClass('stripe_odd');
    $(".table_finance tbody tr:even td"
	).addClass('stripe_even');

    $(".table_finance tbody span").each(function () {
        var text = $(this).text();
        if (/[+-]?\d+(\.\d+)?/.test(text)) {
            var num = parseFloat(text);
            if (num < 0) {
                $(this).addClass("negative");
            } else if (num > 0) {
                $(this).addClass("positive");
            } else {
                $(this).addClass("positive");
            }

        }
    });

});
