You hear it all over the place: using javascript to sniff the user agent string to detect browser versions is a Very Bad Thing. The latest version of jQuery has now deprecat
Sniff for features, not for useragents. Pseudocode:
if (browser.supports('feature')){ //execute feature } else{ //fallback }