(function(jQuery) {
	jQuery.fn.blink = function(options) {
		var defaults = { delay: 500 };
		var options = jQuery.extend(defaults, options);
	
		return this.each(function() {
			var obj = jQuery(this);
			var timerid = setInterval(function() {
			if (obj.css("display") == "block") {
			obj.fadeOut(1);
		}
		else {
			obj.fadeIn(1);
		}
		}, options.delay);
			obj.attr("timerid", timerid);
		});
	}
	//
	jQuery.fn.unblink = function(options) {
		return this.each(function() {
		var obj = jQuery(this);
			if (obj.attr("timerid") > 0) {
				clearInterval(obj.attr("timerid"));
				obj.attr("timerid", 0);
				obj.css('visibility', 'visible');
			}
		});
	}
	//
} (jQuery))
