Added IE7 compatibility