Javascript to make objects on your webpage obey gravity, by Joseph Paul Cohen
GravityScript, By Joseph Paul Cohen
This is a general version of the Google Gravity code written by Mr. Doob as a Chrome Experiment.
Just Include this file somewhere inside the body or head tag
<script src="http://gravityscript.googlecode.com/svn/trunk/gravityscript.js"></script>