$.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.blink = function(args) {
	var args = jQuery.extend({
	  'showtime' : 500,
	  'staytime' : 1000
	}, args);
 var e = $(this);
 var a = setInterval(function() {
  if ($(e + ':visible')) {
   if (e.attr('stop')) {
    clearInterval(a);
    e.removeAttr('stop');
   }
   
   e.fadeOut(args.showtime, function() {
    $(this).fadeIn(args.showtime);
   });
  }
 }, args.showtime+args.staytime+1);
}
*/
$.fn.unblink = function() {
 $(this).attr('stop', 1);
}