To do this :
To know the size of the navigator window (not the resolution), you should send the values (x,y) in an url parameter. (You get first these size trough javascript).
Then, you receive them and treat them in order to adjust your thumb sizes.
- If you define predefined fixed sizes (better), you can create cache thumbs.
- If you resize the image to any sizes, you should'nt recreate cache files and directly output the resized image.
Hope it helps.
EDIT : You can store these navigator sizes in session and resend the values throuht AJAX (invisible), anytime that the user resize its window