X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=include%2Fgallery.js;h=9b37b4aea6424107452f5e4a498ed78f923fdde6;hb=e1409ccb8e6b656b691b97f9741c1313d0a30558;hp=89be9dffa4efbfc902a64b1e68263a8e7cd4fa18;hpb=e04e3b035dbc99e57bd2b37fb68696718a825297;p=mkgallery.git diff --git a/include/gallery.js b/include/gallery.js index 89be9df..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,15 +126,22 @@ function init_gallery() { alert(msg) /* end debugging output */ + var ovlparams = {} + ovl = new overlay(ovlparams) + var iboxparams = { - useOverlay: true, + overlay: ovl, showNumbers: false, - openFromLink: false + showControls: true, + openFromLink: false, + 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, @@ -144,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)