Fixes for IE7 and IE8