	var wordList = new Array();
var numWords;
var text;
var offLetterColor;
var onLetterColor;

function initWordList(){
	var board = document.getElementById("boardoutline");
	if (listTopic == "choose"){
		board.style.background='#000';
		return false;
	}
	if (listTopic == "pool"){
		board.style.backgroundImage="url('./images/pool.jpg')";
		offLetterColor = '#69C';
		onLetterColor = '#30C';
		wordList[0]="bathing";
		wordList[1]="snorkel";
		wordList[2]="swimsuit";
		wordList[3]="shallow";
		wordList[4]="snorkel";
		wordList[5]="splash";
		wordList[6]="towel";
		wordList[7]="lotion";
		numWords = 8;
	}
	else if (listTopic == "artists"){
		board.style.backgroundImage="url('./images/renoir.jpg')";
		offLetterColor = '#33C';
		onLetterColor = '#999';
		wordList[0]="da vinci";
		wordList[1]="matisse";
		wordList[2]="renoir";
		wordList[3]="cassat";
		wordList[4]="cezanne";
		wordList[5]="van gogh";
		wordList[6]="degas";
		wordList[7]="monet";
		numWords = 8;
	}
	else if (listTopic == "farm"){
		board.style.backgroundImage="url('./images/stonegrass.jpg')";
		offLetterColor = '#393';
		onLetterColor = '#063';
		wordList[0]="chickens";
		wordList[1]="farmhand";
		wordList[2]="pasture";
		wordList[3]="cattle";
		wordList[4]="barn";
		wordList[5]="manure";
		wordList[6]="fence";
		wordList[7]="irrigate";
		numWords = 8;
	}
	else if (listTopic == "astronomy"){
		board.style.backgroundImage="url('./images/astronomy.jpg')";
		offLetterColor = '#39C';
		onLetterColor = '#006';
		wordList[0]="mercury";
		wordList[1]="galaxy";
		wordList[2]="earth";
		wordList[3]="space";
		wordList[4]="jupiter";
		wordList[5]="pulsar";
		wordList[6]="nebula";
		wordList[7]="universe";
		wordList[8]="venus";
		wordList[9]="mars";
		wordList[10]="saturn";
		wordList[11]="uranus";
		wordList[12]="neptune";
		wordList[13]="pluto";
		wordList[14]="milky way";
		numWords = 15;
	}
	else if (listTopic == "snow"){
		board.style.backgroundImage="url('./images/freshsnow.jpg')";
		offLetterColor = '#999';
		onLetterColor = '#969';
		wordList[0]="breckenridge";
		wordList[1]="vail";
		wordList[2]="tahoe";
		wordList[3]="aspen";
		wordList[4]="steamboat";
		wordList[5]="park city";
		wordList[6]="killington";
		wordList[7]="whistler";
		wordList[8]="heavenly";
		wordList[9]="snowmass";
		numWords = 10;
	}
	else if (listTopic == "fall"){
		board.style.backgroundImage="url('./images/fall.jpg')";
		offLetterColor = '#FC0';
		onLetterColor = '#690';
		wordList[0]="raking";
		wordList[1]="leaves";
		wordList[2]="deciduous";
		wordList[3]="harvest";
		wordList[4]="apples";
		wordList[5]="autumn";
		wordList[6]="foliage";
		wordList[7]="pumpkin";
		numWords = 8;
	}
	else if (listTopic == "desert"){
		board.style.backgroundImage="url('./images/desert.jpg')";
		offLetterColor = '#663';
		onLetterColor = '#993';
		wordList[0]="cactus";
		wordList[1]="mesa";
		wordList[2]="sand";
		wordList[3]="oasis";
		wordList[4]="camel";
		wordList[5]="dry";
		wordList[6]="sahara";
		wordList[7]="gobi";
		wordList[8]="arabian";
		numWords = 9;
	}
	else if (listTopic == "pinetree"){
		board.style.backgroundImage="url('./images/pinetree.jpg')";
		offLetterColor = '#363';
		onLetterColor = '#999';
		wordList[0]="beech";
		wordList[1]="maple";
		wordList[2]="mahogany";
		wordList[3]="chestnut";
		wordList[4]="cherry";
		wordList[5]="cedar";
		wordList[6]="oak";
		wordList[7]="alder";
		numWords = 8;
	}
	else if (listTopic == "mountains"){
		board.style.backgroundImage="url('./images/mountains.jpg')";
		offLetterColor = '#069';
		onLetterColor = '#999';
		wordList[0]="everest";
		wordList[1]="mckinley";
		wordList[2]="kilimanjaro";
		wordList[3]="matterhorn";
		wordList[4]="ranier";
		wordList[5]="parnassus";
		wordList[6]="ararat";
		wordList[7]="olympus";
		numWords = 8;
	}
	else if (listTopic == "nationalparks"){
		board.style.backgroundImage="url('./images/grandcanyon.jpg')";
		offLetterColor = '#630';
		onLetterColor = '#963';
		wordList[0]="yosemite";
		wordList[1]="glacier";
		wordList[2]="yellowstone";
		wordList[3]="olympic";
		wordList[4]="grand teton";
		wordList[5]="arches";
		wordList[6]="dinosaur";
		wordList[7]="sand dunes";
		wordList[8]="assateague";
		wordList[9]="mesa verde";
		wordList[10]="arches";
		wordList[11]="gunnison";
		wordList[12]="carlsbad";
		wordList[13]="death valley";
		wordList[14]="everglades";
		wordList[15]="grand canyon";
		wordList[16]="zion";
		wordList[17]="sequoia";
		numWords = 17;
	}
	else if (listTopic == "baseball"){
		board.style.backgroundImage="url('./images/stadium.jpg')";
		offLetterColor = '#699';
		onLetterColor = '#366';
		wordList[0]="baseball";
		wordList[1]="batter";
		wordList[2]="catcher";
		wordList[3]="homerun";
		wordList[4]="pitcher";
		wordList[5]="strike";
		wordList[6]="umpire";
		wordList[7]="outfield";
		wordList[8]="swing";
		wordList[9]="curve ball";
		wordList[10]="double play";
		wordList[11]="error";
		wordList[12]="fly ball";
		wordList[13]="foul ball";
		wordList[14]="grand slam";
		wordList[15]="home plate";
		wordList[16]="infield";
		wordList[17]="inning";
		wordList[18]="mound";
		wordList[19]="on deck";
		wordList[20]="safe";
		wordList[21]="slider";
		wordList[22]="walk";
		numWords = 23;
	}
	else if (listTopic == "flowers"){
		board.style.backgroundImage="url('./images/flowers.jpg')";
		offLetterColor = '#66C';
		onLetterColor = '#6FC';
		wordList[0]="carnation";
		wordList[1]="daffodil";
		wordList[2]="lilac";
		wordList[3]="pansy";
		wordList[4]="tulip";
		wordList[5]="marigold";
		wordList[6]="lavender";
		wordList[7]="daisy";
		wordList[8]="rose";
		numWords = 9;
	}
	else if (listTopic == "transportation"){
		board.style.backgroundImage="url('./images/hotairballoon.jpg')";
		offLetterColor = '#999';
		onLetterColor = '#900';
		wordList[0]="train";
		wordList[1]="bus";
		wordList[2]="automobile";
		wordList[3]="balloon";
		wordList[4]="airplane";
		wordList[5]="boat";
		wordList[6]="bicycle";
		wordList[7]="taxi";
		wordList[8]="subway";
		wordList[9]="carriage";
		wordList[10]="hang glider";
		wordList[11]="helicopter";
		wordList[12]="ferry";
		wordList[13]="submarine";
		wordList[14]="motorcycle";
		wordList[15]="trolley";
		wordList[16]="rocket";
		wordList[17]="elevator";
		numWords = 18;
	}
	return true;
}

function newWord(){
	var num = 99;
	while (num>=numWords){
		num=Math.round(Math.random()*(numWords));
	}
	text = wordList[num];
}