Image manipulation and distortion

Hi there
could do with some help. The following site uses a very cool way of loading the next image. as the image slides in it also distorts. I think it is some sort of masking. I love this and want to use it but have not been using flash for long.
Please help.