// Author: Alan Nanut, ATS, York University

// Copy/paste and modify stThumbs array elements to
// reflect correct properties.  Modify iThumbs variable
// in gallery_layers.js



function initGALLVars ()
{
  var iIndex;

  iGalls = 1;
  iThumbWidth = iThumbSize = iThumbW;
  iThumbOpacityInc = 10;
  iThumbOpacity = 10;
  iThumbOffY = 300;
  iArrowSize = 25;
  iCapWidth = iCaptionWidth;


  stGalls = new Array(iGalls);
  stGalls[0] = new Array(iGallFields);
  stGalls[0][GALL_CF] = 1;
  // visible thumbnails
  stGalls[0][GALL_VIS] = 4;


    // Gallery position

    // left start (center)
    stGalls[0][GALL_LEFT] = (iContentWidth / 2) - 215; // 215 is calculated width of gallery
    if (stGalls[0][GALL_LEFT] < 0)
      stGalls[0][GALL_LEFT] = 0;
    // top start
    stGalls[0][GALL_TOP] = 100;



  stThumbs = new Array(iThumbs);

  // gallery 1 -- default thumbnail property initialization
  for (iIndex = 1; iIndex <= iThumbs; iIndex++)
  {
    // allocate fields to each image
    stThumbs[iIndex-1] = new Array(iThumbFields);
    // use captions flag
    stThumbs[iIndex-1][THUMB_CF] = 1;
    // incremental width flag (ie, ns 6.x+)
    stThumbs[iIndex-1][THUMB_WF] = 1;
    // gallery image belongs to
    stThumbs[iIndex-1][THUMB_GALL] = 0;
    // image file name
    stThumbs[iIndex-1][THUMB_SRC] = "gallery/full/"+iIndex+".jpg";
  }


  // ---------------------------------  Modify below: custom, mandatory properties for each image



    // width, height
    stThumbs[0][THUMB_W] = 425;
    stThumbs[0][THUMB_H] = 250;
    // caption layer
    stThumbs[0][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Firenze, Italy</b></font></p></center>";

    // width, height
    stThumbs[1][THUMB_W] = 320;
    stThumbs[1][THUMB_H] = 400;
    // caption layer
    stThumbs[1][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Spring</b></font></p></center>";

    // width, height
    stThumbs[2][THUMB_W] = 319;
    stThumbs[2][THUMB_H] = 400;
    // caption layer
    stThumbs[2][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Flight</b></font></p></center>";

    // width, height
    stThumbs[3][THUMB_W] = 320;
    stThumbs[3][THUMB_H] = 400;
    // caption layer
    stThumbs[3][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>The Waters of Ipperwash</b></font></p></center>";

    // width, height
    stThumbs[4][THUMB_W] = 319;
    stThumbs[4][THUMB_H] = 400;
    // caption layer
    stThumbs[4][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>In The Flames, I See</b></font></p></center>";

    // width, height
    stThumbs[5][THUMB_W] = 320;
    stThumbs[5][THUMB_H] = 400;
    // caption layer
    stThumbs[5][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Through The Flames, They Come</b></font></p></center>";

    // width, height
    stThumbs[6][THUMB_W] = 499;
    stThumbs[6][THUMB_H] = 400;
    // caption layer
    stThumbs[6][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Sun Temple, Mesa Verde, Colorado</b></font></p></center>";

    // width, height
    stThumbs[7][THUMB_W] = 500;
    stThumbs[7][THUMB_H] = 384;
     // caption layer
    stThumbs[7][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Autumn, Lac des castors, Montréal</b></font></p></center>";

    // width, height
    stThumbs[8][THUMB_W] = 499;
    stThumbs[8][THUMB_H] = 400;
    // caption layer
    stThumbs[8][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Spring, Toronto</b></font></p></center>";
	
	    // width, height
    stThumbs[9][THUMB_W] = 500;
    stThumbs[9][THUMB_H] = 391;
    // caption layer
    stThumbs[9][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Summer, Salin de Giraud, France</b></font></p></center>";


	    // width, height
    stThumbs[10][THUMB_W] = 500;
    stThumbs[10][THUMB_H] = 400;
    // caption layer
    stThumbs[10][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Petrified Forest, Arizona</b></font></p></center>";
		
	    // width, height
    stThumbs[11][THUMB_W] = 500;
    stThumbs[11][THUMB_H] = 390;
    // caption layer
    stThumbs[11][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Hawk, Cedar Ridge, Grand Canyon</b></font></p></center>";

	    // width, height
    stThumbs[12][THUMB_W] = 319;
    stThumbs[12][THUMB_H] = 400;
    // caption layer
    stThumbs[12][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Nice, France</b></font></p></center>";
	
		    // width, height
    stThumbs[13][THUMB_W] = 500;
    stThumbs[13][THUMB_H] = 398;
    // caption layer
    stThumbs[13][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Tours Magne, Nimes, France</b></font></p></center>";
	
		    // width, height
    stThumbs[14][THUMB_W] = 500;
    stThumbs[14][THUMB_H] = 396;
    // caption layer
    stThumbs[14][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Theatre Antique, Arles, France</b></font></p></center>";
	
		    // width, height
    stThumbs[15][THUMB_W] = 500;
    stThumbs[15][THUMB_H] = 395;
    // caption layer
    stThumbs[15][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Chateau D'If, Marseilles, France</b></font></p></center>";
	
		    // width, height
    stThumbs[16][THUMB_W] = 500;
    stThumbs[16][THUMB_H] = 398;
    // caption layer
    stThumbs[16][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Les Baux en Provence, France</b></font></p></center>";
	
			    // width, height
    stThumbs[17][THUMB_W] = 320;
    stThumbs[17][THUMB_H] = 400;
    // caption layer
    stThumbs[17][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>John Heward</b></font></p></center>";

			    // width, height
    stThumbs[18][THUMB_W] = 320;
    stThumbs[18][THUMB_H] = 400;
    // caption layer
    stThumbs[18][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Gabor Szilasi</b></font></p></center>";
	
				    // width, height
    stThumbs[19][THUMB_W] = 320;
    stThumbs[19][THUMB_H] = 400;
    // caption layer
    stThumbs[19][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Tim Clark</b></font></p></center>";
	
				    // width, height
    stThumbs[20][THUMB_W] = 320;
    stThumbs[20][THUMB_H] = 400;
    // caption layer
    stThumbs[20][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Sam Tata</b></font></p></center>";
	
					    // width, height
    stThumbs[21][THUMB_W] = 320;
    stThumbs[21][THUMB_H] = 400;
    // caption layer
    stThumbs[21][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Miklos Neumann</b></font></p></center>";
	
					    // width, height
    stThumbs[22][THUMB_W] = 320;
    stThumbs[22][THUMB_H] = 400;
    // caption layer
    stThumbs[22][THUMB_CTAG] = "<center><p><font size = '+1' color = '#ffcc66'><b>Nancy Smith</b></font></p></center>";
  // required additional automated initialization
  GALL_init ();
}
