;(function($){

	$.fn.autoClear = function(){

		return this.each(function(){

			$(this).each(function(){
				$(this).data('value', $(this).val());
			}).focus(function(){
				if ( $(this).val() == $(this).data('value') ) {
					$(this).val('');
				}
			}).blur(function(){
				if ( $(this).val() == '' ) {
					$(this).val($(this).data('value'));
				}
			});

		});

	}

})(jQuery);