﻿function getfocus(){

Focus = new Array
Focus[0] = "3_jelly_2.jpg | By-the-Wind-Sailor | 525 | 356 | MCZ Blashka Glass Invertebrate Colln. (Ward 221), <i>Rhizostoma pulmo</i> (Marci, 1778), \"Sea Jelly.\" |  |  | Photo: Jon Woodward"
Focus[1] = "blue-salor-by-the-wind.jpg | Sea Jelly | 525 | 356 | MCZ Blashka Glass Invertebrate Colln. (Ward 238), <i>Vella lata</i> Chamisso & Eysenhardt, 1821 \"By-the-Wind-Sailor.\" |  |  | Photo: Jon Woodward"
Focus[2] = "Green-sea-anemone.jpg | Green Sea Anemone | 525 | 394 | MCZ Blashka Glass Invertebrate Colln. (Ward 31), <i>Antholoba achates</i> (Drayton \"in\" Dana, 1846) \"Green Sea Anemone\" |  |  | Photo: Jon Woodward"
Focus[3] = "Jelly_3.jpg | Sea Jelly | 525 | 403 | MCZ Blashka Glass Invertebrate Colln. (Ward 235), <i>Pelagia noctiluca</i> (Forskal, 1775), \"Sea Jelly.\" |  |  | Photo: Jon Woodward"
Focus[4] = "EOS_0174.jpg | Diploria sp. | 525 | 350 | <i>Diploria sp.</i>, Brain coral, MCZ 79126. |  |  | Photo: Bill Crow"
Focus[5] = "EOS_1234.jpg | Euplectella aspergillum (Owen) | 525 | 349 | <i>Euplectella aspergillum </i>(Owen), Silica Sponge, MCZ 6178.  |  |  | Photo: Bill Crow"

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

}