﻿function getfocus(){

Focus = new Array
Focus[0] = "Bothrops_schlegelli1.jpg | Eyelash palm pit viper | 525 | 356 | <i>Bothriechis schlegellii</i>, Eyelash palm pit viper, MCZ R-91679 | # |  | Photo: Kenneth Miyata"
Focus[1] = "Image10.jpg | South American common toad | 525 | 400 | <i>Bufo typhonius complex</i>, South American common toad, MCZ A-86436  | # |  | Photo: Kenneth Miyata"
Focus[2] = "Image21.jpg | Cuba knight anole | 525 | 400 | <i>Anolis equestris</i>, Cuba knight anole (Introduced specimen in Coral Gables, Fl, from Cuba) | # |  | Photo: Kenneth Miyata"
Focus[3] = "Image30.jpg | Imbabura treefrog | 525 | 400 | <i>Hyla picturata</i>,  Imbabura treefrog | # |  | Photo: Kenneth Miyata"
Focus[4] = "Image31.jpg | Imbabura treefrogs | 525 | 373 | <i>Hyla picturata</i>,  Imbabura treefrogs | # |  | Photo: Kenneth Miyata"
Focus[5] = "Image32.jpg | Imbabura treefrogs | 525 | 400 | <i>Hyla picturata</i>,  Imbabura treefrogs | # |  | Photo: Kenneth Miyata"
Focus[6] = "santiago3.jpg | Galapagos tortoise | 525 | 400 | <i>Geochelone nigra</i>,  Galapagos tortoise | # |  | Photo: Jose Rosado"
Focus[7] = "tortoise2.jpg | Galapagos tortoise | 450 | 378 | <i>Geochelone nigra</i>,  Galapagos tortoise | # |  | Photo: Jose Rosado"

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]
FocusCaption = FocusInfo[4]
FocusLinkURL = FocusInfo[5]
FocusLinkText = FocusInfo[6]
FocusCredit = FocusInfo[7]

document.write('<img src="images/rotate/' + FocusFileName + '" alt="' + FocusAlt + '" width="' + FocusWidth + '" height="' + FocusHeight + '" border="0" >');

}