// This code was pulled from http://www.webmasterworld.com/css/3232038.htm on 08Mar07
// Thanks Fotiman!

// Setup namespace to avoid conflicts 
var FOTI = window.FOTI || {}; 

/**  
 * Create a mailto link in your document
 * @param {String} container The id of the container for your link
 * @param {String} addr The portion to the left of the 'at' symbol
 * @param {String} domain The portion to the right of the 'at' symbol
 * @param {String} text The text to appear for the link
 **/ 
 
FOTI.mt = function(container,addr,domain,text) {
  var n = document.getElementById(container);  
  if(!n ) return;  
  n.innerHTML = "<a href='mailto:" + addr + "@" + domain + "'>" + text + "</a>";
}; 
