//*****************************************************************************
// Módulo para los avisos de noticias.
// 
// 
// 
// 
// 
//*****************************************************************************


<!--

//Secify scroller contents
var line = new Array();
line[1]="21/12/11: Los días 1 y 2 de diciembre se celebró el VIII Encuentro de la Red, organizado por el CSIC. En el Apartado Encuentros de la Red (Madrid 2011) podéis encontrar toda la información del acto, presentaciones, materiales de los Talleres, fotos de familia, etc.";
line[2]="21/12/11: Los días 1 y 2 de diciembre se celebró el VIII Encuentro de la Red, organizado por el CSIC. En el Apartado Encuentros de la Red (Madrid 2011) podéis encontrar toda la información del acto, presentaciones, materiales de los Talleres, fotos de familia, etc.";

lines=line.length-1; //--Number of lines

temp="";
var tempMio="";
nextchar=-1;
nextline=1;
cursor="_";
var barra = document.getElementById("barraid").firstChild;

function animate(){
	if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){
		nextline++;
		nextchar=-1;
		barra.nodeValue=tempMio;
		temp="";
		tempMio="";
		setTimeout("nextstep()",4000);
	}else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
		nextline=1;
		nextchar=-1;
		barra.nodeValue=tempMio;
		temp="";
		tempMio="";
		setTimeout("nextstep()",4000);
	}else{
		nextstep();
	}
}

function nextstep(){
	if (cursor=="\\"){
		cursor="|";
	}else if (cursor=="|"){
		cursor="/";
	}else if (cursor=="/"){
		cursor="-";
	}else if (cursor=="-"){
		cursor="\\";
	}
	
	if (tempMio.length > 130){
		tempMio = "";
	}
	
	nextchar++;
	temp+=line[nextline].charAt(nextchar);
	tempMio+=line[nextline].charAt(nextchar);
	barra.nodeValue=tempMio+cursor;
	setTimeout("animate()",50);
}

//if IE 4+ or NS6
if (document.all||document.getElementById)
	window.onload=animate;
// -->
