/* Populate images list */
$$('div.varimages').each(function(el,i){
- rimgs[el.id] = i;
- vimgs[i] = [el.id, el.title, []];
+ var rel=el.get('id');
+ rimgs[rel] = i;
+ vimgs[i] = [rel, el.title, []];
el.getElements('a').each(function(ael,j){
- dim = /(\d+)[^\d](\d+)/.exec(ael.text);
+ dim = /(\d+)[^\d](\d+)/.exec(ael.rel);
w = dim[1];
h = dim[2];
vimgs[i][2][j]=[w,h,ael.href];
openFromLink: false,
movieWidth: 640,
movieHeight: 480,
- descClassName: 'infoBoxDesc',
+ descClassName: 'infoBoxDesc'
};
ibox = new multiBox('infoBox', iboxparams);
var winparms = {
- tohide: 'indexContainer',
+ tohide: 'indexContainer'
};
var showwin = new showWindow('slideshowContainer',winparms);
var showparms = {
cbStart: function(){ showwin.show(); },
- cbExit: function(){ showwin.hide(); },
+ cbExit: function(){ showwin.hide(); }
};
var show = new Show(vimgs,showwin,ctl,showparms);
$$('a.showStart').each(function(el){
el.addEvent('click',
- show.start.bind(show,[rimgs[el.get('id')],1]));
+ show.start.bind(show,[rimgs[el.get('rel')],1]));
});
$$('a.showImage').each(function(el){
el.addEvent('click',
- show.start.bind(show,[rimgs[el.get('id')],0]));
+ show.start.bind(show,[rimgs[el.get('rel')],0]));
});
/* Determine if we need to go directly into show mode */