I'm using the $HTTP_USER_AGENT variable on my page to detect the user's browser. It returns something like this:

Mozilla/4.0 (compatible; MSIE 4.01; Windows 98; Compaq)

I'm trying to use a simple if statement to display a block of code if the user is using Netscape, and another if the user is using IE - however given the complex nature of that block of text in bold, I'm not sure where to go from here.

All help is appreciated.