//Navegador:
ie=document.all?1:0
n=document.layers?1:0

//Para que desaparezcan los textos, 1 para si, 0 para no
volver=0

//Tiempo entre noticias en milisegundos:
tiempo=3500

//Vuelve a empezar al acabar (0 para que no lo haga)
var loop=2

//Fuente
Fuente='verdana'

//Tamaño fuente en pixel 
Tfuente=11

//Colores, primero como background, ultimo color como se quiere que quede:
colors=new Array()
colors[0]='#EBEEFA'
colors[1]='#EEEEEE'
colors[2]='#CCCCCC'
colors[3]='#999999'
colors[4]='#666666'
colors[5]='#333333'
colors[6]='#000000'

//Noticias, usar # si no se quiere poner link
news=new Array()
news[0]=new Array()
news[0]["text"]="ESPÍRITO SANTO GESTIÓN OBTIENE UN PREMIO LIPPER 2009"
news[0]["link"]="nw/noticias2.asp"
news[1]=new Array()
news[1]["text"]="VENCIMIENTO DE E.S. RENDIMIENTO GARANTIZADO FI Y RENOVACIÓN COMO FONGARANTÍA EUROPA FI"
news[1]["link"]="nw/noticias3.asp"
news[2]=new Array()
news[2]["text"]="CAMBIO DE DENOMINACIÓN DE ESPIRITO SANTO DINERO PLUS Y ESPIRITO SANTO LIQUIDEZ"
news[2]["link"]="nw/noticias1.asp"


//No modificar
Inicio=new Function("oNews=new makeObj('divNews','divCont'); Noticias(0)")

function makeObj(obj,nest)
{
    nest=(!nest) ? '':'document.'+nest+'.'
    this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')
    this.writeref=(n) ? eval(nest+'document.'+obj+'.document'):eval(obj);		
	this.Cambiar=b_Cambiar
    this.obj = obj + "Object"; 	eval(this.obj + "=this")	
}
function b_Cambiar(text,link,font,size,speed,fn,num,c0,c1,c2,c3,c4,c5,c6)
{


	if(num<arguments.length && arguments[num]!=0){
		writetext='<a href="'+link+'" style="text-decoration:none; font-size:'+size+'px">'
		+'<font face="'+font+'" color="'+arguments[num]+'">'+text+'</font></a>'
		if(n)
		{
			this.writeref.write(writetext); 
			this.writeref.close();
			
		}
		if(ie) this.writeref.innerHTML=writetext		
		num++
		setTimeout(this.obj+'.Cambiar("'+text+'","'+link+'","'+font+'",'+size+','+speed+',"'
		+fn+'",'+num+',"'+c0+'","'+c1+'","'+c2+'","'+c3+'","'+c4+'","'+c5+'","'+c6+'")',speed)
	}
	else setTimeout('eval('+fn+')',tiempo)
}

function Noticias(num)
{
	if(num<news.length)
	{
		fn=volver?'volver('+num+')':'Noticias('+(num+1)+')';
		oNews.Cambiar(news[num]["text"],news[num]["link"],Fuente,Tfuente,100,fn,7,
		colors[0],colors[1],colors[2],colors[3],colors[4],colors[5],colors[6])
	}
	else if(loop)Noticias(0)
}

//onload=Inicio;
