function correo() {
	direccion="solotematicas@terra.es"
	document.write('<a href="mailto:'+direccion+'">');
	document.write('<b><font color="#0000FF">'+direccion+'</font></b>');
	document.write('</a>');
}


imagenes	= new Array("Novedades1.jpg","Novedades1a.jpg");
				
imagen = 0;
total_imagenes = imagenes.length				
				
function rotar() {
	if (document.images) {
		if (document.banner.complete) { // diferencia con Guion03_08
			imagen++;
			if (imagen == total_imagenes) {
				imagen = 0;
			}
			document.banner.src = imagenes[imagen];
		}
		setTimeout("rotar()",1000)
	}
}

function carga(tema) {
	var cad = ''+tema
	escribeCookie("tema",cad,300)
	location.href = "index_tema.htm"
}

function escribeCookie(nombre,cadena,tiempo) {
	var hoy = new Date()
	var vence = 0
	if (tiempo>0)	vence = new Date(hoy.getTime()+1000*tiempo)				// Vencimiento de segundos
	if (tiempo==0)	vence = new Date(hoy.getTime()+1000*60*60*24*365*100)	// Vencimiento de 100 aņos
	if (tiempo<0)	vence = new Date(hoy.getTime()-1000*60*60*24*tiempo)	// Vencimiento de dias
	// var vence = new Date(hoy.getTime()+365*24*60*60*1000)					// Vencimiento de un aņo
	var fecha = ";expires=" + vence.toGMTString()								// caducidad
	var contenido = nombre + "=" + cadena + fecha								// CON caducidad
	document.cookie = contenido														// Escribe la cookie
	//alert("Escrito ("+contenido+")")
}