
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 8000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 7;

var Picture = new Array(); // don't change this
//var Caption = new Array(); // don't change this



Picture[1] = 'images_scrolling/image1.jpg';
Picture[2] = 'images_scrolling/image2.jpg';
Picture[3] = 'images_scrolling/image3.jpg';
Picture[4] = 'images_scrolling/image4.jpg';
Picture[5] = 'images_scrolling/image5.jpg';
Picture[6] = 'images_scrolling/image6.jpg';
Picture[7] = 'images_scrolling/image7.jpg';
Picture[8] = 'images_scrolling/image8.jpg';
Picture[9] = 'images_scrolling/image9.jpg';
Picture[10] = 'images_scrolling/image10.jpg';
Picture[11] = 'images_scrolling/image11.jpg';
Picture[12] = 'images_scrolling/image12.jpg';
Picture[13] = 'images_scrolling/image13.jpg';
Picture[14] = 'images_scrolling/image14.jpg';




//myScrollerThing.msgArray[0] = '<p align=center><img src="images_scrolling/Collier.jpg" />';
//myScrollerThing.msgArray[1] = '<p align=center><img src="images_scrolling/Intervention_Samuel.JPG" />';
//myScrollerThing.msgArray[2] = '<p align=center><img src="images_scrolling/Matelas.JPG" />';
//myScrollerThing.msgArray[3] = '<p align=center><img src="images_scrolling/Planche_vomit.jpg" />';
//myScrollerThing.msgArray[4] = '<p align=center><img src="images_scrolling/RCR_Samuel.jpg" />';
//myScrollerThing.msgArray[5] = '<p align=center><img src="images_scrolling/RCR_Samuel_2.jpg" />';
//myScrollerThing.msgArray[6] = '<p align=center><img src="images_scrolling/Retournement.jpg" />';


var tss;
var iss;
var jss = 1;
var pss = Picture.length - 1;



var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

var ck = readCookie("PictureNo");
if (ck){
    jss = parseInt(readCookie("PictureNo"));
}


function runSlideShow(){
    if (document.all){
    document.images.PictureBox.style.filter="blendTrans(duration=2)";
    document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
    document.images.PictureBox.filters.blendTrans.Apply();}
    document.images.PictureBox.src = preLoad[jss].src;
    if (document.all) document.images.PictureBox.filters.blendTrans.Play();

    
    
    jss = jss + 1;
    if (jss > (pss)) jss=1;
    
    createCookie("PictureNo", jss.toString() , 1);
    
    tss = setTimeout('runSlideShow()', SlideShowSpeed);
    
    
}






function createCookie(name, value, days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
        var expires = "; expires=" + date.toGMTString();
    }
    else var expires = "";
    document.cookie = name + "=" + value + expires + "; path=/";
}

function readCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') c = c.substring(1, c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
    }
    return null;
}




/*

<!--
Add the onload=runSlideShow() event call to the body tag.


<body onload=runSlideShow() bgcolor=#000000>
//-->


    <img src=Image001.jpg name=PictureBox width=350 height=280>


</body>

</html>



-->

*/
