var mySlideShow={};function slideShow0(array){if(!array[4])array[4]=4000;var globals={fadeDelay:35,wrapperID:array[0],buttonID:array[1],titleID:array[2],copyrightID:array[3],slideDelay:array[4],buttonStartText:'»',buttonStopText:'•',wrapperObject:null,buttonObject:null,slideImages:[],slideShowID:null,slideShowRunning:true,slideIndex:0};initializeGlobals();if(insufficientSlideShowMarkup()){return;};if(globals.slideImages.length==1){return;};initializeSlideShowMarkup();if(globals.buttonObject){globals.buttonObject.addEventListener('click',toggleSlideShow,false);};startSlideShow();function load(o){GetId(globals.wrapperID).style.visibility=myApp.kcsshidden;window.addEventListener('load',o,false);GetId(globals.wrapperID).style.visibility=myApp.kcssvisible;};function initializeGlobals(){globals.wrapperObject=(GetId(globals.wrapperID)?GetId(globals.wrapperID):null);globals.buttonObject=(GetId(globals.buttonID)?GetId(globals.buttonID):null);if(globals.wrapperObject){globals.slideImages=(globals.wrapperObject.querySelectorAll('img')?globals.wrapperObject.querySelectorAll('img'):[]);}};function insufficientSlideShowMarkup(){if(!globals.wrapperObject){if(globals.buttonObject){globals.buttonObject.style.display=myApp.kcssnone;};return(true);};if(!globals.slideImages.length){if(globals.wrapperObject){globals.wrapperObject.style.display=myApp.kcssnone;};if(globals.buttonObject){globals.buttonObject.style.display=myApp.kcssnone;};return(true);};return(false);};function initializeSlideShowMarkup(){var slideWidthMax=maxSlideWidth();var slideHeightMax=maxSlideHeight();globals.wrapperObject.style.position="relative";globals.wrapperObject.style.overflow="hidden";globals.wrapperObject.style.width=slideWidthMax+"px";globals.wrapperObject.style.height=slideHeightMax+"px";var x,o,t=GetId(globals.titleID),c=GetId(globals.copyrightID),slideCount=globals.slideImages.length;for(var i=0;imaxWidth){maxWidth=globals.slideImages[i].width;maxSlideIndex=i;}};return(globals.slideImages[maxSlideIndex].width);};function maxSlideHeight(){var i=parseInt(700*2/3);return(i);};function startSlideShow(){globals.slideShowID=setInterval(transitionSlides,globals.slideDelay);};function haltSlideShow(){clearInterval(globals.slideShowID);};function toggleSlideShow(){if(globals.slideShowRunning){haltSlideShow();if(globals.buttonObject){globals.buttonObject.innerHTML=globals.buttonStartText;globals.buttonObject.title='start';}}else{startSlideShow();if(globals.buttonObject){globals.buttonObject.innerHTML=globals.buttonStopText;globals.buttonObject.title='stop';}};globals.slideShowRunning=!(globals.slideShowRunning);};function transitionSlides(){var o,t=GetId(globals.titleID),c=GetId(globals.copyrightID),currentSlide=globals.slideImages[globals.slideIndex];if(globals.slideIndex+1>=globals.slideImages.length){globals.slideIndex=-1;};++(globals.slideIndex);var nextSlide=globals.slideImages[globals.slideIndex];var o=GetId('slidemessage'+String(globals.slideIndex));if(o){GetId('id_message').innerHTML=o.value;};nextSlide.src=nextSlide.src.replace('/thumb-','/');if(t){o=nextSlide.title.split('/');t.innerHTML=o[0]+' ('+String(globals.slideIndex+1)+'/'+String(globals.slideImages.length)+')';if(c)c.innerHTML=(o[1]?'© '+o[1]:'');};var currentSlideOpacity=1;var nextSlideOpacity=0;var opacityLevelIncrement=1/globals.fadeDelay;var fadeActiveSlidesID=setInterval(fadeActiveSlides,globals.fadeDelay);function fadeActiveSlides(){currentSlideOpacity-=opacityLevelIncrement;nextSlideOpacity+=opacityLevelIncrement;if(currentSlideOpacity>=0&&nextSlideOpacity<=1){currentSlide.style.opacity=currentSlideOpacity;nextSlide.style.opacity=nextSlideOpacity;}else{currentSlide.style.opacity=0;nextSlide.style.opacity=1;clearInterval(fadeActiveSlidesID);}};}};