// dom is ready, let's go...
$(document).ready(function() {
	// 5x2 matrix
	var myarray = new Array(15);
	for (i=0; i<15; i++)
		myarray[i]=new Array(2);
	
	// absolute relative image urls, inline html only in captions
	myarray[0][0]="/images/slideshow/Picture-06.jpg";
	myarray[0][1]="The Trinity Lavra of St. Sergius, the most important Russian Orthodox monastery, which is located in the town of Sergiev Posad near Moscow.";
	
	myarray[1][0]="/images/slideshow/16_Balkanalia.jpg";
	myarray[1][1]="The Balkanalia ensemble performing at the Festival of the Roses in Kazanluk, Bulgaria";
	
		myarray[2][0]="/images/slideshow/Azeri-Street.jpg";
	myarray[2][1]="Village street in Azerbaijan. Photo by Natasha Kipp";
	
		myarray[3][0]="/images/slideshow/Natasha-w-Saz.jpg";
	myarray[3][1]="Natasha Kipp, FLAS fellow, with Saz musician and vocalist in Azerbaijan.";
	
		myarray[4][0]="/images/slideshow/Eagle.jpg";
	myarray[4][1]="Altai Eagle Festival in Bayan Olgii Kazakhstan. Photo by Maggie Adams";
	
	myarray[5][0]="/images/slideshow/Hackisher_Market.jpg";
	myarray[5][1]="Kuznechnii Market, St. Petersburg, Russia. Photo by Jane Hedges";
	

	myarray[6][0]="/images/slideshow/Terrell_Georgia.jpg";
	myarray[6][1]="Terrell Starr, REEEC MA student, with a former Peace Corp colleague in Georgia.";
	
	myarray[7][0]="/images/slideshow/tolstoy_vladimir_b.jpg";
	myarray[7][1]="Vladimir Tolstoy meets Rajmohan Gandhi, grandson ofMahatma Gandhi, during the Kick-Off Celebration of the Big Read featuring Leo Tolstoy's <em>The Death of Ivan Ilyich</em>.";
	
	myarray[8][0]="/images/slideshow/St_Basils.jpg";
	myarray[8][1]="Saint Basil's Cathedral, Moscow. Photo by Erica Fraser.";
	
	myarray[9][0]="/images/slideshow/Sof_Turkistan_Shimkent_Kyzylorda.jpg";
	myarray[9][1]="The mausoleum of Arystan-bab near Otrar, Kazakhstan. Photo by Maggie Adams ";
	
	myarray[10][0]="/images/slideshow/17_Hermitage_Museum_Exchange.jpg";
	myarray[10][1]="Sergei Garezin from the St. Petersburg City Palace of Youth Creativity working with children on rocket design as part of the Hermitage Museum exchange.";
	
	myarray[11][0]="/images/slideshow/SusanEisenhower.jpg";
	myarray[11][1]="Susan Eisenhower, chairman and senior fellow of the Eisenhower Institute, talks with students prior to her MillerComm lecture on 'Russian-US Relations in the Coming Decade' in spring 2004.";
	
		myarray[12][0]="/images/slideshow/Graduate_Studetns.jpg";
	myarray[12][1]="Graduate students at a REEEC reception examine the national hat of Uzbekistan, a Tyubiteika.";
	
		myarray[13][0]="/images/slideshow/FGPA_Bread_Salt.jpg";
	myarray[13][1]="The staff at the American Home in Vladimir, Russia, greet the members of the Fulbright Group Projects Abroad with the traditional welcome of bread and salt.";
	
		myarray[14][0]="/images/slideshow/Jones_CAF-05-06.jpg";
	myarray[14][1]="Stephen Jones, Professor of Russian Studies, speaking at the REEEC 2005 Current Affairs Forum on 'Shades of Revolution: Democratization in the Former Soviet Nations.'";

	
	
	
	// let it run...
	var $ss = $('#slideshow');
	for (var i = 0; i < myarray.length; i++)
		$ss.append('<div><img src="'+myarray[i][0]+'" alt="Slideshow image '+i+'" /><p class=\"caption\">'+myarray[i][1]+'</p></div>'); 
	
	$ss.cycle({ 
	    delay:  0,
	    speed:  2000,
    	timeout: 7000,
	    random: 1
	});
});