
		  var date = new Date()
		  var ano = date.getFullYear()
		  var dia = date.getDay()
		  var mes = date.getMonth()
		  var ndia = date.getDate()

		  if (mes==0) {var mes="January"}
		  if (mes==1) {var mes="February"}
		  if (mes==2) {var mes="March"}
		  if (mes==3) {var mes="April"}
		  if (mes==4) {var mes="May"}
		  if (mes==5) {var mes="June"}
		  if (mes==6) {var mes="July"}
		  if (mes==7) {var mes="August"}
		  if (mes==8) {var mes="September"}
		  if (mes==9) {var mes="October"}
		  if (mes==10) {var mes="November"}
		  if (mes==11) {var mes="December"}

		  var txt="th, "
	          if (ndia==1) {txt="st, "}
		  if (ndia==2) {txt="nd, "}
		  if (ndia==3) {txt="rd, "}

		  fecha = + ndia + txt + mes + " " + ano + " "

/*
Si quieres usar este script en tu sitio eres libre de hacerlo con la condici�n de que permanezcan intactas estas l�neas, osea, los cr�ditos.
No autorizo a publicar y ofrecer el c�digo en sitios de script sin previa autorizaci�n
http://javascript.tunait.com/
tunait@yahoo.com 
*/
var noticias = new Array()

noticias[0]= new noticia("ECSS Multipactor Tool","The first beta version of ECSS Multipactor Tool has been launched and is freely available in the Software section.","21/09/09","http://www.aurorasat.es/multipactortool.php","_blank")

noticias[1]= new noticia("EuMW 2009","New version 6.0.2 of FEST3D will be showcased in the EuMW 2009 to be held in Rome from September 29th to October 1st. Please visit us at booth #307 to get more information about the software features and our launch offers.","25/08/09","http://www.fest3d.com","_blank")

noticias[2]= new noticia("Ideas Award","Aurorasat has been awarded with a prize for research based enterprises from the Ideas Institute of UPV sponsored by Bancaixa.","13/12/07","http://www.ideas.upv.es","_blank")

noticias[3]= new noticia("MULCOPIM'08","Aurorasat will co-organize together with UPV, UVEG and ESA/ESTEC the 6th international workshop on Multipactor, Corona and Passive Intermodulation for Space RF Hardware (MULCOPIM).","30/10/07","mulcopim.php","")

noticias[4]= new noticia("Publication","Aurorasat staff has published in Physics of Plasmas an article related to multipactor discharge in multicarrier       systems","01/08/07","http://scitation.aip.org/getabs/servlet/GetabsServlet?prog=normal&id=PHPAEN000014000008082112000001&idtype=cvips&gifs=Yes","_blank")

noticias[5]= new noticia("GESTA 2007","Aurorasat has been selected to participate in the program GESTA funded by the local government through IMPIVA.","01/05/07","http://www.impiva.es/internet/impivacm.nsf/FB9A8C61A2C0714DC12570AD00473524/148CD4467CEE317EC12572260042760F?OpenDocument&config=6&idfolder=FB9A8C61A2C0714DC12570AD00473524&idpointer=14E51B862B7BE4B1C12572260045A43F","_blank")

var ancho = 179 
var alto = 145 
var marco = 0 
var fondo = '#ffffff' 
var pausilla = 1000 
var cursor = "default;"  
var colTitular = '#ffffff' 
var colTexto = '#ffffff' 
var colFecha = '#ffffff' 
var colEnlace = '#ffffff' 
var fuente = "arial" 
var tamTitular = '14' 
var tamTexto = '10' 
var tamFecha = '10' 
var tamEnlace = '11' 
var masInfo = true 
var poneFecha = true 

function noticia(titular,texto,fecha,enlace,destino){
	this.titular = titular
	this.texto = texto
	this.fecha= fecha
	this.enlace = enlace
	this.destino = destino
}

