FaqView.prototype = new PastelBaseView();
FaqView.prototype.constructor = FaqView;

/**
 * @constructor
 * @base PastelBaseView
 */
function FaqView() {
 
	// accessors ==================================================================================
	this.questionsCont = function() {
		return this._getset("div.id_questions", arguments);
	};
	
	// methods ====================================================================================
	this.scrollToAnswer = function($question) {
		var id = $question.attr("id");
		id = id.replace("q", "");
		
		var $answerCont = $("div.id_answers", this.container);
		var $answer = $("a#a" + id, $answerCont);
		
		$.scrollToElement($answer);
	};
}
