Homoclinic orbits to small periodic orbits for a class of reversible systems