// Slide Show
// All imagaes by Marco Wannemacher
// Copyright by Photographer. All Rights Reserved 2005.
// last modified 02/22/2005

 browser_name = navigator.appName;
 browser_version = parseFloat(navigator.appVersion); 

 if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; }
 else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 4.0) { roll = 'true'; }
 else { roll = 'false'; }

// Preload MouseOver Images & Mouseover Script
 function msover(img,ref) { if (roll == 'true') { document.images[img].src = ref; } }
 function msout(img,ref)  { if (roll == 'true') { document.images[img].src = ref; } }

	// determine browser
   CR_DOM = (document.getElementById) ? true : false;
   CR_NS4 = (document.layers) ? true : false;
   CR_IE = (document.all) ? true : false;
   CR_IE4 = CR_IE && !CR_DOM;
   CR_Mac = (navigator.appVersion.indexOf("Mac") != -1);
   CR_IE4M = CR_IE4 && CR_Mac;
   CR_IsFader = (CR_IE && !CR_IE4M);

var t;
var maxphotos=32;
var photonum=1;
var VDimage;
var VDtran='/features/dive/images/blueblack.jpg';
var imgurl='/images/features/diving/waki/wakatobi';
var imgext='.jpg';
var caption;
var title;

// set captions for photos
var captions= new Array(maxphotos) 
captions[1]="The false clown anemonefish (<I>Amphiprion ocellaris</I>) is found singly, in pairs, or small groups. They stay close to their anemone, rarely moving more than 30 cm (12 inches) from their host.";
captions[2]="Nudibranchs can be hard to spot because of their small size.  But this individual's blue coloration and nodules, stand out against the bright orange background. Phyllidia sp. (Phyllidiidae)";
captions[3]="Isopods attach to fish and feed on their body fluids and tissue. Feeding on another fish's slime is known as mucophagy and is considered to be a form of parasitism.";
captions[4]="This largemouth triplefin (<I>Ucla xenogrammus</I>) is a solitary species that is usually seen perching on coral heads and sponges. ";
captions[5]="The anemone crab (<I>Dardanus pedunculatus</I>) uses a discarded mollusk shell covered with several stinging anemones as a way of disguising its house and for added protection from predators.";
captions[6]="The prickly, red hermit crab (<I>Dardanus megistos</I>) can use its strong pincers to pull other crabs out of their shells when it wants to move into a bigger home.";
captions[7]=" The bubble coral shrimp (<I>Vir sp.</I>) lives on and between bubble coral's (<I>Plerogyra sinuosa</I>) large polyps. It apparently feeds on detritus and plankton that adhere to the polyp.";
captions[8]="The beautiful patterns and colors of opisthobranchs make them popular subjects for photographers.  But their frequently toxic or distasteful flesh dissuades potential predictors from making them a meal. (<I>Chromodoris coi</I>)";
captions[9]="Only a keen eye can detect this tiny (often less than 2 cm) pygmy seahorse (<I>Hippocampus bargibanti</I>) on the branches of this sea fan. (Muricella sp.)";
captions[10]="Hawksbill turtles (<I>Eretmochelys imbricate</I>) cruise Wakatobi's house reef during the day looking for juicy sponges they can devour.";
captions[11]="The tasseled scorpionfish (<I>Scorpaenopsis oxycephala</I>) lives on both hard and soft substrates.  It is able to change its coloration so it blends perfectly with the surface that it is resting on. This is useful as a defensive and offensive mechanism.";
captions[12]="This Serena's Notodoris nudibranch (<I>Notodoris serenae</I>) might have been easily missed but it's bright yellow tentacles (rhinophores) on top of its head gave it away.";
captions[13]="Banded sea snakes (<I>Laticauda colubrine</I>) have nostril valves that prevent air entering the lung while underwater. Nostril valves open inwards and are held shut from behind by erectile tissue engorged with blood.";
captions[14]="This flatworms is identifiable from similar colored nudibranchs because it does not have exposed gills or tentacles (rhinophores). The colors of this particular flatworm appear to mimic that of a sea slug.";
captions[15]="Squid are some of the fastest invertebrates on earth speeding through the water at up to 40 km/h (24 mph). Some squid have been reported to jump 3m (about 12 ft) out of the water and glide like a flying fish as they escape predators.";
captions[16]="The genus name of seahorses is Hippocampus.  It actually translates as horse (hippus) sea monster (campus).  But this tiny, pygmy seahorse (Hippocampus bargibanti) is more comical looking than scary!";
captions[17]="The many-host goby (<I>Pleurosicya mossambica</I>) poses for a quick photo on a bubble coral.";
captions[18]="The ribbon eel (Rhinomuraena quaesita) is a protandric hermaphrodite; that is, all females are derived from males that have changed sex.";
captions[19]="Find me if you can!  Denise's pygmy seahorse (<I>Hippocampus denise</I>) is so well-camouflaged that a magnifying glass and movement may be the only clues to its location on  this gorgonian (<I>Subegorgia mollis</I>).";
captions[20]="A <I>Chromodoris elizabethina</I> nudibranch slowly inches its way toward the camera lens giving us an incredible view of it's rhinophores.";
captions[21]="Blacktip grouper (<I>Epinephelus fasciatus</I>) can also engage in instant color change to better blend with its ambush site.";
captions[22]="A <I>Reticulidia fungia</I> nudibranch inches its way across the reef in search of food or possibly a mate.";
captions[23]="The Oshima's anemone crab (<I>Neopetrolisthes ohshimai</I>) makes it's home among the stinging tentacles of its host anemone.";
captions[24]="Bobtail squid (Euprymna sp.), which can reach a maximum length of around 3.5 cm, are easily overlooked by most divers. They can quickly bury themselves to avoid detection by predators.";
captions[25]="The diabola scorpionfish (<I>Scorpaenopsis diabolus</I>) can inflict a venomous sting, although unlike its cousin the reef stonefish (<I>Synanceia verrucosa</I>), it has not been reported to cause any  human fatalities.";
captions[26]="This unidentified sand-dwelling octopus was found touring Wakatobi's seagrass beds on a night dive.";
captions[27]="A close-up shot of the broadclub cuttlefish (Sepia latimanus)eye creates an interesting graphic design.";
captions[28]="Juvenile bristle-tailed filefish (<I>Acreichthys tomentosus</I>) is often found in sea grass beds like the one at Wakatobi's frontdoor.";
captions[29]="The coloration of this pygmy sea horse blends in perfectly with the environment making it easy for divers to overlook.";
captions[30]="The ornate ghost pipefish (<I>Solenostomus paradoxus</I>) usually is found hanging vertically in crinoids or branches of gorgonians and black coral.  Adults of this species form pairs, but occasionally they may form temporary groups.";
captions[31]="Papuan scorpionfish (<I>Scorpaenopsis papuensis</I>) is recognized in part by its ornate head adornment.";
captions[32]="The nodules on the <I>Phyllidiella pustulosa</I> range in color from white, beige, pale pinks, pale greens and pale blues.  LAST IMAGE";


	function next() {
				photonum=photonum+1;
				if (photonum > maxphotos ) {
					photonum=maxphotos;
					}
				VDimage=imgurl+photonum+imgext;
				setlables();
				if(CR_IsFader) {
						fader(VDimage);
						}
				else {
					 delay();
					 }
			}
	function previous() {
					photonum=photonum-1;
					if (photonum <= 1 ){
						photonum=1
						}
					VDimage=imgurl+photonum+imgext;
					setlables();
					if(CR_IsFader) {
						fader(VDimage);
						}
					else {
						document.images['photo'].src=VDimage;
						delay();
					 }
			}
		
	function delay(){
		t = setTimeout("document.images['photo'].src=VDimage;" ,2000);
		}
		
	// Used for IE Only		
	function fader(which){
		document.all.photo.filters.blendTrans.Apply();
		document.images['photo'].src= which;
		document.all.photo.filters.blendTrans.Play();
		document.all.title1.innerHTML = title
		document.all.caption1.innerHTML = caption
	}
	
		function setlables() {
		title="<font color=#DCEEFC>slide "+ photonum + " of " + maxphotos + "</font>";
		caption="<font color=#DCEEFC><b>" + captions[photonum] + "</b></font>";
		}
	
// end of script
