//  For Gallery Context definition:
    // Paths for images, thumbs, text are the relative starting path; each photo or text pagee is relative to the root path
    // All files for a given gallery must be in the same folder
	// The 'name' property is used as the link label

// Gallery data:
   // Gallery:  (name, aboutPage, imagePath, th,umbPath, textPath, photos)
   // aboutPage:  (name, title, path)
   // photos:     (name, title, aboutPage thumbPath, imagePath, captionPath)

// To Do:
// initial display - specific or random picture or text
// for pictures - add a caption
// for menu, use a style and use menu_title; follow after menu

var galleriesContext = 
{
	current     : 'Memory',   // first gallery to present
	gallery_menu_title:  'Image Collections', 
	imagesPath  : 'galleries/',
	thumbsPath  : 'galleries/',
	captionPath : 'galleries/',	
	galleries   :
[
	{//'Memory'
		name : 'Memory',
		aboutPage : 
		{
			name : 'aboutMemory', path: 'memory/AboutMemory.html', title : "About 'Memory'"
		},
		// default paths not used per gallery - images may be shown in more than one gallery
		//imagePath   : 'memory/',
		//thumbPath   : 'memory/',
		//captionPath : 'memory/',
	    current     : 'StringLightsBright',
		photos :
		[
			{ name : "StringLightsBright", 
				thumbPath :'memory/thumStringLightsBright.jpg',
				imagePath : 'memory/StringLightsBright.jpg', 
				captionPath : 'memory/StringLightsBrightCaption.html', 
				title : 'Drink Umbrellas and String Lights'},
			{ name : "ChildsWorldView", 
				thumbPath :'memory/thumchildsWorldView.jpg',
				imagePath : 'memory/childsWorldView.jpg', 
				//captionPath : 'memory/childsWorldViewCaption.html',
				title : 'Child\\\'s Worldview'},
			{ name : "Beginning",
				thumbPath :'memory/thumBeginning.jpg', 
				imagePath : 'memory/Beginning.jpg', 
				//captionPath : 'memory/BeginningCaption.html', 
				title : 'Beginning'},
			{ name : "End", thumbPath :'memory/thumEnd.jpg', imagePath : 'memory/End.jpg', title : 'End'},		
			{ name : "Footprints", thumbPath :'memory/thumfootprints.jpg', imagePath : 'memory/footprints.jpg', title : 'Footprints'},
			{ name : "Towel", thumbPath :'memory/thumTowel.jpg', imagePath : 'memory/Towel.jpg', title : 'Towel'},
			{ name : "Weightless", thumbPath :'memory/thumWeightless.jpg', imagePath : 'memory/Weightless.jpg', title : 'Weightless'},
			{ name : "VicsGone", thumbPath :'memory/thumvicchesnuttBig7.jpg', imagePath : 'memory/vicchesnuttBig7_500.jpg',
				      captionPath : "memory/vicchesnuttCaption.html", title : 'Vic\\\'s Gone'},
			{ name : "Memento", thumbPath :'memory/thummemento.jpg', imagePath : 'memory/memento.jpg', title : 'Memento'}	
		]
	},  //'Memory'	
	{//'Roadway'
		name : 'Roadway',
		aboutPage : 
		{
			name : 'aboutRoadway', path: 'roadway/AboutRoadway.html', title : "About 'Roadway'"
		},
		imagePath   : 'roadway/',
		thumbPath   : 'roadway/',
		captionPath : 'roadway/',
	    current     : '128North',
		photos :
		[
			{ name : "arcDeTriomphe", thumbPath :'roadway/thumArcDeTriomphe.jpg',	 imagePath : 'roadway/ArcDeTriomphe.jpg', title : 'Arc De Triomphe'},
			{ name : "95at177", thumbPath :'roadway//thum95at177.jpg',	 imagePath : 'roadway/95at177.jpg', title : 'Rt 95 at Rt 177'},	
			{ name : "128North", thumbPath :'roadway/thum128North.jpg',	 imagePath : 'roadway/128North.jpg', title : 'Rt 128 North'},
			{ name : "bostonSkyline", thumbPath :'roadway/thumBostonSkyline.jpg',	 imagePath : 'roadway/BostonSkyline.jpg', title : 'Boston Skyline'},
			{ name : "bridgeport95So", thumbPath :'roadway/thumBridgeport95south.jpg',	 imagePath : 'roadway/Bridgeport95south.jpg', title : 'Bridgeport Rt 95 So'},
			{ name : "hurryHome", thumbPath :'roadway/thumHurryHome.jpg',	 imagePath : 'roadway/HurryHome.jpg', title : 'Hurry Home'},
			{ name : "ramps", thumbPath :'roadway/thumRamps.jpg',	 imagePath : 'roadway/Ramps.jpg', title : 'Ramps'},
			{ name : "redTruck", thumbPath :'roadway/thumRedTruck.jpg',	 imagePath : 'roadway/RedTruck.jpg', title : 'Red Truck'},
			{ name : "tappanzeeBridge", thumbPath :'roadway/thumTappanzeeBridge.jpg',	 imagePath : 'roadway/TappanzeeBridge.jpg', title : 'Tappanzee Bridge'},
			{ name : "throgsNeck2", thumbPath :'roadway/thumThrogsNeck2.jpg',	 imagePath : 'roadway/ThrogsNeck2.jpg', title : 'Throgs Neck Bridge'},
			{ name : "throgsNeck2", thumbPath :'roadway/thumVerrazanoLowerRoad.jpg',	 imagePath : 'roadway/VerrazanoLowerRoad.jpg', title : 'Verrazanno Lower Road'}
		]
	},  //'Roadway'

{//'Close Up World'
		name : 'Ready for My Close Up',
		aboutPage : 
		{
			name : 'aboutCloseUp', path: 'closeUp/AboutCloseUp.html', title : "About 'Ready for My Close Up'"
		},
		imagePath   : 'closeUp/',
		thumbPath   : 'closeUp/',
		captionPath : 'closeUp/',
	 	current     : 'Field',    // TODO: first or '_RANDOM_' photo to present or '_ABOUT_' for the 'about' page
		photos :
		[
			{ name : "canna", thumbPath :'closeUp/thumCanna.jpg',	 imagePath : 'closeUp/Canna.jpg', title : 'Canna',
			  aboutPage: 'Canna.html'},
			{ name : "field", thumbPath :'closeUp/thumField.jpg',	 imagePath : 'closeUp/Field.jpg', title : 'Field'},
			{ name : "novemberLeaves3", thumbPath :'closeUp/thumNovemberLeaves3.jpg',	 imagePath : 'closeUp/NovemberLeaves3.jpg', title : 'November Leaves #3'},
			{ name : "novemberLeaves5", thumbPath :'closeUp/thumNovemberLeaves5.jpg',	 imagePath : 'closeUp/NovemberLeaves5.jpg', title : 'November Leaves #5'},
			{ name : "pierEdge", thumbPath :'closeUp/thumPierEdge.jpg',	 imagePath : 'closeUp/PierEdge.jpg', title : 'Pier Edge, Lake Ontario'},
			{ name : "PineCones", thumbPath :'closeUp/thumPineCones.jpg',	 imagePath : 'closeUp/PineCones.jpg', title : 'Pine Cones'},
			{ name : "seaweed1", thumbPath :'closeUp/thumseaweed1.jpg',	 imagePath : 'closeUp/Seaweed1.jpg', title : 'Seaweed'},
			{ name : "shell", thumbPath :'closeUp/thumShell.jpg',	 imagePath : 'closeUp/Shell.jpg', title : 'Shell'},
			{ name : "thicket", thumbPath :'closeUp/thumthicket.jpg',	 imagePath : 'closeUp/Thicket.jpg', title : 'Thicket'}
		]
	}, //'Close Up World'

{//'Posters and Greeting Cards'
		name : 'Posters and Greeting Cards',
		aboutPage : 
		{
			name : 'aboutPosters', path: 'posters/AboutPosters.html', title : "About Posters and Greeting Cards"
		},
		imagePath   : 'posters/',
		thumbPath   : 'posters/',
		captionPath : 'posters/',
	    current     : 'NewYearDove2009printbrighter3-500',
		photos :
		[
			{ name : "NewYearDove2009", thumbPath :'posters/thumNewYearDove2009printbrighter3.jpg', imagePath : 'posters/NewYearDove2009printbrighter3-500.jpg', title : 'Reach for Peace 2009'},
			{ name : "dove2007", thumbPath :'posters/thumdove2007-calt3.jpg', imagePath : 'posters/dove2007-calt3_500.jpg', title : 'Reach for Peace 2007'},
			{ name : "dove2006", thumbPath :'posters/thumdove2006_8Heavy.jpg', imagePath : 'posters/dove2006_8Heavy.jpg', title : 'Reach for Peace 2006'},
			{ name : "NewYearApples2009", thumbPath :'posters/thumNewYearApples2009NoText3.jpg', imagePath : 'posters/NewYearApples2009NoText3-500.jpg', title : 'New Year Apples'},
			{ name : "rosegreeting", thumbPath :'posters/thumroseannivcard-greetingVersion.jpg', imagePath : 'posters/roseannivcard-greetingVersion.jpg', title : 'Anniversary Roses'},
			{ name : "StringLightsBright", thumbPath :'memory/thumStringLightsBright.jpg', imagePath : 'memory/StringLightsBright.jpg', title : 'Drink Umbrellas and String Lights'},
			{ name : "candlesgreeting", thumbPath :'posters/thumcandlesgreeting.jpg', imagePath : 'posters/candlesgreeting.jpg', title : 'Solstice Candles'},
			{ name : "footprints", thumbPath :'posters/thumfootprints.jpg', imagePath : 'posters/footprints.jpg', title : 'Footprints in Sand'},
			{ name : "PierEdge", thumbPath :'posters/thumPierEdge.jpg', imagePath : 'posters/PierEdge.jpg', title : 'Pier Edge, Lake Ontario'},
			{ name : "PineCones", thumbPath :'posters/thumPineCones.jpg', imagePath : 'posters/PineCones.jpg', title : 'Pine Cones'}	
		]
	}  //'Posters and Greeting Cards'	
]
}

// Divs on current page and relative path to gallery directory
var galleriesDivId='galleries';
var thumbsDivId='thumbs';
var titleDivId='title';
var contentDivId='content';
var aboutDivId='about';
var imageDivId='image';
var captionDivId='caption';

// Div for preloaded inmages (not displayed)
var preloadId="preload";

// Customizations for blend functions
var doBlend=false;
var blendTime=500;

var doLoadInitialImage=true;   // load initial image or about page


