// 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] = "scape4.jpg";
//captions[captions.length] = "new orleans, louisiana &nbsp;&nbsp; 2009";

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

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

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

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

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

imageFilenames[imageFilenames.length] = "scape1.jpg";
captions[captions.length] = "south island, new zealand &nbsp;&nbsp; 2008";

imageFilenames[imageFilenames.length] = "scape3.jpg";
captions[captions.length] = "wanaka, new zealand &nbsp;&nbsp; 2008";

imageFilenames[imageFilenames.length] = "newz1.jpg";
captions[captions.length] = "kare kare beach. &nbsp; auckland, new zealand &nbsp;&nbsp; 2008";

imageFilenames[imageFilenames.length] = "surf5.jpg";
captions[captions.length] = "auckland, new zealand &nbsp;&nbsp; 2008";

imageFilenames[imageFilenames.length] = "surf3.jpg";
captions[captions.length] = "kare kare beach. &nbsp; auckland, new zealand &nbsp;&nbsp; 2008";

imageFilenames[imageFilenames.length] = "vietnam2_2.jpg";
captions[captions.length] = "vietnam &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "vietnam7_2.jpg";
captions[captions.length] = "mekong delta, vietnam. &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "vietnam1_2.jpg";
captions[captions.length] = "mr ba. &nbsp; mekong delta, vietnam &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "IMG_2213.jpg";
captions[captions.length] = "ho chi minh city, vietnam &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "vietnam3.jpg";
captions[captions.length] = "poker players. &nbsp; vietnam &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "vietnam4_2_2.jpg";
captions[captions.length] = "croaking frogs for stir fry.<br>night market, ho chi minh city, vietnam &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "cambodia5_2.jpg";
captions[captions.length] = "siem reap, cambodia &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "cambodia1_2.jpg";
captions[captions.length] = "an act of kindness before death.<br>pigs in the relaxing position on the way to slaughter house. &nbsp; cambodia &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "IMG_2269.jpg";
captions[captions.length] = "cambodia &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "cambodia3_2.jpg";
captions[captions.length] = "angkor wat. &nbsp; cambodia &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "cambodia2_2.jpg";
captions[captions.length] = "siem reap, cambodia &nbsp;&nbsp; 2006";

imageFilenames[imageFilenames.length] = "hawaii3.jpg";
captions[captions.length] = "oahu, hawaii &nbsp;&nbsp; 2004";

imageFilenames[imageFilenames.length] = "hawaii01_2.jpg";
captions[captions.length] = "oahu, hawaii &nbsp;&nbsp; 2004 ";

imageFilenames[imageFilenames.length] = "hawaii6.jpg";
captions[captions.length] = "oahu, hawaii &nbsp;&nbsp; 2004";

imageFilenames[imageFilenames.length] = "hawaii8.jpg";
captions[captions.length] = "oahu, hawaii &nbsp;&nbsp; 2004";

imageFilenames[imageFilenames.length] = "hawaii02_2.jpg";
captions[captions.length] = "honolulu, hawaii &nbsp;&nbsp; 2004";

imageFilenames[imageFilenames.length] = "tulum1.jpg";
captions[captions.length] = "tulum, mexico &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "tulum2.jpg";
captions[captions.length] = "tulum, mexico &nbsp;&nbsp; 2007";

imageFilenames[imageFilenames.length] = "zona3_2.jpg";
captions[captions.length] = "arizona &nbsp;&nbsp; 2005";

imageFilenames[imageFilenames.length] = "zona1_2.jpg";
captions[captions.length] = "lake powell, utah &nbsp;&nbsp; 2005";

imageFilenames[imageFilenames.length] = "zona2_2.jpg";
captions[captions.length] = "lake powell, utah &nbsp;&nbsp; 2005";

imageFilenames[imageFilenames.length] = "arizona3.jpg";
captions[captions.length] = "lake powell, utah &nbsp;&nbsp; 2005";

imageFilenames[imageFilenames.length] = "arizona4.jpg";
captions[captions.length] = "arizona &nbsp;&nbsp; 2005";



// -----------------  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=no", 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=no", false); 
	}
	bWin.focus();
}
