Text this: Homoclinic Orbits for a Class of Nonperiodic Hamiltonian Systems