WordPress Browser Detection Function.

src: http://www.nathanrice.net/blog/browser-detection-and-the-body_class-function/