Apparently, document.documentURI and document.location are not identical. Basically, document.location is not a string, so to treat it like one, you need to do:

(document.location+"").split("/")

Instead of:

document.documentURI.split("/")

Stupid IE.

  RSS Feed for Comments on this Post