jQuery.fn.editPause = function( callback, delay  ) {
	if (!delay) delay=800;
	return this.each(function() {
		var lastestKeypressId = 0;
		$(this).keyup( function( event ) {
			var theInput = this;
			lastestKeypressId++;
			var thisKeypressId = lastestKeypressId;
			var word = this.value;
			window.setTimeout( function(){
				if (thisKeypressId == lastestKeypressId) {
					callback.apply(theInput, [event] );
				}
			},delay);
		});		
	});
};

