Shifted Jacobi polynomials and Delannoy numbers