//
// jQuery Default Text Value
// Version: 1.0
// Author Name: emarketed
// Author Website: http://www.emarketed.com
//
// ----------------------------
// USAGE:
// ----------------------------
//
// $('input[type=text], textarea').defaultText();
//

(function($) {

	$.fn.defaultText = function() {

		//begin plugin process
		this.each(function() {
			var el = $(this);
			var title = $(el).attr('title');
			$(el).val(title)
				.focus(function() {
					if($(el).val()==title) {
						$(el).val('');
					}
				}).blur(function() {
					if($(el).val().length<1) {
						$(el).val(title);
					}
				});
		});
		//end plugin process
	
		return this;
	
	};

}) (jQuery);
