﻿function RotateImages(root,imgid,captionid) {
	var infinite = root + 'infinite/';
	// images
	var image_array = new Array("/2001/Four_Awardees1.jpg","/2001/Pauls_Ceremony1.jpg","/2002/SdB.jpg","/2003/timh_award.jpg","/2004/Peterson.jpg","/2004/Richards.jpg","/2005/Simone.jpg","/2005/Muriel_Charlotte.jpg","/2005/Traci.jpg","/2005/Helen.jpg","/2007/SharonTerry_0103.jpg","/2007/LeeJoe_0051.jpg");

	// captions (in same order as images)
	var caption_array = new Array("Diane Tavitian, Elizabeth Thompson, Sarah Gallop, and Jim Morgan were 2001 recipients of the Infinite Mile Award. <a href=\""+ infinite +"2001.html\">Learn more about their achievements &gt;</a>","Paul Parravano (r) received a 2001 Infinite Mile Award for Public, Customer, or Client Relations. <a href=\""+ infinite +"2001.html#paul\">Learn more about his achievements &gt;</a>","E. Sinclair (Sis) de Bordenave of the MIT Women’s League received a 2002 Infinite Mile Award for Community Building. <a href=\""+ infinite +"2002.html#sis\">Learn more about her achievements &gt;</a>","Timothy Healey (center) of the Emma Rogers and Maclaurin Rooms is a 2003 recipient for Public, Customer, or Client Relations. <a href=\""+ infinite +"2003.html#timothy\">Learn more about his achievements &gt;</a>","Peggy Peterson (r) received a 2004 Infinite Mile Award for Collaboration and Teamwork. <a href=\""+ infinite +"2004.html#peggy\">Learn more about her achievements &gt;</a>","Patti Richards (r) of the News Office received a 2004 Infinite Mile Award for Public Relations. <a href=\""+ infinite +"2004.html#patti\">Learn more about her achievements &gt;</a>","Simone Cantieri (l) of the Emma Rogers and Maclaurin Rooms received a 2005 Infinite Mile Award for Public, Client, and Customer Relations. <a href=\""+ infinite +"2005.html#simone\">Learn more about her achievements &gt;</a>","Muriel Petranic (l) and Charlotte Gibbs (r) of Gray House received Infinite Mile Awards in 2005 for Collaboration and Teamwork. <a href=\""+ infinite +"2005.html#muriel-charlotte\">Learn more about their achievements &gt;</a>","Traci Swartz of the Community Services Office received a 2005 Infinite Mile Award for Community Building. <a href=\""+ infinite +"2005.html#traci\">Learn more about her achievements &gt;</a>","Helen Haislmaier (l) of the Washington, D.C. Office received a 2005 Infinite Mile Award for Public, Client, and Customer Relations. <a href=\""+ infinite +"2005.html#helen\">Learn more about her achievements &gt;</a>","Sharon Pinksten (l) received a 2007 Infinite Mile Award for Public, Client, and Customer Relations. <a href=\""+ infinite +"2007.html#sharon\">Learn more about her achievements &gt;</a>","Joe Coen and Lee Corbett received 2007 Infinite Mile Awards for Collaboration and Teamwork. <a href=\""+ infinite +"2007.html#joe-lee\">Learn more about their achievements &gt;</a>");

	var randomno=Math.floor(Math.random()*image_array.length);
	var img = document.getElementById(imgid);
	var caption = document.getElementById(captionid);
	img.src = root + 'images/' + image_array[randomno];
	img.alt = caption_array[randomno];
	caption.innerHTML = img.alt;
}