var SlideShowSpeed = 5000; var CrossFadeDuration = 2; var Picture = new Array(); Picture[1] = '/images/bandeau/vivre1.jpg'; Picture[2] = '/images/bandeau/vivre2.jpg'; Picture[3] = '/images/bandeau/vivre3.jpg'; Picture[4] = '/images/bandeau/vivre4.jpg'; Picture[5] = '/images/bandeau/vivre5.jpg'; Picture[6] = '/images/bandeau/vivre6.jpg'; Picture[7] = '/images/bandeau/vivre7.jpg'; Picture[8] = '/images/bandeau/vivre8.jpg'; Picture[9] = '/images/bandeau/vivre9.jpg'; Picture[10] = '/images/bandeau/vivre10.jpg'; Picture[11] = '/images/bandeau/vivre11.jpg'; Picture[12] = '/images/bandeau/vivre12.jpg'; Picture[13] = '/images/bandeau/vivre13.jpg'; Picture[14] = '/images/bandeau/vivre14.jpg'; Picture[15] = '/images/bandeau/vivre15.jpg'; Picture[16] = '/images/bandeau/vivre16.jpg'; Picture[17] = '/images/bandeau/vivre17.jpg'; Picture[18] = '/images/bandeau/vivre18.jpg'; Picture[19] = '/images/bandeau/vivre19.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];} 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; tss = setTimeout('runSlideShow()', SlideShowSpeed); } function findObj(theObj, theDoc) { var p, i, foundObj; if(!theDoc) theDoc = document; if( (p = theObj.indexOf("?")) > 0 && parent.frames.length) { theDoc = parent.frames[theObj.substring(p+1)].document; theObj = theObj.substring(0,p); } if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj]; for (i=0; !foundObj && i < theDoc.forms.length; i++) foundObj = theDoc.forms[i][theObj]; for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) foundObj = findObj(theObj,theDoc.layers[i].document); if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj); return foundObj; } var img=findObj("PictureBox"); img.src = Picture[1]; runSlideShow();