 dojo.declare("com.mgh.LanguagesView", [com.mgh.CentersView], {
	constructor : function(){
		this.renderLayer = '#language div';		
		this.listLayout = '<ul>${0}</ul>';
		this.listElement = '<li>${0}</li>';
		this.model;
	},
	
	RenderListView : function(model){
		// model always has values because the showAllLanguages event goes directly to RenderListViewFromExistingModel()
		this.model = model;
		var output = "";	
		if (applicationState.getApplicationComponentState('language')){
			var id = applicationState.model.language;
			this.RenderSelectedView(id, 'Language', 'Language');
		} else {
			this.RenderListViewFromExistingModel();
		}
	}	
});
