Adjust colums depending on how big the window is

Hi all!

This is a tricky one.

I want to build a fluid layout for a flashbased web shop that adjusts the amount of columns in a table depending on how big the browser window is.

For example:
When a surfer enters my site he has the browser window maximized. He can see three boxes with product thumbnails on one row. But if he drags the browser window and making it narrower the product thumbnails on the right edge jumps down one row. The flash movie doesn´t shrink it just adjusts it self.

  • Please, see the attatched picture for a better clue.

Cheers!