
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.htm';
scriptName = 'portfolio.js';
countX = 2;
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('Portfolio','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','photo_001.jpg',533,400,''), 
		new Array('','photo_002.jpg',533,400,''), 
		new Array('','photo_003.jpg',533,400,''), 
		new Array('','photo_004.jpg',533,400,''), 
		new Array('','photo_005.jpg',533,400,''), 
		new Array('','photo_006.jpg',533,400,''), 
		new Array('','photo_007.jpg',533,400,''), 
		new Array('','photo_008.jpg',533,400,''), 
		new Array('','photo_009.jpg',533,400,''), 
		new Array('','photo_010.jpg',533,400,''), 
		new Array('','photo_011.jpg',533,400,''), 
		new Array('','photo_012.jpg',533,400,''), 
		new Array('','photo_013.jpg',533,400,''), 
		new Array('','photo_014.jpg',533,400,''), 
		new Array('','photo_015.jpg',533,400,''), 
		new Array('','photo_016.jpg',533,400,''), 
		new Array('','photo_017.jpg',533,400,''), 
		new Array('','photo_018.jpg',533,400,''), 
		new Array('','photo_019.jpg',533,400,''), 
		new Array('','photo_020.jpg',533,400,''), 
		new Array('','photo_021.jpg',533,400,''), 
		new Array('','photo_022.jpg',533,400,'') 
    ),0
  ),

  new Array('Circles and Diamonds','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Antique Tera Cotta.jpg',534,400,''),
      new Array('Photo 2','Antique Terra Cotta with Pewter 2.jpg',534,400,''),
      new Array('Photo 3','Antique Terra Cotta with Pewter.jpg',534,400,''),
      new Array('Photo 4','La Jolla Tumble 1_1.jpg',534,400,''),
      new Array('Photo 5','La Jolla Tumble 2_1.jpg',534,400,''),
      new Array('Photo 6','La Jolla Tumble 3_1.jpg',534,400,''),
      new Array('Photo 7','Phoenix Territorial 2.jpg',534,400,''),
      new Array('Photo 8','Phoenix Territorial 3.jpg',534,400,''),
      new Array('Photo 9','Sierra Blend.jpg',534,400,''),
      new Array('Photo 10','Sierra Mega Bergerac 1.jpg',534,400,''),
      new Array('Photo 11','Sierra Mega Bergerac 2.jpg',534,400,''),
      new Array('Photo 12','Territorial.jpg',534,400,''),
      new Array('Photo 13','Tuscana 1_1.jpg',534,400,''),
      new Array('Photo 14','Tuscana 2_1.jpg',534,400,''),
      new Array('Photo 15','Tuscana 3_2.jpg',534,400,''),
      new Array('Photo 16','Tuscana 4.jpg',534,400,''),
      new Array('Photo 17','Tuscana 5_1.jpg',534,400,''),
      new Array('Photo 18','Tuscana 6_1.jpg',534,400,''),
      new Array('Photo 19','Tuscana 7_1.jpg',534,400,''),
      new Array('Photo 20','Tuscana 8.jpg',534,400,''),
      new Array('Photo 21','Tuscana 9.jpg',534,400,''),
      new Array('Photo 22','Tuscana Tumble_2.jpg',534,400,''),
      new Array('Photo 23','Tuscana with Mojave Mix 2.jpg',534,400,''),
      new Array('Photo 24','Tuscana with Mojave Mix.jpg',534,400,''),
      new Array('Photo 25','Victorian Tumble.jpg',534,400,'')
    ),0
  ),

  new Array('Commercial','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','City Stone 6x12 Charcoal buff and red 1.jpg',534,400,''),
      new Array('Photo 2','City Stone 6x12 Charcoal buff and red 2.jpg',534,400,''),
      new Array('Photo 3','City Stone 6x12 Charcoal buff and red 3.jpg',534,400,''),
      new Array('Photo 4','City Stone 6x12 Charcoal buff and red 4.jpg',534,400,''),
      new Array('Photo 5','City Stone 6x12 Charcoal buff and red 5.jpg',534,400,''),
      new Array('Photo 6','City Stone 6x12 Charcoal buff and red 6.jpg',534,400,''),
      new Array('Photo 7','City Stone 6x12 Charcoal buff and red 7.jpg',534,400,''),
      new Array('Photo 8','Desert Blend 4x8 Holland 1.jpg',534,400,''),
      new Array('Photo 9','Desert Blend 4x8 Holland 2.jpg',534,400,''),
      new Array('Photo 10','Desert Blend 4x8 Holland 3.jpg',534,400,''),
      new Array('Photo 11','Desert Blend 4x8 Holland 4.jpg',534,400,''),
      new Array('Photo 12','Desert Blend 4x8 Holland 5.jpg',534,400,''),
      new Array('Photo 13','Desert Blend 4x8 Holland 6.jpg',534,400,''),
      new Array('Photo 14','Desert Blend 4x8 Holland 7.jpg',534,400,''),
      new Array('Photo 15','Desert Blend 4x8 Holland 8.jpg',534,400,''),
      new Array('Photo 16','Desert Blend 4x8 Holland 9.jpg',534,400,'')
    ),0
  ),

  new Array('Driveways','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','3 Tone Brown Phoenix Paver 1.jpg',534,400,''),
      new Array('Photo 2','3 Tone Brown Phoenix Paver 2.jpg',534,400,''),
      new Array('Photo 3','3 Tone Brown Phoenix Paver 3.jpg',534,400,''),
      new Array('Photo 4','3 Tone Brown Phoenix Paver 4.jpg',534,400,''),
      new Array('Photo 5','3 Tone Brown Phoenix Paver 5.jpg',534,400,''),
      new Array('Photo 6','3 Tone Brown Phoenix Paver 6.jpg',534,400,''),
      new Array('Photo 7','Desert Blend.jpg',534,400,''),
      new Array('Photo 8','Monarch Pewter 1.jpg',534,400,''),
      new Array('Photo 9','Monarch Pewter 2.jpg',534,400,''),
      new Array('Photo 10','Monarch Pewter 3.jpg',534,400,''),
      new Array('Photo 11','Monarch Pewter 4.jpg',534,400,''),
      new Array('Photo 12','Monarch Pewter 5.jpg',534,400,''),
      new Array('Photo 13','Monarch Pewter 6.jpg',534,400,''),
      new Array('Photo 14','Pewter 4x8 Holland with Charcoal border 1.jpg',534,400,''),
      new Array('Photo 15','Pewter 4x8 Holland with Charcoal border 2.jpg',534,400,''),
      new Array('Photo 16','Pewter 4x8 Holland with Charcoal border 3.jpg',534,400,''),
      new Array('Photo 17','Pewter 4x8 Holland with Charcoal border 4.jpg',534,400,''),
      new Array('Photo 18','Pewter 4x8 Holland with Charcoal border 5.jpg',534,400,''),
      new Array('Photo 19','Pewter 4x8 Holland with Charcoal border 6.jpg',534,400,''),
      new Array('Photo 20','Pewter 4x8 Holland with Charcoal border 7.jpg',534,400,''),
      new Array('Photo 21','Pewter 4x8 Holland with Charcoal border 8.jpg',534,400,''),
      new Array('Photo 22','Phoenix Paver 3 Tone Brown 1.jpg',534,400,''),
      new Array('Photo 23','Phoenix Paver 3 Tone Brown 2.jpg',534,400,''),
      new Array('Photo 24','Phoenix Paver 3 Tone Brown 3.jpg',534,400,''),
      new Array('Photo 25','Phoenix Paver 3 Tone Brown 4.jpg',534,400,''),
      new Array('Photo 26','Sierra Blend 1.jpg',534,400,''),
      new Array('Photo 27','Sierra Blend 2.jpg',534,400,''),
      new Array('Photo 28','Sierra Blend 3.jpg',534,400,''),
      new Array('Photo 29','Sierra Blend 4.jpg',534,400,''),
      new Array('Photo 30','Sierra Blend 5.jpg',534,400,''),
      new Array('Photo 31','Tuscana 01.jpg',534,400,''),
      new Array('Photo 32','Tuscana 02.jpg',534,400,''),
      new Array('Photo 33','Tuscana 03_1.jpg',534,400,''),
      new Array('Photo 34','Tuscana 04_1.jpg',534,400,''),
      new Array('Photo 35','Tuscana 05_1.jpg',534,400,''),
      new Array('Photo 36','Tuscana 06_1.jpg',534,400,''),
      new Array('Photo 37','Tuscana 07_1.jpg',534,400,''),
      new Array('Photo 38','Tuscana 08_1.jpg',534,400,''),
      new Array('Photo 39','Tuscana 09.jpg',534,400,''),
      new Array('Photo 40','Tuscana 09x12 double border.jpg',534,400,''),
      new Array('Photo 41','Tuscana 10.jpg',534,400,''),
      new Array('Photo 42','Tuscana 11.jpg',534,400,''),
      new Array('Photo 43','Tuscana 12_1.jpg',534,400,''),
      new Array('Photo 44','Tuscana 13_1.jpg',534,400,''),
      new Array('Photo 45','Tuscana 14_1.jpg',534,400,''),
      new Array('Photo 46','Tuscana 15_1.jpg',534,400,''),
      new Array('Photo 47','Tuscana 16_1.jpg',534,400,''),
      new Array('Photo 48','Tuscana Tumble Runner Border 1.jpg',534,400,''),
      new Array('Photo 49','Tuscana Tumble Runner Border 2.jpg',534,400,''),
      new Array('Photo 50','Tuscana Tumble_3.jpg',534,400,''),
      new Array('Photo 51','Victorian Mega Bergerac 1.jpg',534,400,''),
      new Array('Photo 52','Victorian Mega Bergerac 2.jpg',534,400,''),
      new Array('Photo 53','Victorian Mega Bergerac 3.jpg',534,400,''),
      new Array('Photo 54','Victorian Mega Bergerac 4.jpg',534,400,''),
      new Array('Photo 55','Victorian Mega Bergerac 5.jpg',534,400,''),
      new Array('Photo 56','Victorian Mega Bergerac 6.jpg',534,400,''),
      new Array('Photo 57','Victorian Mega Bergerac 7.jpg',534,400,'')
    ),0
  ),

  new Array('Fire pits and BBQs','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','3 Tone Brown with Sierra Celtic Wall.jpg',534,400,''),
      new Array('Photo 2','Antique Terra Cotta with Ancient Stone.jpg',534,400,''),
      new Array('Photo 3','Artistic Paver 1.jpg',534,400,''),
      new Array('Photo 4','Artistic Paver 2.jpg',534,400,''),
      new Array('Photo 5','Mega Bergerac Tuscana 1.jpg',534,400,''),
      new Array('Photo 6','Mega Bergerac Tuscana 2.jpg',534,400,''),
      new Array('Photo 7','Mega Bergerac Tuscana 3.jpg',534,400,''),
      new Array('Photo 8','Sedona Blend Tumble 1.jpg',534,400,''),
      new Array('Photo 9','Sedona Blend Tumble 2.jpg',534,400,''),
      new Array('Photo 10','Sedona Tumble with Mega Bergerac Coping.jpg',534,400,''),
      new Array('Photo 11','Soulliere Decorative Pavers-124.jpg',534,400,''),
      new Array('Photo 12','Tuscana Tumble with Country Manor Wall.jpg',534,400,''),
      new Array('Photo 13','Tuscana Tumble_1.jpg',534,400,''),
      new Array('Photo 14','Victorian 1.jpg',534,400,''),
      new Array('Photo 15','Victorian 2.jpg',534,400,''),
      new Array('Photo 16','Victorian 3.jpg',534,400,''),
      new Array('Photo 17','Victorian 4.jpg',534,400,''),
      new Array('Photo 18','Victorian 5.jpg',534,400,''),
      new Array('Photo 19','Victorian 6.jpg',534,400,''),
      new Array('Photo 20','Victorian 7.jpg',534,400,''),
      new Array('Photo 21','Victorian 8.jpg',534,400,''),
      new Array('Photo 22','Victorian 9.jpg',534,400,'')
    ),0
  ),

  new Array('Pathways','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','3 Tone Brown 1.jpg',534,400,''),
      new Array('Photo 2','3 Tone Brown 2_1.jpg',534,400,''),
      new Array('Photo 3','Ancient Stone.jpg',534,400,''),
      new Array('Photo 4','Antique Terra Cotta 1.jpg',534,400,''),
      new Array('Photo 5','Antique Terra Cotta 2.jpg',534,400,''),
      new Array('Photo 6','Antique Terra Cotta 3.jpg',534,400,''),
      new Array('Photo 7','Antique Terra Cotta 4.jpg',534,400,''),
      new Array('Photo 8','Desert Blend_1.jpg',534,400,''),
      new Array('Photo 9','La Jolla Tumble 1.jpg',534,400,''),
      new Array('Photo 10','La Jolla Tumble 2.jpg',534,400,''),
      new Array('Photo 11','La Jolla Tumble 3.jpg',534,400,''),
      new Array('Photo 12','La Jolla.jpg',534,400,''),
      new Array('Photo 13','Sierra Blend Tumble 1.jpg',534,400,''),
      new Array('Photo 14','Sierra Blend Tumble 2.jpg',534,400,''),
      new Array('Photo 15','Sierra Blend_1.jpg',534,400,''),
      new Array('Photo 16','Tuscana 01_1.jpg',534,400,''),
      new Array('Photo 17','Tuscana 02_1.jpg',534,400,''),
      new Array('Photo 18','Tuscana 03.jpg',534,400,''),
      new Array('Photo 19','Tuscana 04.jpg',534,400,''),
      new Array('Photo 20','Tuscana 05.jpg',534,400,''),
      new Array('Photo 21','Tuscana 06.jpg',534,400,''),
      new Array('Photo 22','Tuscana 07.jpg',534,400,''),
      new Array('Photo 23','Tuscana 08.jpg',534,400,''),
      new Array('Photo 24','Tuscana 09_1.jpg',534,400,''),
      new Array('Photo 25','Tuscana 10_1.jpg',534,400,''),
      new Array('Photo 26','Tuscana 11_1.jpg',534,400,''),
      new Array('Photo 27','Tuscana 12.jpg',534,400,''),
      new Array('Photo 28','Tuscana 13.jpg',534,400,''),
      new Array('Photo 29','Tuscana 14.jpg',534,400,''),
      new Array('Photo 30','Tuscana 15_2.jpg',534,400,''),
      new Array('Photo 31','Tuscana Tumble.jpg',534,400,''),
      new Array('Photo 32','Tuscana with mini celtic wall.jpg',534,400,''),
      new Array('Photo 33','Tuscana with Mojave mix 2.jpg',534,400,''),
      new Array('Photo 34','Tuscana with Mojave mix.jpg',534,400,'')
    ),0
  ),

  new Array('Patios','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','1-4-2008-031.jpg',534,400,''),
      new Array('Photo 2','1-4-2008-034.jpg',534,400,''),
      new Array('Photo 3','3 Tone Brown 1_2.jpg',534,400,''),
      new Array('Photo 4','3 Tone Brown 5_1.jpg',534,400,''),
      new Array('Photo 5','3 Tone Brown 6.jpg',534,400,''),
      new Array('Photo 6','Ancient Stone_2.jpg',534,400,''),
      new Array('Photo 7','Antique Terra Cota 1.jpg',534,400,''),
      new Array('Photo 8','Antique Terra Cota 2.jpg',534,400,''),
      new Array('Photo 9','Antique Terra Cota 3.jpg',534,400,''),
      new Array('Photo 10','Antique Terra Cota 4.jpg',534,400,''),
      new Array('Photo 11','Antique Terra Cotta by Phoenix Brick.jpg',534,400,''),
      new Array('Photo 12','Desert Blend 1.jpg',534,400,''),
      new Array('Photo 13','Desert Blend 2.jpg',534,400,''),
      new Array('Photo 14','Desert Blend 3.jpg',534,400,''),
      new Array('Photo 15','Fuego Blend 1.jpg',534,400,''),
      new Array('Photo 16','Fuego Blend 2.jpg',534,400,''),
      new Array('Photo 17','Fuego Blend 3.jpg',534,400,''),
      new Array('Photo 18','Home and Garden Show.jpg',534,400,''),
      new Array('Photo 19','Mega Bergerac Sierra 1.jpg',534,400,''),
      new Array('Photo 20','Mega Bergerac Sierra 2.jpg',534,400,''),
      new Array('Photo 21','Mega Bergerac Sierra 3.jpg',534,400,''),
      new Array('Photo 22','Sedona Blend non Tumble 1.jpg',534,400,''),
      new Array('Photo 23','Sedona Blend non Tumble 2.jpg',534,400,''),
      new Array('Photo 24','Sedona Tumble.jpg',534,400,''),
      new Array('Photo 25','Sierra Blend 1_1.jpg',534,400,''),
      new Array('Photo 26','Sierra Blend 8.jpg',534,400,''),
      new Array('Photo 27','Sierra Blend 9.jpg',534,400,''),
      new Array('Photo 28','Tuscana 1_2.jpg',534,400,''),
      new Array('Photo 29','Tuscana 15.jpg',534,400,''),
      new Array('Photo 30','Tuscana 16.jpg',534,400,''),
      new Array('Photo 31','Tuscana 2.jpg',534,400,''),
      new Array('Photo 32','Tuscana 3_1.jpg',534,400,''),
      new Array('Photo 33','Tuscana 4_2.jpg',534,400,''),
      new Array('Photo 34','Tuscana 5_2.jpg',534,400,''),
      new Array('Photo 35','Tuscana 6.jpg',534,400,''),
      new Array('Photo 36','Tuscana Blend 1.jpg',534,400,''),
      new Array('Photo 37','Tuscana Blend 2.jpg',534,400,''),
      new Array('Photo 38','Tuscana Tumble 1.jpg',534,400,''),
      new Array('Photo 39','Tuscana Tumble 2.jpg',534,400,''),
      new Array('Photo 40','Tuscana Tumble 3.jpg',410,400,''),
      new Array('Photo 41','Tuscana Tumble 4.jpg',534,400,''),
      new Array('Photo 42','Tuscana Tumble 5.jpg',534,400,''),
      new Array('Photo 43','Victorian Mega Bergerac.jpg',534,400,''),
      new Array('Photo 44','Victorian Tumble_1.jpg',534,400,'')
    ),0
  ),

  new Array('Pools','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','3 Tone Brown 1_1.jpg',534,400,''),
      new Array('Photo 2','3 Tone Brown 2.jpg',534,400,''),
      new Array('Photo 3','3 Tone Brown 3.jpg',534,400,''),
      new Array('Photo 4','3 Tone Brown 4.jpg',534,400,''),
      new Array('Photo 5','3 Tone Brown 5.jpg',534,400,''),
      new Array('Photo 6','3 Tone Brown with ncient.jpg',534,400,''),
      new Array('Photo 7','ancient 2.jpg',534,400,''),
      new Array('Photo 8','Ancient Stone_1.jpg',534,400,''),
      new Array('Photo 9','Ancient_1.jpg',534,400,''),
      new Array('Photo 10','Desert blend 1.jpg',534,400,''),
      new Array('Photo 11','Desert blend 2.jpg',534,400,''),
      new Array('Photo 12','Desert blend 3.jpg',534,400,''),
      new Array('Photo 13','Desert blend 4.jpg',534,400,''),
      new Array('Photo 14','Desert blend 5.jpg',534,400,''),
      new Array('Photo 15','Desert blend 6.jpg',534,400,''),
      new Array('Photo 16','Sedona 2.jpg',534,400,''),
      new Array('Photo 17','Sedona Blend Tumble.jpg',534,400,''),
      new Array('Photo 18','Sedona.jpg',534,400,''),
      new Array('Photo 19','Tuscana Tumble_4.jpg',534,400,''),
      new Array('Photo 20','Victorian Blend.jpg',534,400,'')
    ),0
  ),

  new Array('Stairs','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','3 tone brown with a mega border.jpg',534,400,''),
      new Array('Photo 2','ancient 3.jpg',534,400,''),
      new Array('Photo 3','ancient 4.jpg',534,400,''),
      new Array('Photo 4','Ancient and antique terra cotta.jpg',534,400,''),
      new Array('Photo 5','Ancient.jpg',534,400,''),
      new Array('Photo 6','la jolla tumble.jpg',534,400,''),
      new Array('Photo 7','Tumble Tuscana 1.jpg',534,400,''),
      new Array('Photo 8','Tumble Tuscana 2.jpg',517,400,''),
      new Array('Photo 9','Tuscana 0.jpg',534,400,''),
      new Array('Photo 10','Tuscana 1.jpg',534,400,''),
      new Array('Photo 11','Tuscana 3.jpg',534,400,''),
      new Array('Photo 12','Tuscana 4_1.jpg',534,400,''),
      new Array('Photo 13','Tuscana 5.jpg',534,400,''),
      new Array('Photo 14','Tuscana 6_2.jpg',534,400,''),
      new Array('Photo 15','Tuscana 7.jpg',534,400,''),
      new Array('Photo 16','Tuscana 8_1.jpg',534,400,'')
    ),0
  ),

  new Array('Walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Celtic Wall Sierra 2.jpg',534,400,''),
      new Array('Photo 2','Celtic Wall Sierra 3.jpg',534,400,''),
      new Array('Photo 3','Celtic Wall.jpg',534,400,''),
      new Array('Photo 4','Country Manor Tuscana.jpg',534,400,''),
      new Array('Photo 5','Sierra Blend Country Manor 1.jpg',534,400,''),
      new Array('Photo 6','Sierra Blend Country Manor 2.jpg',534,400,''),
      new Array('Photo 7','Sierra Blend Country Manor 3.jpg',534,400,''),
      new Array('Photo 8','Sierra Blend Country Manor 4.jpg',534,400,''),
      new Array('Photo 9','Sierra Blend Country Manor 5.jpg',534,400,''),
      new Array('Photo 10','Tuscana celtic.jpg',534,400,''),
      new Array('Photo 11','Tuscana mini celtic.jpg',534,400,''),
      new Array('Photo 12','Victorian Celtic 01.jpg',534,400,''),
      new Array('Photo 13','Victorian Celtic 02.jpg',534,400,''),
      new Array('Photo 14','Victorian Celtic 05.jpg',534,400,''),
      new Array('Photo 15','Victorian Celtic 06.jpg',534,400,''),
      new Array('Photo 16','Victorian Celtic 07.jpg',534,400,''),
      new Array('Photo 17','Victorian Celtic 08.jpg',534,400,''),
      new Array('Photo 18','Victorian Celtic 09.jpg',534,400,''),
      new Array('Photo 19','Victorian Celtic 10.jpg',534,400,''),
      new Array('Photo 20','Victorian Celtic 11.jpg',534,400,''),
      new Array('Photo 21','Victorian Celtic 12.jpg',534,400,''),
      new Array('Photo 22','Victorian Celtic 13.jpg',534,400,''),
      new Array('Photo 23','Victorian Celtic 14.jpg',534,400,''),
      new Array('Photo 24','Victorian Celtic 15.jpg',534,400,''),
      new Array('Photo 25','Victorian Celtic 16.jpg',534,400,'')
    ),0
  )

)

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 preloadphotos() {
  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;">');
  document.write('<option value="">Please select...</option>');
  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]);
}
