// JavaScript Document
//Basically just adapted the rotator script from OEB website
function getfocus(){

Focus = new Array
//FocusInfo[#] = FileName | Alt attribute | Width | Height | Research Area | Title Attribute | Caption | Link
Focus[0] = "chase_goat.jpg | Chasing a goat outdoors | 274 | 240 | Bone Strain | Evoking non-steady locomotion | Chasing the goat around an enclosure in attempt to elicit a variety of non-steady locomotor behaviors. | people.html#Carlos"
Focus[1] = "goat_standing.jpg | Goat standing still | 320 | 240 | Training Goats | Goat is waiting to run on the treadmill | Andrew and Trevor trained these goats to run on the treadmill. | alumni.html#Andrew"
Focus[2] = "goat_w_markers.jpg | Goat covered with Qualysis markers | 277 | 240 | Turning dynamics | Qualysis markers on a goat | We apply markers to the joints of goats to collect kinematic data with a high-speed infrared motion capture system. | people.html#Carlos"
Focus[3] = "wild_dog.jpg | African Wild Dogs | 368 | 240 | Interspecific comparisons | African Hunting Dogs | These dogs hunt in packs. | people.html#Ed"

//examples from OEB website homepage
/*
Focus[4] = "fishskel.jpg | Fish skeleton | 500 | 300 | Biomechanics & Physiology | <i>Epinephelus niveatus<\/i> | Whole body skeleton of a grouper (<i>Epinephelus niveatus<\/i>). A valuable commercial food fish, it can grow to weigh over 50 lbs. and has been on the IUCN's threatened species list since 1996. | biomech_phys.html"
Focus[5] = "lactarius.jpg | Lactarius hygrophoroides | 500 | 375 | Biodiversity & Systematics | <i>Lactarius hygrophoroides<\/i> | Edible milk cap mushrooms grow amid the deciduous woods of the Harvard Forest, one of the sites where the Pringle Lab does research.  | biodiv_systematics.html"
Focus[6] = "grahami.jpg | Anolis grahami | 500 | 300 | Biodiversity & Systematics | Show 'Em What You've Got | <i>Anolis grahami<\/i> from Jamaica. Expansion of the throat fan or dewlap is a colorful part of display behavior of male <i>Anolis<\/i> lizards. In closed forests, light levels are reduced and the light that does penetrate is mostly in the yellow and green parts of the spectrum. As a result, white or yellow dewlaps are optimal because they reflect the little light that is available. | biodiv_systematics.html"
Focus[7] = "bluegillhead2.jpg | Bluegill sunfish (Lepomis macrochirus) | 515 | 386 | Biomechanics & Physiology | Internal Tattoo | <i>Lepomis macrochirus <\/i>. Cleared and stained bluegill sunfish showing the structure of the head.  The bones of the head are stained red, and cartilage blue. | biomech_phys.html"
Focus[8] = "combo4.jpg | Four  | 515 | 310 | Evolutionary Developmental Biology | Rhythm of Life | Evo-devo attempts to describe the developmental processes in evolution including natural selection, and changes in the rate and timing of species development. | evo_devo.html"
Focus[9] = "a5.jpg |  | 515 | 386 | Biodiversity & Systematics | Convergent Evolution | A classic example of convergent evolution is the set of Anolis lizard ecomorphs living on the islands of the Greater Antilles. Unique histories among species can lead to divergent evolution regardless of their shared selective pressures. | biodiv_systematics.html"
Focus[10] = "venus.jpg |  | 515 | 309 | Biomechanics & Physiology | How the Venus Flytrap Snaps | The Applied Math Lab recently studied the rapid leaf closure in the Venus Flytrap and gave an explanation for this process using a combination of experiment and theory. This provided a general picture of the physical limits and design principles that underlie rapid movements in plants and fungi, a topic of current research interest. | biomech_phys.html"
Focus[11] = "banaquit.jpg | Coereba flaveola | 515 | 323 | Evolutionary Developmental Biology | Built for Nectar | <i>Coereba flaveola<\/i> uses its long curved beak to sip out the nectar from flowers. The colorful banaquit is a bird the Abzhanov lab studies to understand the evolution and development of adaptive morphologies in natural populations. | evo_devo.html"
Focus[12] = "bullfinch.jpg |  | 515 | 387 | Evolutionary Developmental Biology | Beak Adaptation | The Abzhanov lab studies Darwin's Finches to understand the evolution and development of adaptive morphologies in natural populations. | evo_devo.html"
Focus[13] = "geospiza_coniostris.jpg | Geospiza conirostris | 515 | 387 | Evolutionary Developmental Biology | Large Cactus Finch | The Large Cactus Finch (<i>Geospiza conirostris<\/i>) uses its elongated beak to probe cactus flowers. The Abzhanov lab studies Darwin's Finches to understand the evolution and development of adaptive morphologies in natural populations. | evo_devo.html"
Focus[14] = "biewener_gfowl2.jpg | Numida meleagris | 515 | 157 | Biomechanics & Physiology | Surefooted Fowl | Guinea fowl (<i>Numida meleagris<\/i>) is studied to explore the biomechanics of running stability following unexpected perturbations, such as 'falling in a hole.' | biomech_phys.html"
Focus[15] = "0037.jpg |  | 515 | 386 | Biology of Marine Systems | Undersea Coexistence and Symbiosis | The Cavanaugh lab studies symbioses of bacteria in marine invertebrates from deep-sea hydrothermal vents, methane seeps, and coastal reducing sediments. | bio_marine.html"
Focus[16] = "0327.jpg |  | 515 | 386 | Biology of Marine Systems | Undersea Coexistence and Symbiosis | The Cavanaugh lab studies symbioses of bacteria in marine invertebrates from deep-sea hydrothermal vents, methane seeps, and coastal reducing sediments. | bio_marine.html"
Focus[17] = "tubeworms.jpg |  | 515 | 386 | Biology of Marine Systems | Undersea Coexistence and Symbiosis | The Cavanaugh lab studies symbioses of bacteria in marine invertebrates from deep-sea hydrothermal vents, methane seeps, and coastal reducing sediments. | bio_marine.html"
Focus[18] = "atsnowflower.jpg |  | 515 | 345 | Population & Evolutionary Genetics | <i>Arabidopsis thaliana<\/i> | <i>Arabidopsis thaliana<\/i> flowering in the snow in a natural population in Massachusetts.  Seasonal environmental conditions during seed development strongly influence seed dormancy. | pop_evogen.html"
Focus[19] = "moorcroft-combo.jpg |  | 515 | 365 | Ecology | Ecological Processes & Terrestrial Ecosystems | Current projects in the Moorcroft lab include:  impacts of deforestation on the ecosystems, climate and hydrologic cycle of Amazonia; development of a constrained terrestrial biosphere model for the Eastern US; and understanding the interactions between fire and pathogen dynamics in the Yellowstone ecosystem. | ecology.html"
Focus[20] = "blade.jpg |  | 515 | 326 | Biomechanics & Physiology | Surface buckling of a grass blade. | The development of plant structures involves large forces at the cell level (turgor pressure) and at the organ level (tissue stresses).  Members of the Dumais lab use the type of instability shown in the picture to probe the mechanical aspects of plant development. | biomech_phys.html"
Focus[21] = "maskedbooby.jpg |  | 515 | 340 | Population & Evolutionary Genetics | Biggest Booby | This masked booby eats fish, squid and shrimp and is found around many isolated atolls throughout the tropical oceans. (Edwards lab photo) | pop_evogen.html"
Focus[22] = "laysandance.jpg |  | 515 | 340 | Population & Evolutionary Genetics | Together For Life | These adult laysan albatrosses arrive each year on their breeding grounds in the Northwest Hawaiian Islands in November, and spend the first several weeks courting their lifetime mate to re-establish the pair-bond after several months at sea.(Edwards lab photo) | pop_evogen.html"
Focus[23] = "malefrigatebird.jpg |  | 515 | 302 | Population & Evolutionary Genetics | Purloined Perch | This male great frigatebird is one of the few tropical seabird species that shows sexual dimorphism. It is shown here on its nest, constructed largely of sticks and material stolen from other seabirds, on Midway Island, Hawaii. (Edwards lab photo) | pop_evogen.html"
Focus[24] = "dsc_0010.jpg | Scolopendra laeta | 515 | 342 | Biodiversity & Systematics | <i>Scolopendra laeta<\/i> | <i>Scolopendra laeta<\/i>, a scolopendromorph centipede photographed by Gonzalo Giribet in the Weat Belt, Western Australia during a field trip to collect centipedes for research on centipede phylogeny and biogeography. | biodiv_systematics.html"
Focus[25] = "dsc_0031.jpg | Zelanophilus provocator | 512 | 340 | Biodiversity & Systematics | <i>Zelanophilus provocator<\/i> | <i>Zelanophilus provocator<\/i>, a geophilomorph centipede photographed by Gonzalo Giribet at Hinewai Scenic Reserve, in the Banks Peninsula (South Island, New Zealand) during a trip to collect harvestmen and centipedes | biodiv_systematics.html"
Focus[26] = "dscn_1431.jpg | Zelanophilus provocator | 515 | 326 | Biodiversity & Systematics | Marine Snail | <i>Erosaria spurca<\/i>, a cowry photographed by Gonzalo Giribet during an underwater census taken at the Cabo de Palos-Níjar Natural Park with colleagues from the CEAB (Spain) | biodiv_systematics.html"
Focus[27] = "narisovalis_juv.jpg |  | 515 | 339 | Biomechanics & Physiology | Tiny Tetrapod | One of the things the Hanken lab studies is the evolution of miniaturized animals. This is a juvenile of a <i>Thorius narisovalis<\/i> salamander,  among the smallest tailed tetrapods. It is sitting on a blade of grass. (Photo copyright James Hanken) | biomech_phys.html"
Focus[28] = "pennatulus.jpg |  | 515 | 320 | Biodiversity & Systematics | Head of an Adult Miniaturized Salamander | Shown in a lateral view, the total head length is around 3 mm. In tiny animals, the brain and sense organs get disproportionately large, as can be seen here in the relatively large nasal capsule (nose), eye, and otic capsule (inner ear). Conversely, the skull bones are tiny, and barely form a skull. Species: <i>Thorius pennatulus<\/i>. (Photo copyright James Hanken) | biodiv_systematics.html"
Focus[29] = "equus-burchelli.jpg |  | 515 | 342 | Paleobiology | Striped Sentinels | Burchell's zebras (<i>Equus burchelli<\/i>) associate in groups consisting of a stallion, a number of mares and their colts. Here, mares of a group interlock heads and backs in a rest position, providing lookouts in all directions. (Photo: F. A. Jenkins, Jr.) | paleobio.html"
Focus[30] = "cyclotosaurus-macknight-qua.jpg |  | 515 | 342 | Paleobiology | Fossil Emergence | A fossil temnospondyl amphibian, <i>Cyclotosaurus sp.<\/i>, emerges from a quarry developed in the Late Triassic lacustrine Fleming Fjord Formation outcropping along the east coast of Greenland. (Photo: F. A. Jenkins, Jr.) | paleobio.html"
Focus[31] = "tiktaalik.jpg |  | 515 | 343 | Paleobiology | Fish With Feet | The amphibious fish <i>Tiktaalik roseae<\/i>, documenting the transition from water to land that took place in Late Devonian time (circa 375 million years ago), is represented by this fossil recovered from Ellesmere Island in the Canadian Acrtic archipelago (E. B. Daeschler photo). | paleobio.html"
Focus[32] = "aq-spurs.jpg |  | 515 | 343 | Evolutionary Developmental Biology | Nectar Spur Development | The morphology of nectar spurs in <i>Aquilegia<\/i> (columbine) varies enormously depending on what pollinator the species is adapted to interact with. The Kramer lab is investigating the genetic control of spur development in this emerging model system. | evo_devo.html"
Focus[33] = "oeb52.jpg |  | 515 | 386 | Evolutionary Developmental Biology | Biology of Plants Field Trip | Students in OEB 52: Biology of Plants enjoy multiple field trips, including a weekend trip to Harvard Forest and this spring visit to Garden in the Woods. | evo_devo.html"
Focus[34] = "bluegill2.jpg | Bluegill sunfish (Lepomis macrochirus) | 515 | 342 | Biomechanics & Physiology | Bluegill Sunfish | <i>Lepomis macrochirus<\/i> are agile suction feeding fish and can rapidly remove large numbers of small prey from a feeding arena. | biomech_phys.html"
Focus[35] = "mccarthy-6.jpg |  | 515 | 342 | Biology of Marine Systems | There Flows the Neighborhood | Warming conditions in the Arctic are progressing more rapidly than in other region (including Antarctica).  The loss of sea ice has large implications for the integrity of the polar marine food web.  From plankton to mammals, the successes of Arctic  marine organisms are inextricably linked to sea ice. James McCarthy has edited and authored portions of international climate assessments, such as the Intergovernmental Panel on Climate Change and the Arctic Climate Impact Assessment. | bio_marine.html"
Focus[36] = "mccarthy-1.jpg |  | 515 | 358 | Biology of Marine Systems | Common dolphins in the bow wake of the R/V Bilim in the Black Sea | The McCarthy group is currently pursuing questions relating to the role of marine mammals in the retention of nutrients in the highly productive surface layer of the marine environment.  The largest marine mammals feed on small crustacean herbivores and the fates of the mammalian metabolites have important implications for carbon and nitrogen recycling and export processes in the sea. | bio_marine.html"
Focus[37] = "mccarthy-3.jpg |  | 515 | 348 | Biology of Marine Systems | R/V Oceanus near the Gulf Stream | The McCarthy group pursues field research with oceanographic vessels.  Much of their work has focused on regions where upper ocean biology is strongly influenced by seasonal and interannual cycles of intense mixing, such as winters in the North Atlantic, El Ni&ntilde;o events, and monsoonal cycles in tropical waters | bio_marine.html"
Focus[38] = "pitcherplant.jpg |  | 515 | 300 | Biodiversity & Systematics | Pitcher Plant | In collaboration with members of the medical school, the Pringle Lab is exploring the diversity and biogeographic patterns of microbial communities living inside pitcher plants collected from across New England. | biodiv_systematics.html"
Focus[39] = "borneo.jpg |  | 515 | 342 | Biodiversity & Systematics | Exploding with Life as a Survival Strategy | Mist rises through a deep, dense Borneo forest. To ensure survival, the trees fruit all at once and overwhelm fruit eaters with their bounty. Fruits and flowers fall like snowflakes. OEB faculty members Naomi Pierce, Paul Moorcroft, and Charles Davis led a field-based Harvard Summer School class, descriptively named The Biodiversity of Borneo. | biodiv_systematics.html"
*/


array_index = Math.floor(Math.random() * Focus.length);

FocusInfo = Focus[array_index].split(" | ");

FocusFileName = FocusInfo[0]
FocusAlt = FocusInfo[1]
FocusWidth = FocusInfo[2]
FocusHeight = FocusInfo[3]
FocusResArea = FocusInfo[4]
FocusTitle = FocusInfo[5]
FocusCaption = FocusInfo[6]
FocusLink = FocusInfo[7]

document.write('<img src="pics/rotate/' + FocusFileName + '" alt="' + FocusAlt + '" width="' + FocusWidth + '" height="' + FocusHeight + '" border="0" >');

}