//showRandomPerson.js - Shows a random student
//
//The student's picture and their info must be added to this file.

var Name = [];
var PicUrl = [];
var Description = [];

//For every person you want to be able to appear, you need to add their name,
//URL of the location of their picture, and their description to the below
//arrays.

//---------------------------------------------------
//      Beginning of names.
//---------------------------------------------------

//First person
Name[0] = "Jacob";
PicUrl[0] = "/images/jacobSe.jpg";
Description[0] = "Jacob is a football player and enjoys snowboarding, in addition to being a TigerTronics member.";

//Second person
Name[1] = "Kyle";
PicUrl[1] = "/images/kyleB.jpg";
Description[1] = "Kyle works to design and build mechanical systems while working for TigerTronics.  Outside, he is in the school's marching band, playing trumpet.";


//Keep adding as many people as you want...
Name[2] = "Chris";
PicUrl[2] = "images/chrisB.jpg";
Description[2] = "An XBox modder, Chris brings his interest in software to TigerTronics.";

Name[3] = "Dan";
PicUrl[3] = "/images/danC.jpg";
Description[3] = "Dan is one of the main programmers in TigerTronics and one of the team's two co-presidents.  He's also known for his comic relief.";

Name[4] = "Payton";
PicUrl[4] = "/images/paytonM.jpg";
Description[4] = "Payton is a new member of TigerTronics and also a competitive swimmer for UNAC.";

Name[5] = "Tate";
PicUrl[5] = "/images/Tate.jpg";
Description[5] = "Tate loves cameras and computers and music, and works on many projects within TigerTronics, from media design to robot building.";

Name[6] = "Brandon";
PicUrl[6] = "images/brandonL.jpg";
Description[6] = "Brandon is a junior, making this his second year with TigerTronics.";

Name[7] = "Justin";
PicUrl[7] = "images/justinW.jpg";
Description[7] = "Justin was a founding member of UE's Lego League team in middle school, and is now a co-president of TigerTronics.  He does karate, can juggle, and plays Airsoft.";

Name[8] = "Meghan";
PicUrl[8] = "/images/meghanD.jpg";
Description[8] = "Meghan was a founding member of UE's Lego League and is continuing her involvement with FIRST as a high schooler as a member of TigerTronics.";

Name[9] = "Jimmy";
PicUrl[9] = "images/jimmyP.jpg";
Description[9] = "A saxaphone player, this is Jimmy's third year as a member of TigerTronics.";

Name[10] = "Jeremy";
PicUrl[10] = "images/jeremyC.jpg";
Description[10] = "Jeremy is a freshman who thinks building robots is \"wicked cool.\"";

Name[11] = "Brandon";
PicUrl[11] = "images/brandonO.jpg";
Description[11] = "Brandon does parkour, plays paintball, draws, and is an aspiring programmer and compter expert.";

//------------------------------------------------------
//        End of names.
//------------------------------------------------------

//function showRandomPerson() {
	if(!(Name.length == PicUrl.length && Name.length == Description.length)) {
		document.write('Error in showRandomPerson.js<br><br>Name, PicUrl, and Description aren\'t same length.');
	} else {
		var selected = Math.floor(Math.random()*Name.length);
		//document.write('<big><b>'+Name[selected]+'</b></big><br><br>');
		document.write('<div style="text-align: center;"><img src="'+PicUrl[selected]+'" alt="'+Name[selected]+'" /></div><br>');
		document.write('<span style="color: black;">'+Description[selected]+'</span><br>');
	}
//}
