Ease movie to center - How is this done?

How is this done?.. http://www.jcsphoto.com/

When I resize the browser it calculates the new center and eases the movie into position. It also aligns with the left edge when the window gets smaller than the movie.

This has probably been discussed somewhere, but I can’t find anything. Maybe I just don’t know the right keywords. Thanks!