
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.htm';
scriptName = 'portfolio.js';
countX = 3;
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('Portfolio','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('33 r st before','33 r st before.jpg',300,400),
      new Array('33 r st after','33 r st after.jpg',300,400),
      new Array('Cleaned brick and mortar removed','cleaned brick and mortar removed.jpg',534,400),
      new Array('Cleaned brick and mortar removed 2','cleaned brick and mortar removed 2.jpg',534,400),
      new Array('Cleaned brick and mortar removed 4','cleaned brick and mortar removed 4.jpg',534,400),
      new Array('Cleaned brick and mortar removed 3','cleaned brick and mortar removed3.jpg',534,400),
      new Array('Cleaning finished','cleaning finished.jpg',534,400),
      new Array('Concrete before','concrete before.jpg',300,400),
      new Array('Concrete after','concrete after.jpg',300,400),
      new Array('Concrete after2','concrete after2.jpg',300,400),
      new Array('Concrete pour 2','concrete pour 2.jpg',534,400),
      new Array('Concrete pour','concrete pour.jpg',534,400),
      new Array('Concrete steps forms','concrete steps forms.jpg',300,400),
      new Array('Danny','Danny.jpg',290,290),
      new Array('E st 2','e st 2.jpg',300,400),
      new Array('E st before','e st before.jpg',300,400),
      new Array('E st after','e st after.jpg',300,400),
      new Array('E st','e st.jpg',300,400),
      new Array('Laplata back before','laplata back before.jpg',534,400),
      new Array('Laplata front after','laplata front after.jpg',534,400),
      new Array('Laplata half','laplata half.jpg',534,400),
      new Array('Mass ave before','mass ave before.jpg',300,400),
      new Array('Mass ave after','mass ave after.jpg',300,400),
      new Array('Mass ave steps rebuilt brick','mass ave steps rebuilt brick.jpg',534,400),
      new Array('Md ave before','md ave before.jpg',300,400),
      new Array('Md ave after','md ave after.jpg',300,400),
      new Array('Photo 1','P1010193.jpg',534,400),
      new Array('Photo 2','Picture 021.jpg',300,400),
      new Array('Photo 3','Picture 036.jpg',300,400),
      new Array('Photo 4','Picture 055.jpg',300,400),
      new Array('Photo 5','Picture 061.jpg',300,400),
      new Array('Photo 6','Picture 077.jpg',534,400),
      new Array('Photo 7','Pointingplus.jpg',480,360),
      new Array('Q st after','q st after.jpg',300,400),
      new Array('Q st after 2','q st after 2.jpg',300,400),
      new Array('Photo 8','Work photos 012.jpg',534,400),
      new Array('Photo 9','Work photos 015.jpg',534,400),
      new Array('Photo 10','Work photos 054.jpg',300,400),
      new Array('Photo 11','Work photos013.jpg',534,400),
      new Array('Photo 12','Workphoto27 001.jpg',310,400),
      new Array('8th street after','8th street after.jpg',300,400),
      new Array('E street mansion','E street mansion.jpg',534,400),
      new Array('good job','good job.jpg',534,400),
      new Array('granite wall before','granite wall before.jpg',534,400),
      new Array('granite wall after','granite wall after.jpg',534,400),
      new Array('paver work','paver work.jpg',534,400)
    )
  ),
