
// Function which creates a thumbnail image and a short description
// next to it.  Parameters: the image path (excluding "Images/" and ".jpg")
// for the main image, and the text description.
function createThumb(imgPath, description)
{
  document.writeln('<p>');
  document.write('<a href="');
  document.write("javascript:openLargeImage('" + imgPath + ".jpg')");
  document.write('">');
  document.write  ('<img src="Images/' + imgPath + '_t.jpg" alt="" class="thumb" ');
  document.writeln('width="163" height="130">');
  document.writeln('</a></p>');
  document.writeln('<div class="thumbContent">');
  document.writeln(description);
  document.writeln('<br clear="left"></div>');
  document.close();
}

// Same as above, but this function takes in two thumbnail images.
function createDoubleThumb(imgPath1, imgPath2, description)
{
  document.write('<a href="');
  document.write("javascript:openLargeImage('" + imgPath1 + ".jpg')");
  document.write('">');
  document.writeln('<img src="Images/' + imgPath1 + '_t.jpg" alt="" class="thumb">');
  document.writeln('</a>');

  document.write('<a href="');
  document.write("javascript:openLargeImage('" + imgPath2 + ".jpg')");
  document.write('">');
  document.writeln('<img src="Images/' + imgPath2 + '_t.jpg" alt="" class="thumb">');
  document.writeln('</a>');

  document.writeln('<div class="thumbContent">');
  document.writeln(description);
  document.writeln('<br clear="both"></div>');
  document.close();
}

// Function that just creates a thumbnail with a link, with no description.
function createPicThumb(imgPath, isbr) 
{
  document.write('<a href="');
  document.write("javascript:openLargeImage('" + imgPath + ".jpg')");
  document.write('">');
  document.write  ('<img src="Images/' + imgPath + '_t.jpg" alt="" class="thumbAlone" ');
  document.writeln('width="163" height="130"></a>');
  if(isbr > 0)
	document.writeln('<br clear="left">');
  document.close();
}



