﻿(function ($) {

	$.fn.toggleInputValue = function () {

		return $(this).each(function () {
			var $input = $(this);
			var default_value = $input.attr('title');

			$input.focus(function () {
				if ($input.val() == default_value) $input.val('');
			}).blur(function () {
				if ($input.val().length == 0) $input.val(default_value);
			});
		});

	}

})(jQuery);

