﻿function getfocus(){

Focus = new Array
Focus[0] = "DSCN0436.jpg | Colochirus quadrangularis | 525 | 394 | MCZ Blaschka Glass Invertebrate Collection, Ward 266. <i>Colochirus quadrangularis</i>, Sea Cucumber. |  |  | Photo: Jon Woodward"
Focus[1] = "Plate_B.jpg | Book plate | 324 | 420 | 1. <i>Phormosoma hispidum</i>, A. Agassiz.; 2. <i>Pourtalesia tanneri</i>, A. Agassiz.; 3. <i>Cystechinus loveni</i>, A. Agassiz. Sea Urchins. The Panamic Deep Sea Echini, Plate B., Alexander Agassiz, 1904. |  |  | "
Focus[2] = "Plate_Asil.jpg | Phormosoma hispidum | 525 | 400 | <i>Phormosa hispidum</i> A. Agassiz, Sea Urchin. The Panamic Deep Sea Echini, Plate A., Alexander Agassiz, 1904. |  |  | "
Focus[3] = "Ward_272_1.jpg | Colochirus quadrangularis | 525 | 313 | MCZ Blaschka Glass Invertebrate Collection, Ward 272. <i>Colochirus quadrangularis</i>, Sea Cucumber. |  |  | Photo: Jon Woodward"
Focus[4] = "Ward_275_2.jpg | Holothuria tubulosa | 525 | 323 | MCZ Blaschka Glass Invertebrate Collection, Ward 275. <i>Holothuria tubulosa</i>, anatomy of Sea Cucumber. |  |  | Photo: Jon Woodward"
Focus[5] = "Ward_617_4.jpg | Mogula producta | 421 | 420 | MCZ Blaschka Glass Invertebrate Collection, Ward 617. <i>Mogula producta</i>, Tunicate. |  |  | Photo: Jon Woodward"
Focus[6] = "CIONA-INTESTIONALIS-300.jpg | Ciona intestinalis | 469 | 440 | <i>Ciona intestinalis</i>, Sea Squirt.  |  |  | Photo: Woollacott Lab"
Focus[7] = "Ward_619_4.jpg | Phallusia callosa | 510 | 420 | MCZ Blaschka Glass Invertebrate Collection, Ward 619. <i>Phallusia callosa</i>, Tunicate. |  |  | Photo: Jon Woodward"
Focus[8] = "BUGULA-MINIMA-(HAWAII)-300.jpg | Bugula minima | 472 | 440 | <i>Bugula minima</i>, Bryozoan.  |  |  | Photo: Woollacott Lab"
Focus[9] = "diazoma_violacea_small.jpg | Diazoma violacea | 450 | 471 | MCZ Blaschka Glass Invertebrate Collection. Digital x-ray of <i>Diazoma violacea</i>, Tunicate. |  |  | Photo: Jon Woodward"


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

}