Properties document.body.clientHeight and document.body.clientWidth return different values on IE7, IE8 and Firefox:
document.body.clientHeight
document.body.clientWidth
IE 8:
Paul A is right about why the discrepancy exists but the solution offered by Ngm is wrong (in the sense of JQuery).
The equivalent of clientHeight and clientWidth in jquery (1.3) is
$(window).width(), $(window).height()