/*
<!-- 
	Author: Clifton Alexander Dildy
	Start Date: Wednesday Oct 4/ 2006
	Description:
		this is the script file that handles random images in the banner
-->
*/
var references = new Array()
var about_intro = "<b>About the image at the top of this page:</b><br />";
references[0] = about_intro + "n/a"
references[1] = about_intro + "Greenland Whale Fishery, watercolour by Sigismund Bacstrom as he accompaied George Vancouver's voyage around the world 1791-1795. <br />Beinecke Rare Book and manscript Library, Yale University."
references[2] = about_intro + "Mercator World Map. "
references[3] = about_intro + "HMS Bounty, an 18th Century, three-masted sailing ship used for exploration - most notably by Captian Bligh.<br />Permission received from Pierre De Wispelaere, artist. Original art in Dr. Shawn Cafferky's private collection."
references[4] = about_intro + "Crosley - 'the world's most convenient refridgerator' and winner of the 1951 Fashion Academy Gold Medal Award.<br /> Magazine ad."
references[5] = about_intro + "'Moor of Africa, Negro, Hindoo' engraved by R. Scott, published by E.Khull &amp; Co. of Glasgow in <i>The Glasgow Geography</i>, 1825<br />Courtesy of antiqueprints.com"
references[6] = about_intro + "Adam Smith (1723-1790) was the Professor of Moral Philosophy at the University of Glasgow (1752 - 1764)<br /> and author of the seminal <i>An inquiry into the Nature and Causes of the Wealth of Nations (1766)<br />From John Kay's Edinburgh Protraits"
references[7] = about_intro + "'Berkley Castle' tinted lithograph by W. Walton on stone after W. Hulme, publisshed 1881.<br />Courtesy of antiqueprints.com"
references[8] = about_intro + "Print of 'Across the Continent' by Frances Palmer, 1868<br />Public Domain print from American Printmakers Currier &amp; Ives"
references[9] = about_intro + "Print's translation 'A talent's fate (literally 'road') under capitalism and socialism'<br />Public Domain print "
references[10] = about_intro + "Print translation 'We will conquer the draught too'<br />Public Domain print "
references[11] = about_intro + "Vietnamese Air Force T-28 Skyraiders, flown by U.S. Air Force pilots, drop napalm on Viet Cong targets.<br />Photo Credit: Lary Burrows, 1962 (Life.)<br />Online Source: http://digitaljournalist.org/issue9711/req7.htm"
references[12] = about_intro + "Covering Fire, Vietnam<br />Photo Credit: The Byrd Archives.<br />Online Source: http://www.lbjlib.utexas.edu/shwv/images/a_ground-3.htm "
references[13] = about_intro + "<i>De zambaigo e india, nace albarazada (translation: From Zambaigo and Indian, an Albarazada is Born) ca 1785-90.<br />Credit: 'Casta Painting: Images of Race in Eighteenth-Century Mexico' by Ilona Kazew, 2004<br />From: Peter Rogers</i>"
references[14] = about_intro + "Attributed to Juan Rodriquex Juárex, <i><br />De castizo y espanola, produce espanola</i> (translation: Castizo and Spaniard Produce a Spaniard) ca 1715.<br />Credit: 'Casta Painting: Images of Race in Eighteenth-Century Mexico' by Ilona Katzew"
references[15] = about_intro + "Nuba girl closes her eyes, which she has painted white so she can see a departed tribesman.<br />Credit: 'African Kingdoms' by Basil Davidson and The Editors of Time-Life Books, 1966 "
references[16] = about_intro + "13th Century drawing of an Arab trader journeying across the Sahara to the great kingdoms of the Western Sudan<br />Credit: 'African Kingdoms' by Basil Davidson and The Editors of Time-Life Books, 1966 "
references[17] = about_intro + "Emperor Aurangzeb's Badshahi Mosque, Lahore, Pakistan<br />Permission to use from Saudi Aramco World and PADIA.<br />  Source: Nik Wheeler"
references[18] = about_intro + "Great Nafud Desert, Saudi Arabia<br />Permission to use from Saudi Aramco World and PADIA.<br />Source: Khalil Abou El-Nasr"
references[19] = about_intro + "'St. John's Ward', an immigrant quarter in Toronto, circa 1900<br /> Source: the Multicultural History Society of Ontario at: http://www.mhso.ca/ggp/Ethnic_groups/Italian/Ital_overview.html"


var number_of_images = 19;


function change_image(){
	
	//the number of images go also to line 59
	//var number_of_images = 18;
	
  	var randomnumber=Math.floor(Math.random()*number_of_images)
	randomnumber += 1
	
	var image_src = document.getElementById("scrolling_images");
	image_src.innerHTML = '<img src="banner_images/' + randomnumber +'.jpg" alt="Banner Image" />';



	

	
	window.setInterval("find_random_image()",10000);
		var image_info = document.getElementById("reference");
		image_info.innerHTML = references[randomnumber]
}
function find_random_image () {
	


	
	//the number of images
	//var number_of_images = 18;
	
  	var randomnumber=Math.floor(Math.random()*number_of_images)
	randomnumber += 1
	
	var image_src = document.getElementById("scrolling_images");
	image_src.innerHTML = '<img src="banner_images/' + randomnumber +'.jpg" alt="Banner Image" />';
	var image_info = document.getElementById("reference");
	image_info.innerHTML = references[randomnumber]
	
	
}

