Hi Sam,
We've answered that question here: http://van.physics.illinois.edu/qa/listing.php?id=2031.
There is also a good explanation here: http://www.scientificamerican.com/article.cfm?id=why-do-stars-twinkle.
Cheers,
David Schmid
(published on 05/14/2013)