How do you detect in JavaScript running in IE8 whether the browser is using compatibility mode or not?
Here's a good example of how to do it . First google result for "ie mode mode js" BTW.