
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'location_progress.htm';
scriptName = 'location_progress.js';
countX = 4;
countY = 4;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Fredericksburg store 5/08','images/progress/small/','images/progress/medium/','images/progress/big/',
    new Array(
		new Array('Photo 1','frnew_430006.jpg',700,393,''), 
		new Array('Photo 2','frnew_430057.jpg',700,393,''), 
		new Array('Photo 3','frnew_5002.jpg',700,393,''), 
		new Array('Photo 4','frnew_5007.jpg',700,393,''), 
		new Array('Photo 5','frnew_Aggregate.jpg',599,400,''), 
		new Array('Photo 6','frnew_BS.jpg',599,400,''), 
		new Array('Photo 7','frnew_EPHenryCircle.jpg',599,400,''), 
		new Array('Photo 8','frnew_Inca.jpg',599,400,''), 
		new Array('Photo 9','frnew_NSPlt.jpg',599,400,''), 
		new Array('Photo 10','frnew_retwall.jpg',599,400,''), 
		new Array('Photo 11','frnew_Techo-BlocPermea.jpg',700,393,'')	
    )
  ),
  new Array('Fredericksburg Location Progress - 1/08','images/progress/small/','images/progress/medium/','images/progress/big/',
    new Array(
		new Array('Photo 1','0801-progress2.jpg',532,400,''), 
		new Array('Photo 2','0801-progress3_2.jpg',532,400,''), 
		new Array('Photo 3','0801-progress_3.jpg',532,400,''), 	
		new Array('Photo 4','080109065844.jpg',533,400,''), 
		new Array('Photo 5','080109070038.jpg',533,400,''), 
		new Array('Photo 6','080109070216.jpg',533,400,''), 
		new Array('Photo 7','080109070248.jpg',533,400,''), 
		new Array('Photo 8','080109070333.jpg',533,400,''), 
		new Array('Photo 9','080109070411.jpg',533,400,''), 
		new Array('Photo 10','080109070448.jpg',533,400,'') 		
    )
  ),
  new Array('Fredericksburg Location Progress - 10/07','images/progress/small/','images/progress/medium/','images/progress/big/',
    new Array(
		new Array('Photo 1','071107102004.jpg',533,400,''), 
		new Array('Photo 2','071112065540.jpg',533,400,''), 
		new Array('Photo 3','071112065804.jpg',533,400,''), 
		new Array('Photo 4','071112070617.jpg',533,400,''), 
		new Array('Photo 5','071112070722.jpg',533,400,''), 
		new Array('Photo 6','071112070810.jpg',533,400,''), 
		new Array('Photo 7','071112071706.jpg',533,400,'')
    )
  )
)

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; 

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>');
}    
  
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 showImageMedium(number) {
  showImage('imagemedium',arImages[section][2]+arImages[section][4][number][1]);
  showMessage('imagemediumname',arImages[section][4][number][0]);
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
