document.write('
\"\"
'); // (C) 2000 www.CodeLifter.com -- HEAVILY MODIFIED BY ADAMS // http://www.codelifter.com // Free for all users, but leave in this header // NS4-6,IE4-6 // Fade effect only in IE; degrades gracefully // ======================================= // set the following variables // ======================================= // Set slideShowSpeed (milliseconds) var slideShowSpeed = 1800; //var slideShowSpeed = 1000; // Duration of crossfade (seconds) //var crossFadeDuration = 3; var crossFadeDuration = 1; // Specify the image files var Pic = new Array(); // don't touch this // to add more images, just continue // the pattern, adding to the array below Pic[0] = '/photos/1.jpg' Pic[1] = '/photos/2.jpg' Pic[2] = '/photos/3.jpg' Pic[3] = '/photos/4.jpg' Pic[4] = '/photos/5.jpg' Pic[5] = '/photos/6.jpg' Pic[6] = '/photos/7.jpg' Pic[7] = '/photos/8.jpg' Pic[8] = '/photos/9.jpg' Pic[9] = '/photos/10.jpg' Pic[10] = '/photos/11.jpg' Pic[11] = '/photos/12.jpg' Pic[12] = '/photos/13.jpg' Pic[13] = '/photos/14.jpg' Pic[14] = '/photos/15.jpg' Pic[15] = '/photos/16.jpg' Pic[16] = '/photos/17.jpg' Pic[17] = '/photos/18.jpg' Pic[18] = '/photos/19.jpg' Pic[19] = '/photos/20.jpg' Pic[20] = '/photos/21.jpg' Pic[21] = '/photos/22.jpg' Pic[22] = '/photos/23.jpg' Pic[23] = '/photos/24.jpg' Pic[24] = '/photos/25.jpg' Pic[25] = '/photos/26.jpg' // ======================================= // do not edit anything below this line // ======================================= var t; var j = 1; var p = Pic.length; var d = -1; var preLoad = new Array() for (i = 0; i < p; i++){ preLoad[i] = new Image(); preLoad[i].src = Pic[i]; } function Button( Action ) { if ( Action == 'Play' ) { if ( document.SlideControl.State.value != 'Play' ) { document.SlideControl.State.value='Play'; runSlideShow(Action); } } if ( Action == 'Pause' ) { if ( document.SlideControl.State.value != 'Pause' ) { document.SlideControl.State.value='Pause'; if ( j > 0 ) j = j-1; runSlideShow(Action); } } if ( Action == 'Next' ) { document.SlideControl.State.value='Pause'; if ( d == j ) { j = j + 1; if (j > (p-1)) j=0; } runSlideShow(Action); } if ( Action == 'Prev' ) { document.SlideControl.State.value='Pause'; j = j - 1; if (j < (0)) j=p-1; runSlideShow(Action); } } function runSlideShow(Action) { //document.SlideControl.Status.value = document.SlideControl.State.value + ' ' + (j+1) + ' of ' + 9; if (( Action != 'Pause' ) && ( d != j )) { // Transition to the "next" slide unless we're paused if ((document.all) && ( Action != 'Next' ) && ( Action != 'Prev' )) { document.images.SlideShow.style.filter="blendTrans(duration=2)"; document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"; document.images.SlideShow.filters.blendTrans.Apply(); } document.images.SlideShow.src = preLoad[j].src if (document.all) { document.images.SlideShow.filters.blendTrans.Play(); } d=j; } if (( document.SlideControl.State.value == 'Play' ) && ( Action == 'Play' )) { // If we're playing, setup the next slide event j = j + 1; if (j > (p-1)) j=0; if ( t ) clearTimeout(t); t = setTimeout('runSlideShow("Play")', slideShowSpeed); } } Button('Pause'); Button('Play');