function slidshow(uid){
	this.uid = uid;
	this.act = 0;
	this.images = new Array();
 	this.text = new Array();
	
	this.addImage = function (){
		var nr = this.images.length;
		this.images[nr] = new Image();
		this.images[nr].src = arguments[0];
		this.text[nr] = (arguments.length > 1) ? arguments[1]:'';
	}
	
	this.showSlide = function (){
		var id = arguments[0];
		document.getElementById('slideshow'+this.uid).style.backgroundImage = 'url('+this.images[id].src+')';
		this.act = id;
	}
	
	this.next = function (){
		var id = this.act+1;
		if(id >= this.images.length) id = 0;
		this.showSlide(id);
	}
	this.previous = function (){
		var id = this.act-1;
		if(id < 0) id = this.images.length-1;
		this.showSlide(id);
	}
}