// JavaScript Document

var lastLoc = "";
function contactShuffle(){
	var c = document.getElementById("contactBox");
	if (c.selectedIndex > 0){
		if(lastLoc != "") document.getElementById(lastLoc).className = "invisible";
		lastLoc = c.options[c.selectedIndex].value;
		document.getElementById(lastLoc).className = "";
	}
}

window.onload = function(){
	document.getElementById("contactBox").onchange = contactShuffle;
	document.getElementById("contactBox").selectedIndex = 0;	
}