Periodic orbits of a Hamiltonian system related with the Friedmann-Robertson-Walker system in rotating coordinates