
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'gallery_photos.htm';
scriptName = 'gallery.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('Private Instruction','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Baseball','PRIV_INST_002.jpg',534,400),
      new Array('Volleyball','Volleyball PI.jpg',534,400),
      new Array('Strength and Conditioning','PRIV_INST.jpg',534,400),
      new Array('Up we go!','PRIV_INST_001.jpg',300,400)
    )
  ),


  new Array('Basketball','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Say cheese!','rest_jpg.jpg',534,400),
      new Array('CONCENTRATION!','concentration_jpg.jpg',534,400),
      new Array('Getting ready to DRIVE','DRIVE_jpg.jpg',534,400),
      new Array('Form Shooting','freethrow_jpg.jpg',300,400),
      new Array('Quick shot!','going back up_jpg.jpg',534,400),
      new Array('Technique is EVERYTHING!','freethrow2_jpg.jpg',300,400),
      new Array('`THE PIT`....`nough said!','THE PIT_JPG.jpg',534,400),
      new Array('Jr. DRIVE Basketball Camp','DRIVE BB_jpg.jpg',534,400),
      new Array('Awards Time!','DRIVE awards_jpg.jpg',534,400),
      new Array('Most Improved Award','DRIVE Most Improved_jpg.jpg',300,400),
      new Array('Are you DRIVEN?','YouDRIVEN_jpg.jpg',300,400),
      new Array('Warmups','shuffling.jpg',534,400),
      new Array('Ball Handling','ballhandling-knees.jpg',300,400),
      new Array('Dribbling','dribblingsitting1.jpg',534,400),
      new Array('Say Cheese!','jrbasketball 010.jpg',534,400),
      new Array('GIve me FIVE!!','jrbasketball 020.jpg',534,400),
      new Array('Shooting','Shooting_jpg.jpg',300,400),
		new Array('','blockingout.jpg',550,400,''),
		new Array('','boys.jpg',550,400,''),
		new Array('','boys10.jpg',300,448,''),
		new Array('','boys11.jpg',300,448,''),
		new Array('','boys12.jpg',550,400,''),
		new Array('','boys13.jpg',300,448,''),
		new Array('','boys2.jpg',550,400,''),
		new Array('','boys3.jpg',300,448,''),
		new Array('','boys4 (2).jpg',550,400,''),
		new Array('','boys4.jpg',550,400,''),
		new Array('','boys6.jpg',300,448,''),
		new Array('','boys7.jpg',550,400,''),
		new Array('','boys8.jpg',550,400,''),
		new Array('','boys9.jpg',550,400,''),
		new Array('','boysbball1.jpg',550,400,'')
    )
  ),

  new Array('Football','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Move those feet!','Move those feet_jpg.jpg',534,400),
      new Array('Buds','buds_jpg.jpg',534,400),
      new Array('Posing with DRIVE Certificate','award winner_jpg.jpg',300,400),
      new Array('He drops back','He drops back_jpg.jpg',534,400),
      new Array('DRIVEN_jpg','DRIVEN_jpg.jpg',534,400),
      new Array('Nice catch!','one handed grab_jpg.jpg',534,400),
      new Array('Footwork is KEY!','Footwork_jpg.jpg',534,400),
      new Array('Get`em up!!','drivefootball_jpg_001.jpg',300,400),
      new Array('Quick feet!!!','ftball-ladders_jpg.jpg',534,400),
      new Array('Looking Cool','lookingcool_jpg.jpg',534,400),
      new Array('Lunges','Lunges_jpg.jpg',534,400)
    )
  ),

  new Array('Volleyball','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Digging Drills!','DRIVE BB-VB 2008 200.jpg',534,400),
      new Array('MOVE THOSE FEET!','DRIVE BB-VB 2008 153.jpg',534,400),
      new Array('Digging Drills!','Digging_jpg.jpg',534,400),
      new Array('Dig & Roll.........Dig & Roll','Rolls_jpg.jpg',534,400),
      new Array('Coach Molina teaching more ladder drills','Ladders_jpg.jpg',534,400),
      new Array('ARE YOU DRIVEN?','Drive VBall 2008 002.jpg',534,400),
      new Array('1, 2, 3, DRIVE!','break_jpg.jpg',300,400),
      new Array('Going UP!','Spike_jpg.jpg',300,400),
      new Array('Passing','DRIVE VB Summer 07 170_jpg.jpg',534,400),
      new Array('Here it comes!!','DRIVE VB Summer 07 174_jpg.jpg',534,400),
      new Array('Award Time!','DRIVE VB Summer 07 203_jpg.jpg',534,400),
      new Array('Get it up!','DRIVE VB Summer 07 185_jpg.jpg',300,400),
      new Array('Taking a breather','DRIVE VB Summer 07 198_jpg.jpg',534,400)
    )
  ),

new Array('Speed &amp; Agility','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
		new Array('','DRIVE BASKETBALL SUMMER 2009 165.jpg',550,400,''),
		new Array('','DRIVE BASKETBALL SUMMER 2009 167.jpg',550,400,''),
		new Array('','DRIVE BASKETBALL SUMMER 2009 170.jpg',550,400,''),
		new Array('','DRIVE BASKETBALL SUMMER 2009 180.jpg',550,400,''),
		new Array('','DRIVE BASKETBALL SUMMER 2009 190.jpg',550,400,''),
		new Array('','DRIVE CAMPS 2009 BBALL-SA-VB 032.jpg',550,400,''),
		new Array('','DRIVE CAMPS 2009 BBALL-SA-VB 033.jpg',400,373,''),
		new Array('','DRIVE CAMPS 2009 BBALL-SA-VB 044.jpg',300,448,''),
		new Array('','DRIVE CAMPS 2009 BBALL-SA-VB 061.jpg',550,400,''),
		new Array('','DRIVE CAMPS 2009 BBALL-SA-VB 097.jpg',300,448,''),
		new Array('','DRIVE CAMPS 2009 BBALL-SA-VB 102.jpg',550,400,''),
		new Array('','DRIVE CAMPS 2009 BBALL-SA-VB 119.jpg',550,400,''),
		new Array('','DRIVE CAMPS 2009 BBALL-SA-VB 239.jpg',550,400,''),
		new Array('','ianladders2.jpg',300,448,''),
		new Array('','medbagrun.jpg',550,400,''),
		new Array('','sprints.jpg',300,448,'')
		)
  )

)


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]);
}

