/*
	FlashText
	Pisca texto nas cores em duas cores
	Data: 29/10/2001
	Copyright(c) 2001 - By Option-line!
	http://www.option-line.com/webmasters/
*/

function ObjFlashText(id, texto, cor1, cor2, speed_ms)
{
	this.id = id;
	this.texto = texto;
	if(cor1)
		this.cor1 = cor1;
	else
		this.cor1 = 'black';
	if(cor2)
		this.cor2 = cor2;
	else
		this.cor2 = 'red';
	if(speed_ms)
		this.speed_ms = speed_ms;
	else
		this.speed_ms = 300;
	this.cor = cor1;
	this.create = function() {
		document.write('<span id="' + this.id + '" style="color:"' + cor1 + ';">' + this.texto + '</span>');
		this.interval = window.setInterval(this.id + '.flash()', this.speed_ms);
	}
	this.flash = function() {
		if(document.all) {
			var o = document.all[this.id];
			this.cor = this.cor == this.cor1 ? this.cor2 : this.cor1;
			o.style.color = this.cor;
		}
	}
	this.create();
	return this;
}

