//Image slideshow with caption and alt tag
//Add <img id="slide"  src="imagename"/> and <p id="slideCaption">imageCaption</p> in the body

function viewSlideshow() {
	var images = new Array();
	number = 0;
	images[number++] = "__images/feature/gallery/chns_img1.jpg";
	images[number++] = "__images/feature/gallery/chns_img2.jpg";
	images[number++] = "__images/feature/gallery/chns_img3.jpg";
	images[number++] = "__images/feature/gallery/chns_img4.jpg";
	images[number++] = "__images/feature/gallery/chns_img5.jpg";
	images[number++] = "__images/feature/gallery/chns_img6.jpg";
	images[number++] = "__images/feature/gallery/chns_img7.jpg";
	images[number++] = "__images/feature/gallery/chns_img8.jpg";
	images[number++] = "__images/feature/gallery/chns_img9.jpg";
	images[number++] = "__images/feature/gallery/chns_img10.jpg";
	images[number++] = "__images/feature/gallery/chns_img11.jpg";
	images[number++] = "__images/feature/gallery/chns_img12.jpg";
	images[number++] = "__images/feature/gallery/chns_img13.jpg";
	images[number++] = "__images/feature/gallery/chns_img14.jpg";
	images[number++] = "__images/feature/gallery/chns_img15.jpg";
	images[number++] = "__images/feature/gallery/chns_img16.jpg";
	images[number++] = "__images/feature/gallery/chns_img17.jpg";
	images[number++] = "__images/feature/gallery/chns_img18.jpg";
	images[number++] = "__images/feature/gallery/chns_img19.jpg";
	images[number++] = "__images/feature/gallery/chns_img20.jpg";
	images[number++] = "__images/feature/gallery/chns_img21.jpg";
	images[number++] = "__images/feature/gallery/chns_img22.jpg";
	images[number++] = "__images/feature/gallery/chns_img23.jpg";
	images[number++] = "__images/feature/gallery/chns_img24.jpg";
	images[number++] = "__images/feature/gallery/chns_img25.jpg";
	images[number++] = "__images/feature/gallery/chns_img26.jpg";
	images[number++] = "__images/feature/gallery/chns_img27.jpg";
	images[number++] = "__images/feature/gallery/chns_img28.jpg";
	images[number++] = "__images/feature/gallery/chns_img29.jpg";
	images[number++] = "__images/feature/gallery/chns_img30.jpg";
	images[number++] = "__images/feature/gallery/chns_img31.jpg";
	images[number++] = "__images/feature/gallery/chns_img32.jpg";
	images[number++] = "__images/feature/gallery/chns_img33.jpg";
	images[number++] = "__images/feature/gallery/chns_img34.jpg";
	images[number++] = "__images/feature/gallery/chns_img35.jpg";
	images[number++] = "__images/feature/gallery/chns_img36.jpg";
	images[number++] = "__images/feature/gallery/chns_img37.jpg";
	images[number++] = "__images/feature/gallery/chns_img38.jpg";
	images[number++] = "__images/feature/gallery/chns_img39.jpg";
	images[number++] = "__images/feature/gallery/chns_img40.jpg";
	images[number++] = "__images/feature/gallery/chns_img41.jpg";
	images[number++] = "__images/feature/gallery/chns_img42.jpg";
	images[number++] = "__images/feature/gallery/chns_img43.jpg";
	images[number++] = "__images/feature/gallery/chns_img44.jpg";
	images[number++] = "__images/feature/gallery/chns_img45.jpg";
	images[number++] = "__images/feature/gallery/chns_img46.jpg";
	images[number++] = "__images/feature/gallery/chns_img47.jpg";
	images[number++] = "__images/feature/gallery/chns_img48.jpg";
	images[number++] = "__images/feature/gallery/chns_img49.jpg";
	images[number++] = "__images/feature/gallery/chns_img50.jpg";
	images[number++] = "__images/feature/gallery/chns_img51.jpg";
	images[number++] = "__images/feature/gallery/chns_img52.jpg";
	images[number++] = "__images/feature/gallery/chns_img53.jpg";
	images[number++] = "__images/feature/gallery/chns_img54.jpg";
	images[number++] = "__images/feature/gallery/chns_img55.jpg";
	images[number++] = "__images/feature/gallery/chns_img56.jpg";
	images[number++] = "__images/feature/gallery/chns_img57.jpg";
	images[number++] = "__images/feature/gallery/chns_img58.jpg";
	images[number++] = "__images/feature/gallery/chns_img59.jpg";
	var altTags = new Array();
	number = 0;
	altTags[number++] = "Byran Pawlic (1st place winner) at the World College Student Chinese Bridge Speech Contest Ceremony, Beijing, China, 2005";
	altTags[number++] = "Byran Pawlic, giving a speech at the Chinese Program New Year's party, 2006";
	altTags[number++] = "Byran Pawlic (1st place winner) performs at the World College Student Chinese Bridge Speech Contest, Beijing, China, 2005";
	altTags[number++] = "University of Houston Chinese program professors with students at the Teacher's Day Reception, hosted by the China General Consulate, Houston, 2006";
	altTags[number++] = "Professor Wen gives a speech at the Teacher's Day Reception, China General Consulate, Houston, 2006";
	altTags[number++] = "Professor Zhang with Provost Foss and Mrs. Foss at receiving the Chinese University Presidential Delegation Reception, 2007";
	altTags[number++] = "Award winners at the MCL award ceremony, 2006";
	altTags[number++] = "MCL Chinese Study Abroad students with local students, Beijing, 2006";
	altTags[number++] = "Professor Zhang with the 3rd place winner at the 1st Chinese (Taiwan) Speech Contest at Rice University, 2006";
	altTags[number++] = "Miss Chinatown. MCL Student Joyce Jia Hu, 2005";
	altTags[number++] = "HSK (B) Scholarship winner Irene Kwan at the award ceremony, University of Houston, 2006";
	altTags[number++] = "HSK (B) Scholarship winner Andrew Vonk at the award ceremony, 2005";
	altTags[number++] = "UH Chinese program professors with guest speaker Mr. Da Chen at the Chinese Film Festival, 2004";
	altTags[number++] = "Guest speaker Mr. Da Chen at the Chinese Film Festival, 2004";
	altTags[number++] = "Professor Wen with the 'Yuan Ye' acting troupe.";
	altTags[number++] = "A lion dance at the Chinese New Year party, University of Houston, 2007";
	altTags[number++] = "The winners at the MCL award ceremony, 2007";
	altTags[number++] = "Student performing cello at the Chinese New Year party, 2007";
	altTags[number++] = "A lion dance at the Chinese New Year party, University of Houston, 2007";
	altTags[number++] = "Professor Zhang with Speech Contest winners at Rice University, 2006";
	altTags[number++] = "Professor Wen with the 1st place winner Joseph Howell at the 3rd Chinese Speech Contest";
	altTags[number++] = "Chinese Speech Contest winners with professors and judges, 2005";
	altTags[number++] = "Chinese New Year Party, University of Houston, 2007";
	altTags[number++] = "1st place winner Byran Pawlic at the 1st Greater Houston Area Chinese Speech Contest, 2005";
	altTags[number++] = "2nd place winner (skit) at the 1st Greater Houston Area Chinese Speech Contest, 2005";
	altTags[number++] = "The 1st place winners (skit) at the 1st Greater Houston Area Chinese Speech Contest, 2005";
	altTags[number++] = "The 1st place winners (skit) at the 3rd Greater Houston Area Chinese Speech Contest, 2007";
	altTags[number++] = "1st place winner (skit) at the 3rd Greater Houston Area Chinese Speech Contest";
	altTags[number++] = "3rd place winner Irene Kwan at the 3rd Greater Houston Area Chinese Speech Contest";
	altTags[number++] = "1st place winner Joseph Howell at the 3rd Greater Houston Area Chinese Speech Contest";
	altTags[number++] = "3rd place winner Mohammed Kabir (singing) at the 3rd Greater Houston Area Chinese Speech Contest, 2007";
	altTags[number++] = "2nd place winners (skit) at the 3rd Greater Houston Area Chinese Speech Contest, 2007";
	altTags[number++] = "1st place winners (skit) at the 3rd Greater Houston Area Chinese Speech Contest, 2007";
	altTags[number++] = "Professor Zhang with speech contest winners at the 3rd Greater Houston Area Chinese Speech Contest, 2007";
	altTags[number++] = "Professor Wen with Chinese Study Abroad Program at Tiananmen Square, Beijing, China, 2005";
	altTags[number++] = "Professor Zhang with Chinese Study Abroad Program at the Temple of Heaven, Beijing, China, 2006";
	altTags[number++] = "Chinese Study Abroad Program at the Forbidden City, Beijing, China, 2007";
	altTags[number++] = "Chinese Study Abroad Program at the Great Wall, Beijing, China, 2005";
	altTags[number++] = "Chinese Study Abroad Program at the Great Wall, Beijing, China, 2005";
	altTags[number++] = "Chinese Study Abroad Program at the Temple of Heaven, Beijing, China";
	altTags[number++] = "Chinese Study Abroad Program at the Great Wall, Beijing, China, 2006";
	altTags[number++] = "Professor Wen with Chinese Study Abroad Program at the Forbidden City, Beijing, China, 2006";
	altTags[number++] = "Professor Wen with Chinese Study Abroad Program in Shanxi province, China";
	altTags[number++] = "MCL Chair Dr. Zimmerman, Professor Wen and Professor Zhang at the Temple of Heaven, Beijing, China, 2007";
	altTags[number++] = "Chinese Study Abroad Program at the Lao She tea house, Beijing, China, 2007";
	altTags[number++] = "Chinese Study Abroad Program in Shanxi province, China, 2002";
	altTags[number++] = "Chinese Study Abroad Program at Jing Shan Park, Beijing, China, 2007";
	altTags[number++] = "The Qing Emperor with his concubine Professor McArthur et al. Chinese Study Abroad Program at Jing Shan Park, Beijing, China, 2007";
	altTags[number++] = "Professor McArthur learning from Lei Feng at the Lei Feng Culture Center, Beijing, China, 2007";
	altTags[number++] = "Professor McArthur (right) at the Peking Roast Duck Restaurant, Beijing, China, 2007";
	altTags[number++] = "Birthday party in Shanxi province, China, 2004";
	altTags[number++] = "Chinese Study Abroad Program in Shanxi province, China, 2006";
	altTags[number++] = "Chinese Study Abroad Program in Shanxi province, China, 2006";
	altTags[number++] = "Professor Wen with Chinese Study Abroad Program at the Summer Palace, Beijing, China, 2006";
	altTags[number++] = "Chinese Study Abroad Program at the Great Wall, Beijing, China, 2006";
	altTags[number++] = "Chinese Study Abroad Program in Shanxi province, China, 2006";
	altTags[number++] = "Chinese Study Abroad Program in Shanxi province, China, 2006";
	altTags[number++] = "Chinese Study Abroad Program at the Temple of Heaven, Beijing, China, 2006";
	altTags[number++] = "Professor Zhang and MCL Chinese Study Abroad Group doing the 'The Firecracker' at the Temple of Heaven, Beijing, China, 2007";
	var captions = new Array();
	number = 0;
	captions[number++] = "Byran Pawlic (1st place winner) at the World College Student Chinese Bridge Speech Contest Ceremony, Beijing, China, 2005";
	captions[number++] = "Byran Pawlic, giving a speech at the Chinese Program New Year's party, 2006";
	captions[number++] = "Byran Pawlic (1st place winner) performs at the World College Student Chinese Bridge Speech Contest, Beijing, China, 2005";
	captions[number++] = "University of Houston Chinese program professors with students at the Teacher’s Day Reception, hosted by the China General Consulate, Houston, 2006";
	captions[number++] = "Professor Wen gives a speech at the Teacher's Day Reception, China General Consulate, Houston, 2006";
	captions[number++] = "Professor Zhang with Provost Foss and Mrs. Foss at receiving the Chinese University Presidential Delegation Reception, 2007";
	captions[number++] = "Award winners at the MCL award ceremony, 2006";
	captions[number++] = "MCL Chinese Study Abroad students with local students, Beijing, 2006";
	captions[number++] = "Professor Zhang with the 3rd place winner at the 1st Chinese (Taiwan) Speech Contest at Rice University, 2006";
	captions[number++] = "Miss Chinatown. MCL Student Joyce Jia Hu, 2005";
	captions[number++] = "HSK (B) Scholarship winner Irene Kwan at the award ceremony, University of Houston, 2006";
	captions[number++] = "HSK (B) Scholarship winner Andrew Vonk at the award ceremony, 2005";
	captions[number++] = "UH Chinese program professors with guest speaker Mr. Da Chen at the Chinese Film Festival, 2004";
	captions[number++] = "Guest speaker Mr. Da Chen at the Chinese Film Festival, 2004";
	captions[number++] = "Professor Wen with the 'Yuan Ye' acting troupe.";
	captions[number++] = "A lion dance at the Chinese New Year party, University of Houston, 2007";
	captions[number++] = "The winners at the MCL award ceremony, 2007";
	captions[number++] = "Student performing cello at the Chinese New Year party, 2007";
	captions[number++] = "A lion dance at the Chinese New Year party, University of Houston, 2007";
	captions[number++] = "Professor Zhang with Speech Contest winners at Rice University, 2006";
	captions[number++] = "Professor Wen with the 1st place winner Joseph Howell at the 3rd Chinese Speech Contest";
	captions[number++] = "Chinese Speech Contest winners with professors and judges, 2005";
	captions[number++] = "Chinese New Year Party, University of Houston, 2007";
	captions[number++] = "1st place winner Byran Pawlic at the 1st Greater Houston Area Chinese Speech Contest, 2005";
	captions[number++] = "2nd place winner (skit) at the 1st Greater Houston Area Chinese Speech Contest, 2005";
	captions[number++] = "The 1st place winners (skit) at the 1st Greater Houston Area Chinese Speech Contest, 2005";
	captions[number++] = "The 1st place winners (skit) at the 3rd Greater Houston Area Chinese Speech Contest, 2007";
	captions[number++] = "1st place winner (skit) at the 3rd Greater Houston Area Chinese Speech Contest";
	captions[number++] = "3rd place winner Irene Kwan at the 3rd Greater Houston Area Chinese Speech Contest";
	captions[number++] = "1st place winner Joseph Howell at the 3rd Greater Houston Area Chinese Speech Contest";
	captions[number++] = "3rd place winner Mohammed Kabir (singing) at the 3rd Greater Houston Area Chinese Speech Contest, 2007";
	captions[number++] = "2nd place winners (skit) at the 3rd Greater Houston Area Chinese Speech Contest, 2007";
	captions[number++] = "1st place winners (skit) at the 3rd Greater Houston Area Chinese Speech Contest, 2007";
	captions[number++] = "Professor Zhang with speech contest winners at the 3rd Greater Houston Area Chinese Speech Contest, 2007";
	captions[number++] = "Professor Wen with Chinese Study Abroad Program at Tiananmen Square, Beijing, China, 2005";
	captions[number++] = "Professor Zhang with Chinese Study Abroad Program at the Temple of Heaven, Beijing, China, 2006";
	captions[number++] = "Chinese Study Abroad Program at the Forbidden City, Beijing, China, 2007";
	captions[number++] = "Chinese Study Abroad Program at the Great Wall, Beijing, China, 2005";
	captions[number++] = "Chinese Study Abroad Program at the Great Wall, Beijing, China, 2005";
	captions[number++] = "Chinese Study Abroad Program at the Temple of Heaven, Beijing, China";
	captions[number++] = "Chinese Study Abroad Program at the Great Wall, Beijing, China, 2006";
	captions[number++] = "Professor Wen with Chinese Study Abroad Program at the Forbidden City, Beijing, China, 2006";
	captions[number++] = "Professor Wen with Chinese Study Abroad Program in Shanxi province, China";
	captions[number++] = "MCL Chair Dr. Zimmerman, Professor Wen and Professor Zhang at the Temple of Heaven, Beijing, China, 2007";
	captions[number++] = "Chinese Study Abroad Program at the Lao She tea house, Beijing, China, 2007";
	captions[number++] = "Chinese Study Abroad Program in Shanxi province, China, 2002";
	captions[number++] = "Chinese Study Abroad Program at Jing Shan Park, Beijing, China, 2007";
	captions[number++] = "The Qing Emperor with his concubine Professor McArthur et al. Chinese Study Abroad Program at Jing Shan Park, Beijing, China, 2007";
	captions[number++] = "Professor McArthur learning from Lei Feng at the Lei Feng Culture Center, Beijing, China, 2007";
	captions[number++] = "Professor McArthur (right) at the Peking Roast Duck Restaurant, Beijing, China, 2007";
	captions[number++] = "Birthday party in Shanxi province, China, 2004";
	captions[number++] = "Chinese Study Abroad Program in Shanxi province, China, 2006";
	captions[number++] = "Chinese Study Abroad Program in Shanxi province, China, 2006";
	captions[number++] = "Professor Wen with Chinese Study Abroad Program at the Summer Palace, Beijing, China, 2006";
	captions[number++] = "Chinese Study Abroad Program at the Great Wall, Beijing, China, 2006";
	captions[number++] = "Chinese Study Abroad Program in Shanxi province, China, 2006";
	captions[number++] = "Chinese Study Abroad Program in Shanxi province, China, 2006";
	captions[number++] = "Chinese Study Abroad Program at the Temple of Heaven, Beijing, China, 2006";
	captions[number++] = "Professor Zhang and MCL Chinese Study Abroad Group doing the 'The Firecracker' at the Temple of Heaven, Beijing, China, 2007";
	increment = Math.floor(Math.random() * number);
	
	var img = document.getElementById("slide");
	img.src = images[increment].toString();
	img.alt = altTags[increment].toString();
	
	var imgCaption = document.getElementById("slideCaption");
	imgCaption.innerHTML = captions[increment];
}
