function initSecureMail()
{
  var mail_links = $A(document.getElementsByClassName("securemail"));
  mail_links.each(function(link) { new SecureMail(link) });
}

var SecureMail = Class.create();
SecureMail.prototype = {
  initialize: function(obj)
  {
    this.link = obj;
    this.address = this.link.firstChild.nodeValue.replace('||','@');
    this.link.firstChild.nodeValue = this.address;
    Event.observe(this.link, "click", this.redirect.bindAsEventListener(this), false);
  },
  redirect: function() { location.href = "mailto:"+this.address; }
}

function initGoogleAnalytics()
{
	_uacct = "UA-178476-1";
    urchinTracker();
}

Event.observe(window, 'load', initGoogleAnalytics, false);
Event.observe(window, 'load', initSecureMail, false);
Event.observe(window, "unload", Event.unloadCache, false);