var det = false
function escribe(){
document.write ('<div id="mami" style="width:' + ancho + 'px; height:' + alto + 'px; position:relative;  overflow:hidden; border-left: solid #5e839f 1px;  border-right: solid #5e839f 1px;border-top: solid #5e839f 1px;border-bottom: solid #5e839f 1px ">')
document.write('<table bgcolor="' + fondo + '" border = "' + marco + '" width="' + ancho + 'px" height="100%"><tr><td valign="top">')
document.write ('<div id="uno" style="top:' + alto +'px; width:' + ancho + 'px; height:' + alto + 'px;  ">')
document.write ('<div class="titular">')
document.write (noticias[0].titular)
document.write ('</div>')
document.write ('<div class="fecha">')
document.write (noticias[0].fecha)
document.write ('</div>')
document.write ('<div class="texto">')
document.write (noticias[0].texto)
document.write ('</div>')
if(masInfo == true){
	document.write ('<a class="enlace" href="')
	document.write (noticias[0].enlace)
	document.write ('" target="' + noticias[0].destino + '">More information...</a>')
	}
document.write ('</div>')
document.write ('<div id="dos" style="top:' + (alto*2) +'px; width:' + ancho + 'px; height:' + alto + 'px; ">')
document.write ('<div class="titular">')
document.write (noticias[1].titular)
document.write ('</div>')
document.write ('<div class="fecha">')
document.write (noticias[1].fecha)
document.write ('</div>')
document.write ('<div class="texto">')
document.write (noticias[1].texto)
document.write ('</div>')
if(masInfo == true){
	document.write ('<a class="enlace" href="')
	document.write (noticias[1].enlace)
	document.write ('" target = "' + noticias[1].destino + '">More information...</a>')
	}
document.write ('</div>')
document.write('</td></tr></table>')
document.write ('</div>')
if(navigator.appName == "Netscape")
{altoUno = document.getElementById('uno').offsetHeight}
else
{altoUno = document.getElementById('uno').clientHeight}
document.getElementById('uno').onmouseover =function(){
	det = true
	clearTimeout(tiempo)
	}
document.getElementById('uno').onmouseout =function(){
	det = false;
	clearTimeout(tiempo)
	escrolea()
	}

document.getElementById('dos').onmouseover =function(){
	det = true
	clearTimeout(tiempo)
	}
document.getElementById('dos').onmouseout =function(){
	det = false;
	clearTimeout(tiempo)
	 escrolea()
	 
	}
}
desp = 1
var cont = 1
var pos,pos2
function escrolea(){
pos = document.getElementById('uno').style.top
pos = pos.replace(/px/,"");
pos = pos.replace(/pt/,"");
pos = new Number(pos);
pos2 = document.getElementById('dos').style.top
pos2 = pos2.replace(/px/,"");
pos2 = pos2.replace(/pt/,"");
pos2 = new Number(pos2);
pos -= desp
pos2 -= desp

if (pos == desp){
	var contenidos = ""
	document.getElementById('dos').style.top = alto + "px"
	document.getElementById('dos').childNodes[0].firstChild.nodeValue  = noticias[cont].titular
	if(poneFecha == true){
	document.getElementById('dos').childNodes[1].firstChild.nodeValue  = noticias[cont].fecha
	}
	document.getElementById('dos').childNodes[2].firstChild.nodeValue  = noticias[cont].texto
	if(masInfo == true){
		document.getElementById('dos').childNodes[3].href = noticias[cont].enlace 
		document.getElementById('dos').childNodes[3].target = noticias[cont].destino
	}
	document.getElementById('uno').style.top = 0
	if(cont == noticias.length-1)
		{cont=0}
	else{
		cont++
		}
	pausa()
	return false
	}
else{
	if (pos2 == desp){
		var contenidos = ""
		document.getElementById('uno').style.top = alto + "px"
		document.getElementById('uno').childNodes[0].firstChild.nodeValue  = noticias[cont].titular
		if(poneFecha == true){
		document.getElementById('uno').childNodes[1].firstChild.nodeValue  = noticias[cont].fecha
		}
		document.getElementById('uno').childNodes[2].firstChild.nodeValue  = noticias[cont].texto
		if(masInfo == true){
		document.getElementById('uno').childNodes[3].href  = noticias[cont].enlace
		document.getElementById('uno').childNodes[3].target  = noticias[cont].destino
		}
		document.getElementById('dos').style.top = 0
		if(cont == noticias.length-1)
		{cont=0}
	else{
		cont++
		}
		pausa()
		return false
		}
	else{
		document.getElementById('uno').style.top = pos + "px"
		document.getElementById('dos').style.top = pos2 + "px"
		}
	}
tiempo = window.setTimeout('escrolea()',50)
}
var tiempo
function pausa()
{
clearTimeout(tiempo)
if (det == false){
	tiempo = setTimeout ('continuar()',2000)
	}
}
function continuar()
{
if(det == false)
	{escrolea()}
}

document.write('<style type="text/css">')
document.write ('#uno {')
document.write ('color: #006699;')
if(cursor == "pointer" || cursor == "hand"){
cursor = (navigator.appName == "Netscape")?'pointer;':'hand;';
}
document.write ('cursor:' + cursor + ";")
document.write ('position:absolute;}')
document.write ('#dos {')
document.write ('color: #006699;')
document.write ('cursor:' + cursor + ";")
document.write ('position:absolute;}')
document.write ('.titular{')
document.write ('color:' + colTitular +';')
document.write ('font-family:' + fuente + ';')
document.write ('font-size :' + tamTitular + 'px;font-weight:bold}')
document.write ('.texto{')
document.write ('color:' + colTexto + ';')
document.write ('font-family:' + fuente + ';')
document.write ('font-size:' + tamTexto + 'px;}')
if(poneFecha == true){
document.write ('.fecha{')
document.write ('color:' + colFecha +';')
document.write ('font-family:' + fuente + ';')
document.write ('font-size :' + tamFecha + 'px;font-weight:bold}')
}
else{
document.write ('.fecha{display: none;}')
}
document.write ('.enlace{')
document.write ('color:' + colEnlace + ';')
document.write ('font-family:' + fuente + ';')
document.write ('font-size:' + tamEnlace + 'px;}')
document.write ('</style>')

