/**
 * mailto.js - Safe & Accessible Mailto
 * http://925html.com
 * 
 * Copyright (c) 2008 Eric Ferraiuolo - http://eric.ferraiuolo.name
 * MIT License - http://www.opensource.org/licenses/mit-license.php
 */

var mailto=function(){var C=/(\S*)\s?\[at\]\s?(\S*)\s?\[dot\]\s?(\S*)/,A="mailto:",E="Send email to:";function D(G){var F=C.exec(G);return F[1]+"@"+F[2]+"."+F[3];}function B(F){return Object.prototype.toString.apply(F)==="[object Array]";}return function(){var F=null,H=null,I=[],G=0;if(arguments.length==1&&B(arguments[0])){I=arguments[0];}else{for(G=0;G<arguments.length;G++){I.push(arguments[G]);}}for(G=0;G<I.length;G++){H=I[G];F=D(H.innerHTML);H.innerHTML=F;H.setAttribute("href",A+F);H.setAttribute("title",E+" "+F);}};}();
