The above simulation was created with [url=http://webphysics.davidson.edu/Applets/Applets.html]physlet[/url]. You need to ask original author for the source code.