How is this done? Expanding grid (dynamic)

How is this done?

Go to this site: http://www.kurtnoble.com/

When the “Portfolio” section opens, click on an item. Notice how it expands?

Each item will expand to fit the box, no matter where it is positioned. I imagine this is done dynamically according to the item’s location.

Anyone know of a tutorial or example file that can explain this?

Thanks.

http://laco.wz.cz/tween/?page=examples

“resize like Kurtnoble.com by Lucas Motta”

Thank you for that. That example is helpful for working out how to achieve the main menu effect, but what about the grid effect in the Portfolio section - the grid with 9 divisions (3x3) that will expand to fill the area? The grid division expands according to its location e.g. if the division is at the bottom it will expand upwards, or if it is at the left it will expand out to the right - is there a dynamic way of telling objects to expand to fill according to their location (_x and _y positions)? Thanks

anyone?