Заменить инициализацию слайд-шоу для всех трех вкладок следующим:
<script>
var activeSlideShow = false;
var activateSlideShow = function(el) {
if(activeSlideShow) {
activeSlideShow.destroy();
}
switch(el.getProperty('tabindex')){
case '0':
activeSlideShow = new Slideshow('balch',
{
'1.jpg': { caption: '' },
'2.jpg': { caption: '' },
'3.jpg': { caption: '' },
'4.jpg': { caption: '' },
'5.jpg': { caption: '' },
'6.jpg': { caption: '' },
'7.jpg': { caption: '' },
'8.jpg': { caption: '' },
'9.jpg': { caption: '' },
'10.jpg': { caption: '' },
'11.jpg': { caption: '' }
},
{
captions: { delay: 1000 },
delay: 3000,
height: 467,
hu: 'images/balch/',
width: 350
}
);
break;
case '3':
activeSlideShow = new Slideshow('poi',
{
'1.jpg': { caption: 'Blue Ridge' },
'2.jpg': { caption: 'Blue Ridge' },
'3.jpg': { caption: 'Blue Ridge' },
'4.jpg': { caption: 'Blue Ridge' },
'5.jpg': { caption: 'Blue Ridge' },
'6.jpg': { caption: 'Blue Ridge' },
'7.jpg': { caption: 'Grouse Valley' },
'8.jpg': { caption: 'Grouse Valley' },
'9.jpg': { caption: 'Grouse Lake' },
'10.jpg': { caption: 'Wildflowers in Yokohl Valley' },
'11.jpg': { caption: 'Wildflowers in Yokohl Valley' },
'12.jpg': { caption: 'Wildflowers in Yokohl Valley' },
'13.jpg': { caption: 'Wildflowers in Yokohl Valley' },
'14.jpg': { caption: 'Tule River' },
'15.jpg': { caption: 'Tule River' },
'16.jpg': { caption: 'Tule River' },
'17.jpg': { caption: 'Tule River' },
'18.jpg': { caption: 'Tule River' },
'19.jpg': { caption: 'Tule River' },
'20.jpg': { caption: 'Tule River' },
'21.jpg': { caption: 'Tule River' },
'22.jpg': { caption: 'Tule River' },
'23.jpg': { caption: 'Dome Rock' }
},
{
captions: { delay: 1000 },
delay: 3000,
height: 300,
hu: 'images/poi/',
width: 400
}
);
break;
case '1':
default:
activeSlideShow = new Slideshow('springville',
{
'1.jpg': { caption: '' },
'2.jpg': { caption: '' },
'3.jpg': { caption: '' },
'4.jpg': { caption: '' },
'5.jpg': { caption: '' },
'6.jpg': { caption: '' },
'7.jpg': { caption: '' },
'8.jpg': { caption: '' },
'9.jpg': { caption: '' },
'10.jpg': { caption: '' },
'11.jpg': { caption: '' },
'12.jpg': { caption: '' },
'13.jpg': { caption: '' }
},
{
captions: { delay: 1000 },
delay: 3000,
height: 300,
hu: 'images/springville/',
width: 400
}
);
break;
}
}
window.addEvent('domready', function(){
var tabs = $$('#TabbedPanels1 ul li');
tabs.addEvent('click', function(e){
activateSlideShow(this);
});
activateSlideShow(tabs[0]);
});
</script>