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(){
21 container: document.body,
26 initialize: function(name,options){
27 this.setOptions(this.getOptions(), options);
29 this.options.container = $(this.options.container);
31 this.container = new Element('div').addClass(name).
40 zIndex: this.options.zIndex,
43 }).addEvent('click', function(){
44 this.options.onClick()
45 }.bind(this)).injectInside(this.options.container);
48 this.options.embed.each(function(el){
49 var sub = new Element('div');
50 sub.addClass(el).setProperties({
53 }).injectInside(this.container);
54 this.embedded.push(sub);
59 window.addEvent('resize', this.position.bind(this));
60 window.addEvent('scroll', this.position.bind(this));
64 if(this.options.container == document.body){
65 this.h = window.getHeight();
66 this.s = window.getScrollTop();
68 var myCoords = this.options.container.getCoordinates();
69 this.h = myCoords.height;
70 this.s = myCoords.top;
72 this.container.setStyles({
79 this.container.setStyle('display', 'block');
83 this.container.setStyle('display', 'none');
86 showWindow.implement(new Options);