That's static electricity.
It's basically the electrons being transferred to your extremities.
Carpets and shoes have a lot to do with it. If it's humid you don't have it as much. It shouldn't be painful for that long afterwards though. So you're a shocker, huh?

 8,000 Graphics and Pics