scrolling problems with JScrollPane

scrolling problems with JScrollPane

Hey guys!
I am working on a image gallery where I have thumbs
in a sidebar with JScrollPane connected to it. When you click on a
thumb I want it to scroll down the sidebar so that the selected
thumb is visable and not load the new page with the sidebar scroller
set to the top. Would be painful if you have to scroll down your
thumbs everytime you click on a image and it loads.

Ok, so basecly here it says how to achive this:
http://www.kelvinluck.com/assets/jquery/jScrollPane/jumpToExternalAnchorExample.html#marker

But the problem is, as you can see the main window is scrolled to the
bottom of the page when he uses #marker after the url wich is refering to a id tag in the scroll pane. And on my site there is a little more content than that example page so its a pain in
the ass if the main page scroller is at the bottom every time you have #(randomid) after the url.

Thanks in advance! And sorry if my english sucks :P