Revert "removed ie7 code"

This reverts commit 930dcc6f3197e060847b493e3eedba411bad3ecd.