
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('WRMCA 2006 Best Agricultural  Project in WI','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','Best2006_001.jpg',607,400,''), 
		new Array('','Best2006_002.jpg',633,400,''), 
		new Array('','Best2006_003.jpg',623,400,''), 
		new Array('','Best2006_004.jpg',607,400,''), 
		new Array('','Best2006_005.jpg',604,400,''), 
		new Array('','Best2006_006.jpg',604,400,''), 
		new Array('','Best2006_007.jpg',604,400,''), 
		new Array('','Best2006_008.jpg',609,400,''), 
		new Array('','Best2006_009.jpg',604,400,''), 
		new Array('','Best2006_010.jpg',601,400,''), 
		new Array('','Best2006_011.jpg',604,400,''), 
		new Array('','Best2006_012.jpg',604,400,''), 
		new Array('','Best2006_013.jpg',593,394,''), 
		new Array('','Best2006_014.jpg',606,400,''), 
		new Array('','Best2006_015.jpg',607,400,''), 
		new Array('','Best2006_016.jpg',609,400,''), 
		new Array('','Best2006_017.jpg',606,400,''), 
		new Array('','Best2006_018.jpg',623,400,''), 
		new Array('','Best2006_019.jpg',626,400,''), 
		new Array('','Best2006_020.jpg',257,400,''), 
//		new Array('','Best2006_021.jpg',607,400,''), 
		new Array('','Best2006_022.jpg',604,400,''), 
		new Array('','Best2006_023.jpg',606,400,''), 
		new Array('','Best2006_024.jpg',607,400,''), 
		new Array('','Best2006_025.jpg',609,400,''), 
		new Array('','Best2006_026.jpg',606,400,''), 
		new Array('','Best2006_027.jpg',623,400,''), 
		new Array('','Best2006_028.jpg',626,400,''), 
		new Array('','Best2006_029.jpg',257,400,''), 
		new Array('','Best2006_030.jpg',633,400,''), 
		new Array('','Best2006_031.jpg',623,400,''), 
		new Array('','Best2006_032.jpg',607,400,''), 
		new Array('','Best2006_033.jpg',604,400,''), 
		new Array('','Best2006_034.jpg',604,400,''), 
		new Array('','Best2006_035.jpg',604,400,''), 
		new Array('','Best2006_036.jpg',609,400,''), 
		new Array('','Best2006_037.jpg',604,400,''), 
		new Array('','Best2006_038.jpg',601,400,''), 
		new Array('','Best2006_039.jpg',604,400,''), 
		new Array('','Best2006_040.jpg',601,400,''), 
		new Array('','Best2006_041.jpg',591,393,'')
    )
  ),
  new Array('Decorative Concrete','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		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('','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('','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('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('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,'')
    )
  )
)

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]);
}
