ZEB - I was hoping that if I waited long enough you would answer your first question too. :-)

I am not sure if there is a way to get the page to scroll up as you are requesting and link at the same time to the pop up layer.

What you might want to do is reconsider your page design so that the thumbs and pop-up layers are on the top of the page.

I'm sure sledger or drwyd or one of the more tech savvy people might have an answer closer to what you are asking.