This page contains images of old lecture notes. Please read through them in order.
Another diagram describing the scattering of light by the gases in the atmosphere is provided in this link.
WORD document containing additional notes on blue sky and red sunrise and sunset