function diapo_txt(nom){
window.document.getElementById('alarme').src="images/diapo-alarme"+nom+".jpg";
}
var mySlideList0 = ['images/diapo-alarme/07.jpg', 'images/diapo-alarme/01.jpg', 'images/diapo-alarme/02.jpg', 'images/diapo-alarme/03.jpg', 'images/diapo-alarme/04.jpg', 'images/diapo-alarme/05.jpg', 'images/diapo-alarme/06.jpg'];
var mySlideShow0 = new SlideShow(mySlideList0, 'alarme', 2000 , "mySlideShow0");


function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}
SlideShow.prototype.play = SlideShow_play;  
function SlideShow_play()       
{
  with(this)
  {
    if(current++ == slideList.length-1) current = 0;
    switchImage(image, slideList[current]);
    clearTimeout(timer);
    timer = setTimeout(name+'.play()', speed);
  }
}

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}
//diapo surveillance video
function diapo_txt(nom){
window.document.getElementById('surveillance').src="images/diapo-surv"+nom+".jpg";
}
var mySlideList4 = ['images/diapo-surv/01.jpg', 'images/diapo-surv/02.jpg', 'images/diapo-surv/03.jpg', 'images/diapo-surv/04.jpg','images/diapo-surv/05.jpg'];
var mySlideShow4 = new SlideShow(mySlideList4, 'surveillance', 2000 , "mySlideShow4");


function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}
SlideShow.prototype.play = SlideShow_play;  
function SlideShow_play()       
{
  with(this)
  {
    if(current++ == slideList.length-1) current = 0;
    switchImage(image, slideList[current]);
    clearTimeout(timer);
    timer = setTimeout(name+'.play()', speed);
  }
}

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}



//diapo-motorisation
function diapo_txt(nom){
window.document.getElementById('motorisation').src="images/diapo-motorisation"+nom+".jpg";
}
var mySlideList1 = ['images/diapo-motorisation/02.jpg', 'images/diapo-motorisation/03.jpg', 'images/diapo-motorisation/04.jpg', 'images/diapo-motorisation/05.jpg','images/diapo-motorisation/01.jpg'];
var mySlideShow1 = new SlideShow(mySlideList1, 'motorisation', 2000 , "mySlideShow1");


function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}
SlideShow.prototype.play = SlideShow_play;  
function SlideShow_play()       
{
  with(this)
  {
    if(current++ == slideList.length-1) current = 0;
    switchImage(image, slideList[current]);
    clearTimeout(timer);
    timer = setTimeout(name+'.play()', speed);
  }
}

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}



//diapo-interphone

function diapo_txt(nom){
window.document.getElementById('interphone').src="images/diapo-interphone"+nom+".jpg";
}
var mySlideList3 = ['images/diapo-interphone/portiers1.jpg', 'images/diapo-interphone/portiers2.jpg', 'images/diapo-interphone/portiers3.jpg', 'images/diapo-interphone/portiers4.jpg','images/diapo-interphone/video-portiers-elecro1.jpg','images/diapo-interphone/video-portiers-elecro2.jpg','images/diapo-interphone/video-portiers-elecro3.jpg','images/diapo-interphone/video-portiers-elecro4.jpg'];
var mySlideShow3 = new SlideShow(mySlideList3, 'interphone', 2000 , "mySlideShow3");


function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}
SlideShow.prototype.play = SlideShow_play;  
function SlideShow_play()       
{
  with(this)
  {
    if(current++ == slideList.length-1) current = 0;
    switchImage(image, slideList[current]);
    clearTimeout(timer);
    timer = setTimeout(name+'.play()', speed);
  }
}

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}


//diapo pour page savoir-faire
function diapo_txt(nom){
window.document.getElementById('photos').src="images/diapo-savoir"+nom+".jpg";
}
var mySlideList2 = ['images/diapo-savoir/02.jpg', 'images/diapo-savoir/03.jpg', 'images/diapo-savoir/04.jpg', 'images/diapo-savoir/05.jpg','images/diapo-savoir/01.jpg','images/diapo-savoir/alarme.jpg'];
var mySlideShow2 = new SlideShow(mySlideList2, 'photos', 2000 , "mySlideShow2");


function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}
SlideShow.prototype.play = SlideShow_play;  
function SlideShow_play()       
{
  with(this)
  {
    if(current++ == slideList.length-1) current = 0;
    switchImage(image, slideList[current]);
    clearTimeout(timer);
    timer = setTimeout(name+'.play()', speed);
  }
}

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}
	