(function( $ ){

  var methods = {
    init : function( settings ) {
      
      var label=settings.label.replace('&oacute;','ó');
      
      $(this).focus(function(){
        if($(this).val()==label)
        {
          $(this).val('');
        }
      })
      
      $(this).blur(function(){
        if($(this).val()=='')
        {
          $(this).val(label);
        }
      })
    }
  };

  $.fn.valueLabel = function( method ) {
    
    if ( methods[method] ) {
      return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
    } else if ( typeof method === 'object' || ! method ) {
      return methods.init.apply( this, arguments );
    } else {
      $.error( 'Method ' +  method + ' does not exist on jQuery.valueLabel' );
    }    
  
  };

})( jQuery );

