﻿function getfocus(){

Focus = new Array
Focus[0] = "Cycera-nudibranch.jpg | Cyerce nigricans | 525 | 313 | MCZ Blashka Glass Invertebrate Colln. (Ward 394), <i>Cyerce nigricans</i> (Pease, 1866), \"Nudibranch Sea Slug.\" |  |  | Photo: Jon Woodward"
Focus[1] = "dorid-nudibranch.jpg | Nudibranch Sea Slug | 525 | 300 | MCZ Blashka Glass Invertebrate Colln. (Ward 400), <i>Doriopsis nigra</i> Stimpson, 1855; \"Nudibranch Sea Slug.\" |  |  | Photo: Jon Woodward"
Focus[2] = "land-snail.jpg | Land Snail | 525 | 311 | MCZ Blashka Glass Invertebrate Colln. (Ward 525), <i>Helix pomatia</i> Linnaeus, 1758; \"Land Snail.\" |  |  | Photo: Jon Woodward"
Focus[3] = "Octopus.jpg | Octopus | 525 | 285 | MCZ Blashka Glass Invertebrate Colln. (Ward 551), <i>Eledone cirrhosa</i> (Lamarck, 1798), \"Octopus.\" |  |  | Photo: Jon Woodward"
Focus[4] = "EOS_0163.jpg | Voluta ebrea | 525 | 509 | <i>Voluta ebrea</i>, Gastropod shell, MCZ 254726. |  |  | 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" >');

}