// JavaScript Document

//var isShown = false;
var thisPerson = "";
var thisImage = "";

function hideBoard(tP, tI){
/*	document.getElementById("mr1").style.display = "none";
	document.getElementById("mr2").style.display = "none";
	document.getElementById("sr1").style.display = "none";
	document.getElementById("sr2").style.display = "none";
	document.getElementById("dh1").style.display = "none";
	document.getElementById("dh2").style.display = "none";
	document.getElementById("jz").style.display = "none";
	document.getElementById("ms").style.display = "none";
	
	document.getElementById("mr1i").src = "../img/adown.gif";
	document.getElementById("mr2i").src = "../img/adown.gif";
	document.getElementById("sr1i").src = "../img/adown.gif";
	document.getElementById("sr2i").src = "../img/adown.gif";
	document.getElementById(ti).src = "../img/adown.gif";
	document.getElementById(ti).src = "../img/adown.gif";
	document.getElementById(ti).src = "../img/adown.gif";
	document.getElementById(ti).src = "../img/adown.gif";*/
	
	document.getElementById(tP).style.display = "none";
	document.getElementById(tI).src = "../img/aleft.gif";
}
function showBoard(thePerson, theImage){
	if (thePerson == thisPerson){
		hideBoard(thePerson, theImage);
		thisPerson = "";
	}else{
		if (thisPerson != ""){
			hideBoard(thisPerson, thisImage);
		}
		document.getElementById(thePerson).style.display = "block";
		document.getElementById(theImage).src = "../img/adown.gif";
		thisPerson 	= thePerson;
		thisImage 	= theImage;
	}
}

function hideABoard(){
	document.getElementById("ff").style.display = "none";
	document.getElementById("mp").style.display = "none";
	document.getElementById("to").style.display = "none";
}
function showABoard(thePerson){
	if (thePerson == thisPerson){
		hideABoard();
		thisPerson = "";
	}else{
		hideABoard();
		document.getElementById(thePerson).style.display = "block";
		thisPerson = thePerson;
	}
}

function hideIB(){
	document.getElementById("ms1").style.display = "none";
	document.getElementById("fh").style.display = "none";
	document.getElementById("kr").style.display = "none";
	document.getElementById("rp").style.display = "none";
	document.getElementById("hj").style.display = "none";
	document.getElementById("ms2").style.display = "none";
}
function showIB(thePerson){
	if (thePerson == thisPerson){
		hideIB();
		thisPerson = "";
	}else{
		hideIB();
		document.getElementById(thePerson).style.display = "block";
		thisPerson = thePerson;
	}
}

function hideRE(){
	document.getElementById("td").style.display = "none";
	document.getElementById("aj").style.display = "none";
}
function showRE(thePerson){
	if (thePerson == thisPerson){
		hideRE();
		thisPerson = "";
	}else{
		hideRE();
		document.getElementById(thePerson).style.display = "block";
		thisPerson = thePerson;
	}
}

function hidePE(){
	document.getElementById("sr").style.display = "none";
	document.getElementById("ml").style.display = "none";
}
function showPE(thePerson){
	if (thePerson == thisPerson){
		hidePE();
		thisPerson = "";
	}else{
		hidePE();
		document.getElementById(thePerson).style.display = "block";
		thisPerson = thePerson;
	}
}

