X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fgallery.js;h=9b37b4aea6424107452f5e4a498ed78f923fdde6;hp=f85f19a30d9142773fcb4e623e5181d863dad0ae;hb=e1409ccb8e6b656b691b97f9741c1313d0a30558;hpb=938141692ce114b47e3268df7a2bb115e40e8e0d diff --git a/include/gallery.js b/include/gallery.js index f85f19a..9b37b4a 100644 --- a/include/gallery.js +++ b/include/gallery.js @@ -10,13 +10,13 @@ Slideshow */ -var ShowWindow = new Class({ +var showWindow = new Class({ getOptions: function(){ return { zIndex: 2, container: document.body, - onClick: Class.empty + onClick: $empty, }; }, @@ -69,7 +69,7 @@ var ShowWindow = new Class({ this.div.setStyles({display: 'none'}); } }); -ShowWindow.implement(new Options); +showWindow.implement(new Options); /* Make overlay window and start slideshow */ function run_slideshow(startid) { @@ -126,16 +126,22 @@ function init_gallery() { alert(msg) /* end debugging output */ + var ovlparams = {} + ovl = new overlay(ovlparams) + var iboxparams = { - useOverlay: true, + overlay: ovl, showNumbers: false, + showControls: true, openFromLink: false, - descClassName: 'infoboxdesc', + movieWidth: 640, + movieHeight: 480, + descClassName: 'infoBoxDesc', } - ibox = new MultiBox('infobox', iboxparams) + ibox = new multiBox('infoBox', iboxparams) var winparms = {} - showwin = new ShowWindow('slideshowWindow',winparms) + showwin = new showWindow('slideshowWindow',winparms) var showparms = { wait: 3000, @@ -145,7 +151,7 @@ function init_gallery() { thumbnails: true, onClick: function(i){alert(i)} } - show = new SlideShow('slideshowContainer','slideshowThumbnail',showparms) + show = new slideShow('slideshowContainer','slideshowThumbnail',showparms) parsedurl = parseUrl(document.URL) // alert('Anchor: '+parsedurl['anchor']+'\nURL: '+document.URL)