



i0 = new Image
i1 = new Image
i2 = new Image
i3 = new Image
i4 = new Image
i5 = new Image
i6 = new Image
i7 = new Image
i8 = new Image
i9 = new Image
i10 = new Image
i11= new Image
i12= new Image
i13= new Image
i14= new Image
i15= new Image


imgSRC = new Array
imgSRC[0] = 'Imagesdiapo/121.jpg'
imgSRC[1] = 'Imagesdiapo/128.jpg'
imgSRC[2] = 'Imagesdiapo/3011.jpg'
imgSRC[3] = 'Imagesdiapo/3000.jpg'
imgSRC[4] = 'Imagesdiapo/3001.jpg'
imgSRC[5] = 'Imagesdiapo/3002.jpg'
imgSRC[6] = 'Imagesdiapo/3003.jpg'
imgSRC[7] = 'Imagesdiapo/3004.jpg'
imgSRC[8] = 'Imagesdiapo/3005.jpg'
imgSRC[9] = 'Imagesdiapo/3006.jpg'
imgSRC[10] = 'Imagesdiapo/3007.jpg'
imgSRC[11] = 'Imagesdiapo/3008.jpg'
imgSRC[12] = 'Imagesdiapo/3009.jpg'
imgSRC[13] = 'Imagesdiapo/3010.jpg'
imgSRC[14] = 'Imagesdiapo/3012.jpg'
imgSRC[15] = 'Imagesdiapo/3020.jpg'
imgSRC[16] = 'Imagesdiapo/3013.jpg'
imgSRC[17] = 'Imagesdiapo/3014.jpg'
imgSRC[18] = 'Imagesdiapo/3015.jpg'
imgSRC[19] = 'Imagesdiapo/3016.jpg'
imgSRC[20] = 'Imagesdiapo/3017.jpg'
imgSRC[21] = 'Imagesdiapo/3018.jpg'
imgSRC[22] = 'Imagesdiapo/3019.jpg'
imgSRC[23] = 'Imagesdiapo/3021.jpg'
imgSRC[24] = 'Imagesdiapo/3022.jpg'
imgSRC[25] = 'Imagesdiapo/3011.jpg'

imgcounter = 0
var cpt=0;
var isIE = navigator.userAgent.toLowerCase().indexOf('msie')!=-1 ;

function avant(){
     imgcounter--
     if(imgcounter < 0){
         imgcounter = imgSRC.length - 1
     }
document.img1.src = imgSRC[imgcounter]

}

function setOpacity(obj, opacity) {
  opacity = (opacity == 100)?99.999:opacity;
  
  // IE/Win
  obj.style.filter = "alpha(opacity:"+opacity+")";
  
  // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  
  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;
  
  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}

function initImage() {
  imageId = 'ima';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
}


function fadeIn(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= 100) {
      setOpacity(obj, opacity);
      opacity += 10;
     // window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
    }
  }
}


function suivant(){
     imgcounter++
     if(imgcounter > 24){
         imgcounter = 0
     }


//pour IE
if (isIE)
    {img1.style.filter='progid:DXImageTransform.Microsoft.Fade(Duration=1)'
    img1.filters[0].Apply()
    img1.src = imgSRC[imgcounter]
    img1.filters[0].Play()}

else
    {
         
     document.getElementById("ima").src=imgSRC[cpt];
	cpt++;
	if(cpt>=imgSRC.length) cpt=0;
	
  
    }

setTimeout('suivant()', 5000)

}





