Bose Einstein condensation in a magnetic double-well potential