var profiles = new Array();
var count = 0;

BuildArray();
//BuildRandomProfile();

function BuildArray ()
{
  profiles[0] = new Object();
  profiles[0].first_name = "Kristi";
  profiles[0].last_name = "Sebastian";
  profiles[0].description = "Traffic Engineer for Dakota County, Minnesota, BS in Civil Engineering, MS in Engineering from UW-Milwaukee.";
  profiles[1] = new Object();
  profiles[1].first_name = "Jill";
  profiles[1].last_name = "Pamperin";
  profiles[1].description = "Analog ASIC Designer at Agilent Technologies, MS in Electrical Engineering, PhD in Electrical Engineering.";
  profiles[2] = new Object();
  profiles[2].first_name = "Sharonne";
  profiles[2].last_name = "Baylor";
  profiles[2].description = "Environmental Engineer, US Fish and Wildlife Service. BS in Civil Engineering.";
  profiles[3] = new Object();
  profiles[3].first_name = "Amber";
  profiles[3].last_name = "Marzahl";
  profiles[3].description = "Wastewater Engineering with Donohue &amp; Associates, Inc, BS in Civil Engineering, BS in Environmental Engineering.";
  //continue with more profiles
  
  //count should equal the number of people to choose from
  count = 3;
  
}

function BuildRandomProfile ()
{
  var profile_number = Math.floor(Math.random()*count);
  var inner_html = '';
  
	inner_html += '<h2>Meet Our Alumni</h2>\n';
	inner_html += '<img src="http://www.uwplatt.edu/wep/Profiles/images/sm_' + profiles[profile_number].last_name
	+ '_' + profiles[profile_number].first_name
	+ '.jpg" alt="Image of ' + profiles[profile_number].first_name + ' '
	+ profiles[profile_number].last_name + '" />' + "\n";
	inner_html += '<h3><a href="http://www.uwplatt.edu/wep/Profiles/' 
	+ profiles[profile_number].last_name
	+ '_' + profiles[profile_number].first_name + '.html">'
	+ profiles[profile_number].first_name + ' ' + profiles[profile_number].last_name
	+ '</a></h3>' + "\n";
  inner_html += '<p>' + profiles[profile_number].description + '</p>' + "\n";
  inner_html += '<h4><a href="http://www.uwplatt.edu/wep/Profiles">View more alumni profiles</a></h4>' + "\n";
  
  document.write(inner_html);
}
