http://phpthumb.sourceforge.net/demo....demo.demo.php
Likely using something like the package found at the above link to handle images.
They likely create the thumbnails when the pictures are uploaded and then recall them as per the requests. That way the processing only needs to done once.
If they did it with CSS, which is handled by the user's browser, there would be a substantial increase in their bandwidth, at an expense.