﻿function getfocus(){

Focus = new Array
Focus[0] = "138064.jpg | Himantolophus albinares | 525 | 296 | <i>Himantolophus albinaries</i> Maul 1961, Maul's Footballfish, MCZ 138064 |  |  | Photo: MCZ Ichthyology Staff"
Focus[1] = "100046_Myxine_glutinosa.jpg | Myxine glutinosa  | 525 | 353 | <i>Myxine glutinosa</i> Linnaeus 1758, Atlantic Hagfish, MCZ 100046 |  |  | Photo: MCZ Ichthyology Staff"
Focus[2] = "157343_Masturus_sp.jpg | Masturus lanceolatus. | 525 | 406 | <i>Masturus lanceolatus</i> (Lienard 1840), Sharptail Mola (larvae), MCZ 157343 |  |  | Photo: MCZ Ichthyology Staff"
Focus[3] = "162344_Gymnothorax_zonipect.jpg | Gymnothorax zonipect | 525 | 320 | <i>Gymnothorax zonipectus</i> Seale 1906, MCZ 162344 |  |  | Photo: MCZ Ichthyology Staff"
Focus[4] = "Diaphus-metapoclampus-head-.jpg | Diaphus metapoclampus | 525 | 385 | <i>Diaphus metopoclampus</i> (Cocco 1829), Spothead Headlightfish, MCZ 151058 |  |  | Photo: MCZ Ichthyology Staff"
Focus[5] = "T-1269_Cookeolus_japonicus.jpg | Pristigenys alta | 525 | 236 | <i>Pristigenys alta</i> (Gill 1862), Short Bigeye, MCZ 167703 |  |  | Photo: MCZ Ichthyology Staff"
Focus[6] = "plate1.jpg | Hoplostethus pacificus | 525 | 273 | <i>Hoplostethus pacificus</i> Garman 1899, Pacific Slimehead |  |  | Photo: MCZ Ichthyology Staff"

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" >');

}