function photoPicker(){
	// for shorthand purposes
	var defaultFilePath = '/gpis/images/rotation/';
	
	// In the photo array, enter the file name and path of the photo to rotate.
	// If the photos are in the default location, then just add defaultFilePath + to the front of the filename
	var photo = new Array();
		photo[0] = defaultFilePath + 'DSC_3272.jpg';  // match to caption[0]
		photo[1] = defaultFilePath + 'DSC_3277.jpg';  // match to caption[1]
		photo[2] = defaultFilePath + 'DSC_3383.jpg';  // match to caption[2]
		photo[3] = defaultFilePath + 'DSC_4486.jpg';  // match to caption[3]
		photo[4] = defaultFilePath + 'Vabeach.jpg';   // match to caption[4]
		photo[5] = defaultFilePath + 'luncheon2.jpg';   // match to caption[5]
		photo[6] = defaultFilePath + 'serfaty.jpg';  // match to caption[6]
		photo[7] = defaultFilePath + 'chen.jpg';  // match to caption[7]
		photo[8] = defaultFilePath + 'earnest.jpg';  // match to caption[8]
		photo[9] = defaultFilePath + 'serfaty3.jpg';  // match to caption[9]
		photo[10] = defaultFilePath + 'karp2.jpg';  // match to caption[10]


	// The caption indices (inside []) match indices in photo array above
	var caption = new Array();
		// match to photo[0]
		caption[0] = '<a href="/gpis/concentrations.shtml">Five concentrations</a> let you refine your studies.';  
		
		// match to photo[1]
		caption[1] = 'Prof. Steve Yetiv';  
		
		// match to photo[2]
		caption[2] = 'The Graduate Program in International Studies (GPIS) at ODU is known for <a href="/gpis/students.shtml">dynamic and diverse students</a>, and <a href="/gpis/faculty/index.shtml">distinguished faculty</a>. <strong>Above</strong>, <a href="/gpis/faculty/holden.shtml">Prof. Robert Holden</a> leads a seminar in <a href="/gpis/courses.shtml">U.S.-Latin American Relations</a>.'; 
		
		// match to photo[3]
		caption[3] = '<a href="http://www.norfolk.gov/">Norfolk</a> is a major port city, rich with opportunity for International Studies students.';  

		// match to photo[4]
		caption[4] = 'In addition to being surrounded by water, ODU is located just a short drive to the <a href="http://www.virginiabeach.com/">Virginia Beach</a> oceanfront.';  

		// match to photo[5]
		caption[5] = 'International Studies students participate in a luncheon sponsored by the <a href="http://www.odu.edu/al/crgs/index.html">Center for Regional and Global Study (CRGS)</a>.';  

		// match to photo[6]
		caption[6] = 'Prof. Simon Serfaty'; 

		// match to photo[7]
		caption[7] = 'Prof. Jie Chen'; 

		// match to photo[8]
		caption[8] = 'Prof. David Earnest';

		// match to photo[9]
		caption[9] = 'Prof. Serfaty and French Amb. Vimont';

		// match to photo[10]
		caption[10] = 'Prof. Regina Karp'; 
 

// picks a random number 
	var random_number = Math.round(Math.random()*(photo.length-1)); 

	// Composes the image and caption tags using the index value that was chosen at random above
	var str =  '<img src="' + photo[random_number] + '" alt="ODU Graduate Program in International Studies (GPIS)" />';
		str += '<p class="acaption">' + caption[random_number] + '</p>'; 
		
	return str;
}

