var PrepViewGaleriaCommand = function(){
	
	this.Extends = SimpleCommand;
	
	this.execute = function(note/*INotification*/){
		
		var params = note.getBody();

		var app/*GaleriaFotosApp*/ = params.app;

		this.getFacade().registerMediator(new GaleriaFotosMediator(app));
		
		var galeriaProxy = this.getFacade().retrieveProxy(GaleriaFotosProxy.NAME);
		app.initFirst=true;
		galeriaProxy.setCurrentPage(1);
		
	}
	
}

PrepViewGaleriaCommand = new Class(new PrepViewGaleriaCommand);
