var galleryName = new Array;
var galleryURL = new Array;
var t=0;

/* BEGIN GALLERY LISTING */

/* make sure to repeat all 3 lines together, or the list will be out of synch! */
galleryName[t] 	= "Al HabarBQ 04";
galleryURL[t]	= "/images/alhabarbq04/gallery.html";
t++;

galleryName[t] 	= "April 04";
galleryURL[t]	= "http://www.aeternalisllc.com/images/April04/April04.htm";
t++;

/* END GALLERY LISTING */

function listGalleries_simple()
{
	for (var i=0;i<galleryName.length;i++)
	{
		document.write("<A HREF='" + galleryURL[i] + "'>" + galleryName[i] + "</a><BR>")
	}
}

function launch(newURL, newName, newFeatures) {
	var imgHolder=new Image;
	var H,W
	imgHolder.src=newURL;	
	W=imgHolder.width*1;
	H=imgHolder.height*1;
  	var remote = open("display_pic.html?img=" + newURL, newName, "height=" + H + ",width=" + W + "," + newFeatures);
  	if (remote.opener == null)
    		remote.opener = window;
  		return remote;
}  
  
  
function launchPic(PicName,Comment) {
  var remote = open("display_pic.asp?img=" + PicName + "&txt=" + Comment, "myRemote",                    "height=1,width=1,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,status=0,titlebar=0,toolbar=0,scrollbars=1,z-lock=0",
                    PicName);
  	if (remote.opener == null)
    		remote.opener = window;
  		return remote;
  
/*
myRemote = launch(PicName,"myRemote",                    "alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,status=0,titlebar=0,toolbar=0,scrollbars=1,z-lock=0",
                    PicName);
*/
}

function DisplayThumbs()
{
	document.write("<TABLE BORDER=0><TR>");
	var column=1;
	for (var i=0;i<imgList.length;i++)
		{
			ThumbURL=folderName + "/" + imgList[i].replace(/.jpg/, "-thumb.jpg");
			ThumbURL=ThumbURL.replace(/.gif/, "-thumb.gif");
			
			document.write("<TD VALIGN=TOP><A HREF='javascript://' onClick=launchPic('images/" + folderName + "/" + imgList[i] + "','" + txtList[i] + "')>");
			document.write("<img src='images/" + ThumbURL + "'  alt='' WIDTH=75 border='0'>");
			document.write("</A></TD>");
			column++;
			if (column == 5)
			{
			document.write("</TR><TR>");
			column=1;
			}
		}
	document.write("</tr></table>");
}