How to determine user’s locale within browser?

I have a website (Flash) localized into a dozen of languages and I want to auto-define a default value depending on the user’s browser settings in order to minimize the steps to access the content. FYI, I cannot use server scripts due to proxy restrictions, so I guess JavaScript or ActionScript would be appropriate to … Read more