var GaleriaFotosFacade = function()
{
	this.Extends = new Class(new Facade());
	
	this.initialize = function(key)
	{
		this.parent(key);
	}
	
	this.startup = function(app/*Object*/){
		this.sendNotification(GaleriaFotosFacade.STARTUP,{app:app,page:1,galeria:2,init:true});
	}
	
	this.initializeController = function()
	{
		this.parent();
		
		this.registerCommand(GaleriaFotosFacade.STARTUP,StartupGaleriaCommand);
		this.registerCommand(GaleriaFotosFacade.LOAD_XML_GALERIA,LoadXMLGaleria);
	}
}

//acoes

GaleriaFotosFacade.STARTUP/*String*/ = "startup";

//eventos

GaleriaFotosFacade.LOAD_XML_GALERIA = "loadXMLGaleria";
GaleriaFotosFacade.XML_GALERIA_LOADED = "xmlGaleriaLoaded";
//singleton

GaleriaFotosFacade.getInstance = function(key)
{
	if(Facade.instanceMap[key] == undefined){
		var classFactory = new Class(new GaleriaFotosFacade(key));
		Facade.instanceMap[key] = new classFactory(key);
	}
	
	return Facade.instanceMap[key];
}
