Detect compatibility view

I've added some code that detects IE's compatibility view.