jQuery.fn.overlabel = function(options) {
  var settings = {
  }
  if(options) {
    jQuery.extend(settings, options);
  }

  this.addClass('overlabel-apply');
  this.each(function() {
    var field = jQuery('#'+jQuery(this).attr('for'));
    if(field.val() !== '') {
      jQuery(this).hide();
    }

    var oThis = jQuery(this);
    field.focus(function() {
      oThis.hide();
    });
    field.blur(function() {
      if(jQuery(this).val() === '') {
        oThis.show();
      }
    });
  });
  
  this.click(function() {
    jQuery('#'+jQuery(this).attr('for')).focus();
  });
}
