// Define variables
var theImages = new Array(new Array(3));
var p; var whichImage; var lastImage;

// To add more image files, continue with the pattern below, adding to the array.

theImages[0] = new Array('bradleyh.png','Hannah Bradley is assisting in the set up and execution of the Orbiter Window Beam Stiffness Verification Test and conducting research into polymer fracture mechanics.','/Biographies.aspx?bio=cd6a8669-9c5f-449d-9bcc-5e3bd036f674');

theImages[1] = new Array('gruseckm.png','Madelyn Gruseck is working on the CEV Parachute Assembly System (CPAS) for the Orion spacecraft.','/Biographies.aspx?bio=55f4a7e5-2370-4509-877c-05e8c055dafe');

theImages[2] = new Array('mannh.png','Hallie Mann is doing a little bit of everything....writing, interviewing, escorting, event planning and staffing, video production, and mission coverage.','/Biographies.aspx?bio=c01b4003-20a3-4cce-b6e4-090dc16bc956');

theImages[3] = new Array('meiere.png','Eric Meier researched, designed, and implemented a study to test the optical properties of anodized aluminum.','/Biographies.aspx?bio=550b91aa-fb6e-4465-a32b-26af46515e7e');

theImages[4] = new Array('pendletonm.png','Megan Pendleton has been working a lot with a 3D CAD modeling program to design and create some new seats for the Crew Exploration Vehicle.','/Biographies.aspx?bio=fd138022-649c-4a89-8951-4c9a12ed933d');

theImages[5] = new Array('sternb.png','Bonnie Stern is working on a testbed heatsink for passively rejecting heat away from the computer chips on Robonaut 2.','/Biographies.aspx?bio=b543e197-8877-40c4-97d2-a9daae2f2800');

theImages[6] = new Array('vandewallem.png','Mike Vandewalle is testing a program using real-time telemetry from the station to track natural disasters on earth.','/Biographies.aspx?bio=82b477e7-3a4a-4959-9126-0a2fa16079b8');

theImages[7] = new Array('waltonl.png','Lauren Walton is testing the toxicity of airborne lunar dust and inferring how that may affect humans on any future excursions to the moon.','/Biographies.aspx?bio=2c92fd8e-de72-4ac4-919a-1b16290387a3');

theImages[8] = new Array('alshahinw.png','Wahab Alshahin is working in the Mission Operations Directorate supporting the International Space Station Electrical Power and Thermal Control Systems','/Biographies.aspx?bio=6b781b49-7b82-4a13-b8cb-95579526ede8');

theImages[9] = new Array('duongw.png','William Duong is researching a new surface treatment technology called "laser peening," performing stress analysis and running simulations.','/Biographies.aspx?bio=aa4a5d03-f885-426a-8048-b297b08da16c');

theImages[10] = new Array('flemings.png','Scottie-Beth Fleming is conducting tests in a vacuum chamber on hardware that could be used on a spacecraft in Low Lunar Orbit (LLO).','/Biographies.aspx?bio=4ddb776a-c7cd-4403-9634-18e1342e0575');

theImages[11] = new Array('hartungb.png','Brenton Hartung is determining the navigation limits of Project M; the newly proposed NASA mission that aims to send Robonaut 2 to the moon.','/Biographies.aspx?bio=bff6974e-11d7-43e5-aae7-dffe49bd8d81');

theImages[12] = new Array('kelleyd.png','David Kelley is working on performance appraisals, benefits discussions, promotion paperwork, training activities or hiring YOU!','/Biographies.aspx?bio=fd08f007-e378-4a22-9fc0-6da2ca2e71a6');

theImages[13] = new Array('maliks.png','Saifullah Malik is working on ARGOS (Active Response Gravity Offload System), a Lunar and Martian gravity simulator.','/Biographies.aspx?bio=ff8cfd59-7baa-447a-a281-5d6332282969');

theImages[14] = new Array('mcmanusc.png','Courtney McManus is making improvements to the Trans-Earth Injection Targeter, which will help astronauts and other space travelers arrive safely back to Earth from the moon.','/Biographies.aspx?bio=bded52c4-c19f-4404-832c-23f8e50700b7');

theImages[15] = new Array('millerl.png','Laura Miller is working with the Systems Engineering Simulator (SES), a flight simulation facility that creates an immersive graphics environment around a spacecraft mockup.','/Biographies.aspx?bio=fbb8dd9b-fb3d-48f9-ba35-af81ed4852e1');

theImages[16] = new Array('nguyenv.png','Vienny Nguyen is designing test beds, mechanical linkages using kinematic analysis, and structural components for the Robonaut 2 project.','/Biographies.aspx?bio=0afb7e71-a40b-4ceb-9fd0-d0d3550637cc');

function showImage(pathtopic,align) {
	p = theImages.length;
	do
		whichImage = Math.round(Math.random()*(p-1));
	while (whichImage==lastImage);
    document.write('<a href="'+theImages[whichImage][2]+'">');
	document.write('<center><img style="border:0px" width="200" src="'+pathtopic+theImages[whichImage][0]+'"');
	document.write(' border="0" alt="'+theImages[whichImage][0]+'" /></center></a>');
    document.write('<p>' + theImages[whichImage][1] + '....<a href="'+theImages[whichImage][2]+'">Read More</a></p>');
	lastImage=whichImage;
}

/*
function showImageOld(pathtopic,align) {
	p = theImages.length;
	do
		whichImage = Math.round(Math.random()*(p-1));
	while (whichImage==lastImage);
	document.write('<table border="0" style="float: '+align+';" cellspacing="5" width="279"><tr><td>');
	if(theImages[whichImage][2] != "nobio")
		document.write('<a href="'+theImages[whichImage][2]+'">');
	document.write('<img src="'+pathtopic+theImages[whichImage][0]+'"');
	document.write(' border="0" alt="'+theImages[whichImage][0]+'" \/>');
	if(theImages[whichImage][2] != "nobio")
		document.write('</a>');
	document.write('<br><span class="caption">');
	document.write(theImages[whichImage][1]);
	document.write('<\/td><\/tr><\/table>');
	lastImage=whichImage;
}

function showAllImages(pathtopic) {
	p = theImages.length;
	var whichImage=0;
	while (whichImage<p) {
		document.write('<table border="0"><tr><td>');
		
        document.write('<img src="');
		document.write(pathtopic+theImages[whichImage][0]);
		document.write('" border="0" alt="'+theImages[whichImage][0]+'" /></a>');
		document.write('<\/td><\/tr><tr><td align="center">');
		document.write(theImages[whichImage][1]);
		document.write('<\/td><\/tr><\/table>');
		whichImage++;
	}
}
*/

