Scrolling thumbnail problem

Hey guys!

I made a thumbnail scroller and got it working, horizontally…
When I tried to make it work vertically, no luck!
I’ve attached the file for convenience.
Please help me, I need this guys.

This is the code:

panel.onRollOver = panelOver;

function panelOver() {
    this.onEnterFrame = scrollPanel;
    delete this.onRollOver;
}

var b = stroke.getBounds(_root);

function scrollPanel() {
    if(_ymouse<b.xMin || _ymouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
        this.onRollOver = panelOver;
        delete this.onEnterFrame;
    }
    
    if(panel._y >= 60) {
        panel._y = 60;
    }
    
    if(panel._y <= -820) {
        panel._y = -820;
    }
    
    var ydist = _ymouse - 215;
    
    panel._y += Math.round(-ydist / 5);
}