﻿Galleria.loadTheme('script/themes/classic/galleria.classic.js');


$(document).ready(function () {

    $('#TandCLink').click(function () {
        window.open("tandc.aspx", null, "height=400,width=300,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,top=100,left=100");
        return false;
    });

    // put all your jQuery goodness in here.
    $('.gallery').galleria({
        image_crop: false, // crop all images to fit
        thumb_crop: false, // crop all thumbnails to fit
        transition: 'fade', // crossfade photos
        transition_speed: 700, // slow down the crossfade
        image_position: '0px 0px',
        data_config: function (img) {
            // will extract and return image captions from the source:
            return {
                description: $(img).parent().next(".galleryCaption").html()
            };
        },
        extend: function () {
            this.bind(Galleria.IMAGE, function (e) {
                // bind a click event to the active image
                $(e.imageTarget).css('cursor', 'pointer').click(this.proxy(function () {
                    // open the image in a lightbox
                    this.openLightbox();
                }));
            });
        }
    });

    $(".galleria-image").css("text-align", "center");
});
