Advanced Sliding | mc related to mouse position

Hi,

I have been building a movie and I am using the following script to
move my mc left or right. However, this looks pretty simple and
I was really looking to reach the level of Vodafone this movie’s animation,
where the mc stops sliding, when the mouse is not moving

This is the code I am using so far and it works fine, but with no easing,
and it moves continuously…:

xcenter = 250;
speed = 1/70;
videos.onEnterFrame = function() {
    var distance = _root._xmouse-xcenter;
    videos._x -= (distance*speed);
    if (videos._x<= -100) {
        videos._x = -100;
    }
    if (videos._x>=0) {
        videos._x = 0;
    }
};

Thanks in advance for your help,

Kostas