perfect webdesign (or how to parse a user agent string)