Some changes for IE compatibility