Frequently Asked Questions

    % my $ordinal = 1; % foreach (@faq) { % $_->{ordinal} = $ordinal++;
  1. <% $_->{question} %>
  2. % }
% foreach (@faq) {

You Asked...

<% $_->{question} %>


And We Answered:

<% $_->{answer} %>

% }
<%init> my @faq = $DBO->ListFAQs; <%method JavaScript> window.addEvent('domready', function() { var container = $('faq-container'); var divs = container.getElements('div'); divs.each(function(div, i) { if (i > 0 && div.className == 'answer') { div.set('opacity', 0); } }); }); function answer(qid) { $('toc').fade('out'); $('answer' + qid).fade('in'); } function toc(qid) { $('answer' + qid).fade('out'); $('toc').fade('in'); } <%method crumbs> % $m->comp('/comps/_hnav', current => qq/FAQ/); <%method sidebar_left> % $m->comp('/comps/_office_info'); <%method sidebar_right> <%def .to_top> <%attr> extJavaScripts => [ '/js/mootools-core-1.4.5-full-compat-yc.js', '/js/mootools-more-1.4.0.1.js' ] styleSheets => [ '/styles/faq.css' ]