function showPic (whichpic, zoomLink) {
 if (document.getElementById) {
  document.getElementById('imgPhoto').src = whichpic.href;
  	document.getElementById('imgPhotoLink').href = zoomLink;
	document.getElementById('zoomedImage').src = zoomLink;
  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 imageZoom (zoompic) {
	document.getElementById('zoomedImage').src = zoompic.href;
	document.getElementById('imageZoom').style.display = "block";
	return false;
}

function closeZoom() {
	document.getElementById('imageZoom').style.display = "none";
}

// Product Gallery1, multiple text fields to replace

function productGallery1 (imageFile1, textFront1, textColour1, textMaterial1)
{
	document.getElementById('picture1').src = imageFile1;
	document.getElementById('frontText1').innerHTML=textFront1;
	document.getElementById('colourText1').innerHTML=textColour1;
	document.getElementById('materialText1').innerHTML=textMaterial1;
	return false;
}


// Product Gallery2

function productGallery2 (imageFile2, textFront2, textColour2, textMaterial2)
{
	document.getElementById('picture2').src = imageFile2;
	document.getElementById('frontText2').innerHTML=textFront2;
	document.getElementById('colourText2').innerHTML=textColour2;
	document.getElementById('materialText2').innerHTML=textMaterial2;
	return false;
}
