function mainmenuover(what) {}
function mainmenuout(what) {}

function toggle (tag, name) {
	var bio = document.getElementById (name + 'bio');
	if (bio.style.display == 'block') {
		bio.style.display = 'none';
		tag.innerHTML = 'Show Details';
	}
	else {
		bio.style.display = 'block';
		tag.innerHTML = 'Hide Details';
	}
	return false;
}

function doOnLoad() {

	// preload images


}

function preload(imgsrc) {
	var i = new Image();
	i.src = imgsrc;
}



// error class
function Errors() {
	this.errors = new Array();

	this.add = function(msg) {
		this.errors[this.errors.length] = msg;
	}
	this.alert = function() {
		if(!this.errors.length) return false;

		var msg = 'The following error(s) have occurred:\n\n';

		for(var i=0; i<this.errors.length; ++i) {
			msg += '*  ' + this.errors[i];
			if(i < this.errors.length - 1) msg += '\n\n';
		}

		alert(msg);
		return true;
	}
}

function validate_email(email) {
	if(email.length <= 5) return false;
	if(email.indexOf('@', 0) == -1) return false;
	return true;
}

