Fixed to work in IE7 and IE8.