/* unwrongest.com */
(function($){
     $.fn.extend({
         defaultValue: function() {
            return this.each(function() {
				var rel = $(this).attr('rel');
				setState(this);
				$(this).click(function(){
					if($(this).val() == rel)
						$(this).attr('value','');
				});
				$(this).blur(function(){
					setState(this);
				});
				$.trim($(this).val())
				function setState(element){
					if($.trim($(element).val()).length <= 0) {
						$(element).attr('value', rel);
						$(element).addClass('defaultValue');
					}
					else
						$(this).removeClass('defaultValue');
				}
            });
        }
    });
})(jQuery);
