//	A simple image gallery.
//	You'll need a placeholder image with the id "placeholder".
//	You'll also need an element with the id "desc" to hold the descriptive text.
//	Feel free to alter this as you see fit.
//	All I ask is that you drop me a line to let me know where you use it.
//	Email me: jeremy at adactio.com

function showPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('placeholder').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; 
	} 
}

function showPic2 (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('placeholder2').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('desc2').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('desc2').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}

function showPic3 (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder3').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc3').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc3').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

function showPic4 (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder4').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc4').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc4').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

function showPic5 (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder5').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc5').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc5').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

function showPic6 (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder6').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc6').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc6').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

function showPic7 (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder7').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc7').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc7').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

function showPic8 (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder8').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc8').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc8').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}









