future = 'about.php';
window.onload = bonjour;

function bonjour(){
	var choices = $('nav').getElementsByTagName("a");
	for (i=0;i<choices.length;i++){
		var chosen = choices[i];
		chosen.onclick = function() {
			breathe(this.href);
			return false;
		}
	}
}

function breathe(y){
	future = y;
	new Effect.Fade('psi', {queue: 'end', duration: 0.3, afterFinish: guide, limit: 1})
}

function guide(){
	window.location.href = future;
}