Photo Galleries

I was wondering how I would go about creating a photo gallery like this:

Would you use some kind of mask with minimized opacity? I understand that the second gallery is all dynamically animated with actionscript. Can anyone point me to a site or sites that may have actionscript tutorials similar to the examples above?

Thanks in advance! :pleased: