(function($) {
  $.fn.hoverClass = function() {
    return this.each(function(){
      $(this).hover( function(){
        $(this).addClass('hover');
      }, function(){
        $(this).removeClass('hover');
      });
    });
  };
})(jQuery);

/* INPUT HINT */
(function($) {
    $.fn.inputhint = function(options) {
        // iterate and reformat each matched element
        return this.each(function() {
            // cache this:
            var obj = $(this);
            // get value hint
            var ogval = obj.val();
            obj.focus(function(){
                if( obj.val() == ogval ){
                    obj.val('');
                } else { null; };
            });
            obj.blur(function(){
                if( obj.val() == "" ){
                    obj.val(ogval);
                };
            });
        });
    };
})(jQuery);
