//=========================================================
// Picture ReU 2006 Carousel
// -------------------------
//
// Written by: Colin D Miller
// Date:       20 September 2006
// Updated:    04 January 2007
//---------------------------------------------------------
// Function:	GetPicture
// Parameters:	(none)
//---------------------------------------------------------
// set standard variables ...

function ZeroPad(iNum) {
  sPix = '00' + iNum;
  if (iNum<100) {sPix = '0'+sPix;}
  if (iNum<10) {sPix = '0'+sPix;}
  return sPix;
  };


function GetPicture() {
  iMax   = 347;
  dToday = new Date();
  iAll   = dToday.getTime();
  iAll   = iAll % iMax;
  iAll   = 1 + iAll;
  sPix1  = ZeroPad(iAll);

  iAll   = 100 + iAll;
  if (iAll>iMax) {iAll = iAll - iMax;}
  sPix2  = ZeroPad(iAll);

  document.write('<A href="NEWTpage.pl?Menu=Reunions">');
  document.write('<IMG src="../gallery/Reunion2006/thumbnails/' + sPix1 + '.jpg" border="0"><BR><BR>');
  document.write('<IMG src="../gallery/Reunion2006/thumbnails/' + sPix2 + '.jpg" border="0"></A>');
  return 0;
  };