+1 to using feature detection rather than browser detection.