ArrayImagenes = function(webRoot,ext,imagenes){
	this.imagenes = new Array();
	this.imagenes = imagenes;
	this.webRoot = webRoot;
	this.ext = ext;
	this.length = this.imagenes.length;
	this.first = 0;
	this.second = 0;
}
ArrayImagenes.prototype.setWebRoot = function(webRoot){
	this.webRoot = webRoot;
};
ArrayImagenes.prototype.setExt = function(ext){
	this.ext = ext;
};
ArrayImagenes.prototype.setImagenes = function(imagenes){
	this.imagenes = imagenes;
};
ArrayImagenes.prototype.getWebRoot = function(){
	return this.webRoot;
};
ArrayImagenes.prototype.getExt = function(){
	return this.ext;
};
ArrayImagenes.prototype.getImagenes = function(){
	return this.imagenes;
};
ArrayImagenes.prototype.rotarImagenes = function(){
	this.first = this.second;
	if(this.second==this.length-1){
		this.second = 0;
	}else{
		this.second++;
	}
};
ArrayImagenes.prototype.getSrcFirstImage = function(){
	return this.webRoot+"/"+this.imagenes[this.first]+"."+this.ext; 
};
ArrayImagenes.prototype.getSrcSecondImage = function(){
	return this.webRoot+"/"+this.imagenes[this.second]+"."+this.ext; 
};