// bigPics.js - enlargments popup window generator
// DO NOT EDIT THESE varS. CHANGE/ADD IMAGES AND CAPTIONS IN THE NEXT SECTION
var images = [];
var imageFilenames = [];
var captions = [];
var picsFolder = "img";
var enLargedPicsFolder = "enLarged";
var enXLargedPicsFolder = "enXLarged";

// --------------------------  DO NOT EDIT ABOVE THIS LINE  --------------------------
//                      SET YOUR IMAGE FILENAMES AND CAPTIONS BELOW                   
// Follow the pattern of the following lines:
// imageFilenames[imageFilenames.length] =  "your_filename_here.jpg"; 
// captions[captions.length] = "your caption text"; 
// NOTE that there is enough room for one <br> per caption (2 lines).
// NOTE <br> is the symbol for a line break; use in long captions that won't fit on one line.
// NOTE one SPACE is made with the combination of letters and punctutation EXACTLY as follows: &nbsp;
// NOTE single spaces do not need special symbol, but to make extra spaces, must use &nbsp;
// NOTE should be 3 spaces between title & location; 4 spaces between location & date.

// --------------------------  DO NOT EDIT ABOVE THIS LINE  --------------------------

//imageFilenames[imageFilenames.length] = "face2.jpg";
//captions[captions.length] = "post swim. &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "face2.jpg";
captions[captions.length] = "post swim. &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "home35.jpg";
captions[captions.length] = "new orleans, louisiana &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "home36.jpg";
captions[captions.length] = "new orleans, louisiana &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "home42.jpg";
captions[captions.length] = "williston, florida &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "misc1.jpg";
captions[captions.length] = "west village. &nbsp; new york city &nbsp;&nbsp; 2008";

imageFilenames[imageFilenames.length] = "upstate1.jpg";
captions[captions.length] = "camp. &nbsp; upstate new york &nbsp;&nbsp; 2008";

imageFilenames[imageFilenames.length] = "home37.jpg";
captions[captions.length] = "new orleans, louisiana &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "home40.jpg";
captions[captions.length] = "williston, florida &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "tucson11.jpg";
captions[captions.length] = "nathan's summer portrait. &nbsp; tucson, arizona &nbsp;&nbsp; 2005";

imageFilenames[imageFilenames.length] = "home41.jpg";
captions[captions.length] = "williston, florida &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "face1.jpg";
captions[captions.length] = "tucson, arizona &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "colorado1.jpg";
captions[captions.length] = "herm and hercules. &nbsp; colorado springs, colorado &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "tucson12.jpg";
captions[captions.length] = "kellan in curls. &nbsp;&nbsp; 2005";

imageFilenames[imageFilenames.length] = "tucson7.jpg";
captions[captions.length] = "cousins. &nbsp; tucson, arizona &nbsp;&nbsp; 2004";

imageFilenames[imageFilenames.length] = "alma14.jpg";
captions[captions.length] = "bare feet and water balloons. &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "home34.jpg";
captions[captions.length] = "new orleans, louisiana &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "alma12.jpg";
captions[captions.length] = "senior citizens eating ice cream in the park. &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "alma19.jpg";
captions[captions.length] = "shooting. &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "newjersey1.jpg";
captions[captions.length] = "row of school buses. &nbsp; wayne, new jersey &nbsp;&nbsp; 2005 ";

imageFilenames[imageFilenames.length] = "tucson14.jpg";
captions[captions.length] = "madi, maisy, grace and freddy's new monster truck on easter sunday.<br>tucson, arizona &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "tucson6.jpg";
captions[captions.length] = "kellan. &nbsp; tucson, arizona &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "tucson13.jpg";
captions[captions.length] = "brad and ave quail hunting. &nbsp; black hills, arizona &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "alma18.jpg";
captions[captions.length] = "swatting flies. &nbsp; rural kansas &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "tucson5.jpg";
captions[captions.length] = "stacy and kaleb. &nbsp;&nbsp; 2005";

imageFilenames[imageFilenames.length] = "alma2.jpg";
captions[captions.length] = "tackling dummies.<br>nebraska &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "alma15.jpg";
captions[captions.length] = "4th of july hotdog roasting. &nbsp;&nbsp; 2006";



// -----------------  DO NOT EDIT BELOW THIS LINE  --------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// **************************************************************************
// **************************************************************************
// ************* SET YOUR IMAGE FILENAMES AND CAPTIONS ABOVE ****************
// **************************************************************************
// **************************************************************************
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// -----------------  DO NOT EDIT BELOW THIS LINE  --------------------------
//
//
//
//
//
//
function makeTDs() {
	for(var g = 0 ; g < imageFilenames.length ; g++) { 
		images[g] = new Image();
		images[g].src = picsFolder + "/" + imageFilenames[g];
		var gTD = "<td><div class=\"glass\" onclick=\"enlg(" + g + ")\"></div><img id=\"i" + g + "\" src=\"" + images[g].src + "\" class=\"bdr\" alt=\"\" /></td>";
		document.writeln(gTD);
	}
}


var bWin;
var bImgSrc = [];
var imgNum;
var imgName;
var imgPathStr;

function enlg(x) {
	imgNum = x;
	if (screen.height > 900) {
		imgPathStr = picsFolder + "/" + enXLargedPicsFolder;
		bImgSrc[x] = images[x].src.replace(/img\//, imgPathStr);
		bWin = window.open("enlarge.html", "nlgWin", "width=980,height=910,status=no,location=no,resizable=yes", false); 
	}
	else {
		imgPathStr = picsFolder + "/" + enLargedPicsFolder;
		bImgSrc[x] = images[x].src.replace(/img\//, imgPathStr);
		bWin = window.open("enlarge.html", "nlgWin", "width=980,height=660,status=no,location=no,resizable=yes", false); 
	}
	bWin.focus();
}
