Tweaks for the support of IE<8
Extended failover to IE9.