$(function() {
	function toggleRows() {
		var isChecked = $( '#filter input' ).is( ':checked' );
		var table = $( '.anotherPlayers' );

		table.find( 'tr' ).each(
			function() {
				var cell = $( this ).find( 'td:eq(2)' );
				var inner = /^(-?\d+.\d*)/.exec( cell.html() );
				
				var value = Number( ( inner && inner[ 0 ] ) || cell.html() );

				if( 
					isNaN( value ) ||
					value < 0
				) {
					isChecked ? $( this ).show() : $( this ).hide();
				}
			}
		);
			
	}

	$( '#filter input' ).change( toggleRows );
	toggleRows();
});
