function tag(name) {
	return document.getElementById(name);
}

var tests = [ 'test1.png',  'test2.png',  'test3.png',  'test4.png',  'test5.png',  'test6.png',  'test7.png',  'test8.png',  'test9.png',  'test10.png', 'test11.png', 'test12.png', 'test13.png', 'test14.png', 'test15.png', 'test16.png' ];

var images = [ 'images/goddess.jpg', 'images/jamica.jpg', 'images/leather.jpg', 'images/sidebound.jpg', 'images/tidepools.jpg', 'images/drawer.jpg' ];

var heights = [ 373, 330, 493, 312, 308, 346 ];

var caption_titles = [];
var caption_middles = [];
var caption_bottoms = [];

caption_titles[0] = "Contemplating Goddesses, 2006";
caption_middles[0] = "size: 4\"w x 6.25\"h x 3\"d<br />materials: various papers, Laval book cloth, binder's board, enclosures";
caption_bottoms[0] = "This work was inspired by a gift of medallions cast from 18th century cameos with classical themes. I wanted viewers to contemplate these goddesses, who themselves appear to be lost in contemplation. The text is derived from Partridge's Origins: A short Etymological Dictionary of Modern English (1985 edition) which describes the relationship between the words contemplate and temple.";

caption_titles[1] = "Jamaica Reverie, 2005";
caption_middles[1] = "size: 5.75\"w x 5.25\"h x 1\"d<br />materials: card stock, book cloth, enclosures";
caption_bottoms[1] = "Inspired by a trip to Jamaica, this piece holds a tide pool of beachcombings and a small book.";

caption_titles[2] = "Leather Bound Books, 2004";
caption_middles[2] = "size: (brown) 6.5\"w x  7.5\"h x 0.875\"d;<br />(blue) 6.5\"w x 7.25\"h x 1.25\"d<br />materials: colored leather, paste paper, Arches MBM text paper";
caption_bottoms[2] = "These books &mdash; quarter- and half-bound with goat leather &mdash; were made at the Center for Book Arts in NYC.";

caption_titles[3] = "Wedding Album, 2006";
caption_middles[3] = "Size: 10.5\"w x 7.75\"h x 0.75\"d<br />materials: Asahi book cloth, Yuzen Shi silkscreened paper; gold<br />raffia, Mohawk Tomohawk text paper.";
caption_bottoms[3] = "A wedding album celebrating a marriage that took place in a bright red temple in Japan.";

caption_titles[4] = "Three Tide Pools";
caption_middles[4] = "size:  5.75\"w x 5.25\"h x 1.5\"d<br />materials: card stock, book cloth, enclosures";
caption_bottoms[4] = "Inspired by shores in Maine, the Caribbean, and a lake in Vermont, this \"book box\" features enclosures instead of text.";

caption_titles[5] = "Box with Drawers";
caption_middles[5] = "size: closed 7.75\"w x 4\"h x 8.375\"d<br />materials: book cloth, binder's board, paste papers, buttons";
caption_bottoms[5] = "A 2-drawer box designed to hold several books and tools";




function gal_click(which) {
	gal = tag('gallery_big');
	gal.src = images[which];
	gal.height = heights[which];
	tag('gallery_caption_title').innerHTML = caption_titles[which];
	tag('gallery_caption_middle').innerHTML = caption_middles[which];
	tag('gallery_caption_bottom').innerHTML = caption_bottoms[which];
}
