/*

	Gallery is just a wrapper for EmbeddedGallery and PopUpGallery
	Receives all the same configuration plus the 'type' directive,
	which can be set to popup (default) or embed.

*/
function Gallery(container, args) {

	//Check type
	if(args['type'] && args['type'] == 'embed')
		return new EmbeddedGallery(container, args);
	else
		return new PopUpGallery(container, args);

}