currentFrame = [];
for (photo=0; photo<images.length; photo++) {
	 currentFrame.push(0);
  for (frame=0; frame<images[photo].length; frame++) {
    MM_preloadImages('../assets_home_group/images/photos/' + images[photo][frame][0]);
  }
}
setTimeout('stepAnim()', period);

function stepAnim() { // cycle through images
  for (photo=0; photo<images.length; photo++) {
		  currentFrame[photo]++;
	  	if (currentFrame[photo] >= images[photo].length) {currentFrame[photo] = 0;}
    MM_swapImage('photo' + photo, '', '../assets_home_group/images/photos/' + images[photo][currentFrame[photo]][0], 1);
  }
		setTimeout('stepAnim()', period);
}

function zoomAnim(photo) { // show image in a popup layer
	 showLayerToFront('zoom' + photo + '_' + currentFrame[photo]);
}