
		function showPic (whichpic) {
				var whichpic;
 				if (document.getElementById) {
  						document.getElementById('placeholder').src = whichpic.href; 				  //works
  						if (whichpic.id) {
  								document.getElementById('imglink').href = whichpic.id; 
  						} else {
  								document.getElementById('imglink').href = whichpic.href;
  						}		
  						document.getElementById('linkdesc').childNodes[0].nodeValue = whichpic.name;  //works
  						if (whichpic.title) {                                                         //all works
  				 				document.getElementById('imgtext').childNodes[0].nodeValue = whichpic.title;
  						} else {
  				 				document.getElementById('imgtext').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  						}
 				 		return false;
 				} else {
 				 		return true;
 				}
			}

/*this piece of super simple javascript was written in 2004 
by Jeremy Keith: http://www.clearleft.com/, and published at: 
http://www.alistapart.com/articles/imagegallery.  

Jean Cozzens (http://www.secretdoorprojects.org/) modified it 
slightly in November of 2007, tying a link and an additional 
text block to each image.  Javascript clues were tracked 
down via http://www.howtocreate.co.uk/.  Thank you! */ 

