// JavaScript Document

/*For image gallery function; call from any page.
Parameters must be set in call.  whichpic should be
id of image that will replace existing image, origpic
is id of original image (that will be swapped), and
descnode is the id of the tag within which the swapped
description will go*/

function showPic (whichpic, origpic, descnode) { 
	if (document.getElementById) { 
		document.getElementById(origpic).src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById(descnode).childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById(descnode).childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}