// Muestra u oculta una capa.
function clickShowHide(id) {
	if (document.getElementById(id).style.display == 'none')
		document.getElementById(id).style.display = 'block';
	else document.getElementById(id).style.display = 'none';
}

// Envia el formulario de enviar web a un amigo.
function sendMail(form) {
	fomr.url.value = window.location;
	return (fomr.emaildestino.value != "");
}

// Hace más grande el tamaño de la fuente.
function bigfont() {
	if (document.getElementById('titulo'))
		document.getElementById('titulo').style.fontSize = '28px';		// Noticia, contenido, publicacion.

	if (document.getElementById('cuerpo'))
		document.getElementById('cuerpo').style.fontSize = '16px';		// Contenido, noticia.
	
	if (document.getElementById('subtitulo'))
		document.getElementById('subtitulo').style.fontSize = '18px';	// Noticia.

	if (document.getElementById('info'))
		document.getElementById('info').style.fontSize = '16px';		// Publicación.

	if (document.getElementById('detalles'))
		document.getElementById('detalles').style.fontSize = '14px';	// Publicación.
}

// Hace más pequeño el tamaño de la fuente.
function smallfont() {
	if (document.getElementById('titulo'))
		document.getElementById('titulo').style.fontSize = '24px';		// Noticia, contenido, publicacion.

	if (document.getElementById('cuerpo'))
		document.getElementById('cuerpo').style.fontSize = '14px';		// Contenido, noticia.
	
	if (document.getElementById('subtitulo'))
		document.getElementById('subtitulo').style.fontSize = '16px';	// Noticia.

	if (document.getElementById('info'))
		document.getElementById('info').style.fontSize = '14px';		// Publicación.

	if (document.getElementById('detalles'))
		document.getElementById('detalles').style.fontSize = '12px';	// Publicación.
}


var i;
path = 'imgs/css/'
imagen1 = path+'foto-izquierda.gif';
imagen2 = path+'foto-izquierda-hover.gif';
imagen3 = path+'foto-centro.gif';
imagen4 = path+'foto-centro-hover.gif';
imagen5 = path+'foto-derecha.gif';
imagen6 = path+'foto-derecha-hover.gif';
var imagenes = new Array(imagen1, imagen2, imagen3, imagen4, imagen5, imagen6);
var lista_imagenes = new Array();

function cargarimagenes(){
	for(i in imagenes) {
		lista_imagenes[i] = new Image();
		lista_imagenes[i].src = imagenes[i];
/*		alert('Imagen '+imagenes[i]+' cargada.');*/
	}
}
