ajaxManager('load_page', galleryArray[gallery_index], 'galleryLYR');
ajaxManager('load_page', descriptionArray[description_index], 'captionLYR');
}
break;

This script isn't as complex as it first appears. Consider this line for a moment:

ajaxManager('load_page', galleryArray[gallery_index], 'galleryLYR');

It is the same line that we learned earlier on, except instead of naming a page like so

ajaxManager('load_page','somepage.html', 'galleryLYR');

We use the galleryArray as an argument.