// Initialize shadowbox class
Shadowbox.init({
    skipSetup: true
});

window.onload = function() {
	// Setup shadowbox events for feature galleries -- multiple groups of 2-5 images per page
	featureGalleries = $$('table.photoHighlights');
	featureGalleryCount = featureGalleries.length;

	for (var i = 0; i < featureGalleryCount; i++) {
		Shadowbox.setup(featureGalleries[i].getElements('a'), {
			gallery:	"featureGallery" + i
		});
	}
	
	// Setup shadowbox for full gallery page
	Shadowbox.setup($$('.gallery a'), {
		gallery: "maingallery"
	});
};

