function Main(param_config_path){
	this.mainUI;
	Main.instance = this;
	$("#content").empty();
	$("#content").css('visibility' , 'visible');
	$(document).bind('goofy_ready' ,  $.proxy(this.launchApp , this));
	this.init( param_config_path);
}


Main.getInstance =  function(){
	if (Main.instance != undefined) 
		return Main.instance;
};


Main.prototype = {		
	launchApp:function(e){
		$(document).unbind('goofy_ready');
		this.mainUI = new MainUI();
		this.navigator.init();
	}	
}


for (var element in Goofy.prototype ) {
	Main.prototype[element] = Goofy.prototype[element];
}

