Scrolling menu - continuous

Hi

I have a scrolling menu that I’d like to adapt so it continuously scrolls - so once either end of the image panel is reached, the other end automatically appears.

You can see the menu on the ‘work’ page of www.dirksmith.com

Any ideas how I can adapt the existing script (below) to achieve this?

Thanx

Dirk

_root.panel.onRollOver = panelOver;

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

var b = stroke.getBounds(_root);

function scrollPanel() {
    if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
        this.onRollOver = panelOver;
        delete this.onEnterFrame;
    }
    
    if(panel._x >= 644) {
        panel._x = 644;
    }
    
    if(panel._x <= 250) {
        panel._x = 250;
    }
    
    var xdist = _xmouse  -710;
    
    panel._x += Math.round(-xdist / 9);
}