$.fn.blink = function(args) {
 function show(me, args) {
  $(me).css('visibility', 'visible');
  setTimeout(function() {
   hide(me, args);
  }, args.staytime);
 }
 function hide(me, args) {
  if ($(me).attr('stop')) {
   $(me).removeAttr('stop');
   return false;
  }
  $(me).css('visibility', 'hidden');
  setTimeout(function() {
   show(me, args);
  }, args.hiddentime);
 }
 
	var args = jQuery.extend({
	  'staytime' : 1000,
	  'hiddentime' : 1000
	}, args);
	
 $(this).each(function() {
  hide(this, args);
 });
}
$.fn.unblink = function() {
 $(this).attr('stop', 1);
}