/********************************************

Ecogistics
jQuery Character Counter for Vote Comment

Version: 1.0
Modified From: jquery.dodosTextCounter
Author: Poccuo (http://www.poccuo.com)        	

*******************************************/

jQuery.fn.hint = function () {
  return this.each(function (){
    var t = jQuery(this); 
    var title = t.attr('title'); 

    if (title) { 
      t.blur(function (){
        if (t.val() == '') {
          t.val(title);
          t.addClass('blur');
        }
      });

      t.focus(function (){
        if (t.val() == title) {
          t.val('');
          t.removeClass('blur');
        }
      });

      t.parents('form:first()').submit(function(){
          if (t.val() == title) {
              t.val('');
              t.removeClass('blur');
          }
      });

      t.blur();
      t.addClass('blur');
    }
  });
}

jQuery(function($){
	$("#get_updates_form #email").hint();
});

