The accepted answer has correct options, but its inaccurately suggesting that the Sizzle selectors are faster. I setup this JSPerf test to prove that Sizzle is least efficient, and that in fact the OP's version seems to be THE fastest across all the browsers. The more data points I can gather, the more effectively I'll be able to rebut that the conventional wisdom here is wrong.
Besides, if I worried about every wrong-yet-accepted answer on StackOverflow, I'd be quite worried by now.
Inaccurate-yet-accepted with 0-2 upvotes: Not damaging.
Inaccurate-yet-accepted with 25 upvotes: Has the potential to widely perpetuate false beliefs.
Also, I'm arguing that performance "should" be trumped by elegance if the performance differences are so significant.
The product token for Windows Server 2008R2 and Windows 7 is the same (6.1) so there’s technically no way to tell the difference. jsPerf is supposed to show you it could be both, not one of them. Is this bugged?
OT, but, is there any way to embed the results dynamically?
Could you not do something with the user agent or do you get that already?
Here is a MSDN post that examines some of the platform tokens http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
Regardless, there's an edit with a correction now.