if (typeof(MobileVrOptions) == undefined) {
    MobileVrOptions = {};
}



MobileVrDelegate = {};
if (AC.Detector.isMobile()) {
    MobileVrDelegate = {
        didShow: function(view, outgoing, incoming) {
            if (incoming.id == '360') {
                var options = MobileVrOptions || {};
                Object.extend(MobileVrOptions, {
                    extension: 'jpg',
                    totalImages: 36,
                    imagesPerRow: 36,
                    startImage: [0, 0],
                    captureClick: false,
                    friction: 1.14,
                    residualVelocityX: 0.13,
                    container: incoming.content
                });

                var vr = new VRGallery(MobileVrOptions);
            }
        }
    }
}
