Infinite menu question?

Hi there!
Im new in this forum, i hope you can help me

I used the “inifinite menu” code posted in this website and everything worked fine, my only question is, if there’s a code to change the direction mouse-clip, i mean if the mouse is on the left of this clip, this clip will go right and viceversa.

Currently it goes if the mouse is on the left the clip will go left and the same on the right.

Thanks any help would be aprecciated!
This is the code:

onClipEvent (load)
{
xcenter=350;
speed=1/10;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-1980;
if (_x < -1980) _x=0;
}