Wow, I just learnt that Array.indexOf does not work in IE. How bad is that?!
Check out here for a simple solution:
http://www.soledadpenades.com/2007/05/17/arrayindexof-in-internet-explorer/
if(!Array.indexOf){ Array.prototype.indexOf = function(obj){ for(var i=0; i<this.length; i++){ if(this[i]==obj){ return i; } } return -1; } }
Personally, I would’ve done a very similar thing.