Would the north poles of two magnets repel each other if a weaker south pole was inserted between them?

My son asked me this question and I was stumped - my intuition says that is the south pole was strong enough the attraction between the north and south poles would outweigh the repulsion between the two north poles - but how strong would the south pole need to be in this case?

-
The geometry behind the "inserting" isn't quite clear. Also, the electrostatic and magnetostatic interactions are pairwise. The force acting on A is the sum of forces from all other objects, so the force between A and B (a contribution to the force acting on A; or B) isn't affected by any additional C. C itself may exert forces on A,B but these are different forces. These are reasons why your questions sounds incomprehensible to me. – Luboš Motl Jan 11 '12 at 15:51

Assuming long skinny solenoidal magnets, so that their ends look like point magnetic sources, the force between two poles is $M1M2/r^2$, just like electrostatics, with pole density replacing charge density, where $M1$,$M2$ is the strength of the pole, and $r$ is the separation between the poles.