var opacity = 100;
function animateOut(div) {
	if (opacity > 0) {
		opacity = opacity - 10;
		decreaseOpaque(div,opacity);
		if (opacity > 0) setTimeout("animateOut('" + div + "')",50);
		else { setTimeout("hide('recruit'),show('contact')",200); setTimeout("window.location='contact.html'",500); }
	}
}

function decreaseOpaque(id,level) {
	document.getElementById(id).style.filter = "alpha(opacity=" + level + ")";
	document.getElementById(id).style.opacity = (level/100);
}

function hide(id) { document.getElementById(id).style.display = 'none'; }
function show(id) { document.getElementById(id).style.display = 'block'; }