function Artwork(artist, title, media, size, date, id)
{
	this.title  = title;
	this.artist = artist;
	this.media  = media;
	this.size   = size;
	this.date   = date;
	this.id     = id;
	return this;
}


function PreviewRow()
{
	// Generate three random indices.
	var i = Math.floor(Math.random() * images.length);
	var j = Math.floor(Math.random() * images.length);
	var k = Math.floor(Math.random() * images.length);

	// Make sure the second random index doesn't match the first.
	while(j == i)
		j = Math.floor(1 + Math.random() * images.length);

	// Make sure the third random index doesn't match either of the
	// first two.
	while(k == i || k == j)
		k = Math.floor(1 + Math.random() * images.length);

	// Write the HTML content to the page.
	document.write("<a href='"  + images[i].id + ".html' title='Click to enlarge'>");
	document.write("<img src='" + images[i].id + ".preview.jpg' class='preview' alt='" + images[i].title + "'/>");
	document.write("</a>");
	document.write("<a href='"  + images[j].id + ".html' title='Click to enlarge'>");
	document.write("<img src='" + images[j].id + ".preview.jpg' class='preview' alt='" + images[j].title + "'/>");
	document.write("</a>");
	document.write("<a href='"  + images[k].id + ".html' title='Click to enlarge'>");
	document.write("<img src='" + images[k].id + ".preview.jpg' class='preview' alt='" + images[k].title + "'/>");
	document.write("</a>");
}


function PreviewColumn()
{
	// Generate three random indices.
	var i = Math.floor(Math.random() * images.length);
	var j = Math.floor(Math.random() * images.length);
	var k = Math.floor(Math.random() * images.length);

	// Make sure the second random index doesn't match the first.
	while(j == i)
		j = Math.floor(1 + Math.random() * images.length);

	// Make sure the third random index doesn't match either of the
	// first two.
	while(k == i || k == j)
		k = Math.floor(1 + Math.random() * images.length);

	// Write the HTML content to the page.
	document.write("<a href='"  + images[i].id + ".html' title='Click to enlarge'>");
	document.write("<img src='" + images[i].id + ".preview.jpg' class='preview' alt='" + images[i].title + "'/>");
	document.write("</a>");
	document.write("<br/>");
	document.write("<a href='"  + images[j].id + ".html' title='Click to enlarge'>");
	document.write("<img src='" + images[j].id + ".preview.jpg' class='preview' alt='" + images[j].title + "'/>");
	document.write("</a>");
	document.write("<br/>");
	document.write("<a href='"  + images[k].id + ".html' title='Click to enlarge'>");
	document.write("<img src='" + images[k].id + ".preview.jpg' class='preview' alt='" + images[k].title + "'/>");
	document.write("</a>");
}


