var rot13 = 1; function rot13init() { var map = []; var s = "abcdefghijklmnopqrstuvwxyz"; var i; //generate the key for (i=0;i='A' && b<='Z' || b>='a' && b<='z' ? map[b] : b); } return s; } function geo_decode(anchor) { //getattriute is needed, cause it lefts such things like http:// and only returns the url, the 2 is for the IE, otherwise it would not work var href = anchor.getAttribute('href', 2); var address = href.replace(/contact\/([a-z0-9._\-]+)\+([a-z0-9._%\-]+)\+([a-z.]+)/i, '$1' + '@' + '$2' + '.' + '$3'); var linktext = anchor.innerHTML; // IE Fix if(href!=address){ var thistitel = anchor.getAttribute('title'); anchor.setAttribute('href','mailto:' + (rot13 ? str_rot13(address,rot13init()) : address)); // Add mailto link anchor.setAttribute('title', thistitel+' to : ' + (rot13 ? str_rot13(address,rot13init()) : address)); anchor.innerHTML = linktext; // IE Fix document.status='mailto:' + (rot13 ? str_rot13(address,rot13init()) : address); } } function geo() { // Check for browser support if (!document.getElementsByTagName) { return false; } var tooltip_js_on='Send e-mail'; var tooltip_js_off='To reveal this e-mail address, you will need to answer a simple question'; var links=document.getElementsByTagName('a'); // Get all anchors var l; for (l=0;l