// JavaScript Document
function antispam(cuenta,dominio,clase)
{
	document.write("<a class='"+ clase +"' href=\"mailto:" + cuenta + "@" + dominio + "\">" + cuenta + "@" + dominio + "</a>");
}

function googlekey(keyabajo,kayarriba,domabajo,domarriba){
	var documento = self.location.href.match( /\/([^/]+)$/ )[1];
	if (document.location.href == 'http://servidor.'+ domabajo +'/'+ documento)
	{
		document.write("<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key="+ keyabajo +"' type='text/javascript'></script>");
	}
	else
	{
		if (document.location.href == 'http://'+ domarriba +'/'+ documento);
		{
			document.write("<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key="+ kayarriba +"' type='text/javascript'></script>");
		}
	}
}

function imprimir(que) {
	var ventana = window.open("", "", "");
	var contenido = "<html><body onload='window.print();window.close();'>" + document.getElementById(que).innerHTML + "</body></html>";
	ventana.document.open();
	ventana.document.write(contenido);
	ventana.document.close();
}

function tam_texto(accion){
	tamtexto = $(".textos_noticia").css('font-size');
	tamtexto = tamtexto.replace('px','');
	tamtexto = parseInt(tamtexto);
	if (accion == 0 && tamtexto > 7){
		tamtexto=tamtexto-1;
		$(".textos_noticia").css('font-size',tamtexto+"px");
	}
	if (accion == 1 && tamtexto < 20){
		tamtexto=tamtexto+1;
		$(".textos_noticia").css('font-size',tamtexto+"px");
	}
}
