The Javascript used in this applet has been modified from the original source page produced by John C. Pezzullo here.