fixed refresh when resize window so that it only occurs in IE7 or below