
/* Code taken from: http://www.alistapart.com/articles/imagegallery/ */

/* To use:

   <ul>
   <li><a onclick="return showPic(this)" href="images/bananas.jpg" title="A bunch of bananas on a table">some bananas</a></li>
   <li> ... </li>
   </ul>

*/

function showPic(whichpic) {
 if (document.getElementById) {
  document.getElementById('showImg').src = whichpic.href;

  /*
  if (whichpic.title) {
   document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  */
  return false;
 } else {
  return true;
 }
}



