Galleria.addTheme({
    name: 'microsite',
    author: 'Nathanael Smith, BLITZ',
    version: 1,
    css: 'galleria.microsite.css',
    defaults: {
        // add your own default options here
        transition: 'fade',
        imagecrop: true
    },
    init: function(options) {

        /*
        The init function get's called when galleria is ready.
        You have access to all public methods and events in here
        this = gallery instance
        options = gallery options (including custom options)
        */

        // set the container's background to the theme-specific _my_color option:
        this.$('container').css('background-color', options._my_color);

        // bind a loader animation:
        this.bind(Galleria.LOADSTART, function(e) {
            if (!e.cached) {
                this.$('loader').show();
            }
        });
        this.bind(Galleria.LOADFINISH, function(e) {
            this.$('loader').hide();
        });
    }
});
