	function AlterarImagem(imgNome, imgSrc){
		if (document.images){
			if (imgSrc != "none"){
				document.images[imgNome].src = imgSrc;
			}
		}
	}

	function SlideShow_Processar(){
		with(this){
			if (PararAnimacao == 0) {
				if(Atual++ == ObjImgLista.length-1) Atual = 0;
				AlterarImagem(ObjImg, ObjImgLista[Atual]);
				clearTimeout(Temporizador);
				Temporizador = setTimeout(Nome+'.Processar()', Velocidade);
			} else {
				Atual = 0;
				AlterarImagem(ObjImg, ImgSair);
			}
		}
	}

	function SlideShow_Iniciar(){
		this.PararAnimacao = 0;
		this.Processar();
	}

	function SlideShow_Parar(){
		this.PararAnimacao = 1;
		this.Processar();
	}

	function SlideShow(ObjImgLista, ObjImg, Velocidade, Nome, ImgSair){
		this.ObjImgLista = ObjImgLista;
		this.ObjImg = ObjImg;
		this.Velocidade = Velocidade;
		this.Nome = Nome;
		this.Atual = 0;
		this.Temporizador = 0;
		this.PararAnimacao = 0;
		this.ImgSair = ImgSair;
	}

	SlideShow.prototype.Iniciar = SlideShow_Iniciar; 
	SlideShow.prototype.Parar = SlideShow_Parar; 
	SlideShow.prototype.Processar = SlideShow_Processar; 
