var mySlideShow={};function slideShow0(array){var globals={slideDelay:4000,fadeDelay:35,wrapperID:array[0],buttonID:array[1],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 initializeGlobals(){globals.wrapperObject=(document.getElementById(globals.wrapperID)?document.getElementById(globals.wrapperID):null);globals.buttonObject=(document.getElementById(globals.buttonID)?document.getElementById(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="none";};return true;};if(!globals.slideImages.length){if(globals.wrapperObject){globals.wrapperObject.style.display="none";};if(globals.buttonObject){globals.buttonObject.style.display="none";};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 slideCount=globals.slideImages.length;for(var i=0;imaxWidth){maxWidth=globals.slideImages[i].width;maxSlideIndex=i;}};return globals.slideImages[maxSlideIndex].width;return globals.slideImages[maxSlideIndex].getBoundingClientRect().width;};function maxSlideHeight(){var i=parseInt(700*2/3);return(i);var maxHeight=0;var maxSlideIndex=0;var slideCount=globals.slideImages.length;for(var i=0;imaxHeight){maxHeight=globals.slideImages[i].height;maxSlideIndex=i;}};return globals.slideImages[maxSlideIndex].height;return globals.slideImages[maxSlideIndex].getBoundingClientRect().height;};function startSlideShow(){globals.slideShowID=setInterval(transitionSlides,globals.slideDelay);};function haltSlideShow(){clearInterval(globals.slideShowID);};function toggleSlideShow(){if(globals.slideShowRunning){haltSlideShow();if(globals.buttonObject){globals.buttonObject.textContent=globals.buttonStartText;}}else{startSlideShow();if(globals.buttonObject){globals.buttonObject.textContent=globals.buttonStopText;}};globals.slideShowRunning=!(globals.slideShowRunning);};function transitionSlides(){var currentSlide=globals.slideImages[globals.slideIndex];++(globals.slideIndex);if(globals.slideIndex>=globals.slideImages.length){globals.slideIndex=0;};var nextSlide=globals.slideImages[globals.slideIndex];nextSlide.src=nextSlide.src.replace('/thumb-','/');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);}};}};