function removeAfterAnimation(){ // remove the DOM elements after the animation
			var elem = document.getElementById(this.id);
			if (elem) {
				elem.parentNode.removeChild(elem);
			}
		}
When animation is set to true, this function will use jQuery to animate the paginator
as if the page numbers were sliding left/right.
@private