// Email address obfuscation against spam bots

function myDecode(n, s) {
  var i, c;
  var retval = "";
  for (i = 0; i < s.length; i++) {
    c = s.charCodeAt(i);
    c = (c - n) & 0xff;
    retval += String.fromCharCode(c);
  }
  return retval;
}

function do_antispam() {
  var n = 35;
  var mw_email = myDecode(n, unescape("%90%8C%86%8B%84%8FQ%9A%8C%91%96%92%95c%92%96%86%8FQ%86%84"));
  var sh_email = myDecode(n, unescape("%96%97%98%84%95%97%8Bc%91%84%97%8C%92%91%84%8F%86%92%95%93%92%95%84%97%88Q%86%92%90Q%84%98"));
  var rhw_email = myDecode(n, unescape("%95%8B%9A%92%92%87c%95%8C%90Q%86%92%90"));
  document.getElementById('mw-email').setAttribute('href', 'mailto:' + mw_email);
  document.getElementById('mw-email').firstChild.nodeValue = mw_email;
//  document.getElementById('sh-email').setAttribute('href', 'mailto:' + sh_email);
//  document.getElementById('sh-email').firstChild.nodeValue = sh_email;
  document.getElementById('rhw-email').setAttribute('href', 'mailto:' + rhw_email);
  document.getElementById('rhw-email').firstChild.nodeValue = rhw_email;
}
