// JavaScript Document

	var photos = new Array();
	var captions = new Array();
	var titles = new Array();
	
	photos[0] = "assets/images/wsi_01.jpg";
	photos[1] = "assets/images/wsi_02.jpg";
	photos[2] = "assets/images/wsi_03.jpg";
	photos[3] = "assets/images/wsi_04.jpg";
	photos[4] = "assets/images/wsi_05.jpg";
	photos[5] = "assets/images/wsi_06.jpg";
	photos[6] = "assets/images/wsi_07.jpg";
	photos[7] = "assets/images/wsi_08.jpg";
	photos[8] = "assets/images/wsi_09.jpg";
	photos[9] = "assets/images/wsi_10.jpg";
	photos[10] = "assets/images/wsi_11.jpg";
	photos[11] = "assets/images/wsi_12.jpg";
	photos[12] = "assets/images/wsi_13.jpg";
	photos[13] = "assets/images/wsi_14.jpg";
	photos[14] = "assets/images/wsi_15.jpg";
	photos[15] = "assets/images/wsi_16.jpg";
	photos[16] = "assets/images/wsi_17.jpg";
	photos[17] = "assets/images/wsi_18.jpg";
	photos[18] = "assets/images/wsi_19.jpg";
	photos[19] = "assets/images/wsi_20.jpg";
	photos[20] = "assets/images/wsi_21.jpg";
	photos[21] = "assets/images/wsi_22.jpg";
	photos[22] = "assets/images/wsi_23.jpg";
	photos[23] = "assets/images/wsi_24.jpg";
	photos[24] = "assets/images/wsi_25.jpg";


	titles[0] = "Man on the street - Istanbul, Turkey.";
	titles[1] = "A glimps of heaven";
	titles[2] = "Bursa, Turkey";
	titles[3] = "Last gramophone repairman - Mehmet Goztekin";
	titles[4] = "Colombian friendship";
	titles[5] = "Russian rain";
	titles[6] = "Turk & Swazi";
	titles[7] = "Silk flow";
	titles[8] = "Last goodbye";
	titles[9] = "Hasan Dede - the middleman";
	titles[10] = "Playing with venum";
	titles[11] = "Dreaming";
	titles[12] = "Worlds apart";
	titles[13] = "The otherside of town";
	titles[14] = "Timeless work";
	titles[15] = "Caged in";
	titles[16] = "Give and take";
	titles[17] = "Music for the soul";
	titles[18] = "Watchful eyes";
	titles[19] = "Louder";
	titles[20] = "Bassline";
	titles[21] = "Glimpse of paradise";
	titles[22] = "Watchful eyes";
	titles[23] = "My celebration";
	titles[24] = "The road home";
	
	
	captions[0] = "A rainy day in Istanbul can bring on the blues.";
	captions[1] = "A Swazi woman talks of her longing to be in Heaven with God.";
	captions[2] = "Bursa, the Detroit of Turkey and major manufacturing city of 2 million people.";
	captions[3] = "Mehmet Oztekin ponders, the day before he starts cancer treatment.";
	captions[4] = "Young girls in a poor neighborhood in Bogota, Colombia.";
	captions[5] = "Looking in from the outside at a free medical clinic in Sortavala, Russia.";
	captions[6] = "A Turkish farmer and a Swazi Sculptor show off their produce.";
	captions[7] = "A river flows from the Great Mountain near Bursa, Turkey.";
	captions[8] = "Sehitler Villagers bury the body of Ahmet Seymen who died the night before from cancer. ";
	captions[9] = "People believe their prayers will be answered if they pray at the tomb of Hasan Dede founder of Sehitler village.";
	captions[10] = "A snake charmer daily puts his life at risk to entertain tourists in Chiang Mai, Thailand.";
	captions[11] = "A dream like scene at Duden Falls in Antalya, Turkey. ";
	captions[12] = "A Russian and a Turkish women, looking much alike, but yet worlds apart.";
	captions[13] = "Night Houses (Gece Kondo) on the edge of Bursa, Turkey a industrial city of 2 million people.";
	captions[14] = "Working hard is not an option in Sehitler the Turkish Alevi village.";
	captions[15] = "Thousands travel by ferry each day in Istanbul, this is a daily scene for many.";
	captions[16] = "A pensive Russian man receives an exam by an Operation Blessing doctor.";
	captions[17] = "Turkish Alevis worship together through music and song at a weekly gathering.";
	captions[18] = "Yasar Kutlu supports his family through his portraiture selling it internationally.";
	captions[19] = "Youth culture is rarely found without music.";
	captions[20] = "Bursa's best Sound recording studio BagMuzik.com.tr records a wide variety of music for local musicians.";
	captions[21] = "Gokava, Turkey boasts mud baths, boat tours and pristine beaches.";
	captions[22] = "Ali coban of Sehitler village leads his flock to pasture.";
	captions[23] = "A circumcision celebration is when a boy becomes a man in Sehitler village, Turkey.";
	captions[24] = "Gathered up wood from pruning the orchards is used in baking bread and for heating.";

	var currentphoto = 0;
	var photocount = 24;
	
	function show(pimg){
		currentphoto = pimg;
		var x = document.getElementById('imageholder');
		var y = document.getElementById('imagecaption');
		x.style.background = "url("+photos[pimg]+")";
		y.innerHTML = "<strong>"+titles[pimg]+"</strong><br >"+captions[pimg];
	}

	function nextphoto(){
		currentphoto++;
		if(currentphoto>photocount){currentphoto = 0;}
		show(currentphoto);
	}


	function prevphoto(){
		currentphoto--;
		if(currentphoto<0){currentphoto = photocount;}
		show(currentphoto);
	}


	function advance(){
		nextphoto();
		setTimeout("advance();", 10000);
	}
