if (typeof Faq == 'undefined') {
    var Faq = {};
}

Faq = Class.create();

Faq.prototype = {
	initialize: function (element) {
		this.questions = $(element).getElementsBySelector('dt');
		this.answers = $(element).getElementsBySelector('dd');

		this.answers.invoke('hide');
		
		this.questions.each(function (e, i) {
			e.observe('click', function (event) {
				e.adjacent('dd')[i].toggle('slide');
				event.preventDefault();
			});
		});
		
	}
};
