function swt(obj, newsrc) { obj.src = newsrc; } // (C) 2000 www.CodeLifter.com // 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 = 3500 // Duration of crossfade (seconds) var crossFadeDuration = 3 // 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] = 'images/homeslideshow/slide1.jpg' Pic[1] = 'images/homeslideshow/slide2.jpg' Pic[2] = 'images/homeslideshow/slide3.jpg' Pic[3] = 'images/homeslideshow/slide4.jpg' Pic[4] = 'images/homeslideshow/slide5.jpg' Pic[5] = 'images/homeslideshow/slide6.jpg' Pic[6] = 'images/homeslideshow/slide7.jpg' Pic[7] = 'images/homeslideshow/slide8.jpg' Pic[8] = 'images/homeslideshow/slide9.jpg' Pic[9] = 'images/homeslideshow/slide10.jpg' Pic[10] = 'images/homeslideshow/slide11.jpg' Pic[11] = 'images/homeslideshow/slide12.jpg' Pic[12] = 'images/homeslideshow/slide13.jpg' Pic[13] = 'images/homeslideshow/slide14.jpg' Pic[14] = 'images/homeslideshow/slide15.jpg' Pic[15] = 'images/homeslideshow/slide16.jpg' Pic[16] = 'images/homeslideshow/slide17.jpg' // ======================================= // do not edit anything below this line // ======================================= var t var j = 0 var p = Pic.length var fr = 0 var preLoad = new Array() for (i = 0; i < p; i++){ preLoad[i] = new Image() preLoad[i].src = Pic[i] } function runSlideShow(){ if (document.all){ //document.images.homeSlideShow.style.filter="blendTrans(duration=2)" document.images.homeSlideShow.style.filter="blendTrans(duration=crossFadeDuration)" document.images.homeSlideShow.filters.blendTrans.Apply() } if (document.all){ document.images.homeSlideShow.src = preLoad[j].src document.images.homeSlideShow.filters.blendTrans.Play() j = j + 1 if (j > (p-1)) j=0 t = setTimeout('runSlideShow()', slideShowSpeed) } else { // run the mozSlideShow mozSlideShow() } } function mozSlideShow() { if(fr==1) { crossfade(document.getElementById('homeSlideShow'), preLoad[j].src, 2, '') //swapfade(document.getElementById('coll5'), preLoad[j].src, crossFadeDuration, '') } fr = 1 j = j + 1 if (j > (p-1)) j=0 t = setTimeout('mozSlideShow()', slideShowSpeed) }