// 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] = "home26.jpg";
//captions[captions.length] = "cannon beach, oregon &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "home26.jpg";
captions[captions.length] = "cannon beach, oregon &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "home1.jpg";
captions[captions.length] = "san diego, california &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "home28.jpg";
captions[captions.length] = "cannon beach, oregon &nbsp;&nbsp; 2009";

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

imageFilenames[imageFilenames.length] = "home19.jpg";
captions[captions.length] = "cannon beach, oregon &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "home21.jpg";
captions[captions.length] = "cannon beach, oregon &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "home10.jpg";
captions[captions.length] = "houston, texas &nbsp;&nbsp; 2009";

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

imageFilenames[imageFilenames.length] = "home23.jpg";
captions[captions.length] = "portland, oregon &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "san3.jpg";
captions[captions.length] = "privacy. &nbsp; la jolla, california &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "san5.jpg";
captions[captions.length] = "san diego, california &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "san1.jpg";
captions[captions.length] = "san diego, california &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "san2.jpg";
captions[captions.length] = "hedged. &nbsp; san diego, california &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "san4.jpg";
captions[captions.length] = "san diego, california &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "san9.jpg";
captions[captions.length] = "beware of the dog. &nbsp; la jolla, california &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "san12.jpg";
captions[captions.length] = "san diego, california &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "sry1.jpg";
captions[captions.length] = "bridal shop. &nbsp; syracuse, new york &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "newport1.jpg";
captions[captions.length] = "newport, rhode island &nbsp;&nbsp; 2005";

imageFilenames[imageFilenames.length] = "alma6.jpg";
captions[captions.length] = "lutheran church. &nbsp; alma, nebraska &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "hackinsack11.jpg";
captions[captions.length] = "hackensack, new jersey &nbsp;&nbsp; 2008";

imageFilenames[imageFilenames.length] = "alma.jpg";
captions[captions.length] = "alma, nebraska &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "tucson10.jpg";
captions[captions.length] = "track homes. &nbsp; tucson, arizona &nbsp;&nbsp; 2005";

imageFilenames[imageFilenames.length] = "home6.jpg";
captions[captions.length] = "phoenix, arizona &nbsp;&nbsp; 2009";

imageFilenames[imageFilenames.length] = "alma9.jpg";
captions[captions.length] = "grandma's kitchen. &nbsp;&nbsp; 2006";

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

imageFilenames[imageFilenames.length] = "alma5.jpg";
captions[captions.length] = "ford truck in flood lights. &nbsp; alma, nebraska &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "tucson3.jpg";
captions[captions.length] = "tucson, arizona &nbsp;&nbsp; 2005";

imageFilenames[imageFilenames.length] = "tucson01.jpg";
captions[captions.length] = "tucson trailer. &nbsp; tucson, arizona &nbsp;&nbsp; 2008";

imageFilenames[imageFilenames.length] = "home12.jpg";
captions[captions.length] = "downtown. &nbsp; alma,nebraska &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "alma7.jpg";
captions[captions.length] = "claw foot bathtub. &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "home11.jpg";
captions[captions.length] = "nebraska &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "alma3.jpg";
captions[captions.length] = "grandma's house. &nbsp; alma, nebraska &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "tucson2.jpg";
captions[captions.length] = "no one's home. &nbsp; tucson, arizona &nbsp;&nbsp; 2005";

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



// -----------------  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++) { // g was = 1
		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=no", false); // was 980W x 910H
	}
	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=no", false); // was 720W x 660H
	}
	bWin.focus();
}
