Added IE7/8 support