/************************************************/
/*  JavaScript que intercambia lineas de texto  */
/*  Arreglos:                                   */
/*                                              */
/*  Mayor información:                          */
/************************************************/
var speed=3500
var news=new Array()
news[0]		="Bienvenido a Inmobiliaria RE/MAX"
news[1]		="Bienvenido a Inmobiliaria RE/MAX"
news[2]		="Bienvenido a Inmobiliaria RE/MAX"
news[3]		="Bienvenido a Inmobiliaria RE/MAX"
news[4]		="Bienvenido a Inmobiliaria RE/MAX"
news[5]		="Bienvenido a Inmobiliaria RE/MAX"
news[6]		="Bienvenido a Inmobiliaria RE/MAX"
news[7]		="Bienvenido a Inmobiliaria RE/MAX"
news[8]		="Bienvenido a Inmobiliaria RE/MAX"
news[9]		="Bienvenido a Inmobiliaria RE/MAX"
news[10]	="Bienvenido a Inmobiliaria RE/MAX"
news[11]	="Bienvenido a Inmobiliaria RE/MAX"
news[12]	="Bienvenido a Inmobiliaria RE/MAX"

var newsWidth=new Array()
newsWidth[0]="subtickertapefontMedian"
newsWidth[1]="subtickertapefontLarge"
newsWidth[2]="subtickertapefontSmall"
newsWidth[3]="subtickertapefontSmall"
newsWidth[4]="subtickertapefontSmall"
newsWidth[5]="subtickertapefontLarge"
newsWidth[6]="subtickertapefontSmall"
newsWidth[7]="subtickertapefontSmall"
newsWidth[8]="subtickertapefontSmall"
newsWidth[9]="subtickertapefontLarge"
newsWidth[10]="subtickertapefontSmall"
newsWidth[11]="subtickertapefontSmall"
newsWidth[12]="subtickertapefontSmall"


i=0
if (document.all)
tickerobject=document.all.subtickertape.style
else
tickerobject=document.tickertape.document

function regenerate(){
	window.location.reload()
}

function regenerate2(){
	if (document.layers)
	setTimeout("window.onresize=regenerate",450)
}

function update(){
	BgFade(0xff,0xff,0xff,0x33,0x44,0x99,10);
	if (document.layers){
	document.tickertape.document.subtickertape.document.write('<span>'+news[i]+'</span>');
	document.tickertape.document.subtickertape.document.close();
	}
	else 
	document.all.subtickertape.innerHTML=news[i]
	document.all.subtickertape.className = newsWidth[i];
		
	if (i<news.length-1)
	i++
	else
	i=0
	setTimeout("update()",speed)
}
	
function BgFade(red1, grn1, blu1, red2,
	grn2, blu2, steps) {
	sred = red1; sgrn = grn1; sblu = blu1; 
	ered = red2; egrn = grn2; eblu = blu2; 
	inc = steps; 
	step = 0; 
	RunFader();
}

function RunFader() {
	var epct = step/inc; 
	var spct = 1 - epct; 
	if (document.layers)
	tickerobject.bgColor =
	Math.floor(sred * spct + ered *
	epct)*256*256 +
	Math.floor(sgrn * spct + egrn * epct)*256 +
	Math.floor(sblu * spct + eblu * epct); 
	else
	tickerobject.backgroundColor=
	Math.floor(sred * spct + ered *
	epct)*256*256 +
	Math.floor(sgrn * spct + egrn * epct)*256 +
	Math.floor(sblu * spct + eblu * epct); 
	if ( step < inc ) {
	setTimeout('RunFader()',50); 
	}
	step++;
}

