Entangled spin states of a Bose condensate in an electromagnetic field