var GaleriaFotosProxy = function()
{
	this.Extends = Proxy;
	
	//public
	
	
	this.initialize = function(){
		this.parent(GaleriaFotosProxy.NAME);
	}
	
	this.nextPage=function()/*void*/{
		
		if(this.currentPage +1 > this.numeroPaginas) return;
		
		this.setCurrentPage(this.currentPage + 1);
		
	}
	
	this.prevPage=function()/*void*/{
		
		if(this.currentPage -1 < 1) return;
		
		this.setCurrentPage(this.currentPage - 1);
	}
	
	//get&set
	
	this.getNumeroPaginas= function()/*int*/{return this.numeroPaginas};
	this.setNumeroPaginas=function(pages/*int*/)/*void*/{
		this.numeroPaginas = pages;
	}
	
	
	this.getCurrentPage = function()/*int*/{return this.currentPage};
	this.setCurrentPage=function(page/*int*/)/*void*/{
		
		this.currentPage = page;
		
		this.sendNotification(GaleriaFotosProxy.CURRENT_PAGE_CHANGE,this.currentPage);
	}
	
	this.getCurrentGaleria=function(){ return this.currentGaleria;}
	this.setCurrentGaleria=function(id){
		
		this.currentPage=1;
		
		this.currentGaleria = id;
		
		this.sendNotification(GaleriaFotosProxy.CURRENT_GALERIA_CHANGE,this.currentGaleria);
		
	}
	
	//private
	
	this.currentPage/*int*/= 1;
	this.numeroPaginas/*int*/ = 0;
	this.currentGaleria/*int*/=-1;
}

GaleriaFotosProxy = new Class(new GaleriaFotosProxy);

GaleriaFotosProxy.NAME /*String*/ = "galeriaFotosProxy";
GaleriaFotosProxy.CURRENT_PAGE_CHANGE /*String*/ = "currentPageGaleriaChange";
GaleriaFotosProxy.CURRENT_GALERIA_CHANGE/*String*/ = "currentGaleriaChange";
