// This shows answers for the FAQ page
function showAnswer(objAnchor,intQuestion) {
	// If the current question is hidden, display it.
	if (document.getElementById('answer' + intQuestion).style.display == "none") {
		hideAll();
		// Displays the actual answer
		document.getElementById('answer' + intQuestion).style.display = "block";
		// Changes the background graphic to "on"
		objAnchor.style.background = "#F2F7FA url(/img/openDivYellow.gif) left no-repeat";
		//change the background color
		document.getElementById('BG' + 'answer' + intQuestion).style.background = "#F2F7FA";
	}
	// If the current question is showing, hide it.
	else if (document.getElementById('answer' + intQuestion).style.display == "block") {
		// Changes the background graphic to "off"
		objAnchor.style.background = "#FFFFFF url(/img/closedDivYellow.gif) left no-repeat";
		//change the backgroung color
		document.getElementById('BG'+ 'answer' + intQuestion).style.background = "#FFFFFF";
		hideAll();
	}
}

// Fiunction to hide all other div's
function hideAll() {
	for (i=1; i <= intAnswers; i++)
	{
		//Hiding the content
		var objAnswer = document.getElementById('answer' + i);
		objAnswer.style.display = "none";

		//changing the color of whole element background
		var bgObj=document.getElementById('BG'+'answer' + i);
		bgObj.style.background="#FFFFFF";

		//Changing color of the title/link on top of div
		var bgLinkObj=document.getElementById('BG'+'answerLink' + i);
		bgLinkObj.style.background = "#FFFFFF url(/img/closedDivYellow.gif) left no-repeat";
	}
}

//This function displays the press releases and articles
function showlink(objlink, tdId) {
	hideRestElements();
	document.getElementById(objlink).style.display='';
	document.getElementById(tdId).className='colormenu';
	document.getElementById(tdId+"_1").className='colormenu';
}

// De-selecting all other elements
function hideRestElements() {
	document.getElementById("answer2011").style.display='none';
	document.getElementById("answer2010").style.display='none';
	document.getElementById("answer2009").style.display='none';
	document.getElementById("answer2008").style.display='none';

	document.getElementById("menu1").className='';
	document.getElementById("menu2").className='';
	document.getElementById("menu3").className='';
	document.getElementById("menu4").className='';

	document.getElementById("menu1_1").className='';
	document.getElementById("menu2_1").className='';
	document.getElementById("menu3_1").className='';
	document.getElementById("menu4_1").className='';
}


