/*******************************************************************************
	AUTHOR:		Timothy Higgins
	CONTACT:	timh@applicationscientific.com
	
	Landing page utility methods.
*******************************************************************************/

	/***************************************************************************
		Display the given section.
	***************************************************************************/
	function setSection(section){
	
		//Set promotion for active section.
		document.getElementById("promo").src="promo/"+section+".jpg";
		
		//Clear all tabs and introductions.
		document.getElementById("webTab").className="";
		document.getElementById("linguisticsTab").className="";
		document.getElementById("gameTab").className="";
		document.getElementById("localTab").className="";
		document.getElementById("homeIntro").className="hide";
		document.getElementById("webIntro").className="hide";
		document.getElementById("linguisticsIntro").className="hide";
		document.getElementById("gameIntro").className="hide";
		document.getElementById("localIntro").className="hide";
		
		//Set active tab and introduction.
		if(section!="home")
			document.getElementById(section+"Tab").className="s";
		document.getElementById(section+"Intro").className="intro";
	}
