dojo.declare("com.mgh.Program",null, {
	constructor : function(id,name) {
		this.id = id;
		this.name = name;
		this.type = 'Program';
		this.css = '';
		this.formatString = '<a href="#" id="${id}" onclick="dojo.publish(\'programClicked\',[\'${id}\',\'${name}\',\'${type}\'])">${name}</a>';
		this.deselectFormatString = '<a href="#" class="goBack" id="${id}" onclick="dojo.publish(\'showAllPrograms\',[\'\',\'\',\'${type}\'])">Show all programs / specialties</a>';
		this.selectedFormatString = '<p class="title">${name}</p>' + this.deselectFormatString;			
	},
	
	Format : function(){
		return dojo.string.substitute(this.formatString,this);		
	},

	SelectedFormat : function(){
		return dojo.string.substitute(this.selectedFormatString,this);
	}	
});
