// JavaScript Document
	function switchImage(imgName, imgSrc,imgTitle,imgLinks){
	  if (document.images){
	
		if (imgSrc != "none"){	
		  document.images[imgName].src = imgSrc;
		  document.getElementById("adv_"+imgName).href = imgLinks;
		  document.images[imgName].src = imgSrc;
		  document.getElementById("title_"+imgName).alt=imgTitle;
		}
	  }
	}	
	
	function SlideShow(slideList, image, speed, name,imgTitleList,imgLinks){
	  this.slideList = slideList;
	  this.imgTitleList = imgTitleList;
	  this.imgLinks=imgLinks;	  
	  this.image = image;	
	  this.speed = speed;	
	  this.name = name;	
	  this.current = 0;	
	  this.timer = 0;	
	}	
	
	function SlideShow_play(){
	  with(this){
		if(current++ == slideList.length-1) current = 0;
		switchImage(image, slideList[current],imgTitleList[current],imgLinks[current]);
		clearTimeout(timer);
		timer = setTimeout(name+'.play()', speed);
	  }
	}
