// =======================================
// do not edit anything below this line
// =======================================
var t
var j = 0
var p = Pic.length
var IsLoad=0;
var preLoad = new Array()
for (i = 0; i < p; i++)
	{
    preLoad[i] = new Image()
    preLoad[i].src = Pic[i]
	}

function runSlideShow(){
   IsLoad=1;
   if (document.all){
      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()
   }
   IsLoad=0;
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
function mvimg(nb)
	{
	IsChange=1;
	if ((j==1)&&(nb==0))
		{ alert('Vous êtes au début du diaporama'); IsChange=0;}
	if ((j==p)&&(nb==1))
		{ alert('Vous êtes à la fin du diaporama'); IsChange=0; }
	if (IsChange==1)
		{
		if (nb==0) {j=j-1;};
		if (nb==1) {j=j+1;};	
		document.images.SlideShow.src = preLoad[j].src	
		}
	}