4 This is a part of mkgallery.pl suite
5 http://www.average.org/mkgallery/
7 Uses mootools (1.2) http://www.mootools.net/
8 Uses slideshow http://www.phatfusion.net/slideshow/
12 Hidable "fullscreen" Window for Slideshow
15 var showWindow = new Class({
17 getOptions: function(){
20 container: document.body,
25 initialize: function(name,options){
26 this.setOptions(this.getOptions(), options);
28 this.options.container = $(this.options.container);
30 this.container = new Element('div').addClass(name).
39 zIndex: this.options.zIndex,
42 }).addEvent('click', function(){
43 this.options.onClick()
44 }.bind(this)).injectInside(this.options.container);
48 window.addEvent('resize', this.position.bind(this));
49 window.addEvent('scroll', this.position.bind(this));
53 if(this.options.container == document.body){
54 this.h = window.getHeight();
55 this.s = window.getScrollTop();
57 var myCoords = this.options.container.getCoordinates();
58 this.h = myCoords.height;
59 this.s = myCoords.top;
61 this.container.setStyles({
68 this.container.setStyle('display', 'block');
72 this.container.setStyle('display', 'none');
75 showWindow.implement(new Options);