What is the greenhouse effect and how does it effect the atosmphere?

Here is a neat diagram that explains the Greenhouse effect.

http://earthguide.ucsd.edu/earthguide/diagrams/greenhouse/