/*
 * jQuery Input Default Plugin
 * version: 1.0.0 (03/11/2010)
 * 
 */
;(function($) {

/*
	Usage Note:
	-----------
	
*/


$.fn.defaultClear = function(options) {
	if(!$.searchDefaultString)
	{
		$.searchDefaultString = new Array();
	}
	$.searchDefaultString[$(this).attr('id')] = $(this).attr('value');
	$(this).focus(function(){

		if($(this).attr('value') == $.searchDefaultString[$(this).attr('id')])
		{
			$(this).attr({value: ''});
		}
	});
	
	$(this).blur(function(){
		if($(this).attr('value') == '')
		{
			$(this).attr({value: $.searchDefaultString[$(this).attr('id')]});
		}
	});
	
	$(this).keyup(function(e){
		if(options.change)
			{
				options.change(e);
			}
	});
}

})(jQuery);
