// Hide email address from prying spambots.
// Use text = 'DEFAULT' to for text equal to email address.
// Use subject = 'NONE' to not pre-set the Subject: line.

function emLink(text, subject) {
  var foo = "eu";
  var bar = "robert";
  var baz = "phair";
  var s1 = "@";
  var s2 = ".";
  var gleep = bar + s1 + baz + s2 + foo;

  if (text == "DEFAULT") {
    text = gleep;
  }

  if (subject == "NONE") {
    subject = "";
  } else {
    subject = "?subject=" + subject;
  }

  document.write('<a class=\"contact-us\" href=\"mailto:' + gleep
		+ subject + '\">' + text + '</a>');
}
