function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}
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);
  }
}
var SlideList = ['/asset/image/slideshow/slide-001.png','/asset/image/slideshow/slide-002.png','/asset/image/slideshow/slide-003.png','/asset/image/slideshow/slide-004.png','/asset/image/slideshow/slide-005.png','/asset/image/slideshow/slide-006.png','/asset/image/slideshow/slide-007.png','/asset/image/slideshow/slide-008.png','/asset/image/slideshow/slide-009.png','/asset/image/slideshow/slide-010.png','/asset/image/slideshow/slide-011.png'];
var SlideShow = new SlideShow(SlideList, 'slideshow', 3000, "SlideShow");
