/* Javascript for BioImages Website */
/* 25 Oct 2010, M. W. Storey */
 
function showimage(filename,width,height,owner,link,title,subtitle,pid,index,iconhtml)
{
   mylink = '<a href="'+link+'" target="_blank">';
   var imageId = document.getElementById('image')
   imageId.innerHTML = mylink+'<img class="photo" src="../../vfg/'+filename+'" align="top" alt="Image" title="Image copyright &copy; '+owner+'. Click for photographic details and conditions of use. (Opens in a new tab/window.)" width="'+width+'" height="'+height+'"></a>';

   var thumbs = document.getElementsByName('thumb');
   for (var i=0;i<thumbs.length;i++)
   {
      thumbs[i].style.borderStyle="none";
   }

   var thumb = document.getElementById('thumb'+index);
   thumb.style.borderWidth="thick";
   thumb.style.borderStyle="inset";
   thumb.style.borderColor="blue";

   var detailsId = document.getElementById('details')
   detailsId.innerHTML='<p class="icon">'+iconhtml+'</p><p class="h1">'+title+'</p><p class="h2">'+subtitle+'</p><p class="prompt2">Click on the image for photographic details and conditions of use. (Opens in a new tab/window.)</p><p class="pcode">Remember to quote "<em>'+pid+'</em>" in any enquiries concerning this image.</p>';
}

