Fix script for IE7