var win_width = document.documentElement.clientWidth || body.clientWidth; var win_height = document.documentElement.clientHeight || body.clientHeight;