]> www.average.org Git - mkgallery.git/blobdiff - include/showwin.js
switch to "new" slideshow (which is not working yet)
[mkgallery.git] / include / showwin.js
index 6171ba2ee47ab5538f4bb6392578a7d995576e73..3fac7f6b7de60a29bccb29fa38516cc41447cf0e 100644 (file)
@@ -18,6 +18,7 @@ var showWindow = new Class({
                return {
                        zIndex: 2,
                        container: document.body,
+                       tohide: '',
                        onClick: $empty,
                }
        },
@@ -26,6 +27,7 @@ var showWindow = new Class({
                this.setOptions(this.getOptions(), options);
 
                this.options.container = $(this.options.container);
+               this.options.tohide = $(this.options.tohide);
 
                this.container = new Element('div').addClass(name).
                setProperties({
@@ -65,10 +67,16 @@ var showWindow = new Class({
        },
 
        show: function(){
+               if (this.options.tohide) {
+                       this.options.tohide.setStyle('display', 'none');
+               }
                this.container.setStyle('display', 'block');
        },
 
        hide: function(){
+               if (this.options.tohide) {
+                       this.options.tohide.setStyle('display', 'block');
+               }
                this.container.setStyle('display', 'none');
        }
 })