Swarm to mouse w/ elasticity and move randomly w/ no mouse

I started another thread where i had gotten help and combined the snow tutorial and the programatic mask tutorial to create particles that reveal an in-focus image over a blurred one. I just need help making the particles swarm around the mouse when it is present and have the particles just float around when not.

Presently the random motion is just fine and looks like this (i just inverted the

this._x

and

this._y

so that they would go with the mouse direction not away from):

onClipEvent (enterFrame) {
	// horizontal movement
	rad += (k/180)*Math.PI;
	xmovement = _root._xmouse;
	this._x -= (Math.cos(rad)+(xmovement-(width/2))/50)*-1;
	
	// vertical movement
	ymovement = _root._ymouse;
	this._y -= (Math.cos(rad)+(ymovement-(width/2))/50)*-1;
}

“width” and “height” are variables that refer to the size of the movie.

All the mouse trail FLAs i could find just sort of stuck in the corner if you moused off the flash movie. I would like to make it so the particles return back to their little merry random paths after you have moused off the movie.

Any tips or examples you could point me to would be great. Thanks!