function makeSlideShow(holder,holderElementsTagName,animationSpeed,width,height) {
  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.animationSpeed = animationSpeed
  this.images = gallery.getElementsByTagName(holderElementsTagName)
  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()},this.animationSpeed*10)
}
 
makeSlideShow.prototype.engine = function() {
  this.nextImage = this.currentImg + 1 < this.galleryLength ? this.currentImg + 1 : 0
  hatarpontFade = 15
  
  szorzo = 15
  this.tmpFade = this.alphaFade
  this.tmpShow = this.alphaShow
  this.alphaFade = 100-(100-this.alphaFade)*szorzo
  this.alphaShow = this.alphaShow*szorzo
  
  this.images[this.currentImg].style.filter = "alpha(opacity=" + this.alphaFade + ")";
  this.images[this.currentImg].style.opacity = this.alphaFade < hatarpontFade? "0.0" + this.alphaFade : this.alphaFade >= hatarpontFade && this.alphaFade < 100 ? "0." + this.alphaFade : 1.0;
  this.images[this.currentImg].style.mozOpacity = this.alphaFade < hatarpontFade? "0.0" + this.alphaFade : this.alphaFade >= hatarpontFade && this.alphaFade < 100 ? "0." + this.alphaFade : 1.0;
   
  this.images[this.nextImage].style.filter = "alpha(opacity=" + this.alphaShow + ")";
  this.images[this.nextImage].style.opacity = this.alphaShow < hatarpontFade? "0.0" + this.alphaShow : this.alphaShow >= hatarpontFade && this.alphaShow < 100 ? "0." + this.alphaShow : 1.0;
  this.images[this.nextImage].style.mozOpacity = this.alphaShow < hatarpontFade? "0.0" + this.alphaShow : this.alphaShow >= hatarpontFade && this.alphaShow < 100 ? "0." + this.alphaShow : 1.0;
  
  this.alphaFade = this.tmpFade
  this.alphaShow = this.tmpShow
  
  this.alphaFade = this.alphaFade - 1
  this.alphaShow = this.alphaShow + 1
 
  if (this.alphaFade == 100 || this.alphaShow == 100) {
    this.alphaFade = 100
    this.alphaShow = 0
    this.currentImg = this.currentImg + 1 > this.galleryLength-1 ? 0 : this.currentImg + 1
  }
}