var images = new Array;
images.push(new Artwork("Teresa J. Parker", "Madonna Series #1", "Graphite on Paper", "30\" x 22\"", "2004", "img0001"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #2", "Graphite on Paper", "30\" x 22\"", "2004", "img0002"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #3", "Graphite on Paper", "30\" x 22\"", "2004", "img0003"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #4", "Graphite on Paper", "12\" x 9\"", "2004", "img0004"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #5", "Graphite on Paper", "12\" x 9\"", "2004", "img0005"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #6", "Graphite on Paper", "12\" x 9\"", "2004", "img0006"));
images.push(new Artwork("Teresa J. Parker", "Kali as Matriarch", "Graphite on Paper", "12\" x 9\"", "2005", "img0007"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #8", "Graphite on Paper", "12\" x 9\"", "2005", "img0008"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #9", "Graphite on Paper", "22\" x 15\"", "2004", "img0009"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #10", "Graphite on Paper", "22\" x 15\"", "2005", "img0010"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #11", "Graphite on Paper", "22\" x 15\"", "2005", "img0011"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #12", "Graphite on Paper", "22\" x 15\"", "2005", "img0012"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #13", "Graphite on Paper", "22\" x 15\"", "2005", "img0013"));
images.push(new Artwork("Teresa J. Parker", "Madonna Series #14", "Graphite on Paper", "22\" x 15\"", "2005", "img0014"));
images.push(new Artwork("Teresa J. Parker", "Children of Beslan", "Installation", "7' x 3' x 3'", "2005", "img0015"));
images.push(new Artwork("Teresa J. Parker", "Children of Beslan (Detail)", "Installation", "7' x 3' x 3'", "2005", "img0016"));
images.push(new Artwork("Teresa J. Parker", "Revealed - A Woman from Juarez", "Installation", "9' x 7' x 2'", "2006", "img0017"));
images.push(new Artwork("Teresa J. Parker", "Revealed - A Woman from Juarez (Detail)", "Installation", "9' x 7' x 2'", "2006", "img0018"));
images.push(new Artwork("Teresa J. Parker", "Celtic Matriarch Blessing", "Graphite on Paper", "30\" x 22\"", "2006", "img0019"));
images.push(new Artwork("Teresa J. Parker", "Ceres as Matriarch", "Graphite on Paper", "30\" x 22\"", "2006", "img0020"));
images.push(new Artwork("Teresa J. Parker", "Fertile Dreams", "Linocut", "6\" x 2\"", "2006", "img0021"));
images.push(new Artwork("Teresa J. Parker", "Fertility Madonna", "Graphite on Paper", "30\" x 22\"", "2006", "img0022"));
images.push(new Artwork("Teresa J. Parker", "Indian Madonna", "Graphite on Paper", "30\" x 22\"", "2006", "img0023"));
images.push(new Artwork("Teresa J. Parker", "Madonna as Ms. Universe", "Graphite on Paper", "24\" x 20\"", "2006", "img0024"));
images.push(new Artwork("Teresa J. Parker", "Matriarch as Healer", "Woodcut", "11\" x 7\"", "2006", "img0025"));
images.push(new Artwork("Teresa J. Parker", "Matriarch Extends Blessings", "Graphite on Paper", "30\" x 22\"", "2006", "img0026"));
images.push(new Artwork("Teresa J. Parker", "Hecate's Fire & Water", "Linocut", "14\" x 6\"", "2006", "img0027"));
images.push(new Artwork("Teresa J. Parker",	"Weep & Grow", "Graphite", "5\" x 4\"", "2008", "img0028"));
images.push(new Artwork("Teresa J. Parker", "Breasts Extolled",	"Graphite", "14\" x 6\"", "2008", "img0030"));	
images.push(new Artwork("Teresa J. Parker", "Births Revealed", "Graphite", "5\" x 4\"", "2008", "img0031"));
images.push(new Artwork("Teresa J. Parker", "Celestial Madonna", "Graphite", "5\" x 5\"", "2008", "img0032"));
images.push(new Artwork("Teresa J. Parker", "She is Unbroken", "Graphite", "14\" x 7\"", "2008", "img0033"));
images.push(new Artwork("Teresa J. Parker", "Here Child, I Have More Than Enough....", "Linocut", "10\" x 8\"", "2008", "img0034"));
images.push(new Artwork("Teresa J. Parker", "I Had Hoped for Better...", "Linocut", "10\" x 8\"", "2008", "img0035"));
images.push(new Artwork("Teresa J. Parker", "Madonna of the Breast", "Linocut", "8\" x 6\"", "2008", "img0036"));
images.push(new Artwork("Teresa J. Parker", "Breasts Reborn", "Linocut", "10\" x 8\"", "2008", "img0037"));
images.push(new Artwork("Teresa J. Parker", "Yes, I have Plenty", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0038"));
images.push(new Artwork("Teresa J. Parker", "Plenty Revisited", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0039"));
images.push(new Artwork("Teresa J. Parker", "She Hoped for Better", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0040"));
images.push(new Artwork("Teresa J. Parker", "Celtic Madonna", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0041"));
images.push(new Artwork("Teresa J. Parker", "Madonna of the Breast", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0042"));
images.push(new Artwork("Teresa J. Parker", "Healing hands", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0043"));
images.push(new Artwork("Teresa J. Parker", "Spirited Girl", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0044"));
images.push(new Artwork("Teresa J. Parker", "Double-breasted", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0045"));
images.push(new Artwork("Teresa J. Parker", "Double Lotus Blossom", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0046"));
images.push(new Artwork("Teresa J. Parker", "Hoping for Better II", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0047"));
images.push(new Artwork("Teresa J. Parker", "Mirrored Busts", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0048"));
images.push(new Artwork("Teresa J. Parker", "Celtic Madonna -Green", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0049"));
images.push(new Artwork("Teresa J. Parker", "Handed", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0050"));
images.push(new Artwork("Teresa J. Parker", "Trying Them On", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0051"));
images.push(new Artwork("Teresa J. Parker", "Madonna Walks", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0052"));
images.push(new Artwork("Teresa J. Parker", "Untitled", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0053"));
images.push(new Artwork("Teresa J. Parker", "Lift & Separate", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0054"));
images.push(new Artwork("Teresa J. Parker", "A Vision", "Drypoint Monotype", "4\" x 4\"", "2009", "img0055"));
images.push(new Artwork("Teresa J. Parker", "A Vision Above", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0056"));
images.push(new Artwork("Teresa J. Parker", "Portrait I", "Drypoint Monotype", "4\" x 4\"", "2009", "img0057"));
images.push(new Artwork("Teresa J. Parker", "Portrait II", "Drypoint Monotype", "4\" x 4\"", "2009", "img0058"));
images.push(new Artwork("Teresa J. Parker", "Tulip Madonna", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0059"));
images.push(new Artwork("Teresa J. Parker", "That's It", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0060"));
images.push(new Artwork("Teresa J. Parker", "That's It Again", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0061"));
images.push(new Artwork("Teresa J. Parker", "The Perfect Set", "Linocut w/Collage & Hand-coloring", "18\" x 24\"", "2009", "img0062"));
