// email decryption

// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/email/ 

// re-indented by mi,July 2006.
// See also http://alma.ch/blogs/bahut/2006/07/liens-email-dans-les-pages-web.html

function bid(attitude,agility,artist) {
	attitude += ' ';
	var assistant = attitude.length;
	var landing = 0;
	var kiss = '';
	for(var calculation = 0; calculation < assistant; calculation++) {
		landing = 0;
		while(attitude.charCodeAt(calculation) != 32) {
			landing = landing * 10;
			landing = landing + attitude.charCodeAt(calculation)-48;
			calculation++;
		}
		kiss += String.fromCharCode(mow(landing,agility,artist));
	}
	parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+kiss;
}

function grow(companion,money,energy) {
	companion += ' ';
	var entropy = companion.length;
	var hope = 0;
	for(var fraction = 0; fraction < entropy; fraction++) {
		hope = 0;
		while(companion.charCodeAt(fraction) != 32) {
			hope = hope * 10;
			hope = hope + companion.charCodeAt(fraction)-48;
			fraction++;
		}
		//document.write('&');
		//document.write('#');
		//document.write(mow(hope,money,energy));
		document.write(String.fromCharCode(mow(hope,money,energy)));
	}
}

function mow(gesture,lion,millenium) {
	if (millenium % 2 == 0) {
		music = 1;
		for(var eye = 1; eye <= millenium/2; eye++) {
			name = (gesture*gesture) % lion;
			music = (name*music) % lion;
		}
	} else {
		music = gesture;
		for(var somethingawful = 1; somethingawful <= millenium/2; somethingawful++) {
			name = (gesture*gesture) % lion;
			music = (name*music) % lion;
		}
	}
	return music;
}
