
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'fp_events.htm';
scriptName = 'fp_events.js';
countX = 4;
countY = 3;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('SSS 2011','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','sss2011_003.jpg',300,400,''), 
		new Array('','sss2011_007.jpg',533,400,''), 
		new Array('','sss2011_013.jpg',300,400,''), 
		new Array('','sss2011_016.jpg',300,400,''), 
		new Array('','sss2011_017.jpg',300,400,''), 
		new Array('','sss2011_018.jpg',300,400,''), 
		new Array('','sss2011_021.jpg',533,400,''), 
		new Array('','sss2011_024.jpg',533,400,''), 
		new Array('','sss2011_026.jpg',533,400,''), 
		new Array('','sss2011_029.jpg',533,400,''), 
		new Array('','sss2011_044.jpg',533,400,''), 
		new Array('','sss2011_IMAG0171.jpg',668,400,'')
    ),'Click on the images to view images of past Southern Spring Show displays.'
  ),
  new Array('SSS 2010','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','2010_100.jpg',597,400,''), 
		new Array('','2010_102.jpg',300,400,''), 
		new Array('','2010_103.jpg',597,400,''), 
		new Array('','2010_104.jpg',597,400,''), 
		new Array('','2010_105.jpg',597,400,''), 
		new Array('','2010_106.jpg',597,400,''), 
		new Array('','2010_107.jpg',597,400,''), 
		new Array('','2010_108.jpg',533,400,''), 
		new Array('','2010_109.jpg',597,400,''), 
		new Array('','2010_110.jpg',533,400,''), 
		new Array('','2010_111.jpg',597,400,''), 
		new Array('','2010_112.jpg',300,400,''), 
		new Array('','2010_113.jpg',533,400,''), 
		new Array('','2010_114.jpg',533,400,''), 
		new Array('','2010_115.jpg',533,400,'') 
    ),'Click on the images to view images of past Southern Spring Show displays.'
  ),
  new Array('SSS 2009','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','sss2009_IMG_1773.jpg',533,400,''), 
		new Array('','sss2009_IMG_1775.jpg',533,400,''), 
		new Array('','sss2009_IMG_1777.jpg',533,400,''), 
		new Array('','sss2009_IMG_1778.jpg',533,400,''), 
		new Array('','sss2009_IMG_1779.jpg',533,400,''), 
		new Array('','sss2009_IMG_1782.jpg',533,400,''), 
		new Array('','sss2009_IMG_1787.jpg',300,400,''), 
		new Array('','sss2009_IMG_1788.jpg',533,400,'')
    ),'Click on the images to view images of past Southern Spring Show displays.'
  ),
  new Array('SSS 2008','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','sss2008_IMG_1187.jpg',533,400,''), 
		new Array('','sss2008_IMG_1188.jpg',533,400,''), 
		new Array('','sss2008_IMG_1190.jpg',533,400,''), 
		new Array('','sss2008_IMG_1191.jpg',533,400,''), 
		new Array('','sss2008_IMG_1192.jpg',533,400,''), 
		new Array('','sss2008_IMG_1193.jpg',533,400,''), 
		new Array('','sss2008_IMG_1196.jpg',533,400,''), 
		new Array('','sss2008_IMG_1201.jpg',533,400,''), 
		new Array('','sss2008_IMG_1213.jpg',300,400,''), 
		new Array('','sss2008_IMG_1218.jpg',300,400,''), 
		new Array('','sss2008_IMG_1220.jpg',533,400,''), 
		new Array('','sss2008_IMG_1221.jpg',300,400,''), 
		new Array('','sss2008_IMG_1222.jpg',300,400,''), 
		new Array('','sss2008_IMG_1223.jpg',300,400,''), 
		new Array('','sss2008_IMG_1226.jpg',300,400,'')
    ),'Click on the images to view images of past Southern Spring Show displays.'
  ),
  new Array('SSS 2007','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','sss2007_IMG_0077.jpg',533,400,''), 
		new Array('','sss2007_IMG_0078.jpg',300,400,''), 
		new Array('','sss2007_IMG_0079.jpg',533,400,''), 
		new Array('','sss2007_IMG_0080.jpg',533,400,''), 
		new Array('','sss2007_IMG_0082.jpg',533,400,''), 
		new Array('','sss2007_IMG_0084.jpg',533,400,''), 
		new Array('','sss2007_IMG_0085.jpg',533,400,''), 
		new Array('','sss2007_IMG_0086.jpg',533,400,''), 
		new Array('','sss2007_IMG_0090.jpg',300,400,''), 
		new Array('','sss2007_IMG_0091.jpg',533,400,''), 
		new Array('','sss2007_IMG_0092.jpg',533,400,'') 
    ),'Click on the images to view images of past Southern Spring Show displays.'
  ),
  new Array('SSS 2006','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','sss2006_IMG_0419.jpg',533,400,''), 
		new Array('','sss2006_IMG_0421.jpg',533,400,''), 
		new Array('','sss2006_IMG_0422.jpg',533,400,''), 
		new Array('','sss2006_IMG_0424.jpg',533,400,''), 
		new Array('','sss2006_IMG_0425.jpg',533,400,''), 
		new Array('','sss2006_IMG_0426 small.jpg',533,400,'') 
    ),'Click on the images to view images of past Southern Spring Show displays.'
  ),
  new Array('SSS 2005','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','sss2005_IMG_0122.jpg',533,400,''), 
		new Array('','sss2005_IMG_0124.jpg',533,400,''), 
		new Array('','sss2005_IMG_0125.jpg',300,400,'')
    ),'Click on the images to view images of past Southern Spring Show displays.'
  )
)

section = getParameter(self.document.location.href, 'section');
if (isNaN(section) || (section=='') || (section<0) || (section>arImages.length))
  section = 0; 

ind = getParameter(self.document.location.href, 'ind');
if (isNaN(ind) || (ind=='') || (ind<0) || (ind>arImages[section][4].length))
  ind = 0; 

var arPreloadImages = new Array();
function preload() {
  if (arImages[section][2]!='') {
    for (i=ind;(i<(Number(ind)+Number(countX*countY))) && (i<arImages[section][4].length);i++) {
      arPreloadImages[i] = new Image(mediumSizes[0],mediumSizes[1]);
      arPreloadImages[i].src = arImages[section][2]+arImages[section][4][i][1];
    }
  }
}
  
function menu_portfolio() {
  var jp;
  document.write('<table border="0" cellspacing="0" cellpadding="0">');
  document.write('<tr><td>Choose a category:&nbsp;<select name="cat" class="select1" onChange="if (this.value.length!=0) window.location=this.value" style="font-size:9px;">');
  for (jp=0;jp<arImages.length;jp++) {
    document.write('<option value="'+pageName+'?section='+jp+'"'+((jp==section)?' selected':'')+'>'+arImages[jp][0]+'</option>');
  }  
  document.write('</select></td></tr>')
  document.write('</table>');
} 
  
function showImageMedium(number) {
  showImage('imagemedium',arImages[section][2]+arImages[section][4][number][1]);
  if (arImages[section][4][number][0]!='')
   showMessage('imagemediumname',arImages[section][4][number][0]);   
  else
   showMessage('imagemediumname','Photo '+Number(Number(number)+1));
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}

