/*
Javascript Image Gallery
by Jeremy Keith

A List Apart
www.alistapart.com/articles/imagegallery/
*/
 
function swapimage (whichpic) {
	if (document.getElementById) {
		document.getElementById('imgspot').src = whichpic.href;
		if (whichpic.title) {
			document.getElementById('gallery').childNodes[0].nodeValue = whichpic.title;
		} else {
			document.getElementById('gallery').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
		}
		return false;
	} else {
		return true;
	}
}