var HomeChallenge =  (Math.round((Math.random()*3)+1));

if (HomeChallenge == 1) {
	HomeChalQues = 'Your eye color comes from';
	HomeChalOpt1 = 'Your genes';
	HomeChalOpt2 = 'Your senses';
	HomeChalOpt3 = 'Pure luck';
	HomeChalOpt4 = '';
	HomeChalOpt5 = '';
	HomeChalAnswer = 1;	
	HomeChalResponse = 'Genes are your body&rsquo;s instruction codes for everything from eye color to height.  Check <a href="sub_yourbody/yourbody_insidescoop.html">genetics</a> for more info.';
}
if (HomeChallenge == 2) {
	HomeChalQues = 'Eat/Drink calcium for';
	HomeChalOpt1 = 'A smart mind';
	HomeChalOpt2 = 'Strong bones';
	HomeChalOpt3 = 'Sharp eyes';
	HomeChalOpt4 = '';
	HomeChalOpt5 = '';
	HomeChalAnswer = 2;
	HomeChalResponse = 'Calcium helps make strong bones.  Click <a href="sub_foodnutrition/diningdecisions.html">here</a> to learn more about healthy eating.';
}
if (HomeChallenge == 3) {
	HomeChalQues = 'Toothpaste with _____ makes teeth stronger.';
	HomeChalOpt1 = 'Flavor';
	HomeChalOpt2 = 'Fluoride';
	HomeChalOpt3 = 'Flamb&eacute;';
	HomeChalOpt4 = 'Floss';
	HomeChalOpt5 = '';
	HomeChalAnswer = 2;
	HomeChalResponse = 'Teeth absorb fluoride, which strengthens enamel.  Want a bright smile?  Check out <a href="sub_yourbody/yourbody_smilestyle.html">Smile Styles</a>!';
}
if (HomeChallenge == 4) {
	HomeChalQues = 'Puberty helps you&hellip;';
	HomeChalOpt1 = 'Relax';
	HomeChalOpt2 = 'Breathe';
	HomeChalOpt3 = 'Daydream';
	HomeChalOpt4 = 'Become an adult';
	HomeChalOpt5 = '';
	HomeChalAnswer = 4;
	HomeChalResponse = 'In puberty, body&rsquo;s changes help you develop into an adult.  For more, visit <a href="sub_yourbody/yourbody_bodysmartz.html">BAM&rsquo;s Knowin&rsquo; About Growin&rsquo;</a> pages.';
}
if (HomeChallenge == 5) {
	HomeChalQues = 'The &ldquo;varicella&rdquo; virus causes&hellip;';
	HomeChalOpt1 = 'Flu';
	HomeChalOpt2 = 'Acne';
	HomeChalOpt3 = 'Chicken pox';
	HomeChalOpt4 = 'Growing pains';
	HomeChalOpt5 = '';
	HomeChalAnswer = 3;
	HomeChalResponse = 'Varicella (say, vair-ih-SELL-uh) virus causes chicken pox.  The Immune Platoon [LINK] has more scoop on diseases.';
}

function ChallengePrint() {
	document.write('						<form name="theform" action="javascript:ChallengeAnswer()" style="margin:0px 0px 0px 0px;">');
	document.write('						<b>' + HomeChalQues + '</b>');
	document.write('						<br /><br />');
	document.write('						<input type="hidden" id="test" name="test" value="tegdf" />');
	document.write('						<input type="radio" id="response1" name="response" value="1" /><b>A.)</b> ' + HomeChalOpt1);
	document.write('						<br />');
	document.write('						<input type="radio" id="response2" name="response" value="2" /><b>B.)</b> ' + HomeChalOpt2);
	document.write('						<br />');
	document.write('						<input type="radio" id="response3" name="response" value="3" /><b>C.)</b> ' + HomeChalOpt3);
	document.write('						<br />');
	if (HomeChalOpt4 !== "") {
		document.write('						<input type="radio" id="response3" name="response" value="4" /><b>D.)</b> ' + HomeChalOpt4);
		document.write('						<br />');
	}
	if (HomeChalOpt5 !== "") {
		document.write('						<input type="radio" id="response3" name="response" value="5" /><b>E.)</b> ' + HomeChalOpt5);
		document.write('						<br />');
	}
	document.write('						<br />');
	document.write('						<input src="images_bam/home_nav_chal_submit.gif" name="home_nav_chal_submit" type="image" alt="Submit Answer" />');
	document.write('						</form>');
}

function IncChallengeAnswer1() {
	document.write('						<br /><b>Correct</b>');
	displayChallengeResponse();
}

function IncChallengeAnswer2() {
	document.write('						<br /><b>Incorrect</b>');
	displayChallengeResponse();
}

function displayChallengeResponse() {
	document.write('						<br /><br />');
	document.write(HomeChalResponse);
}

function ChallengeAnswer() {

	for (i=0;i<document.theform.response.length;i++) {
		if (document.theform.response[i].checked) {
			user_input = i+1;
		}
	}

	if (user_input == HomeChalAnswer) {
		challengequestion.style.visibility = 'hidden';
		challengeanswer1.style.visibility = 'visible';
	} else {
		challengequestion.style.visibility = 'hidden';
		challengeanswer2.style.visibility = 'visible';
	}

}

var Game_Room_Max = 5; // # (of items - 1)
var Game_Room_Title= new Array(Game_Room_Max);
var Game_Room_Text= new Array(Game_Room_Max);
var Game_Room_Link= new Array(Game_Room_Max);

Game_Room_Title[0]	= 'The Bully Roundup:';
Game_Room_Text[0]	= 'Travel through the wild west in this exciting interactive board game.';
Game_Room_Link[0]	= 'sub_yourlife/yourlife_bullyroundup.html';

Game_Room_Title[1]	= 'Dining Decisions:';
Game_Room_Text[1]	= 'You giving your body the best? In this game, the food choices are your call.';
Game_Room_Link[1]	= 'sub_foodnutrition/diningdecisions_games.html';

Game_Room_Title[2]	= 'Grind Your Mind:';
Game_Room_Text[2]	= 'Skateboard with Matt through this animated quiz on peer pressure!';
Game_Room_Link[2]	= 'sub_yourlife/yourlife_grindyourmind.html';

Game_Room_Title[3]	= 'KABAM! Comic Creator:';
Game_Room_Text[3]	= 'Help the BAM! Bunch through the day. Give your best advice in the Comic Creator game.';
Game_Room_Link[3]	= 'sub_yourlife/yourlife_comiccreator.html';

Game_Room_Title[4]	= 'KABAM! Comic Creator:';
Game_Room_Text[4]	= 'Help the BAM! Bunch through the day. Give your best advice in the Comic Creator game.';
Game_Room_Link[4]	= 'sub_yourlife/yourlife_comiccreator.html';

function Game_Room() {

	if (Game_Room_Max > 2) {
		var Game_Room_Random =  (Math.round(Math.random()*(Game_Room_Max - 1)));
		document.write('<a href="'+Game_Room_Link[Game_Room_Random]+'" class="black"><b>'+Game_Room_Title[Game_Room_Random]+'</b></a><br />'+Game_Room_Text[Game_Room_Random]);
	}

}
