//////////////////////////////////////////
// function used to switch the medium sized image when a thumbnail is clicked
// based on the js image gallery script from Jeremy Keith
//////////////////////////////////////////

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

		// commented this out while trying to get lightbox to worik
		// ----------------------------------------
		// var querySTR = 'image=';  //  needed to build the PHP query string
		// document.getElementById('enlarge').search = querySTR+whichpic.name;
		// ---------------------------------------
				
		if(whichpic.title) {
			document.getElementById('prod-thumbs').childNodes[0].nodeValue = whichpic.title;
			} 
		else {
			// document.getElementById('dothis').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
			}
		return false;
 		} 
	else {
		return true;
		}
	}
	
