support type detection in IE