// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 4000;
// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;
var Picture = new Array();
Picture[1]  = 'images/slide0.jpg';
Picture[2]  = 'images/slide1.jpg';
Picture[3]  = 'images/slide2.jpg';
Picture[4]  = 'images/slide3.jpg';
Picture[5]  = 'images/slide4.jpg';
Picture[6]  = 'images/slide5.jpg';
Picture[7]  = 'images/slide6.jpg';
Picture[8]  = 'images/slide7.jpg';
Picture[9]  = 'images/slide8.jpg';
Picture[10]  = 'images/slide9.jpg';

var tss;
var iss;
var jss = 1;
var pss = Picture.length - 1;
function runSlideShow(  ){
    jss = jss + 1;
    if ( jss > ( pss ) )
        jss=1;
    tss = setTimeout( 'runSlideShow()', SlideShowSpeed );
    crossfade( document.getElementById('slide-img'), Picture[jss],
               CrossFadeDuration, 'Slide Show' );
}
