-});
-showWindow.implement(new Options);
-
-/* Make overlay window and start slideshow */
-function run_slideshow(startid) {
- showwin.show();
- show.stop();
- if (startid < 0) {
- show.play(0);
- } else {
- show.play(startid);
- show.stop();
- }
- return false;
-}
-
-/* Stop slideshow and return to index page */
-function stop_slideshow() {
- show.stop();
- showwin.hide();
- return false;
-}
-
-/* List of lists of img variations. Each image variation is a three-element */
-/* array: [width, height, url]. Index of the outer array is the global ID. */
-var vimgs=[]
-/*
- * [
- * [
- * [width, height, url]
- * ...
- * ]
- * ...
- * ]
-*/
-/* Initialize everything, to be called on domready */
-function init_gallery() {
- $$('div.varimages').each(function(el){
- var id=el.id
- vimgs[id]=[]
- el.getElements('a').each(function(ael,i){
- dim = /(\d+)[^\d](\d+)/.exec(ael.text)
- w = dim[1]
- h = dim[2]
- vimgs[id][i]=[w,h,ael.href]
- })
- })
- /* debugging output
- var msg='loaded '+vimgs.length+' image descriptions:'
- vimgs.each(function(vimg,i){
- msg+='\nid='+i
- vimg.each(function(vimg,i){
- msg+='\n w='+vimg[0]+' h='+vimg[1]+' url='+vimg[2]
- })
- })
- alert(msg)
- /* end debugging output */
-
- var ovlparams = {}
- ovl = new overlay(ovlparams)
-
- var iboxparams = {
- overlay: ovl,
- showNumbers: false,
- showControls: true,
- openFromLink: false,
- movieWidth: 640,
- movieHeight: 480,
- descClassName: 'infoBoxDesc',
- }
- ibox = new multiBox('infoBox', iboxparams)
-
- var winparms = {}
- showwin = new showWindow('slideshowWindow',winparms)
-
- var showparms = {
- wait: 3000,
- effect: 'fade',
- duration: 1000,
- loop: true,
- thumbnails: true,
- onClick: function(i){alert(i)}
- }
- show = new slideShow('slideshowContainer','slideshowThumbnail',showparms)
-
- parsedurl = parseUrl(document.URL)
- // alert('Anchor: '+parsedurl['anchor']+'\nURL: '+document.URL)
- if ($chk(parsedurl['anchor'])){
- run_slideshow(parsedurl['anchor'])
- }