What exactly is involved in an IPO?Discuss.

What exactly is involved in an IPO? What information is required and who reviews it? Who helps gather and prepare it? How long does it typically take?