*/

  new Array('Brick and Concrete Walkways','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Brick walkway after (1)','Brick walkway after (1).jpg',534,400),
      new Array('Brick walkway after (2)','Brick walkway after (2).jpg',300,400),
      new Array('Brick walkway after','Brick walkway after.jpg',534,400),
      new Array('Brick walkway Before (1)','Brick walkway Before (1).jpg',534,400),
      new Array('Brick walkway Before (2)','Brick walkway Before (2).jpg',534,400),
      new Array('Brick walkway Before (3)','Brick walkway Before (3).jpg',534,400),
      new Array('Brick walkway Before','Brick walkway Before.jpg',534,400),
      new Array('Formwork (1)','Formwork (1).jpg',534,400),
      new Array('Formwork (2)','Formwork (2).jpg',534,400),
      new Array('Formwork','Formwork.jpg',300,400),
      new Array('Laplata walkway (1)','Laplata walkway (1).jpg',534,400),
      new Array('Laplata walkway','Laplata walkway.jpg',534,400),
      new Array('N.W. Porch and walkway after (1)','N.W. Porch and walkway after (1).jpg',300,400),
      new Array('N.W. Porch and walkway after (2)','N.W. Porch and walkway after (2).jpg',300,400),
      new Array('N.W. Porch and walkway after','N.W. Porch and walkway after.jpg',320,240),
      new Array('N.W. porch and walkway Before (1)','N.W. porch and walkway Before (1).jpg',312,400),
      new Array('N.W. porch and walkway Before (2)','N.W. porch and walkway Before (2).jpg',534,400),
      new Array('N.W. porch and walkway Before (3)','N.W. porch and walkway Before (3).jpg',534,400),
      new Array('N.W. porch and walkway Before','N.W. porch and walkway Before.jpg',312,400),
      new Array('NW Porch and walkway Before','NW Porch and walkway Before.jpg',300,400),
      new Array('S.E. porch and walkway after (1)','S.E. porch and walkway after (1).jpg',300,400),
      new Array('S.E. porch and walkway after (2)','S.E. porch and walkway after (2).jpg',534,400),
      new Array('S.E. porch and walkway after (3)','S.E. porch and walkway after (3).jpg',534,400),
      new Array('S.E. porch and walkway after (4)','S.E. porch and walkway after (4).jpg',534,400),
      new Array('S.E. porch and walkway after (5)','S.E. porch and walkway after (5).jpg',300,400),
      new Array('S.E. porch and walkway after (6)','S.E. porch and walkway after (6).jpg',534,400),
      new Array('S.E. porch and walkway after (7)','S.E. porch and walkway after (7).jpg',300,400),
      new Array('S.E. porch and walkway after','S.E. porch and walkway after.jpg',300,400),
      new Array('S.E. Porch and walkway before 2','S.E. Porch and walkway before 2.jpg',534,400),
      new Array('S.E. Porch and walkway before 3','S.E. Porch and walkway before 3.jpg',534,400),
      new Array('S.E. Porch and walkway before 4','S.E. Porch and walkway before 4.jpg',534,400),
      new Array('S.E. Porch and walkway before 5','S.E. Porch and walkway before 5.jpg',534,400),
      new Array('S.E. Porch and walkway before','S.E. Porch and walkway before.jpg',534,400),
      new Array('Stone walkways (1)','Stone walkways (1).jpg',534,400),
      new Array('Stone walkways (2)','Stone walkways (2).jpg',534,400),
      new Array('Stone walkways (3)','Stone walkways (3).jpg',534,400),
      new Array('Stone walkways','Stone walkways_1.jpg',534,400)
    )
  ),

  new Array('Brick Cleaning','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Brick and stone cleaning After','Brick and stone cleaning After.jpg',300,400),
      new Array('Brick and stone cleaning Before','Brick and stone cleaning Before.jpg',300,400),
      new Array('Brick and stone cleaning','Brick and stone cleaning_1.jpg',534,400),
      new Array('Brick and stone cleaning','Brick and stone cleaning.jpg',300,400),
      new Array('China Town Before','China Town Before_1.jpg',300,400),
      new Array('China Town Before','China Town Before.jpg',534,400),
      new Array('Laplata Restoration (2)','Laplata Restoration (2).jpg',534,400),
      new Array('Laplata Restoration','Laplata Restoration.jpg',534,400),
      new Array('Mass. Ave. before (1)','Mass. Ave. before (1).jpg',300,400),
      new Array('Mass. Ave. before','Mass. Ave. before.jpg',300,400),
      new Array('MD Ave. before (1)','MD Ave. before (1).jpg',300,400),
      new Array('MD Ave. before','MD Ave. before.jpg',300,400),
      new Array('Paint removal E St. NE (1)','Paint removal E St. NE (1).jpg',300,400),
      new Array('Paint removal E St. NE','Paint removal E St. NE.jpg',300,400),
      new Array('Paint removal Methods (1)','Paint removal Methods (1).jpg',320,240),
      new Array('Paint removal Methods','Paint removal Methods.jpg',320,240),
      new Array('Paint removal NE after (1)','Paint removal NE after (1).jpg',300,400),
      new Array('Paint removal NE after','Paint removal NE after.jpg',300,400),
      new Array('Paint Removal Ne Before','Paint Removal Ne Before.jpg',300,400),
      new Array('q st after 2','q st after 2_1.jpg',300,400),
      new Array('q st after','q st after_1.jpg',300,400),
      new Array('q st before','q st before.jpg',300,400),
      new Array('restore after','restore after.jpg',534,400),
      new Array('restore before','restore before.jpg',534,400),
      new Array('swann st after','swann st after.jpg',300,400),
      new Array('swann st before','swann st before.jpg',300,400),
      new Array('swann st2 after','swann st2 after.jpg',300,400),
      new Array('this old house after','this old house after.jpg',300,400)
    )
  ),

  new Array('Brick Construction','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Arch Reconstruction (1)','Arch Reconstruction (1).jpg',534,400),
      new Array('Arch Reconstruction','Arch Reconstruction.jpg',534,400),
      new Array('Chimny Reconstruction','Chimny Reconstruction.jpg',300,400),
      new Array('Corbelled cornice Restoration (1)','Corbelled cornice Restoration (1).jpg',534,400),
      new Array('Corbelled cornice Restoration (2)','Corbelled cornice Restoration (2).jpg',300,400),
      new Array('Corbelled cornice Restoration','Corbelled cornice Restoration.jpg',534,400),
      new Array('Facade Reconstruction After (1)','Facade Reconstruction After (1).jpg',534,400),
      new Array('Facade Reconstruction After (2)','Facade Reconstruction After (2).jpg',300,400),
      new Array('Facade Reconstruction after (3)','Facade Reconstruction after (3).jpg',300,400),
      new Array('Facade Reconstruction after (4)','Facade Reconstruction after (4).jpg',300,400),
      new Array('Facade Reconstruction After','Facade Reconstruction After.jpg',534,400),
      new Array('Facade Reconstruction Before','Facade Reconstruction Before.jpg',300,400),
      new Array('mass ave steps rebuilt brick','mass ave steps rebuilt brick_1.jpg',480,385),
      new Array('wpp- Handicap walkway repair Before','wpp- Handicap walkway repair Before.jpg',300,400),
      new Array('wpp- Handicap Walkway Repair complete','wpp- Handicap Walkway Repair complete.jpg',534,400),
      new Array('wpp- Masonry repair Before cleaning','wpp- Masonry repair Before cleaning.jpg',534,400),
      new Array('wpp- Masonry Repair complete','wpp- Masonry Repair complete.jpg',534,400),
      new Array('WPP- masonry retaining walls leading to Steps only verticals caulked','WPP- masonry retaining walls leading to Steps only verticals caulked.jpg',577,400)
    )
  ),

  new Array('Interior Brick Work and Plaster Repair','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('beach 022','beach 022.jpg',534,400),
      new Array('Plaster removal (1)','Plaster removal (1).jpg',534,400),
      new Array('Plaster removal (2)','Plaster removal (2).jpg',534,400),
      new Array('Plaster removal (3)','Plaster removal (3).jpg',534,400),
      new Array('Plaster removal','Plaster removal.jpg',534,400),
      new Array('Plaster repair (1)','Plaster repair (1).jpg',534,400),
      new Array('Plaster repair','Plaster repair.jpg',320,240)
    )
  ),

  new Array('Just Finished','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Chinatown restoration (1)','Chinatown restoration (1).jpg',300,400),
      new Array('Chinatown restoration (2)','Chinatown restoration (2).jpg',300,400),
      new Array('Chinatown restoration (3)','Chinatown restoration (3)_1.jpg',300,400),
      new Array('Chinatown restoration (4)','Chinatown restoration (4).jpg',379,400),
      new Array('Chinatown restoration','Chinatown restoration.jpg',300,400),
      new Array('Meridian International (1)','Meridian International (1).jpg',534,400),
      new Array('Meridian International (2)','Meridian International (2).jpg',534,400),
      new Array('Meridian International (4)','Meridian International (4).jpg',534,400),
      new Array('Meridian International','Meridian International.jpg',534,400)
    )
  ),
