any ideas on how to detect the language of the users browser and then depending on that re-direct the user to different pages?

I know i can get apache to do this, but i need a solution which will work of a virtual account and does not require root access.

thanks
kunal