Just a small tip (didn't dind it in the client side reference docs ): by using Sys.Browser.agent we can see which browser the visitor is using -- and therefore be able to adjust the Javascript code thereafter.
Example:
There are four predefined values
Sys.Browser.InternetExplorer
Sys.Browser.Firefox
Sys.Browser.Opera
Sys.Browser.Safari
which we can test against.