// Fuckin' moving shit

window.addEvent('domready', function() { 
	var scroll = new Fx.Scroll('wrapper', {
	wait: false,
	duration: 1000,
	offset: {'x': -50, 'y': 0},
	transition: Fx.Transitions.Quad.easeInOut
	});
	$$('#subnav li a').each(function(anchor) {
		var linkNumber = anchor.id.replace('link', '');
		anchor.addEvent('click', function(event) {
			$$('#subnav li').each(function(li) {li.removeClass('selected')})
			anchor.parentNode.addClass('selected');
			event = new Event(event).stop();
			scroll.toElement('content' + linkNumber);
		});  
	})
});

var theText = new Array()
	
theText[0] = 'I love Maiden.'
theText[1] = 'I wear pants.'
theText[2] = 'I am getting fat.'
theText[3] = 'I love Helvetica.'
theText[4] = 'I hate cats.'
theText[5] = 'I blame you.'
theText[6] = 'I own a suit.'
theText[7] = 'I just redid my porch.'

var j = 0
var p = theText.length;
var whichText = Math.round(Math.random()*(p-1));
function showText(){
document.write(''+theText[whichText]+'');
}

function doMail(recip,domain){
	var mail = "mailto:" + recip + "@" + domain;
	window.location.href = mail;
}

