
/* code based on ideas from addressmunger.com */
function liamEetirw(name, link, attrs)
{
	var suffix=["64","103","x65","x6f","x72","103","101","x73","x72","105","118","x65","x72","115","111","99","x63","101","x72","x2e","111","114","x67","x2e","x61","117"];
	document.write("<a href=\"&#x6d;&#x61;&#000105;&#x6c;&#x74;&#111;&#x3a;");
	var qmark=name.indexOf("?");
	if (qmark==-1) qmark=name.length;
	for (i=0; i<qmark; i++) document.write("&#"+name.charCodeAt(i)+";");
	for (i=0; i<suffix.length; i++) document.write("&#"+suffix[i]+";");
	if (qmark!=name.length)
	{
	  for (i=qmark; i<name.length; i++)
	  {
	    if (name[i]==":")
	      document.write("=");
	    else
	      document.write(name[i]);
	  }
	}
	document.write("\"/>");
	var patt=new RegExp("\.gif$|\.jpg$|\.png$","i");
	if (patt.test(link)) // check for image name
	{
		document.write("<img src=\""+link+"\"");
		if (attrs!=null)
		{
			document.write(" "+attrs);
		}
		document.write("/>");
	}
	else
	{
		document.write(link);
	}
	document.write("</a>");
}

/* courtesy of stevenlevithan.com */
function trim(str)
{
    return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}
