function Malamute_EmailLink_Go(encryptedEmail)
{
	self.location.href = "mai" + "lto:" + Malamute_EmailLink_EmailDecrypt(encryptedEmail);
}

var mw_mailVector = "d45esn83fy0@im7ro_w92tjhl6a-gbz.xpvuqck1d".split("");
function mw_dycryptEmail(encryptedEmail)
{
	cipher = encryptedEmail.split("");
	plain = "";
	for(i=0; i<cipher.length; i++)
	{
		for(j=1; j<mw_mailVector.length; j++)
		{
			if(mw_mailVector[j]==cipher[i])
			{
				plain = plain + mw_mailVector[j-1];
				break;
			}
		}
	}
	return plain;
}

function mw_emailLinks()
{
	if (document.getElementById && document.createElement && document.appendChild)
	{
		var anchors = document.getElementsByTagName("a");
		for (var i = 0; i < anchors.length; i++)
		{
			var rel = anchors[i].getAttribute("rel");
			if (rel && (rel.substring(0,8) == "mw-mail:"))
			{
				var plain = mw_dycryptEmail(rel.substring(8));
				anchors[i].setAttribute("title", plain);
				anchors[i].setAttribute("href", "mailto:" + plain);
				if (anchors[i].firstChild.nodeValue == "[EmailLink]")
					anchors[i].firstChild.nodeValue = plain;
			}
		}
	}
}

mw_addOnload(mw_emailLinks);
