//************************************************************************************************* 
// Design           	: FvdM Design Studio's 2006-2008
// Initial file date	: 31 August, 2006
// Function(s)			: Variable definition of Photo array
//						  Photo array functions
// Change history		:	Date		By		Revision	Description
//							31-08-2006	FvdM	1.0			Initial version for Southern Africa
//															website
//							04-10-2006	FvdM	1.1			Global routine added which will set the default
//															dimensions of a photo in an array. These
//															dimensions are needed for scaling the photo
//															in the viewer.
//															The implemented solution is done because
//															reading the 'width' and 'height' properties
//															of an image is not reliable (different values;
//															sometimes zero, which leads to an 'invisible'
//															photo.).
//*************************************************************************************************


//***********************************************************************************************//
//  IT IS IMPORTANT THAT ALL PHOTO'S HAVE THE SAME WIDTH (var PWidth) AND HEIGHT (var PHeight)   //
//              SETTINGS, FOR A CORRECT FUNCTIONING OF THE SCALING ROUTINE!!                     //
//***********************************************************************************************//

//Initialisation of variables
F					=	"Frank v.d. Meerendonk";
I					=	"Ineke Henderson";
FI					=	"Identify Photographer";

H					= 	"Hor";
V					=	"Ver";
PWidth				=	800;									// Based on horizontal photo.
PHeight				=	591;									// Based on horizontal photo.

FirstPhotoNumber	=	  1;
LastPhotoNumber		=	100;
Cntr				=	  0;

//Array declarations
var PhotoSource		= new Array(LastPhotoNumber + 1);
var Orientation		= new Array(LastPhotoNumber + 1);
var PhotoText		= new Array(LastPhotoNumber + 1);
var PhotoSubscript	= new Array(LastPhotoNumber + 1);
var Photographer	= new Array(LastPhotoNumber + 1);
var PhotoWidth		= new Array(LastPhotoNumber + 1);
var PhotoHeight		= new Array(LastPhotoNumber + 1);


