(function($) {
		
	$.fn.clearDefault = function(settings) {
		
		//Array of inputs to apply to
		var iArray = this;
		
		settings = jQuery.extend({
			// Settings go here 
		}, settings);
		
		//For each radio button, apply replace
		return iArray.each(function(){
			
			//Check for correct element type
			if($(this).attr("type") == "text") {
				
				var defaultText = $(this).attr("value");	//Store default value

				//Add a style when hovering on defaultText box
				$(this).hover(
					function(){$(this).addClass("dim");},
					function(){$(this).removeClass("dim");}
				);
				
				//On click for input
				$(this).focus(function(event){
					if($(this).attr("value") == defaultText) 	//If still default defaultText
						$(this).attr("value", "");				//Then clear it, else leave it
					return false;
				});
				
				//Click away from input
				$(this).blur(function(event){
					if($(this).attr("value") == "")				//If blank
						$(this).attr("value", defaultText);		//Then add back default defaultText
				});

			}//Close type check		

		});//Close for each element
	};//Close function
	
})(jQuery);