/*
  new Array('Rotating Folder','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Basement Reconstruction','Basement Reconstruction.jpg',300,400),
      new Array('Brick walkway after (1)','Brick walkway after (1)_1.jpg',534,400),
      new Array('Chinatown restoration (3)','Chinatown restoration (3).jpg',300,400),
      new Array('S.E. porch and walkway after (5)','S.E. porch and walkway after (5)_1.jpg',300,400),
      new Array('S.E. porch and walkway after (6)','S.E. porch and walkway after (6)_1.jpg',534,400),
      new Array('Stone Restoration','Stone Restoration.jpg',300,400),
      new Array('Stone walkways','Stone walkways.jpg',534,400)
    )
  ),
*/
  new Array('Stonework','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Granite Stone Restoration','granite_stone_restoration.jpg',640,480),
      new Array('Block work (1)','Block work (1).jpg',534,400),
      new Array('Block work (1)','Block work (1).jpg',534,400),
      new Array('Block work (2)','Block work (2).jpg',300,400),
      new Array('Block work (3)','Block work (3).jpg',300,400),
      new Array('Block work','Block work.jpg',534,400),
      new Array('Brownstone Restoration (1)','Brownstone Restoration (1).jpg',300,400),
      new Array('Brownstone Restoration','Brownstone Restoration.jpg',300,400),
      new Array('Granite home restoration','Granite home restoration.jpg',534,400),
      new Array('Granite stone Restoration (1)','Granite stone Restoration (1).jpg',534,400),
      new Array('Granite stone Restoration (2)','Granite stone Restoration (2).jpg',534,400),
      new Array('Granite stone Restoration (3)','Granite stone Restoration (3).jpg',534,400),
      new Array('Granite stone Restoration (4)','Granite stone Restoration (4).jpg',534,400),
      new Array('Granite Stone Restoration (5)','Granite Stone Restoration (5).jpg',601,400),
      new Array('Granite stone Restoration','Granite stone Restoration.jpg',534,400),
      new Array('Limestone 2','Limestone 2.jpg',534,400),
      new Array('Limestone','Limestone.jpg',534,400),
      new Array('Whitemeyer right side loggia','Whitemeyer right side loggia.jpg',534,400)
    )
  ),

  new Array('Underpinning and Basement Reconstruction','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Basement Reconstruction (1)','Basement Reconstruction (1).jpg',300,400),
      new Array('Basement Reconstruction (2)','Basement Reconstruction (2).jpg',300,400),
      new Array('Basement Reconstruction (3)','Basement Reconstruction (3).jpg',300,400),
      new Array('Basement Reconstruction (4)','Basement Reconstruction (4).jpg',300,400),
      new Array('Basement Reconstruction (5)','Basement Reconstruction (5).jpg',534,400)
    )
  )

)

/*
catalog images
//      new Array('Danny dc','dannydc.jpg',291,400),
//      new Array('Photo 10','thisoldhousejune.jpg',310,400),
//      new Array('Photo 11','thisoldhousemay.jpg',291,400),
//      new Array('Photo 17','Workphoto22 001.jpg',308,400),
//      new Array('Photo 18','Workphoto22.jpg',345,400),
//      new Array('Photo 19','Workphoto25.jpg',290,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; 

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]);
}
