800x600 users problem

Hi,

This is my problem. I just finished a site for a client made with 1024x768 users in mind. But now they want to make it smaller for 800x600 users. I don´t want to add the option at the beginning to choose your resolution. Instead I want to see if it is possible to add some code to the HTML, to detect the user resolution and based on that load the specific SWF for that resolution. I`m going to create 2 different main SWF´s, one for 800x600 users and other for 1024 or more…

How can I do it? Any idea? Thanks a lot.