version=parseInt(b.match(/MSIE\s([0-9\.]+)/)[1]);

probabilmente anche in altri modi (?:)