// JavaScript Document

function chooseMember(boardMember)
{
	//first resent all pictures and data 
	for (i=1;i<=9;i++)
	{
		boardMemberObj = document.getElementById("member"+i);
		boardMemberObj.className = "notchosen";
		
		boardMemberDataObj = document.getElementById("member"+i+"Data");
		boardMemberDataObj.style.display="none";		
	}

	//Now change the chosen one
	boardMemberObj = document.getElementById(boardMember);
	boardMemberObj.className = "chosen";

	boardMemberDataObj = document.getElementById(boardMember+"Data");
	boardMemberDataObj.style.display="block";		
}

function chooseExecMember(boardMember)
{
	//first resent all pictures and data 
	for (i=1;i<=9;i++)
	{
		boardMemberObj = document.getElementById("member"+i);
		boardMemberObj.className = "notchosen";
		
		boardMemberDataObj = document.getElementById("member"+i+"Data");
		boardMemberDataObj.style.display="none";		
		
		//reset to the quote
		showQuote(i);
	}

	//Now change the chosen one
	boardMemberObj = document.getElementById("member"+boardMember);
	boardMemberObj.className = "chosen";

	boardMemberDataObj = document.getElementById("member"+boardMember+"Data");
	boardMemberDataObj.style.display="block";		
}

function showQuote(quoteid)
{
	quoteObj = document.getElementById("quote"+quoteid);
	quoteObj.style.display = "block";
	quoteLinkObj = document.getElementById("quoteLink"+quoteid);
	quoteLinkObj.className = "chosenlink"
	
	bioObj = document.getElementById("bio"+quoteid);
	bioObj.style.display = "none";
	bioLinkObj = document.getElementById("bioLink"+quoteid);
	bioLinkObj.className = "notchosenlink"
}

function showBio(quoteid)
{
	quoteObj = document.getElementById("quote"+quoteid);
	quoteObj.style.display = "none";
	quoteLinkObj = document.getElementById("quoteLink"+quoteid);
	quoteLinkObj.className = "notchosenlink"
	
	bioObj = document.getElementById("bio"+quoteid);
	bioObj.style.display = "block";
	bioLinkObj = document.getElementById("bioLink"+quoteid);
	bioLinkObj.className = "chosenlink"
}
