var OptionalQuestion = new Class({
	
	Extends: Question,
	
	linkOptions: [],
	
	initialize: function(id, question, options)
	{
		this.options = options;
		this.parent(id, question);
	},
	
	createAnswers: function()
	{
		$H(this.options).each(function(value, key){
			
			var option = new Element("a", {href:"#", text:key}).inject(this.answerOptions);
			this.linkOptions.push(option);
			option.addEvent("click", this.preventEvent.bind(this));
			option.addEvent("click", this.answer.bind(this, [value]));
			
		}.bind(this))
	}/*,
	
	setData: function(id, question , options)
	{
		this.parent(id, question);
		this.options = options;
		this.linkOptions.each(function(option){option.destroy()});
		this.linkOptions = [];
		this.createAnswers();
	}*/
});