// Workaround for Gecko 2.0, which has a bug in
// mozRequestAnimationframe() that restricts animations
// to 30-40 fps.
if (window.mozRequestAnimationframe) {
// Check the Gecko version. Gecko is used by browsers
// other than Firefox. Gecko 2.0 corresponds to
// Firefox 4.0.