I understand this is not the easiest method to code a website, but it is really an emergency and I have to figure this out as soon as possible.

I've got a Wordpress site (completely irrelevant within this question, though), with two particular pages.

One page must make use of the IE's Eccentricities Mode, which i've effectively invoked utilizing a hack (adding a comment at the start, and through using http-equiv="X-UA-Compatible" content="IE=5")

Another page must use IE 9 since it's document type. Basically visit one of these simple pages, IE creates the right document type. Problem starts after i move from one page to a different the brand new page (that is linked in the original page) KEEPS the prior document type.

Here's a good example:

The First Page has Eccentricities mode enabled. Page 2 has IE 9 as document type.

I goto the first page by typing within the URL. IE renders it properly using Eccentricities Mode I Quickly click a hyperlink leading me to page 2. IE renders page 2 still as Eccentricities mode, despite the fact that it's specified by the header to make use of IE 9

Interesting help :D

Edit: Don't put anything over the Doctype. Which will throw IE into eccentricities mode. Drop the JS underneath the Doctype.

It's most likely caching. Preventing caching in Ie: http://support.microsoft.com/kb/234067