What are the advantages and risks of investing in an IPO?

What are the advantages and risks of investing in an IPO?