function slideShow(key,eff,ttl)
{
	this.key = key;
	this.ttl = ttl;
	this.eff= eff;
	this.sep = "#$#";
	this.id_current = 0;
	this.toogle = 0;
	this.timeout = 0;
	
	this.t_img = new Array(); 
	html = document.getElementById('txt'+this.key).value;
	this.t_img = html.split(this.sep);
	this.rotateSlide();
}//end of slideshow
slideShow.prototype.rotateSlide = function(){
	var img = document.getElementById('div'+this.key);
	var instanceObj = this;
	this.timeout = window.setTimeout(function(){instanceObj.rotateSlide()}, this.ttl);
	this.toogle = 1 - this.toogle;
	if (this.id_current < (this.t_img.length-2)){
		this.id_current++;
	} else this.id_current = 0;
	img.innerHTML = this.t_img[this.id_current];
	if (this.eff=="grow"){
		Element.show('div'+this.key);
		new Effect.Grow('div'+this.key);
	}
	if (this.eff=="slidedown"){
		Element.show('div'+this.key);
		new Effect.SlideDown('div'+this.key);
	}
	if (this.eff=="slideup"){
		Element.show('div'+this.key);
		new Effect.SlideUp('div'+this.key);
	}
	if (this.eff=="appear"){
		Element.hide('div'+this.key);
		new Effect.Appear('div'+this.key);
	}
	if (this.eff=="fade"){
		Element.show('div'+this.key);
		new Effect.Fade('div'+this.key);
	}
	if (this.eff=="blinddown"){
		Element.show('div'+this.key);
		new Effect.BlindDown('div'+this.key);
	}
	if (this.eff=="blindup"){
		Element.show('div'+this.key);
		new Effect.BlindUp('div'+this.key);
	}
	if (this.eff=="puff"){
		Element.show('div'+this.key);
		new Effect.Puff('div'+this.key);
	}
	if (this.eff=="switchoff"){
		Element.show('div'+this.key);
		new Effect.SwitchOff('div'+this.key);
	}
	if (this.eff=="dropout"){
		Element.show('div'+this.key);
		new Effect.DropOut('div'+this.key);
	}
	if (this.eff=="shake"){
		Element.show('div'+this.key);
		new Effect.Shake('div'+this.key);
	}
	if (this.eff=="squish"){
		Element.show('div'+this.key);
		new Effect.Squish('div'+this.key);
	}
}//end of rotateSlide

