(function($){

	$.fn.jHintInput = function(o){
		
		return this.each(function(){
			var $this = $(this), value = $this.val();
			
			function _showHint(){
				if ($this.val() == '') $this.val(value);
				$this.addClass('ui-hint-input');
			}
			
			function _hideHint(){
				if ($this.val() == value) $this.val('');
				$this.removeClass('ui-hint-input');
			}
			
			$this.click(function(){
				_hideHint();
			});
			
			$this.focus(function(){
				_hideHint();
			});
			
			$this.blur(function(){
				_showHint();
			});
		});
		
	}

})(jQuery);

