function showPic (whichpic) {
	thumblinks = $("photoselection").getElementsByTagName("a");
	for(i=0; i<thumblinks.length; i++) {
		thumblinks[i].className = "aa";	
	}
	
	imageNodes = whichpic.getElementsByTagName("img");
	thispic = imageNodes[0];
	
	whichpic.className = "selected";
	whichpic.blur();
	$("photoobj").src = whichpic.href;
	$("caption").innerHTML = thispic.alt;
	
	return false;
}

