Total n00b question - browser sniffer help!

Total n00b question - browser sniffer help!

Hi All.

My website looks great on Firefox, Chrome, and Safari, but on IE everything looks all jacked up.  I've been told that I can use jquery to sniff out the browser and return a message to people using IE that my site is not optimized for that browser.  

I have absolutely NO clue how to go about doing that.  My site is www.alecbrownstein.com and I asked a web savvy friend, and he said that this code is what I need:

within a java script script tag... 
if (! $.browser.msie){
    window.location="nextpage. html";
}
so if ms_ie is false, redirect

A better solution would be to do it in php so the user doesn't even see a flicker, but this should work.


ms_ie==true, show splash, else window.location="nextpage.html"

I don't know what any of this means or even where I would copy this code.  I recently figured out how to edit the different PHP files so I could add links to the sidebar, but that's sort of the extent of my knowledge.  My main goal is to NOT screw up my site.  

Help???

Thanks in advance,

Alec