(function($){
$.addDefaultValueBehavior=function(){
};
$.fn.addDefaultValueBehavior=function(_2){
var _3=$.extend({},$.fn.addDefaultValueBehavior.defaults,_2);
return this.each(function(){
if(!$(this).data("addDefaultValueBehavior_empty_value")){
$(this).data("addDefaultValueBehavior_empty_value",$(this).val());
}
$(this).css({"color":_3.default_color});
var _4=(_3.namespace?"focus."+_3.namespace:"focus");
$(this).bind(_4,function(){
$(this).css({"color":_3.focus_color});
$(this).val(($(this).val()==$(this).data("addDefaultValueBehavior_empty_value")?"":$(this).val()));
});
var _4=(_3.namespace?"blur."+_3.namespace:"blur");
$(this).bind(_4,function(){
if($(this).val()==""){
$(this).css({"color":_3.default_color});
}
$(this).val(($(this).val()!=""?$(this).val():$(this).data("addDefaultValueBehavior_empty_value")));
});
});
};
$.fn.addDefaultValueBehavior.defaults={default_color:"#a0a0a0",focus_color:"#000"};
})(jQuery);

