// eMail Obfuscator Script 2.1 by Tim Williams - freeware
// http://www.u.arizona.edu/~trw/spam/spam4.htm

function getEmail(text, style)
{
	coded = "bolwo573o@wkvk55x.no";
	cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890";
		shift = coded.length;
		link = "";
		for (i=0; i<coded.length; i++){
			if (cipher.indexOf(coded.charAt(i))==-1){
				ltr=coded.charAt(i);
				link+=(ltr);
			}
			else {     
				ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length;
				link+=(cipher.charAt(ltr));
			}				
		}
		document.write ("<a href='mailto:"+link+"' "+(style==""?"":"style="+style)+">"+text+"</a>");
}

