SimpleSlide = function(resource, target, delay, autoplay){
	var currentIndex = 0, len = resource.length, inter;
	var autoplay = autoplay || true;
	
	this.changeFoto = function(index){
		target.src = resource[currentIndex = index];
	}
	
	var obj = this;
	
	if(resource.length > 1 && autoplay)
		inter = setInterval(function(){
			obj.changeFoto((currentIndex + 1) % len);
		}, delay);
	
	this.changeFoto(currentIndex);		
}

