How do sites like, say, www.Altavista.com detect the browser country.

Do they just use the user agent string?

All I actually want to do is detect if the browser is in North America or not.

Any ideas?
benski