magnetic poles

Where does the Earth’s magnetic field come from, why do we think it’s going to reverse itself (and what in the world does that mean, anyway?), and what’s any of that got to do with me or cosmic radiation?