Pause and resume animation

Here is my animation code:

function AnimateBK(element,time) {
currentElement = $(element);
$({temporary_x: 0, temporary_y: 0}).animate({temporary_x: -312, temporary_y: 0}, {
duration: time,
step: function() {
var position = Math.round(this.temporary_x) + "px " + Math.round(this.temporary_y) + “px”;
$(element).css(“background-position”, position);
}
});

	}				

I want to pause and resume the animation of a current element on a button click.:sad:

Please help…:cry3: