Directed and elliptic flow in 197Au+197Au at intermediate energies