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)
onClipEvent (enterFrame)
var distance=_root._xmouse-xcenter;
if (_x > 0) _x=-1980;
if (_x < -1980) _x=0;