//Array content definitions
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/Dancing-child.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Fort de France: Let the show begin";
PhotoSubscript[Cntr]= "Als een volleerde danseres";
Photographer[Cntr]	= I;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0017.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Fort de France: Het Tour de Martinique spectakel";
PhotoSubscript[Cntr]= "In achtervolging op de kopgroep";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/Orange-crab.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Pointe du Diamant: Verscholen tussen het struikgewas";
PhotoSubscript[Cntr]= "Oranje gekleurde krabben";
Photographer[Cntr]	= I;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0035.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Habitation Clement: Rum in overvloed";
PhotoSubscript[Cntr]= "Rum, rum en nog eens rum";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0039.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Habitation Clement: Erg mooie omgeving";
PhotoSubscript[Cntr]= "De tuin van 'Clement'";
Photographer[Cntr]	= F
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0047.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Habitation Clement: Afgedankte ovenbranders";
PhotoSubscript[Cntr]= "Buitenaards bezoek";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0049.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Habitation Clement: Palmbomen in alle soorten en maten";
PhotoSubscript[Cntr]= "Erg mooie palmbladeren";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0069.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Mont Pelée: Uitzicht tijdens de wandeling";
PhotoSubscript[Cntr]= "E&eacute;n van Mont Pel&eacute;e's vergezichten ";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0076.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Mont Pelée: De finish nadert, gelukkig";
PhotoSubscript[Cntr]= "Fel-oranje paradijsbloemen";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0083.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Ekokay guesthouse: Vanaf het balkon gezien";
PhotoSubscript[Cntr]= "Mooi oplichtende wolkenpartij";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0086.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Ekokay guesthouse: We konden er geen genoeg van krijgen";
PhotoSubscript[Cntr]= "Zonsondergang nabij de Mont Pel&eacute;e";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0111.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Fabrication du Rhum Depaz: Een aantrekkelijke plantage";
PhotoSubscript[Cntr]= "E&eacute;n van de vele radertjes";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/Garden.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Plantage Leyritz: De entree met vijver";
PhotoSubscript[Cntr]= "Palmboom in 'wording'";
Photographer[Cntr]	= I;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0113.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Plantage Leyritz: Een prachtige slaapplaats";
PhotoSubscript[Cntr]= "Schitterend en &eacute;&eacute;nzaam";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C1_P0119.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Plantage Leyritz: Ook hier weer een prachtige tuin";
PhotoSubscript[Cntr]= "Een roodgele Heliconia";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/Fat-frog.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Plantage Leyritz: En 's-nachts stikt het van de padden";
PhotoSubscript[Cntr]= "Wachtend op de verlossende zoen";
Photographer[Cntr]	= I;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0008.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Roseau: De catamaran van het 'Anchorage' hotel";
PhotoSubscript[Cntr]= "De 'Whale watch' boot";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0020.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Baai van Roseau: Het eerste hoogtepunt van deze dag";
PhotoSubscript[Cntr]= "E&eacute;n van de vele Tuimelaars";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0068.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Baai van Roseau: Walvissen in zicht";
PhotoSubscript[Cntr]= "Rug van een 'Sperm whale'";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0075.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Baai van Roseau: De potvis gaat op zoek naar voedsel";
PhotoSubscript[Cntr]= "Sierlijk en gracieus duikend";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/Indian-River-view.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Portsmouth: De 'Indian river' tocht";
PhotoSubscript[Cntr]= "Grillige mangrove-wortels";
Photographer[Cntr]	= I;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0084.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Indian river: Stop bij het jungle restaurant";
PhotoSubscript[Cntr]= "Jungle kids in the box";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/Indian-River-child.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Indian river: We werden goed in de gaten gehouden";
PhotoSubscript[Cntr]= "Tijd voor een snoepje";
Photographer[Cntr]	= I;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0090.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Roseau: Bezoekje aan de markt";
PhotoSubscript[Cntr]= "Een warme bedrijvigheid";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/Roseau-market.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Roseau: Handel vanaf de achterbak";
PhotoSubscript[Cntr]= "Mag het een kilootje meer zijn";
Photographer[Cntr]	= I;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/Dominican-gekko.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Onderweg naar Laudat: Een kleine Gekko";
PhotoSubscript[Cntr]= "Wie durft 'm te pakken";
Photographer[Cntr]	= I;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0095.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Onderweg naar Laudat: Dit is Dominica";
PhotoSubscript[Cntr]= "Wat een prachtig uitzicht";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0097.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Emerald Pool: Koud maar lekker";
PhotoSubscript[Cntr]= "Een verfrissende douche";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0105.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Laudat: De 60 meter hoge 'Middleham Falls'";
PhotoSubscript[Cntr]= "Dominica's hoogste waterval";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0121.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Le Jardin Botanique de Guadeloupe: Een prachtige botanische tuin";
PhotoSubscript[Cntr]= "Fel-roze waterlelies na een regenbuitje";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0128.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Le Jardin Botanique de Guadeloupe: Ook een vogelverblijf";
PhotoSubscript[Cntr]= "Kleurrijke papegaaitjes";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/Guadeloupe-parrot.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Le Jardin Botanique de Guadeloupe: Bijna handtam";
PhotoSubscript[Cntr]= "Even een ommetje maken";
Photographer[Cntr]	= I;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0133.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Le Jardin Botanique de Guadeloupe: Je bleef genieten";
PhotoSubscript[Cntr]= "Na regen komt zonneschijn";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0157.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Le Jardin Botanique de Guadeloupe: Paradijs voor kolibries";
PhotoSubscript[Cntr]= "Kolibri 'in action'";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C2_P0158.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Le Jardin Botanique de Guadeloupe: Orchideëen";
PhotoSubscript[Cntr]= "Rose gestreepte orchidee";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/Guadeloupe-parrot-couple.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Le Jardin Botanique de Guadeloupe: Ook grotere papegaaien";
PhotoSubscript[Cntr]= "Vrienden voor het leven";
Photographer[Cntr]	= I;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C3_P0003.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Le Jardin Botanique de Guadeloupe: Waterpartijen";
PhotoSubscript[Cntr]= "Paradijs voor Bromelia's en Varens";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C3_P0004.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Maison du Cacao: De basis van chocolade";
PhotoSubscript[Cntr]= "Een bijna volgroeide cacao-vrucht";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C3_P0005.jpg";
Orientation[Cntr]	= V;
PhotoText[Cntr]		= "Maison du Cacao: Rond het museum";
PhotoSubscript[Cntr]= "Een bloeiende palmboom";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C3_P0037.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Parc Zoologic de Nature: Idillisch dierenpark";
PhotoSubscript[Cntr]= "Guadeloupe's liefelijke wasbeertje";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C3_P0041.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Parc Zoologic de Nature: De grote kanjers";
PhotoSubscript[Cntr]= "Streng kijkende leguaan";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C3_P0042.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Parc Zoologic de Nature: Minibeestjes";
PhotoSubscript[Cntr]= "Even kijken wat er gebeurt";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C3_P0058.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Omgeving Les Saintes: Turend over de baai";
PhotoSubscript[Cntr]= "Pitoresk baaitje";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C3_P0062.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Omgeving Les Saintes: Het havengebied met prachtige jachten";
PhotoSubscript[Cntr]= "Zonsondergang in de haven van Les Saintes";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C3_P0103.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Pointe à Pitre: Aquarium nabij de haven";
PhotoSubscript[Cntr]= "Gevaarlijk ogende Morene";
Photographer[Cntr]	= F;
Cntr++;
PhotoSource[Cntr]	= "Photos/Large Photos/C3_P0108.jpg";
Orientation[Cntr]	= H;
PhotoText[Cntr]		= "Pointe de la Grande Vigie: Einde oefening";
PhotoSubscript[Cntr]= "Het meest noordelijke puntje van Guadeloupe";
Photographer[Cntr]	= F;
LastPhotoNumber		=  Cntr;

//Global function; will be executed immediately after script startup!!
//Function is used to set the default dimensions of the photos.
for (DimCntr = 1; DimCntr <= LastPhotoNumber; DimCntr++)	{
	if (Orientation[DimCntr] == H) {
	PhotoWidth[DimCntr] = PWidth;
	PhotoHeight[DimCntr]= PHeight;
		}
	else{
	PhotoWidth[DimCntr] = PHeight;
	PhotoHeight[DimCntr]= PWidth;
	}
}

