
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'contractors.htm';
scriptName = 'portfolio.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('Natural Stone','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','F-Comm1.jpg',700,499,''),
		new Array('','F-Comm2.jpg',700,360,''),
		new Array('','F-Comm3.jpg',700,576,''),
		new Array('','F-Comm4.jpg',700,282,''),
		new Array('','F-Cut1.jpg',704,525,''),
		new Array('','F-Res1.jpg',704,417,''),
		new Array('','F-Res3.jpg',704,641,'')
    )
  ),
  new Array('Decorative Concrete','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('','8-7-2007-02.jpg',593,400,''),
      new Array('','8-7-2007-03.jpg',593,400,''),
      new Array('','8-7-2007-04.jpg',593,400,''),
      new Array('','8-7-2007-05.jpg',593,400,''),
      new Array('','8-7-2007-06.jpg',593,400,''),
      new Array('','8-7-2007-07.jpg',270,400,''),
      new Array('','8-7-2007-08.jpg',593,400,''),
      new Array('','8-7-2007-09.jpg',593,400,''),
      new Array('','ashlardrive1.jpg',534,400,''),
      new Array('','ashlar_overhead_patio.jpg',400,295,''),
      new Array('','ashlar_shadow.jpg',389,294,''),
      new Array('','ashlar_walkway.jpg',388,292,''),
		new Array('','Decorative_001.jpg',596,400,''), 
		new Array('','Decorative_003.jpg',264,400,''), 
		new Array('','Decorative_004.jpg',581,400,''), 
		new Array('','Decorative_005.jpg',567,400,''), 
		new Array('','Decorative_006.jpg',576,400,''), 
		new Array('','Decorative_007.jpg',579,400,''), 
		new Array('','Decorative_008.jpg',264,400,''), 
		new Array('','Decorative_009.jpg',261,392,''), 
		new Array('','Decorative_013.jpg',257,400,''), 
		new Array('','Decorative_014.jpg',605,400,''), 
		new Array('','Decorative_015.jpg',576,400,''), 
		new Array('','Decorative_016.jpg',584,400,''), 
		new Array('','Decorative_017.jpg',278,400,''), 
		new Array('','Decorative_018.jpg',591,400,''), 
		new Array('','Decorative_019.jpg',563,400,''), 
		new Array('','Decorative_020.jpg',609,400,''), 
		new Array('','Decorative_021.jpg',593,400,''), 
		new Array('','Decorative_022.jpg',590,400,''), 
		new Array('','Decorative_023.jpg',595,400,''), 
		new Array('','Decorative_024.jpg',278,400,''), 
		new Array('','Decorative_025.jpg',263,400,''), 
		new Array('','Decorative_026.jpg',608,400,''), 
		new Array('','Decorative_027.jpg',610,400,''),

      new Array('','8-7-2007-01.jpg',593,400,''),
      new Array('','ashsfbwal.jpg',532,401,''),
      new Array('','heavystonepatio1.jpg',534,400,''),
      new Array('','majesticashin2.jpg',238,400,''),
      new Array('','majesticashlarchurchaisle1.jpg',534,400,''),
      new Array('','majesticashlarpatio2.jpg',534,400,''),
      new Array('','majesticashlartoolshot1.jpg',534,400,''),
      new Array('','majesticpatio.jpg',241,400,''),
      new Array('','stamp heavystone.jpg',534,400,''),
      new Array('','woodplankdiagtoolshot3.jpg',534,400,''),
      new Array('','woodplankporch1.jpg',534,400,''),
      new Array('','woodplankverttoolshot1.jpg',534,400,'')

    )
  ),
  new Array('Ready Mix Trucks','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('We have a large fleet of front discharge transit mixer trucks.','Mix_Trucks_001.jpg',533,400,''), 
		new Array('We maintain a modern fleet of trucks and take pride in our American Colors theme.','Mix_Trucks_002.jpg',533,400,''), 
		new Array('We provide concrete to the Wisconsin Department of Transportation for highway construction.','Mix_Trucks_003.jpg',533,400,''), 
		new Array('We provide concrete for new home construction with front discharge 6-wheel drive trucks.','Mix_Trucks_004.jpg',613,395,''), 
		new Array('','Mix_Trucks_005.jpg',700,221,''), 
		new Array('','Mix_Trucks_006.jpg',700,326,'') 
    )
  ),
  new Array('Pavers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','Pavers_001.jpg',533,400,''), 
		new Array('','Pavers_002.jpg',533,400,''), 
		new Array('','Pavers_003.jpg',500,235,''), 
		new Array('','Pavers_004.jpg',250,325,''), 
		new Array('','Pavers_005.jpg',325,250,''), 
		new Array('','Pavers_006.jpg',325,250,''),
		new Array('','pavers_dscn1483.jpg',533,400,''), 
		new Array('','pavers_dscn1516.jpg',300,400,''), 
		new Array('','pavers_dscn1574.jpg',533,400,''), 
		new Array('','pavers_dscn1670.jpg',533,400,''), 
		new Array('','pavers_dscn1675.jpg',300,400,''), 
		new Array('','pavers_dscn2017.jpg',300,400,''), 
		new Array('','pavers_dscn2033.jpg',533,400,''), 
		new Array('','pavers_dscn2035.jpg',533,400,''), 
		new Array('','pavers_dscn2045.jpg',533,400,''),
		new Array('','pavers_dscn2049.jpg',533,400,''), 
		new Array('','pavers_dscn2052.jpg',533,400,''), 
		new Array('','pavers_dscn2056.jpg',533,400,''), 
		new Array('','pavers_dscn2136.jpg',533,400,'') 		
    )
  ),
  new Array('Retaining Wall','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','Walls_001.jpg',360,270,''), 
		new Array('','Walls_002.jpg',360,265,''), 
		new Array('','Walls_003.jpg',360,270,''), 
		new Array('','Walls_004.jpg',360,240,''), 
		new Array('','Walls_005.jpg',360,261,''), 
		new Array('','Walls_006.jpg',360,231,''), 
		new Array('','Walls_008.jpg',360,212,''), 
		new Array('','Walls_010.jpg',360,270,''), 
		new Array('','Walls_011.jpg',360,274,''), 
		new Array('','Walls_012.jpg',360,239,''), 
		new Array('','Walls_013.jpg',360,256,''), 
		new Array('','Walls_014.jpg',360,244,''), 
		new Array('','Walls_015.jpg',360,319,''), 
		new Array('','Walls_016.jpg',360,241,''),
		new Array('','SpokaneCCsharp.jpg',360,260,''),
		new Array('','walls_dscn1514.jpg',533,400,''), 
		new Array('','walls_dscn1582.jpg',533,400,''), 
		new Array('','walls_dscn2203.jpg',533,400,'')
    )
  ),
  new Array('Mesa Retaining Wall Stock Colors','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('Brown MESA','brown_mesa_2.jpg',533,400,''), 
		new Array('Buff MESA','buff_mesa_2.jpg',700,359,''), 
		new Array('Gray MESA','gray_mesa.jpg',616,400,'')
    )
  ),
  new Array('Seat Walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','seatwalls_397808-r1-030-13a_016.jpg',592,400,''), 
		new Array('','seatwalls_8-7-2007-05.jpg',592,400,''), 
		new Array('','seatwalls_dscn1642.jpg',533,400,'')
    )
  ),
  new Array('Cultured Stone','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','cul_st_Photo_1.jpg',410,325,''), 
		new Array('','cul_st_Photo_2.jpg',410,318,''), 
		new Array('','cul_st_photo_3.jpg',410,360,''), 
		new Array('','cul_st_photo_4.jpg',410,244,''), 
		new Array('','cul_st_photo_5.jpg',410,287,''), 
		new Array('','cul_st_photo_6.jpg',328,437,''), 
		new Array('','cul_st_photo_7.jpg',410,308,''), 
		new Array('','cul_st_photo_8.jpg',410,481,''), 
		new Array('','cul_st_photo_9.jpg',410,501,''), 
		new Array('','cul_st_photo_10.jpg',410,470,''), 
		new Array('','cul_st_photo_11.jpg',379,403,''), 
		new Array('','cul_st_photo_12.jpg',386,322,''), 
		new Array('','cul_st_photo_13.jpg',320,480,''), 
		new Array('','cul_st_photo_14.jpg',410,293,''), 
		new Array('','cul_st_photo_15.jpg',410,514,''), 
		new Array('','cul_st_photo_16.jpg',410,244,''), 
		new Array('','cul_st_photo_17.jpg',410,252,''), 
		new Array('','cul_st_photo_18.jpg',410,550,''), 
		new Array('','cul_st_photo_19.jpg',410,320,''), 
		new Array('','cul_st_photo_20.jpg',410,524,''), 
		new Array('','cul_st_photo_21.jpg',410,340,'')
    )
  )  
)

section = getParameter(self.document.location.href, 'section');
if (isNaN(section) || (section=='') || (section<0) || (section>arImages.length-1))
  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 nowrap>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]);
}

