function makeSlideShow(holder,speed,width,height,quadro) { 
gallery = document.getElementById(holder); 
gallery.style.width = width + "px"; 
gallery.style.height = height + "px"; 
gallery.style.cssFloat = "left"; 
this.alphaShow = 0; 
this.alphaFade = 100; 
this.currentImg = 0;
this.nextImage = 0;
indice_img[quadro] = "indefinida";
this.animationSpeed = speed; 
this.images = gallery.getElementsByTagName("img"); 
this.galleryLength = this.images.length; 
  
    for (x=0; x<this.galleryLength; x++) { 
    this.images[x].style.width = width + "px"; 
    this.images[x].style.height = height + "px"; 
    this.images[x].style.position = "absolute"; 

  
    this.images[x].style.filter = "alpha(opacity=0)"; 
    this.images[x].style.opacity = "0"; 
    this.images[x].style.mozOpacity = "0"; 
    } 
  
var _this = this; 
var startShow = window.setInterval(function(){_this.engine(quadro)},this.animationSpeed*10); 
} 
  
makeSlideShow.prototype.engine = function(quadro) {
	this.images[this.currentImg].style.filter = "alpha(opacity=0)"; 
	this.images[this.currentImg].style.opacity = "0.0"; 
	this.images[this.currentImg].style.mozOpacity = "0.0"; 
	this.currentImg=this.nextImage;
	indice_img[quadro] = this.images[this.currentImg].name;
	this.images[this.currentImg].style.filter = "alpha(opacity=100)"; 
	this.images[this.currentImg].style.opacity = "1.0"; 
	this.images[this.currentImg].style.mozOpacity = "1.0"; 
    this.alphaFade = 100; 
    this.alphaShow = 0; 
	if (this.nextImage >= this.galleryLength-1)
	{
		this.nextImage = 0;
	}
	else
	{
		this.nextImage = this.nextImage + 1;
	}
} 
