How was this effect made? holding boxes

can anyone tell me how the effect of the folding boxes was made, it the illusion of a card turning.
example like this…
http://www.periscope.com/flash/main.asp

thank you