/*
*	Loads the gallery, taking a set id as the parameter
*	Used on the main page and the gallery page
* 	Basically wraps the galleria code in a little function 
*	so we can more easily call it with a parameter & maintain it centrally
*/
function loadGallery(set_id,num){
	// Load theme
	Galleria.loadTheme('./src/themes/classic/galleria.classic.js');
	
	// initialize flickr plugin
	var flickr = new Galleria.Flickr('49b5a667b704407d552e6f52cb73fa45');
	
	// search for photos in desired set
	flickr.setOptions({
		max: num,
		sort: 'date-posted-asc',
		size: 'big'
	}).getSet(set_id, function(data) {
		$('#galleria').galleria({
			data_source: data,
			image_crop: false,
			frame_color: '#000',
			frame_width: '2px',
			hide_dock: false,
			extend: function() {
				this.$('info,counter').hide();
			}
		});
	});
}
