If you have worked with JavaScript at any length you are aware that Internet Explorer does not implement the ECMAScript function for Array.prototype.indexOf() [includin
Do it like this...
if (!Array.prototype.indexOf) { }
As recommended compatibility by MDC.
In general, browser detection code is a big no-no.