-Fixed Thunderbird compatibility and added code to support
 multiple window types.