//funcion contra el spam
function antispam(cuenta,clase)
{
var dominio = "eva-spa.com"
document.write("<a class='"+ clase +"' href=\"mailto:" + cuenta + "@" + dominio + "\">" + cuenta + "@" + dominio + "</a>");
}

function opcionmenu(){
	if ((self.location.href == 'http://servidor.muroth/') || (self.location.href == 'http://www.muroth.com/nueva/') || (self.location.href == 'http://www.muroth.com/'))
	{
		var marcado='empresa';
	}
	else
	{
		var documento = self.location.href.match( /\/([^/]+)$/ )[1];
		marcado = documento.replace(".aspx","");
	}
	
	if (document.getElementById("imagen_" + marcado)!=null)
	{
		document.getElementById("imagen_" + marcado).src="imagenes/"+ marcado +"_on.gif";
		document.getElementById("imagen_" + marcado).onmouseout=function(){}
	}
}

// funciones para la fecha y hora
function fecha(){
	var mydate=new Date();
	var year=mydate.getYear();

	if (year < 1000)
		year+=1900;
		
	var day=mydate.getDay();
	var month=mydate.getMonth();
	var daym=mydate.getDate();

	if (daym<10)
	daym="0"+daym;

	var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado");
	var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
	document.write(dayarray[day]+ ", " + daym + " de " + montharray[month] + " de " + year);
}

function hora(){
	if (!document.layers&&!document.all&&!document.getElementById)

	return
	var Digital=new Date()
	var hours=Digital.getHours()
	var minutes=Digital.getMinutes()
	var seconds=Digital.getSeconds()
	var dn="am" 
	if (hours>12){
	dn="pm"
	hours=hours-12
	}

	if (hours==0)
	hours=12
	
	if (hours<=9)
	hours="0"+hours

	if (minutes<=9)
	minutes="0"+minutes

	if (seconds<=9)
	seconds="0"+seconds

	//change font size here to your desire

	myclock=hours+":"+minutes+" "+dn

	if (document.layers){
	document.layers.liveclock.document.write(myclock)
	document.layers.liveclock.document.close()
	}
	else if (document.all)
	liveclock.innerHTML=myclock
	else if (document.getElementById)
	document.getElementById("liveclock").innerHTML=myclock
	setTimeout("hora()",1000)
}
