var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images2/clusia.jpg'
theImages[1] = 'images2/papajlab.jpg'
theImages[2] = 'images2/sullivanlab.jpg'
theImages[3] = 'images2/mice.jpg'
theImages[4] = 'images2/salvias.jpg'
theImages[5] = 'images2/seeds.jpg'
theImages[6] = 'images2/SanPedroRiver.jpg'
theImages[7] = 'images2/bluebirds.jpg'
theImages[8] = 'images2/rotifer.jpg'
theImages[9] = 'images2/finches.jpg'
theImages[10] = 'images2/galapagos.jpg'
theImages[11] = 'images2/volvox3.jpg'
theImages[12] = 'images2/rugatulus4.jpg'
theImages[13] = 'images2/frog.jpg'
theImages[14] = 'images/Barker_selaginella_genome.jpg'

var theText = new Array() // These are the captions; also used for alt text

theText[0] = "Do the movements of frugivorous birds influence fruit traits and the fruiting phenology of the plants whose seeds they disperse? "
theText[1] = "The Papaj Lab studies the reproductive dynamics of insects in the context of coevolved interactions. Insect learning is a common focus of our work.  Shown is an array of paper targets used to assay butterfly color learning. "
theText[2] = "The Tucson Marine Phage Lab: Exploring ocean viruses around the globe, including the cyanobacterial myovirus and novel forms like the 'stars on a string' in this image from the Tara Oceans expedition isolated from the Mediterranean Sea. "
theText[3] = "coats of different color: desert mice offer new lessons on survival of the fittest "
theText[4] = "SALVIAS is a network of ecologists, conservation biologists, biogeographers, botanists and computer programmers interested in understanding large scale patterns of plant diversity "
theText[5] = "seed germination in desert annuals--an empirical test of adaptive bet hedging "
theText[6] = "what is the role of climate variability and vegetation change in controlling biogeochemical cycling and water-use in arid and semi-arid ecosystems? "
theText[7] = "Evolutionary ecology of traits involved in species interactions and range dynamics using approaches that intergrate quantitative genetics, physiology, and long-term ecological experiments "
theText[8] = "Although these microscopic freshwater invertebrates have not had sex for 90 million years, they have undergone extensive speciation "
theText[9] = "Evolution of organismal structures that reconcile adaptation and innovation "
theText[10] = "Galapagos Marine Ecology (UA ECOL 496O/596O): an incredible opportunity for teachers and undergraduates to study in the Galapagos Islands "
theText[11] = "The Michod Lab investigates questions of individuality, cooperation and conflict between evolving individuals, the evolution of sex, programmed cell death, fitness, mutation and multi-level selection using volvocalean green algae as a model organism. Shown is a female individual carrying eight babies "
theText[12] = "Workers of the ant Temnothorax rugatulus are marked individually with paint spots to observe individual differences in task performance  "
theText[13] = "Reptiles and Amphibians of the Sonoran Desert are a strength of the University of Arizona Museum of Natural History. Our current initiative is to supplement the physical specimens with photo vouchers and data from Sonora, Mexico. "
theText[14] = "The Barker Lab studies the evolutionary genomics of plants. Polyploidy and hybridization are two evolutionary phenomena that leave enduring signatures in plant genomes and may have significant consequences for plant diversity. "

var theLab = new Array() // These are the lab affiliations

theLab[0] = "Bronstein Lab: "
theLab[1] = "Papaj Lab: "
theLab[2] = "Sullivan Lab: "
theLab[3] = "Nachman Lab: "
theLab[4] = "Enquist Lab: "
theLab[5] = "Venable Lab: "
theLab[6] = "Huxman Lab: "
theLab[7] = "Duckworth Lab: "
theLab[8] = "Birky Lab: "
theLab[9] = "Badyaev Lab: "
theLab[10] = "Outreach: Katrina Mangin "
theLab[11] = "Michod Lab: "
theLab[12] = "Social Insect Lab: "
theLab[13] = "UAZ Herpetology Photo-Voucher Initiative: "
theLab[14] = "Barker Lab: "

var theLink = new Array() // These are the links to the labs / research

theLink[0] = "faculty/bronstein/alice.htm"
theLink[1] = "faculty/papaj/"
theLink[2] = "faculty/mbsulli/"
theLink[3] = "faculty/nachman/"
theLink[4] = "http://www.salvias.net/"
theLink[5] = "faculty/venable/"
theLink[6] = "faculty/huxman/"
theLink[7] = "http://www.u.arizona.edu/~rad3"
theLink[8] = "faculty/birky/BirkyLab.html"
theLink[9] = "http://www.u.arizona.edu/~abadyaev"
theLink[10] = "faculty/mangin/"
theLink[11] = "faculty/michod/"
theLink[12] = "Faculty/Dornhaus/"
theLink[13] = "collections/Herp/UAZ_PSV_2006/UAZ_Sonora_Herp_Photo_Voucher_Initiative_2006.html"
theLink[14] = "http://www.barkerlab.net"

var thecopyright = new Array() // These are the links to the copyright info for the images

thecopyright[0] = "2002 Alice Boyle"
thecopyright[1] = "2001 Daniel Papaj"
thecopyright[2] = "Jennifer Brum"
thecopyright[3] = "2003 Hopi Hoekstra"
thecopyright[4] = "2003 Brian Enquist"
thecopyright[5] = "2003 Larry Venable"
thecopyright[6] = "2003 Travis Huxman"
thecopyright[7] = "2010 Renee Duckworth"
thecopyright[8] = "2003 Bill Birky"
thecopyright[9] = "2011 Alex Badyaev"
thecopyright[10] = " Miguel Mosquera Jr. All rights reserved."
thecopyright[11] = " Cristian Solari"
thecopyright[12] = " Alex Wild"
thecopyright[13] = "2004 Kevin Bonine"
thecopyright[14] = "2011 Michael Barker"

// The random logic for image selection

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
   }
var whichImage = Math.round(Math.random()*(p-1));
 var link_text="...more info";
 var full_link= link_text.link(theLink[whichImage]);
function showImage(){
document.write('<img src='+theImages[whichImage]+' alt='+theText[whichImage]+' height="167" width="229" align="left" vspace="11" hspace="11" border="0">');
}
function writetext() {
 document.write("<br><B>"+theLab[whichImage]+'</b>');
 document.write(theText[whichImage]);
 document.write(full_link);
 document.write("<br><br>Image &copy; ");
 document.write(thecopyright[whichImage]);
}

