smallSizes = new Array(77,55);

mediumSizes = new Array(265,190);

pageName = 'photos_airstrike.htm';

scriptName = 'photos_airstrike.js';

countX = 3;

countY = 2;

// sections: name, small images path, medium images path, big images path

// images: name, src, big width, big height

var arImages = new Array(

  new Array('AIRSTRIKE RECORDING!!!','images/photos/airstrike/small/','images/photos/airstrike/medium/','images/photos/airstrike/big/',

    new Array(

      new Array('Real Estate King Paul Purunjian Vibe`in hard on The New Chocolate.','PICT0141-copy.jpg'),

      new Array('Johnny D. Preparing for Final Day of "Airstrike"','PICT0135-copy.jpg'),

      new Array('','PICT0103-copy.jpg'),

      new Array('','PICT0105-copy.jpg'),

      new Array('','PICT0106-copy.jpg'),

      new Array('','PICT0110-copy.jpg'),

      new Array('','PICT0111-copy.jpg'),

      new Array('','PICT0112-copy.jpg'),

      new Array('','PICT0113-copy.jpg'),

      new Array('','PICT0114-copy.jpg'),

      new Array('','PICT0115-copy.jpg'),

      new Array('','PICT0118-copy.jpg'),

      new Array('','PICT0123-copy.jpg'),

      new Array('','PICT0133-copy.jpg'),

      new Array('','PICT0140.jpg'),

      new Array('','PICT0177.jpg'),

      new Array('','PICT0179.jpg'),

      new Array('','PICT0189.jpg')

    )

  )

)



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) {

  width = 660;

  height = 600;

  win = window.open('big_image.htm?script='+scriptName+'&section='+section

	+'&ind='+number,'_blank','width='+width+',height='+height

	+',left=17,top=17,statusbar=no,toolbar=no,scrollbars= never,navbar=no');

  win.focus();

}


