// JavaScript Document
function antispam(cuenta,dominio,clase){
	document.write("<a class='"+ clase +"' href=\"mailto:" + cuenta + "@" + dominio + "\">" + cuenta + "@" + dominio + "</a>");
}

function opcionmenu(idioma){
	if ((self.location.href == 'http://servidor.mmaxsl/' + idioma +'/') || (self.location.href == 'http://www.mmaxsl.com/nueva/' + idioma +'/') || (self.location.href == 'http://www.mmaxsl.com/' + idioma +'/'))
	{
		var marcado='empresa';
	}
	else
	{
		var documento = self.location.href.match( /\/([^/]+)$/ )[1];
		marcado = documento.replace(".aspx","");
	}
	
	if (document.getElementById(marcado)!=null)
	{
		document.getElementById(marcado).className='on';
		document.getElementById(marcado).onmouseout=function(){}
	}
}
