var galload = "no";

if (document.images) {
	big_1 = new Image();
	big_1.src = "gallery/pic1.jpg";
	big_2 = new Image();
	big_2.src = "gallery/pic2.jpg";
	big_3 = new Image();
	big_3.src = "gallery/pic3.jpg";
	big_4 = new Image();
	big_4.src = "gallery/pic4.jpg";
	big_5 = new Image();
	big_5.src = "gallery/pic5.jpg";
	big_6 = new Image();
	big_6.src = "gallery/pic6.jpg";
	big_7 = new Image();
	big_7.src = "gallery/pic7.jpg";
	big_8 = new Image();
	big_8.src = "gallery/pic8.jpg";
	big_9 = new Image();
	big_9.src = "gallery/pic9.jpg";
	big_10 = new Image();
	big_10.src = "gallery/pic10.jpg";
	big_11 = new Image();
	big_11.src = "gallery/pic11.jpg";
	big_12 = new Image();
	big_12.src = "gallery/pic12.jpg";

	galload = "yes";
}

var captions = new Array (12);

captions[1] = "<b>Brownie Wise tosses a bowl filled with<br>water at a Tupperware Party in the 1950s.</b><br><span class=\"credit\">Courtesy of the Smithsonian Archives Center,<br>National Museum of American History</span>";
captions[2] = "<b>A Tupperware ad from the 1950s.</b><br><span class=\"credit\">Courtesy of the Smithsonian Archives Center,<br>National Museum of American History</span>";
captions[3] = "<b>Tupperware's complete line, from a 1950s catalog.</b><br><span class=\"credit\">Courtesy of the Smithsonian Archives Center,<br>National Museum of American History</span>";
captions[4] = "<b>Earl Tupper presents Brownie Wise<br>with the keys to a pink Cadillac in front of<br>Tupperware Home Parties' headquarters.</b><br><span class=\"credit\">Courtesy of the Smithsonian Archives Center,<br>National Museum of American History</span>";
captions[5] = "<b>Earl Silas Tupper, inventor of Tupperware,<br>holds one of his original designs.</b><br><span class=\"credit\">Courtesy of Tupperware Corporation</span>";
captions[6] = "<b>The inside page of a Tupperware brochure in the 1950s.</b><br><span class=\"credit\">Courtesy of the Smithsonian Archives Center,<br>National Museum of American History</span>";
captions[7] = "<b>The cover of a Tupperware catalog in 1958.</b><br><span class=\"credit\">Courtesy of Tupperware Corporation</span>";
captions[8] = "<b>The Tupperware Wish Fairy presents one<br>of Tupperware's top saleswomen with a<br>motorboat at the annual Tupperware Jubilee.</b><br><span class=\"credit\">Courtesy of the Smithsonian Archives Center,<br>National Museum of American History</span>";
captions[9] = "<b>A Tupperware Party as depicted in a brochure, 1950s.</b><br><span class=\"credit\">Courtesy of Tupperware Inc.</span>";
captions[10] = "<b>A dedicated Tupperware saleslady, early 1950s.</b><br><span class=\"credit\">Courtesy of Una Osrud</span>";
captions[11] = "<b>Brownie Wise bidding farewell at the end<br>of another Tupperware Jubilee.</b><br><span class=\"credit\">Courtesy of Smithsonian Archives Center,<br>National Museum of American History</span>";
captions[12] = "<b>One of the many cover stories of<br>Brownie Wise's success, 1954.</b><br><span class=\"credit\">Courtesy of Jerry Wise</span>";

var theImg = 1;

function place(which) {
	if (galload == "yes") {
		if (document.images) {
			document["galimage"].src = eval("big_" + which + ".src");
			document.getElementById('cap').innerHTML = captions[which];
			theImg = which;
		}
	}
}

function nextImg() {
	if (theImg == 12) {
		place(1);
	} else {
		place(theImg+1);
	}
}

function backImg() {
	if (theImg == 1) {
		place(12);
	} else {
		place(theImg-1);
	}
}
