/**
 * => Mootools 1.2
 * 	=> Core
 * @classDescription
 * Classe permettant de faire clignoter du texte
 * @author M@nu/Baphira
 */
var Blinker = new Class({
	
	Implements: [Options],
	
	options: {
		show_delay: 300,
		hide_delay: 800
	},
	
	initialize: function(elts, options){
		this.setOptions(options);
		
		if($type(elts) != 'array') {
			elts[0] = $(elts);
		}
		
		elts.each(function(el) {
			var showFunct = function () {
				el.setStyle('visibility', 'visible');
				hideFunct.delay(this.options.hide_delay);
			}.bind(this);
			var hideFunct = function () {
				el.setStyle('visibility', 'hidden');
				showFunct.delay(this.options.show_delay);
			}.bind(this);
			hideFunct.delay(this.options.hide_delay);
		}.bind(this));
	}

});