<!--

/*---------------------------------------------------------------------------
 |	The original script has been modified by Chuan Su to meet the new		|
 |	requirements for www.anthropology.hawaii.edu.							|
 |																			|
 --------------------------------------------------------------------------*/

var imgMax  = 29 /* this number should ALWAYS be equal to the total number of the banner pictures in use */

var imgRand = Math.floor(Math.random() * imgMax);
var s0 = '<map name="banner" id="banner"><area alt="Link to the Department of Anthropology home page" shape="rect" coords="350, 40, 860, 120" href="http://www.anthropology.hawaii.edu/" /></map>';
var s1 = '<img usemap="#banner" src="http://www.anthropology.hawaii.edu/images/banner/';
var s2 = '" alt="" style="border:0; float:right" title="';
var s3 = '"/>';

if(imgRand == 0)       document.write(s0 + s1 + "jws1.jpg" + s2 + "Muddy legs of Geoff White photographed by Jesse Stephen in 2007 in Ka'ala Farms, O'ahu" + s3);
else if(imgRand == 1)  document.write(s0 + s1 + "jws2.jpg"  + s2 + "Ty Tengan photographed by Jesse Stephen in 2007 in Ka'ala Farms, O'ahu" + s3);
else if(imgRand == 2)  document.write(s0 + s1 + "jws3.jpg"  + s2 + "Anthropology graduate students photographed by Jesse Stephen in 2007 in Ka'ala Farms, O'ahu" + s3);
else if(imgRand == 3)  document.write(s0 + s1 + "jws4.jpg"  + s2 + "Kiki Ka'akau-Delizo photographed by Jesse Stephen in 2007 in Ka'ala Farms, O'ahu" + s3);
else if(imgRand == 4)  document.write(s0 + s1 + "jws5.jpg"  + s2 + "Anthropology graduate students photographed by Jesse Stephen in 2007 in Ka'ala Farms, O'ahu" + s3);
else if(imgRand == 5)  document.write(s0 + s1 + "jws6.jpg"  + s2 + "Photographed by Jesse Stephen in 2007 in Ka'ala Farms, O'ahu" + s3);
else if(imgRand == 6)  document.write(s0 + s1 + "jws7.jpg"  + s2 + "Photographed by Jesse Stephen in 2006 in Makapu'u, O'ahu" + s3);
else if(imgRand == 7)  document.write(s0 + s1 + "jws8.jpg"  + s2 + "Photographed by Jesse Stephen in 2005 in Rapa Nui" + s3);
else if(imgRand == 8)  document.write(s0 + s1 + "jws9.jpg"  + s2 + "Photographed by Jesse Stephen in 2007 in Manoa, O'ahu" + s3);
else if(imgRand == 9)  document.write(s0 + s1 + "jws10.jpg"  + s2 + "Photographed by Jesse Stephen in 2005 in Rapa Nui" + s3);
else if(imgRand == 10)  document.write(s0 + s1 + "jws11.jpg"  + s2 + "Photographed by Jesse Stephen in 2005 in Rapa Nui" + s3);
else if(imgRand == 11)  document.write(s0 + s1 + "jws12.jpg"  + s2 + "Photographed by Jesse Stephen in 2005 in Rapa Nui" + s3);
else if(imgRand == 12)  document.write(s0 + s1 + "jws13.jpg"  + s2 + "Photographed by Jesse Stephen in 2005 in Rapa Nui" + s3);
else if(imgRand == 13)  document.write(s0 + s1 + "jws14.jpg"  + s2 + "Photographed by Jesse Stephen in 2004 in Honolulu, O'ahu" + s3);
else if(imgRand == 14)  document.write(s0 + s1 + "jws15.jpg"  + s2 + "Photographed by Jesse Stephen in 2002 in Thailand" + s3);
else if(imgRand == 15)  document.write(s0 + s1 + "jws16.jpg"  + s2 + "Photographed by Jesse Stephen in 2006 in Kohala field system, Hawai'i" + s3);
else if(imgRand == 16)  document.write(s0 + s1 + "jws17.jpg"  + s2 + "Photographed by Jesse Stephen in 2006 in Kohala field system, Hawai'i" + s3);
else if(imgRand == 17)  document.write(s0 + s1 + "mbb1.jpg"  + s2 + "Photographed by Margaret B. Bodemer in 2007 in Hanoi, Vietnam" + s3);
else if(imgRand == 18)  document.write(s0 + s1 + "ks1.jpg"  + s2 + "Photographed by Kelli Swazey on Siladen Island, North Sulawesi, 2006" + s3);
else if(imgRand == 19)  document.write(s0 + s1 + "ks2.jpg"  + s2 + "Photographed by Kelli Swazey in Manado city, North Sulawesi, 2006" + s3);
else if(imgRand == 20)  document.write(s0 + s1 + "ks3.jpg"  + s2 + "Photographed by Kelli Swazey in Tondano, North Sulawesi, 2006" + s3);
else if(imgRand == 21)  document.write(s0 + s1 + "ks4.jpg"  + s2 + "Photographed by Kelli Swazey in Tomohon, North Sulawesi, 2006" + s3);
else if(imgRand == 22)  document.write(s0 + s1 + "ks5.jpg"  + s2 + "Photographed by Kelli Swazey in Manado city, North Sulawesi, 2006" + s3);
else if(imgRand == 23)  document.write(s0 + s1 + "ks6.jpg"  + s2 + "Photographed by Kelli Swazey in Manado city, North Sulawesi, 2006" + s3);
else if(imgRand == 24)  document.write(s0 + s1 + "jv1.jpg"  + s2 + "Photographed by Judy Voelker in Siem Reap, Cambodia, 2005" + s3);
else if(imgRand == 25)  document.write(s0 + s1 + "akc1.jpg"  + s2 + "Photographed by Alison Carter in 2009 in Takeo Province, Cambodia" + s3);
else if(imgRand == 26)  document.write(s0 + s1 + "akc2.jpg"  + s2 + "Photographed by Alison Carter in 2009 in Takeo Province, Cambodia" + s3);
else if(imgRand == 27)  document.write(s0 + s1 + "nc1.jpg"  + s2 + "Photographed by Nigel Chang in 2005 in Takeo Province, Cambodia" + s3);
else if(imgRand == 28)  document.write(s0 + s1 + "nc2.jpg"  + s2 + "Photographed by Nigel Chang in 2005 in Takeo Province, Cambodia" + s3);

/* Steps to add a new banner picture:

	Step 1: Copy the following line of code and paste it after the last line of code above:
	
			else if(imgRand == NewNumber)  document.write(s0 + s1 + "pic_title.jpg"  + s2 + "Picture description goes here" + s3);
			
	Step 2: Replace "NewNumber" with a number 1 greater than the current greatest number
	Step 3: Replace "pic_title" with the name of the image file to use
	Setp 4: Replace "Picture description goes here" with your description of the picture.
	Step 5: Change the number in the first line of code if necessary and make sure it equals the total of the pictures in use.

*/
//-->