// JavaScript Documentvar MyGallery = gallery.extend({    initialize: function(element, options) {        this.parent(element, options);        this.canShowInfoPanel = false;        element.addEvent('mouseenter', this._showInfoPanel.bind(this));        element.addEvent('mouseleave', this._hideInfoPanel.bind(this));    },    showInfoSlideShow: function() {        if (this.canShowInfoPanel) {            this.parent();        }    },    _showInfoPanel: function() {        this.canShowInfoPanel = true;        this.showInfoSlideShow();    },    _hideInfoPanel: function() {        this.canShowInfoPanel = false;        this.hideInfoSlideShow();    }});window.addEvent('domready', function() {    $$('.smoothGallery').forEach(function(galleryContainer) {        new MyGallery(galleryContainer, {            timed: true,            showArrows: true,            showCarousel: false,            embedLinks: false        });    });});
